Apache_Hadoop_Common_2.10.2.xml 1.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055
  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 May 24 22:52:15 GMT 2022 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 2.10.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/build/source/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /build/source/hadoop-common-project/hadoop-common/target/classes:/build/source/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-2.10.2.jar:/usr/lib/jvm/zulu-7-amd64/lib/tools.jar:/maven/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/maven/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/maven/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/maven/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/maven/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar:/maven/org/apache/httpcomponents/httpcore/4.4.13/httpcore-4.4.13.jar:/maven/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/maven/commons-io/commons-io/2.5/commons-io-2.5.jar:/maven/commons-net/commons-net/3.1/commons-net-3.1.jar:/maven/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/maven/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/maven/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/maven/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/maven/org/mortbay/jetty/jetty-sslengine/6.1.26/jetty-sslengine-6.1.26.jar:/maven/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/maven/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/maven/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/maven/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/maven/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/maven/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/maven/javax/activation/activation/1.1/activation-1.1.jar:/maven/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/maven/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/maven/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/maven/asm/asm/3.2/asm-3.2.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/ch/qos/reload4j/reload4j/1.2.18.3/reload4j-1.2.18.3.jar:/maven/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/maven/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/maven/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/maven/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/maven/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/maven/commons-beanutils/commons-beanutils/1.9.4/commons-beanutils-1.9.4.jar:/maven/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/maven/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar:/maven/org/slf4j/slf4j-reload4j/1.7.36/slf4j-reload4j-1.7.36.jar:/maven/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/maven/org/apache/avro/avro/1.7.7/avro-1.7.7.jar:/maven/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/maven/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar:/maven/org/apache/ant/ant/1.10.11/ant-1.10.11.jar:/maven/org/apache/ant/ant-launcher/1.10.11/ant-launcher-1.10.11.jar:/maven/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/maven/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-2.10.2.jar:/maven/com/nimbusds/nimbus-jose-jwt/7.9/nimbus-jose-jwt-7.9.jar:/maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/maven/net/minidev/json-smart/1.3.3/json-smart-1.3.3.jar:/maven/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/maven/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/maven/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/maven/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/maven/org/apache/curator/curator-framework/2.13.0/curator-framework-2.13.0.jar:/maven/com/jcraft/jsch/0.1.55/jsch-0.1.55.jar:/maven/org/apache/curator/curator-client/2.13.0/curator-client-2.13.0.jar:/maven/org/apache/curator/curator-recipes/2.13.0/curator-recipes-2.13.0.jar:/maven/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/maven/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/maven/org/apache/zookeeper/zookeeper/3.4.14/zookeeper-3.4.14.jar:/maven/com/github/spotbugs/spotbugs-annotations/3.1.9/spotbugs-annotations-3.1.9.jar:/maven/org/apache/yetus/audience-annotations/0.5.0/audience-annotations-0.5.0.jar:/maven/io/netty/netty/3.10.6.Final/netty-3.10.6.Final.jar:/maven/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar:/maven/org/codehaus/woodstox/stax2-api/4.2.1/stax2-api-4.2.1.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.3.0/woodstox-core-5.3.0.jar -sourcepath /build/source/hadoop-common-project/hadoop-common/src/main/java -apidir /build/source/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname Apache Hadoop Common 2.10.2 -->
  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="getTimeDuration" 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="defaultValue" type="long"/>
  810. <param name="defaultUnit" type="java.util.concurrent.TimeUnit"/>
  811. <param name="returnUnit" type="java.util.concurrent.TimeUnit"/>
  812. <doc>
  813. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  814. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  815. (ms), seconds (s), minutes (m), hours (h), and days (d). If no unit is
  816. provided, the default unit is applied.
  817. @param name Property name
  818. @param defaultValue Value returned if no mapping exists.
  819. @param defaultUnit Default time unit if no valid suffix is provided.
  820. @param returnUnit The unit used for the returned value.
  821. @throws NumberFormatException If the property stripped of its unit is not
  822. a number
  823. @return time duration in given time unit]]>
  824. </doc>
  825. </method>
  826. <method name="getTimeDurations" return="long[]"
  827. abstract="false" native="false" synchronized="false"
  828. static="false" final="false" visibility="public"
  829. deprecated="not deprecated">
  830. <param name="name" type="java.lang.String"/>
  831. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  832. </method>
  833. <method name="getPattern" return="java.util.regex.Pattern"
  834. abstract="false" native="false" synchronized="false"
  835. static="false" final="false" visibility="public"
  836. deprecated="not deprecated">
  837. <param name="name" type="java.lang.String"/>
  838. <param name="defaultValue" type="java.util.regex.Pattern"/>
  839. <doc>
  840. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  841. If no such property is specified, or if the specified value is not a valid
  842. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  843. Note that the returned value is NOT trimmed by this method.
  844. @param name property name
  845. @param defaultValue default value
  846. @return property value as a compiled Pattern, or defaultValue]]>
  847. </doc>
  848. </method>
  849. <method name="setPattern"
  850. abstract="false" native="false" synchronized="false"
  851. static="false" final="false" visibility="public"
  852. deprecated="not deprecated">
  853. <param name="name" type="java.lang.String"/>
  854. <param name="pattern" type="java.util.regex.Pattern"/>
  855. <doc>
  856. <![CDATA[Set the given property to <code>Pattern</code>.
  857. If the pattern is passed as null, sets the empty pattern which results in
  858. further calls to getPattern(...) returning the default value.
  859. @param name property name
  860. @param pattern new value]]>
  861. </doc>
  862. </method>
  863. <method name="getPropertySources" return="java.lang.String[]"
  864. abstract="false" native="false" synchronized="true"
  865. static="false" final="false" visibility="public"
  866. deprecated="not deprecated">
  867. <param name="name" type="java.lang.String"/>
  868. <doc>
  869. <![CDATA[Gets information about why a property was set. Typically this is the
  870. path to the resource objects (file, URL, etc.) the property came from, but
  871. it can also indicate that it was set programatically, or because of the
  872. command line.
  873. @param name - The property name to get the source of.
  874. @return null - If the property or its source wasn't found. Otherwise,
  875. returns a list of the sources of the resource. The older sources are
  876. the first ones in the list. So for example if a configuration is set from
  877. the command line, and then written out to a file that is read back in the
  878. first entry would indicate that it was set from the command line, while
  879. the second one would indicate the file that the new configuration was read
  880. in from.]]>
  881. </doc>
  882. </method>
  883. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  884. abstract="false" native="false" synchronized="false"
  885. static="false" final="false" visibility="public"
  886. deprecated="not deprecated">
  887. <param name="name" type="java.lang.String"/>
  888. <param name="defaultValue" type="java.lang.String"/>
  889. <doc>
  890. <![CDATA[Parse the given attribute as a set of integer ranges
  891. @param name the attribute name
  892. @param defaultValue the default value if it is not set
  893. @return a new set of ranges from the configured value]]>
  894. </doc>
  895. </method>
  896. <method name="getStringCollection" return="java.util.Collection"
  897. abstract="false" native="false" synchronized="false"
  898. static="false" final="false" visibility="public"
  899. deprecated="not deprecated">
  900. <param name="name" type="java.lang.String"/>
  901. <doc>
  902. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  903. a collection of <code>String</code>s.
  904. If no such property is specified then empty collection is returned.
  905. <p>
  906. This is an optimized version of {@link #getStrings(String)}
  907. @param name property name.
  908. @return property value as a collection of <code>String</code>s.]]>
  909. </doc>
  910. </method>
  911. <method name="getStrings" return="java.lang.String[]"
  912. abstract="false" native="false" synchronized="false"
  913. static="false" final="false" visibility="public"
  914. deprecated="not deprecated">
  915. <param name="name" type="java.lang.String"/>
  916. <doc>
  917. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  918. an array of <code>String</code>s.
  919. If no such property is specified then <code>null</code> is returned.
  920. @param name property name.
  921. @return property value as an array of <code>String</code>s,
  922. or <code>null</code>.]]>
  923. </doc>
  924. </method>
  925. <method name="getStrings" return="java.lang.String[]"
  926. abstract="false" native="false" synchronized="false"
  927. static="false" final="false" visibility="public"
  928. deprecated="not deprecated">
  929. <param name="name" type="java.lang.String"/>
  930. <param name="defaultValue" type="java.lang.String[]"/>
  931. <doc>
  932. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  933. an array of <code>String</code>s.
  934. If no such property is specified then default value is returned.
  935. @param name property name.
  936. @param defaultValue The default value
  937. @return property value as an array of <code>String</code>s,
  938. or default value.]]>
  939. </doc>
  940. </method>
  941. <method name="getTrimmedStringCollection" return="java.util.Collection"
  942. abstract="false" native="false" synchronized="false"
  943. static="false" final="false" visibility="public"
  944. deprecated="not deprecated">
  945. <param name="name" type="java.lang.String"/>
  946. <doc>
  947. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  948. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  949. If no such property is specified then empty <code>Collection</code> is returned.
  950. @param name property name.
  951. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  952. </doc>
  953. </method>
  954. <method name="getTrimmedStrings" return="java.lang.String[]"
  955. abstract="false" native="false" synchronized="false"
  956. static="false" final="false" visibility="public"
  957. deprecated="not deprecated">
  958. <param name="name" type="java.lang.String"/>
  959. <doc>
  960. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  961. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  962. If no such property is specified then an empty array is returned.
  963. @param name property name.
  964. @return property value as an array of trimmed <code>String</code>s,
  965. or empty array.]]>
  966. </doc>
  967. </method>
  968. <method name="getTrimmedStrings" return="java.lang.String[]"
  969. abstract="false" native="false" synchronized="false"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. <param name="name" type="java.lang.String"/>
  973. <param name="defaultValue" type="java.lang.String[]"/>
  974. <doc>
  975. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  976. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  977. If no such property is specified then default value is returned.
  978. @param name property name.
  979. @param defaultValue The default value
  980. @return property value as an array of trimmed <code>String</code>s,
  981. or default value.]]>
  982. </doc>
  983. </method>
  984. <method name="setStrings"
  985. abstract="false" native="false" synchronized="false"
  986. static="false" final="false" visibility="public"
  987. deprecated="not deprecated">
  988. <param name="name" type="java.lang.String"/>
  989. <param name="values" type="java.lang.String[]"/>
  990. <doc>
  991. <![CDATA[Set the array of string values for the <code>name</code> property as
  992. as comma delimited values.
  993. @param name property name.
  994. @param values The values]]>
  995. </doc>
  996. </method>
  997. <method name="getPassword" return="char[]"
  998. abstract="false" native="false" synchronized="false"
  999. static="false" final="false" visibility="public"
  1000. deprecated="not deprecated">
  1001. <param name="name" type="java.lang.String"/>
  1002. <exception name="IOException" type="java.io.IOException"/>
  1003. <doc>
  1004. <![CDATA[Get the value for a known password configuration element.
  1005. In order to enable the elimination of clear text passwords in config,
  1006. this method attempts to resolve the property name as an alias through
  1007. the CredentialProvider API and conditionally fallsback to config.
  1008. @param name property name
  1009. @return password]]>
  1010. </doc>
  1011. </method>
  1012. <method name="getPasswordFromCredentialProviders" return="char[]"
  1013. abstract="false" native="false" synchronized="false"
  1014. static="false" final="false" visibility="public"
  1015. deprecated="not deprecated">
  1016. <param name="name" type="java.lang.String"/>
  1017. <exception name="IOException" type="java.io.IOException"/>
  1018. <doc>
  1019. <![CDATA[Try and resolve the provided element name as a credential provider
  1020. alias.
  1021. @param name alias of the provisioned credential
  1022. @return password or null if not found
  1023. @throws IOException]]>
  1024. </doc>
  1025. </method>
  1026. <method name="getPasswordFromConfig" return="char[]"
  1027. abstract="false" native="false" synchronized="false"
  1028. static="false" final="false" visibility="protected"
  1029. deprecated="not deprecated">
  1030. <param name="name" type="java.lang.String"/>
  1031. <doc>
  1032. <![CDATA[Fallback to clear text passwords in configuration.
  1033. @param name
  1034. @return clear text password or null]]>
  1035. </doc>
  1036. </method>
  1037. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1038. abstract="false" native="false" synchronized="false"
  1039. static="false" final="false" visibility="public"
  1040. deprecated="not deprecated">
  1041. <param name="hostProperty" type="java.lang.String"/>
  1042. <param name="addressProperty" type="java.lang.String"/>
  1043. <param name="defaultAddressValue" type="java.lang.String"/>
  1044. <param name="defaultPort" type="int"/>
  1045. <doc>
  1046. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  1047. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  1048. <code>null</code>, <code>addressProperty</code> will be used. This
  1049. is useful for cases where we want to differentiate between host
  1050. bind address and address clients should use to establish connection.
  1051. @param hostProperty bind host property name.
  1052. @param addressProperty address property name.
  1053. @param defaultAddressValue the default value
  1054. @param defaultPort the default port
  1055. @return InetSocketAddress]]>
  1056. </doc>
  1057. </method>
  1058. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  1059. abstract="false" native="false" synchronized="false"
  1060. static="false" final="false" visibility="public"
  1061. deprecated="not deprecated">
  1062. <param name="name" type="java.lang.String"/>
  1063. <param name="defaultAddress" type="java.lang.String"/>
  1064. <param name="defaultPort" type="int"/>
  1065. <doc>
  1066. <![CDATA[Get the socket address for <code>name</code> property as a
  1067. <code>InetSocketAddress</code>.
  1068. @param name property name.
  1069. @param defaultAddress the default value
  1070. @param defaultPort the default port
  1071. @return InetSocketAddress]]>
  1072. </doc>
  1073. </method>
  1074. <method name="setSocketAddr"
  1075. abstract="false" native="false" synchronized="false"
  1076. static="false" final="false" visibility="public"
  1077. deprecated="not deprecated">
  1078. <param name="name" type="java.lang.String"/>
  1079. <param name="addr" type="java.net.InetSocketAddress"/>
  1080. <doc>
  1081. <![CDATA[Set the socket address for the <code>name</code> property as
  1082. a <code>host:port</code>.]]>
  1083. </doc>
  1084. </method>
  1085. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1086. abstract="false" native="false" synchronized="false"
  1087. static="false" final="false" visibility="public"
  1088. deprecated="not deprecated">
  1089. <param name="hostProperty" type="java.lang.String"/>
  1090. <param name="addressProperty" type="java.lang.String"/>
  1091. <param name="defaultAddressValue" type="java.lang.String"/>
  1092. <param name="addr" type="java.net.InetSocketAddress"/>
  1093. <doc>
  1094. <![CDATA[Set the socket address a client can use to connect for the
  1095. <code>name</code> property as a <code>host:port</code>. The wildcard
  1096. address is replaced with the local host's address. If the host and address
  1097. properties are configured the host component of the address will be combined
  1098. with the port component of the addr to generate the address. This is to allow
  1099. optional control over which host name is used in multi-home bind-host
  1100. cases where a host can have multiple names
  1101. @param hostProperty the bind-host configuration name
  1102. @param addressProperty the service address configuration name
  1103. @param defaultAddressValue the service default address configuration value
  1104. @param addr InetSocketAddress of the service listener
  1105. @return InetSocketAddress for clients to connect]]>
  1106. </doc>
  1107. </method>
  1108. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1109. abstract="false" native="false" synchronized="false"
  1110. static="false" final="false" visibility="public"
  1111. deprecated="not deprecated">
  1112. <param name="name" type="java.lang.String"/>
  1113. <param name="addr" type="java.net.InetSocketAddress"/>
  1114. <doc>
  1115. <![CDATA[Set the socket address a client can use to connect for the
  1116. <code>name</code> property as a <code>host:port</code>. The wildcard
  1117. address is replaced with the local host's address.
  1118. @param name property name.
  1119. @param addr InetSocketAddress of a listener to store in the given property
  1120. @return InetSocketAddress for clients to connect]]>
  1121. </doc>
  1122. </method>
  1123. <method name="getClassByName" return="java.lang.Class"
  1124. abstract="false" native="false" synchronized="false"
  1125. static="false" final="false" visibility="public"
  1126. deprecated="not deprecated">
  1127. <param name="name" type="java.lang.String"/>
  1128. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1129. <doc>
  1130. <![CDATA[Load a class by name.
  1131. @param name the class name.
  1132. @return the class object.
  1133. @throws ClassNotFoundException if the class is not found.]]>
  1134. </doc>
  1135. </method>
  1136. <method name="getClassByNameOrNull" return="java.lang.Class"
  1137. abstract="false" native="false" synchronized="false"
  1138. static="false" final="false" visibility="public"
  1139. deprecated="not deprecated">
  1140. <param name="name" type="java.lang.String"/>
  1141. <doc>
  1142. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1143. if it couldn't be loaded. This is to avoid the overhead of creating
  1144. an exception.
  1145. @param name the class name
  1146. @return the class object, or null if it could not be found.]]>
  1147. </doc>
  1148. </method>
  1149. <method name="getClasses" return="java.lang.Class[]"
  1150. abstract="false" native="false" synchronized="false"
  1151. static="false" final="false" visibility="public"
  1152. deprecated="not deprecated">
  1153. <param name="name" type="java.lang.String"/>
  1154. <param name="defaultValue" type="java.lang.Class[]"/>
  1155. <doc>
  1156. <![CDATA[Get the value of the <code>name</code> property
  1157. as an array of <code>Class</code>.
  1158. The value of the property specifies a list of comma separated class names.
  1159. If no such property is specified, then <code>defaultValue</code> is
  1160. returned.
  1161. @param name the property name.
  1162. @param defaultValue default value.
  1163. @return property value as a <code>Class[]</code>,
  1164. or <code>defaultValue</code>.]]>
  1165. </doc>
  1166. </method>
  1167. <method name="getClass" return="java.lang.Class"
  1168. abstract="false" native="false" synchronized="false"
  1169. static="false" final="false" visibility="public"
  1170. deprecated="not deprecated">
  1171. <param name="name" type="java.lang.String"/>
  1172. <param name="defaultValue" type="java.lang.Class"/>
  1173. <doc>
  1174. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1175. If no such property is specified, then <code>defaultValue</code> is
  1176. returned.
  1177. @param name the class name.
  1178. @param defaultValue default value.
  1179. @return property value as a <code>Class</code>,
  1180. or <code>defaultValue</code>.]]>
  1181. </doc>
  1182. </method>
  1183. <method name="getClass" return="java.lang.Class"
  1184. abstract="false" native="false" synchronized="false"
  1185. static="false" final="false" visibility="public"
  1186. deprecated="not deprecated">
  1187. <param name="name" type="java.lang.String"/>
  1188. <param name="defaultValue" type="java.lang.Class"/>
  1189. <param name="xface" type="java.lang.Class"/>
  1190. <doc>
  1191. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1192. implementing the interface specified by <code>xface</code>.
  1193. If no such property is specified, then <code>defaultValue</code> is
  1194. returned.
  1195. An exception is thrown if the returned class does not implement the named
  1196. interface.
  1197. @param name the class name.
  1198. @param defaultValue default value.
  1199. @param xface the interface implemented by the named class.
  1200. @return property value as a <code>Class</code>,
  1201. or <code>defaultValue</code>.]]>
  1202. </doc>
  1203. </method>
  1204. <method name="getInstances" return="java.util.List"
  1205. abstract="false" native="false" synchronized="false"
  1206. static="false" final="false" visibility="public"
  1207. deprecated="not deprecated">
  1208. <param name="name" type="java.lang.String"/>
  1209. <param name="xface" type="java.lang.Class"/>
  1210. <doc>
  1211. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1212. of objects implementing the interface specified by <code>xface</code>.
  1213. An exception is thrown if any of the classes does not exist, or if it does
  1214. not implement the named interface.
  1215. @param name the property name.
  1216. @param xface the interface implemented by the classes named by
  1217. <code>name</code>.
  1218. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1219. </doc>
  1220. </method>
  1221. <method name="setClass"
  1222. abstract="false" native="false" synchronized="false"
  1223. static="false" final="false" visibility="public"
  1224. deprecated="not deprecated">
  1225. <param name="name" type="java.lang.String"/>
  1226. <param name="theClass" type="java.lang.Class"/>
  1227. <param name="xface" type="java.lang.Class"/>
  1228. <doc>
  1229. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1230. <code>theClass</code> implementing the given interface <code>xface</code>.
  1231. An exception is thrown if <code>theClass</code> does not implement the
  1232. interface <code>xface</code>.
  1233. @param name property name.
  1234. @param theClass property value.
  1235. @param xface the interface implemented by the named class.]]>
  1236. </doc>
  1237. </method>
  1238. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1239. abstract="false" native="false" synchronized="false"
  1240. static="false" final="false" visibility="public"
  1241. deprecated="not deprecated">
  1242. <param name="dirsProp" type="java.lang.String"/>
  1243. <param name="path" type="java.lang.String"/>
  1244. <exception name="IOException" type="java.io.IOException"/>
  1245. <doc>
  1246. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1247. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1248. then one is chosen based on <i>path</i>'s hash code. If the selected
  1249. directory does not exist, an attempt is made to create it.
  1250. @param dirsProp directory in which to locate the file.
  1251. @param path file-path.
  1252. @return local file under the directory with the given path.]]>
  1253. </doc>
  1254. </method>
  1255. <method name="getFile" return="java.io.File"
  1256. abstract="false" native="false" synchronized="false"
  1257. static="false" final="false" visibility="public"
  1258. deprecated="not deprecated">
  1259. <param name="dirsProp" type="java.lang.String"/>
  1260. <param name="path" type="java.lang.String"/>
  1261. <exception name="IOException" type="java.io.IOException"/>
  1262. <doc>
  1263. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1264. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1265. then one is chosen based on <i>path</i>'s hash code. If the selected
  1266. directory does not exist, an attempt is made to create it.
  1267. @param dirsProp directory in which to locate the file.
  1268. @param path file-path.
  1269. @return local file under the directory with the given path.]]>
  1270. </doc>
  1271. </method>
  1272. <method name="getResource" return="java.net.URL"
  1273. abstract="false" native="false" synchronized="false"
  1274. static="false" final="false" visibility="public"
  1275. deprecated="not deprecated">
  1276. <param name="name" type="java.lang.String"/>
  1277. <doc>
  1278. <![CDATA[Get the {@link URL} for the named resource.
  1279. @param name resource name.
  1280. @return the url for the named resource.]]>
  1281. </doc>
  1282. </method>
  1283. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1284. abstract="false" native="false" synchronized="false"
  1285. static="false" final="false" visibility="public"
  1286. deprecated="not deprecated">
  1287. <param name="name" type="java.lang.String"/>
  1288. <doc>
  1289. <![CDATA[Get an input stream attached to the configuration resource with the
  1290. given <code>name</code>.
  1291. @param name configuration resource name.
  1292. @return an input stream attached to the resource.]]>
  1293. </doc>
  1294. </method>
  1295. <method name="getConfResourceAsReader" return="java.io.Reader"
  1296. abstract="false" native="false" synchronized="false"
  1297. static="false" final="false" visibility="public"
  1298. deprecated="not deprecated">
  1299. <param name="name" type="java.lang.String"/>
  1300. <doc>
  1301. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1302. given <code>name</code>.
  1303. @param name configuration resource name.
  1304. @return a reader attached to the resource.]]>
  1305. </doc>
  1306. </method>
  1307. <method name="getFinalParameters" return="java.util.Set"
  1308. abstract="false" native="false" synchronized="false"
  1309. static="false" final="false" visibility="public"
  1310. deprecated="not deprecated">
  1311. <doc>
  1312. <![CDATA[Get the set of parameters marked final.
  1313. @return final parameter set.]]>
  1314. </doc>
  1315. </method>
  1316. <method name="getProps" return="java.util.Properties"
  1317. abstract="false" native="false" synchronized="true"
  1318. static="false" final="false" visibility="protected"
  1319. deprecated="not deprecated">
  1320. </method>
  1321. <method name="size" return="int"
  1322. abstract="false" native="false" synchronized="false"
  1323. static="false" final="false" visibility="public"
  1324. deprecated="not deprecated">
  1325. <doc>
  1326. <![CDATA[Return the number of keys in the configuration.
  1327. @return number of keys in the configuration.]]>
  1328. </doc>
  1329. </method>
  1330. <method name="clear"
  1331. abstract="false" native="false" synchronized="false"
  1332. static="false" final="false" visibility="public"
  1333. deprecated="not deprecated">
  1334. <doc>
  1335. <![CDATA[Clears all keys from the configuration.]]>
  1336. </doc>
  1337. </method>
  1338. <method name="iterator" return="java.util.Iterator"
  1339. abstract="false" native="false" synchronized="false"
  1340. static="false" final="false" visibility="public"
  1341. deprecated="not deprecated">
  1342. <doc>
  1343. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1344. key-value pairs in the configuration.
  1345. @return an iterator over the entries.]]>
  1346. </doc>
  1347. </method>
  1348. <method name="getPropsWithPrefix" return="java.util.Map"
  1349. abstract="false" native="false" synchronized="false"
  1350. static="false" final="false" visibility="public"
  1351. deprecated="not deprecated">
  1352. <param name="confPrefix" type="java.lang.String"/>
  1353. <doc>
  1354. <![CDATA[Constructs a mapping of configuration and includes all properties that
  1355. start with the specified configuration prefix. Property names in the
  1356. mapping are trimmed to remove the configuration prefix.
  1357. @param confPrefix configuration prefix
  1358. @return mapping of configuration properties with prefix stripped]]>
  1359. </doc>
  1360. </method>
  1361. <method name="writeXml"
  1362. abstract="false" native="false" synchronized="false"
  1363. static="false" final="false" visibility="public"
  1364. deprecated="not deprecated">
  1365. <param name="out" type="java.io.OutputStream"/>
  1366. <exception name="IOException" type="java.io.IOException"/>
  1367. <doc>
  1368. <![CDATA[Write out the non-default properties in this configuration to the given
  1369. {@link OutputStream} using UTF-8 encoding.
  1370. @param out the output stream to write to.]]>
  1371. </doc>
  1372. </method>
  1373. <method name="writeXml"
  1374. abstract="false" native="false" synchronized="false"
  1375. static="false" final="false" visibility="public"
  1376. deprecated="not deprecated">
  1377. <param name="out" type="java.io.Writer"/>
  1378. <exception name="IOException" type="java.io.IOException"/>
  1379. </method>
  1380. <method name="writeXml"
  1381. abstract="false" native="false" synchronized="false"
  1382. static="false" final="false" visibility="public"
  1383. deprecated="not deprecated">
  1384. <param name="propertyName" type="java.lang.String"/>
  1385. <param name="out" type="java.io.Writer"/>
  1386. <exception name="IOException" type="java.io.IOException"/>
  1387. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  1388. <doc>
  1389. <![CDATA[Write out the non-default properties in this configuration to the
  1390. given {@link Writer}.
  1391. <li>
  1392. When property name is not empty and the property exists in the
  1393. configuration, this method writes the property and its attributes
  1394. to the {@link Writer}.
  1395. </li>
  1396. <p>
  1397. <li>
  1398. When property name is null or empty, this method writes all the
  1399. configuration properties and their attributes to the {@link Writer}.
  1400. </li>
  1401. <p>
  1402. <li>
  1403. When property name is not empty but the property doesn't exist in
  1404. the configuration, this method throws an {@link IllegalArgumentException}.
  1405. </li>
  1406. <p>
  1407. @param out the writer to write to.]]>
  1408. </doc>
  1409. </method>
  1410. <method name="dumpConfiguration"
  1411. abstract="false" native="false" synchronized="false"
  1412. static="true" final="false" visibility="public"
  1413. deprecated="not deprecated">
  1414. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1415. <param name="propertyName" type="java.lang.String"/>
  1416. <param name="out" type="java.io.Writer"/>
  1417. <exception name="IOException" type="java.io.IOException"/>
  1418. <doc>
  1419. <![CDATA[Writes properties and their attributes (final and resource)
  1420. to the given {@link Writer}.
  1421. <li>
  1422. When propertyName is not empty, and the property exists
  1423. in the configuration, the format of the output would be,
  1424. <pre>
  1425. {
  1426. "property": {
  1427. "key" : "key1",
  1428. "value" : "value1",
  1429. "isFinal" : "key1.isFinal",
  1430. "resource" : "key1.resource"
  1431. }
  1432. }
  1433. </pre>
  1434. </li>
  1435. <li>
  1436. When propertyName is null or empty, it behaves same as
  1437. {@link #dumpConfiguration(Configuration, Writer)}, the
  1438. output would be,
  1439. <pre>
  1440. { "properties" :
  1441. [ { key : "key1",
  1442. value : "value1",
  1443. isFinal : "key1.isFinal",
  1444. resource : "key1.resource" },
  1445. { key : "key2",
  1446. value : "value2",
  1447. isFinal : "ke2.isFinal",
  1448. resource : "key2.resource" }
  1449. ]
  1450. }
  1451. </pre>
  1452. </li>
  1453. <li>
  1454. When propertyName is not empty, and the property is not
  1455. found in the configuration, this method will throw an
  1456. {@link IllegalArgumentException}.
  1457. </li>
  1458. <p>
  1459. @param config the configuration
  1460. @param propertyName property name
  1461. @param out the Writer to write to
  1462. @throws IOException
  1463. @throws IllegalArgumentException when property name is not
  1464. empty and the property is not found in configuration]]>
  1465. </doc>
  1466. </method>
  1467. <method name="dumpConfiguration"
  1468. abstract="false" native="false" synchronized="false"
  1469. static="true" final="false" visibility="public"
  1470. deprecated="not deprecated">
  1471. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1472. <param name="out" type="java.io.Writer"/>
  1473. <exception name="IOException" type="java.io.IOException"/>
  1474. <doc>
  1475. <![CDATA[Writes out all properties and their attributes (final and resource) to
  1476. the given {@link Writer}, the format of the output would be,
  1477. <pre>
  1478. { "properties" :
  1479. [ { key : "key1",
  1480. value : "value1",
  1481. isFinal : "key1.isFinal",
  1482. resource : "key1.resource" },
  1483. { key : "key2",
  1484. value : "value2",
  1485. isFinal : "ke2.isFinal",
  1486. resource : "key2.resource" }
  1487. ]
  1488. }
  1489. </pre>
  1490. It does not output the properties of the configuration object which
  1491. is loaded from an input stream.
  1492. <p>
  1493. @param config the configuration
  1494. @param out the Writer to write to
  1495. @throws IOException]]>
  1496. </doc>
  1497. </method>
  1498. <method name="getClassLoader" return="java.lang.ClassLoader"
  1499. abstract="false" native="false" synchronized="false"
  1500. static="false" final="false" visibility="public"
  1501. deprecated="not deprecated">
  1502. <doc>
  1503. <![CDATA[Get the {@link ClassLoader} for this job.
  1504. @return the correct class loader.]]>
  1505. </doc>
  1506. </method>
  1507. <method name="setClassLoader"
  1508. abstract="false" native="false" synchronized="false"
  1509. static="false" final="false" visibility="public"
  1510. deprecated="not deprecated">
  1511. <param name="classLoader" type="java.lang.ClassLoader"/>
  1512. <doc>
  1513. <![CDATA[Set the class loader that will be used to load the various objects.
  1514. @param classLoader the new class loader.]]>
  1515. </doc>
  1516. </method>
  1517. <method name="toString" return="java.lang.String"
  1518. abstract="false" native="false" synchronized="false"
  1519. static="false" final="false" visibility="public"
  1520. deprecated="not deprecated">
  1521. </method>
  1522. <method name="setQuietMode"
  1523. abstract="false" native="false" synchronized="true"
  1524. static="false" final="false" visibility="public"
  1525. deprecated="not deprecated">
  1526. <param name="quietmode" type="boolean"/>
  1527. <doc>
  1528. <![CDATA[Set the quietness-mode.
  1529. In the quiet-mode, error and informational messages might not be logged.
  1530. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1531. to turn it off.]]>
  1532. </doc>
  1533. </method>
  1534. <method name="main"
  1535. abstract="false" native="false" synchronized="false"
  1536. static="true" final="false" visibility="public"
  1537. deprecated="not deprecated">
  1538. <param name="args" type="java.lang.String[]"/>
  1539. <exception name="Exception" type="java.lang.Exception"/>
  1540. <doc>
  1541. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1542. </doc>
  1543. </method>
  1544. <method name="readFields"
  1545. abstract="false" native="false" synchronized="false"
  1546. static="false" final="false" visibility="public"
  1547. deprecated="not deprecated">
  1548. <param name="in" type="java.io.DataInput"/>
  1549. <exception name="IOException" type="java.io.IOException"/>
  1550. </method>
  1551. <method name="write"
  1552. abstract="false" native="false" synchronized="false"
  1553. static="false" final="false" visibility="public"
  1554. deprecated="not deprecated">
  1555. <param name="out" type="java.io.DataOutput"/>
  1556. <exception name="IOException" type="java.io.IOException"/>
  1557. </method>
  1558. <method name="getValByRegex" return="java.util.Map"
  1559. abstract="false" native="false" synchronized="false"
  1560. static="false" final="false" visibility="public"
  1561. deprecated="not deprecated">
  1562. <param name="regex" type="java.lang.String"/>
  1563. <doc>
  1564. <![CDATA[get keys matching the the regex
  1565. @param regex
  1566. @return Map<String,String> with matching keys]]>
  1567. </doc>
  1568. </method>
  1569. <method name="dumpDeprecatedKeys"
  1570. abstract="false" native="false" synchronized="false"
  1571. static="true" final="false" visibility="public"
  1572. deprecated="not deprecated">
  1573. </method>
  1574. <method name="hasWarnedDeprecation" return="boolean"
  1575. abstract="false" native="false" synchronized="false"
  1576. static="true" final="false" visibility="public"
  1577. deprecated="not deprecated">
  1578. <param name="name" type="java.lang.String"/>
  1579. <doc>
  1580. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1581. deprecated then always return false]]>
  1582. </doc>
  1583. </method>
  1584. <doc>
  1585. <![CDATA[Provides access to configuration parameters.
  1586. <h4 id="Resources">Resources</h4>
  1587. <p>Configurations are specified by resources. A resource contains a set of
  1588. name/value pairs as XML data. Each resource is named by either a
  1589. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1590. then the classpath is examined for a file with that name. If named by a
  1591. <code>Path</code>, then the local filesystem is examined directly, without
  1592. referring to the classpath.
  1593. <p>Unless explicitly turned off, Hadoop by default specifies two
  1594. resources, loaded in-order from the classpath: <ol>
  1595. <li><tt>
  1596. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1597. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1598. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1599. installation.</li>
  1600. </ol>
  1601. Applications may add additional resources, which are loaded
  1602. subsequent to these resources in the order they are added.
  1603. <h4 id="FinalParams">Final Parameters</h4>
  1604. <p>Configuration parameters may be declared <i>final</i>.
  1605. Once a resource declares a value final, no subsequently-loaded
  1606. resource can alter that value.
  1607. For example, one might define a final parameter with:
  1608. <tt><pre>
  1609. &lt;property&gt;
  1610. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1611. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1612. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1613. &lt;/property&gt;</pre></tt>
  1614. Administrators typically define parameters as final in
  1615. <tt>core-site.xml</tt> for values that user applications may not alter.
  1616. <h4 id="VariableExpansion">Variable Expansion</h4>
  1617. <p>Value strings are first processed for <i>variable expansion</i>. The
  1618. available properties are:<ol>
  1619. <li>Other properties defined in this Configuration; and, if a name is
  1620. undefined here,</li>
  1621. <li>Properties in {@link System#getProperties()}.</li>
  1622. </ol>
  1623. <p>For example, if a configuration resource contains the following property
  1624. definitions:
  1625. <tt><pre>
  1626. &lt;property&gt;
  1627. &lt;name&gt;basedir&lt;/name&gt;
  1628. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1629. &lt;/property&gt;
  1630. &lt;property&gt;
  1631. &lt;name&gt;tempdir&lt;/name&gt;
  1632. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1633. &lt;/property&gt;</pre></tt>
  1634. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1635. will be resolved to another property in this Configuration, while
  1636. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1637. of the System property with that name.
  1638. By default, warnings will be given to any deprecated configuration
  1639. parameters and these are suppressible by configuring
  1640. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1641. log4j.properties file.]]>
  1642. </doc>
  1643. </class>
  1644. <!-- end class org.apache.hadoop.conf.Configuration -->
  1645. <!-- start class org.apache.hadoop.conf.Configured -->
  1646. <class name="Configured" extends="java.lang.Object"
  1647. abstract="false"
  1648. static="false" final="false" visibility="public"
  1649. deprecated="not deprecated">
  1650. <implements name="org.apache.hadoop.conf.Configurable"/>
  1651. <constructor name="Configured"
  1652. static="false" final="false" visibility="public"
  1653. deprecated="not deprecated">
  1654. <doc>
  1655. <![CDATA[Construct a Configured.]]>
  1656. </doc>
  1657. </constructor>
  1658. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1659. static="false" final="false" visibility="public"
  1660. deprecated="not deprecated">
  1661. <doc>
  1662. <![CDATA[Construct a Configured.]]>
  1663. </doc>
  1664. </constructor>
  1665. <method name="setConf"
  1666. abstract="false" native="false" synchronized="false"
  1667. static="false" final="false" visibility="public"
  1668. deprecated="not deprecated">
  1669. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1670. </method>
  1671. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1672. abstract="false" native="false" synchronized="false"
  1673. static="false" final="false" visibility="public"
  1674. deprecated="not deprecated">
  1675. </method>
  1676. <doc>
  1677. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1678. </doc>
  1679. </class>
  1680. <!-- end class org.apache.hadoop.conf.Configured -->
  1681. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1682. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1683. abstract="false"
  1684. static="false" final="false" visibility="public"
  1685. deprecated="not deprecated">
  1686. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1687. static="false" final="false" visibility="public"
  1688. deprecated="not deprecated">
  1689. </constructor>
  1690. <method name="hasTask" return="boolean"
  1691. abstract="false" native="false" synchronized="false"
  1692. static="false" final="false" visibility="public"
  1693. deprecated="not deprecated">
  1694. <doc>
  1695. <![CDATA[Return true if
  1696. - A reconfiguration task has finished or
  1697. - an active reconfiguration task is running]]>
  1698. </doc>
  1699. </method>
  1700. <method name="stopped" return="boolean"
  1701. abstract="false" native="false" synchronized="false"
  1702. static="false" final="false" visibility="public"
  1703. deprecated="not deprecated">
  1704. <doc>
  1705. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1706. no another active task running.]]>
  1707. </doc>
  1708. </method>
  1709. <method name="getStartTime" return="long"
  1710. abstract="false" native="false" synchronized="false"
  1711. static="false" final="false" visibility="public"
  1712. deprecated="not deprecated">
  1713. </method>
  1714. <method name="getEndTime" return="long"
  1715. abstract="false" native="false" synchronized="false"
  1716. static="false" final="false" visibility="public"
  1717. deprecated="not deprecated">
  1718. </method>
  1719. <method name="getStatus" return="java.util.Map"
  1720. abstract="false" native="false" synchronized="false"
  1721. static="false" final="true" visibility="public"
  1722. deprecated="not deprecated">
  1723. </method>
  1724. </class>
  1725. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1726. <doc>
  1727. <![CDATA[Configuration of system parameters.]]>
  1728. </doc>
  1729. </package>
  1730. <package name="org.apache.hadoop.crypto">
  1731. </package>
  1732. <package name="org.apache.hadoop.crypto.key">
  1733. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1734. <class name="KeyProvider" extends="java.lang.Object"
  1735. abstract="true"
  1736. static="false" final="false" visibility="public"
  1737. deprecated="not deprecated">
  1738. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1739. static="false" final="false" visibility="public"
  1740. deprecated="not deprecated">
  1741. <doc>
  1742. <![CDATA[Constructor.
  1743. @param conf configuration for the provider]]>
  1744. </doc>
  1745. </constructor>
  1746. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1747. abstract="false" native="false" synchronized="false"
  1748. static="false" final="false" visibility="public"
  1749. deprecated="not deprecated">
  1750. <doc>
  1751. <![CDATA[Return the provider configuration.
  1752. @return the provider configuration]]>
  1753. </doc>
  1754. </method>
  1755. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1756. abstract="false" native="false" synchronized="false"
  1757. static="true" final="false" visibility="public"
  1758. deprecated="not deprecated">
  1759. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1760. <doc>
  1761. <![CDATA[A helper function to create an options object.
  1762. @param conf the configuration to use
  1763. @return a new options object]]>
  1764. </doc>
  1765. </method>
  1766. <method name="isTransient" return="boolean"
  1767. abstract="false" native="false" synchronized="false"
  1768. static="false" final="false" visibility="public"
  1769. deprecated="not deprecated">
  1770. <doc>
  1771. <![CDATA[Indicates whether this provider represents a store
  1772. that is intended for transient use - such as the UserProvider
  1773. is. These providers are generally used to provide access to
  1774. keying material rather than for long term storage.
  1775. @return true if transient, false otherwise]]>
  1776. </doc>
  1777. </method>
  1778. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1779. abstract="true" native="false" synchronized="false"
  1780. static="false" final="false" visibility="public"
  1781. deprecated="not deprecated">
  1782. <param name="versionName" type="java.lang.String"/>
  1783. <exception name="IOException" type="java.io.IOException"/>
  1784. <doc>
  1785. <![CDATA[Get the key material for a specific version of the key. This method is used
  1786. when decrypting data.
  1787. @param versionName the name of a specific version of the key
  1788. @return the key material
  1789. @throws IOException]]>
  1790. </doc>
  1791. </method>
  1792. <method name="getKeys" return="java.util.List"
  1793. abstract="true" native="false" synchronized="false"
  1794. static="false" final="false" visibility="public"
  1795. deprecated="not deprecated">
  1796. <exception name="IOException" type="java.io.IOException"/>
  1797. <doc>
  1798. <![CDATA[Get the key names for all keys.
  1799. @return the list of key names
  1800. @throws IOException]]>
  1801. </doc>
  1802. </method>
  1803. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1804. abstract="false" native="false" synchronized="false"
  1805. static="false" final="false" visibility="public"
  1806. deprecated="not deprecated">
  1807. <param name="names" type="java.lang.String[]"/>
  1808. <exception name="IOException" type="java.io.IOException"/>
  1809. <doc>
  1810. <![CDATA[Get key metadata in bulk.
  1811. @param names the names of the keys to get
  1812. @throws IOException]]>
  1813. </doc>
  1814. </method>
  1815. <method name="getKeyVersions" return="java.util.List"
  1816. abstract="true" native="false" synchronized="false"
  1817. static="false" final="false" visibility="public"
  1818. deprecated="not deprecated">
  1819. <param name="name" type="java.lang.String"/>
  1820. <exception name="IOException" type="java.io.IOException"/>
  1821. <doc>
  1822. <![CDATA[Get the key material for all versions of a specific key name.
  1823. @return the list of key material
  1824. @throws IOException]]>
  1825. </doc>
  1826. </method>
  1827. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1828. abstract="false" native="false" synchronized="false"
  1829. static="false" final="false" visibility="public"
  1830. deprecated="not deprecated">
  1831. <param name="name" type="java.lang.String"/>
  1832. <exception name="IOException" type="java.io.IOException"/>
  1833. <doc>
  1834. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1835. data.
  1836. @param name the base name of the key
  1837. @return the version name of the current version of the key or null if the
  1838. key version doesn't exist
  1839. @throws IOException]]>
  1840. </doc>
  1841. </method>
  1842. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1843. abstract="true" native="false" synchronized="false"
  1844. static="false" final="false" visibility="public"
  1845. deprecated="not deprecated">
  1846. <param name="name" type="java.lang.String"/>
  1847. <exception name="IOException" type="java.io.IOException"/>
  1848. <doc>
  1849. <![CDATA[Get metadata about the key.
  1850. @param name the basename of the key
  1851. @return the key's metadata or null if the key doesn't exist
  1852. @throws IOException]]>
  1853. </doc>
  1854. </method>
  1855. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1856. abstract="true" native="false" synchronized="false"
  1857. static="false" final="false" visibility="public"
  1858. deprecated="not deprecated">
  1859. <param name="name" type="java.lang.String"/>
  1860. <param name="material" type="byte[]"/>
  1861. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1862. <exception name="IOException" type="java.io.IOException"/>
  1863. <doc>
  1864. <![CDATA[Create a new key. The given key must not already exist.
  1865. @param name the base name of the key
  1866. @param material the key material for the first version of the key.
  1867. @param options the options for the new key.
  1868. @return the version name of the first version of the key.
  1869. @throws IOException]]>
  1870. </doc>
  1871. </method>
  1872. <method name="generateKey" return="byte[]"
  1873. abstract="false" native="false" synchronized="false"
  1874. static="false" final="false" visibility="protected"
  1875. deprecated="not deprecated">
  1876. <param name="size" type="int"/>
  1877. <param name="algorithm" type="java.lang.String"/>
  1878. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1879. <doc>
  1880. <![CDATA[Generates a key material.
  1881. @param size length of the key.
  1882. @param algorithm algorithm to use for generating the key.
  1883. @return the generated key.
  1884. @throws NoSuchAlgorithmException]]>
  1885. </doc>
  1886. </method>
  1887. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1888. abstract="false" native="false" synchronized="false"
  1889. static="false" final="false" visibility="public"
  1890. deprecated="not deprecated">
  1891. <param name="name" type="java.lang.String"/>
  1892. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1893. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1894. <exception name="IOException" type="java.io.IOException"/>
  1895. <doc>
  1896. <![CDATA[Create a new key generating the material for it.
  1897. The given key must not already exist.
  1898. <p/>
  1899. This implementation generates the key material and calls the
  1900. {@link #createKey(String, byte[], Options)} method.
  1901. @param name the base name of the key
  1902. @param options the options for the new key.
  1903. @return the version name of the first version of the key.
  1904. @throws IOException
  1905. @throws NoSuchAlgorithmException]]>
  1906. </doc>
  1907. </method>
  1908. <method name="deleteKey"
  1909. abstract="true" native="false" synchronized="false"
  1910. static="false" final="false" visibility="public"
  1911. deprecated="not deprecated">
  1912. <param name="name" type="java.lang.String"/>
  1913. <exception name="IOException" type="java.io.IOException"/>
  1914. <doc>
  1915. <![CDATA[Delete the given key.
  1916. @param name the name of the key to delete
  1917. @throws IOException]]>
  1918. </doc>
  1919. </method>
  1920. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1921. abstract="true" native="false" synchronized="false"
  1922. static="false" final="false" visibility="public"
  1923. deprecated="not deprecated">
  1924. <param name="name" type="java.lang.String"/>
  1925. <param name="material" type="byte[]"/>
  1926. <exception name="IOException" type="java.io.IOException"/>
  1927. <doc>
  1928. <![CDATA[Roll a new version of the given key.
  1929. @param name the basename of the key
  1930. @param material the new key material
  1931. @return the name of the new version of the key
  1932. @throws IOException]]>
  1933. </doc>
  1934. </method>
  1935. <method name="close"
  1936. abstract="false" native="false" synchronized="false"
  1937. static="false" final="false" visibility="public"
  1938. deprecated="not deprecated">
  1939. <exception name="IOException" type="java.io.IOException"/>
  1940. <doc>
  1941. <![CDATA[Can be used by implementing classes to close any resources
  1942. that require closing]]>
  1943. </doc>
  1944. </method>
  1945. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1946. abstract="false" native="false" synchronized="false"
  1947. static="false" final="false" visibility="public"
  1948. deprecated="not deprecated">
  1949. <param name="name" type="java.lang.String"/>
  1950. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1951. <exception name="IOException" type="java.io.IOException"/>
  1952. <doc>
  1953. <![CDATA[Roll a new version of the given key generating the material for it.
  1954. <p/>
  1955. This implementation generates the key material and calls the
  1956. {@link #rollNewVersion(String, byte[])} method.
  1957. @param name the basename of the key
  1958. @return the name of the new version of the key
  1959. @throws IOException]]>
  1960. </doc>
  1961. </method>
  1962. <method name="flush"
  1963. abstract="true" native="false" synchronized="false"
  1964. static="false" final="false" visibility="public"
  1965. deprecated="not deprecated">
  1966. <exception name="IOException" type="java.io.IOException"/>
  1967. <doc>
  1968. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  1969. @throws IOException]]>
  1970. </doc>
  1971. </method>
  1972. <method name="getBaseName" return="java.lang.String"
  1973. abstract="false" native="false" synchronized="false"
  1974. static="true" final="false" visibility="public"
  1975. deprecated="not deprecated">
  1976. <param name="versionName" type="java.lang.String"/>
  1977. <exception name="IOException" type="java.io.IOException"/>
  1978. <doc>
  1979. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  1980. "/aaa/bbb".
  1981. @param versionName the version name to split
  1982. @return the base name of the key
  1983. @throws IOException]]>
  1984. </doc>
  1985. </method>
  1986. <method name="buildVersionName" return="java.lang.String"
  1987. abstract="false" native="false" synchronized="false"
  1988. static="true" final="false" visibility="protected"
  1989. deprecated="not deprecated">
  1990. <param name="name" type="java.lang.String"/>
  1991. <param name="version" type="int"/>
  1992. <doc>
  1993. <![CDATA[Build a version string from a basename and version number. Converts
  1994. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  1995. @param name the basename of the key
  1996. @param version the version of the key
  1997. @return the versionName of the key.]]>
  1998. </doc>
  1999. </method>
  2000. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2001. abstract="false" native="false" synchronized="false"
  2002. static="true" final="false" visibility="public"
  2003. deprecated="not deprecated">
  2004. <param name="providerList" type="java.util.List"/>
  2005. <param name="keyName" type="java.lang.String"/>
  2006. <exception name="IOException" type="java.io.IOException"/>
  2007. <doc>
  2008. <![CDATA[Find the provider with the given key.
  2009. @param providerList the list of providers
  2010. @param keyName the key name we are looking for
  2011. @return the KeyProvider that has the key]]>
  2012. </doc>
  2013. </method>
  2014. <method name="needsPassword" return="boolean"
  2015. abstract="false" native="false" synchronized="false"
  2016. static="false" final="false" visibility="public"
  2017. deprecated="not deprecated">
  2018. <exception name="IOException" type="java.io.IOException"/>
  2019. <doc>
  2020. <![CDATA[Does this provider require a password? This means that a password is
  2021. required for normal operation, and it has not been found through normal
  2022. means. If true, the password should be provided by the caller using
  2023. setPassword().
  2024. @return Whether or not the provider requires a password
  2025. @throws IOException]]>
  2026. </doc>
  2027. </method>
  2028. <method name="noPasswordWarning" return="java.lang.String"
  2029. abstract="false" native="false" synchronized="false"
  2030. static="false" final="false" visibility="public"
  2031. deprecated="not deprecated">
  2032. <doc>
  2033. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2034. return a warning and instructions for supplying said password to the
  2035. provider.
  2036. @return A warning and instructions for supplying the password]]>
  2037. </doc>
  2038. </method>
  2039. <method name="noPasswordError" return="java.lang.String"
  2040. abstract="false" native="false" synchronized="false"
  2041. static="false" final="false" visibility="public"
  2042. deprecated="not deprecated">
  2043. <doc>
  2044. <![CDATA[If a password for the provider is needed, but is not provided, this will
  2045. return an error message and instructions for supplying said password to
  2046. the provider.
  2047. @return An error message and instructions for supplying the password]]>
  2048. </doc>
  2049. </method>
  2050. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  2051. transient="false" volatile="false"
  2052. static="true" final="true" visibility="public"
  2053. deprecated="not deprecated">
  2054. </field>
  2055. <field name="DEFAULT_CIPHER" type="java.lang.String"
  2056. transient="false" volatile="false"
  2057. static="true" final="true" visibility="public"
  2058. deprecated="not deprecated">
  2059. </field>
  2060. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  2061. transient="false" volatile="false"
  2062. static="true" final="true" visibility="public"
  2063. deprecated="not deprecated">
  2064. </field>
  2065. <field name="DEFAULT_BITLENGTH" type="int"
  2066. transient="false" volatile="false"
  2067. static="true" final="true" visibility="public"
  2068. deprecated="not deprecated">
  2069. </field>
  2070. <field name="JCEKS_KEY_SERIALFILTER_DEFAULT" type="java.lang.String"
  2071. transient="false" volatile="false"
  2072. static="true" final="true" visibility="public"
  2073. deprecated="not deprecated">
  2074. </field>
  2075. <field name="JCEKS_KEY_SERIAL_FILTER" type="java.lang.String"
  2076. transient="false" volatile="false"
  2077. static="true" final="true" visibility="public"
  2078. deprecated="not deprecated">
  2079. </field>
  2080. <doc>
  2081. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  2082. abstraction to separate key storage from users of encryption. It
  2083. is intended to support getting or storing keys in a variety of ways,
  2084. including third party bindings.
  2085. <P/>
  2086. <code>KeyProvider</code> implementations must be thread safe.]]>
  2087. </doc>
  2088. </class>
  2089. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  2090. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2091. <class name="KeyProviderFactory" extends="java.lang.Object"
  2092. abstract="true"
  2093. static="false" final="false" visibility="public"
  2094. deprecated="not deprecated">
  2095. <constructor name="KeyProviderFactory"
  2096. static="false" final="false" visibility="public"
  2097. deprecated="not deprecated">
  2098. </constructor>
  2099. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  2100. abstract="true" native="false" synchronized="false"
  2101. static="false" final="false" visibility="public"
  2102. deprecated="not deprecated">
  2103. <param name="providerName" type="java.net.URI"/>
  2104. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2105. <exception name="IOException" type="java.io.IOException"/>
  2106. </method>
  2107. <method name="getProviders" return="java.util.List"
  2108. abstract="false" native="false" synchronized="false"
  2109. static="true" final="false" visibility="public"
  2110. deprecated="not deprecated">
  2111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2112. <exception name="IOException" type="java.io.IOException"/>
  2113. </method>
  2114. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  2115. abstract="false" native="false" synchronized="false"
  2116. static="true" final="false" visibility="public"
  2117. deprecated="not deprecated">
  2118. <param name="uri" type="java.net.URI"/>
  2119. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2120. <exception name="IOException" type="java.io.IOException"/>
  2121. <doc>
  2122. <![CDATA[Create a KeyProvider based on a provided URI.
  2123. @param uri key provider URI
  2124. @param conf configuration to initialize the key provider
  2125. @return the key provider for the specified URI, or <code>NULL</code> if
  2126. a provider for the specified URI scheme could not be found.
  2127. @throws IOException thrown if the provider failed to initialize.]]>
  2128. </doc>
  2129. </method>
  2130. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  2131. transient="false" volatile="false"
  2132. static="true" final="true" visibility="public"
  2133. deprecated="not deprecated">
  2134. </field>
  2135. <doc>
  2136. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  2137. Configuration. It uses a service loader interface to find the available
  2138. KeyProviders and create them based on the list of URIs.]]>
  2139. </doc>
  2140. </class>
  2141. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  2142. </package>
  2143. <package name="org.apache.hadoop.crypto.key.kms">
  2144. </package>
  2145. <package name="org.apache.hadoop.crypto.random">
  2146. </package>
  2147. <package name="org.apache.hadoop.fs">
  2148. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  2149. <class name="AbstractFileSystem" extends="java.lang.Object"
  2150. abstract="true"
  2151. static="false" final="false" visibility="public"
  2152. deprecated="not deprecated">
  2153. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  2157. <doc>
  2158. <![CDATA[Constructor to be called by subclasses.
  2159. @param uri for this file system.
  2160. @param supportedScheme the scheme supported by the implementor
  2161. @param authorityNeeded if true then theURI must have authority, if false
  2162. then the URI must have null authority.
  2163. @throws URISyntaxException <code>uri</code> has syntax error]]>
  2164. </doc>
  2165. </constructor>
  2166. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2167. abstract="false" native="false" synchronized="false"
  2168. static="false" final="false" visibility="public"
  2169. deprecated="not deprecated">
  2170. </method>
  2171. <method name="isValidName" return="boolean"
  2172. abstract="false" native="false" synchronized="false"
  2173. static="false" final="false" visibility="public"
  2174. deprecated="not deprecated">
  2175. <param name="src" type="java.lang.String"/>
  2176. <doc>
  2177. <![CDATA[Returns true if the specified string is considered valid in the path part
  2178. of a URI by this file system. The default implementation enforces the rules
  2179. of HDFS, but subclasses may override this method to implement specific
  2180. validation rules for specific file systems.
  2181. @param src String source filename to check, path part of the URI
  2182. @return boolean true if the specified string is considered valid]]>
  2183. </doc>
  2184. </method>
  2185. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2186. abstract="false" native="false" synchronized="false"
  2187. static="true" final="false" visibility="public"
  2188. deprecated="not deprecated">
  2189. <param name="uri" type="java.net.URI"/>
  2190. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2191. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2192. <doc>
  2193. <![CDATA[Create a file system instance for the specified uri using the conf. The
  2194. conf is used to find the class name that implements the file system. The
  2195. conf is also passed to the file system for its configuration.
  2196. @param uri URI of the file system
  2197. @param conf Configuration for the file system
  2198. @return Returns the file system for the given URI
  2199. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  2200. not found]]>
  2201. </doc>
  2202. </method>
  2203. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  2204. abstract="false" native="false" synchronized="true"
  2205. static="true" final="false" visibility="protected"
  2206. deprecated="not deprecated">
  2207. <param name="uri" type="java.net.URI"/>
  2208. <doc>
  2209. <![CDATA[Get the statistics for a particular file system.
  2210. @param uri
  2211. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  2212. part of the uri are used.
  2213. @return a statistics object]]>
  2214. </doc>
  2215. </method>
  2216. <method name="clearStatistics"
  2217. abstract="false" native="false" synchronized="true"
  2218. static="true" final="false" visibility="public"
  2219. deprecated="not deprecated">
  2220. </method>
  2221. <method name="printStatistics"
  2222. abstract="false" native="false" synchronized="true"
  2223. static="true" final="false" visibility="public"
  2224. deprecated="not deprecated">
  2225. <doc>
  2226. <![CDATA[Prints statistics for all file systems.]]>
  2227. </doc>
  2228. </method>
  2229. <method name="getAllStatistics" return="java.util.Map"
  2230. abstract="false" native="false" synchronized="true"
  2231. static="true" final="false" visibility="protected"
  2232. deprecated="not deprecated">
  2233. </method>
  2234. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  2235. abstract="false" native="false" synchronized="false"
  2236. static="true" final="false" visibility="public"
  2237. deprecated="not deprecated">
  2238. <param name="uri" type="java.net.URI"/>
  2239. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2240. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2241. <doc>
  2242. <![CDATA[The main factory method for creating a file system. Get a file system for
  2243. the URI's scheme and authority. The scheme of the <code>uri</code>
  2244. determines a configuration property name,
  2245. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2246. AbstractFileSystem class.
  2247. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2248. @param uri for the file system to be created.
  2249. @param conf which is passed to the file system impl.
  2250. @return file system for the given URI.
  2251. @throws UnsupportedFileSystemException if the file system for
  2252. <code>uri</code> is not supported.]]>
  2253. </doc>
  2254. </method>
  2255. <method name="checkScheme"
  2256. abstract="false" native="false" synchronized="false"
  2257. static="false" final="false" visibility="public"
  2258. deprecated="not deprecated">
  2259. <param name="uri" type="java.net.URI"/>
  2260. <param name="supportedScheme" type="java.lang.String"/>
  2261. <doc>
  2262. <![CDATA[Check that the Uri's scheme matches
  2263. @param uri
  2264. @param supportedScheme]]>
  2265. </doc>
  2266. </method>
  2267. <method name="getUriDefaultPort" return="int"
  2268. abstract="true" native="false" synchronized="false"
  2269. static="false" final="false" visibility="public"
  2270. deprecated="not deprecated">
  2271. <doc>
  2272. <![CDATA[The default port of this file system.
  2273. @return default port of this file system's Uri scheme
  2274. A uri with a port of -1 => default port;]]>
  2275. </doc>
  2276. </method>
  2277. <method name="getUri" return="java.net.URI"
  2278. abstract="false" native="false" synchronized="false"
  2279. static="false" final="false" visibility="public"
  2280. deprecated="not deprecated">
  2281. <doc>
  2282. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2283. @return the uri of this file system.]]>
  2284. </doc>
  2285. </method>
  2286. <method name="checkPath"
  2287. abstract="false" native="false" synchronized="false"
  2288. static="false" final="false" visibility="public"
  2289. deprecated="not deprecated">
  2290. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2291. <doc>
  2292. <![CDATA[Check that a Path belongs to this FileSystem.
  2293. If the path is fully qualified URI, then its scheme and authority
  2294. matches that of this file system. Otherwise the path must be
  2295. slash-relative name.
  2296. @throws InvalidPathException if the path is invalid]]>
  2297. </doc>
  2298. </method>
  2299. <method name="getUriPath" return="java.lang.String"
  2300. abstract="false" native="false" synchronized="false"
  2301. static="false" final="false" visibility="public"
  2302. deprecated="not deprecated">
  2303. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2304. <doc>
  2305. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2306. and that the path-part is a valid name.
  2307. @param p path
  2308. @return path-part of the Path p]]>
  2309. </doc>
  2310. </method>
  2311. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2312. abstract="false" native="false" synchronized="false"
  2313. static="false" final="false" visibility="public"
  2314. deprecated="not deprecated">
  2315. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2316. <doc>
  2317. <![CDATA[Make the path fully qualified to this file system
  2318. @param path
  2319. @return the qualified path]]>
  2320. </doc>
  2321. </method>
  2322. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2323. abstract="false" native="false" synchronized="false"
  2324. static="false" final="false" visibility="public"
  2325. deprecated="not deprecated">
  2326. <doc>
  2327. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2328. that is used as the starting workingDir. For other file systems
  2329. like HDFS there is no built in notion of an initial workingDir.
  2330. @return the initial workingDir if the file system has such a notion
  2331. otherwise return a null.]]>
  2332. </doc>
  2333. </method>
  2334. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2335. abstract="false" native="false" synchronized="false"
  2336. static="false" final="false" visibility="public"
  2337. deprecated="not deprecated">
  2338. <doc>
  2339. <![CDATA[Return the current user's home directory in this file system.
  2340. The default implementation returns "/user/$USER/".
  2341. @return current user's home directory.]]>
  2342. </doc>
  2343. </method>
  2344. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2345. abstract="true" native="false" synchronized="false"
  2346. static="false" final="false" visibility="public"
  2347. deprecated="use {@link #getServerDefaults(Path)} instead">
  2348. <exception name="IOException" type="java.io.IOException"/>
  2349. <doc>
  2350. <![CDATA[Return a set of server default configuration values.
  2351. @return server default configuration values
  2352. @throws IOException an I/O error occurred
  2353. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  2354. </doc>
  2355. </method>
  2356. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2357. abstract="false" native="false" synchronized="false"
  2358. static="false" final="false" visibility="public"
  2359. deprecated="not deprecated">
  2360. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2361. <exception name="IOException" type="java.io.IOException"/>
  2362. <doc>
  2363. <![CDATA[Return a set of server default configuration values based on path.
  2364. @param f path to fetch server defaults
  2365. @return server default configuration values for path
  2366. @throws IOException an I/O error occurred]]>
  2367. </doc>
  2368. </method>
  2369. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2370. abstract="false" native="false" synchronized="false"
  2371. static="false" final="false" visibility="public"
  2372. deprecated="not deprecated">
  2373. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2374. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2375. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2376. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2377. <exception name="IOException" type="java.io.IOException"/>
  2378. <doc>
  2379. <![CDATA[Return the fully-qualified path of path f resolving the path
  2380. through any internal symlinks or mount point
  2381. @param p path to be resolved
  2382. @return fully qualified path
  2383. @throws FileNotFoundException, AccessControlException, IOException
  2384. UnresolvedLinkException if symbolic link on path cannot be resolved
  2385. internally]]>
  2386. </doc>
  2387. </method>
  2388. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2389. abstract="false" native="false" synchronized="false"
  2390. static="false" final="true" visibility="public"
  2391. deprecated="not deprecated">
  2392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2393. <param name="createFlag" type="java.util.EnumSet"/>
  2394. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2395. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2396. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2397. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2398. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2399. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2400. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2401. <exception name="IOException" type="java.io.IOException"/>
  2402. <doc>
  2403. <![CDATA[The specification of this method matches that of
  2404. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2405. that the Path f must be fully qualified and the permission is absolute
  2406. (i.e. umask has been applied).]]>
  2407. </doc>
  2408. </method>
  2409. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2410. abstract="true" native="false" synchronized="false"
  2411. static="false" final="false" visibility="public"
  2412. deprecated="not deprecated">
  2413. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2414. <param name="flag" type="java.util.EnumSet"/>
  2415. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2416. <param name="bufferSize" type="int"/>
  2417. <param name="replication" type="short"/>
  2418. <param name="blockSize" type="long"/>
  2419. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2420. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2421. <param name="createParent" type="boolean"/>
  2422. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2423. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2424. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2425. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2426. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2427. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2428. <exception name="IOException" type="java.io.IOException"/>
  2429. <doc>
  2430. <![CDATA[The specification of this method matches that of
  2431. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2432. have been declared explicitly.]]>
  2433. </doc>
  2434. </method>
  2435. <method name="mkdir"
  2436. abstract="true" native="false" synchronized="false"
  2437. static="false" final="false" visibility="public"
  2438. deprecated="not deprecated">
  2439. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2440. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2441. <param name="createParent" type="boolean"/>
  2442. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2443. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2444. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2445. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2446. <exception name="IOException" type="java.io.IOException"/>
  2447. <doc>
  2448. <![CDATA[The specification of this method matches that of
  2449. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2450. f must be fully qualified and the permission is absolute (i.e.
  2451. umask has been applied).]]>
  2452. </doc>
  2453. </method>
  2454. <method name="delete" return="boolean"
  2455. abstract="true" 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. <param name="recursive" type="boolean"/>
  2460. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2461. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2462. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2463. <exception name="IOException" type="java.io.IOException"/>
  2464. <doc>
  2465. <![CDATA[The specification of this method matches that of
  2466. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2467. this file system.]]>
  2468. </doc>
  2469. </method>
  2470. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2471. abstract="false" native="false" synchronized="false"
  2472. static="false" final="false" visibility="public"
  2473. deprecated="not deprecated">
  2474. <param name="f" type="org.apache.hadoop.fs.Path"/>
  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)} except that Path f must be for this
  2482. file system.]]>
  2483. </doc>
  2484. </method>
  2485. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2486. abstract="true" 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="bufferSize" type="int"/>
  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#open(Path, int)} except that Path f must be for this
  2498. file system.]]>
  2499. </doc>
  2500. </method>
  2501. <method name="truncate" return="boolean"
  2502. abstract="false" 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="newLength" type="long"/>
  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#truncate(Path, long)} except that Path f must be for
  2514. this file system.]]>
  2515. </doc>
  2516. </method>
  2517. <method name="setReplication" return="boolean"
  2518. abstract="true" native="false" synchronized="false"
  2519. static="false" final="false" visibility="public"
  2520. deprecated="not deprecated">
  2521. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2522. <param name="replication" type="short"/>
  2523. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2524. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2525. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2526. <exception name="IOException" type="java.io.IOException"/>
  2527. <doc>
  2528. <![CDATA[The specification of this method matches that of
  2529. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2530. for this file system.]]>
  2531. </doc>
  2532. </method>
  2533. <method name="rename"
  2534. abstract="false" native="false" synchronized="false"
  2535. static="false" final="true" visibility="public"
  2536. deprecated="not deprecated">
  2537. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2538. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2539. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2540. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2541. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2542. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2543. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2544. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2545. <exception name="IOException" type="java.io.IOException"/>
  2546. <doc>
  2547. <![CDATA[The specification of this method matches that of
  2548. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2549. f must be for this file system.]]>
  2550. </doc>
  2551. </method>
  2552. <method name="renameInternal"
  2553. abstract="true" native="false" synchronized="false"
  2554. static="false" final="false" visibility="public"
  2555. deprecated="not deprecated">
  2556. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2557. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2558. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2559. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2560. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2561. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2562. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[The specification of this method matches that of
  2566. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2567. f must be for this file system and NO OVERWRITE is performed.
  2568. File systems that do not have a built in overwrite need implement only this
  2569. method and can take advantage of the default impl of the other
  2570. {@link #renameInternal(Path, Path, boolean)}]]>
  2571. </doc>
  2572. </method>
  2573. <method name="renameInternal"
  2574. abstract="false" native="false" synchronized="false"
  2575. static="false" final="false" visibility="public"
  2576. deprecated="not deprecated">
  2577. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2578. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2579. <param name="overwrite" type="boolean"/>
  2580. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2581. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2582. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2583. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2584. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2585. <exception name="IOException" type="java.io.IOException"/>
  2586. <doc>
  2587. <![CDATA[The specification of this method matches that of
  2588. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2589. f must be for this file system.]]>
  2590. </doc>
  2591. </method>
  2592. <method name="supportsSymlinks" return="boolean"
  2593. abstract="false" native="false" synchronized="false"
  2594. static="false" final="false" visibility="public"
  2595. deprecated="not deprecated">
  2596. <doc>
  2597. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2598. @return true if filesystem supports symlinks]]>
  2599. </doc>
  2600. </method>
  2601. <method name="createSymlink"
  2602. abstract="false" native="false" synchronized="false"
  2603. static="false" final="false" visibility="public"
  2604. deprecated="not deprecated">
  2605. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2606. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2607. <param name="createParent" type="boolean"/>
  2608. <exception name="IOException" type="java.io.IOException"/>
  2609. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2610. <doc>
  2611. <![CDATA[The specification of this method matches that of
  2612. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2613. </doc>
  2614. </method>
  2615. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2616. abstract="false" native="false" synchronized="false"
  2617. static="false" final="false" visibility="public"
  2618. deprecated="not deprecated">
  2619. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2620. <exception name="IOException" type="java.io.IOException"/>
  2621. <doc>
  2622. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2623. {@link FSLinkResolver}, and differs from the similarly named method
  2624. {@link FileContext#getLinkTarget(Path)}.
  2625. @throws IOException subclass implementations may throw IOException]]>
  2626. </doc>
  2627. </method>
  2628. <method name="setPermission"
  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="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2634. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2635. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2636. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2637. <exception name="IOException" type="java.io.IOException"/>
  2638. <doc>
  2639. <![CDATA[The specification of this method matches that of
  2640. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2641. must be for this file system.]]>
  2642. </doc>
  2643. </method>
  2644. <method name="setOwner"
  2645. abstract="true" native="false" synchronized="false"
  2646. static="false" final="false" visibility="public"
  2647. deprecated="not deprecated">
  2648. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2649. <param name="username" type="java.lang.String"/>
  2650. <param name="groupname" type="java.lang.String"/>
  2651. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2652. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2653. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[The specification of this method matches that of
  2657. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2658. be for this file system.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="setTimes"
  2662. abstract="true" native="false" synchronized="false"
  2663. static="false" final="false" visibility="public"
  2664. deprecated="not deprecated">
  2665. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2666. <param name="mtime" type="long"/>
  2667. <param name="atime" type="long"/>
  2668. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2669. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2670. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2671. <exception name="IOException" type="java.io.IOException"/>
  2672. <doc>
  2673. <![CDATA[The specification of this method matches that of
  2674. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2675. for this file system.]]>
  2676. </doc>
  2677. </method>
  2678. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2679. abstract="true" native="false" synchronized="false"
  2680. static="false" final="false" visibility="public"
  2681. deprecated="not deprecated">
  2682. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2683. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2684. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2685. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2686. <exception name="IOException" type="java.io.IOException"/>
  2687. <doc>
  2688. <![CDATA[The specification of this method matches that of
  2689. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2690. this file system.]]>
  2691. </doc>
  2692. </method>
  2693. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2694. abstract="true" 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="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2701. <exception name="IOException" type="java.io.IOException"/>
  2702. <doc>
  2703. <![CDATA[The specification of this method matches that of
  2704. {@link FileContext#getFileStatus(Path)}
  2705. except that an UnresolvedLinkException may be thrown if a symlink is
  2706. encountered in the path.]]>
  2707. </doc>
  2708. </method>
  2709. <method name="msync"
  2710. abstract="false" native="false" synchronized="false"
  2711. static="false" final="false" visibility="public"
  2712. deprecated="not deprecated">
  2713. <exception name="IOException" type="java.io.IOException"/>
  2714. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  2715. <doc>
  2716. <![CDATA[Synchronize client metadata state.
  2717. <p/>In some FileSystem implementations such as HDFS metadata
  2718. synchronization is essential to guarantee consistency of read requests
  2719. particularly in HA setting.
  2720. @throws IOException
  2721. @throws UnsupportedOperationException]]>
  2722. </doc>
  2723. </method>
  2724. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2725. abstract="false" native="false" synchronized="false"
  2726. static="false" final="false" visibility="public"
  2727. deprecated="not deprecated">
  2728. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2729. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2730. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2731. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2732. <exception name="IOException" type="java.io.IOException"/>
  2733. <doc>
  2734. <![CDATA[The specification of this method matches that of
  2735. {@link FileContext#getFileLinkStatus(Path)}
  2736. except that an UnresolvedLinkException may be thrown if a symlink is
  2737. encountered in the path leading up to the final path component.
  2738. If the file system does not support symlinks then the behavior is
  2739. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2740. </doc>
  2741. </method>
  2742. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2743. abstract="true" native="false" synchronized="false"
  2744. static="false" final="false" visibility="public"
  2745. deprecated="not deprecated">
  2746. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2747. <param name="start" type="long"/>
  2748. <param name="len" type="long"/>
  2749. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2750. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2751. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2752. <exception name="IOException" type="java.io.IOException"/>
  2753. <doc>
  2754. <![CDATA[The specification of this method matches that of
  2755. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2756. Path f must be for this file system.]]>
  2757. </doc>
  2758. </method>
  2759. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2760. abstract="false" native="false" synchronized="false"
  2761. static="false" final="false" visibility="public"
  2762. deprecated="not deprecated">
  2763. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2764. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2765. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2766. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2767. <exception name="IOException" type="java.io.IOException"/>
  2768. <doc>
  2769. <![CDATA[The specification of this method matches that of
  2770. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2771. file system.]]>
  2772. </doc>
  2773. </method>
  2774. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2775. abstract="true" native="false" synchronized="false"
  2776. static="false" final="false" visibility="public"
  2777. deprecated="not deprecated">
  2778. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2779. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2780. <exception name="IOException" type="java.io.IOException"/>
  2781. <doc>
  2782. <![CDATA[The specification of this method matches that of
  2783. {@link FileContext#getFsStatus(Path)}.]]>
  2784. </doc>
  2785. </method>
  2786. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2787. abstract="false" native="false" synchronized="false"
  2788. static="false" final="false" visibility="public"
  2789. deprecated="not deprecated">
  2790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2791. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2792. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2793. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2794. <exception name="IOException" type="java.io.IOException"/>
  2795. <doc>
  2796. <![CDATA[The specification of this method matches that of
  2797. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2798. file system.]]>
  2799. </doc>
  2800. </method>
  2801. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2802. abstract="false" native="false" synchronized="false"
  2803. static="false" final="false" visibility="public"
  2804. deprecated="not deprecated">
  2805. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2806. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2807. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2808. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2809. <exception name="IOException" type="java.io.IOException"/>
  2810. <doc>
  2811. <![CDATA[The specification of this method matches that of
  2812. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2813. must be for this file system.]]>
  2814. </doc>
  2815. </method>
  2816. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2817. abstract="true" native="false" synchronized="false"
  2818. static="false" final="false" visibility="public"
  2819. deprecated="not deprecated">
  2820. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2821. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2822. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2823. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2824. <exception name="IOException" type="java.io.IOException"/>
  2825. <doc>
  2826. <![CDATA[The specification of this method matches that of
  2827. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2828. for this file system.]]>
  2829. </doc>
  2830. </method>
  2831. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2832. abstract="false" native="false" synchronized="false"
  2833. static="false" final="false" visibility="public"
  2834. deprecated="not deprecated">
  2835. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2836. <exception name="IOException" type="java.io.IOException"/>
  2837. <doc>
  2838. <![CDATA[@return an iterator over the corrupt files under the given path
  2839. (may contain duplicates if a file has more than one corrupt block)
  2840. @throws IOException]]>
  2841. </doc>
  2842. </method>
  2843. <method name="setVerifyChecksum"
  2844. abstract="true" native="false" synchronized="false"
  2845. static="false" final="false" visibility="public"
  2846. deprecated="not deprecated">
  2847. <param name="verifyChecksum" type="boolean"/>
  2848. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2849. <exception name="IOException" type="java.io.IOException"/>
  2850. <doc>
  2851. <![CDATA[The specification of this method matches that of
  2852. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2853. must be for this file system.]]>
  2854. </doc>
  2855. </method>
  2856. <method name="getCanonicalServiceName" return="java.lang.String"
  2857. abstract="false" native="false" synchronized="false"
  2858. static="false" final="false" visibility="public"
  2859. deprecated="not deprecated">
  2860. <doc>
  2861. <![CDATA[Get a canonical name for this file system.
  2862. @return a URI string that uniquely identifies this file system]]>
  2863. </doc>
  2864. </method>
  2865. <method name="modifyAclEntries"
  2866. abstract="false" native="false" synchronized="false"
  2867. static="false" final="false" visibility="public"
  2868. deprecated="not deprecated">
  2869. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2870. <param name="aclSpec" type="java.util.List"/>
  2871. <exception name="IOException" type="java.io.IOException"/>
  2872. <doc>
  2873. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  2874. entries or modify the permissions on existing ACL entries. All existing
  2875. ACL entries that are not specified in this call are retained without
  2876. changes. (Modifications are merged into the current ACL.)
  2877. @param path Path to modify
  2878. @param aclSpec List<AclEntry> describing modifications
  2879. @throws IOException if an ACL could not be modified]]>
  2880. </doc>
  2881. </method>
  2882. <method name="removeAclEntries"
  2883. abstract="false" native="false" synchronized="false"
  2884. static="false" final="false" visibility="public"
  2885. deprecated="not deprecated">
  2886. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2887. <param name="aclSpec" type="java.util.List"/>
  2888. <exception name="IOException" type="java.io.IOException"/>
  2889. <doc>
  2890. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  2891. retained.
  2892. @param path Path to modify
  2893. @param aclSpec List<AclEntry> describing entries to remove
  2894. @throws IOException if an ACL could not be modified]]>
  2895. </doc>
  2896. </method>
  2897. <method name="removeDefaultAcl"
  2898. abstract="false" native="false" synchronized="false"
  2899. static="false" final="false" visibility="public"
  2900. deprecated="not deprecated">
  2901. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2902. <exception name="IOException" type="java.io.IOException"/>
  2903. <doc>
  2904. <![CDATA[Removes all default ACL entries from files and directories.
  2905. @param path Path to modify
  2906. @throws IOException if an ACL could not be modified]]>
  2907. </doc>
  2908. </method>
  2909. <method name="removeAcl"
  2910. abstract="false" native="false" synchronized="false"
  2911. static="false" final="false" visibility="public"
  2912. deprecated="not deprecated">
  2913. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2914. <exception name="IOException" type="java.io.IOException"/>
  2915. <doc>
  2916. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  2917. for user, group, and others are retained for compatibility with permission
  2918. bits.
  2919. @param path Path to modify
  2920. @throws IOException if an ACL could not be removed]]>
  2921. </doc>
  2922. </method>
  2923. <method name="setAcl"
  2924. abstract="false" native="false" synchronized="false"
  2925. static="false" final="false" visibility="public"
  2926. deprecated="not deprecated">
  2927. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2928. <param name="aclSpec" type="java.util.List"/>
  2929. <exception name="IOException" type="java.io.IOException"/>
  2930. <doc>
  2931. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  2932. entries.
  2933. @param path Path to modify
  2934. @param aclSpec List<AclEntry> describing modifications, must include entries
  2935. for user, group, and others for compatibility with permission bits.
  2936. @throws IOException if an ACL could not be modified]]>
  2937. </doc>
  2938. </method>
  2939. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  2940. abstract="false" native="false" synchronized="false"
  2941. static="false" final="false" visibility="public"
  2942. deprecated="not deprecated">
  2943. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2944. <exception name="IOException" type="java.io.IOException"/>
  2945. <doc>
  2946. <![CDATA[Gets the ACLs of files and directories.
  2947. @param path Path to get
  2948. @return RemoteIterator<AclStatus> which returns each AclStatus
  2949. @throws IOException if an ACL could not be read]]>
  2950. </doc>
  2951. </method>
  2952. <method name="setXAttr"
  2953. abstract="false" native="false" synchronized="false"
  2954. static="false" final="false" visibility="public"
  2955. deprecated="not deprecated">
  2956. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2957. <param name="name" type="java.lang.String"/>
  2958. <param name="value" type="byte[]"/>
  2959. <exception name="IOException" type="java.io.IOException"/>
  2960. <doc>
  2961. <![CDATA[Set an xattr of a file or directory.
  2962. The name must be prefixed with the namespace followed by ".". For example,
  2963. "user.attr".
  2964. <p/>
  2965. Refer to the HDFS extended attributes user documentation for details.
  2966. @param path Path to modify
  2967. @param name xattr name.
  2968. @param value xattr value.
  2969. @throws IOException]]>
  2970. </doc>
  2971. </method>
  2972. <method name="setXAttr"
  2973. abstract="false" native="false" synchronized="false"
  2974. static="false" final="false" visibility="public"
  2975. deprecated="not deprecated">
  2976. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2977. <param name="name" type="java.lang.String"/>
  2978. <param name="value" type="byte[]"/>
  2979. <param name="flag" type="java.util.EnumSet"/>
  2980. <exception name="IOException" type="java.io.IOException"/>
  2981. <doc>
  2982. <![CDATA[Set an xattr of a file or directory.
  2983. The name must be prefixed with the namespace followed by ".". For example,
  2984. "user.attr".
  2985. <p/>
  2986. Refer to the HDFS extended attributes user documentation for details.
  2987. @param path Path to modify
  2988. @param name xattr name.
  2989. @param value xattr value.
  2990. @param flag xattr set flag
  2991. @throws IOException]]>
  2992. </doc>
  2993. </method>
  2994. <method name="getXAttr" return="byte[]"
  2995. abstract="false" native="false" synchronized="false"
  2996. static="false" final="false" visibility="public"
  2997. deprecated="not deprecated">
  2998. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2999. <param name="name" type="java.lang.String"/>
  3000. <exception name="IOException" type="java.io.IOException"/>
  3001. <doc>
  3002. <![CDATA[Get an xattr for a file or directory.
  3003. The name must be prefixed with the namespace followed by ".". For example,
  3004. "user.attr".
  3005. <p/>
  3006. Refer to the HDFS extended attributes user documentation for details.
  3007. @param path Path to get extended attribute
  3008. @param name xattr name.
  3009. @return byte[] xattr value.
  3010. @throws IOException]]>
  3011. </doc>
  3012. </method>
  3013. <method name="getXAttrs" return="java.util.Map"
  3014. abstract="false" native="false" synchronized="false"
  3015. static="false" final="false" visibility="public"
  3016. deprecated="not deprecated">
  3017. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3018. <exception name="IOException" type="java.io.IOException"/>
  3019. <doc>
  3020. <![CDATA[Get all of the xattrs for a file or directory.
  3021. Only those xattrs for which the logged-in user has permissions to view
  3022. are returned.
  3023. <p/>
  3024. Refer to the HDFS extended attributes user documentation for details.
  3025. @param path Path to get extended attributes
  3026. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3027. @throws IOException]]>
  3028. </doc>
  3029. </method>
  3030. <method name="getXAttrs" return="java.util.Map"
  3031. abstract="false" native="false" synchronized="false"
  3032. static="false" final="false" visibility="public"
  3033. deprecated="not deprecated">
  3034. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3035. <param name="names" type="java.util.List"/>
  3036. <exception name="IOException" type="java.io.IOException"/>
  3037. <doc>
  3038. <![CDATA[Get all of the xattrs for a file or directory.
  3039. Only those xattrs for which the logged-in user has permissions to view
  3040. are returned.
  3041. <p/>
  3042. Refer to the HDFS extended attributes user documentation for details.
  3043. @param path Path to get extended attributes
  3044. @param names XAttr names.
  3045. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3046. @throws IOException]]>
  3047. </doc>
  3048. </method>
  3049. <method name="listXAttrs" return="java.util.List"
  3050. abstract="false" native="false" synchronized="false"
  3051. static="false" final="false" visibility="public"
  3052. deprecated="not deprecated">
  3053. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3054. <exception name="IOException" type="java.io.IOException"/>
  3055. <doc>
  3056. <![CDATA[Get all of the xattr names for a file or directory.
  3057. Only the xattr names for which the logged-in user has permissions to view
  3058. are returned.
  3059. <p/>
  3060. Refer to the HDFS extended attributes user documentation for details.
  3061. @param path Path to get extended attributes
  3062. @return Map<String, byte[]> describing the XAttrs of the file or directory
  3063. @throws IOException]]>
  3064. </doc>
  3065. </method>
  3066. <method name="removeXAttr"
  3067. abstract="false" native="false" synchronized="false"
  3068. static="false" final="false" visibility="public"
  3069. deprecated="not deprecated">
  3070. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3071. <param name="name" type="java.lang.String"/>
  3072. <exception name="IOException" type="java.io.IOException"/>
  3073. <doc>
  3074. <![CDATA[Remove an xattr of a file or directory.
  3075. The name must be prefixed with the namespace followed by ".". For example,
  3076. "user.attr".
  3077. <p/>
  3078. Refer to the HDFS extended attributes user documentation for details.
  3079. @param path Path to remove extended attribute
  3080. @param name xattr name
  3081. @throws IOException]]>
  3082. </doc>
  3083. </method>
  3084. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  3085. abstract="false" native="false" synchronized="false"
  3086. static="false" final="false" visibility="public"
  3087. deprecated="not deprecated">
  3088. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3089. <param name="snapshotName" type="java.lang.String"/>
  3090. <exception name="IOException" type="java.io.IOException"/>
  3091. <doc>
  3092. <![CDATA[The specification of this method matches that of
  3093. {@link FileContext#createSnapshot(Path, String)}.]]>
  3094. </doc>
  3095. </method>
  3096. <method name="renameSnapshot"
  3097. abstract="false" native="false" synchronized="false"
  3098. static="false" final="false" visibility="public"
  3099. deprecated="not deprecated">
  3100. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3101. <param name="snapshotOldName" type="java.lang.String"/>
  3102. <param name="snapshotNewName" type="java.lang.String"/>
  3103. <exception name="IOException" type="java.io.IOException"/>
  3104. <doc>
  3105. <![CDATA[The specification of this method matches that of
  3106. {@link FileContext#renameSnapshot(Path, String, String)}.]]>
  3107. </doc>
  3108. </method>
  3109. <method name="deleteSnapshot"
  3110. abstract="false" native="false" synchronized="false"
  3111. static="false" final="false" visibility="public"
  3112. deprecated="not deprecated">
  3113. <param name="snapshotDir" type="org.apache.hadoop.fs.Path"/>
  3114. <param name="snapshotName" type="java.lang.String"/>
  3115. <exception name="IOException" type="java.io.IOException"/>
  3116. <doc>
  3117. <![CDATA[The specification of this method matches that of
  3118. {@link FileContext#deleteSnapshot(Path, String)}.]]>
  3119. </doc>
  3120. </method>
  3121. <method name="setStoragePolicy"
  3122. abstract="false" native="false" synchronized="false"
  3123. static="false" final="false" visibility="public"
  3124. deprecated="not deprecated">
  3125. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3126. <param name="policyName" type="java.lang.String"/>
  3127. <exception name="IOException" type="java.io.IOException"/>
  3128. <doc>
  3129. <![CDATA[Set the storage policy for a given file or directory.
  3130. @param path file or directory path.
  3131. @param policyName the name of the target storage policy. The list
  3132. of supported Storage policies can be retrieved
  3133. via {@link #getAllStoragePolicies}.]]>
  3134. </doc>
  3135. </method>
  3136. <method name="unsetStoragePolicy"
  3137. abstract="false" native="false" synchronized="false"
  3138. static="false" final="false" visibility="public"
  3139. deprecated="not deprecated">
  3140. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3141. <exception name="IOException" type="java.io.IOException"/>
  3142. <doc>
  3143. <![CDATA[Unset the storage policy set for a given file or directory.
  3144. @param src file or directory path.
  3145. @throws IOException]]>
  3146. </doc>
  3147. </method>
  3148. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  3149. abstract="false" native="false" synchronized="false"
  3150. static="false" final="false" visibility="public"
  3151. deprecated="not deprecated">
  3152. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3153. <exception name="IOException" type="java.io.IOException"/>
  3154. <doc>
  3155. <![CDATA[Retrieve the storage policy for a given file or directory.
  3156. @param src file or directory path.
  3157. @return storage policy for give file.
  3158. @throws IOException]]>
  3159. </doc>
  3160. </method>
  3161. <method name="getAllStoragePolicies" return="java.util.Collection"
  3162. abstract="false" native="false" synchronized="false"
  3163. static="false" final="false" visibility="public"
  3164. deprecated="not deprecated">
  3165. <exception name="IOException" type="java.io.IOException"/>
  3166. <doc>
  3167. <![CDATA[Retrieve all the storage policies supported by this file system.
  3168. @return all storage policies supported by this filesystem.
  3169. @throws IOException]]>
  3170. </doc>
  3171. </method>
  3172. <method name="hashCode" return="int"
  3173. abstract="false" native="false" synchronized="false"
  3174. static="false" final="false" visibility="public"
  3175. deprecated="not deprecated">
  3176. </method>
  3177. <method name="equals" return="boolean"
  3178. abstract="false" native="false" synchronized="false"
  3179. static="false" final="false" visibility="public"
  3180. deprecated="not deprecated">
  3181. <param name="other" type="java.lang.Object"/>
  3182. </method>
  3183. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3184. transient="false" volatile="false"
  3185. static="false" final="false" visibility="protected"
  3186. deprecated="not deprecated">
  3187. <doc>
  3188. <![CDATA[The statistics for this file system.]]>
  3189. </doc>
  3190. </field>
  3191. <doc>
  3192. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  3193. (analogous to the VFS of Unix). Applications do not access this class;
  3194. instead they access files across all file systems using {@link FileContext}.
  3195. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  3196. matches the "this" file system (ie same scheme and authority)
  3197. or a Slash-relative name that is assumed to be relative
  3198. to the root of the "this" file system .]]>
  3199. </doc>
  3200. </class>
  3201. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  3202. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  3203. <class name="AvroFSInput" extends="java.lang.Object"
  3204. abstract="false"
  3205. static="false" final="false" visibility="public"
  3206. deprecated="not deprecated">
  3207. <implements name="java.io.Closeable"/>
  3208. <implements name="org.apache.avro.file.SeekableInput"/>
  3209. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  3210. static="false" final="false" visibility="public"
  3211. deprecated="not deprecated">
  3212. <doc>
  3213. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  3214. </doc>
  3215. </constructor>
  3216. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  3217. static="false" final="false" visibility="public"
  3218. deprecated="not deprecated">
  3219. <exception name="IOException" type="java.io.IOException"/>
  3220. <doc>
  3221. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  3222. </doc>
  3223. </constructor>
  3224. <method name="length" return="long"
  3225. abstract="false" native="false" synchronized="false"
  3226. static="false" final="false" visibility="public"
  3227. deprecated="not deprecated">
  3228. </method>
  3229. <method name="read" return="int"
  3230. abstract="false" native="false" synchronized="false"
  3231. static="false" final="false" visibility="public"
  3232. deprecated="not deprecated">
  3233. <param name="b" type="byte[]"/>
  3234. <param name="off" type="int"/>
  3235. <param name="len" type="int"/>
  3236. <exception name="IOException" type="java.io.IOException"/>
  3237. </method>
  3238. <method name="seek"
  3239. abstract="false" native="false" synchronized="false"
  3240. static="false" final="false" visibility="public"
  3241. deprecated="not deprecated">
  3242. <param name="p" type="long"/>
  3243. <exception name="IOException" type="java.io.IOException"/>
  3244. </method>
  3245. <method name="tell" return="long"
  3246. abstract="false" native="false" synchronized="false"
  3247. static="false" final="false" visibility="public"
  3248. deprecated="not deprecated">
  3249. <exception name="IOException" type="java.io.IOException"/>
  3250. </method>
  3251. <method name="close"
  3252. abstract="false" native="false" synchronized="false"
  3253. static="false" final="false" visibility="public"
  3254. deprecated="not deprecated">
  3255. <exception name="IOException" type="java.io.IOException"/>
  3256. </method>
  3257. <doc>
  3258. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  3259. </doc>
  3260. </class>
  3261. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  3262. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  3263. <class name="BlockLocation" extends="java.lang.Object"
  3264. abstract="false"
  3265. static="false" final="false" visibility="public"
  3266. deprecated="not deprecated">
  3267. <constructor name="BlockLocation"
  3268. static="false" final="false" visibility="public"
  3269. deprecated="not deprecated">
  3270. <doc>
  3271. <![CDATA[Default Constructor]]>
  3272. </doc>
  3273. </constructor>
  3274. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  3275. static="false" final="false" visibility="public"
  3276. deprecated="not deprecated">
  3277. <doc>
  3278. <![CDATA[Copy constructor]]>
  3279. </doc>
  3280. </constructor>
  3281. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  3282. static="false" final="false" visibility="public"
  3283. deprecated="not deprecated">
  3284. <doc>
  3285. <![CDATA[Constructor with host, name, offset and length]]>
  3286. </doc>
  3287. </constructor>
  3288. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  3289. static="false" final="false" visibility="public"
  3290. deprecated="not deprecated">
  3291. <doc>
  3292. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  3293. </doc>
  3294. </constructor>
  3295. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  3296. static="false" final="false" visibility="public"
  3297. deprecated="not deprecated">
  3298. <doc>
  3299. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  3300. </doc>
  3301. </constructor>
  3302. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3303. static="false" final="false" visibility="public"
  3304. deprecated="not deprecated">
  3305. <doc>
  3306. <![CDATA[Constructor with host, name, network topology, offset, length
  3307. and corrupt flag]]>
  3308. </doc>
  3309. </constructor>
  3310. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  3311. static="false" final="false" visibility="public"
  3312. deprecated="not deprecated">
  3313. </constructor>
  3314. <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"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. </constructor>
  3318. <method name="getHosts" return="java.lang.String[]"
  3319. abstract="false" native="false" synchronized="false"
  3320. static="false" final="false" visibility="public"
  3321. deprecated="not deprecated">
  3322. <exception name="IOException" type="java.io.IOException"/>
  3323. <doc>
  3324. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  3325. </doc>
  3326. </method>
  3327. <method name="getCachedHosts" return="java.lang.String[]"
  3328. abstract="false" native="false" synchronized="false"
  3329. static="false" final="false" visibility="public"
  3330. deprecated="not deprecated">
  3331. <doc>
  3332. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  3333. </doc>
  3334. </method>
  3335. <method name="getNames" return="java.lang.String[]"
  3336. abstract="false" native="false" synchronized="false"
  3337. static="false" final="false" visibility="public"
  3338. deprecated="not deprecated">
  3339. <exception name="IOException" type="java.io.IOException"/>
  3340. <doc>
  3341. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  3342. </doc>
  3343. </method>
  3344. <method name="getTopologyPaths" return="java.lang.String[]"
  3345. abstract="false" native="false" synchronized="false"
  3346. static="false" final="false" visibility="public"
  3347. deprecated="not deprecated">
  3348. <exception name="IOException" type="java.io.IOException"/>
  3349. <doc>
  3350. <![CDATA[Get the list of network topology paths for each of the hosts.
  3351. The last component of the path is the "name" (IP:xferPort).]]>
  3352. </doc>
  3353. </method>
  3354. <method name="getStorageIds" return="java.lang.String[]"
  3355. abstract="false" native="false" synchronized="false"
  3356. static="false" final="false" visibility="public"
  3357. deprecated="not deprecated">
  3358. <doc>
  3359. <![CDATA[Get the storageID of each replica of the block.]]>
  3360. </doc>
  3361. </method>
  3362. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3363. abstract="false" native="false" synchronized="false"
  3364. static="false" final="false" visibility="public"
  3365. deprecated="not deprecated">
  3366. <doc>
  3367. <![CDATA[Get the storage type of each replica of the block.]]>
  3368. </doc>
  3369. </method>
  3370. <method name="getOffset" return="long"
  3371. abstract="false" native="false" synchronized="false"
  3372. static="false" final="false" visibility="public"
  3373. deprecated="not deprecated">
  3374. <doc>
  3375. <![CDATA[Get the start offset of file associated with this block]]>
  3376. </doc>
  3377. </method>
  3378. <method name="getLength" return="long"
  3379. abstract="false" native="false" synchronized="false"
  3380. static="false" final="false" visibility="public"
  3381. deprecated="not deprecated">
  3382. <doc>
  3383. <![CDATA[Get the length of the block]]>
  3384. </doc>
  3385. </method>
  3386. <method name="isCorrupt" return="boolean"
  3387. abstract="false" native="false" synchronized="false"
  3388. static="false" final="false" visibility="public"
  3389. deprecated="not deprecated">
  3390. <doc>
  3391. <![CDATA[Get the corrupt flag.]]>
  3392. </doc>
  3393. </method>
  3394. <method name="setOffset"
  3395. abstract="false" native="false" synchronized="false"
  3396. static="false" final="false" visibility="public"
  3397. deprecated="not deprecated">
  3398. <param name="offset" type="long"/>
  3399. <doc>
  3400. <![CDATA[Set the start offset of file associated with this block]]>
  3401. </doc>
  3402. </method>
  3403. <method name="setLength"
  3404. abstract="false" native="false" synchronized="false"
  3405. static="false" final="false" visibility="public"
  3406. deprecated="not deprecated">
  3407. <param name="length" type="long"/>
  3408. <doc>
  3409. <![CDATA[Set the length of block]]>
  3410. </doc>
  3411. </method>
  3412. <method name="setCorrupt"
  3413. abstract="false" native="false" synchronized="false"
  3414. static="false" final="false" visibility="public"
  3415. deprecated="not deprecated">
  3416. <param name="corrupt" type="boolean"/>
  3417. <doc>
  3418. <![CDATA[Set the corrupt flag.]]>
  3419. </doc>
  3420. </method>
  3421. <method name="setHosts"
  3422. abstract="false" native="false" synchronized="false"
  3423. static="false" final="false" visibility="public"
  3424. deprecated="not deprecated">
  3425. <param name="hosts" type="java.lang.String[]"/>
  3426. <exception name="IOException" type="java.io.IOException"/>
  3427. <doc>
  3428. <![CDATA[Set the hosts hosting this block]]>
  3429. </doc>
  3430. </method>
  3431. <method name="setCachedHosts"
  3432. abstract="false" native="false" synchronized="false"
  3433. static="false" final="false" visibility="public"
  3434. deprecated="not deprecated">
  3435. <param name="cachedHosts" type="java.lang.String[]"/>
  3436. <doc>
  3437. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3438. </doc>
  3439. </method>
  3440. <method name="setNames"
  3441. abstract="false" native="false" synchronized="false"
  3442. static="false" final="false" visibility="public"
  3443. deprecated="not deprecated">
  3444. <param name="names" type="java.lang.String[]"/>
  3445. <exception name="IOException" type="java.io.IOException"/>
  3446. <doc>
  3447. <![CDATA[Set the names (host:port) hosting this block]]>
  3448. </doc>
  3449. </method>
  3450. <method name="setTopologyPaths"
  3451. abstract="false" native="false" synchronized="false"
  3452. static="false" final="false" visibility="public"
  3453. deprecated="not deprecated">
  3454. <param name="topologyPaths" type="java.lang.String[]"/>
  3455. <exception name="IOException" type="java.io.IOException"/>
  3456. <doc>
  3457. <![CDATA[Set the network topology paths of the hosts]]>
  3458. </doc>
  3459. </method>
  3460. <method name="setStorageIds"
  3461. abstract="false" native="false" synchronized="false"
  3462. static="false" final="false" visibility="public"
  3463. deprecated="not deprecated">
  3464. <param name="storageIds" type="java.lang.String[]"/>
  3465. </method>
  3466. <method name="setStorageTypes"
  3467. abstract="false" native="false" synchronized="false"
  3468. static="false" final="false" visibility="public"
  3469. deprecated="not deprecated">
  3470. <param name="storageTypes" type="org.apache.hadoop.fs.StorageType[]"/>
  3471. </method>
  3472. <method name="toString" return="java.lang.String"
  3473. abstract="false" native="false" synchronized="false"
  3474. static="false" final="false" visibility="public"
  3475. deprecated="not deprecated">
  3476. </method>
  3477. <doc>
  3478. <![CDATA[Represents the network location of a block, information about the hosts
  3479. that contain block replicas, and other block metadata (E.g. the file
  3480. offset associated with the block, length, whether it is corrupt, etc).]]>
  3481. </doc>
  3482. </class>
  3483. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3484. <!-- start interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3485. <interface name="BlockStoragePolicySpi" abstract="true"
  3486. static="false" final="false" visibility="public"
  3487. deprecated="not deprecated">
  3488. <method name="getName" return="java.lang.String"
  3489. abstract="false" native="false" synchronized="false"
  3490. static="false" final="false" visibility="public"
  3491. deprecated="not deprecated">
  3492. <doc>
  3493. <![CDATA[Return the name of the storage policy. Policies are uniquely
  3494. identified by name.
  3495. @return the name of the storage policy.]]>
  3496. </doc>
  3497. </method>
  3498. <method name="getStorageTypes" return="org.apache.hadoop.fs.StorageType[]"
  3499. abstract="false" native="false" synchronized="false"
  3500. static="false" final="false" visibility="public"
  3501. deprecated="not deprecated">
  3502. <doc>
  3503. <![CDATA[Return the preferred storage types associated with this policy. These
  3504. storage types are used sequentially for successive block replicas.
  3505. @return preferred storage types used for placing block replicas.]]>
  3506. </doc>
  3507. </method>
  3508. <method name="getCreationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3509. abstract="false" native="false" synchronized="false"
  3510. static="false" final="false" visibility="public"
  3511. deprecated="not deprecated">
  3512. <doc>
  3513. <![CDATA[Get the fallback storage types for creating new block replicas. Fallback
  3514. storage types are used if the preferred storage types are not available.
  3515. @return fallback storage types for new block replicas..]]>
  3516. </doc>
  3517. </method>
  3518. <method name="getReplicationFallbacks" return="org.apache.hadoop.fs.StorageType[]"
  3519. abstract="false" native="false" synchronized="false"
  3520. static="false" final="false" visibility="public"
  3521. deprecated="not deprecated">
  3522. <doc>
  3523. <![CDATA[Get the fallback storage types for replicating existing block replicas.
  3524. Fallback storage types are used if the preferred storage types are not
  3525. available.
  3526. @return fallback storage types for replicating existing block replicas.]]>
  3527. </doc>
  3528. </method>
  3529. <method name="isCopyOnCreateFile" return="boolean"
  3530. abstract="false" native="false" synchronized="false"
  3531. static="false" final="false" visibility="public"
  3532. deprecated="not deprecated">
  3533. <doc>
  3534. <![CDATA[Returns true if the policy is inherit-only and cannot be changed for
  3535. an existing file.
  3536. @return true if the policy is inherit-only.]]>
  3537. </doc>
  3538. </method>
  3539. <doc>
  3540. <![CDATA[A storage policy specifies the placement of block replicas on specific
  3541. storage types.]]>
  3542. </doc>
  3543. </interface>
  3544. <!-- end interface org.apache.hadoop.fs.BlockStoragePolicySpi -->
  3545. <!-- start interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  3546. <interface name="ByteBufferPositionedReadable" abstract="true"
  3547. static="false" final="false" visibility="public"
  3548. deprecated="not deprecated">
  3549. <method name="read" return="int"
  3550. abstract="false" native="false" synchronized="false"
  3551. static="false" final="false" visibility="public"
  3552. deprecated="not deprecated">
  3553. <param name="position" type="long"/>
  3554. <param name="buf" type="java.nio.ByteBuffer"/>
  3555. <exception name="IOException" type="java.io.IOException"/>
  3556. <doc>
  3557. <![CDATA[Reads up to {@code buf.remaining()} bytes into buf from a given position in
  3558. the file and returns the number of bytes read. Callers should use
  3559. {@code buf.limit(...)} to control the size of the desired read and
  3560. {@code buf.position(...)} to control the offset into the buffer the data
  3561. should be written to.
  3562. <p>
  3563. After a successful call, {@code buf.position()} will be advanced by the
  3564. number of bytes read and {@code buf.limit()} will be unchanged.
  3565. <p>
  3566. In the case of an exception, the state of the buffer (the contents of the
  3567. buffer, the {@code buf.position()}, the {@code buf.limit()}, etc.) is
  3568. undefined, and callers should be prepared to recover from this eventuality.
  3569. <p>
  3570. Callers should use {@link StreamCapabilities#hasCapability(String)} with
  3571. {@link StreamCapabilities#PREADBYTEBUFFER} to check if the underlying
  3572. stream supports this interface, otherwise they might get a
  3573. {@link UnsupportedOperationException}.
  3574. <p>
  3575. Implementations should treat 0-length requests as legitimate, and must not
  3576. signal an error upon their receipt.
  3577. @param position position within file
  3578. @param buf the ByteBuffer to receive the results of the read operation.
  3579. @return the number of bytes read, possibly zero, or -1 if reached
  3580. end-of-stream
  3581. @throws IOException if there is some error performing the read]]>
  3582. </doc>
  3583. </method>
  3584. <doc>
  3585. <![CDATA[Implementers of this interface provide a positioned read API that writes to a
  3586. {@link ByteBuffer} rather than a {@code byte[]}.
  3587. @see PositionedReadable
  3588. @see ByteBufferReadable]]>
  3589. </doc>
  3590. </interface>
  3591. <!-- end interface org.apache.hadoop.fs.ByteBufferPositionedReadable -->
  3592. <!-- start interface org.apache.hadoop.fs.ByteBufferReadable -->
  3593. <interface name="ByteBufferReadable" abstract="true"
  3594. static="false" final="false" visibility="public"
  3595. deprecated="not deprecated">
  3596. <method name="read" return="int"
  3597. abstract="false" native="false" synchronized="false"
  3598. static="false" final="false" visibility="public"
  3599. deprecated="not deprecated">
  3600. <param name="buf" type="java.nio.ByteBuffer"/>
  3601. <exception name="IOException" type="java.io.IOException"/>
  3602. <doc>
  3603. <![CDATA[Reads up to buf.remaining() bytes into buf. Callers should use
  3604. buf.limit(..) to control the size of the desired read.
  3605. <p/>
  3606. After a successful call, buf.position() will be advanced by the number
  3607. of bytes read and buf.limit() should be unchanged.
  3608. <p/>
  3609. In the case of an exception, the values of buf.position() and buf.limit()
  3610. are undefined, and callers should be prepared to recover from this
  3611. eventuality.
  3612. <p/>
  3613. Many implementations will throw {@link UnsupportedOperationException}, so
  3614. callers that are not confident in support for this method from the
  3615. underlying filesystem should be prepared to handle that exception.
  3616. <p/>
  3617. Implementations should treat 0-length requests as legitimate, and must not
  3618. signal an error upon their receipt.
  3619. @param buf
  3620. the ByteBuffer to receive the results of the read operation.
  3621. @return the number of bytes read, possibly zero, or -1 if
  3622. reach end-of-stream
  3623. @throws IOException
  3624. if there is some error performing the read]]>
  3625. </doc>
  3626. </method>
  3627. <doc>
  3628. <![CDATA[Implementers of this interface provide a read API that writes to a
  3629. ByteBuffer, not a byte[].]]>
  3630. </doc>
  3631. </interface>
  3632. <!-- end interface org.apache.hadoop.fs.ByteBufferReadable -->
  3633. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3634. <interface name="CanSetDropBehind" abstract="true"
  3635. static="false" final="false" visibility="public"
  3636. deprecated="not deprecated">
  3637. <method name="setDropBehind"
  3638. abstract="false" native="false" synchronized="false"
  3639. static="false" final="false" visibility="public"
  3640. deprecated="not deprecated">
  3641. <param name="dropCache" type="java.lang.Boolean"/>
  3642. <exception name="IOException" type="java.io.IOException"/>
  3643. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3644. <doc>
  3645. <![CDATA[Configure whether the stream should drop the cache.
  3646. @param dropCache Whether to drop the cache. null means to use the
  3647. default value.
  3648. @throws IOException If there was an error changing the dropBehind
  3649. setting.
  3650. UnsupportedOperationException If this stream doesn't support
  3651. setting the drop-behind.]]>
  3652. </doc>
  3653. </method>
  3654. </interface>
  3655. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3656. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3657. <interface name="CanSetReadahead" abstract="true"
  3658. static="false" final="false" visibility="public"
  3659. deprecated="not deprecated">
  3660. <method name="setReadahead"
  3661. abstract="false" native="false" synchronized="false"
  3662. static="false" final="false" visibility="public"
  3663. deprecated="not deprecated">
  3664. <param name="readahead" type="java.lang.Long"/>
  3665. <exception name="IOException" type="java.io.IOException"/>
  3666. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3667. <doc>
  3668. <![CDATA[Set the readahead on this stream.
  3669. @param readahead The readahead to use. null means to use the default.
  3670. @throws IOException If there was an error changing the dropBehind
  3671. setting.
  3672. UnsupportedOperationException If this stream doesn't support
  3673. setting readahead.]]>
  3674. </doc>
  3675. </method>
  3676. </interface>
  3677. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3678. <!-- start interface org.apache.hadoop.fs.CanUnbuffer -->
  3679. <interface name="CanUnbuffer" abstract="true"
  3680. static="false" final="false" visibility="public"
  3681. deprecated="not deprecated">
  3682. <method name="unbuffer"
  3683. abstract="false" native="false" synchronized="false"
  3684. static="false" final="false" visibility="public"
  3685. deprecated="not deprecated">
  3686. <doc>
  3687. <![CDATA[Reduce the buffering. This will also free sockets and file descriptors
  3688. held by the stream, if possible.]]>
  3689. </doc>
  3690. </method>
  3691. <doc>
  3692. <![CDATA[FSDataInputStreams implement this interface to indicate that they can clear
  3693. their buffers on request.]]>
  3694. </doc>
  3695. </interface>
  3696. <!-- end interface org.apache.hadoop.fs.CanUnbuffer -->
  3697. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3698. <class name="ChecksumException" extends="java.io.IOException"
  3699. abstract="false"
  3700. static="false" final="false" visibility="public"
  3701. deprecated="not deprecated">
  3702. <constructor name="ChecksumException" type="java.lang.String, long"
  3703. static="false" final="false" visibility="public"
  3704. deprecated="not deprecated">
  3705. </constructor>
  3706. <method name="getPos" return="long"
  3707. abstract="false" native="false" synchronized="false"
  3708. static="false" final="false" visibility="public"
  3709. deprecated="not deprecated">
  3710. </method>
  3711. <doc>
  3712. <![CDATA[Thrown for checksum errors.]]>
  3713. </doc>
  3714. </class>
  3715. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3716. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3717. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3718. abstract="true"
  3719. static="false" final="false" visibility="public"
  3720. deprecated="not deprecated">
  3721. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3722. static="false" final="false" visibility="public"
  3723. deprecated="not deprecated">
  3724. </constructor>
  3725. <method name="getApproxChkSumLength" return="double"
  3726. abstract="false" native="false" synchronized="false"
  3727. static="true" final="false" visibility="public"
  3728. deprecated="not deprecated">
  3729. <param name="size" type="long"/>
  3730. </method>
  3731. <method name="setConf"
  3732. abstract="false" native="false" synchronized="false"
  3733. static="false" final="false" visibility="public"
  3734. deprecated="not deprecated">
  3735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3736. </method>
  3737. <method name="setVerifyChecksum"
  3738. abstract="false" native="false" synchronized="false"
  3739. static="false" final="false" visibility="public"
  3740. deprecated="not deprecated">
  3741. <param name="verifyChecksum" type="boolean"/>
  3742. <doc>
  3743. <![CDATA[Set whether to verify checksum.]]>
  3744. </doc>
  3745. </method>
  3746. <method name="setWriteChecksum"
  3747. abstract="false" native="false" synchronized="false"
  3748. static="false" final="false" visibility="public"
  3749. deprecated="not deprecated">
  3750. <param name="writeChecksum" type="boolean"/>
  3751. </method>
  3752. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3753. abstract="false" native="false" synchronized="false"
  3754. static="false" final="false" visibility="public"
  3755. deprecated="not deprecated">
  3756. <doc>
  3757. <![CDATA[get the raw file system]]>
  3758. </doc>
  3759. </method>
  3760. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3761. abstract="false" native="false" synchronized="false"
  3762. static="false" final="false" visibility="public"
  3763. deprecated="not deprecated">
  3764. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3765. <doc>
  3766. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3767. </doc>
  3768. </method>
  3769. <method name="isChecksumFile" return="boolean"
  3770. abstract="false" native="false" synchronized="false"
  3771. static="true" final="false" visibility="public"
  3772. deprecated="not deprecated">
  3773. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3774. <doc>
  3775. <![CDATA[Return true iff file is a checksum file name.]]>
  3776. </doc>
  3777. </method>
  3778. <method name="getChecksumFileLength" return="long"
  3779. abstract="false" native="false" synchronized="false"
  3780. static="false" final="false" visibility="public"
  3781. deprecated="not deprecated">
  3782. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3783. <param name="fileSize" type="long"/>
  3784. <doc>
  3785. <![CDATA[Return the length of the checksum file given the size of the
  3786. actual file.]]>
  3787. </doc>
  3788. </method>
  3789. <method name="getBytesPerSum" return="int"
  3790. abstract="false" native="false" synchronized="false"
  3791. static="false" final="false" visibility="public"
  3792. deprecated="not deprecated">
  3793. <doc>
  3794. <![CDATA[Return the bytes Per Checksum]]>
  3795. </doc>
  3796. </method>
  3797. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3798. abstract="false" native="false" synchronized="false"
  3799. static="false" final="false" visibility="public"
  3800. deprecated="not deprecated">
  3801. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3802. <param name="bufferSize" type="int"/>
  3803. <exception name="IOException" type="java.io.IOException"/>
  3804. <doc>
  3805. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3806. @param f the file name to open
  3807. @param bufferSize the size of the buffer to be used.]]>
  3808. </doc>
  3809. </method>
  3810. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3811. abstract="false" native="false" synchronized="false"
  3812. static="false" final="false" visibility="public"
  3813. deprecated="not deprecated">
  3814. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3815. <param name="bufferSize" type="int"/>
  3816. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3817. <exception name="IOException" type="java.io.IOException"/>
  3818. </method>
  3819. <method name="truncate" return="boolean"
  3820. abstract="false" native="false" synchronized="false"
  3821. static="false" final="false" visibility="public"
  3822. deprecated="not deprecated">
  3823. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3824. <param name="newLength" type="long"/>
  3825. <exception name="IOException" type="java.io.IOException"/>
  3826. </method>
  3827. <method name="getChecksumLength" return="long"
  3828. abstract="false" native="false" synchronized="false"
  3829. static="true" final="false" visibility="public"
  3830. deprecated="not deprecated">
  3831. <param name="size" type="long"/>
  3832. <param name="bytesPerSum" type="int"/>
  3833. <doc>
  3834. <![CDATA[Calculated the length of the checksum file in bytes.
  3835. @param size the length of the data file in bytes
  3836. @param bytesPerSum the number of bytes in a checksum block
  3837. @return the number of bytes in the checksum file]]>
  3838. </doc>
  3839. </method>
  3840. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3841. abstract="false" native="false" synchronized="false"
  3842. static="false" final="false" visibility="public"
  3843. deprecated="not deprecated">
  3844. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3845. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3846. <param name="overwrite" type="boolean"/>
  3847. <param name="bufferSize" type="int"/>
  3848. <param name="replication" type="short"/>
  3849. <param name="blockSize" type="long"/>
  3850. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3851. <exception name="IOException" type="java.io.IOException"/>
  3852. </method>
  3853. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3854. abstract="false" native="false" synchronized="false"
  3855. static="false" final="false" visibility="public"
  3856. deprecated="not deprecated">
  3857. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3858. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3859. <param name="overwrite" type="boolean"/>
  3860. <param name="bufferSize" type="int"/>
  3861. <param name="replication" type="short"/>
  3862. <param name="blockSize" type="long"/>
  3863. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3864. <exception name="IOException" type="java.io.IOException"/>
  3865. </method>
  3866. <method name="setPermission"
  3867. abstract="false" native="false" synchronized="false"
  3868. static="false" final="false" visibility="public"
  3869. deprecated="not deprecated">
  3870. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3871. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3872. <exception name="IOException" type="java.io.IOException"/>
  3873. </method>
  3874. <method name="setOwner"
  3875. abstract="false" native="false" synchronized="false"
  3876. static="false" final="false" visibility="public"
  3877. deprecated="not deprecated">
  3878. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3879. <param name="username" type="java.lang.String"/>
  3880. <param name="groupname" type="java.lang.String"/>
  3881. <exception name="IOException" type="java.io.IOException"/>
  3882. </method>
  3883. <method name="setAcl"
  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. <param name="aclSpec" type="java.util.List"/>
  3889. <exception name="IOException" type="java.io.IOException"/>
  3890. </method>
  3891. <method name="modifyAclEntries"
  3892. abstract="false" native="false" synchronized="false"
  3893. static="false" final="false" visibility="public"
  3894. deprecated="not deprecated">
  3895. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3896. <param name="aclSpec" type="java.util.List"/>
  3897. <exception name="IOException" type="java.io.IOException"/>
  3898. </method>
  3899. <method name="removeAcl"
  3900. abstract="false" native="false" synchronized="false"
  3901. static="false" final="false" visibility="public"
  3902. deprecated="not deprecated">
  3903. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3904. <exception name="IOException" type="java.io.IOException"/>
  3905. </method>
  3906. <method name="removeAclEntries"
  3907. abstract="false" native="false" synchronized="false"
  3908. static="false" final="false" visibility="public"
  3909. deprecated="not deprecated">
  3910. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3911. <param name="aclSpec" type="java.util.List"/>
  3912. <exception name="IOException" type="java.io.IOException"/>
  3913. </method>
  3914. <method name="removeDefaultAcl"
  3915. abstract="false" native="false" synchronized="false"
  3916. static="false" final="false" visibility="public"
  3917. deprecated="not deprecated">
  3918. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3919. <exception name="IOException" type="java.io.IOException"/>
  3920. </method>
  3921. <method name="setReplication" return="boolean"
  3922. abstract="false" native="false" synchronized="false"
  3923. static="false" final="false" visibility="public"
  3924. deprecated="not deprecated">
  3925. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3926. <param name="replication" type="short"/>
  3927. <exception name="IOException" type="java.io.IOException"/>
  3928. <doc>
  3929. <![CDATA[Set replication for an existing file.
  3930. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  3931. @param src file name
  3932. @param replication new replication
  3933. @throws IOException
  3934. @return true if successful;
  3935. false if file does not exist or is a directory]]>
  3936. </doc>
  3937. </method>
  3938. <method name="rename" return="boolean"
  3939. abstract="false" native="false" synchronized="false"
  3940. static="false" final="false" visibility="public"
  3941. deprecated="not deprecated">
  3942. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3943. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3944. <exception name="IOException" type="java.io.IOException"/>
  3945. <doc>
  3946. <![CDATA[Rename files/dirs]]>
  3947. </doc>
  3948. </method>
  3949. <method name="delete" return="boolean"
  3950. abstract="false" native="false" synchronized="false"
  3951. static="false" final="false" visibility="public"
  3952. deprecated="not deprecated">
  3953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3954. <param name="recursive" type="boolean"/>
  3955. <exception name="IOException" type="java.io.IOException"/>
  3956. <doc>
  3957. <![CDATA[Implement the delete(Path, boolean) in checksum
  3958. file system.]]>
  3959. </doc>
  3960. </method>
  3961. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3962. abstract="false" native="false" synchronized="false"
  3963. static="false" final="false" visibility="public"
  3964. deprecated="not deprecated">
  3965. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3966. <exception name="IOException" type="java.io.IOException"/>
  3967. <doc>
  3968. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3969. a directory.
  3970. @param f
  3971. given path
  3972. @return the statuses of the files/directories in the given path
  3973. @throws IOException]]>
  3974. </doc>
  3975. </method>
  3976. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3977. abstract="false" native="false" synchronized="false"
  3978. static="false" final="false" visibility="public"
  3979. deprecated="not deprecated">
  3980. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3981. <exception name="IOException" type="java.io.IOException"/>
  3982. <doc>
  3983. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3984. a directory.
  3985. @param f
  3986. given path
  3987. @return the statuses of the files/directories in the given patch
  3988. @throws IOException]]>
  3989. </doc>
  3990. </method>
  3991. <method name="mkdirs" return="boolean"
  3992. abstract="false" native="false" synchronized="false"
  3993. static="false" final="false" visibility="public"
  3994. deprecated="not deprecated">
  3995. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3996. <exception name="IOException" type="java.io.IOException"/>
  3997. </method>
  3998. <method name="copyFromLocalFile"
  3999. abstract="false" native="false" synchronized="false"
  4000. static="false" final="false" visibility="public"
  4001. deprecated="not deprecated">
  4002. <param name="delSrc" type="boolean"/>
  4003. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4004. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4005. <exception name="IOException" type="java.io.IOException"/>
  4006. </method>
  4007. <method name="copyToLocalFile"
  4008. abstract="false" native="false" synchronized="false"
  4009. static="false" final="false" visibility="public"
  4010. deprecated="not deprecated">
  4011. <param name="delSrc" type="boolean"/>
  4012. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4013. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4014. <exception name="IOException" type="java.io.IOException"/>
  4015. <doc>
  4016. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4017. Copy it from FS control to the local dst name.]]>
  4018. </doc>
  4019. </method>
  4020. <method name="copyToLocalFile"
  4021. abstract="false" native="false" synchronized="false"
  4022. static="false" final="false" visibility="public"
  4023. deprecated="not deprecated">
  4024. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4025. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4026. <param name="copyCrc" type="boolean"/>
  4027. <exception name="IOException" type="java.io.IOException"/>
  4028. <doc>
  4029. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4030. Copy it from FS control to the local dst name.
  4031. If src and dst are directories, the copyCrc parameter
  4032. determines whether to copy CRC files.]]>
  4033. </doc>
  4034. </method>
  4035. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4036. abstract="false" native="false" synchronized="false"
  4037. static="false" final="false" visibility="public"
  4038. deprecated="not deprecated">
  4039. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4040. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4041. <exception name="IOException" type="java.io.IOException"/>
  4042. </method>
  4043. <method name="completeLocalOutput"
  4044. abstract="false" native="false" synchronized="false"
  4045. static="false" final="false" visibility="public"
  4046. deprecated="not deprecated">
  4047. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4048. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4049. <exception name="IOException" type="java.io.IOException"/>
  4050. </method>
  4051. <method name="reportChecksumFailure" return="boolean"
  4052. abstract="false" native="false" synchronized="false"
  4053. static="false" final="false" visibility="public"
  4054. deprecated="not deprecated">
  4055. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4056. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4057. <param name="inPos" type="long"/>
  4058. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  4059. <param name="sumsPos" type="long"/>
  4060. <doc>
  4061. <![CDATA[Report a checksum error to the file system.
  4062. @param f the file name containing the error
  4063. @param in the stream open on the file
  4064. @param inPos the position of the beginning of the bad data in the file
  4065. @param sums the stream open on the checksum file
  4066. @param sumsPos the position of the beginning of the bad data in the checksum file
  4067. @return if retry is neccessary]]>
  4068. </doc>
  4069. </method>
  4070. <doc>
  4071. <![CDATA[Abstract Checksumed FileSystem.
  4072. It provide a basic implementation of a Checksumed FileSystem,
  4073. which creates a checksum file for each raw file.
  4074. It generates & verifies checksums at the client side.]]>
  4075. </doc>
  4076. </class>
  4077. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  4078. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4079. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  4080. abstract="false"
  4081. static="false" final="false" visibility="public"
  4082. deprecated="not deprecated">
  4083. <constructor name="CommonConfigurationKeysPublic"
  4084. static="false" final="false" visibility="public"
  4085. deprecated="not deprecated">
  4086. </constructor>
  4087. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  4088. transient="false" volatile="false"
  4089. static="true" final="true" visibility="public"
  4090. deprecated="not deprecated">
  4091. <doc>
  4092. <![CDATA[@see
  4093. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4094. core-default.xml</a>]]>
  4095. </doc>
  4096. </field>
  4097. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  4098. transient="false" volatile="false"
  4099. static="true" final="true" visibility="public"
  4100. deprecated="not deprecated">
  4101. <doc>
  4102. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  4103. </doc>
  4104. </field>
  4105. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  4106. transient="false" volatile="false"
  4107. static="true" final="true" visibility="public"
  4108. deprecated="not deprecated">
  4109. <doc>
  4110. <![CDATA[@see
  4111. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4112. core-default.xml</a>]]>
  4113. </doc>
  4114. </field>
  4115. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  4116. transient="false" volatile="false"
  4117. static="true" final="true" visibility="public"
  4118. deprecated="not deprecated">
  4119. <doc>
  4120. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  4121. </doc>
  4122. </field>
  4123. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  4124. transient="false" volatile="false"
  4125. static="true" final="true" visibility="public"
  4126. deprecated="not deprecated">
  4127. <doc>
  4128. <![CDATA[@see
  4129. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4130. core-default.xml</a>]]>
  4131. </doc>
  4132. </field>
  4133. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  4134. transient="false" volatile="false"
  4135. static="true" final="true" visibility="public"
  4136. deprecated="not deprecated">
  4137. <doc>
  4138. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  4139. </doc>
  4140. </field>
  4141. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  4142. transient="false" volatile="false"
  4143. static="true" final="true" visibility="public"
  4144. deprecated="not deprecated">
  4145. <doc>
  4146. <![CDATA[@see
  4147. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4148. core-default.xml</a>]]>
  4149. </doc>
  4150. </field>
  4151. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  4152. transient="false" volatile="false"
  4153. static="true" final="true" visibility="public"
  4154. deprecated="not deprecated">
  4155. <doc>
  4156. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  4157. </doc>
  4158. </field>
  4159. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  4160. transient="false" volatile="false"
  4161. static="true" final="true" visibility="public"
  4162. deprecated="not deprecated">
  4163. <doc>
  4164. <![CDATA[@see
  4165. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4166. core-default.xml</a>]]>
  4167. </doc>
  4168. </field>
  4169. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  4170. transient="false" volatile="false"
  4171. static="true" final="true" visibility="public"
  4172. deprecated="not deprecated">
  4173. <doc>
  4174. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  4175. </doc>
  4176. </field>
  4177. <field name="FS_GETSPACEUSED_CLASSNAME" type="java.lang.String"
  4178. transient="false" volatile="false"
  4179. static="true" final="true" visibility="public"
  4180. deprecated="not deprecated">
  4181. <doc>
  4182. <![CDATA[@see
  4183. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4184. core-default.xml</a>]]>
  4185. </doc>
  4186. </field>
  4187. <field name="FS_GETSPACEUSED_JITTER_KEY" type="java.lang.String"
  4188. transient="false" volatile="false"
  4189. static="true" final="true" visibility="public"
  4190. deprecated="not deprecated">
  4191. <doc>
  4192. <![CDATA[@see
  4193. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4194. core-default.xml</a>]]>
  4195. </doc>
  4196. </field>
  4197. <field name="FS_GETSPACEUSED_JITTER_DEFAULT" type="long"
  4198. transient="false" volatile="false"
  4199. static="true" final="true" visibility="public"
  4200. deprecated="not deprecated">
  4201. <doc>
  4202. <![CDATA[Default value for FS_GETSPACEUSED_JITTER_KEY]]>
  4203. </doc>
  4204. </field>
  4205. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  4206. transient="false" volatile="false"
  4207. static="true" final="true" visibility="public"
  4208. deprecated="not deprecated">
  4209. <doc>
  4210. <![CDATA[@see
  4211. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4212. core-default.xml</a>]]>
  4213. </doc>
  4214. </field>
  4215. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  4216. transient="false" volatile="false"
  4217. static="true" final="true" visibility="public"
  4218. deprecated="not deprecated">
  4219. <doc>
  4220. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  4221. </doc>
  4222. </field>
  4223. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4224. transient="false" volatile="false"
  4225. static="true" final="true" visibility="public"
  4226. deprecated="not deprecated">
  4227. <doc>
  4228. <![CDATA[@see
  4229. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4230. core-default.xml</a>]]>
  4231. </doc>
  4232. </field>
  4233. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  4234. transient="false" volatile="false"
  4235. static="true" final="true" visibility="public"
  4236. deprecated="not deprecated">
  4237. <doc>
  4238. <![CDATA[@see
  4239. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4240. core-default.xml</a>]]>
  4241. </doc>
  4242. </field>
  4243. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  4244. transient="false" volatile="false"
  4245. static="true" final="true" visibility="public"
  4246. deprecated="not deprecated">
  4247. <doc>
  4248. <![CDATA[@see
  4249. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4250. core-default.xml</a>]]>
  4251. </doc>
  4252. </field>
  4253. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  4254. transient="false" volatile="false"
  4255. static="true" final="true" visibility="public"
  4256. deprecated="not deprecated">
  4257. <doc>
  4258. <![CDATA[@see
  4259. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4260. core-default.xml</a>]]>
  4261. </doc>
  4262. </field>
  4263. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  4264. transient="false" volatile="false"
  4265. static="true" final="true" visibility="public"
  4266. deprecated="not deprecated">
  4267. </field>
  4268. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  4269. transient="false" volatile="false"
  4270. static="true" final="true" visibility="public"
  4271. deprecated="not deprecated">
  4272. <doc>
  4273. <![CDATA[@see
  4274. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4275. core-default.xml</a>]]>
  4276. </doc>
  4277. </field>
  4278. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  4279. transient="false" volatile="false"
  4280. static="true" final="true" visibility="public"
  4281. deprecated="not deprecated">
  4282. <doc>
  4283. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  4284. </doc>
  4285. </field>
  4286. <field name="FS_PROTECTED_DIRECTORIES" type="java.lang.String"
  4287. transient="false" volatile="false"
  4288. static="true" final="true" visibility="public"
  4289. deprecated="not deprecated">
  4290. <doc>
  4291. <![CDATA[Directories that cannot be removed unless empty, even by an
  4292. administrator.]]>
  4293. </doc>
  4294. </field>
  4295. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  4296. transient="false" volatile="false"
  4297. static="true" final="true" visibility="public"
  4298. deprecated="not deprecated">
  4299. <doc>
  4300. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  4301. </doc>
  4302. </field>
  4303. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  4304. transient="false" volatile="false"
  4305. static="true" final="true" visibility="public"
  4306. deprecated="not deprecated">
  4307. <doc>
  4308. <![CDATA[@see
  4309. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4310. core-default.xml</a>]]>
  4311. </doc>
  4312. </field>
  4313. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  4314. transient="false" volatile="false"
  4315. static="true" final="true" visibility="public"
  4316. deprecated="not deprecated">
  4317. <doc>
  4318. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  4319. </doc>
  4320. </field>
  4321. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  4322. transient="false" volatile="false"
  4323. static="true" final="true" visibility="public"
  4324. deprecated="not deprecated">
  4325. <doc>
  4326. <![CDATA[@see
  4327. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4328. core-default.xml</a>]]>
  4329. </doc>
  4330. </field>
  4331. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  4332. transient="false" volatile="false"
  4333. static="true" final="true" visibility="public"
  4334. deprecated="not deprecated">
  4335. <doc>
  4336. <![CDATA[@see
  4337. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4338. core-default.xml</a>]]>
  4339. </doc>
  4340. </field>
  4341. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  4342. transient="false" volatile="false"
  4343. static="true" final="true" visibility="public"
  4344. deprecated="not deprecated">
  4345. <doc>
  4346. <![CDATA[@see
  4347. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4348. core-default.xml</a>]]>
  4349. </doc>
  4350. </field>
  4351. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  4352. transient="false" volatile="false"
  4353. static="true" final="true" visibility="public"
  4354. deprecated="not deprecated">
  4355. <doc>
  4356. <![CDATA[@see
  4357. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4358. core-default.xml</a>]]>
  4359. </doc>
  4360. </field>
  4361. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  4362. transient="false" volatile="false"
  4363. static="true" final="true" visibility="public"
  4364. deprecated="not deprecated">
  4365. <doc>
  4366. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  4367. </doc>
  4368. </field>
  4369. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED" type="java.lang.String"
  4370. transient="false" volatile="false"
  4371. static="true" final="true" visibility="public"
  4372. deprecated="not deprecated">
  4373. <doc>
  4374. <![CDATA[@see
  4375. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4376. core-default.xml</a>]]>
  4377. </doc>
  4378. </field>
  4379. <field name="FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED_DEFAULT" type="boolean"
  4380. transient="false" volatile="false"
  4381. static="true" final="true" visibility="public"
  4382. deprecated="not deprecated">
  4383. <doc>
  4384. <![CDATA[Default value for FS_CLIENT_TOPOLOGY_RESOLUTION_ENABLED.]]>
  4385. </doc>
  4386. </field>
  4387. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  4388. transient="false" volatile="false"
  4389. static="true" final="true" visibility="public"
  4390. deprecated="not deprecated">
  4391. <doc>
  4392. <![CDATA[@see
  4393. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4394. core-default.xml</a>]]>
  4395. </doc>
  4396. </field>
  4397. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  4398. transient="false" volatile="false"
  4399. static="true" final="true" visibility="public"
  4400. deprecated="not deprecated">
  4401. <doc>
  4402. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  4403. </doc>
  4404. </field>
  4405. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  4406. transient="false" volatile="false"
  4407. static="true" final="true" visibility="public"
  4408. deprecated="not deprecated">
  4409. <doc>
  4410. <![CDATA[@see
  4411. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4412. core-default.xml</a>]]>
  4413. </doc>
  4414. </field>
  4415. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  4416. transient="false" volatile="false"
  4417. static="true" final="true" visibility="public"
  4418. deprecated="not deprecated">
  4419. <doc>
  4420. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  4421. </doc>
  4422. </field>
  4423. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  4424. transient="false" volatile="false"
  4425. static="true" final="true" visibility="public"
  4426. deprecated="not deprecated">
  4427. <doc>
  4428. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  4429. </doc>
  4430. </field>
  4431. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  4432. transient="false" volatile="false"
  4433. static="true" final="true" visibility="public"
  4434. deprecated="not deprecated">
  4435. <doc>
  4436. <![CDATA[@see
  4437. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4438. core-default.xml</a>]]>
  4439. </doc>
  4440. </field>
  4441. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  4442. transient="false" volatile="false"
  4443. static="true" final="true" visibility="public"
  4444. deprecated="not deprecated">
  4445. <doc>
  4446. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  4447. </doc>
  4448. </field>
  4449. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  4450. transient="false" volatile="false"
  4451. static="true" final="true" visibility="public"
  4452. deprecated="not deprecated">
  4453. <doc>
  4454. <![CDATA[@see
  4455. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4456. core-default.xml</a>]]>
  4457. </doc>
  4458. </field>
  4459. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  4460. transient="false" volatile="false"
  4461. static="true" final="true" visibility="public"
  4462. deprecated="not deprecated">
  4463. <doc>
  4464. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  4465. </doc>
  4466. </field>
  4467. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  4468. transient="false" volatile="false"
  4469. static="true" final="true" visibility="public"
  4470. deprecated="not deprecated">
  4471. <doc>
  4472. <![CDATA[@see
  4473. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4474. core-default.xml</a>]]>
  4475. </doc>
  4476. </field>
  4477. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  4478. transient="false" volatile="false"
  4479. static="true" final="true" visibility="public"
  4480. deprecated="not deprecated">
  4481. <doc>
  4482. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  4483. </doc>
  4484. </field>
  4485. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  4486. transient="false" volatile="false"
  4487. static="true" final="true" visibility="public"
  4488. deprecated="not deprecated">
  4489. <doc>
  4490. <![CDATA[@see
  4491. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4492. core-default.xml</a>]]>
  4493. </doc>
  4494. </field>
  4495. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  4496. transient="false" volatile="false"
  4497. static="true" final="true" visibility="public"
  4498. deprecated="not deprecated">
  4499. <doc>
  4500. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  4501. </doc>
  4502. </field>
  4503. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  4504. transient="false" volatile="false"
  4505. static="true" final="true" visibility="public"
  4506. deprecated="not deprecated">
  4507. <doc>
  4508. <![CDATA[@see
  4509. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4510. core-default.xml</a>]]>
  4511. </doc>
  4512. </field>
  4513. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  4514. transient="false" volatile="false"
  4515. static="true" final="true" visibility="public"
  4516. deprecated="not deprecated">
  4517. <doc>
  4518. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  4519. </doc>
  4520. </field>
  4521. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  4522. transient="false" volatile="false"
  4523. static="true" final="true" visibility="public"
  4524. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  4525. in mapred-default.xml
  4526. See https://issues.apache.org/jira/browse/HADOOP-6801
  4527. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4528. instead, see {@link #SEQ_IO_SORT_MB_KEY}.">
  4529. <doc>
  4530. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  4531. in mapred-default.xml
  4532. See https://issues.apache.org/jira/browse/HADOOP-6801
  4533. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4534. instead, see {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4535. </doc>
  4536. </field>
  4537. <field name="IO_SORT_MB_DEFAULT" type="int"
  4538. transient="false" volatile="false"
  4539. static="true" final="true" visibility="public"
  4540. deprecated="not deprecated">
  4541. <doc>
  4542. <![CDATA[Default value for {@link #IO_SORT_MB_KEY}.]]>
  4543. </doc>
  4544. </field>
  4545. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  4546. transient="false" volatile="false"
  4547. static="true" final="true" visibility="public"
  4548. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  4549. in mapred-default.xml
  4550. See https://issues.apache.org/jira/browse/HADOOP-6801
  4551. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4552. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.">
  4553. <doc>
  4554. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  4555. in mapred-default.xml
  4556. See https://issues.apache.org/jira/browse/HADOOP-6801
  4557. For {@link org.apache.hadoop.io.SequenceFile.Sorter} control
  4558. instead, see {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4559. </doc>
  4560. </field>
  4561. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  4562. transient="false" volatile="false"
  4563. static="true" final="true" visibility="public"
  4564. deprecated="not deprecated">
  4565. <doc>
  4566. <![CDATA[Default value for {@link #IO_SORT_FACTOR_KEY}.]]>
  4567. </doc>
  4568. </field>
  4569. <field name="SEQ_IO_SORT_MB_KEY" type="java.lang.String"
  4570. transient="false" volatile="false"
  4571. static="true" final="true" visibility="public"
  4572. deprecated="not deprecated">
  4573. <doc>
  4574. <![CDATA[@see
  4575. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4576. core-default.xml</a>]]>
  4577. </doc>
  4578. </field>
  4579. <field name="SEQ_IO_SORT_MB_DEFAULT" type="int"
  4580. transient="false" volatile="false"
  4581. static="true" final="true" visibility="public"
  4582. deprecated="not deprecated">
  4583. <doc>
  4584. <![CDATA[Default value for {@link #SEQ_IO_SORT_MB_KEY}.]]>
  4585. </doc>
  4586. </field>
  4587. <field name="SEQ_IO_SORT_FACTOR_KEY" type="java.lang.String"
  4588. transient="false" volatile="false"
  4589. static="true" final="true" visibility="public"
  4590. deprecated="not deprecated">
  4591. <doc>
  4592. <![CDATA[@see
  4593. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4594. core-default.xml</a>]]>
  4595. </doc>
  4596. </field>
  4597. <field name="SEQ_IO_SORT_FACTOR_DEFAULT" type="int"
  4598. transient="false" volatile="false"
  4599. static="true" final="true" visibility="public"
  4600. deprecated="not deprecated">
  4601. <doc>
  4602. <![CDATA[Default value for {@link #SEQ_IO_SORT_FACTOR_KEY}.]]>
  4603. </doc>
  4604. </field>
  4605. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  4606. transient="false" volatile="false"
  4607. static="true" final="true" visibility="public"
  4608. deprecated="not deprecated">
  4609. <doc>
  4610. <![CDATA[@see
  4611. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4612. core-default.xml</a>]]>
  4613. </doc>
  4614. </field>
  4615. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  4616. transient="false" volatile="false"
  4617. static="true" final="true" visibility="public"
  4618. deprecated="not deprecated">
  4619. <doc>
  4620. <![CDATA[@see
  4621. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4622. core-default.xml</a>]]>
  4623. </doc>
  4624. </field>
  4625. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  4626. transient="false" volatile="false"
  4627. static="true" final="true" visibility="public"
  4628. deprecated="not deprecated">
  4629. <doc>
  4630. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  4631. </doc>
  4632. </field>
  4633. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4634. transient="false" volatile="false"
  4635. static="true" final="true" visibility="public"
  4636. deprecated="not deprecated">
  4637. <doc>
  4638. <![CDATA[@see
  4639. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4640. core-default.xml</a>]]>
  4641. </doc>
  4642. </field>
  4643. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  4644. transient="false" volatile="false"
  4645. static="true" final="true" visibility="public"
  4646. deprecated="not deprecated">
  4647. <doc>
  4648. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  4649. </doc>
  4650. </field>
  4651. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  4652. transient="false" volatile="false"
  4653. static="true" final="true" visibility="public"
  4654. deprecated="not deprecated">
  4655. <doc>
  4656. <![CDATA[@see
  4657. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4658. core-default.xml</a>]]>
  4659. </doc>
  4660. </field>
  4661. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  4662. transient="false" volatile="false"
  4663. static="true" final="true" visibility="public"
  4664. deprecated="not deprecated">
  4665. <doc>
  4666. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  4667. </doc>
  4668. </field>
  4669. <field name="HADOOP_CALLER_CONTEXT_ENABLED_KEY" type="java.lang.String"
  4670. transient="false" volatile="false"
  4671. static="true" final="true" visibility="public"
  4672. deprecated="not deprecated">
  4673. </field>
  4674. <field name="HADOOP_CALLER_CONTEXT_ENABLED_DEFAULT" type="boolean"
  4675. transient="false" volatile="false"
  4676. static="true" final="true" visibility="public"
  4677. deprecated="not deprecated">
  4678. </field>
  4679. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_KEY" type="java.lang.String"
  4680. transient="false" volatile="false"
  4681. static="true" final="true" visibility="public"
  4682. deprecated="not deprecated">
  4683. </field>
  4684. <field name="HADOOP_CALLER_CONTEXT_MAX_SIZE_DEFAULT" type="int"
  4685. transient="false" volatile="false"
  4686. static="true" final="true" visibility="public"
  4687. deprecated="not deprecated">
  4688. </field>
  4689. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_KEY" type="java.lang.String"
  4690. transient="false" volatile="false"
  4691. static="true" final="true" visibility="public"
  4692. deprecated="not deprecated">
  4693. </field>
  4694. <field name="HADOOP_CALLER_CONTEXT_SIGNATURE_MAX_SIZE_DEFAULT" type="int"
  4695. transient="false" volatile="false"
  4696. static="true" final="true" visibility="public"
  4697. deprecated="not deprecated">
  4698. </field>
  4699. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  4700. transient="false" volatile="false"
  4701. static="true" final="true" visibility="public"
  4702. deprecated="not deprecated">
  4703. <doc>
  4704. <![CDATA[@see
  4705. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4706. core-default.xml</a>]]>
  4707. </doc>
  4708. </field>
  4709. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  4710. transient="false" volatile="false"
  4711. static="true" final="true" visibility="public"
  4712. deprecated="not deprecated">
  4713. <doc>
  4714. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  4715. </doc>
  4716. </field>
  4717. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  4718. transient="false" volatile="false"
  4719. static="true" final="true" visibility="public"
  4720. deprecated="not deprecated">
  4721. <doc>
  4722. <![CDATA[@see
  4723. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4724. core-default.xml</a>]]>
  4725. </doc>
  4726. </field>
  4727. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  4728. transient="false" volatile="false"
  4729. static="true" final="true" visibility="public"
  4730. deprecated="not deprecated">
  4731. <doc>
  4732. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  4733. </doc>
  4734. </field>
  4735. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  4736. transient="false" volatile="false"
  4737. static="true" final="true" visibility="public"
  4738. deprecated="not deprecated">
  4739. <doc>
  4740. <![CDATA[@see
  4741. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4742. core-default.xml</a>]]>
  4743. </doc>
  4744. </field>
  4745. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  4746. transient="false" volatile="false"
  4747. static="true" final="true" visibility="public"
  4748. deprecated="not deprecated">
  4749. <doc>
  4750. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  4751. </doc>
  4752. </field>
  4753. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  4754. transient="false" volatile="false"
  4755. static="true" final="true" visibility="public"
  4756. deprecated="not deprecated">
  4757. <doc>
  4758. <![CDATA[@see
  4759. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4760. core-default.xml</a>]]>
  4761. </doc>
  4762. </field>
  4763. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  4764. transient="false" volatile="false"
  4765. static="true" final="true" visibility="public"
  4766. deprecated="not deprecated">
  4767. <doc>
  4768. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  4769. </doc>
  4770. </field>
  4771. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  4772. transient="false" volatile="false"
  4773. static="true" final="true" visibility="public"
  4774. deprecated="not deprecated">
  4775. <doc>
  4776. <![CDATA[@see
  4777. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4778. core-default.xml</a>]]>
  4779. </doc>
  4780. </field>
  4781. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  4782. transient="false" volatile="false"
  4783. static="true" final="true" visibility="public"
  4784. deprecated="not deprecated">
  4785. <doc>
  4786. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  4787. </doc>
  4788. </field>
  4789. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  4790. transient="false" volatile="false"
  4791. static="true" final="true" visibility="public"
  4792. deprecated="not deprecated">
  4793. <doc>
  4794. <![CDATA[@see
  4795. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4796. core-default.xml</a>]]>
  4797. </doc>
  4798. </field>
  4799. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  4800. transient="false" volatile="false"
  4801. static="true" final="true" visibility="public"
  4802. deprecated="not deprecated">
  4803. <doc>
  4804. <![CDATA[Default value for IPC_CLIENT_TCPNODELAY_KEY]]>
  4805. </doc>
  4806. </field>
  4807. <field name="IPC_CLIENT_LOW_LATENCY" type="java.lang.String"
  4808. transient="false" volatile="false"
  4809. static="true" final="true" visibility="public"
  4810. deprecated="not deprecated">
  4811. <doc>
  4812. <![CDATA[Enable low-latency connections from the client]]>
  4813. </doc>
  4814. </field>
  4815. <field name="IPC_CLIENT_LOW_LATENCY_DEFAULT" type="boolean"
  4816. transient="false" volatile="false"
  4817. static="true" final="true" visibility="public"
  4818. deprecated="not deprecated">
  4819. <doc>
  4820. <![CDATA[Default value of IPC_CLIENT_LOW_LATENCY]]>
  4821. </doc>
  4822. </field>
  4823. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  4824. transient="false" volatile="false"
  4825. static="true" final="true" visibility="public"
  4826. deprecated="not deprecated">
  4827. <doc>
  4828. <![CDATA[@see
  4829. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4830. core-default.xml</a>]]>
  4831. </doc>
  4832. </field>
  4833. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4834. transient="false" volatile="false"
  4835. static="true" final="true" visibility="public"
  4836. deprecated="not deprecated">
  4837. <doc>
  4838. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4839. </doc>
  4840. </field>
  4841. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4842. transient="false" volatile="false"
  4843. static="true" final="true" visibility="public"
  4844. deprecated="not deprecated">
  4845. <doc>
  4846. <![CDATA[@see
  4847. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4848. core-default.xml</a>]]>
  4849. </doc>
  4850. </field>
  4851. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4852. transient="false" volatile="false"
  4853. static="true" final="true" visibility="public"
  4854. deprecated="not deprecated">
  4855. <doc>
  4856. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4857. </doc>
  4858. </field>
  4859. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4860. transient="false" volatile="false"
  4861. static="true" final="true" visibility="public"
  4862. deprecated="not deprecated">
  4863. <doc>
  4864. <![CDATA[@see
  4865. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4866. core-default.xml</a>]]>
  4867. </doc>
  4868. </field>
  4869. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  4870. transient="false" volatile="false"
  4871. static="true" final="true" visibility="public"
  4872. deprecated="not deprecated">
  4873. <doc>
  4874. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  4875. </doc>
  4876. </field>
  4877. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  4878. transient="false" volatile="false"
  4879. static="true" final="true" visibility="public"
  4880. deprecated="not deprecated">
  4881. <doc>
  4882. <![CDATA[@see
  4883. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4884. core-default.xml</a>]]>
  4885. </doc>
  4886. </field>
  4887. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  4888. transient="false" volatile="false"
  4889. static="true" final="true" visibility="public"
  4890. deprecated="not deprecated">
  4891. <doc>
  4892. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  4893. </doc>
  4894. </field>
  4895. <field name="IPC_SERVER_MAX_CONNECTIONS_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="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  4906. transient="false" volatile="false"
  4907. static="true" final="true" visibility="public"
  4908. deprecated="not deprecated">
  4909. <doc>
  4910. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  4911. </doc>
  4912. </field>
  4913. <field name="IPC_SERVER_LOG_SLOW_RPC" type="java.lang.String"
  4914. transient="false" volatile="false"
  4915. static="true" final="true" visibility="public"
  4916. deprecated="not deprecated">
  4917. <doc>
  4918. <![CDATA[Logs if a RPC is really slow compared to rest of RPCs.]]>
  4919. </doc>
  4920. </field>
  4921. <field name="IPC_SERVER_LOG_SLOW_RPC_DEFAULT" type="boolean"
  4922. transient="false" volatile="false"
  4923. static="true" final="true" visibility="public"
  4924. deprecated="not deprecated">
  4925. </field>
  4926. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  4927. transient="false" volatile="false"
  4928. static="true" final="true" visibility="public"
  4929. deprecated="not deprecated">
  4930. <doc>
  4931. <![CDATA[@see
  4932. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4933. core-default.xml</a>]]>
  4934. </doc>
  4935. </field>
  4936. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  4937. transient="false" volatile="false"
  4938. static="true" final="true" visibility="public"
  4939. deprecated="not deprecated">
  4940. </field>
  4941. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  4942. transient="false" volatile="false"
  4943. static="true" final="true" visibility="public"
  4944. deprecated="not deprecated">
  4945. <doc>
  4946. <![CDATA[@see
  4947. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4948. core-default.xml</a>]]>
  4949. </doc>
  4950. </field>
  4951. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  4952. transient="false" volatile="false"
  4953. static="true" final="true" visibility="public"
  4954. deprecated="not deprecated">
  4955. <doc>
  4956. <![CDATA[@see
  4957. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4958. core-default.xml</a>]]>
  4959. </doc>
  4960. </field>
  4961. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  4962. transient="false" volatile="false"
  4963. static="true" final="true" visibility="public"
  4964. deprecated="not deprecated">
  4965. <doc>
  4966. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  4967. </doc>
  4968. </field>
  4969. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  4970. transient="false" volatile="false"
  4971. static="true" final="true" visibility="public"
  4972. deprecated="not deprecated">
  4973. <doc>
  4974. <![CDATA[@see
  4975. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4976. core-default.xml</a>]]>
  4977. </doc>
  4978. </field>
  4979. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  4980. transient="false" volatile="false"
  4981. static="true" final="true" visibility="public"
  4982. deprecated="not deprecated">
  4983. <doc>
  4984. <![CDATA[@see
  4985. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4986. core-default.xml</a>]]>
  4987. </doc>
  4988. </field>
  4989. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  4990. transient="false" volatile="false"
  4991. static="true" final="true" visibility="public"
  4992. deprecated="not deprecated">
  4993. <doc>
  4994. <![CDATA[@see
  4995. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  4996. core-default.xml</a>]]>
  4997. </doc>
  4998. </field>
  4999. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  5000. transient="false" volatile="false"
  5001. static="true" final="true" visibility="public"
  5002. deprecated="not deprecated">
  5003. <doc>
  5004. <![CDATA[@see
  5005. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5006. core-default.xml</a>]]>
  5007. </doc>
  5008. </field>
  5009. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  5010. transient="false" volatile="false"
  5011. static="true" final="true" visibility="public"
  5012. deprecated="not deprecated">
  5013. <doc>
  5014. <![CDATA[@see
  5015. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5016. core-default.xml</a>]]>
  5017. </doc>
  5018. </field>
  5019. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  5020. transient="false" volatile="false"
  5021. static="true" final="true" visibility="public"
  5022. deprecated="not deprecated">
  5023. <doc>
  5024. <![CDATA[@see
  5025. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5026. core-default.xml</a>]]>
  5027. </doc>
  5028. </field>
  5029. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  5030. transient="false" volatile="false"
  5031. static="true" final="true" visibility="public"
  5032. deprecated="not deprecated">
  5033. </field>
  5034. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD" type="java.lang.String"
  5035. transient="false" volatile="false"
  5036. static="true" final="true" visibility="public"
  5037. deprecated="not deprecated">
  5038. <doc>
  5039. <![CDATA[@see
  5040. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5041. core-default.xml</a>]]>
  5042. </doc>
  5043. </field>
  5044. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_DEFAULT" type="boolean"
  5045. transient="false" volatile="false"
  5046. static="true" final="true" visibility="public"
  5047. deprecated="not deprecated">
  5048. <doc>
  5049. <![CDATA[@see
  5050. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5051. core-default.xml</a>]]>
  5052. </doc>
  5053. </field>
  5054. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS" type="java.lang.String"
  5055. transient="false" volatile="false"
  5056. static="true" final="true" visibility="public"
  5057. deprecated="not deprecated">
  5058. <doc>
  5059. <![CDATA[@see
  5060. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5061. core-default.xml</a>]]>
  5062. </doc>
  5063. </field>
  5064. <field name="HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT" type="int"
  5065. transient="false" volatile="false"
  5066. static="true" final="true" visibility="public"
  5067. deprecated="not deprecated">
  5068. <doc>
  5069. <![CDATA[@see
  5070. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5071. core-default.xml</a>]]>
  5072. </doc>
  5073. </field>
  5074. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY" type="java.lang.String"
  5075. transient="false" volatile="false"
  5076. static="true" final="true" visibility="public"
  5077. deprecated="not deprecated">
  5078. <doc>
  5079. <![CDATA[@see
  5080. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5081. core-default.xml</a>]]>
  5082. </doc>
  5083. </field>
  5084. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS" type="java.lang.String"
  5085. transient="false" volatile="false"
  5086. static="true" final="true" visibility="public"
  5087. deprecated="use
  5088. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5089. instead.">
  5090. <doc>
  5091. <![CDATA[@deprecated use
  5092. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_KEY}
  5093. instead.]]>
  5094. </doc>
  5095. </field>
  5096. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT" type="long"
  5097. transient="false" volatile="false"
  5098. static="true" final="true" visibility="public"
  5099. deprecated="not deprecated">
  5100. <doc>
  5101. <![CDATA[@see
  5102. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5103. core-default.xml</a>]]>
  5104. </doc>
  5105. </field>
  5106. <field name="HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_SECS_DEFAULT" type="long"
  5107. transient="false" volatile="false"
  5108. static="true" final="true" visibility="public"
  5109. deprecated="use
  5110. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5111. instead.">
  5112. <doc>
  5113. <![CDATA[@deprecated use
  5114. {@link CommonConfigurationKeysPublic#HADOOP_SECURITY_GROUP_SHELL_COMMAND_TIMEOUT_DEFAULT}
  5115. instead.]]>
  5116. </doc>
  5117. </field>
  5118. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  5119. transient="false" volatile="false"
  5120. static="true" final="true" visibility="public"
  5121. deprecated="not deprecated">
  5122. <doc>
  5123. <![CDATA[@see
  5124. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5125. core-default.xml</a>]]>
  5126. </doc>
  5127. </field>
  5128. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  5129. transient="false" volatile="false"
  5130. static="true" final="true" visibility="public"
  5131. deprecated="not deprecated">
  5132. <doc>
  5133. <![CDATA[@see
  5134. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5135. core-default.xml</a>]]>
  5136. </doc>
  5137. </field>
  5138. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  5139. transient="false" volatile="false"
  5140. static="true" final="true" visibility="public"
  5141. deprecated="not deprecated">
  5142. <doc>
  5143. <![CDATA[@see
  5144. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5145. core-default.xml</a>]]>
  5146. </doc>
  5147. </field>
  5148. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  5149. transient="false" volatile="false"
  5150. static="true" final="true" visibility="public"
  5151. deprecated="not deprecated">
  5152. <doc>
  5153. <![CDATA[@see
  5154. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5155. core-default.xml</a>]]>
  5156. </doc>
  5157. </field>
  5158. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  5159. transient="false" volatile="false"
  5160. static="true" final="true" visibility="public"
  5161. deprecated="not deprecated">
  5162. <doc>
  5163. <![CDATA[@see
  5164. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5165. core-default.xml</a>]]>
  5166. </doc>
  5167. </field>
  5168. <field name="HADOOP_SECURITY_DNS_INTERFACE_KEY" type="java.lang.String"
  5169. transient="false" volatile="false"
  5170. static="true" final="true" visibility="public"
  5171. deprecated="not deprecated">
  5172. <doc>
  5173. <![CDATA[@see
  5174. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5175. core-default.xml</a>]]>
  5176. </doc>
  5177. </field>
  5178. <field name="HADOOP_SECURITY_DNS_NAMESERVER_KEY" type="java.lang.String"
  5179. transient="false" volatile="false"
  5180. static="true" final="true" visibility="public"
  5181. deprecated="not deprecated">
  5182. <doc>
  5183. <![CDATA[@see
  5184. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5185. core-default.xml</a>]]>
  5186. </doc>
  5187. </field>
  5188. <field name="HADOOP_TOKEN_FILES" type="java.lang.String"
  5189. transient="false" volatile="false"
  5190. static="true" final="true" visibility="public"
  5191. deprecated="not deprecated">
  5192. <doc>
  5193. <![CDATA[@see
  5194. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5195. core-default.xml</a>]]>
  5196. </doc>
  5197. </field>
  5198. <field name="HADOOP_HTTP_AUTHENTICATION_TYPE" 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="HADOOP_SSL_ENABLED_KEY" 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_SSL_ENABLED_DEFAULT" type="boolean"
  5209. transient="false" volatile="false"
  5210. static="true" final="true" visibility="public"
  5211. deprecated="not deprecated">
  5212. </field>
  5213. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN" type="java.lang.String"
  5214. transient="false" volatile="false"
  5215. static="true" final="true" visibility="public"
  5216. deprecated="not deprecated">
  5217. <doc>
  5218. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  5219. </doc>
  5220. </field>
  5221. <field name="HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN_DEFAULT" type="int"
  5222. transient="false" volatile="false"
  5223. static="true" final="true" visibility="public"
  5224. deprecated="not deprecated">
  5225. <doc>
  5226. <![CDATA[Default value for HADOOP_KERBEROS_MIN_SECONDS_BEFORE_RELOGIN]]>
  5227. </doc>
  5228. </field>
  5229. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  5230. transient="false" volatile="false"
  5231. static="true" final="true" visibility="public"
  5232. deprecated="not deprecated">
  5233. </field>
  5234. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  5235. transient="false" volatile="false"
  5236. static="true" final="true" visibility="public"
  5237. deprecated="not deprecated">
  5238. </field>
  5239. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  5240. transient="false" volatile="false"
  5241. static="true" final="true" visibility="public"
  5242. deprecated="not deprecated">
  5243. <doc>
  5244. <![CDATA[@see
  5245. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5246. core-default.xml</a>]]>
  5247. </doc>
  5248. </field>
  5249. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  5250. transient="false" volatile="false"
  5251. static="true" final="true" visibility="public"
  5252. deprecated="not deprecated">
  5253. <doc>
  5254. <![CDATA[Class to override Sasl Properties for a connection]]>
  5255. </doc>
  5256. </field>
  5257. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  5258. transient="false" volatile="false"
  5259. static="true" final="true" visibility="public"
  5260. deprecated="not deprecated">
  5261. </field>
  5262. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_KEY" type="java.lang.String"
  5263. transient="false" volatile="false"
  5264. static="true" final="true" visibility="public"
  5265. deprecated="not deprecated">
  5266. </field>
  5267. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_AES_CTR_NOPADDING_DEFAULT" type="java.lang.String"
  5268. transient="false" volatile="false"
  5269. static="true" final="true" visibility="public"
  5270. deprecated="not deprecated">
  5271. </field>
  5272. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  5273. transient="false" volatile="false"
  5274. static="true" final="true" visibility="public"
  5275. deprecated="not deprecated">
  5276. <doc>
  5277. <![CDATA[@see
  5278. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5279. core-default.xml</a>]]>
  5280. </doc>
  5281. </field>
  5282. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  5283. transient="false" volatile="false"
  5284. static="true" final="true" visibility="public"
  5285. deprecated="not deprecated">
  5286. </field>
  5287. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  5288. transient="false" volatile="false"
  5289. static="true" final="true" visibility="public"
  5290. deprecated="not deprecated">
  5291. <doc>
  5292. <![CDATA[@see
  5293. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5294. core-default.xml</a>]]>
  5295. </doc>
  5296. </field>
  5297. <field name="HADOOP_SECURITY_CRYPTO_JCEKS_KEY_SERIALFILTER" type="java.lang.String"
  5298. transient="false" volatile="false"
  5299. static="true" final="true" visibility="public"
  5300. deprecated="not deprecated">
  5301. <doc>
  5302. <![CDATA[@see
  5303. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5304. core-default.xml</a>]]>
  5305. </doc>
  5306. </field>
  5307. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  5308. transient="false" volatile="false"
  5309. static="true" final="true" visibility="public"
  5310. deprecated="not deprecated">
  5311. <doc>
  5312. <![CDATA[@see
  5313. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5314. core-default.xml</a>]]>
  5315. </doc>
  5316. </field>
  5317. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  5318. transient="false" volatile="false"
  5319. static="true" final="true" visibility="public"
  5320. deprecated="not deprecated">
  5321. <doc>
  5322. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  5323. </doc>
  5324. </field>
  5325. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  5326. transient="false" volatile="false"
  5327. static="true" final="true" visibility="public"
  5328. deprecated="not deprecated">
  5329. <doc>
  5330. <![CDATA[Class to override Impersonation provider]]>
  5331. </doc>
  5332. </field>
  5333. <field name="HADOOP_SECURITY_KEY_PROVIDER_PATH" type="java.lang.String"
  5334. transient="false" volatile="false"
  5335. static="true" final="true" visibility="public"
  5336. deprecated="not deprecated">
  5337. <doc>
  5338. <![CDATA[@see
  5339. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5340. core-default.xml</a>]]>
  5341. </doc>
  5342. </field>
  5343. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY" type="java.lang.String"
  5344. transient="false" volatile="false"
  5345. static="true" final="true" visibility="public"
  5346. deprecated="not deprecated">
  5347. <doc>
  5348. <![CDATA[@see
  5349. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5350. core-default.xml</a>]]>
  5351. </doc>
  5352. </field>
  5353. <field name="HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_DEFAULT" type="int"
  5354. transient="false" volatile="false"
  5355. static="true" final="true" visibility="public"
  5356. deprecated="not deprecated">
  5357. <doc>
  5358. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_BITLENGTH_KEY.]]>
  5359. </doc>
  5360. </field>
  5361. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY" type="java.lang.String"
  5362. transient="false" volatile="false"
  5363. static="true" final="true" visibility="public"
  5364. deprecated="not deprecated">
  5365. <doc>
  5366. <![CDATA[@see
  5367. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5368. core-default.xml</a>]]>
  5369. </doc>
  5370. </field>
  5371. <field name="HADOOP_SECURITY_KEY_DEFAULT_CIPHER_DEFAULT" type="java.lang.String"
  5372. transient="false" volatile="false"
  5373. static="true" final="true" visibility="public"
  5374. deprecated="not deprecated">
  5375. <doc>
  5376. <![CDATA[Defalt value for HADOOP_SECURITY_KEY_DEFAULT_CIPHER_KEY.]]>
  5377. </doc>
  5378. </field>
  5379. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  5380. transient="false" volatile="false"
  5381. static="true" final="true" visibility="public"
  5382. deprecated="not deprecated">
  5383. <doc>
  5384. <![CDATA[@see
  5385. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5386. core-default.xml</a>]]>
  5387. </doc>
  5388. </field>
  5389. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  5390. transient="false" volatile="false"
  5391. static="true" final="true" visibility="public"
  5392. deprecated="not deprecated">
  5393. <doc>
  5394. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  5395. </doc>
  5396. </field>
  5397. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  5398. transient="false" volatile="false"
  5399. static="true" final="true" visibility="public"
  5400. deprecated="not deprecated">
  5401. <doc>
  5402. <![CDATA[@see
  5403. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5404. core-default.xml</a>]]>
  5405. </doc>
  5406. </field>
  5407. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  5408. transient="false" volatile="false"
  5409. static="true" final="true" visibility="public"
  5410. deprecated="not deprecated">
  5411. <doc>
  5412. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  5413. </doc>
  5414. </field>
  5415. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  5416. transient="false" volatile="false"
  5417. static="true" final="true" visibility="public"
  5418. deprecated="not deprecated">
  5419. <doc>
  5420. <![CDATA[@see
  5421. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5422. core-default.xml</a>]]>
  5423. </doc>
  5424. </field>
  5425. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  5426. transient="false" volatile="false"
  5427. static="true" final="true" visibility="public"
  5428. deprecated="not deprecated">
  5429. <doc>
  5430. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  5431. </doc>
  5432. </field>
  5433. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  5434. transient="false" volatile="false"
  5435. static="true" final="true" visibility="public"
  5436. deprecated="not deprecated">
  5437. <doc>
  5438. <![CDATA[@see
  5439. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5440. core-default.xml</a>]]>
  5441. </doc>
  5442. </field>
  5443. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  5444. transient="false" volatile="false"
  5445. static="true" final="true" visibility="public"
  5446. deprecated="not deprecated">
  5447. <doc>
  5448. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  5449. </doc>
  5450. </field>
  5451. <field name="KMS_CLIENT_TIMEOUT_SECONDS" type="java.lang.String"
  5452. transient="false" volatile="false"
  5453. static="true" final="true" visibility="public"
  5454. deprecated="not deprecated">
  5455. <doc>
  5456. <![CDATA[@see
  5457. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5458. core-default.xml</a>]]>
  5459. </doc>
  5460. </field>
  5461. <field name="KMS_CLIENT_TIMEOUT_DEFAULT" type="int"
  5462. transient="false" volatile="false"
  5463. static="true" final="true" visibility="public"
  5464. deprecated="not deprecated">
  5465. </field>
  5466. <field name="KMS_CLIENT_FAILOVER_MAX_RETRIES_KEY" type="java.lang.String"
  5467. transient="false" volatile="false"
  5468. static="true" final="true" visibility="public"
  5469. deprecated="not deprecated">
  5470. <doc>
  5471. <![CDATA[Default value is the number of providers specified.]]>
  5472. </doc>
  5473. </field>
  5474. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_KEY" type="java.lang.String"
  5475. transient="false" volatile="false"
  5476. static="true" final="true" visibility="public"
  5477. deprecated="not deprecated">
  5478. <doc>
  5479. <![CDATA[@see
  5480. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5481. core-default.xml</a>]]>
  5482. </doc>
  5483. </field>
  5484. <field name="KMS_CLIENT_FAILOVER_SLEEP_BASE_MILLIS_DEFAULT" type="int"
  5485. transient="false" volatile="false"
  5486. static="true" final="true" visibility="public"
  5487. deprecated="not deprecated">
  5488. <doc>
  5489. <![CDATA[Default value is 100 ms.]]>
  5490. </doc>
  5491. </field>
  5492. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_KEY" type="java.lang.String"
  5493. transient="false" volatile="false"
  5494. static="true" final="true" visibility="public"
  5495. deprecated="not deprecated">
  5496. <doc>
  5497. <![CDATA[@see
  5498. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5499. core-default.xml</a>]]>
  5500. </doc>
  5501. </field>
  5502. <field name="KMS_CLIENT_FAILOVER_SLEEP_MAX_MILLIS_DEFAULT" type="int"
  5503. transient="false" volatile="false"
  5504. static="true" final="true" visibility="public"
  5505. deprecated="not deprecated">
  5506. <doc>
  5507. <![CDATA[Default value is 2 secs.]]>
  5508. </doc>
  5509. </field>
  5510. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  5511. transient="false" volatile="false"
  5512. static="true" final="true" visibility="public"
  5513. deprecated="not deprecated">
  5514. <doc>
  5515. <![CDATA[@see
  5516. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5517. core-default.xml</a>]]>
  5518. </doc>
  5519. </field>
  5520. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  5521. transient="false" volatile="false"
  5522. static="true" final="true" visibility="public"
  5523. deprecated="not deprecated">
  5524. <doc>
  5525. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  5526. </doc>
  5527. </field>
  5528. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  5529. transient="false" volatile="false"
  5530. static="true" final="true" visibility="public"
  5531. deprecated="not deprecated">
  5532. <doc>
  5533. <![CDATA[@see
  5534. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5535. core-default.xml</a>]]>
  5536. </doc>
  5537. </field>
  5538. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  5539. transient="false" volatile="false"
  5540. static="true" final="true" visibility="public"
  5541. deprecated="not deprecated">
  5542. <doc>
  5543. <![CDATA[@see
  5544. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5545. core-default.xml</a>]]>
  5546. </doc>
  5547. </field>
  5548. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  5549. transient="false" volatile="false"
  5550. static="true" final="true" visibility="public"
  5551. deprecated="not deprecated">
  5552. </field>
  5553. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_KEY" type="java.lang.String"
  5554. transient="false" volatile="false"
  5555. static="true" final="true" visibility="public"
  5556. deprecated="not deprecated">
  5557. <doc>
  5558. <![CDATA[@see
  5559. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5560. core-default.xml</a>]]>
  5561. </doc>
  5562. </field>
  5563. <field name="HADOOP_SHELL_MISSING_DEFAULT_FS_WARNING_DEFAULT" type="boolean"
  5564. transient="false" volatile="false"
  5565. static="true" final="true" visibility="public"
  5566. deprecated="not deprecated">
  5567. </field>
  5568. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES" type="java.lang.String"
  5569. transient="false" volatile="false"
  5570. static="true" final="true" visibility="public"
  5571. deprecated="not deprecated">
  5572. <doc>
  5573. <![CDATA[@see
  5574. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5575. core-default.xml</a>]]>
  5576. </doc>
  5577. </field>
  5578. <field name="HADOOP_SHELL_SAFELY_DELETE_LIMIT_NUM_FILES_DEFAULT" type="long"
  5579. transient="false" volatile="false"
  5580. static="true" final="true" visibility="public"
  5581. deprecated="not deprecated">
  5582. </field>
  5583. <field name="HADOOP_HTTP_LOGS_ENABLED" type="java.lang.String"
  5584. transient="false" volatile="false"
  5585. static="true" final="true" visibility="public"
  5586. deprecated="not deprecated">
  5587. <doc>
  5588. <![CDATA[@see
  5589. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5590. core-default.xml</a>]]>
  5591. </doc>
  5592. </field>
  5593. <field name="HADOOP_HTTP_LOGS_ENABLED_DEFAULT" type="boolean"
  5594. transient="false" volatile="false"
  5595. static="true" final="true" visibility="public"
  5596. deprecated="not deprecated">
  5597. <doc>
  5598. <![CDATA[Defalt value for HADOOP_HTTP_LOGS_ENABLED]]>
  5599. </doc>
  5600. </field>
  5601. <field name="HADOOP_SECURITY_CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  5602. transient="false" volatile="false"
  5603. static="true" final="true" visibility="public"
  5604. deprecated="not deprecated">
  5605. <doc>
  5606. <![CDATA[@see
  5607. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5608. core-default.xml</a>]]>
  5609. </doc>
  5610. </field>
  5611. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK" type="java.lang.String"
  5612. transient="false" volatile="false"
  5613. static="true" final="true" visibility="public"
  5614. deprecated="not deprecated">
  5615. <doc>
  5616. <![CDATA[@see
  5617. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5618. core-default.xml</a>]]>
  5619. </doc>
  5620. </field>
  5621. <field name="HADOOP_SECURITY_CREDENTIAL_CLEAR_TEXT_FALLBACK_DEFAULT" type="boolean"
  5622. transient="false" volatile="false"
  5623. static="true" final="true" visibility="public"
  5624. deprecated="not deprecated">
  5625. </field>
  5626. <field name="HADOOP_SECURITY_CREDENTIAL_PASSWORD_FILE_KEY" type="java.lang.String"
  5627. transient="false" volatile="false"
  5628. static="true" final="true" visibility="public"
  5629. deprecated="not deprecated">
  5630. <doc>
  5631. <![CDATA[@see
  5632. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5633. core-default.xml</a>]]>
  5634. </doc>
  5635. </field>
  5636. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS" type="java.lang.String"
  5637. transient="false" volatile="false"
  5638. static="true" final="true" visibility="public"
  5639. deprecated="not deprecated">
  5640. <doc>
  5641. <![CDATA[@see
  5642. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  5643. core-default.xml</a>]]>
  5644. </doc>
  5645. </field>
  5646. <field name="HADOOP_SECURITY_SENSITIVE_CONFIG_KEYS_DEFAULT" type="java.lang.String"
  5647. transient="false" volatile="false"
  5648. static="true" final="true" visibility="public"
  5649. deprecated="not deprecated">
  5650. </field>
  5651. <field name="SERVICE_SHUTDOWN_TIMEOUT" type="java.lang.String"
  5652. transient="false" volatile="false"
  5653. static="true" final="true" visibility="public"
  5654. deprecated="not deprecated">
  5655. <doc>
  5656. <![CDATA[Configuration option for the shutdown hook manager shutdown time:
  5657. {@value}.]]>
  5658. </doc>
  5659. </field>
  5660. <field name="SERVICE_SHUTDOWN_TIMEOUT_DEFAULT" type="long"
  5661. transient="false" volatile="false"
  5662. static="true" final="true" visibility="public"
  5663. deprecated="not deprecated">
  5664. <doc>
  5665. <![CDATA[Default shutdown hook timeout: {@value} seconds.]]>
  5666. </doc>
  5667. </field>
  5668. <doc>
  5669. <![CDATA[This class contains constants for configuration keys used
  5670. in the common code.
  5671. It includes all publicly documented configuration keys. In general
  5672. this class should not be used directly (use CommonConfigurationKeys
  5673. instead)]]>
  5674. </doc>
  5675. </class>
  5676. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  5677. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  5678. <class name="ContentSummary" extends="org.apache.hadoop.fs.QuotaUsage"
  5679. abstract="false"
  5680. static="false" final="false" visibility="public"
  5681. deprecated="not deprecated">
  5682. <implements name="org.apache.hadoop.io.Writable"/>
  5683. <constructor name="ContentSummary"
  5684. static="false" final="false" visibility="public"
  5685. deprecated="not deprecated">
  5686. <doc>
  5687. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  5688. </doc>
  5689. </constructor>
  5690. <constructor name="ContentSummary" type="long, long, long"
  5691. static="false" final="false" visibility="public"
  5692. deprecated="not deprecated">
  5693. <doc>
  5694. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  5695. This constructor implicitly set spaceConsumed the same as length.
  5696. spaceConsumed and length must be set explicitly with
  5697. ContentSummary.Builder]]>
  5698. </doc>
  5699. </constructor>
  5700. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  5701. static="false" final="false" visibility="public"
  5702. deprecated="not deprecated">
  5703. <doc>
  5704. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  5705. </doc>
  5706. </constructor>
  5707. <method name="getLength" return="long"
  5708. abstract="false" native="false" synchronized="false"
  5709. static="false" final="false" visibility="public"
  5710. deprecated="not deprecated">
  5711. <doc>
  5712. <![CDATA[@return the length]]>
  5713. </doc>
  5714. </method>
  5715. <method name="getSnapshotLength" 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="getDirectoryCount" return="long"
  5721. abstract="false" native="false" synchronized="false"
  5722. static="false" final="false" visibility="public"
  5723. deprecated="not deprecated">
  5724. <doc>
  5725. <![CDATA[@return the directory count]]>
  5726. </doc>
  5727. </method>
  5728. <method name="getSnapshotDirectoryCount" return="long"
  5729. abstract="false" native="false" synchronized="false"
  5730. static="false" final="false" visibility="public"
  5731. deprecated="not deprecated">
  5732. </method>
  5733. <method name="getFileCount" return="long"
  5734. abstract="false" native="false" synchronized="false"
  5735. static="false" final="false" visibility="public"
  5736. deprecated="not deprecated">
  5737. <doc>
  5738. <![CDATA[@return the file count]]>
  5739. </doc>
  5740. </method>
  5741. <method name="getSnapshotFileCount" return="long"
  5742. abstract="false" native="false" synchronized="false"
  5743. static="false" final="false" visibility="public"
  5744. deprecated="not deprecated">
  5745. </method>
  5746. <method name="getSnapshotSpaceConsumed" return="long"
  5747. abstract="false" native="false" synchronized="false"
  5748. static="false" final="false" visibility="public"
  5749. deprecated="not deprecated">
  5750. </method>
  5751. <method name="equals" return="boolean"
  5752. abstract="false" native="false" synchronized="false"
  5753. static="false" final="false" visibility="public"
  5754. deprecated="not deprecated">
  5755. <param name="to" type="java.lang.Object"/>
  5756. </method>
  5757. <method name="hashCode" return="int"
  5758. abstract="false" native="false" synchronized="false"
  5759. static="false" final="false" visibility="public"
  5760. deprecated="not deprecated">
  5761. </method>
  5762. <method name="getHeader" return="java.lang.String"
  5763. abstract="false" native="false" synchronized="false"
  5764. static="true" final="false" visibility="public"
  5765. deprecated="not deprecated">
  5766. <param name="qOption" type="boolean"/>
  5767. <doc>
  5768. <![CDATA[Return the header of the output.
  5769. if qOption is false, output directory count, file count, and content size;
  5770. if qOption is true, output quota and remaining quota as well.
  5771. @param qOption a flag indicating if quota needs to be printed or not
  5772. @return the header of the output]]>
  5773. </doc>
  5774. </method>
  5775. <method name="getHeaderFields" return="java.lang.String[]"
  5776. abstract="false" native="false" synchronized="false"
  5777. static="true" final="false" visibility="public"
  5778. deprecated="not deprecated">
  5779. <doc>
  5780. <![CDATA[Returns the names of the fields from the summary header.
  5781. @return names of fields as displayed in the header]]>
  5782. </doc>
  5783. </method>
  5784. <method name="getQuotaHeaderFields" return="java.lang.String[]"
  5785. abstract="false" native="false" synchronized="false"
  5786. static="true" final="false" visibility="public"
  5787. deprecated="not deprecated">
  5788. <doc>
  5789. <![CDATA[Returns the names of the fields used in the quota summary.
  5790. @return names of quota fields as displayed in the header]]>
  5791. </doc>
  5792. </method>
  5793. <method name="toString" return="java.lang.String"
  5794. abstract="false" native="false" synchronized="false"
  5795. static="false" final="false" visibility="public"
  5796. deprecated="not deprecated">
  5797. </method>
  5798. <method name="toString" return="java.lang.String"
  5799. abstract="false" native="false" synchronized="false"
  5800. static="false" final="false" visibility="public"
  5801. deprecated="not deprecated">
  5802. <param name="qOption" type="boolean"/>
  5803. <doc>
  5804. <![CDATA[Return the string representation of the object in the output format.
  5805. if qOption is false, output directory count, file count, and content size;
  5806. if qOption is true, output quota and remaining quota as well.
  5807. @param qOption a flag indicating if quota needs to be printed or not
  5808. @return the string representation of the object]]>
  5809. </doc>
  5810. </method>
  5811. <method name="toString" return="java.lang.String"
  5812. abstract="false" native="false" synchronized="false"
  5813. static="false" final="false" visibility="public"
  5814. deprecated="not deprecated">
  5815. <param name="qOption" type="boolean"/>
  5816. <param name="hOption" type="boolean"/>
  5817. <doc>
  5818. <![CDATA[Return the string representation of the object in the output format.
  5819. For description of the options,
  5820. @see #toString(boolean, boolean, boolean, boolean, List)
  5821. @param qOption a flag indicating if quota needs to be printed or not
  5822. @param hOption a flag indicating if human readable output if to be used
  5823. @return the string representation of the object]]>
  5824. </doc>
  5825. </method>
  5826. <method name="toString" return="java.lang.String"
  5827. abstract="false" native="false" synchronized="false"
  5828. static="false" final="false" visibility="public"
  5829. deprecated="not deprecated">
  5830. <param name="qOption" type="boolean"/>
  5831. <param name="hOption" type="boolean"/>
  5832. <param name="xOption" type="boolean"/>
  5833. <doc>
  5834. <![CDATA[Return the string representation of the object in the output format.
  5835. For description of the options,
  5836. @see #toString(boolean, boolean, boolean, boolean, List)
  5837. @param qOption a flag indicating if quota needs to be printed or not
  5838. @param hOption a flag indicating if human readable output is to be used
  5839. @param xOption a flag indicating if calculation from snapshots is to be
  5840. included in the output
  5841. @return the string representation of the object]]>
  5842. </doc>
  5843. </method>
  5844. <method name="toString" return="java.lang.String"
  5845. abstract="false" native="false" synchronized="false"
  5846. static="false" final="false" visibility="public"
  5847. deprecated="not deprecated">
  5848. <param name="qOption" type="boolean"/>
  5849. <param name="hOption" type="boolean"/>
  5850. <param name="tOption" type="boolean"/>
  5851. <param name="types" type="java.util.List"/>
  5852. <doc>
  5853. <![CDATA[Return the string representation of the object in the output format.
  5854. For description of the options,
  5855. @see #toString(boolean, boolean, boolean, boolean, List)
  5856. @param qOption a flag indicating if quota needs to be printed or not
  5857. @param hOption a flag indicating if human readable output if to be used
  5858. @param tOption a flag indicating if display quota by storage types
  5859. @param types Storage types to display
  5860. @return the string representation of the object]]>
  5861. </doc>
  5862. </method>
  5863. <method name="toString" return="java.lang.String"
  5864. abstract="false" native="false" synchronized="false"
  5865. static="false" final="false" visibility="public"
  5866. deprecated="not deprecated">
  5867. <param name="qOption" type="boolean"/>
  5868. <param name="hOption" type="boolean"/>
  5869. <param name="tOption" type="boolean"/>
  5870. <param name="xOption" type="boolean"/>
  5871. <param name="types" type="java.util.List"/>
  5872. <doc>
  5873. <![CDATA[Return the string representation of the object in the output format.
  5874. if qOption is false, output directory count, file count, and content size;
  5875. if qOption is true, output quota and remaining quota as well.
  5876. if hOption is false, file sizes are returned in bytes
  5877. if hOption is true, file sizes are returned in human readable
  5878. if tOption is true, display the quota by storage types
  5879. if tOption is false, same logic with #toString(boolean,boolean)
  5880. if xOption is false, output includes the calculation from snapshots
  5881. if xOption is true, output excludes the calculation from snapshots
  5882. @param qOption a flag indicating if quota needs to be printed or not
  5883. @param hOption a flag indicating if human readable output is to be used
  5884. @param tOption a flag indicating if display quota by storage types
  5885. @param xOption a flag indicating if calculation from snapshots is to be
  5886. included in the output
  5887. @param types Storage types to display
  5888. @return the string representation of the object]]>
  5889. </doc>
  5890. </method>
  5891. <doc>
  5892. <![CDATA[Store the summary of a content (a directory or a file).]]>
  5893. </doc>
  5894. </class>
  5895. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  5896. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  5897. <class name="CreateFlag" extends="java.lang.Enum"
  5898. abstract="false"
  5899. static="false" final="true" visibility="public"
  5900. deprecated="not deprecated">
  5901. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  5902. abstract="false" native="false" synchronized="false"
  5903. static="true" final="false" visibility="public"
  5904. deprecated="not deprecated">
  5905. </method>
  5906. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  5907. abstract="false" native="false" synchronized="false"
  5908. static="true" final="false" visibility="public"
  5909. deprecated="not deprecated">
  5910. <param name="name" type="java.lang.String"/>
  5911. </method>
  5912. <method name="validate"
  5913. abstract="false" native="false" synchronized="false"
  5914. static="true" final="false" visibility="public"
  5915. deprecated="not deprecated">
  5916. <param name="flag" type="java.util.EnumSet"/>
  5917. <doc>
  5918. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  5919. @param flag set of CreateFlag
  5920. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5921. </doc>
  5922. </method>
  5923. <method name="validate"
  5924. abstract="false" native="false" synchronized="false"
  5925. static="true" final="false" visibility="public"
  5926. deprecated="not deprecated">
  5927. <param name="path" type="java.lang.Object"/>
  5928. <param name="pathExists" type="boolean"/>
  5929. <param name="flag" type="java.util.EnumSet"/>
  5930. <exception name="IOException" type="java.io.IOException"/>
  5931. <doc>
  5932. <![CDATA[Validate the CreateFlag for create operation
  5933. @param path Object representing the path; usually String or {@link Path}
  5934. @param pathExists pass true if the path exists in the file system
  5935. @param flag set of CreateFlag
  5936. @throws IOException on error
  5937. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  5938. </doc>
  5939. </method>
  5940. <method name="validateForAppend"
  5941. abstract="false" native="false" synchronized="false"
  5942. static="true" final="false" visibility="public"
  5943. deprecated="not deprecated">
  5944. <param name="flag" type="java.util.EnumSet"/>
  5945. <doc>
  5946. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  5947. APPEND, and cannot contain OVERWRITE.]]>
  5948. </doc>
  5949. </method>
  5950. <doc>
  5951. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  5952. <code>
  5953. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  5954. <code>
  5955. <p>
  5956. Use the CreateFlag as follows:
  5957. <ol>
  5958. <li> CREATE - to create a file if it does not exist,
  5959. else throw FileAlreadyExists.</li>
  5960. <li> APPEND - to append to a file if it exists,
  5961. else throw FileNotFoundException.</li>
  5962. <li> OVERWRITE - to truncate a file if it exists,
  5963. else throw FileNotFoundException.</li>
  5964. <li> CREATE|APPEND - to create a file if it does not exist,
  5965. else append to an existing file.</li>
  5966. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  5967. else overwrite an existing file.</li>
  5968. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  5969. In addition {@link Syncable#hsync()} should be called after each write,
  5970. if true synchronous behavior is required.</li>
  5971. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  5972. available.</li>
  5973. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  5974. partial block.</li>
  5975. </ol>
  5976. Following combinations are not valid and will result in
  5977. {@link HadoopIllegalArgumentException}:
  5978. <ol>
  5979. <li> APPEND|OVERWRITE</li>
  5980. <li> CREATE|APPEND|OVERWRITE</li>
  5981. </ol>]]>
  5982. </doc>
  5983. </class>
  5984. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  5985. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  5986. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  5987. abstract="false"
  5988. static="false" final="false" visibility="public"
  5989. deprecated="not deprecated">
  5990. <constructor name="FileAlreadyExistsException"
  5991. static="false" final="false" visibility="public"
  5992. deprecated="not deprecated">
  5993. </constructor>
  5994. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  5995. static="false" final="false" visibility="public"
  5996. deprecated="not deprecated">
  5997. </constructor>
  5998. <doc>
  5999. <![CDATA[Used when target file already exists for any operation and
  6000. is not configured to be overwritten.]]>
  6001. </doc>
  6002. </class>
  6003. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  6004. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  6005. <class name="FileChecksum" extends="java.lang.Object"
  6006. abstract="true"
  6007. static="false" final="false" visibility="public"
  6008. deprecated="not deprecated">
  6009. <implements name="org.apache.hadoop.io.Writable"/>
  6010. <constructor name="FileChecksum"
  6011. static="false" final="false" visibility="public"
  6012. deprecated="not deprecated">
  6013. </constructor>
  6014. <method name="getAlgorithmName" return="java.lang.String"
  6015. abstract="true" native="false" synchronized="false"
  6016. static="false" final="false" visibility="public"
  6017. deprecated="not deprecated">
  6018. <doc>
  6019. <![CDATA[The checksum algorithm name]]>
  6020. </doc>
  6021. </method>
  6022. <method name="getLength" return="int"
  6023. abstract="true" native="false" synchronized="false"
  6024. static="false" final="false" visibility="public"
  6025. deprecated="not deprecated">
  6026. <doc>
  6027. <![CDATA[The length of the checksum in bytes]]>
  6028. </doc>
  6029. </method>
  6030. <method name="getBytes" return="byte[]"
  6031. abstract="true" native="false" synchronized="false"
  6032. static="false" final="false" visibility="public"
  6033. deprecated="not deprecated">
  6034. <doc>
  6035. <![CDATA[The value of the checksum in bytes]]>
  6036. </doc>
  6037. </method>
  6038. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  6039. abstract="false" native="false" synchronized="false"
  6040. static="false" final="false" visibility="public"
  6041. deprecated="not deprecated">
  6042. </method>
  6043. <method name="equals" return="boolean"
  6044. abstract="false" native="false" synchronized="false"
  6045. static="false" final="false" visibility="public"
  6046. deprecated="not deprecated">
  6047. <param name="other" type="java.lang.Object"/>
  6048. <doc>
  6049. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  6050. </doc>
  6051. </method>
  6052. <method name="hashCode" return="int"
  6053. abstract="false" native="false" synchronized="false"
  6054. static="false" final="false" visibility="public"
  6055. deprecated="not deprecated">
  6056. </method>
  6057. <doc>
  6058. <![CDATA[An abstract class representing file checksums for files.]]>
  6059. </doc>
  6060. </class>
  6061. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  6062. <!-- start class org.apache.hadoop.fs.FileContext -->
  6063. <class name="FileContext" extends="java.lang.Object"
  6064. abstract="false"
  6065. static="false" final="false" visibility="public"
  6066. deprecated="not deprecated">
  6067. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  6068. abstract="false" native="false" synchronized="false"
  6069. static="false" final="false" visibility="protected"
  6070. deprecated="not deprecated">
  6071. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6072. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6073. <exception name="IOException" type="java.io.IOException"/>
  6074. <doc>
  6075. <![CDATA[Get the file system of supplied path.
  6076. @param absOrFqPath - absolute or fully qualified path
  6077. @return the file system of the path
  6078. @throws UnsupportedFileSystemException If the file system for
  6079. <code>absOrFqPath</code> is not supported.
  6080. @throws IOException If the file system for <code>absOrFqPath</code> could
  6081. not be instantiated.]]>
  6082. </doc>
  6083. </method>
  6084. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6085. abstract="false" native="false" synchronized="false"
  6086. static="true" final="false" visibility="public"
  6087. deprecated="not deprecated">
  6088. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6089. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6090. <doc>
  6091. <![CDATA[Create a FileContext with specified FS as default using the specified
  6092. config.
  6093. @param defFS
  6094. @param aConf
  6095. @return new FileContext with specifed FS as default.]]>
  6096. </doc>
  6097. </method>
  6098. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6099. abstract="false" native="false" synchronized="false"
  6100. static="true" final="false" visibility="protected"
  6101. deprecated="not deprecated">
  6102. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  6103. <doc>
  6104. <![CDATA[Create a FileContext for specified file system using the default config.
  6105. @param defaultFS
  6106. @return a FileContext with the specified AbstractFileSystem
  6107. as the default FS.]]>
  6108. </doc>
  6109. </method>
  6110. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6111. abstract="false" native="false" synchronized="false"
  6112. static="true" final="false" visibility="public"
  6113. deprecated="not deprecated">
  6114. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6115. <doc>
  6116. <![CDATA[Create a FileContext using the default config read from the
  6117. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  6118. from core-defaults.xml in the release jar.
  6119. @throws UnsupportedFileSystemException If the file system from the default
  6120. configuration is not supported]]>
  6121. </doc>
  6122. </method>
  6123. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6124. abstract="false" native="false" synchronized="false"
  6125. static="true" final="false" visibility="public"
  6126. deprecated="not deprecated">
  6127. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6128. <doc>
  6129. <![CDATA[@return a FileContext for the local file system using the default config.
  6130. @throws UnsupportedFileSystemException If the file system for
  6131. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  6132. </doc>
  6133. </method>
  6134. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6135. abstract="false" native="false" synchronized="false"
  6136. static="true" final="false" visibility="public"
  6137. deprecated="not deprecated">
  6138. <param name="defaultFsUri" type="java.net.URI"/>
  6139. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6140. <doc>
  6141. <![CDATA[Create a FileContext for specified URI using the default config.
  6142. @param defaultFsUri
  6143. @return a FileContext with the specified URI as the default FS.
  6144. @throws UnsupportedFileSystemException If the file system for
  6145. <code>defaultFsUri</code> is not supported]]>
  6146. </doc>
  6147. </method>
  6148. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6149. abstract="false" native="false" synchronized="false"
  6150. static="true" final="false" visibility="public"
  6151. deprecated="not deprecated">
  6152. <param name="defaultFsUri" type="java.net.URI"/>
  6153. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6154. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6155. <doc>
  6156. <![CDATA[Create a FileContext for specified default URI using the specified config.
  6157. @param defaultFsUri
  6158. @param aConf
  6159. @return new FileContext for specified uri
  6160. @throws UnsupportedFileSystemException If the file system with specified is
  6161. not supported
  6162. @throws RuntimeException If the file system specified is supported but
  6163. could not be instantiated, or if login fails.]]>
  6164. </doc>
  6165. </method>
  6166. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  6167. abstract="false" native="false" synchronized="false"
  6168. static="true" final="false" visibility="public"
  6169. deprecated="not deprecated">
  6170. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6171. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6172. <doc>
  6173. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  6174. {@link #getFileContext(URI, Configuration)} instead of this one.
  6175. @param aConf
  6176. @return new FileContext
  6177. @throws UnsupportedFileSystemException If file system in the config
  6178. is not supported]]>
  6179. </doc>
  6180. </method>
  6181. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  6182. abstract="false" native="false" synchronized="false"
  6183. static="true" final="false" visibility="public"
  6184. deprecated="not deprecated">
  6185. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  6186. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6187. <doc>
  6188. <![CDATA[@param aConf - from which the FileContext is configured
  6189. @return a FileContext for the local file system using the specified config.
  6190. @throws UnsupportedFileSystemException If default file system in the config
  6191. is not supported]]>
  6192. </doc>
  6193. </method>
  6194. <method name="setWorkingDirectory"
  6195. abstract="false" native="false" synchronized="false"
  6196. static="false" final="false" visibility="public"
  6197. deprecated="not deprecated">
  6198. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  6199. <exception name="IOException" type="java.io.IOException"/>
  6200. <doc>
  6201. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  6202. directory feature is provided by simply prefixing relative names with the
  6203. working dir. Note this is different from Unix where the wd is actually set
  6204. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  6205. better in a distributed environment that has multiple independent roots.
  6206. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  6207. @param newWDir new working directory
  6208. @throws IOException
  6209. <br>
  6210. NewWdir can be one of:
  6211. <ul>
  6212. <li>relative path: "foo/bar";</li>
  6213. <li>absolute without scheme: "/foo/bar"</li>
  6214. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  6215. </ul>
  6216. <br>
  6217. Illegal WDs:
  6218. <ul>
  6219. <li>relative with scheme: "xx:foo/bar"</li>
  6220. <li>non existent directory</li>
  6221. </ul>]]>
  6222. </doc>
  6223. </method>
  6224. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6225. abstract="false" native="false" synchronized="false"
  6226. static="false" final="false" visibility="public"
  6227. deprecated="not deprecated">
  6228. <doc>
  6229. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  6230. </doc>
  6231. </method>
  6232. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  6233. abstract="false" native="false" synchronized="false"
  6234. static="false" final="false" visibility="public"
  6235. deprecated="not deprecated">
  6236. <doc>
  6237. <![CDATA[Gets the ugi in the file-context
  6238. @return UserGroupInformation]]>
  6239. </doc>
  6240. </method>
  6241. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6242. abstract="false" native="false" synchronized="false"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <doc>
  6246. <![CDATA[Return the current user's home directory in this file system.
  6247. The default implementation returns "/user/$USER/".
  6248. @return the home directory]]>
  6249. </doc>
  6250. </method>
  6251. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6252. abstract="false" native="false" synchronized="false"
  6253. static="false" final="false" visibility="public"
  6254. deprecated="not deprecated">
  6255. <doc>
  6256. <![CDATA[@return the umask of this FileContext]]>
  6257. </doc>
  6258. </method>
  6259. <method name="setUMask"
  6260. abstract="false" native="false" synchronized="false"
  6261. static="false" final="false" visibility="public"
  6262. deprecated="not deprecated">
  6263. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6264. <doc>
  6265. <![CDATA[Set umask to the supplied parameter.
  6266. @param newUmask the new umask]]>
  6267. </doc>
  6268. </method>
  6269. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6270. abstract="false" native="false" synchronized="false"
  6271. static="false" final="false" visibility="public"
  6272. deprecated="not deprecated">
  6273. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6274. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6275. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  6276. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6277. <exception name="IOException" type="java.io.IOException"/>
  6278. <doc>
  6279. <![CDATA[Resolve the path following any symlinks or mount points
  6280. @param f to be resolved
  6281. @return fully qualified resolved path
  6282. @throws FileNotFoundException If <code>f</code> does not exist
  6283. @throws AccessControlException if access denied
  6284. @throws IOException If an IO Error occurred
  6285. Exceptions applicable to file systems accessed over RPC:
  6286. @throws RpcClientException If an exception occurred in the RPC client
  6287. @throws RpcServerException If an exception occurred in the RPC server
  6288. @throws UnexpectedServerException If server implementation throws
  6289. undeclared exception to RPC server
  6290. RuntimeExceptions:
  6291. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6292. </doc>
  6293. </method>
  6294. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6295. abstract="false" native="false" synchronized="false"
  6296. static="false" final="false" visibility="public"
  6297. deprecated="not deprecated">
  6298. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6299. <doc>
  6300. <![CDATA[Make the path fully qualified if it is isn't.
  6301. A Fully-qualified path has scheme and authority specified and an absolute
  6302. path.
  6303. Use the default file system and working dir in this FileContext to qualify.
  6304. @param path
  6305. @return qualified path]]>
  6306. </doc>
  6307. </method>
  6308. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6309. abstract="false" native="false" synchronized="false"
  6310. static="false" final="false" visibility="public"
  6311. deprecated="not deprecated">
  6312. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6313. <param name="createFlag" type="java.util.EnumSet"/>
  6314. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6315. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6316. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6317. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6318. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6319. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6320. <exception name="IOException" type="java.io.IOException"/>
  6321. <doc>
  6322. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  6323. writing into the file.
  6324. @param f the file name to open
  6325. @param createFlag gives the semantics of create; see {@link CreateFlag}
  6326. @param opts file creation options; see {@link Options.CreateOpts}.
  6327. <ul>
  6328. <li>Progress - to report progress on the operation - default null
  6329. <li>Permission - umask is applied against permisssion: default is
  6330. FsPermissions:getDefault()
  6331. <li>CreateParent - create missing parent path; default is to not
  6332. to create parents
  6333. <li>The defaults for the following are SS defaults of the file
  6334. server implementing the target path. Not all parameters make sense
  6335. for all kinds of file system - eg. localFS ignores Blocksize,
  6336. replication, checksum
  6337. <ul>
  6338. <li>BufferSize - buffersize used in FSDataOutputStream
  6339. <li>Blocksize - block size for file blocks
  6340. <li>ReplicationFactor - replication for blocks
  6341. <li>ChecksumParam - Checksum parameters. server default is used
  6342. if not specified.
  6343. </ul>
  6344. </ul>
  6345. @return {@link FSDataOutputStream} for created file
  6346. @throws AccessControlException If access is denied
  6347. @throws FileAlreadyExistsException If file <code>f</code> already exists
  6348. @throws FileNotFoundException If parent of <code>f</code> does not exist
  6349. and <code>createParent</code> is false
  6350. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  6351. directory.
  6352. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6353. not supported
  6354. @throws IOException If an I/O error occurred
  6355. Exceptions applicable to file systems accessed over RPC:
  6356. @throws RpcClientException If an exception occurred in the RPC client
  6357. @throws RpcServerException If an exception occurred in the RPC server
  6358. @throws UnexpectedServerException If server implementation throws
  6359. undeclared exception to RPC server
  6360. RuntimeExceptions:
  6361. @throws InvalidPathException If path <code>f</code> is not valid]]>
  6362. </doc>
  6363. </method>
  6364. <method name="mkdir"
  6365. abstract="false" native="false" synchronized="false"
  6366. static="false" final="false" visibility="public"
  6367. deprecated="not deprecated">
  6368. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6369. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6370. <param name="createParent" type="boolean"/>
  6371. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6372. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6373. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6374. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6375. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6376. <exception name="IOException" type="java.io.IOException"/>
  6377. <doc>
  6378. <![CDATA[Make(create) a directory and all the non-existent parents.
  6379. @param dir - the dir to make
  6380. @param permission - permissions is set permission&~umask
  6381. @param createParent - if true then missing parent dirs are created if false
  6382. then parent must exist
  6383. @throws AccessControlException If access is denied
  6384. @throws FileAlreadyExistsException If directory <code>dir</code> already
  6385. exists
  6386. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  6387. and <code>createParent</code> is false
  6388. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  6389. directory
  6390. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  6391. is not supported
  6392. @throws IOException If an I/O error occurred
  6393. Exceptions applicable to file systems accessed over RPC:
  6394. @throws RpcClientException If an exception occurred in the RPC client
  6395. @throws UnexpectedServerException If server implementation throws
  6396. undeclared exception to RPC server
  6397. RuntimeExceptions:
  6398. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  6399. </doc>
  6400. </method>
  6401. <method name="delete" return="boolean"
  6402. abstract="false" native="false" synchronized="false"
  6403. static="false" final="false" visibility="public"
  6404. deprecated="not deprecated">
  6405. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6406. <param name="recursive" type="boolean"/>
  6407. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6408. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6409. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6410. <exception name="IOException" type="java.io.IOException"/>
  6411. <doc>
  6412. <![CDATA[Delete a file.
  6413. @param f the path to delete.
  6414. @param recursive if path is a directory and set to
  6415. true, the directory is deleted else throws an exception. In
  6416. case of a file the recursive can be set to either true or false.
  6417. @throws AccessControlException If access is denied
  6418. @throws FileNotFoundException If <code>f</code> does not exist
  6419. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6420. not supported
  6421. @throws IOException If an I/O error occurred
  6422. Exceptions applicable to file systems accessed over RPC:
  6423. @throws RpcClientException If an exception occurred in the RPC client
  6424. @throws RpcServerException If an exception occurred in the RPC server
  6425. @throws UnexpectedServerException If server implementation throws
  6426. undeclared exception to RPC server
  6427. RuntimeExceptions:
  6428. @throws InvalidPathException If path <code>f</code> is invalid]]>
  6429. </doc>
  6430. </method>
  6431. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6432. abstract="false" native="false" synchronized="false"
  6433. static="false" final="false" visibility="public"
  6434. deprecated="not deprecated">
  6435. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6436. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6437. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6438. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6439. <exception name="IOException" type="java.io.IOException"/>
  6440. <doc>
  6441. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  6442. default buffersize.
  6443. @param f the file name to open
  6444. @throws AccessControlException If access is denied
  6445. @throws FileNotFoundException If file <code>f</code> does not exist
  6446. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6447. is not supported
  6448. @throws IOException If an I/O error occurred
  6449. Exceptions applicable to file systems accessed over RPC:
  6450. @throws RpcClientException If an exception occurred in the RPC client
  6451. @throws RpcServerException If an exception occurred in the RPC server
  6452. @throws UnexpectedServerException If server implementation throws
  6453. undeclared exception to RPC server]]>
  6454. </doc>
  6455. </method>
  6456. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6457. abstract="false" native="false" synchronized="false"
  6458. static="false" final="false" visibility="public"
  6459. deprecated="not deprecated">
  6460. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6461. <param name="bufferSize" type="int"/>
  6462. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6463. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6464. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6465. <exception name="IOException" type="java.io.IOException"/>
  6466. <doc>
  6467. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6468. @param f the file name to open
  6469. @param bufferSize the size of the buffer to be used.
  6470. @throws AccessControlException If access is denied
  6471. @throws FileNotFoundException If file <code>f</code> does not exist
  6472. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6473. not supported
  6474. @throws IOException If an I/O error occurred
  6475. Exceptions applicable to file systems accessed over RPC:
  6476. @throws RpcClientException If an exception occurred in the RPC client
  6477. @throws RpcServerException If an exception occurred in the RPC server
  6478. @throws UnexpectedServerException If server implementation throws
  6479. undeclared exception to RPC server]]>
  6480. </doc>
  6481. </method>
  6482. <method name="truncate" return="boolean"
  6483. abstract="false" native="false" synchronized="false"
  6484. static="false" final="false" visibility="public"
  6485. deprecated="not deprecated">
  6486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6487. <param name="newLength" type="long"/>
  6488. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6489. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6490. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6491. <exception name="IOException" type="java.io.IOException"/>
  6492. <doc>
  6493. <![CDATA[Truncate the file in the indicated path to the indicated size.
  6494. <ul>
  6495. <li>Fails if path is a directory.
  6496. <li>Fails if path does not exist.
  6497. <li>Fails if path is not closed.
  6498. <li>Fails if new size is greater than current size.
  6499. </ul>
  6500. @param f The path to the file to be truncated
  6501. @param newLength The size the file is to be truncated to
  6502. @return <code>true</code> if the file has been truncated to the desired
  6503. <code>newLength</code> and is immediately available to be reused for
  6504. write operations such as <code>append</code>, or
  6505. <code>false</code> if a background process of adjusting the length of
  6506. the last block has been started, and clients should wait for it to
  6507. complete before proceeding with further file updates.
  6508. @throws AccessControlException If access is denied
  6509. @throws FileNotFoundException If file <code>f</code> does not exist
  6510. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6511. not supported
  6512. @throws IOException If an I/O error occurred
  6513. Exceptions applicable to file systems accessed over RPC:
  6514. @throws RpcClientException If an exception occurred in the RPC client
  6515. @throws RpcServerException If an exception occurred in the RPC server
  6516. @throws UnexpectedServerException If server implementation throws
  6517. undeclared exception to RPC server]]>
  6518. </doc>
  6519. </method>
  6520. <method name="setReplication" return="boolean"
  6521. abstract="false" native="false" synchronized="false"
  6522. static="false" final="false" visibility="public"
  6523. deprecated="not deprecated">
  6524. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6525. <param name="replication" type="short"/>
  6526. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6527. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6528. <exception name="IOException" type="java.io.IOException"/>
  6529. <doc>
  6530. <![CDATA[Set replication for an existing file.
  6531. @param f file name
  6532. @param replication new replication
  6533. @return true if successful
  6534. @throws AccessControlException If access is denied
  6535. @throws FileNotFoundException If file <code>f</code> does not exist
  6536. @throws IOException If an I/O error occurred
  6537. Exceptions applicable to file systems accessed over RPC:
  6538. @throws RpcClientException If an exception occurred in the RPC client
  6539. @throws RpcServerException If an exception occurred in the RPC server
  6540. @throws UnexpectedServerException If server implementation throws
  6541. undeclared exception to RPC server]]>
  6542. </doc>
  6543. </method>
  6544. <method name="rename"
  6545. abstract="false" native="false" synchronized="false"
  6546. static="false" final="false" visibility="public"
  6547. deprecated="not deprecated">
  6548. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6549. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6550. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  6551. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6552. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6553. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6554. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6555. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6556. <exception name="IOException" type="java.io.IOException"/>
  6557. <doc>
  6558. <![CDATA[Renames Path src to Path dst
  6559. <ul>
  6560. <li
  6561. <li>Fails if src is a file and dst is a directory.
  6562. <li>Fails if src is a directory and dst is a file.
  6563. <li>Fails if the parent of dst does not exist or is a file.
  6564. </ul>
  6565. <p>
  6566. If OVERWRITE option is not passed as an argument, rename fails if the dst
  6567. already exists.
  6568. <p>
  6569. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  6570. it is a file or an empty directory. Rename fails if dst is a non-empty
  6571. directory.
  6572. <p>
  6573. Note that atomicity of rename is dependent on the file system
  6574. implementation. Please refer to the file system documentation for details
  6575. <p>
  6576. @param src path to be renamed
  6577. @param dst new path after rename
  6578. @throws AccessControlException If access is denied
  6579. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  6580. <code>options</options> has {@link Options.Rename#OVERWRITE}
  6581. option false.
  6582. @throws FileNotFoundException If <code>src</code> does not exist
  6583. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  6584. directory
  6585. @throws UnsupportedFileSystemException If file system for <code>src</code>
  6586. and <code>dst</code> is not supported
  6587. @throws IOException If an I/O error occurred
  6588. Exceptions applicable to file systems accessed over RPC:
  6589. @throws RpcClientException If an exception occurred in the RPC client
  6590. @throws RpcServerException If an exception occurred in the RPC server
  6591. @throws UnexpectedServerException If server implementation throws
  6592. undeclared exception to RPC server]]>
  6593. </doc>
  6594. </method>
  6595. <method name="setPermission"
  6596. abstract="false" native="false" synchronized="false"
  6597. static="false" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6600. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6601. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6602. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6603. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6604. <exception name="IOException" type="java.io.IOException"/>
  6605. <doc>
  6606. <![CDATA[Set permission of a path.
  6607. @param f
  6608. @param permission - the new absolute permission (umask is not applied)
  6609. @throws AccessControlException If access is denied
  6610. @throws FileNotFoundException If <code>f</code> does not exist
  6611. @throws UnsupportedFileSystemException If file system for <code>f</code>
  6612. is not supported
  6613. @throws IOException If an I/O error occurred
  6614. Exceptions applicable to file systems accessed over RPC:
  6615. @throws RpcClientException If an exception occurred in the RPC client
  6616. @throws RpcServerException If an exception occurred in the RPC server
  6617. @throws UnexpectedServerException If server implementation throws
  6618. undeclared exception to RPC server]]>
  6619. </doc>
  6620. </method>
  6621. <method name="setOwner"
  6622. abstract="false" native="false" synchronized="false"
  6623. static="false" final="false" visibility="public"
  6624. deprecated="not deprecated">
  6625. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6626. <param name="username" type="java.lang.String"/>
  6627. <param name="groupname" type="java.lang.String"/>
  6628. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6629. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6630. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6631. <exception name="IOException" type="java.io.IOException"/>
  6632. <doc>
  6633. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  6634. and groupname cannot both be null.
  6635. @param f The path
  6636. @param username If it is null, the original username remains unchanged.
  6637. @param groupname If it is null, the original groupname remains unchanged.
  6638. @throws AccessControlException If access is denied
  6639. @throws FileNotFoundException If <code>f</code> does not exist
  6640. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6641. not supported
  6642. @throws IOException If an I/O error occurred
  6643. Exceptions applicable to file systems accessed over RPC:
  6644. @throws RpcClientException If an exception occurred in the RPC client
  6645. @throws RpcServerException If an exception occurred in the RPC server
  6646. @throws UnexpectedServerException If server implementation throws
  6647. undeclared exception to RPC server
  6648. RuntimeExceptions:
  6649. @throws HadoopIllegalArgumentException If <code>username</code> or
  6650. <code>groupname</code> is invalid.]]>
  6651. </doc>
  6652. </method>
  6653. <method name="setTimes"
  6654. abstract="false" native="false" synchronized="false"
  6655. static="false" final="false" visibility="public"
  6656. deprecated="not deprecated">
  6657. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6658. <param name="mtime" type="long"/>
  6659. <param name="atime" type="long"/>
  6660. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6661. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6662. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6663. <exception name="IOException" type="java.io.IOException"/>
  6664. <doc>
  6665. <![CDATA[Set access time of a file.
  6666. @param f The path
  6667. @param mtime Set the modification time of this file.
  6668. The number of milliseconds since epoch (Jan 1, 1970).
  6669. A value of -1 means that this call should not set modification time.
  6670. @param atime Set the access time of this file.
  6671. The number of milliseconds since Jan 1, 1970.
  6672. A value of -1 means that this call should not set access time.
  6673. @throws AccessControlException If access is denied
  6674. @throws FileNotFoundException If <code>f</code> does not exist
  6675. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6676. not supported
  6677. @throws IOException If an I/O error occurred
  6678. Exceptions applicable to file systems accessed over RPC:
  6679. @throws RpcClientException If an exception occurred in the RPC client
  6680. @throws RpcServerException If an exception occurred in the RPC server
  6681. @throws UnexpectedServerException If server implementation throws
  6682. undeclared exception to RPC server]]>
  6683. </doc>
  6684. </method>
  6685. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6686. abstract="false" native="false" synchronized="false"
  6687. static="false" final="false" visibility="public"
  6688. deprecated="not deprecated">
  6689. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6690. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6691. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6692. <exception name="IOException" type="java.io.IOException"/>
  6693. <doc>
  6694. <![CDATA[Get the checksum of a file.
  6695. @param f file path
  6696. @return The file checksum. The default return value is null,
  6697. which indicates that no checksum algorithm is implemented
  6698. in the corresponding FileSystem.
  6699. @throws AccessControlException If access is denied
  6700. @throws FileNotFoundException If <code>f</code> does not exist
  6701. @throws IOException If an I/O error occurred
  6702. Exceptions applicable to file systems accessed over RPC:
  6703. @throws RpcClientException If an exception occurred in the RPC client
  6704. @throws RpcServerException If an exception occurred in the RPC server
  6705. @throws UnexpectedServerException If server implementation throws
  6706. undeclared exception to RPC server]]>
  6707. </doc>
  6708. </method>
  6709. <method name="setVerifyChecksum"
  6710. abstract="false" native="false" synchronized="false"
  6711. static="false" final="false" visibility="public"
  6712. deprecated="not deprecated">
  6713. <param name="verifyChecksum" type="boolean"/>
  6714. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6715. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6716. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6717. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6718. <exception name="IOException" type="java.io.IOException"/>
  6719. <doc>
  6720. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  6721. This is only applicable if the
  6722. corresponding FileSystem supports checksum. By default doesn't do anything.
  6723. @param verifyChecksum
  6724. @param f set the verifyChecksum for the Filesystem containing this path
  6725. @throws AccessControlException If access is denied
  6726. @throws FileNotFoundException If <code>f</code> does not exist
  6727. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6728. not supported
  6729. @throws IOException If an I/O error occurred
  6730. Exceptions applicable to file systems accessed over RPC:
  6731. @throws RpcClientException If an exception occurred in the RPC client
  6732. @throws RpcServerException If an exception occurred in the RPC server
  6733. @throws UnexpectedServerException If server implementation throws
  6734. undeclared exception to RPC server]]>
  6735. </doc>
  6736. </method>
  6737. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6738. abstract="false" native="false" synchronized="false"
  6739. static="false" final="false" visibility="public"
  6740. deprecated="not deprecated">
  6741. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6742. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6743. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6744. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6745. <exception name="IOException" type="java.io.IOException"/>
  6746. <doc>
  6747. <![CDATA[Return a file status object that represents the path.
  6748. @param f The path we want information from
  6749. @return a FileStatus object
  6750. @throws AccessControlException If access is denied
  6751. @throws FileNotFoundException If <code>f</code> does not exist
  6752. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6753. not supported
  6754. @throws IOException If an I/O error occurred
  6755. Exceptions applicable to file systems accessed over RPC:
  6756. @throws RpcClientException If an exception occurred in the RPC client
  6757. @throws RpcServerException If an exception occurred in the RPC server
  6758. @throws UnexpectedServerException If server implementation throws
  6759. undeclared exception to RPC server]]>
  6760. </doc>
  6761. </method>
  6762. <method name="msync"
  6763. abstract="false" native="false" synchronized="false"
  6764. static="false" final="false" visibility="public"
  6765. deprecated="not deprecated">
  6766. <exception name="IOException" type="java.io.IOException"/>
  6767. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  6768. <doc>
  6769. <![CDATA[Synchronize client metadata state.
  6770. @throws IOException
  6771. @throws UnsupportedOperationException]]>
  6772. </doc>
  6773. </method>
  6774. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  6775. abstract="false" native="false" synchronized="false"
  6776. static="false" final="false" visibility="public"
  6777. deprecated="not deprecated">
  6778. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6779. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6780. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6781. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6782. <exception name="IOException" type="java.io.IOException"/>
  6783. <doc>
  6784. <![CDATA[Return a file status object that represents the path. If the path
  6785. refers to a symlink then the FileStatus of the symlink is returned.
  6786. The behavior is equivalent to #getFileStatus() if the underlying
  6787. file system does not support symbolic links.
  6788. @param f The path we want information from.
  6789. @return A FileStatus object
  6790. @throws AccessControlException If access is denied
  6791. @throws FileNotFoundException If <code>f</code> does not exist
  6792. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6793. not supported
  6794. @throws IOException If an I/O error occurred]]>
  6795. </doc>
  6796. </method>
  6797. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  6798. abstract="false" native="false" synchronized="false"
  6799. static="false" final="false" visibility="public"
  6800. deprecated="not deprecated">
  6801. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6802. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6803. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6804. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6805. <exception name="IOException" type="java.io.IOException"/>
  6806. <doc>
  6807. <![CDATA[Returns the target of the given symbolic link as it was specified
  6808. when the link was created. Links in the path leading up to the
  6809. final path component are resolved transparently.
  6810. @param f the path to return the target of
  6811. @return The un-interpreted target of the symbolic link.
  6812. @throws AccessControlException If access is denied
  6813. @throws FileNotFoundException If path <code>f</code> does not exist
  6814. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6815. not supported
  6816. @throws IOException If the given path does not refer to a symlink
  6817. or an I/O error occurred]]>
  6818. </doc>
  6819. </method>
  6820. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  6821. abstract="false" native="false" synchronized="false"
  6822. static="false" final="false" visibility="public"
  6823. deprecated="not deprecated">
  6824. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6825. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6826. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6827. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6828. <exception name="IOException" type="java.io.IOException"/>
  6829. <doc>
  6830. <![CDATA[Returns a status object describing the use and capacity of the
  6831. file system denoted by the Parh argument p.
  6832. If the file system has multiple partitions, the
  6833. use and capacity of the partition pointed to by the specified
  6834. path is reflected.
  6835. @param f Path for which status should be obtained. null means the
  6836. root partition of the default file system.
  6837. @return a FsStatus object
  6838. @throws AccessControlException If access is denied
  6839. @throws FileNotFoundException If <code>f</code> does not exist
  6840. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6841. not supported
  6842. @throws IOException If an I/O error occurred
  6843. Exceptions applicable to file systems accessed over RPC:
  6844. @throws RpcClientException If an exception occurred in the RPC client
  6845. @throws RpcServerException If an exception occurred in the RPC server
  6846. @throws UnexpectedServerException If server implementation throws
  6847. undeclared exception to RPC server]]>
  6848. </doc>
  6849. </method>
  6850. <method name="createSymlink"
  6851. abstract="false" native="false" synchronized="false"
  6852. static="false" final="false" visibility="public"
  6853. deprecated="not deprecated">
  6854. <param name="target" type="org.apache.hadoop.fs.Path"/>
  6855. <param name="link" type="org.apache.hadoop.fs.Path"/>
  6856. <param name="createParent" type="boolean"/>
  6857. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6858. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  6859. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6860. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  6861. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6862. <exception name="IOException" type="java.io.IOException"/>
  6863. <doc>
  6864. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  6865. the symlink exits, the user does not have permission to create symlink,
  6866. or the underlying file system does not support symlinks.
  6867. Symlink permissions are ignored, access to a symlink is determined by
  6868. the permissions of the symlink target.
  6869. Symlinks in paths leading up to the final path component are resolved
  6870. transparently. If the final path component refers to a symlink some
  6871. functions operate on the symlink itself, these are:
  6872. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  6873. - rename(src, dst) - If src refers to a symlink, the symlink is
  6874. renamed. If dst refers to a symlink, the symlink is over-written.
  6875. - getLinkTarget(f) - Returns the target of the symlink.
  6876. - getFileLinkStatus(f) - Returns a FileStatus object describing
  6877. the symlink.
  6878. Some functions, create() and mkdir(), expect the final path component
  6879. does not exist. If they are given a path that refers to a symlink that
  6880. does exist they behave as if the path referred to an existing file or
  6881. directory. All other functions fully resolve, ie follow, the symlink.
  6882. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  6883. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  6884. getFsStatus, getFileStatus, exists, and listStatus.
  6885. Symlink targets are stored as given to createSymlink, assuming the
  6886. underlying file system is capable of storing a fully qualified URI.
  6887. Dangling symlinks are permitted. FileContext supports four types of
  6888. symlink targets, and resolves them as follows
  6889. <pre>
  6890. Given a path referring to a symlink of form:
  6891. <---X--->
  6892. fs://host/A/B/link
  6893. <-----Y----->
  6894. In this path X is the scheme and authority that identify the file system,
  6895. and Y is the path leading up to the final path component "link". If Y is
  6896. a symlink itself then let Y' be the target of Y and X' be the scheme and
  6897. authority of Y'. Symlink targets may:
  6898. 1. Fully qualified URIs
  6899. fs://hostX/A/B/file Resolved according to the target file system.
  6900. 2. Partially qualified URIs (eg scheme but no host)
  6901. fs:///A/B/file Resolved according to the target file system. Eg resolving
  6902. a symlink to hdfs:///A results in an exception because
  6903. HDFS URIs must be fully qualified, while a symlink to
  6904. file:///A will not since Hadoop's local file systems
  6905. require partially qualified URIs.
  6906. 3. Relative paths
  6907. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  6908. is "../B/file" then [Y'][path] is hdfs://host/B/file
  6909. 4. Absolute paths
  6910. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  6911. is "/file" then [X][path] is hdfs://host/file
  6912. </pre>
  6913. @param target the target of the symbolic link
  6914. @param link the path to be created that points to target
  6915. @param createParent if true then missing parent dirs are created if
  6916. false then parent must exist
  6917. @throws AccessControlException If access is denied
  6918. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  6919. @throws FileNotFoundException If <code>target</code> does not exist
  6920. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  6921. directory.
  6922. @throws UnsupportedFileSystemException If file system for
  6923. <code>target</code> or <code>link</code> is not supported
  6924. @throws IOException If an I/O error occurred]]>
  6925. </doc>
  6926. </method>
  6927. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6928. abstract="false" native="false" synchronized="false"
  6929. static="false" final="false" visibility="public"
  6930. deprecated="not deprecated">
  6931. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6932. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6933. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6934. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6935. <exception name="IOException" type="java.io.IOException"/>
  6936. <doc>
  6937. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6938. a directory.
  6939. @param f is the path
  6940. @return an iterator that traverses statuses of the files/directories
  6941. in the given path
  6942. @throws AccessControlException If access is denied
  6943. @throws FileNotFoundException If <code>f</code> does not exist
  6944. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6945. not supported
  6946. @throws IOException If an I/O error occurred
  6947. Exceptions applicable to file systems accessed over RPC:
  6948. @throws RpcClientException If an exception occurred in the RPC client
  6949. @throws RpcServerException If an exception occurred in the RPC server
  6950. @throws UnexpectedServerException If server implementation throws
  6951. undeclared exception to RPC server]]>
  6952. </doc>
  6953. </method>
  6954. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  6955. abstract="false" native="false" synchronized="false"
  6956. static="false" final="false" visibility="public"
  6957. deprecated="not deprecated">
  6958. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6959. <exception name="IOException" type="java.io.IOException"/>
  6960. <doc>
  6961. <![CDATA[@return an iterator over the corrupt files under the given path
  6962. (may contain duplicates if a file has more than one corrupt block)
  6963. @throws IOException]]>
  6964. </doc>
  6965. </method>
  6966. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6967. abstract="false" native="false" synchronized="false"
  6968. static="false" final="false" visibility="public"
  6969. deprecated="not deprecated">
  6970. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6971. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  6972. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  6973. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6974. <exception name="IOException" type="java.io.IOException"/>
  6975. <doc>
  6976. <![CDATA[List the statuses of the files/directories in the given path if the path is
  6977. a directory.
  6978. Return the file's status and block locations If the path is a file.
  6979. If a returned status is a file, it contains the file's block locations.
  6980. @param f is the path
  6981. @return an iterator that traverses statuses of the files/directories
  6982. in the given path
  6983. If any IO exception (for example the input directory gets deleted while
  6984. listing is being executed), next() or hasNext() of the returned iterator
  6985. may throw a RuntimeException with the io exception as the cause.
  6986. @throws AccessControlException If access is denied
  6987. @throws FileNotFoundException If <code>f</code> does not exist
  6988. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  6989. not supported
  6990. @throws IOException If an I/O error occurred
  6991. Exceptions applicable to file systems accessed over RPC:
  6992. @throws RpcClientException If an exception occurred in the RPC client
  6993. @throws RpcServerException If an exception occurred in the RPC server
  6994. @throws UnexpectedServerException If server implementation throws
  6995. undeclared exception to RPC server]]>
  6996. </doc>
  6997. </method>
  6998. <method name="deleteOnExit" return="boolean"
  6999. abstract="false" native="false" synchronized="false"
  7000. static="false" final="false" visibility="public"
  7001. deprecated="not deprecated">
  7002. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7003. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7004. <exception name="IOException" type="java.io.IOException"/>
  7005. <doc>
  7006. <![CDATA[Mark a path to be deleted on JVM shutdown.
  7007. @param f the existing path to delete.
  7008. @return true if deleteOnExit is successful, otherwise false.
  7009. @throws AccessControlException If access is denied
  7010. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  7011. not supported
  7012. @throws IOException If an I/O error occurred
  7013. Exceptions applicable to file systems accessed over RPC:
  7014. @throws RpcClientException If an exception occurred in the RPC client
  7015. @throws RpcServerException If an exception occurred in the RPC server
  7016. @throws UnexpectedServerException If server implementation throws
  7017. undeclared exception to RPC server]]>
  7018. </doc>
  7019. </method>
  7020. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  7021. abstract="false" native="false" synchronized="false"
  7022. static="false" final="false" visibility="public"
  7023. deprecated="not deprecated">
  7024. </method>
  7025. <method name="resolve" return="org.apache.hadoop.fs.Path"
  7026. abstract="false" native="false" synchronized="false"
  7027. static="false" final="false" visibility="protected"
  7028. deprecated="not deprecated">
  7029. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7030. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7031. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  7032. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7033. <exception name="IOException" type="java.io.IOException"/>
  7034. <doc>
  7035. <![CDATA[Resolves all symbolic links in the specified path.
  7036. Returns the new path object.]]>
  7037. </doc>
  7038. </method>
  7039. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  7040. abstract="false" native="false" synchronized="false"
  7041. static="false" final="false" visibility="protected"
  7042. deprecated="not deprecated">
  7043. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7044. <exception name="IOException" type="java.io.IOException"/>
  7045. <doc>
  7046. <![CDATA[Resolves all symbolic links in the specified path leading up
  7047. to, but not including the final path component.
  7048. @param f path to resolve
  7049. @return the new path object.]]>
  7050. </doc>
  7051. </method>
  7052. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  7053. abstract="false" native="false" synchronized="false"
  7054. static="true" final="false" visibility="public"
  7055. deprecated="not deprecated">
  7056. <param name="uri" type="java.net.URI"/>
  7057. <doc>
  7058. <![CDATA[Get the statistics for a particular file system
  7059. @param uri
  7060. the uri to lookup the statistics. Only scheme and authority part
  7061. of the uri are used as the key to store and lookup.
  7062. @return a statistics object]]>
  7063. </doc>
  7064. </method>
  7065. <method name="clearStatistics"
  7066. abstract="false" native="false" synchronized="false"
  7067. static="true" final="false" visibility="public"
  7068. deprecated="not deprecated">
  7069. <doc>
  7070. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  7071. systems.]]>
  7072. </doc>
  7073. </method>
  7074. <method name="printStatistics"
  7075. abstract="false" native="false" synchronized="false"
  7076. static="true" final="false" visibility="public"
  7077. deprecated="not deprecated">
  7078. <doc>
  7079. <![CDATA[Prints the statistics to standard output. File System is identified by the
  7080. scheme and authority.]]>
  7081. </doc>
  7082. </method>
  7083. <method name="getAllStatistics" return="java.util.Map"
  7084. abstract="false" native="false" synchronized="false"
  7085. static="true" final="false" visibility="public"
  7086. deprecated="not deprecated">
  7087. <doc>
  7088. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  7089. consists of scheme and authority for the filesystem.]]>
  7090. </doc>
  7091. </method>
  7092. <method name="modifyAclEntries"
  7093. abstract="false" native="false" synchronized="false"
  7094. static="false" final="false" visibility="public"
  7095. deprecated="not deprecated">
  7096. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7097. <param name="aclSpec" type="java.util.List"/>
  7098. <exception name="IOException" type="java.io.IOException"/>
  7099. <doc>
  7100. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  7101. entries or modify the permissions on existing ACL entries. All existing
  7102. ACL entries that are not specified in this call are retained without
  7103. changes. (Modifications are merged into the current ACL.)
  7104. @param path Path to modify
  7105. @param aclSpec List<AclEntry> describing modifications
  7106. @throws IOException if an ACL could not be modified]]>
  7107. </doc>
  7108. </method>
  7109. <method name="removeAclEntries"
  7110. abstract="false" native="false" synchronized="false"
  7111. static="false" final="false" visibility="public"
  7112. deprecated="not deprecated">
  7113. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7114. <param name="aclSpec" type="java.util.List"/>
  7115. <exception name="IOException" type="java.io.IOException"/>
  7116. <doc>
  7117. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  7118. retained.
  7119. @param path Path to modify
  7120. @param aclSpec List<AclEntry> describing entries to remove
  7121. @throws IOException if an ACL could not be modified]]>
  7122. </doc>
  7123. </method>
  7124. <method name="removeDefaultAcl"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="false" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7129. <exception name="IOException" type="java.io.IOException"/>
  7130. <doc>
  7131. <![CDATA[Removes all default ACL entries from files and directories.
  7132. @param path Path to modify
  7133. @throws IOException if an ACL could not be modified]]>
  7134. </doc>
  7135. </method>
  7136. <method name="removeAcl"
  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. <exception name="IOException" type="java.io.IOException"/>
  7142. <doc>
  7143. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  7144. for user, group, and others are retained for compatibility with permission
  7145. bits.
  7146. @param path Path to modify
  7147. @throws IOException if an ACL could not be removed]]>
  7148. </doc>
  7149. </method>
  7150. <method name="setAcl"
  7151. abstract="false" native="false" synchronized="false"
  7152. static="false" final="false" visibility="public"
  7153. deprecated="not deprecated">
  7154. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7155. <param name="aclSpec" type="java.util.List"/>
  7156. <exception name="IOException" type="java.io.IOException"/>
  7157. <doc>
  7158. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  7159. entries.
  7160. @param path Path to modify
  7161. @param aclSpec List<AclEntry> describing modifications, must include entries
  7162. for user, group, and others for compatibility with permission bits.
  7163. @throws IOException if an ACL could not be modified]]>
  7164. </doc>
  7165. </method>
  7166. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  7167. abstract="false" native="false" synchronized="false"
  7168. static="false" final="false" visibility="public"
  7169. deprecated="not deprecated">
  7170. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7171. <exception name="IOException" type="java.io.IOException"/>
  7172. <doc>
  7173. <![CDATA[Gets the ACLs of files and directories.
  7174. @param path Path to get
  7175. @return RemoteIterator<AclStatus> which returns each AclStatus
  7176. @throws IOException if an ACL could not be read]]>
  7177. </doc>
  7178. </method>
  7179. <method name="setXAttr"
  7180. abstract="false" native="false" synchronized="false"
  7181. static="false" final="false" visibility="public"
  7182. deprecated="not deprecated">
  7183. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7184. <param name="name" type="java.lang.String"/>
  7185. <param name="value" type="byte[]"/>
  7186. <exception name="IOException" type="java.io.IOException"/>
  7187. <doc>
  7188. <![CDATA[Set an xattr of a file or directory.
  7189. The name must be prefixed with the namespace followed by ".". For example,
  7190. "user.attr".
  7191. <p/>
  7192. Refer to the HDFS extended attributes user documentation for details.
  7193. @param path Path to modify
  7194. @param name xattr name.
  7195. @param value xattr value.
  7196. @throws IOException]]>
  7197. </doc>
  7198. </method>
  7199. <method name="setXAttr"
  7200. abstract="false" native="false" synchronized="false"
  7201. static="false" final="false" visibility="public"
  7202. deprecated="not deprecated">
  7203. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7204. <param name="name" type="java.lang.String"/>
  7205. <param name="value" type="byte[]"/>
  7206. <param name="flag" type="java.util.EnumSet"/>
  7207. <exception name="IOException" type="java.io.IOException"/>
  7208. <doc>
  7209. <![CDATA[Set an xattr of a file or directory.
  7210. The name must be prefixed with the namespace followed by ".". For example,
  7211. "user.attr".
  7212. <p/>
  7213. Refer to the HDFS extended attributes user documentation for details.
  7214. @param path Path to modify
  7215. @param name xattr name.
  7216. @param value xattr value.
  7217. @param flag xattr set flag
  7218. @throws IOException]]>
  7219. </doc>
  7220. </method>
  7221. <method name="getXAttr" return="byte[]"
  7222. abstract="false" native="false" synchronized="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7226. <param name="name" type="java.lang.String"/>
  7227. <exception name="IOException" type="java.io.IOException"/>
  7228. <doc>
  7229. <![CDATA[Get an xattr for a file or directory.
  7230. The name must be prefixed with the namespace followed by ".". For example,
  7231. "user.attr".
  7232. <p/>
  7233. Refer to the HDFS extended attributes user documentation for details.
  7234. @param path Path to get extended attribute
  7235. @param name xattr name.
  7236. @return byte[] xattr value.
  7237. @throws IOException]]>
  7238. </doc>
  7239. </method>
  7240. <method name="getXAttrs" return="java.util.Map"
  7241. abstract="false" native="false" synchronized="false"
  7242. static="false" final="false" visibility="public"
  7243. deprecated="not deprecated">
  7244. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7245. <exception name="IOException" type="java.io.IOException"/>
  7246. <doc>
  7247. <![CDATA[Get all of the xattrs for a file or directory.
  7248. Only those xattrs for which the logged-in user has permissions to view
  7249. are returned.
  7250. <p/>
  7251. Refer to the HDFS extended attributes user documentation for details.
  7252. @param path Path to get extended attributes
  7253. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7254. @throws IOException]]>
  7255. </doc>
  7256. </method>
  7257. <method name="getXAttrs" return="java.util.Map"
  7258. abstract="false" native="false" synchronized="false"
  7259. static="false" final="false" visibility="public"
  7260. deprecated="not deprecated">
  7261. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7262. <param name="names" type="java.util.List"/>
  7263. <exception name="IOException" type="java.io.IOException"/>
  7264. <doc>
  7265. <![CDATA[Get all of the xattrs for a file or directory.
  7266. Only those xattrs for which the logged-in user has permissions to view
  7267. are returned.
  7268. <p/>
  7269. Refer to the HDFS extended attributes user documentation for details.
  7270. @param path Path to get extended attributes
  7271. @param names XAttr names.
  7272. @return Map<String, byte[]> describing the XAttrs of the file or directory
  7273. @throws IOException]]>
  7274. </doc>
  7275. </method>
  7276. <method name="removeXAttr"
  7277. abstract="false" native="false" synchronized="false"
  7278. static="false" final="false" visibility="public"
  7279. deprecated="not deprecated">
  7280. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7281. <param name="name" type="java.lang.String"/>
  7282. <exception name="IOException" type="java.io.IOException"/>
  7283. <doc>
  7284. <![CDATA[Remove an xattr of a file or directory.
  7285. The name must be prefixed with the namespace followed by ".". For example,
  7286. "user.attr".
  7287. <p/>
  7288. Refer to the HDFS extended attributes user documentation for details.
  7289. @param path Path to remove extended attribute
  7290. @param name xattr name
  7291. @throws IOException]]>
  7292. </doc>
  7293. </method>
  7294. <method name="listXAttrs" return="java.util.List"
  7295. abstract="false" native="false" synchronized="false"
  7296. static="false" final="false" visibility="public"
  7297. deprecated="not deprecated">
  7298. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7299. <exception name="IOException" type="java.io.IOException"/>
  7300. <doc>
  7301. <![CDATA[Get all of the xattr names for a file or directory.
  7302. Only those xattr names which the logged-in user has permissions to view
  7303. are returned.
  7304. <p/>
  7305. Refer to the HDFS extended attributes user documentation for details.
  7306. @param path Path to get extended attributes
  7307. @return List<String> of the XAttr names of the file or directory
  7308. @throws IOException]]>
  7309. </doc>
  7310. </method>
  7311. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7312. abstract="false" native="false" synchronized="false"
  7313. static="false" final="true" visibility="public"
  7314. deprecated="not deprecated">
  7315. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7316. <exception name="IOException" type="java.io.IOException"/>
  7317. <doc>
  7318. <![CDATA[Create a snapshot with a default name.
  7319. @param path The directory where snapshots will be taken.
  7320. @return the snapshot path.
  7321. @throws IOException If an I/O error occurred
  7322. <p>Exceptions applicable to file systems accessed over RPC:
  7323. @throws RpcClientException If an exception occurred in the RPC client
  7324. @throws RpcServerException If an exception occurred in the RPC server
  7325. @throws UnexpectedServerException If server implementation throws
  7326. undeclared exception to RPC server]]>
  7327. </doc>
  7328. </method>
  7329. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  7330. abstract="false" native="false" synchronized="false"
  7331. static="false" final="false" visibility="public"
  7332. deprecated="not deprecated">
  7333. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7334. <param name="snapshotName" type="java.lang.String"/>
  7335. <exception name="IOException" type="java.io.IOException"/>
  7336. <doc>
  7337. <![CDATA[Create a snapshot.
  7338. @param path The directory where snapshots will be taken.
  7339. @param snapshotName The name of the snapshot
  7340. @return the snapshot path.
  7341. @throws IOException If an I/O error occurred
  7342. <p>Exceptions applicable to file systems accessed over RPC:
  7343. @throws RpcClientException If an exception occurred in the RPC client
  7344. @throws RpcServerException If an exception occurred in the RPC server
  7345. @throws UnexpectedServerException If server implementation throws
  7346. undeclared exception to RPC server]]>
  7347. </doc>
  7348. </method>
  7349. <method name="renameSnapshot"
  7350. abstract="false" native="false" synchronized="false"
  7351. static="false" final="false" visibility="public"
  7352. deprecated="not deprecated">
  7353. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7354. <param name="snapshotOldName" type="java.lang.String"/>
  7355. <param name="snapshotNewName" type="java.lang.String"/>
  7356. <exception name="IOException" type="java.io.IOException"/>
  7357. <doc>
  7358. <![CDATA[Rename a snapshot.
  7359. @param path The directory path where the snapshot was taken
  7360. @param snapshotOldName Old name of the snapshot
  7361. @param snapshotNewName New name of the snapshot
  7362. @throws IOException If an I/O error occurred
  7363. <p>Exceptions applicable to file systems accessed over RPC:
  7364. @throws RpcClientException If an exception occurred in the RPC client
  7365. @throws RpcServerException If an exception occurred in the RPC server
  7366. @throws UnexpectedServerException If server implementation throws
  7367. undeclared exception to RPC server]]>
  7368. </doc>
  7369. </method>
  7370. <method name="deleteSnapshot"
  7371. abstract="false" native="false" synchronized="false"
  7372. static="false" final="false" visibility="public"
  7373. deprecated="not deprecated">
  7374. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7375. <param name="snapshotName" type="java.lang.String"/>
  7376. <exception name="IOException" type="java.io.IOException"/>
  7377. <doc>
  7378. <![CDATA[Delete a snapshot of a directory.
  7379. @param path The directory that the to-be-deleted snapshot belongs to
  7380. @param snapshotName The name of the snapshot
  7381. @throws IOException If an I/O error occurred
  7382. <p>Exceptions applicable to file systems accessed over RPC:
  7383. @throws RpcClientException If an exception occurred in the RPC client
  7384. @throws RpcServerException If an exception occurred in the RPC server
  7385. @throws UnexpectedServerException If server implementation throws
  7386. undeclared exception to RPC server]]>
  7387. </doc>
  7388. </method>
  7389. <method name="setStoragePolicy"
  7390. abstract="false" native="false" synchronized="false"
  7391. static="false" final="false" visibility="public"
  7392. deprecated="not deprecated">
  7393. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7394. <param name="policyName" type="java.lang.String"/>
  7395. <exception name="IOException" type="java.io.IOException"/>
  7396. <doc>
  7397. <![CDATA[Set the storage policy for a given file or directory.
  7398. @param path file or directory path.
  7399. @param policyName the name of the target storage policy. The list
  7400. of supported Storage policies can be retrieved
  7401. via {@link #getAllStoragePolicies}.]]>
  7402. </doc>
  7403. </method>
  7404. <method name="unsetStoragePolicy"
  7405. abstract="false" native="false" synchronized="false"
  7406. static="false" final="false" visibility="public"
  7407. deprecated="not deprecated">
  7408. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7409. <exception name="IOException" type="java.io.IOException"/>
  7410. <doc>
  7411. <![CDATA[Unset the storage policy set for a given file or directory.
  7412. @param src file or directory path.
  7413. @throws IOException]]>
  7414. </doc>
  7415. </method>
  7416. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  7417. abstract="false" native="false" synchronized="false"
  7418. static="false" final="false" visibility="public"
  7419. deprecated="not deprecated">
  7420. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7421. <exception name="IOException" type="java.io.IOException"/>
  7422. <doc>
  7423. <![CDATA[Query the effective storage policy ID for the given file or directory.
  7424. @param path file or directory path.
  7425. @return storage policy for give file.
  7426. @throws IOException]]>
  7427. </doc>
  7428. </method>
  7429. <method name="getAllStoragePolicies" return="java.util.Collection"
  7430. abstract="false" native="false" synchronized="false"
  7431. static="false" final="false" visibility="public"
  7432. deprecated="not deprecated">
  7433. <exception name="IOException" type="java.io.IOException"/>
  7434. <doc>
  7435. <![CDATA[Retrieve all the storage policies supported by this file system.
  7436. @return all storage policies supported by this filesystem.
  7437. @throws IOException]]>
  7438. </doc>
  7439. </method>
  7440. <field name="LOG" type="org.slf4j.Logger"
  7441. transient="false" volatile="false"
  7442. static="true" final="true" visibility="public"
  7443. deprecated="not deprecated">
  7444. </field>
  7445. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7446. transient="false" volatile="false"
  7447. static="true" final="true" visibility="public"
  7448. deprecated="not deprecated">
  7449. <doc>
  7450. <![CDATA[Default permission for directory and symlink
  7451. In previous versions, this default permission was also used to
  7452. create files, so files created end up with ugo+x permission.
  7453. See HADOOP-9155 for detail.
  7454. Two new constants are added to solve this, please use
  7455. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  7456. {@link FileContext#FILE_DEFAULT_PERM} for file.
  7457. This constant is kept for compatibility.]]>
  7458. </doc>
  7459. </field>
  7460. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7461. transient="false" volatile="false"
  7462. static="true" final="true" visibility="public"
  7463. deprecated="not deprecated">
  7464. <doc>
  7465. <![CDATA[Default permission for directory]]>
  7466. </doc>
  7467. </field>
  7468. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  7469. transient="false" volatile="false"
  7470. static="true" final="true" visibility="public"
  7471. deprecated="not deprecated">
  7472. <doc>
  7473. <![CDATA[Default permission for file]]>
  7474. </doc>
  7475. </field>
  7476. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  7477. transient="false" volatile="false"
  7478. static="true" final="true" visibility="public"
  7479. deprecated="not deprecated">
  7480. <doc>
  7481. <![CDATA[Priority of the FileContext shutdown hook.]]>
  7482. </doc>
  7483. </field>
  7484. <doc>
  7485. <![CDATA[The FileContext class provides an interface to the application writer for
  7486. using the Hadoop file system.
  7487. It provides a set of methods for the usual operation: create, open,
  7488. list, etc
  7489. <p>
  7490. <b> *** Path Names *** </b>
  7491. <p>
  7492. The Hadoop file system supports a URI name space and URI names.
  7493. It offers a forest of file systems that can be referenced using fully
  7494. qualified URIs.
  7495. Two common Hadoop file systems implementations are
  7496. <ul>
  7497. <li> the local file system: file:///path
  7498. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  7499. </ul>
  7500. While URI names are very flexible, it requires knowing the name or address
  7501. of the server. For convenience one often wants to access the default system
  7502. in one's environment without knowing its name/address. This has an
  7503. additional benefit that it allows one to change one's default fs
  7504. (e.g. admin moves application from cluster1 to cluster2).
  7505. <p>
  7506. To facilitate this, Hadoop supports a notion of a default file system.
  7507. The user can set his default file system, although this is
  7508. typically set up for you in your environment via your default config.
  7509. A default file system implies a default scheme and authority; slash-relative
  7510. names (such as /for/bar) are resolved relative to that default FS.
  7511. Similarly a user can also have working-directory-relative names (i.e. names
  7512. not starting with a slash). While the working directory is generally in the
  7513. same default FS, the wd can be in a different FS.
  7514. <p>
  7515. Hence Hadoop path names can be one of:
  7516. <ul>
  7517. <li> fully qualified URI: scheme://authority/path
  7518. <li> slash relative names: /path relative to the default file system
  7519. <li> wd-relative names: path relative to the working dir
  7520. </ul>
  7521. Relative paths with scheme (scheme:foo/bar) are illegal.
  7522. <p>
  7523. <b>****The Role of the FileContext and configuration defaults****</b>
  7524. <p>
  7525. The FileContext provides file namespace context for resolving file names;
  7526. it also contains the umask for permissions, In that sense it is like the
  7527. per-process file-related state in Unix system.
  7528. These two properties
  7529. <ul>
  7530. <li> default file system i.e your slash)
  7531. <li> umask
  7532. </ul>
  7533. in general, are obtained from the default configuration file
  7534. in your environment, (@see {@link Configuration}).
  7535. No other configuration parameters are obtained from the default config as
  7536. far as the file context layer is concerned. All file system instances
  7537. (i.e. deployments of file systems) have default properties; we call these
  7538. server side (SS) defaults. Operation like create allow one to select many
  7539. properties: either pass them in as explicit parameters or use
  7540. the SS properties.
  7541. <p>
  7542. The file system related SS defaults are
  7543. <ul>
  7544. <li> the home directory (default is "/user/userName")
  7545. <li> the initial wd (only for local fs)
  7546. <li> replication factor
  7547. <li> block size
  7548. <li> buffer size
  7549. <li> encryptDataTransfer
  7550. <li> checksum option. (checksumType and bytesPerChecksum)
  7551. </ul>
  7552. <p>
  7553. <b> *** Usage Model for the FileContext class *** </b>
  7554. <p>
  7555. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  7556. Unspecified values come from core-defaults.xml in the release jar.
  7557. <ul>
  7558. <li> myFContext = FileContext.getFileContext(); // uses the default config
  7559. // which has your default FS
  7560. <li> myFContext.create(path, ...);
  7561. <li> myFContext.setWorkingDir(path)
  7562. <li> myFContext.open (path, ...);
  7563. </ul>
  7564. Example 2: Get a FileContext with a specific URI as the default FS
  7565. <ul>
  7566. <li> myFContext = FileContext.getFileContext(URI)
  7567. <li> myFContext.create(path, ...);
  7568. ...
  7569. </ul>
  7570. Example 3: FileContext with local file system as the default
  7571. <ul>
  7572. <li> myFContext = FileContext.getLocalFSFileContext()
  7573. <li> myFContext.create(path, ...);
  7574. <li> ...
  7575. </ul>
  7576. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  7577. Generally you should not need use a config unless you are doing
  7578. <ul>
  7579. <li> configX = someConfigSomeOnePassedToYou.
  7580. <li> myFContext = getFileContext(configX); // configX is not changed,
  7581. // is passed down
  7582. <li> myFContext.create(path, ...);
  7583. <li>...
  7584. </ul>]]>
  7585. </doc>
  7586. </class>
  7587. <!-- end class org.apache.hadoop.fs.FileContext -->
  7588. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7589. <class name="FileStatus" extends="java.lang.Object"
  7590. abstract="false"
  7591. static="false" final="false" visibility="public"
  7592. deprecated="not deprecated">
  7593. <implements name="org.apache.hadoop.io.Writable"/>
  7594. <implements name="java.lang.Comparable"/>
  7595. <constructor name="FileStatus"
  7596. static="false" final="false" visibility="public"
  7597. deprecated="not deprecated">
  7598. </constructor>
  7599. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7600. static="false" final="false" visibility="public"
  7601. deprecated="not deprecated">
  7602. </constructor>
  7603. <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"
  7604. static="false" final="false" visibility="public"
  7605. deprecated="not deprecated">
  7606. <doc>
  7607. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  7608. </doc>
  7609. </constructor>
  7610. <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"
  7611. static="false" final="false" visibility="public"
  7612. deprecated="not deprecated">
  7613. </constructor>
  7614. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  7615. static="false" final="false" visibility="public"
  7616. deprecated="not deprecated">
  7617. <exception name="IOException" type="java.io.IOException"/>
  7618. <doc>
  7619. <![CDATA[Copy constructor.
  7620. @param other FileStatus to copy]]>
  7621. </doc>
  7622. </constructor>
  7623. <method name="getLen" return="long"
  7624. abstract="false" native="false" synchronized="false"
  7625. static="false" final="false" visibility="public"
  7626. deprecated="not deprecated">
  7627. <doc>
  7628. <![CDATA[Get the length of this file, in bytes.
  7629. @return the length of this file, in bytes.]]>
  7630. </doc>
  7631. </method>
  7632. <method name="isFile" return="boolean"
  7633. abstract="false" native="false" synchronized="false"
  7634. static="false" final="false" visibility="public"
  7635. deprecated="not deprecated">
  7636. <doc>
  7637. <![CDATA[Is this a file?
  7638. @return true if this is a file]]>
  7639. </doc>
  7640. </method>
  7641. <method name="isDirectory" return="boolean"
  7642. abstract="false" native="false" synchronized="false"
  7643. static="false" final="false" visibility="public"
  7644. deprecated="not deprecated">
  7645. <doc>
  7646. <![CDATA[Is this a directory?
  7647. @return true if this is a directory]]>
  7648. </doc>
  7649. </method>
  7650. <method name="isDir" return="boolean"
  7651. abstract="false" native="false" synchronized="false"
  7652. static="false" final="false" visibility="public"
  7653. deprecated="Use {@link FileStatus#isFile()},
  7654. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7655. instead.">
  7656. <doc>
  7657. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  7658. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7659. @return true if this is a directory.
  7660. @deprecated Use {@link FileStatus#isFile()},
  7661. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  7662. instead.]]>
  7663. </doc>
  7664. </method>
  7665. <method name="isSymlink" return="boolean"
  7666. abstract="false" native="false" synchronized="false"
  7667. static="false" final="false" visibility="public"
  7668. deprecated="not deprecated">
  7669. <doc>
  7670. <![CDATA[Is this a symbolic link?
  7671. @return true if this is a symbolic link]]>
  7672. </doc>
  7673. </method>
  7674. <method name="getBlockSize" return="long"
  7675. abstract="false" native="false" synchronized="false"
  7676. static="false" final="false" visibility="public"
  7677. deprecated="not deprecated">
  7678. <doc>
  7679. <![CDATA[Get the block size of the file.
  7680. @return the number of bytes]]>
  7681. </doc>
  7682. </method>
  7683. <method name="getReplication" return="short"
  7684. abstract="false" native="false" synchronized="false"
  7685. static="false" final="false" visibility="public"
  7686. deprecated="not deprecated">
  7687. <doc>
  7688. <![CDATA[Get the replication factor of a file.
  7689. @return the replication factor of a file.]]>
  7690. </doc>
  7691. </method>
  7692. <method name="getModificationTime" return="long"
  7693. abstract="false" native="false" synchronized="false"
  7694. static="false" final="false" visibility="public"
  7695. deprecated="not deprecated">
  7696. <doc>
  7697. <![CDATA[Get the modification time of the file.
  7698. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7699. </doc>
  7700. </method>
  7701. <method name="getAccessTime" return="long"
  7702. abstract="false" native="false" synchronized="false"
  7703. static="false" final="false" visibility="public"
  7704. deprecated="not deprecated">
  7705. <doc>
  7706. <![CDATA[Get the access time of the file.
  7707. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  7708. </doc>
  7709. </method>
  7710. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7711. abstract="false" native="false" synchronized="false"
  7712. static="false" final="false" visibility="public"
  7713. deprecated="not deprecated">
  7714. <doc>
  7715. <![CDATA[Get FsPermission associated with the file.
  7716. @return permssion. If a filesystem does not have a notion of permissions
  7717. or if permissions could not be determined, then default
  7718. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7719. </doc>
  7720. </method>
  7721. <method name="isEncrypted" return="boolean"
  7722. abstract="false" native="false" synchronized="false"
  7723. static="false" final="false" visibility="public"
  7724. deprecated="not deprecated">
  7725. <doc>
  7726. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  7727. @return true if the underlying file is encrypted.]]>
  7728. </doc>
  7729. </method>
  7730. <method name="getOwner" return="java.lang.String"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <doc>
  7735. <![CDATA[Get the owner of the file.
  7736. @return owner of the file. The string could be empty if there is no
  7737. notion of owner of a file in a filesystem or if it could not
  7738. be determined (rare).]]>
  7739. </doc>
  7740. </method>
  7741. <method name="getGroup" return="java.lang.String"
  7742. abstract="false" native="false" synchronized="false"
  7743. static="false" final="false" visibility="public"
  7744. deprecated="not deprecated">
  7745. <doc>
  7746. <![CDATA[Get the group associated with the file.
  7747. @return group for the file. The string could be empty if there is no
  7748. notion of group of a file in a filesystem or if it could not
  7749. be determined (rare).]]>
  7750. </doc>
  7751. </method>
  7752. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7753. abstract="false" native="false" synchronized="false"
  7754. static="false" final="false" visibility="public"
  7755. deprecated="not deprecated">
  7756. </method>
  7757. <method name="setPath"
  7758. abstract="false" native="false" synchronized="false"
  7759. static="false" final="false" visibility="public"
  7760. deprecated="not deprecated">
  7761. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7762. </method>
  7763. <method name="setPermission"
  7764. abstract="false" native="false" synchronized="false"
  7765. static="false" final="false" visibility="protected"
  7766. deprecated="not deprecated">
  7767. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7768. <doc>
  7769. <![CDATA[Sets permission.
  7770. @param permission if permission is null, default value is set]]>
  7771. </doc>
  7772. </method>
  7773. <method name="setOwner"
  7774. abstract="false" native="false" synchronized="false"
  7775. static="false" final="false" visibility="protected"
  7776. deprecated="not deprecated">
  7777. <param name="owner" type="java.lang.String"/>
  7778. <doc>
  7779. <![CDATA[Sets owner.
  7780. @param owner if it is null, default value is set]]>
  7781. </doc>
  7782. </method>
  7783. <method name="setGroup"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="protected"
  7786. deprecated="not deprecated">
  7787. <param name="group" type="java.lang.String"/>
  7788. <doc>
  7789. <![CDATA[Sets group.
  7790. @param group if it is null, default value is set]]>
  7791. </doc>
  7792. </method>
  7793. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  7794. abstract="false" native="false" synchronized="false"
  7795. static="false" final="false" visibility="public"
  7796. deprecated="not deprecated">
  7797. <exception name="IOException" type="java.io.IOException"/>
  7798. <doc>
  7799. <![CDATA[@return The contents of the symbolic link.]]>
  7800. </doc>
  7801. </method>
  7802. <method name="setSymlink"
  7803. abstract="false" native="false" synchronized="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7807. </method>
  7808. <method name="write"
  7809. abstract="false" native="false" synchronized="false"
  7810. static="false" final="false" visibility="public"
  7811. deprecated="not deprecated">
  7812. <param name="out" type="java.io.DataOutput"/>
  7813. <exception name="IOException" type="java.io.IOException"/>
  7814. </method>
  7815. <method name="readFields"
  7816. abstract="false" native="false" synchronized="false"
  7817. static="false" final="false" visibility="public"
  7818. deprecated="not deprecated">
  7819. <param name="in" type="java.io.DataInput"/>
  7820. <exception name="IOException" type="java.io.IOException"/>
  7821. </method>
  7822. <method name="compareTo" return="int"
  7823. abstract="false" native="false" synchronized="false"
  7824. static="false" final="false" visibility="public"
  7825. deprecated="not deprecated">
  7826. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  7827. <doc>
  7828. <![CDATA[Compare this FileStatus to another FileStatus
  7829. @param o the FileStatus to be compared.
  7830. @return a negative integer, zero, or a positive integer as this object
  7831. is less than, equal to, or greater than the specified object.]]>
  7832. </doc>
  7833. </method>
  7834. <method name="equals" return="boolean"
  7835. abstract="false" native="false" synchronized="false"
  7836. static="false" final="false" visibility="public"
  7837. deprecated="not deprecated">
  7838. <param name="o" type="java.lang.Object"/>
  7839. <doc>
  7840. <![CDATA[Compare if this object is equal to another object
  7841. @param o the object to be compared.
  7842. @return true if two file status has the same path name; false if not.]]>
  7843. </doc>
  7844. </method>
  7845. <method name="hashCode" return="int"
  7846. abstract="false" native="false" synchronized="false"
  7847. static="false" final="false" visibility="public"
  7848. deprecated="not deprecated">
  7849. <doc>
  7850. <![CDATA[Returns a hash code value for the object, which is defined as
  7851. the hash code of the path name.
  7852. @return a hash code value for the path name.]]>
  7853. </doc>
  7854. </method>
  7855. <method name="toString" return="java.lang.String"
  7856. abstract="false" native="false" synchronized="false"
  7857. static="false" final="false" visibility="public"
  7858. deprecated="not deprecated">
  7859. </method>
  7860. <doc>
  7861. <![CDATA[Interface that represents the client side information for a file.]]>
  7862. </doc>
  7863. </class>
  7864. <!-- end class org.apache.hadoop.fs.FileStatus -->
  7865. <!-- start class org.apache.hadoop.fs.FileSystem -->
  7866. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  7867. abstract="true"
  7868. static="false" final="false" visibility="public"
  7869. deprecated="not deprecated">
  7870. <implements name="java.io.Closeable"/>
  7871. <constructor name="FileSystem"
  7872. static="false" final="false" visibility="protected"
  7873. deprecated="not deprecated">
  7874. </constructor>
  7875. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7876. abstract="false" native="false" synchronized="false"
  7877. static="true" final="false" visibility="public"
  7878. deprecated="not deprecated">
  7879. <param name="uri" type="java.net.URI"/>
  7880. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7881. <param name="user" type="java.lang.String"/>
  7882. <exception name="IOException" type="java.io.IOException"/>
  7883. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  7884. <doc>
  7885. <![CDATA[Get a FileSystem instance based on the uri, the passed in
  7886. configuration and the user.
  7887. @param uri of the filesystem
  7888. @param conf the configuration to use
  7889. @param user to perform the get as
  7890. @return the filesystem instance
  7891. @throws IOException failure to load
  7892. @throws InterruptedException If the {@code UGI.doAs()} call was
  7893. somehow interrupted.]]>
  7894. </doc>
  7895. </method>
  7896. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7897. abstract="false" native="false" synchronized="false"
  7898. static="true" final="false" visibility="public"
  7899. deprecated="not deprecated">
  7900. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7901. <exception name="IOException" type="java.io.IOException"/>
  7902. <doc>
  7903. <![CDATA[Returns the configured FileSystem implementation.
  7904. @param conf the configuration to use]]>
  7905. </doc>
  7906. </method>
  7907. <method name="getDefaultUri" return="java.net.URI"
  7908. abstract="false" native="false" synchronized="false"
  7909. static="true" final="false" visibility="public"
  7910. deprecated="not deprecated">
  7911. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7912. <doc>
  7913. <![CDATA[Get the default FileSystem URI from a configuration.
  7914. @param conf the configuration to use
  7915. @return the uri of the default filesystem]]>
  7916. </doc>
  7917. </method>
  7918. <method name="setDefaultUri"
  7919. abstract="false" native="false" synchronized="false"
  7920. static="true" final="false" visibility="public"
  7921. deprecated="not deprecated">
  7922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7923. <param name="uri" type="java.net.URI"/>
  7924. <doc>
  7925. <![CDATA[Set the default FileSystem URI in a configuration.
  7926. @param conf the configuration to alter
  7927. @param uri the new default filesystem uri]]>
  7928. </doc>
  7929. </method>
  7930. <method name="setDefaultUri"
  7931. abstract="false" native="false" synchronized="false"
  7932. static="true" final="false" visibility="public"
  7933. deprecated="not deprecated">
  7934. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7935. <param name="uri" type="java.lang.String"/>
  7936. <doc>
  7937. <![CDATA[Set the default FileSystem URI in a configuration.
  7938. @param conf the configuration to alter
  7939. @param uri the new default filesystem uri]]>
  7940. </doc>
  7941. </method>
  7942. <method name="initialize"
  7943. abstract="false" native="false" synchronized="false"
  7944. static="false" final="false" visibility="public"
  7945. deprecated="not deprecated">
  7946. <param name="name" type="java.net.URI"/>
  7947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7948. <exception name="IOException" type="java.io.IOException"/>
  7949. <doc>
  7950. <![CDATA[Initialize a FileSystem.
  7951. Called after the new FileSystem instance is constructed, and before it
  7952. is ready for use.
  7953. FileSystem implementations overriding this method MUST forward it to
  7954. their superclass, though the order in which it is done, and whether
  7955. to alter the configuration before the invocation are options of the
  7956. subclass.
  7957. @param name a URI whose authority section names the host, port, etc.
  7958. for this FileSystem
  7959. @param conf the configuration
  7960. @throws IOException on any failure to initialize this instance.
  7961. @throws IllegalArgumentException if the URI is considered invalid.]]>
  7962. </doc>
  7963. </method>
  7964. <method name="getScheme" return="java.lang.String"
  7965. abstract="false" native="false" synchronized="false"
  7966. static="false" final="false" visibility="public"
  7967. deprecated="not deprecated">
  7968. <doc>
  7969. <![CDATA[Return the protocol scheme for this FileSystem.
  7970. <p>
  7971. This implementation throws an <code>UnsupportedOperationException</code>.
  7972. @return the protocol scheme for this FileSystem.
  7973. @throws UnsupportedOperationException if the operation is unsupported
  7974. (default).]]>
  7975. </doc>
  7976. </method>
  7977. <method name="getUri" return="java.net.URI"
  7978. abstract="true" native="false" synchronized="false"
  7979. static="false" final="false" visibility="public"
  7980. deprecated="not deprecated">
  7981. <doc>
  7982. <![CDATA[Returns a URI which identifies this FileSystem.
  7983. @return the URI of this filesystem.]]>
  7984. </doc>
  7985. </method>
  7986. <method name="getCanonicalUri" return="java.net.URI"
  7987. abstract="false" native="false" synchronized="false"
  7988. static="false" final="false" visibility="protected"
  7989. deprecated="not deprecated">
  7990. <doc>
  7991. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  7992. The default implementation simply calls {@link #canonicalizeUri(URI)}
  7993. on the filesystem's own URI, so subclasses typically only need to
  7994. implement that method.
  7995. @see #canonicalizeUri(URI)]]>
  7996. </doc>
  7997. </method>
  7998. <method name="canonicalizeUri" return="java.net.URI"
  7999. abstract="false" native="false" synchronized="false"
  8000. static="false" final="false" visibility="protected"
  8001. deprecated="not deprecated">
  8002. <param name="uri" type="java.net.URI"/>
  8003. <doc>
  8004. <![CDATA[Canonicalize the given URI.
  8005. This is implementation-dependent, and may for example consist of
  8006. canonicalizing the hostname using DNS and adding the default
  8007. port if not specified.
  8008. The default implementation simply fills in the default port if
  8009. not specified and if {@link #getDefaultPort()} returns a
  8010. default port.
  8011. @return URI
  8012. @see NetUtils#getCanonicalUri(URI, int)]]>
  8013. </doc>
  8014. </method>
  8015. <method name="getDefaultPort" return="int"
  8016. abstract="false" native="false" synchronized="false"
  8017. static="false" final="false" visibility="protected"
  8018. deprecated="not deprecated">
  8019. <doc>
  8020. <![CDATA[Get the default port for this FileSystem.
  8021. @return the default port or 0 if there isn't one]]>
  8022. </doc>
  8023. </method>
  8024. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  8025. abstract="false" native="false" synchronized="false"
  8026. static="true" final="false" visibility="protected"
  8027. deprecated="not deprecated">
  8028. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  8029. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8030. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8031. <exception name="IOException" type="java.io.IOException"/>
  8032. </method>
  8033. <method name="getCanonicalServiceName" return="java.lang.String"
  8034. abstract="false" native="false" synchronized="false"
  8035. static="false" final="false" visibility="public"
  8036. deprecated="not deprecated">
  8037. <doc>
  8038. <![CDATA[Get a canonical service name for this FileSystem.
  8039. The token cache is the only user of the canonical service name,
  8040. and uses it to lookup this FileSystem's service tokens.
  8041. If the file system provides a token of its own then it must have a canonical
  8042. name, otherwise the canonical name can be null.
  8043. Default implementation: If the FileSystem has child file systems
  8044. (such as an embedded file system) then it is assumed that the FS has no
  8045. tokens of its own and hence returns a null name; otherwise a service
  8046. name is built using Uri and port.
  8047. @return a service string that uniquely identifies this file system, null
  8048. if the filesystem does not implement tokens
  8049. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  8050. </doc>
  8051. </method>
  8052. <method name="getName" return="java.lang.String"
  8053. abstract="false" native="false" synchronized="false"
  8054. static="false" final="false" visibility="public"
  8055. deprecated="call {@link #getUri()} instead.">
  8056. <doc>
  8057. <![CDATA[@deprecated call {@link #getUri()} instead.]]>
  8058. </doc>
  8059. </method>
  8060. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8061. abstract="false" native="false" synchronized="false"
  8062. static="true" final="false" visibility="public"
  8063. deprecated="call {@link #get(URI, Configuration)} instead.">
  8064. <param name="name" type="java.lang.String"/>
  8065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8066. <exception name="IOException" type="java.io.IOException"/>
  8067. <doc>
  8068. <![CDATA[@deprecated call {@link #get(URI, Configuration)} instead.]]>
  8069. </doc>
  8070. </method>
  8071. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8072. abstract="false" native="false" synchronized="false"
  8073. static="true" final="false" visibility="public"
  8074. deprecated="not deprecated">
  8075. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8076. <exception name="IOException" type="java.io.IOException"/>
  8077. <doc>
  8078. <![CDATA[Get the local FileSystem.
  8079. @param conf the configuration to configure the FileSystem with
  8080. if it is newly instantiated.
  8081. @return a LocalFileSystem
  8082. @throws IOException if somehow the local FS cannot be instantiated.]]>
  8083. </doc>
  8084. </method>
  8085. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8086. abstract="false" native="false" synchronized="false"
  8087. static="true" final="false" visibility="public"
  8088. deprecated="not deprecated">
  8089. <param name="uri" type="java.net.URI"/>
  8090. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8091. <exception name="IOException" type="java.io.IOException"/>
  8092. <doc>
  8093. <![CDATA[Get a FileSystem for this URI's scheme and authority.
  8094. <ol>
  8095. <li>
  8096. If the configuration has the property
  8097. {@code "fs.$SCHEME.impl.disable.cache"} set to true,
  8098. a new instance will be created, initialized with the supplied URI and
  8099. configuration, then returned without being cached.
  8100. </li>
  8101. <li>
  8102. If the there is a cached FS instance matching the same URI, it will
  8103. be returned.
  8104. </li>
  8105. <li>
  8106. Otherwise: a new FS instance will be created, initialized with the
  8107. configuration and URI, cached and returned to the caller.
  8108. </li>
  8109. </ol>
  8110. @throws IOException if the FileSystem cannot be instantiated.]]>
  8111. </doc>
  8112. </method>
  8113. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8114. abstract="false" native="false" synchronized="false"
  8115. static="true" final="false" visibility="public"
  8116. deprecated="not deprecated">
  8117. <param name="uri" type="java.net.URI"/>
  8118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8119. <param name="user" type="java.lang.String"/>
  8120. <exception name="IOException" type="java.io.IOException"/>
  8121. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8122. <doc>
  8123. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  8124. given user. Internally invokes {@link #newInstance(URI, Configuration)}
  8125. @param uri of the filesystem
  8126. @param conf the configuration to use
  8127. @param user to perform the get as
  8128. @return filesystem instance
  8129. @throws IOException if the FileSystem cannot be instantiated.
  8130. @throws InterruptedException If the {@code UGI.doAs()} call was
  8131. somehow interrupted.]]>
  8132. </doc>
  8133. </method>
  8134. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8135. abstract="false" native="false" synchronized="false"
  8136. static="true" final="false" visibility="public"
  8137. deprecated="not deprecated">
  8138. <param name="uri" type="java.net.URI"/>
  8139. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  8140. <exception name="IOException" type="java.io.IOException"/>
  8141. <doc>
  8142. <![CDATA[Returns the FileSystem for this URI's scheme and authority.
  8143. The entire URI is passed to the FileSystem instance's initialize method.
  8144. This always returns a new FileSystem object.
  8145. @param uri FS URI
  8146. @param config configuration to use
  8147. @return the new FS instance
  8148. @throws IOException FS creation or initialization failure.]]>
  8149. </doc>
  8150. </method>
  8151. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  8152. abstract="false" native="false" synchronized="false"
  8153. static="true" final="false" visibility="public"
  8154. deprecated="not deprecated">
  8155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8156. <exception name="IOException" type="java.io.IOException"/>
  8157. <doc>
  8158. <![CDATA[Returns a unique configured FileSystem implementation for the default
  8159. filesystem of the supplied configuration.
  8160. This always returns a new FileSystem object.
  8161. @param conf the configuration to use
  8162. @return the new FS instance
  8163. @throws IOException FS creation or initialization failure.]]>
  8164. </doc>
  8165. </method>
  8166. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8167. abstract="false" native="false" synchronized="false"
  8168. static="true" final="false" visibility="public"
  8169. deprecated="not deprecated">
  8170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8171. <exception name="IOException" type="java.io.IOException"/>
  8172. <doc>
  8173. <![CDATA[Get a unique local FileSystem object.
  8174. @param conf the configuration to configure the FileSystem with
  8175. @return a new LocalFileSystem object.
  8176. @throws IOException FS creation or initialization failure.]]>
  8177. </doc>
  8178. </method>
  8179. <method name="closeAll"
  8180. abstract="false" native="false" synchronized="false"
  8181. static="true" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. <exception name="IOException" type="java.io.IOException"/>
  8184. <doc>
  8185. <![CDATA[Close all cached FileSystem instances. After this operation, they
  8186. may not be used in any operations.
  8187. @throws IOException a problem arose closing one or more filesystem.]]>
  8188. </doc>
  8189. </method>
  8190. <method name="closeAllForUGI"
  8191. abstract="false" native="false" synchronized="false"
  8192. static="true" final="false" visibility="public"
  8193. deprecated="not deprecated">
  8194. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  8195. <exception name="IOException" type="java.io.IOException"/>
  8196. <doc>
  8197. <![CDATA[Close all cached FileSystem instances for a given UGI.
  8198. Be sure those filesystems are not used anymore.
  8199. @param ugi user group info to close
  8200. @throws IOException a problem arose closing one or more filesystem.]]>
  8201. </doc>
  8202. </method>
  8203. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8204. abstract="false" native="false" synchronized="false"
  8205. static="false" final="false" visibility="public"
  8206. deprecated="not deprecated">
  8207. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8208. <doc>
  8209. <![CDATA[Qualify a path to one which uses this FileSystem and, if relative,
  8210. made absolute.
  8211. @param path to qualify.
  8212. @return this path if it contains a scheme and authority and is absolute, or
  8213. a new path that includes a path and authority and is fully qualified
  8214. @see Path#makeQualified(URI, Path)
  8215. @throws IllegalArgumentException if the path has a schema/URI different
  8216. from this FileSystem.]]>
  8217. </doc>
  8218. </method>
  8219. <method name="addDelegationTokens" return="org.apache.hadoop.security.token.Token[]"
  8220. abstract="false" native="false" synchronized="false"
  8221. static="false" final="false" visibility="public"
  8222. deprecated="not deprecated">
  8223. <param name="renewer" type="java.lang.String"/>
  8224. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  8225. <exception name="IOException" type="java.io.IOException"/>
  8226. <doc>
  8227. <![CDATA[Obtain all delegation tokens used by this FileSystem that are not
  8228. already present in the given Credentials. Existing tokens will neither
  8229. be verified as valid nor having the given renewer. Missing tokens will
  8230. be acquired and added to the given Credentials.
  8231. Default Impl: works for simple FS with its own token
  8232. and also for an embedded FS whose tokens are those of its
  8233. child FileSystems (i.e. the embedded FS has no tokens of its own).
  8234. @param renewer the user allowed to renew the delegation tokens
  8235. @param credentials cache in which to add new delegation tokens
  8236. @return list of new delegation tokens
  8237. @throws IOException]]>
  8238. </doc>
  8239. </method>
  8240. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8241. abstract="false" native="false" synchronized="false"
  8242. static="true" final="false" visibility="public"
  8243. deprecated="not deprecated">
  8244. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8245. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8246. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8247. <exception name="IOException" type="java.io.IOException"/>
  8248. <doc>
  8249. <![CDATA[Create a file with the provided permission.
  8250. The permission of the file is set to be the provided permission as in
  8251. setPermission, not permission&~umask
  8252. The HDFS implementation is implemented using two RPCs.
  8253. It is understood that it is inefficient,
  8254. but the implementation is thread-safe. The other option is to change the
  8255. value of umask in configuration to be 0, but it is not thread-safe.
  8256. @param fs FileSystem
  8257. @param file the name of the file to be created
  8258. @param permission the permission of the file
  8259. @return an output stream
  8260. @throws IOException IO failure]]>
  8261. </doc>
  8262. </method>
  8263. <method name="mkdirs" return="boolean"
  8264. abstract="false" native="false" synchronized="false"
  8265. static="true" final="false" visibility="public"
  8266. deprecated="not deprecated">
  8267. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8268. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8269. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8270. <exception name="IOException" type="java.io.IOException"/>
  8271. <doc>
  8272. <![CDATA[Create a directory with the provided permission.
  8273. The permission of the directory is set to be the provided permission as in
  8274. setPermission, not permission&~umask
  8275. @see #create(FileSystem, Path, FsPermission)
  8276. @param fs FileSystem handle
  8277. @param dir the name of the directory to be created
  8278. @param permission the permission of the directory
  8279. @return true if the directory creation succeeds; false otherwise
  8280. @throws IOException A problem creating the directories.]]>
  8281. </doc>
  8282. </method>
  8283. <method name="checkPath"
  8284. abstract="false" native="false" synchronized="false"
  8285. static="false" final="false" visibility="protected"
  8286. deprecated="not deprecated">
  8287. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8288. <doc>
  8289. <![CDATA[Check that a Path belongs to this FileSystem.
  8290. The base implementation performs case insensitive equality checks
  8291. of the URIs' schemes and authorities. Subclasses may implement slightly
  8292. different checks.
  8293. @param path to check
  8294. @throws IllegalArgumentException if the path is not considered to be
  8295. part of this FileSystem.]]>
  8296. </doc>
  8297. </method>
  8298. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8299. abstract="false" native="false" synchronized="false"
  8300. static="false" final="false" visibility="public"
  8301. deprecated="not deprecated">
  8302. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8303. <param name="start" type="long"/>
  8304. <param name="len" type="long"/>
  8305. <exception name="IOException" type="java.io.IOException"/>
  8306. <doc>
  8307. <![CDATA[Return an array containing hostnames, offset and size of
  8308. portions of the given file. For nonexistent
  8309. file or regions, {@code null} is returned.
  8310. <pre>
  8311. if f == null :
  8312. result = null
  8313. elif f.getLen() <= start:
  8314. result = []
  8315. else result = [ locations(FS, b) for b in blocks(FS, p, s, s+l)]
  8316. </pre>
  8317. This call is most helpful with and distributed filesystem
  8318. where the hostnames of machines that contain blocks of the given file
  8319. can be determined.
  8320. The default implementation returns an array containing one element:
  8321. <pre>
  8322. BlockLocation( { "localhost:50010" }, { "localhost" }, 0, file.getLen())
  8323. </pre>>
  8324. @param file FilesStatus to get data from
  8325. @param start offset into the given file
  8326. @param len length for which to get locations for
  8327. @throws IOException IO failure]]>
  8328. </doc>
  8329. </method>
  8330. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8331. abstract="false" native="false" synchronized="false"
  8332. static="false" final="false" visibility="public"
  8333. deprecated="not deprecated">
  8334. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8335. <param name="start" type="long"/>
  8336. <param name="len" type="long"/>
  8337. <exception name="IOException" type="java.io.IOException"/>
  8338. <doc>
  8339. <![CDATA[Return an array containing hostnames, offset and size of
  8340. portions of the given file. For a nonexistent
  8341. file or regions, {@code null} is returned.
  8342. This call is most helpful with location-aware distributed
  8343. filesystems, where it returns hostnames of machines that
  8344. contain the given file.
  8345. A FileSystem will normally return the equivalent result
  8346. of passing the {@code FileStatus} of the path to
  8347. {@link #getFileBlockLocations(FileStatus, long, long)}
  8348. @param p path is used to identify an FS since an FS could have
  8349. another FS that it could be delegating the call to
  8350. @param start offset into the given file
  8351. @param len length for which to get locations for
  8352. @throws FileNotFoundException when the path does not exist
  8353. @throws IOException IO failure]]>
  8354. </doc>
  8355. </method>
  8356. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8357. abstract="false" native="false" synchronized="false"
  8358. static="false" final="false" visibility="public"
  8359. deprecated="use {@link #getServerDefaults(Path)} instead">
  8360. <exception name="IOException" type="java.io.IOException"/>
  8361. <doc>
  8362. <![CDATA[Return a set of server default configuration values.
  8363. @return server default configuration values
  8364. @throws IOException IO failure
  8365. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  8366. </doc>
  8367. </method>
  8368. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  8369. abstract="false" native="false" synchronized="false"
  8370. static="false" final="false" visibility="public"
  8371. deprecated="not deprecated">
  8372. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8373. <exception name="IOException" type="java.io.IOException"/>
  8374. <doc>
  8375. <![CDATA[Return a set of server default configuration values.
  8376. @param p path is used to identify an FS since an FS could have
  8377. another FS that it could be delegating the call to
  8378. @return server default configuration values
  8379. @throws IOException IO failure]]>
  8380. </doc>
  8381. </method>
  8382. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  8383. abstract="false" native="false" synchronized="false"
  8384. static="false" final="false" visibility="public"
  8385. deprecated="not deprecated">
  8386. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8387. <exception name="IOException" type="java.io.IOException"/>
  8388. <doc>
  8389. <![CDATA[Return the fully-qualified path of path, resolving the path
  8390. through any symlinks or mount point.
  8391. @param p path to be resolved
  8392. @return fully qualified path
  8393. @throws FileNotFoundException if the path is not present
  8394. @throws IOException for any other error]]>
  8395. </doc>
  8396. </method>
  8397. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8398. abstract="true" native="false" synchronized="false"
  8399. static="false" final="false" visibility="public"
  8400. deprecated="not deprecated">
  8401. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8402. <param name="bufferSize" type="int"/>
  8403. <exception name="IOException" type="java.io.IOException"/>
  8404. <doc>
  8405. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8406. @param f the file name to open
  8407. @param bufferSize the size of the buffer to be used.
  8408. @throws IOException IO failure]]>
  8409. </doc>
  8410. </method>
  8411. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8412. abstract="false" native="false" synchronized="false"
  8413. static="false" final="false" visibility="public"
  8414. deprecated="not deprecated">
  8415. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8416. <exception name="IOException" type="java.io.IOException"/>
  8417. <doc>
  8418. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8419. @param f the file to open
  8420. @throws IOException IO failure]]>
  8421. </doc>
  8422. </method>
  8423. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8428. <exception name="IOException" type="java.io.IOException"/>
  8429. <doc>
  8430. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8431. Files are overwritten by default.
  8432. @param f the file to create
  8433. @throws IOException IO failure]]>
  8434. </doc>
  8435. </method>
  8436. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8437. abstract="false" native="false" synchronized="false"
  8438. static="false" final="false" visibility="public"
  8439. deprecated="not deprecated">
  8440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8441. <param name="overwrite" type="boolean"/>
  8442. <exception name="IOException" type="java.io.IOException"/>
  8443. <doc>
  8444. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8445. @param f the file to create
  8446. @param overwrite if a file with this name already exists, then if true,
  8447. the file will be overwritten, and if false an exception will be thrown.
  8448. @throws IOException IO failure]]>
  8449. </doc>
  8450. </method>
  8451. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8452. abstract="false" native="false" synchronized="false"
  8453. static="false" final="false" visibility="public"
  8454. deprecated="not deprecated">
  8455. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8456. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8457. <exception name="IOException" type="java.io.IOException"/>
  8458. <doc>
  8459. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8460. reporting.
  8461. Files are overwritten by default.
  8462. @param f the file to create
  8463. @param progress to report progress
  8464. @throws IOException IO failure]]>
  8465. </doc>
  8466. </method>
  8467. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8468. abstract="false" native="false" synchronized="false"
  8469. static="false" final="false" visibility="public"
  8470. deprecated="not deprecated">
  8471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8472. <param name="replication" type="short"/>
  8473. <exception name="IOException" type="java.io.IOException"/>
  8474. <doc>
  8475. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8476. Files are overwritten by default.
  8477. @param f the file to create
  8478. @param replication the replication factor
  8479. @throws IOException IO failure]]>
  8480. </doc>
  8481. </method>
  8482. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8483. abstract="false" native="false" synchronized="false"
  8484. static="false" final="false" visibility="public"
  8485. deprecated="not deprecated">
  8486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8487. <param name="replication" type="short"/>
  8488. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8489. <exception name="IOException" type="java.io.IOException"/>
  8490. <doc>
  8491. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8492. reporting.
  8493. Files are overwritten by default.
  8494. @param f the file to create
  8495. @param replication the replication factor
  8496. @param progress to report progress
  8497. @throws IOException IO failure]]>
  8498. </doc>
  8499. </method>
  8500. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8501. abstract="false" native="false" synchronized="false"
  8502. static="false" final="false" visibility="public"
  8503. deprecated="not deprecated">
  8504. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8505. <param name="overwrite" type="boolean"/>
  8506. <param name="bufferSize" type="int"/>
  8507. <exception name="IOException" type="java.io.IOException"/>
  8508. <doc>
  8509. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8510. @param f the file to create
  8511. @param overwrite if a path with this name already exists, then if true,
  8512. the file will be overwritten, and if false an error will be thrown.
  8513. @param bufferSize the size of the buffer to be used.
  8514. @throws IOException IO failure]]>
  8515. </doc>
  8516. </method>
  8517. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8518. abstract="false" native="false" synchronized="false"
  8519. static="false" final="false" visibility="public"
  8520. deprecated="not deprecated">
  8521. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8522. <param name="overwrite" type="boolean"/>
  8523. <param name="bufferSize" type="int"/>
  8524. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8525. <exception name="IOException" type="java.io.IOException"/>
  8526. <doc>
  8527. <![CDATA[Create an {@link FSDataOutputStream} at the indicated Path
  8528. with write-progress reporting.
  8529. The frequency of callbacks is implementation-specific; it may be "none".
  8530. @param f the path of the file to open
  8531. @param overwrite if a file with this name already exists, then if true,
  8532. the file will be overwritten, and if false an error will be thrown.
  8533. @param bufferSize the size of the buffer to be used.
  8534. @throws IOException IO failure]]>
  8535. </doc>
  8536. </method>
  8537. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8538. abstract="false" native="false" synchronized="false"
  8539. static="false" final="false" visibility="public"
  8540. deprecated="not deprecated">
  8541. <param name="f" type="org.apache.hadoop.fs.Path"/>
  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. <exception name="IOException" type="java.io.IOException"/>
  8547. <doc>
  8548. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  8549. @param f the file name to open
  8550. @param overwrite if a file with this name already exists, then if true,
  8551. the file will be overwritten, and if false an error will be thrown.
  8552. @param bufferSize the size of the buffer to be used.
  8553. @param replication required block replication for the file.
  8554. @throws IOException IO failure]]>
  8555. </doc>
  8556. </method>
  8557. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8558. abstract="false" native="false" synchronized="false"
  8559. static="false" final="false" visibility="public"
  8560. deprecated="not deprecated">
  8561. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8562. <param name="overwrite" type="boolean"/>
  8563. <param name="bufferSize" type="int"/>
  8564. <param name="replication" type="short"/>
  8565. <param name="blockSize" type="long"/>
  8566. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8567. <exception name="IOException" type="java.io.IOException"/>
  8568. <doc>
  8569. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8570. reporting.
  8571. @param f the file name to open
  8572. @param overwrite if a file with this name already exists, then if true,
  8573. the file will be overwritten, and if false an error will be thrown.
  8574. @param bufferSize the size of the buffer to be used.
  8575. @param replication required block replication for the file.
  8576. @throws IOException IO failure]]>
  8577. </doc>
  8578. </method>
  8579. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8580. abstract="true" native="false" synchronized="false"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8584. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8585. <param name="overwrite" type="boolean"/>
  8586. <param name="bufferSize" type="int"/>
  8587. <param name="replication" type="short"/>
  8588. <param name="blockSize" type="long"/>
  8589. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8590. <exception name="IOException" type="java.io.IOException"/>
  8591. <doc>
  8592. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8593. reporting.
  8594. @param f the file name to open
  8595. @param permission file permission
  8596. @param overwrite if a file with this name already exists, then if true,
  8597. the file will be overwritten, and if false an error will be thrown.
  8598. @param bufferSize the size of the buffer to be used.
  8599. @param replication required block replication for the file.
  8600. @param blockSize block size
  8601. @param progress the progress reporter
  8602. @throws IOException IO failure
  8603. @see #setPermission(Path, FsPermission)]]>
  8604. </doc>
  8605. </method>
  8606. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8607. abstract="false" native="false" synchronized="false"
  8608. static="false" final="false" visibility="public"
  8609. deprecated="not deprecated">
  8610. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8611. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8612. <param name="flags" type="java.util.EnumSet"/>
  8613. <param name="bufferSize" type="int"/>
  8614. <param name="replication" type="short"/>
  8615. <param name="blockSize" type="long"/>
  8616. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8617. <exception name="IOException" type="java.io.IOException"/>
  8618. <doc>
  8619. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8620. reporting.
  8621. @param f the file name to open
  8622. @param permission file permission
  8623. @param flags {@link CreateFlag}s to use for this stream.
  8624. @param bufferSize the size of the buffer to be used.
  8625. @param replication required block replication for the file.
  8626. @param blockSize block size
  8627. @param progress the progress reporter
  8628. @throws IOException IO failure
  8629. @see #setPermission(Path, FsPermission)]]>
  8630. </doc>
  8631. </method>
  8632. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8633. abstract="false" native="false" synchronized="false"
  8634. static="false" final="false" visibility="public"
  8635. deprecated="not deprecated">
  8636. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8637. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8638. <param name="flags" type="java.util.EnumSet"/>
  8639. <param name="bufferSize" type="int"/>
  8640. <param name="replication" type="short"/>
  8641. <param name="blockSize" type="long"/>
  8642. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8643. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8644. <exception name="IOException" type="java.io.IOException"/>
  8645. <doc>
  8646. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  8647. checksum option.
  8648. @param f the file name to open
  8649. @param permission file permission
  8650. @param flags {@link CreateFlag}s to use for this stream.
  8651. @param bufferSize the size of the buffer to be used.
  8652. @param replication required block replication for the file.
  8653. @param blockSize block size
  8654. @param progress the progress reporter
  8655. @param checksumOpt checksum parameter. If null, the values
  8656. found in conf will be used.
  8657. @throws IOException IO failure
  8658. @see #setPermission(Path, FsPermission)]]>
  8659. </doc>
  8660. </method>
  8661. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  8662. abstract="false" native="false" synchronized="false"
  8663. static="false" final="false" visibility="protected"
  8664. deprecated="not deprecated">
  8665. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8666. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8667. <param name="flag" type="java.util.EnumSet"/>
  8668. <param name="bufferSize" type="int"/>
  8669. <param name="replication" type="short"/>
  8670. <param name="blockSize" type="long"/>
  8671. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8672. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  8673. <exception name="IOException" type="java.io.IOException"/>
  8674. <doc>
  8675. <![CDATA[This create has been added to support the FileContext that processes
  8676. the permission with umask before calling this method.
  8677. This a temporary method added to support the transition from FileSystem
  8678. to FileContext for user applications.
  8679. @throws IOException IO failure]]>
  8680. </doc>
  8681. </method>
  8682. <method name="primitiveMkdir" return="boolean"
  8683. abstract="false" native="false" synchronized="false"
  8684. static="false" final="false" visibility="protected"
  8685. deprecated="not deprecated">
  8686. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8687. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8688. <exception name="IOException" type="java.io.IOException"/>
  8689. <doc>
  8690. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8691. It has been added to support the FileContext that processes the permission
  8692. with umask before calling this method.
  8693. This a temporary method added to support the transition from FileSystem
  8694. to FileContext for user applications.
  8695. @param f path
  8696. @param absolutePermission permissions
  8697. @return true if the directory was actually created.
  8698. @throws IOException IO failure
  8699. @see #mkdirs(Path, FsPermission)]]>
  8700. </doc>
  8701. </method>
  8702. <method name="primitiveMkdir"
  8703. abstract="false" native="false" synchronized="false"
  8704. static="false" final="false" visibility="protected"
  8705. deprecated="not deprecated">
  8706. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8707. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8708. <param name="createParent" type="boolean"/>
  8709. <exception name="IOException" type="java.io.IOException"/>
  8710. <doc>
  8711. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  8712. It has been added to support the FileContext that processes the permission
  8713. with umask before calling this method.
  8714. This a temporary method added to support the transition from FileSystem
  8715. to FileContext for user applications.]]>
  8716. </doc>
  8717. </method>
  8718. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8719. abstract="false" native="false" synchronized="false"
  8720. static="false" final="false" visibility="public"
  8721. deprecated="not deprecated">
  8722. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8723. <param name="overwrite" type="boolean"/>
  8724. <param name="bufferSize" type="int"/>
  8725. <param name="replication" type="short"/>
  8726. <param name="blockSize" type="long"/>
  8727. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8728. <exception name="IOException" type="java.io.IOException"/>
  8729. <doc>
  8730. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8731. reporting. Same as create(), except fails if parent directory doesn't
  8732. already exist.
  8733. @param f the file name to open
  8734. @param overwrite if a file with this name already exists, then if true,
  8735. the file will be overwritten, and if false an error will be thrown.
  8736. @param bufferSize the size of the buffer to be used.
  8737. @param replication required block replication for the file.
  8738. @param blockSize block size
  8739. @param progress the progress reporter
  8740. @throws IOException IO failure
  8741. @see #setPermission(Path, FsPermission)]]>
  8742. </doc>
  8743. </method>
  8744. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8745. abstract="false" native="false" synchronized="false"
  8746. static="false" final="false" visibility="public"
  8747. deprecated="not deprecated">
  8748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8749. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8750. <param name="overwrite" type="boolean"/>
  8751. <param name="bufferSize" type="int"/>
  8752. <param name="replication" type="short"/>
  8753. <param name="blockSize" type="long"/>
  8754. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8755. <exception name="IOException" type="java.io.IOException"/>
  8756. <doc>
  8757. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8758. reporting. Same as create(), except fails if parent directory doesn't
  8759. already exist.
  8760. @param f the file name to open
  8761. @param permission file permission
  8762. @param overwrite if a file with this name already exists, then if true,
  8763. the file will be overwritten, and if false an error will be thrown.
  8764. @param bufferSize the size of the buffer to be used.
  8765. @param replication required block replication for the file.
  8766. @param blockSize block size
  8767. @param progress the progress reporter
  8768. @throws IOException IO failure
  8769. @see #setPermission(Path, FsPermission)]]>
  8770. </doc>
  8771. </method>
  8772. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  8773. abstract="false" native="false" synchronized="false"
  8774. static="false" final="false" visibility="public"
  8775. deprecated="not deprecated">
  8776. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8777. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8778. <param name="flags" type="java.util.EnumSet"/>
  8779. <param name="bufferSize" type="int"/>
  8780. <param name="replication" type="short"/>
  8781. <param name="blockSize" type="long"/>
  8782. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8783. <exception name="IOException" type="java.io.IOException"/>
  8784. <doc>
  8785. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8786. reporting. Same as create(), except fails if parent directory doesn't
  8787. already exist.
  8788. @param f the file name to open
  8789. @param permission file permission
  8790. @param flags {@link CreateFlag}s to use for this stream.
  8791. @param bufferSize the size of the buffer to be used.
  8792. @param replication required block replication for the file.
  8793. @param blockSize block size
  8794. @param progress the progress reporter
  8795. @throws IOException IO failure
  8796. @see #setPermission(Path, FsPermission)]]>
  8797. </doc>
  8798. </method>
  8799. <method name="createNewFile" return="boolean"
  8800. abstract="false" native="false" synchronized="false"
  8801. static="false" final="false" visibility="public"
  8802. deprecated="not deprecated">
  8803. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8804. <exception name="IOException" type="java.io.IOException"/>
  8805. <doc>
  8806. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8807. create fails, or if it already existed, return false.
  8808. <i>Important: the default implementation is not atomic</i>
  8809. @param f path to use for create
  8810. @throws IOException IO failure]]>
  8811. </doc>
  8812. </method>
  8813. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8814. abstract="false" native="false" synchronized="false"
  8815. static="false" final="false" visibility="public"
  8816. deprecated="not deprecated">
  8817. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8818. <exception name="IOException" type="java.io.IOException"/>
  8819. <doc>
  8820. <![CDATA[Append to an existing file (optional operation).
  8821. Same as
  8822. {@code append(f, getConf().getInt(IO_FILE_BUFFER_SIZE_KEY,
  8823. IO_FILE_BUFFER_SIZE_DEFAULT), null)}
  8824. @param f the existing file to be appended.
  8825. @throws IOException IO failure
  8826. @throws UnsupportedOperationException if the operation is unsupported
  8827. (default).]]>
  8828. </doc>
  8829. </method>
  8830. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8831. abstract="false" native="false" synchronized="false"
  8832. static="false" final="false" visibility="public"
  8833. deprecated="not deprecated">
  8834. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8835. <param name="bufferSize" type="int"/>
  8836. <exception name="IOException" type="java.io.IOException"/>
  8837. <doc>
  8838. <![CDATA[Append to an existing file (optional operation).
  8839. Same as append(f, bufferSize, null).
  8840. @param f the existing file to be appended.
  8841. @param bufferSize the size of the buffer to be used.
  8842. @throws IOException IO failure
  8843. @throws UnsupportedOperationException if the operation is unsupported
  8844. (default).]]>
  8845. </doc>
  8846. </method>
  8847. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8848. abstract="true" native="false" synchronized="false"
  8849. static="false" final="false" visibility="public"
  8850. deprecated="not deprecated">
  8851. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8852. <param name="bufferSize" type="int"/>
  8853. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8854. <exception name="IOException" type="java.io.IOException"/>
  8855. <doc>
  8856. <![CDATA[Append to an existing file (optional operation).
  8857. @param f the existing file to be appended.
  8858. @param bufferSize the size of the buffer to be used.
  8859. @param progress for reporting progress if it is not null.
  8860. @throws IOException IO failure
  8861. @throws UnsupportedOperationException if the operation is unsupported
  8862. (default).]]>
  8863. </doc>
  8864. </method>
  8865. <method name="concat"
  8866. abstract="false" native="false" synchronized="false"
  8867. static="false" final="false" visibility="public"
  8868. deprecated="not deprecated">
  8869. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  8870. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  8871. <exception name="IOException" type="java.io.IOException"/>
  8872. <doc>
  8873. <![CDATA[Concat existing files together.
  8874. @param trg the path to the target destination.
  8875. @param psrcs the paths to the sources to use for the concatenation.
  8876. @throws IOException IO failure
  8877. @throws UnsupportedOperationException if the operation is unsupported
  8878. (default).]]>
  8879. </doc>
  8880. </method>
  8881. <method name="getReplication" return="short"
  8882. abstract="false" native="false" synchronized="false"
  8883. static="false" final="false" visibility="public"
  8884. deprecated="Use {@link #getFileStatus(Path)} instead">
  8885. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8886. <exception name="IOException" type="java.io.IOException"/>
  8887. <doc>
  8888. <![CDATA[Get the replication factor.
  8889. @deprecated Use {@link #getFileStatus(Path)} instead
  8890. @param src file name
  8891. @return file replication
  8892. @throws FileNotFoundException if the path does not resolve.
  8893. @throws IOException an IO failure]]>
  8894. </doc>
  8895. </method>
  8896. <method name="setReplication" return="boolean"
  8897. abstract="false" native="false" synchronized="false"
  8898. static="false" final="false" visibility="public"
  8899. deprecated="not deprecated">
  8900. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8901. <param name="replication" type="short"/>
  8902. <exception name="IOException" type="java.io.IOException"/>
  8903. <doc>
  8904. <![CDATA[Set the replication for an existing file.
  8905. If a filesystem does not support replication, it will always
  8906. return true: the check for a file existing may be bypassed.
  8907. This is the default behavior.
  8908. @param src file name
  8909. @param replication new replication
  8910. @throws IOException
  8911. @return true if successful, or the feature in unsupported;
  8912. false if replication is supported but the file does not exist,
  8913. or is a directory]]>
  8914. </doc>
  8915. </method>
  8916. <method name="rename" return="boolean"
  8917. abstract="true" native="false" synchronized="false"
  8918. static="false" final="false" visibility="public"
  8919. deprecated="not deprecated">
  8920. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8921. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8922. <exception name="IOException" type="java.io.IOException"/>
  8923. <doc>
  8924. <![CDATA[Renames Path src to Path dst.
  8925. @param src path to be renamed
  8926. @param dst new path after rename
  8927. @throws IOException on failure
  8928. @return true if rename is successful]]>
  8929. </doc>
  8930. </method>
  8931. <method name="rename"
  8932. abstract="false" native="false" synchronized="false"
  8933. static="false" final="false" visibility="protected"
  8934. deprecated="not deprecated">
  8935. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8936. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8937. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  8938. <exception name="IOException" type="java.io.IOException"/>
  8939. <doc>
  8940. <![CDATA[Renames Path src to Path dst
  8941. <ul>
  8942. <li>Fails if src is a file and dst is a directory.</li>
  8943. <li>Fails if src is a directory and dst is a file.</li>
  8944. <li>Fails if the parent of dst does not exist or is a file.</li>
  8945. </ul>
  8946. <p>
  8947. If OVERWRITE option is not passed as an argument, rename fails
  8948. if the dst already exists.
  8949. <p>
  8950. If OVERWRITE option is passed as an argument, rename overwrites
  8951. the dst if it is a file or an empty directory. Rename fails if dst is
  8952. a non-empty directory.
  8953. <p>
  8954. Note that atomicity of rename is dependent on the file system
  8955. implementation. Please refer to the file system documentation for
  8956. details. This default implementation is non atomic.
  8957. <p>
  8958. This method is deprecated since it is a temporary method added to
  8959. support the transition from FileSystem to FileContext for user
  8960. applications.
  8961. @param src path to be renamed
  8962. @param dst new path after rename
  8963. @throws FileNotFoundException src path does not exist, or the parent
  8964. path of dst does not exist.
  8965. @throws FileAlreadyExistsException dest path exists and is a file
  8966. @throws ParentNotDirectoryException if the parent path of dest is not
  8967. a directory
  8968. @throws IOException on failure]]>
  8969. </doc>
  8970. </method>
  8971. <method name="truncate" return="boolean"
  8972. abstract="false" native="false" synchronized="false"
  8973. static="false" final="false" visibility="public"
  8974. deprecated="not deprecated">
  8975. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8976. <param name="newLength" type="long"/>
  8977. <exception name="IOException" type="java.io.IOException"/>
  8978. <doc>
  8979. <![CDATA[Truncate the file in the indicated path to the indicated size.
  8980. <ul>
  8981. <li>Fails if path is a directory.</li>
  8982. <li>Fails if path does not exist.</li>
  8983. <li>Fails if path is not closed.</li>
  8984. <li>Fails if new size is greater than current size.</li>
  8985. </ul>
  8986. @param f The path to the file to be truncated
  8987. @param newLength The size the file is to be truncated to
  8988. @return <code>true</code> if the file has been truncated to the desired
  8989. <code>newLength</code> and is immediately available to be reused for
  8990. write operations such as <code>append</code>, or
  8991. <code>false</code> if a background process of adjusting the length of
  8992. the last block has been started, and clients should wait for it to
  8993. complete before proceeding with further file updates.
  8994. @throws IOException IO failure
  8995. @throws UnsupportedOperationException if the operation is unsupported
  8996. (default).]]>
  8997. </doc>
  8998. </method>
  8999. <method name="delete" return="boolean"
  9000. abstract="false" native="false" synchronized="false"
  9001. static="false" final="false" visibility="public"
  9002. deprecated="Use {@link #delete(Path, boolean)} instead.">
  9003. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9004. <exception name="IOException" type="java.io.IOException"/>
  9005. <doc>
  9006. <![CDATA[Delete a file/directory.
  9007. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  9008. </doc>
  9009. </method>
  9010. <method name="delete" return="boolean"
  9011. abstract="true" native="false" synchronized="false"
  9012. static="false" final="false" visibility="public"
  9013. deprecated="not deprecated">
  9014. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9015. <param name="recursive" type="boolean"/>
  9016. <exception name="IOException" type="java.io.IOException"/>
  9017. <doc>
  9018. <![CDATA[Delete a file.
  9019. @param f the path to delete.
  9020. @param recursive if path is a directory and set to
  9021. true, the directory is deleted else throws an exception. In
  9022. case of a file the recursive can be set to either true or false.
  9023. @return true if delete is successful else false.
  9024. @throws IOException IO failure]]>
  9025. </doc>
  9026. </method>
  9027. <method name="deleteOnExit" return="boolean"
  9028. abstract="false" native="false" synchronized="false"
  9029. static="false" final="false" visibility="public"
  9030. deprecated="not deprecated">
  9031. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9032. <exception name="IOException" type="java.io.IOException"/>
  9033. <doc>
  9034. <![CDATA[Mark a path to be deleted when its FileSystem is closed.
  9035. When the JVM shuts down cleanly, all cached FileSystem objects will be
  9036. closed automatically #these the marked paths will be deleted as a result.
  9037. If a FileSystem instance is not cached, i.e. has been created with
  9038. {@link #createFileSystem(URI, Configuration)}, then the paths will
  9039. be deleted in when {@link #close()} is called on that instance.
  9040. The path must exist in the filesystem at the time of the method call;
  9041. it does not have to exist at the time of JVM shutdown.
  9042. Notes
  9043. <ol>
  9044. <li>Clean shutdown of the JVM cannot be guaranteed.</li>
  9045. <li>The time to shut down a FileSystem will depends on the number of
  9046. files to delete. For filesystems where the cost of checking
  9047. for the existence of a file/directory and the actual delete operation
  9048. (for example: object stores) is high, the time to shutdown the JVM can be
  9049. significantly extended by over-use of this feature.</li>
  9050. <li>Connectivity problems with a remote filesystem may delay shutdown
  9051. further, and may cause the files to not be deleted.</li>
  9052. </ol>
  9053. @param f the path to delete.
  9054. @return true if deleteOnExit is successful, otherwise false.
  9055. @throws IOException IO failure]]>
  9056. </doc>
  9057. </method>
  9058. <method name="cancelDeleteOnExit" return="boolean"
  9059. abstract="false" native="false" synchronized="false"
  9060. static="false" final="false" visibility="public"
  9061. deprecated="not deprecated">
  9062. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9063. <doc>
  9064. <![CDATA[Cancel the scheduled deletion of the path when the FileSystem is closed.
  9065. @param f the path to cancel deletion
  9066. @return true if the path was found in the delete-on-exit list.]]>
  9067. </doc>
  9068. </method>
  9069. <method name="processDeleteOnExit"
  9070. abstract="false" native="false" synchronized="false"
  9071. static="false" final="false" visibility="protected"
  9072. deprecated="not deprecated">
  9073. <doc>
  9074. <![CDATA[Delete all paths that were marked as delete-on-exit. This recursively
  9075. deletes all files and directories in the specified paths.
  9076. The time to process this operation is {@code O(paths)}, with the actual
  9077. time dependent on the time for existence and deletion operations to
  9078. complete, successfully or not.]]>
  9079. </doc>
  9080. </method>
  9081. <method name="exists" return="boolean"
  9082. abstract="false" native="false" synchronized="false"
  9083. static="false" final="false" visibility="public"
  9084. deprecated="not deprecated">
  9085. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9086. <exception name="IOException" type="java.io.IOException"/>
  9087. <doc>
  9088. <![CDATA[Check if a path exists.
  9089. @param f source path
  9090. @return true if the path exists
  9091. @throws IOException IO failure]]>
  9092. </doc>
  9093. </method>
  9094. <method name="isDirectory" return="boolean"
  9095. abstract="false" native="false" synchronized="false"
  9096. static="false" final="false" visibility="public"
  9097. deprecated="not deprecated">
  9098. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9099. <exception name="IOException" type="java.io.IOException"/>
  9100. <doc>
  9101. <![CDATA[True iff the named path is a directory.
  9102. Note: Avoid using this method. Instead reuse the FileStatus
  9103. returned by getFileStatus() or listStatus() methods.
  9104. @param f path to check
  9105. @throws IOException IO failure]]>
  9106. </doc>
  9107. </method>
  9108. <method name="isFile" return="boolean"
  9109. abstract="false" native="false" synchronized="false"
  9110. static="false" final="false" visibility="public"
  9111. deprecated="not deprecated">
  9112. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9113. <exception name="IOException" type="java.io.IOException"/>
  9114. <doc>
  9115. <![CDATA[True iff the named path is a regular file.
  9116. Note: Avoid using this method. Instead reuse the FileStatus
  9117. returned by {@link #getFileStatus(Path)} or listStatus() methods.
  9118. @param f path to check
  9119. @throws IOException IO failure]]>
  9120. </doc>
  9121. </method>
  9122. <method name="getLength" return="long"
  9123. abstract="false" native="false" synchronized="false"
  9124. static="false" final="false" visibility="public"
  9125. deprecated="Use {@link #getFileStatus(Path)} instead.">
  9126. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9127. <exception name="IOException" type="java.io.IOException"/>
  9128. <doc>
  9129. <![CDATA[The number of bytes in a file.
  9130. @return the number of bytes; 0 for a directory
  9131. @deprecated Use {@link #getFileStatus(Path)} instead.
  9132. @throws FileNotFoundException if the path does not resolve
  9133. @throws IOException IO failure]]>
  9134. </doc>
  9135. </method>
  9136. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  9137. abstract="false" native="false" synchronized="false"
  9138. static="false" final="false" visibility="public"
  9139. deprecated="not deprecated">
  9140. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9141. <exception name="IOException" type="java.io.IOException"/>
  9142. <doc>
  9143. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  9144. @param f path to use
  9145. @throws FileNotFoundException if the path does not resolve
  9146. @throws IOException IO failure]]>
  9147. </doc>
  9148. </method>
  9149. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  9150. abstract="false" native="false" synchronized="false"
  9151. static="false" final="false" visibility="public"
  9152. deprecated="not deprecated">
  9153. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9154. <exception name="IOException" type="java.io.IOException"/>
  9155. <doc>
  9156. <![CDATA[Return the {@link QuotaUsage} of a given {@link Path}.
  9157. @param f path to use
  9158. @return the quota usage
  9159. @throws IOException IO failure]]>
  9160. </doc>
  9161. </method>
  9162. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9163. abstract="true" native="false" synchronized="false"
  9164. static="false" final="false" visibility="public"
  9165. deprecated="not deprecated">
  9166. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9167. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9168. <exception name="IOException" type="java.io.IOException"/>
  9169. <doc>
  9170. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9171. a directory.
  9172. <p>
  9173. Does not guarantee to return the List of files/directories status in a
  9174. sorted order.
  9175. @param f given path
  9176. @return the statuses of the files/directories in the given patch
  9177. @throws FileNotFoundException when the path does not exist
  9178. @throws IOException see specific implementation]]>
  9179. </doc>
  9180. </method>
  9181. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9182. abstract="false" native="false" synchronized="false"
  9183. static="false" final="false" visibility="public"
  9184. deprecated="not deprecated">
  9185. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9186. <exception name="IOException" type="java.io.IOException"/>
  9187. <doc>
  9188. <![CDATA[List corrupted file blocks.
  9189. @return an iterator over the corrupt files under the given path
  9190. (may contain duplicates if a file has more than one corrupt block)
  9191. @throws UnsupportedOperationException if the operation is unsupported
  9192. (default).
  9193. @throws IOException IO failure]]>
  9194. </doc>
  9195. </method>
  9196. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9197. abstract="false" native="false" synchronized="false"
  9198. static="false" final="false" visibility="public"
  9199. deprecated="not deprecated">
  9200. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9201. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9202. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9203. <exception name="IOException" type="java.io.IOException"/>
  9204. <doc>
  9205. <![CDATA[Filter files/directories in the given path using the user-supplied path
  9206. filter.
  9207. <p>
  9208. Does not guarantee to return the List of files/directories status in a
  9209. sorted order.
  9210. @param f
  9211. a path name
  9212. @param filter
  9213. the user-supplied path filter
  9214. @return an array of FileStatus objects for the files under the given path
  9215. after applying the filter
  9216. @throws FileNotFoundException when the path does not exist
  9217. @throws IOException see specific implementation]]>
  9218. </doc>
  9219. </method>
  9220. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9221. abstract="false" native="false" synchronized="false"
  9222. static="false" final="false" visibility="public"
  9223. deprecated="not deprecated">
  9224. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9225. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9226. <exception name="IOException" type="java.io.IOException"/>
  9227. <doc>
  9228. <![CDATA[Filter files/directories in the given list of paths using default
  9229. path filter.
  9230. <p>
  9231. Does not guarantee to return the List of files/directories status in a
  9232. sorted order.
  9233. @param files
  9234. a list of paths
  9235. @return a list of statuses for the files under the given paths after
  9236. applying the filter default Path filter
  9237. @throws FileNotFoundException when the path does not exist
  9238. @throws IOException see specific implementation]]>
  9239. </doc>
  9240. </method>
  9241. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9242. abstract="false" native="false" synchronized="false"
  9243. static="false" final="false" visibility="public"
  9244. deprecated="not deprecated">
  9245. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  9246. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9247. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9248. <exception name="IOException" type="java.io.IOException"/>
  9249. <doc>
  9250. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  9251. path filter.
  9252. <p>
  9253. Does not guarantee to return the List of files/directories status in a
  9254. sorted order.
  9255. @param files
  9256. a list of paths
  9257. @param filter
  9258. the user-supplied path filter
  9259. @return a list of statuses for the files under the given paths after
  9260. applying the filter
  9261. @throws FileNotFoundException when the path does not exist
  9262. @throws IOException see specific implementation]]>
  9263. </doc>
  9264. </method>
  9265. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9266. abstract="false" native="false" synchronized="false"
  9267. static="false" final="false" visibility="public"
  9268. deprecated="not deprecated">
  9269. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9270. <exception name="IOException" type="java.io.IOException"/>
  9271. <doc>
  9272. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  9273. files. Results are sorted by their names.
  9274. <p>
  9275. A filename pattern is composed of <i>regular</i> characters and
  9276. <i>special pattern matching</i> characters, which are:
  9277. <dl>
  9278. <dd>
  9279. <dl>
  9280. <p>
  9281. <dt> <tt> ? </tt>
  9282. <dd> Matches any single character.
  9283. <p>
  9284. <dt> <tt> * </tt>
  9285. <dd> Matches zero or more characters.
  9286. <p>
  9287. <dt> <tt> [<i>abc</i>] </tt>
  9288. <dd> Matches a single character from character set
  9289. <tt>{<i>a,b,c</i>}</tt>.
  9290. <p>
  9291. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  9292. <dd> Matches a single character from the character range
  9293. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  9294. lexicographically less than or equal to character <tt><i>b</i></tt>.
  9295. <p>
  9296. <dt> <tt> [^<i>a</i>] </tt>
  9297. <dd> Matches a single character that is not from character set or range
  9298. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  9299. immediately to the right of the opening bracket.
  9300. <p>
  9301. <dt> <tt> \<i>c</i> </tt>
  9302. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  9303. <p>
  9304. <dt> <tt> {ab,cd} </tt>
  9305. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  9306. <p>
  9307. <dt> <tt> {ab,c{de,fh}} </tt>
  9308. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  9309. </dl>
  9310. </dd>
  9311. </dl>
  9312. @param pathPattern a regular expression specifying a pth pattern
  9313. @return an array of paths that match the path pattern
  9314. @throws IOException IO failure]]>
  9315. </doc>
  9316. </method>
  9317. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9318. abstract="false" native="false" synchronized="false"
  9319. static="false" final="false" visibility="public"
  9320. deprecated="not deprecated">
  9321. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  9322. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9323. <exception name="IOException" type="java.io.IOException"/>
  9324. <doc>
  9325. <![CDATA[Return an array of {@link FileStatus} objects whose path names match
  9326. {@code pathPattern}
  9327. and is accepted by the user-supplied path filter. Results are sorted by
  9328. their path names.
  9329. Return
  9330. @param pathPattern
  9331. a regular expression specifying the path pattern
  9332. @param filter
  9333. a user-supplied path filter
  9334. @return an array of FileStatus objects.
  9335. null if pathPattern has no glob and the path does not exist.
  9336. an empty array if pathPattern has a glob and no path matches it.
  9337. @throws IOException if any I/O error occurs when fetching file status]]>
  9338. </doc>
  9339. </method>
  9340. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9341. abstract="false" native="false" synchronized="false"
  9342. static="false" final="false" visibility="public"
  9343. deprecated="not deprecated">
  9344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9345. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9346. <exception name="IOException" type="java.io.IOException"/>
  9347. <doc>
  9348. <![CDATA[List the statuses of the files/directories in the given path if the path is
  9349. a directory.
  9350. Return the file's status and block locations If the path is a file.
  9351. If a returned status is a file, it contains the file's block locations.
  9352. @param f is the path
  9353. @return an iterator that traverses statuses of the files/directories
  9354. in the given path
  9355. @throws FileNotFoundException If <code>f</code> does not exist
  9356. @throws IOException If an I/O error occurred]]>
  9357. </doc>
  9358. </method>
  9359. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9360. abstract="false" native="false" synchronized="false"
  9361. static="false" final="false" visibility="protected"
  9362. deprecated="not deprecated">
  9363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9364. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9365. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9366. <exception name="IOException" type="java.io.IOException"/>
  9367. <doc>
  9368. <![CDATA[List a directory.
  9369. The returned results include its block location if it is a file
  9370. The results are filtered by the given path filter
  9371. @param f a path
  9372. @param filter a path filter
  9373. @return an iterator that traverses statuses of the files/directories
  9374. in the given path
  9375. @throws FileNotFoundException if <code>f</code> does not exist
  9376. @throws IOException if any I/O error occurred]]>
  9377. </doc>
  9378. </method>
  9379. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9380. abstract="false" native="false" synchronized="false"
  9381. static="false" final="false" visibility="public"
  9382. deprecated="not deprecated">
  9383. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9384. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9385. <exception name="IOException" type="java.io.IOException"/>
  9386. <doc>
  9387. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  9388. while consuming the entries. Each FileSystem implementation should
  9389. override this method and provide a more efficient implementation, if
  9390. possible.
  9391. Does not guarantee to return the iterator that traverses statuses
  9392. of the files in a sorted order.
  9393. @param p target path
  9394. @return remote iterator
  9395. @throws FileNotFoundException if <code>p</code> does not exist
  9396. @throws IOException if any I/O error occurred]]>
  9397. </doc>
  9398. </method>
  9399. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  9400. abstract="false" native="false" synchronized="false"
  9401. static="false" final="false" visibility="public"
  9402. deprecated="not deprecated">
  9403. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9404. <param name="recursive" type="boolean"/>
  9405. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9406. <exception name="IOException" type="java.io.IOException"/>
  9407. <doc>
  9408. <![CDATA[List the statuses and block locations of the files in the given path.
  9409. Does not guarantee to return the iterator that traverses statuses
  9410. of the files in a sorted order.
  9411. <pre>
  9412. If the path is a directory,
  9413. if recursive is false, returns files in the directory;
  9414. if recursive is true, return files in the subtree rooted at the path.
  9415. If the path is a file, return the file's status and block locations.
  9416. </pre>
  9417. @param f is the path
  9418. @param recursive if the subdirectories need to be traversed recursively
  9419. @return an iterator that traverses statuses of the files
  9420. @throws FileNotFoundException when the path does not exist;
  9421. @throws IOException see specific implementation]]>
  9422. </doc>
  9423. </method>
  9424. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9425. abstract="false" native="false" synchronized="false"
  9426. static="false" final="false" visibility="public"
  9427. deprecated="not deprecated">
  9428. <doc>
  9429. <![CDATA[Return the current user's home directory in this FileSystem.
  9430. The default implementation returns {@code "/user/$USER/"}.]]>
  9431. </doc>
  9432. </method>
  9433. <method name="setWorkingDirectory"
  9434. abstract="true" native="false" synchronized="false"
  9435. static="false" final="false" visibility="public"
  9436. deprecated="not deprecated">
  9437. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  9438. <doc>
  9439. <![CDATA[Set the current working directory for the given FileSystem. All relative
  9440. paths will be resolved relative to it.
  9441. @param new_dir Path of new working directory]]>
  9442. </doc>
  9443. </method>
  9444. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9445. abstract="true" native="false" synchronized="false"
  9446. static="false" final="false" visibility="public"
  9447. deprecated="not deprecated">
  9448. <doc>
  9449. <![CDATA[Get the current working directory for the given FileSystem
  9450. @return the directory pathname]]>
  9451. </doc>
  9452. </method>
  9453. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9454. abstract="false" native="false" synchronized="false"
  9455. static="false" final="false" visibility="protected"
  9456. deprecated="not deprecated">
  9457. <doc>
  9458. <![CDATA[Note: with the new FileContext class, getWorkingDirectory()
  9459. will be removed.
  9460. The working directory is implemented in FileContext.
  9461. Some FileSystems like LocalFileSystem have an initial workingDir
  9462. that we use as the starting workingDir. For other file systems
  9463. like HDFS there is no built in notion of an initial workingDir.
  9464. @return if there is built in notion of workingDir then it
  9465. is returned; else a null is returned.]]>
  9466. </doc>
  9467. </method>
  9468. <method name="mkdirs" return="boolean"
  9469. abstract="false" native="false" synchronized="false"
  9470. static="false" final="false" visibility="public"
  9471. deprecated="not deprecated">
  9472. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9473. <exception name="IOException" type="java.io.IOException"/>
  9474. <doc>
  9475. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.
  9476. @param f path
  9477. @return true if the directory was created
  9478. @throws IOException IO failure]]>
  9479. </doc>
  9480. </method>
  9481. <method name="mkdirs" return="boolean"
  9482. abstract="true" native="false" synchronized="false"
  9483. static="false" final="false" visibility="public"
  9484. deprecated="not deprecated">
  9485. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9486. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9487. <exception name="IOException" type="java.io.IOException"/>
  9488. <doc>
  9489. <![CDATA[Make the given file and all non-existent parents into
  9490. directories. Has roughly the semantics of Unix @{code mkdir -p}.
  9491. Existence of the directory hierarchy is not an error.
  9492. @param f path to create
  9493. @param permission to apply to f
  9494. @throws IOException IO failure]]>
  9495. </doc>
  9496. </method>
  9497. <method name="copyFromLocalFile"
  9498. abstract="false" native="false" synchronized="false"
  9499. static="false" final="false" visibility="public"
  9500. deprecated="not deprecated">
  9501. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9502. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9503. <exception name="IOException" type="java.io.IOException"/>
  9504. <doc>
  9505. <![CDATA[The src file is on the local disk. Add it to filesystem at
  9506. the given dst name and the source is kept intact afterwards
  9507. @param src path
  9508. @param dst path
  9509. @throws IOException IO failure]]>
  9510. </doc>
  9511. </method>
  9512. <method name="moveFromLocalFile"
  9513. abstract="false" native="false" synchronized="false"
  9514. static="false" final="false" visibility="public"
  9515. deprecated="not deprecated">
  9516. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9517. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9518. <exception name="IOException" type="java.io.IOException"/>
  9519. <doc>
  9520. <![CDATA[The src files is on the local disk. Add it to filesystem at
  9521. the given dst name, removing the source afterwards.
  9522. @param srcs source paths
  9523. @param dst path
  9524. @throws IOException IO failure]]>
  9525. </doc>
  9526. </method>
  9527. <method name="moveFromLocalFile"
  9528. abstract="false" native="false" synchronized="false"
  9529. static="false" final="false" visibility="public"
  9530. deprecated="not deprecated">
  9531. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9532. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9533. <exception name="IOException" type="java.io.IOException"/>
  9534. <doc>
  9535. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9536. the given dst name, removing the source afterwards.
  9537. @param src local path
  9538. @param dst path
  9539. @throws IOException IO failure]]>
  9540. </doc>
  9541. </method>
  9542. <method name="copyFromLocalFile"
  9543. abstract="false" native="false" synchronized="false"
  9544. static="false" final="false" visibility="public"
  9545. deprecated="not deprecated">
  9546. <param name="delSrc" type="boolean"/>
  9547. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9548. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9549. <exception name="IOException" type="java.io.IOException"/>
  9550. <doc>
  9551. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9552. the given dst name.
  9553. delSrc indicates if the source should be removed
  9554. @param delSrc whether to delete the src
  9555. @param src path
  9556. @param dst path]]>
  9557. </doc>
  9558. </method>
  9559. <method name="copyFromLocalFile"
  9560. abstract="false" native="false" synchronized="false"
  9561. static="false" final="false" visibility="public"
  9562. deprecated="not deprecated">
  9563. <param name="delSrc" type="boolean"/>
  9564. <param name="overwrite" type="boolean"/>
  9565. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9566. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9567. <exception name="IOException" type="java.io.IOException"/>
  9568. <doc>
  9569. <![CDATA[The src files are on the local disk. Add it to the filesystem at
  9570. the given dst name.
  9571. delSrc indicates if the source should be removed
  9572. @param delSrc whether to delete the src
  9573. @param overwrite whether to overwrite an existing file
  9574. @param srcs array of paths which are source
  9575. @param dst path
  9576. @throws IOException IO failure]]>
  9577. </doc>
  9578. </method>
  9579. <method name="copyFromLocalFile"
  9580. abstract="false" native="false" synchronized="false"
  9581. static="false" final="false" visibility="public"
  9582. deprecated="not deprecated">
  9583. <param name="delSrc" type="boolean"/>
  9584. <param name="overwrite" type="boolean"/>
  9585. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9586. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9587. <exception name="IOException" type="java.io.IOException"/>
  9588. <doc>
  9589. <![CDATA[The src file is on the local disk. Add it to the filesystem at
  9590. the given dst name.
  9591. delSrc indicates if the source should be removed
  9592. @param delSrc whether to delete the src
  9593. @param overwrite whether to overwrite an existing file
  9594. @param src path
  9595. @param dst path
  9596. @throws IOException IO failure]]>
  9597. </doc>
  9598. </method>
  9599. <method name="copyToLocalFile"
  9600. abstract="false" native="false" synchronized="false"
  9601. static="false" final="false" visibility="public"
  9602. deprecated="not deprecated">
  9603. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9604. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9605. <exception name="IOException" type="java.io.IOException"/>
  9606. <doc>
  9607. <![CDATA[Copy it a file from the remote filesystem to the local one.
  9608. @param src path src file in the remote filesystem
  9609. @param dst path local destination
  9610. @throws IOException IO failure]]>
  9611. </doc>
  9612. </method>
  9613. <method name="moveToLocalFile"
  9614. abstract="false" native="false" synchronized="false"
  9615. static="false" final="false" visibility="public"
  9616. deprecated="not deprecated">
  9617. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9618. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9619. <exception name="IOException" type="java.io.IOException"/>
  9620. <doc>
  9621. <![CDATA[Copy a file to the local filesystem, then delete it from the
  9622. remote filesystem (if successfully copied).
  9623. @param src path src file in the remote filesystem
  9624. @param dst path local destination
  9625. @throws IOException IO failure]]>
  9626. </doc>
  9627. </method>
  9628. <method name="copyToLocalFile"
  9629. abstract="false" native="false" synchronized="false"
  9630. static="false" final="false" visibility="public"
  9631. deprecated="not deprecated">
  9632. <param name="delSrc" type="boolean"/>
  9633. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9634. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9635. <exception name="IOException" type="java.io.IOException"/>
  9636. <doc>
  9637. <![CDATA[Copy it a file from a remote filesystem to the local one.
  9638. delSrc indicates if the src will be removed or not.
  9639. @param delSrc whether to delete the src
  9640. @param src path src file in the remote filesystem
  9641. @param dst path local destination
  9642. @throws IOException IO failure]]>
  9643. </doc>
  9644. </method>
  9645. <method name="copyToLocalFile"
  9646. abstract="false" native="false" synchronized="false"
  9647. static="false" final="false" visibility="public"
  9648. deprecated="not deprecated">
  9649. <param name="delSrc" type="boolean"/>
  9650. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9651. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9652. <param name="useRawLocalFileSystem" type="boolean"/>
  9653. <exception name="IOException" type="java.io.IOException"/>
  9654. <doc>
  9655. <![CDATA[The src file is under this filesystem, and the dst is on the local disk.
  9656. Copy it from the remote filesystem to the local dst name.
  9657. delSrc indicates if the src will be removed
  9658. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  9659. as the local file system or not. RawLocalFileSystem is non checksumming,
  9660. So, It will not create any crc files at local.
  9661. @param delSrc
  9662. whether to delete the src
  9663. @param src
  9664. path
  9665. @param dst
  9666. path
  9667. @param useRawLocalFileSystem
  9668. whether to use RawLocalFileSystem as local file system or not.
  9669. @throws IOException for any IO error]]>
  9670. </doc>
  9671. </method>
  9672. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9673. abstract="false" native="false" synchronized="false"
  9674. static="false" final="false" visibility="public"
  9675. deprecated="not deprecated">
  9676. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9677. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9678. <exception name="IOException" type="java.io.IOException"/>
  9679. <doc>
  9680. <![CDATA[Returns a local file that the user can write output to. The caller
  9681. provides both the eventual target name in this FileSystem
  9682. and the local working file path.
  9683. If this FileSystem is local, we write directly into the target. If
  9684. the FileSystem is not local, we write into the tmp local area.
  9685. @param fsOutputFile path of output file
  9686. @param tmpLocalFile path of local tmp file
  9687. @throws IOException IO failure]]>
  9688. </doc>
  9689. </method>
  9690. <method name="completeLocalOutput"
  9691. abstract="false" native="false" synchronized="false"
  9692. static="false" final="false" visibility="public"
  9693. deprecated="not deprecated">
  9694. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9695. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9696. <exception name="IOException" type="java.io.IOException"/>
  9697. <doc>
  9698. <![CDATA[Called when we're all done writing to the target.
  9699. A local FS will do nothing, because we've written to exactly the
  9700. right place.
  9701. A remote FS will copy the contents of tmpLocalFile to the correct target at
  9702. fsOutputFile.
  9703. @param fsOutputFile path of output file
  9704. @param tmpLocalFile path to local tmp file
  9705. @throws IOException IO failure]]>
  9706. </doc>
  9707. </method>
  9708. <method name="close"
  9709. abstract="false" native="false" synchronized="false"
  9710. static="false" final="false" visibility="public"
  9711. deprecated="not deprecated">
  9712. <exception name="IOException" type="java.io.IOException"/>
  9713. <doc>
  9714. <![CDATA[Close this FileSystem instance.
  9715. Will release any held locks, delete all files queued for deletion
  9716. through calls to {@link #deleteOnExit(Path)}, and remove this FS instance
  9717. from the cache, if cached.
  9718. After this operation, the outcome of any method call on this FileSystem
  9719. instance, or any input/output stream created by it is <i>undefined</i>.
  9720. @throws IOException IO failure]]>
  9721. </doc>
  9722. </method>
  9723. <method name="getUsed" return="long"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. <exception name="IOException" type="java.io.IOException"/>
  9728. <doc>
  9729. <![CDATA[Return the total size of all files in the filesystem.
  9730. @throws IOException IO failure]]>
  9731. </doc>
  9732. </method>
  9733. <method name="getUsed" return="long"
  9734. abstract="false" native="false" synchronized="false"
  9735. static="false" final="false" visibility="public"
  9736. deprecated="not deprecated">
  9737. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9738. <exception name="IOException" type="java.io.IOException"/>
  9739. <doc>
  9740. <![CDATA[Return the total size of all files from a specified path.
  9741. @throws IOException IO failure]]>
  9742. </doc>
  9743. </method>
  9744. <method name="getBlockSize" return="long"
  9745. abstract="false" native="false" synchronized="false"
  9746. static="false" final="false" visibility="public"
  9747. deprecated="Use {@link #getFileStatus(Path)} instead">
  9748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9749. <exception name="IOException" type="java.io.IOException"/>
  9750. <doc>
  9751. <![CDATA[Get the block size for a particular file.
  9752. @param f the filename
  9753. @return the number of bytes in a block
  9754. @deprecated Use {@link #getFileStatus(Path)} instead
  9755. @throws FileNotFoundException if the path is not present
  9756. @throws IOException IO failure]]>
  9757. </doc>
  9758. </method>
  9759. <method name="getDefaultBlockSize" return="long"
  9760. abstract="false" native="false" synchronized="false"
  9761. static="false" final="false" visibility="public"
  9762. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  9763. <doc>
  9764. <![CDATA[Return the number of bytes that large input files should be optimally
  9765. be split into to minimize I/O time.
  9766. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  9767. </doc>
  9768. </method>
  9769. <method name="getDefaultBlockSize" return="long"
  9770. abstract="false" native="false" synchronized="false"
  9771. static="false" final="false" visibility="public"
  9772. deprecated="not deprecated">
  9773. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9774. <doc>
  9775. <![CDATA[Return the number of bytes that large input files should be optimally
  9776. be split into to minimize I/O time. The given path will be used to
  9777. locate the actual filesystem. The full path does not have to exist.
  9778. @param f path of file
  9779. @return the default block size for the path's filesystem]]>
  9780. </doc>
  9781. </method>
  9782. <method name="getDefaultReplication" return="short"
  9783. abstract="false" native="false" synchronized="false"
  9784. static="false" final="false" visibility="public"
  9785. deprecated="use {@link #getDefaultReplication(Path)} instead">
  9786. <doc>
  9787. <![CDATA[Get the default replication.
  9788. @return the replication; the default value is "1".
  9789. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  9790. </doc>
  9791. </method>
  9792. <method name="getDefaultReplication" return="short"
  9793. abstract="false" native="false" synchronized="false"
  9794. static="false" final="false" visibility="public"
  9795. deprecated="not deprecated">
  9796. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9797. <doc>
  9798. <![CDATA[Get the default replication for a path.
  9799. The given path will be used to locate the actual FileSystem to query.
  9800. The full path does not have to exist.
  9801. @param path of the file
  9802. @return default replication for the path's filesystem]]>
  9803. </doc>
  9804. </method>
  9805. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9806. abstract="true" native="false" synchronized="false"
  9807. static="false" final="false" visibility="public"
  9808. deprecated="not deprecated">
  9809. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9810. <exception name="IOException" type="java.io.IOException"/>
  9811. <doc>
  9812. <![CDATA[Return a file status object that represents the path.
  9813. @param f The path we want information from
  9814. @return a FileStatus object
  9815. @throws FileNotFoundException when the path does not exist
  9816. @throws IOException see specific implementation]]>
  9817. </doc>
  9818. </method>
  9819. <method name="msync"
  9820. abstract="false" native="false" synchronized="false"
  9821. static="false" final="false" visibility="public"
  9822. deprecated="not deprecated">
  9823. <exception name="IOException" type="java.io.IOException"/>
  9824. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  9825. <doc>
  9826. <![CDATA[Synchronize client metadata state.
  9827. <p/>In some FileSystem implementations such as HDFS metadata
  9828. synchronization is essential to guarantee consistency of read requests
  9829. particularly in HA setting.
  9830. @throws IOException
  9831. @throws UnsupportedOperationException]]>
  9832. </doc>
  9833. </method>
  9834. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  9835. abstract="false" native="false" synchronized="false"
  9836. static="false" final="false" visibility="protected"
  9837. deprecated="not deprecated">
  9838. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9839. <doc>
  9840. <![CDATA[See {@link FileContext#fixRelativePart}.]]>
  9841. </doc>
  9842. </method>
  9843. <method name="createSymlink"
  9844. abstract="false" native="false" synchronized="false"
  9845. static="false" final="false" visibility="public"
  9846. deprecated="not deprecated">
  9847. <param name="target" type="org.apache.hadoop.fs.Path"/>
  9848. <param name="link" type="org.apache.hadoop.fs.Path"/>
  9849. <param name="createParent" type="boolean"/>
  9850. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9851. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  9852. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9853. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  9854. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9855. <exception name="IOException" type="java.io.IOException"/>
  9856. <doc>
  9857. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}.]]>
  9858. </doc>
  9859. </method>
  9860. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  9861. abstract="false" native="false" synchronized="false"
  9862. static="false" final="false" visibility="public"
  9863. deprecated="not deprecated">
  9864. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9865. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9866. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9867. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9868. <exception name="IOException" type="java.io.IOException"/>
  9869. <doc>
  9870. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}.
  9871. @throws FileNotFoundException when the path does not exist
  9872. @throws IOException see specific implementation]]>
  9873. </doc>
  9874. </method>
  9875. <method name="supportsSymlinks" return="boolean"
  9876. abstract="false" native="false" synchronized="false"
  9877. static="false" final="false" visibility="public"
  9878. deprecated="not deprecated">
  9879. <doc>
  9880. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}.]]>
  9881. </doc>
  9882. </method>
  9883. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  9884. abstract="false" native="false" synchronized="false"
  9885. static="false" final="false" visibility="public"
  9886. deprecated="not deprecated">
  9887. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9888. <exception name="IOException" type="java.io.IOException"/>
  9889. <doc>
  9890. <![CDATA[See {@link FileContext#getLinkTarget(Path)}.
  9891. @throws UnsupportedOperationException if the operation is unsupported
  9892. (default outcome).]]>
  9893. </doc>
  9894. </method>
  9895. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  9896. abstract="false" native="false" synchronized="false"
  9897. static="false" final="false" visibility="protected"
  9898. deprecated="not deprecated">
  9899. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9900. <exception name="IOException" type="java.io.IOException"/>
  9901. <doc>
  9902. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}.
  9903. @throws UnsupportedOperationException if the operation is unsupported
  9904. (default outcome).]]>
  9905. </doc>
  9906. </method>
  9907. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9908. abstract="false" native="false" synchronized="false"
  9909. static="false" final="false" visibility="public"
  9910. deprecated="not deprecated">
  9911. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9912. <exception name="IOException" type="java.io.IOException"/>
  9913. <doc>
  9914. <![CDATA[Get the checksum of a file, if the FS supports checksums.
  9915. @param f The file path
  9916. @return The file checksum. The default return value is null,
  9917. which indicates that no checksum algorithm is implemented
  9918. in the corresponding FileSystem.
  9919. @throws IOException IO failure]]>
  9920. </doc>
  9921. </method>
  9922. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9923. abstract="false" native="false" synchronized="false"
  9924. static="false" final="false" visibility="public"
  9925. deprecated="not deprecated">
  9926. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9927. <param name="length" type="long"/>
  9928. <exception name="IOException" type="java.io.IOException"/>
  9929. <doc>
  9930. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  9931. specific length.
  9932. @param f The file path
  9933. @param length The length of the file range for checksum calculation
  9934. @return The file checksum or null if checksums are not supported.
  9935. @throws IOException IO failure]]>
  9936. </doc>
  9937. </method>
  9938. <method name="setVerifyChecksum"
  9939. abstract="false" native="false" synchronized="false"
  9940. static="false" final="false" visibility="public"
  9941. deprecated="not deprecated">
  9942. <param name="verifyChecksum" type="boolean"/>
  9943. <doc>
  9944. <![CDATA[Set the verify checksum flag. This is only applicable if the
  9945. corresponding filesystem supports checksums. By default doesn't do anything.
  9946. @param verifyChecksum Verify checksum flag]]>
  9947. </doc>
  9948. </method>
  9949. <method name="setWriteChecksum"
  9950. abstract="false" native="false" synchronized="false"
  9951. static="false" final="false" visibility="public"
  9952. deprecated="not deprecated">
  9953. <param name="writeChecksum" type="boolean"/>
  9954. <doc>
  9955. <![CDATA[Set the write checksum flag. This is only applicable if the
  9956. corresponding filesystem supports checksums. By default doesn't do anything.
  9957. @param writeChecksum Write checksum flag]]>
  9958. </doc>
  9959. </method>
  9960. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9961. abstract="false" native="false" synchronized="false"
  9962. static="false" final="false" visibility="public"
  9963. deprecated="not deprecated">
  9964. <exception name="IOException" type="java.io.IOException"/>
  9965. <doc>
  9966. <![CDATA[Returns a status object describing the use and capacity of the
  9967. filesystem. If the filesystem has multiple partitions, the
  9968. use and capacity of the root partition is reflected.
  9969. @return a FsStatus object
  9970. @throws IOException
  9971. see specific implementation]]>
  9972. </doc>
  9973. </method>
  9974. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9975. abstract="false" native="false" synchronized="false"
  9976. static="false" final="false" visibility="public"
  9977. deprecated="not deprecated">
  9978. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9979. <exception name="IOException" type="java.io.IOException"/>
  9980. <doc>
  9981. <![CDATA[Returns a status object describing the use and capacity of the
  9982. filesystem. If the filesystem has multiple partitions, the
  9983. use and capacity of the partition pointed to by the specified
  9984. path is reflected.
  9985. @param p Path for which status should be obtained. null means
  9986. the default partition.
  9987. @return a FsStatus object
  9988. @throws IOException
  9989. see specific implementation]]>
  9990. </doc>
  9991. </method>
  9992. <method name="setPermission"
  9993. abstract="false" native="false" synchronized="false"
  9994. static="false" final="false" visibility="public"
  9995. deprecated="not deprecated">
  9996. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9997. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9998. <exception name="IOException" type="java.io.IOException"/>
  9999. <doc>
  10000. <![CDATA[Set permission of a path.
  10001. @param p The path
  10002. @param permission permission
  10003. @throws IOException IO failure]]>
  10004. </doc>
  10005. </method>
  10006. <method name="setOwner"
  10007. abstract="false" native="false" synchronized="false"
  10008. static="false" final="false" visibility="public"
  10009. deprecated="not deprecated">
  10010. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10011. <param name="username" type="java.lang.String"/>
  10012. <param name="groupname" type="java.lang.String"/>
  10013. <exception name="IOException" type="java.io.IOException"/>
  10014. <doc>
  10015. <![CDATA[Set owner of a path (i.e. a file or a directory).
  10016. The parameters username and groupname cannot both be null.
  10017. @param p The path
  10018. @param username If it is null, the original username remains unchanged.
  10019. @param groupname If it is null, the original groupname remains unchanged.
  10020. @throws IOException IO failure]]>
  10021. </doc>
  10022. </method>
  10023. <method name="setTimes"
  10024. abstract="false" native="false" synchronized="false"
  10025. static="false" final="false" visibility="public"
  10026. deprecated="not deprecated">
  10027. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10028. <param name="mtime" type="long"/>
  10029. <param name="atime" type="long"/>
  10030. <exception name="IOException" type="java.io.IOException"/>
  10031. <doc>
  10032. <![CDATA[Set access time of a file.
  10033. @param p The path
  10034. @param mtime Set the modification time of this file.
  10035. The number of milliseconds since Jan 1, 1970.
  10036. A value of -1 means that this call should not set modification time.
  10037. @param atime Set the access time of this file.
  10038. The number of milliseconds since Jan 1, 1970.
  10039. A value of -1 means that this call should not set access time.
  10040. @throws IOException IO failure]]>
  10041. </doc>
  10042. </method>
  10043. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10044. abstract="false" native="false" synchronized="false"
  10045. static="false" final="true" visibility="public"
  10046. deprecated="not deprecated">
  10047. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10048. <exception name="IOException" type="java.io.IOException"/>
  10049. <doc>
  10050. <![CDATA[Create a snapshot with a default name.
  10051. @param path The directory where snapshots will be taken.
  10052. @return the snapshot path.
  10053. @throws IOException IO failure
  10054. @throws UnsupportedOperationException if the operation is unsupported]]>
  10055. </doc>
  10056. </method>
  10057. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  10058. abstract="false" native="false" synchronized="false"
  10059. static="false" final="false" visibility="public"
  10060. deprecated="not deprecated">
  10061. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10062. <param name="snapshotName" type="java.lang.String"/>
  10063. <exception name="IOException" type="java.io.IOException"/>
  10064. <doc>
  10065. <![CDATA[Create a snapshot.
  10066. @param path The directory where snapshots will be taken.
  10067. @param snapshotName The name of the snapshot
  10068. @return the snapshot path.
  10069. @throws IOException IO failure
  10070. @throws UnsupportedOperationException if the operation is unsupported]]>
  10071. </doc>
  10072. </method>
  10073. <method name="renameSnapshot"
  10074. abstract="false" native="false" synchronized="false"
  10075. static="false" final="false" visibility="public"
  10076. deprecated="not deprecated">
  10077. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10078. <param name="snapshotOldName" type="java.lang.String"/>
  10079. <param name="snapshotNewName" type="java.lang.String"/>
  10080. <exception name="IOException" type="java.io.IOException"/>
  10081. <doc>
  10082. <![CDATA[Rename a snapshot.
  10083. @param path The directory path where the snapshot was taken
  10084. @param snapshotOldName Old name of the snapshot
  10085. @param snapshotNewName New name of the snapshot
  10086. @throws IOException IO failure
  10087. @throws UnsupportedOperationException if the operation is unsupported
  10088. (default outcome).]]>
  10089. </doc>
  10090. </method>
  10091. <method name="deleteSnapshot"
  10092. abstract="false" native="false" synchronized="false"
  10093. static="false" final="false" visibility="public"
  10094. deprecated="not deprecated">
  10095. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10096. <param name="snapshotName" type="java.lang.String"/>
  10097. <exception name="IOException" type="java.io.IOException"/>
  10098. <doc>
  10099. <![CDATA[Delete a snapshot of a directory.
  10100. @param path The directory that the to-be-deleted snapshot belongs to
  10101. @param snapshotName The name of the snapshot
  10102. @throws IOException IO failure
  10103. @throws UnsupportedOperationException if the operation is unsupported
  10104. (default outcome).]]>
  10105. </doc>
  10106. </method>
  10107. <method name="modifyAclEntries"
  10108. abstract="false" native="false" synchronized="false"
  10109. static="false" final="false" visibility="public"
  10110. deprecated="not deprecated">
  10111. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10112. <param name="aclSpec" type="java.util.List"/>
  10113. <exception name="IOException" type="java.io.IOException"/>
  10114. <doc>
  10115. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  10116. entries or modify the permissions on existing ACL entries. All existing
  10117. ACL entries that are not specified in this call are retained without
  10118. changes. (Modifications are merged into the current ACL.)
  10119. @param path Path to modify
  10120. @param aclSpec List<AclEntry> describing modifications
  10121. @throws IOException if an ACL could not be modified
  10122. @throws UnsupportedOperationException if the operation is unsupported
  10123. (default outcome).]]>
  10124. </doc>
  10125. </method>
  10126. <method name="removeAclEntries"
  10127. abstract="false" native="false" synchronized="false"
  10128. static="false" final="false" visibility="public"
  10129. deprecated="not deprecated">
  10130. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10131. <param name="aclSpec" type="java.util.List"/>
  10132. <exception name="IOException" type="java.io.IOException"/>
  10133. <doc>
  10134. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  10135. retained.
  10136. @param path Path to modify
  10137. @param aclSpec List describing entries to remove
  10138. @throws IOException if an ACL could not be modified
  10139. @throws UnsupportedOperationException if the operation is unsupported
  10140. (default outcome).]]>
  10141. </doc>
  10142. </method>
  10143. <method name="removeDefaultAcl"
  10144. abstract="false" native="false" synchronized="false"
  10145. static="false" final="false" visibility="public"
  10146. deprecated="not deprecated">
  10147. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10148. <exception name="IOException" type="java.io.IOException"/>
  10149. <doc>
  10150. <![CDATA[Removes all default ACL entries from files and directories.
  10151. @param path Path to modify
  10152. @throws IOException if an ACL could not be modified
  10153. @throws UnsupportedOperationException if the operation is unsupported
  10154. (default outcome).]]>
  10155. </doc>
  10156. </method>
  10157. <method name="removeAcl"
  10158. abstract="false" native="false" synchronized="false"
  10159. static="false" final="false" visibility="public"
  10160. deprecated="not deprecated">
  10161. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10162. <exception name="IOException" type="java.io.IOException"/>
  10163. <doc>
  10164. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  10165. for user, group, and others are retained for compatibility with permission
  10166. bits.
  10167. @param path Path to modify
  10168. @throws IOException if an ACL could not be removed
  10169. @throws UnsupportedOperationException if the operation is unsupported
  10170. (default outcome).]]>
  10171. </doc>
  10172. </method>
  10173. <method name="setAcl"
  10174. abstract="false" native="false" synchronized="false"
  10175. static="false" final="false" visibility="public"
  10176. deprecated="not deprecated">
  10177. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10178. <param name="aclSpec" type="java.util.List"/>
  10179. <exception name="IOException" type="java.io.IOException"/>
  10180. <doc>
  10181. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  10182. entries.
  10183. @param path Path to modify
  10184. @param aclSpec List describing modifications, which must include entries
  10185. for user, group, and others for compatibility with permission bits.
  10186. @throws IOException if an ACL could not be modified
  10187. @throws UnsupportedOperationException if the operation is unsupported
  10188. (default outcome).]]>
  10189. </doc>
  10190. </method>
  10191. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  10192. abstract="false" native="false" synchronized="false"
  10193. static="false" final="false" visibility="public"
  10194. deprecated="not deprecated">
  10195. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10196. <exception name="IOException" type="java.io.IOException"/>
  10197. <doc>
  10198. <![CDATA[Gets the ACL of a file or directory.
  10199. @param path Path to get
  10200. @return AclStatus describing the ACL of the file or directory
  10201. @throws IOException if an ACL could not be read
  10202. @throws UnsupportedOperationException if the operation is unsupported
  10203. (default outcome).]]>
  10204. </doc>
  10205. </method>
  10206. <method name="setXAttr"
  10207. abstract="false" native="false" synchronized="false"
  10208. static="false" final="false" visibility="public"
  10209. deprecated="not deprecated">
  10210. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10211. <param name="name" type="java.lang.String"/>
  10212. <param name="value" type="byte[]"/>
  10213. <exception name="IOException" type="java.io.IOException"/>
  10214. <doc>
  10215. <![CDATA[Set an xattr of a file or directory.
  10216. The name must be prefixed with the namespace followed by ".". For example,
  10217. "user.attr".
  10218. <p>
  10219. Refer to the HDFS extended attributes user documentation for details.
  10220. @param path Path to modify
  10221. @param name xattr name.
  10222. @param value xattr value.
  10223. @throws IOException IO failure
  10224. @throws UnsupportedOperationException if the operation is unsupported
  10225. (default outcome).]]>
  10226. </doc>
  10227. </method>
  10228. <method name="setXAttr"
  10229. abstract="false" native="false" synchronized="false"
  10230. static="false" final="false" visibility="public"
  10231. deprecated="not deprecated">
  10232. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10233. <param name="name" type="java.lang.String"/>
  10234. <param name="value" type="byte[]"/>
  10235. <param name="flag" type="java.util.EnumSet"/>
  10236. <exception name="IOException" type="java.io.IOException"/>
  10237. <doc>
  10238. <![CDATA[Set an xattr of a file or directory.
  10239. The name must be prefixed with the namespace followed by ".". For example,
  10240. "user.attr".
  10241. <p>
  10242. Refer to the HDFS extended attributes user documentation for details.
  10243. @param path Path to modify
  10244. @param name xattr name.
  10245. @param value xattr value.
  10246. @param flag xattr set flag
  10247. @throws IOException IO failure
  10248. @throws UnsupportedOperationException if the operation is unsupported
  10249. (default outcome).]]>
  10250. </doc>
  10251. </method>
  10252. <method name="getXAttr" return="byte[]"
  10253. abstract="false" native="false" synchronized="false"
  10254. static="false" final="false" visibility="public"
  10255. deprecated="not deprecated">
  10256. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10257. <param name="name" type="java.lang.String"/>
  10258. <exception name="IOException" type="java.io.IOException"/>
  10259. <doc>
  10260. <![CDATA[Get an xattr name and value for a file or directory.
  10261. The name must be prefixed with the namespace followed by ".". For example,
  10262. "user.attr".
  10263. <p>
  10264. Refer to the HDFS extended attributes user documentation for details.
  10265. @param path Path to get extended attribute
  10266. @param name xattr name.
  10267. @return byte[] xattr value.
  10268. @throws IOException IO failure
  10269. @throws UnsupportedOperationException if the operation is unsupported
  10270. (default outcome).]]>
  10271. </doc>
  10272. </method>
  10273. <method name="getXAttrs" return="java.util.Map"
  10274. abstract="false" native="false" synchronized="false"
  10275. static="false" final="false" visibility="public"
  10276. deprecated="not deprecated">
  10277. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10278. <exception name="IOException" type="java.io.IOException"/>
  10279. <doc>
  10280. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  10281. Only those xattrs which the logged-in user has permissions to view
  10282. are returned.
  10283. <p>
  10284. Refer to the HDFS extended attributes user documentation for details.
  10285. @param path Path to get extended attributes
  10286. @return Map describing the XAttrs of the file or directory
  10287. @throws IOException IO failure
  10288. @throws UnsupportedOperationException if the operation is unsupported
  10289. (default outcome).]]>
  10290. </doc>
  10291. </method>
  10292. <method name="getXAttrs" return="java.util.Map"
  10293. abstract="false" native="false" synchronized="false"
  10294. static="false" final="false" visibility="public"
  10295. deprecated="not deprecated">
  10296. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10297. <param name="names" type="java.util.List"/>
  10298. <exception name="IOException" type="java.io.IOException"/>
  10299. <doc>
  10300. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  10301. Only those xattrs which the logged-in user has permissions to view
  10302. are returned.
  10303. <p>
  10304. Refer to the HDFS extended attributes user documentation for details.
  10305. @param path Path to get extended attributes
  10306. @param names XAttr names.
  10307. @return Map describing the XAttrs of the file or directory
  10308. @throws IOException IO failure
  10309. @throws UnsupportedOperationException if the operation is unsupported
  10310. (default outcome).]]>
  10311. </doc>
  10312. </method>
  10313. <method name="listXAttrs" return="java.util.List"
  10314. abstract="false" native="false" synchronized="false"
  10315. static="false" final="false" visibility="public"
  10316. deprecated="not deprecated">
  10317. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10318. <exception name="IOException" type="java.io.IOException"/>
  10319. <doc>
  10320. <![CDATA[Get all of the xattr names for a file or directory.
  10321. Only those xattr names which the logged-in user has permissions to view
  10322. are returned.
  10323. <p>
  10324. Refer to the HDFS extended attributes user documentation for details.
  10325. @param path Path to get extended attributes
  10326. @return List<String> of the XAttr names of the file or directory
  10327. @throws IOException IO failure
  10328. @throws UnsupportedOperationException if the operation is unsupported
  10329. (default outcome).]]>
  10330. </doc>
  10331. </method>
  10332. <method name="removeXAttr"
  10333. abstract="false" native="false" synchronized="false"
  10334. static="false" final="false" visibility="public"
  10335. deprecated="not deprecated">
  10336. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10337. <param name="name" type="java.lang.String"/>
  10338. <exception name="IOException" type="java.io.IOException"/>
  10339. <doc>
  10340. <![CDATA[Remove an xattr of a file or directory.
  10341. The name must be prefixed with the namespace followed by ".". For example,
  10342. "user.attr".
  10343. <p>
  10344. Refer to the HDFS extended attributes user documentation for details.
  10345. @param path Path to remove extended attribute
  10346. @param name xattr name
  10347. @throws IOException IO failure
  10348. @throws UnsupportedOperationException if the operation is unsupported
  10349. (default outcome).]]>
  10350. </doc>
  10351. </method>
  10352. <method name="setStoragePolicy"
  10353. abstract="false" native="false" synchronized="false"
  10354. static="false" final="false" visibility="public"
  10355. deprecated="not deprecated">
  10356. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10357. <param name="policyName" type="java.lang.String"/>
  10358. <exception name="IOException" type="java.io.IOException"/>
  10359. <doc>
  10360. <![CDATA[Set the storage policy for a given file or directory.
  10361. @param src file or directory path.
  10362. @param policyName the name of the target storage policy. The list
  10363. of supported Storage policies can be retrieved
  10364. via {@link #getAllStoragePolicies}.
  10365. @throws IOException IO failure
  10366. @throws UnsupportedOperationException if the operation is unsupported
  10367. (default outcome).]]>
  10368. </doc>
  10369. </method>
  10370. <method name="unsetStoragePolicy"
  10371. abstract="false" native="false" synchronized="false"
  10372. static="false" final="false" visibility="public"
  10373. deprecated="not deprecated">
  10374. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10375. <exception name="IOException" type="java.io.IOException"/>
  10376. <doc>
  10377. <![CDATA[Unset the storage policy set for a given file or directory.
  10378. @param src file or directory path.
  10379. @throws IOException IO failure
  10380. @throws UnsupportedOperationException if the operation is unsupported
  10381. (default outcome).]]>
  10382. </doc>
  10383. </method>
  10384. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  10385. abstract="false" native="false" synchronized="false"
  10386. static="false" final="false" visibility="public"
  10387. deprecated="not deprecated">
  10388. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10389. <exception name="IOException" type="java.io.IOException"/>
  10390. <doc>
  10391. <![CDATA[Query the effective storage policy ID for the given file or directory.
  10392. @param src file or directory path.
  10393. @return storage policy for give file.
  10394. @throws IOException IO failure
  10395. @throws UnsupportedOperationException if the operation is unsupported
  10396. (default outcome).]]>
  10397. </doc>
  10398. </method>
  10399. <method name="getAllStoragePolicies" return="java.util.Collection"
  10400. abstract="false" native="false" synchronized="false"
  10401. static="false" final="false" visibility="public"
  10402. deprecated="not deprecated">
  10403. <exception name="IOException" type="java.io.IOException"/>
  10404. <doc>
  10405. <![CDATA[Retrieve all the storage policies supported by this file system.
  10406. @return all storage policies supported by this filesystem.
  10407. @throws IOException IO failure
  10408. @throws UnsupportedOperationException if the operation is unsupported
  10409. (default outcome).]]>
  10410. </doc>
  10411. </method>
  10412. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  10413. abstract="false" native="false" synchronized="false"
  10414. static="false" final="false" visibility="public"
  10415. deprecated="not deprecated">
  10416. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10417. <doc>
  10418. <![CDATA[Get the root directory of Trash for current user when the path specified
  10419. is deleted.
  10420. @param path the trash root of the path to be determined.
  10421. @return the default implementation returns {@code /user/$USER/.Trash}]]>
  10422. </doc>
  10423. </method>
  10424. <method name="getTrashRoots" return="java.util.Collection"
  10425. abstract="false" native="false" synchronized="false"
  10426. static="false" final="false" visibility="public"
  10427. deprecated="not deprecated">
  10428. <param name="allUsers" type="boolean"/>
  10429. <doc>
  10430. <![CDATA[Get all the trash roots for current user or all users.
  10431. @param allUsers return trash roots for all users if true.
  10432. @return all the trash root directories.
  10433. Default FileSystem returns .Trash under users' home directories if
  10434. {@code /user/$USER/.Trash} exists.]]>
  10435. </doc>
  10436. </method>
  10437. <method name="getFileSystemClass" return="java.lang.Class"
  10438. abstract="false" native="false" synchronized="false"
  10439. static="true" final="false" visibility="public"
  10440. deprecated="not deprecated">
  10441. <param name="scheme" type="java.lang.String"/>
  10442. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10443. <exception name="IOException" type="java.io.IOException"/>
  10444. <doc>
  10445. <![CDATA[Get the FileSystem implementation class of a filesystem.
  10446. This triggers a scan and load of all FileSystem implementations listed as
  10447. services and discovered via the {@link ServiceLoader}
  10448. @param scheme URL scheme of FS
  10449. @param conf configuration: can be null, in which case the check for
  10450. a filesystem binding declaration in the configuration is skipped.
  10451. @return the filesystem
  10452. @throws UnsupportedFileSystemException if there was no known implementation
  10453. for the scheme.
  10454. @throws IOException if the filesystem could not be loaded]]>
  10455. </doc>
  10456. </method>
  10457. <method name="getStatistics" return="java.util.Map"
  10458. abstract="false" native="false" synchronized="true"
  10459. static="true" final="false" visibility="public"
  10460. deprecated="use {@link #getGlobalStorageStatistics()}">
  10461. <doc>
  10462. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  10463. @return a Map having a key as URI scheme and value as Statistics object
  10464. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10465. </doc>
  10466. </method>
  10467. <method name="getAllStatistics" return="java.util.List"
  10468. abstract="false" native="false" synchronized="true"
  10469. static="true" final="false" visibility="public"
  10470. deprecated="use {@link #getGlobalStorageStatistics()}">
  10471. <doc>
  10472. <![CDATA[Return the FileSystem classes that have Statistics.
  10473. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10474. </doc>
  10475. </method>
  10476. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  10477. abstract="false" native="false" synchronized="true"
  10478. static="true" final="false" visibility="public"
  10479. deprecated="use {@link #getGlobalStorageStatistics()}">
  10480. <param name="scheme" type="java.lang.String"/>
  10481. <param name="cls" type="java.lang.Class"/>
  10482. <doc>
  10483. <![CDATA[Get the statistics for a particular file system.
  10484. @param cls the class to lookup
  10485. @return a statistics object
  10486. @deprecated use {@link #getGlobalStorageStatistics()}]]>
  10487. </doc>
  10488. </method>
  10489. <method name="clearStatistics"
  10490. abstract="false" native="false" synchronized="true"
  10491. static="true" final="false" visibility="public"
  10492. deprecated="not deprecated">
  10493. <doc>
  10494. <![CDATA[Reset all statistics for all file systems.]]>
  10495. </doc>
  10496. </method>
  10497. <method name="printStatistics"
  10498. abstract="false" native="false" synchronized="true"
  10499. static="true" final="false" visibility="public"
  10500. deprecated="not deprecated">
  10501. <exception name="IOException" type="java.io.IOException"/>
  10502. <doc>
  10503. <![CDATA[Print all statistics for all file systems to {@code System.out}]]>
  10504. </doc>
  10505. </method>
  10506. <method name="areSymlinksEnabled" return="boolean"
  10507. abstract="false" native="false" synchronized="false"
  10508. static="true" final="false" visibility="public"
  10509. deprecated="not deprecated">
  10510. </method>
  10511. <method name="enableSymlinks"
  10512. abstract="false" native="false" synchronized="false"
  10513. static="true" final="false" visibility="public"
  10514. deprecated="not deprecated">
  10515. </method>
  10516. <method name="getStorageStatistics" return="org.apache.hadoop.fs.StorageStatistics"
  10517. abstract="false" native="false" synchronized="false"
  10518. static="false" final="false" visibility="public"
  10519. deprecated="not deprecated">
  10520. <doc>
  10521. <![CDATA[Get the StorageStatistics for this FileSystem object. These statistics are
  10522. per-instance. They are not shared with any other FileSystem object.
  10523. <p>This is a default method which is intended to be overridden by
  10524. subclasses. The default implementation returns an empty storage statistics
  10525. object.</p>
  10526. @return The StorageStatistics for this FileSystem instance.
  10527. Will never be null.]]>
  10528. </doc>
  10529. </method>
  10530. <method name="getGlobalStorageStatistics" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  10531. abstract="false" native="false" synchronized="false"
  10532. static="true" final="false" visibility="public"
  10533. deprecated="not deprecated">
  10534. <doc>
  10535. <![CDATA[Get the global storage statistics.]]>
  10536. </doc>
  10537. </method>
  10538. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10539. abstract="false" native="false" synchronized="false"
  10540. static="false" final="false" visibility="public"
  10541. deprecated="not deprecated">
  10542. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10543. <doc>
  10544. <![CDATA[Create a new FSDataOutputStreamBuilder for the file with path.
  10545. Files are overwritten by default.
  10546. @param path file path
  10547. @return a FSDataOutputStreamBuilder object to build the file
  10548. HADOOP-14384. Temporarily reduce the visibility of method before the
  10549. builder interface becomes stable.]]>
  10550. </doc>
  10551. </method>
  10552. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  10553. abstract="false" native="false" synchronized="false"
  10554. static="false" final="false" visibility="public"
  10555. deprecated="not deprecated">
  10556. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10557. <doc>
  10558. <![CDATA[Create a Builder to append a file.
  10559. @param path file path.
  10560. @return a {@link FSDataOutputStreamBuilder} to build file append request.]]>
  10561. </doc>
  10562. </method>
  10563. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  10564. transient="false" volatile="false"
  10565. static="true" final="true" visibility="public"
  10566. deprecated="not deprecated">
  10567. </field>
  10568. <field name="DEFAULT_FS" type="java.lang.String"
  10569. transient="false" volatile="false"
  10570. static="true" final="true" visibility="public"
  10571. deprecated="not deprecated">
  10572. </field>
  10573. <field name="LOG" type="org.apache.commons.logging.Log"
  10574. transient="false" volatile="false"
  10575. static="true" final="true" visibility="public"
  10576. deprecated="not deprecated">
  10577. <doc>
  10578. <![CDATA[This log is widely used in the org.apache.hadoop.fs code and tests,
  10579. so must be considered something to only be changed with care.]]>
  10580. </doc>
  10581. </field>
  10582. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  10583. transient="false" volatile="false"
  10584. static="true" final="true" visibility="public"
  10585. deprecated="not deprecated">
  10586. <doc>
  10587. <![CDATA[Priority of the FileSystem shutdown hook: {@value}.]]>
  10588. </doc>
  10589. </field>
  10590. <field name="TRASH_PREFIX" type="java.lang.String"
  10591. transient="false" volatile="false"
  10592. static="true" final="true" visibility="public"
  10593. deprecated="not deprecated">
  10594. <doc>
  10595. <![CDATA[Prefix for trash directory: {@value}.]]>
  10596. </doc>
  10597. </field>
  10598. <field name="USER_HOME_PREFIX" type="java.lang.String"
  10599. transient="false" volatile="false"
  10600. static="true" final="true" visibility="public"
  10601. deprecated="not deprecated">
  10602. </field>
  10603. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  10604. transient="false" volatile="false"
  10605. static="false" final="false" visibility="protected"
  10606. deprecated="not deprecated">
  10607. <doc>
  10608. <![CDATA[The statistics for this file system.]]>
  10609. </doc>
  10610. </field>
  10611. <doc>
  10612. <![CDATA[An abstract base class for a fairly generic filesystem. It
  10613. may be implemented as a distributed filesystem, or as a "local"
  10614. one that reflects the locally-connected disk. The local version
  10615. exists for small Hadoop instances and for testing.
  10616. <p>
  10617. All user code that may potentially use the Hadoop Distributed
  10618. File System should be written to use a FileSystem object or its
  10619. successor, {@link FileContext}.
  10620. <p>
  10621. The local implementation is {@link LocalFileSystem} and distributed
  10622. implementation is DistributedFileSystem. There are other implementations
  10623. for object stores and (outside the Apache Hadoop codebase),
  10624. third party filesystems.
  10625. <p>
  10626. Notes
  10627. <ol>
  10628. <li>The behaviour of the filesystem is
  10629. <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/filesystem/filesystem.html">
  10630. specified in the Hadoop documentation. </a>
  10631. However, the normative specification of the behavior of this class is
  10632. actually HDFS: if HDFS does not behave the way these Javadocs or
  10633. the specification in the Hadoop documentations define, assume that
  10634. the documentation is incorrect.
  10635. </li>
  10636. <li>The term {@code FileSystem} refers to an instance of this class.</li>
  10637. <li>The acronym "FS" is used as an abbreviation of FileSystem.</li>
  10638. <li>The term {@code filesystem} refers to the distributed/local filesystem
  10639. itself, rather than the class used to interact with it.</li>
  10640. <li>The term "file" refers to a file in the remote filesystem,
  10641. rather than instances of {@code java.io.File}.</li>
  10642. </ol>]]>
  10643. </doc>
  10644. </class>
  10645. <!-- end class org.apache.hadoop.fs.FileSystem -->
  10646. <!-- start class org.apache.hadoop.fs.FileUtil -->
  10647. <class name="FileUtil" extends="java.lang.Object"
  10648. abstract="false"
  10649. static="false" final="false" visibility="public"
  10650. deprecated="not deprecated">
  10651. <constructor name="FileUtil"
  10652. static="false" final="false" visibility="public"
  10653. deprecated="not deprecated">
  10654. </constructor>
  10655. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10656. abstract="false" native="false" synchronized="false"
  10657. static="true" final="false" visibility="public"
  10658. deprecated="not deprecated">
  10659. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10660. <doc>
  10661. <![CDATA[convert an array of FileStatus to an array of Path
  10662. @param stats
  10663. an array of FileStatus objects
  10664. @return an array of paths corresponding to the input]]>
  10665. </doc>
  10666. </method>
  10667. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  10668. abstract="false" native="false" synchronized="false"
  10669. static="true" final="false" visibility="public"
  10670. deprecated="not deprecated">
  10671. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  10672. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10673. <doc>
  10674. <![CDATA[convert an array of FileStatus to an array of Path.
  10675. If stats if null, return path
  10676. @param stats
  10677. an array of FileStatus objects
  10678. @param path
  10679. default path to return in stats is null
  10680. @return an array of paths corresponding to the input]]>
  10681. </doc>
  10682. </method>
  10683. <method name="fullyDeleteOnExit"
  10684. abstract="false" native="false" synchronized="false"
  10685. static="true" final="false" visibility="public"
  10686. deprecated="not deprecated">
  10687. <param name="file" type="java.io.File"/>
  10688. <doc>
  10689. <![CDATA[Register all files recursively to be deleted on exit.
  10690. @param file File/directory to be deleted]]>
  10691. </doc>
  10692. </method>
  10693. <method name="fullyDelete" return="boolean"
  10694. abstract="false" native="false" synchronized="false"
  10695. static="true" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. <param name="dir" type="java.io.File"/>
  10698. <doc>
  10699. <![CDATA[Delete a directory and all its contents. If
  10700. we return false, the directory may be partially-deleted.
  10701. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10702. to by the symlink is not deleted.
  10703. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10704. pointed to by symlink is not deleted.
  10705. (3) If dir is a normal file, it is deleted.
  10706. (4) If dir is a normal directory, then dir and all its contents recursively
  10707. are deleted.]]>
  10708. </doc>
  10709. </method>
  10710. <method name="fullyDelete" return="boolean"
  10711. abstract="false" native="false" synchronized="false"
  10712. static="true" final="false" visibility="public"
  10713. deprecated="not deprecated">
  10714. <param name="dir" type="java.io.File"/>
  10715. <param name="tryGrantPermissions" type="boolean"/>
  10716. <doc>
  10717. <![CDATA[Delete a directory and all its contents. If
  10718. we return false, the directory may be partially-deleted.
  10719. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  10720. to by the symlink is not deleted.
  10721. (2) If dir is symlink to a directory, symlink is deleted. The directory
  10722. pointed to by symlink is not deleted.
  10723. (3) If dir is a normal file, it is deleted.
  10724. (4) If dir is a normal directory, then dir and all its contents recursively
  10725. are deleted.
  10726. @param dir the file or directory to be deleted
  10727. @param tryGrantPermissions true if permissions should be modified to delete a file.
  10728. @return true on success false on failure.]]>
  10729. </doc>
  10730. </method>
  10731. <method name="readLink" return="java.lang.String"
  10732. abstract="false" native="false" synchronized="false"
  10733. static="true" final="false" visibility="public"
  10734. deprecated="not deprecated">
  10735. <param name="f" type="java.io.File"/>
  10736. <doc>
  10737. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  10738. the given path does not refer to a symlink or there is an error
  10739. accessing the symlink.
  10740. @param f File representing the symbolic link.
  10741. @return The target of the symbolic link, empty string on error or if not
  10742. a symlink.]]>
  10743. </doc>
  10744. </method>
  10745. <method name="fullyDeleteContents" return="boolean"
  10746. abstract="false" native="false" synchronized="false"
  10747. static="true" final="false" visibility="public"
  10748. deprecated="not deprecated">
  10749. <param name="dir" type="java.io.File"/>
  10750. <doc>
  10751. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10752. we return false, the directory may be partially-deleted.
  10753. If dir is a symlink to a directory, all the contents of the actual
  10754. directory pointed to by dir will be deleted.]]>
  10755. </doc>
  10756. </method>
  10757. <method name="fullyDeleteContents" return="boolean"
  10758. abstract="false" native="false" synchronized="false"
  10759. static="true" final="false" visibility="public"
  10760. deprecated="not deprecated">
  10761. <param name="dir" type="java.io.File"/>
  10762. <param name="tryGrantPermissions" type="boolean"/>
  10763. <doc>
  10764. <![CDATA[Delete the contents of a directory, not the directory itself. If
  10765. we return false, the directory may be partially-deleted.
  10766. If dir is a symlink to a directory, all the contents of the actual
  10767. directory pointed to by dir will be deleted.
  10768. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  10769. and all the underlying directories before trying to delete their contents.]]>
  10770. </doc>
  10771. </method>
  10772. <method name="fullyDelete"
  10773. abstract="false" native="false" synchronized="false"
  10774. static="true" final="false" visibility="public"
  10775. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  10776. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10777. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10778. <exception name="IOException" type="java.io.IOException"/>
  10779. <doc>
  10780. <![CDATA[Recursively delete a directory.
  10781. @param fs {@link FileSystem} on which the path is present
  10782. @param dir directory to recursively delete
  10783. @throws IOException
  10784. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  10785. </doc>
  10786. </method>
  10787. <method name="copy" return="boolean"
  10788. abstract="false" native="false" synchronized="false"
  10789. static="true" final="false" visibility="public"
  10790. deprecated="not deprecated">
  10791. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10792. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10793. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10794. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10795. <param name="deleteSource" type="boolean"/>
  10796. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10797. <exception name="IOException" type="java.io.IOException"/>
  10798. <doc>
  10799. <![CDATA[Copy files between FileSystems.]]>
  10800. </doc>
  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="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10807. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  10808. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10809. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10810. <param name="deleteSource" type="boolean"/>
  10811. <param name="overwrite" type="boolean"/>
  10812. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10813. <exception name="IOException" type="java.io.IOException"/>
  10814. </method>
  10815. <method name="copy" return="boolean"
  10816. abstract="false" native="false" synchronized="false"
  10817. static="true" final="false" visibility="public"
  10818. deprecated="not deprecated">
  10819. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10820. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10821. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10822. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10823. <param name="deleteSource" type="boolean"/>
  10824. <param name="overwrite" type="boolean"/>
  10825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10826. <exception name="IOException" type="java.io.IOException"/>
  10827. <doc>
  10828. <![CDATA[Copy files between FileSystems.]]>
  10829. </doc>
  10830. </method>
  10831. <method name="copy" return="boolean"
  10832. abstract="false" native="false" synchronized="false"
  10833. static="true" final="false" visibility="public"
  10834. deprecated="not deprecated">
  10835. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10836. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  10837. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10838. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10839. <param name="deleteSource" type="boolean"/>
  10840. <param name="overwrite" type="boolean"/>
  10841. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10842. <exception name="IOException" type="java.io.IOException"/>
  10843. <doc>
  10844. <![CDATA[Copy files between FileSystems.]]>
  10845. </doc>
  10846. </method>
  10847. <method name="copyMerge" return="boolean"
  10848. abstract="false" native="false" synchronized="false"
  10849. static="true" final="false" visibility="public"
  10850. deprecated="not deprecated">
  10851. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10852. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  10853. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10854. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  10855. <param name="deleteSource" type="boolean"/>
  10856. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10857. <param name="addString" type="java.lang.String"/>
  10858. <exception name="IOException" type="java.io.IOException"/>
  10859. </method>
  10860. <method name="copy" return="boolean"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="true" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. <param name="src" type="java.io.File"/>
  10865. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  10866. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10867. <param name="deleteSource" type="boolean"/>
  10868. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10869. <exception name="IOException" type="java.io.IOException"/>
  10870. <doc>
  10871. <![CDATA[Copy local files to a FileSystem.]]>
  10872. </doc>
  10873. </method>
  10874. <method name="copy" return="boolean"
  10875. abstract="false" native="false" synchronized="false"
  10876. static="true" final="false" visibility="public"
  10877. deprecated="not deprecated">
  10878. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  10879. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10880. <param name="dst" type="java.io.File"/>
  10881. <param name="deleteSource" type="boolean"/>
  10882. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10883. <exception name="IOException" type="java.io.IOException"/>
  10884. <doc>
  10885. <![CDATA[Copy FileSystem files to local files.]]>
  10886. </doc>
  10887. </method>
  10888. <method name="makeShellPath" return="java.lang.String"
  10889. abstract="false" native="false" synchronized="false"
  10890. static="true" final="false" visibility="public"
  10891. deprecated="not deprecated">
  10892. <param name="filename" type="java.lang.String"/>
  10893. <exception name="IOException" type="java.io.IOException"/>
  10894. <doc>
  10895. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10896. @param filename The filename to convert
  10897. @return The unix pathname
  10898. @throws IOException on windows, there can be problems with the subprocess]]>
  10899. </doc>
  10900. </method>
  10901. <method name="makeShellPath" return="java.lang.String"
  10902. abstract="false" native="false" synchronized="false"
  10903. static="true" final="false" visibility="public"
  10904. deprecated="not deprecated">
  10905. <param name="file" type="java.io.File"/>
  10906. <exception name="IOException" type="java.io.IOException"/>
  10907. <doc>
  10908. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10909. @param file The filename to convert
  10910. @return The unix pathname
  10911. @throws IOException on windows, there can be problems with the subprocess]]>
  10912. </doc>
  10913. </method>
  10914. <method name="makeShellPath" return="java.lang.String"
  10915. abstract="false" native="false" synchronized="false"
  10916. static="true" final="false" visibility="public"
  10917. deprecated="not deprecated">
  10918. <param name="file" type="java.io.File"/>
  10919. <param name="makeCanonicalPath" type="boolean"/>
  10920. <exception name="IOException" type="java.io.IOException"/>
  10921. <doc>
  10922. <![CDATA[Convert a os-native filename to a path that works for the shell.
  10923. @param file The filename to convert
  10924. @param makeCanonicalPath
  10925. Whether to make canonical path for the file passed
  10926. @return The unix pathname
  10927. @throws IOException on windows, there can be problems with the subprocess]]>
  10928. </doc>
  10929. </method>
  10930. <method name="getDU" return="long"
  10931. abstract="false" native="false" synchronized="false"
  10932. static="true" final="false" visibility="public"
  10933. deprecated="not deprecated">
  10934. <param name="dir" type="java.io.File"/>
  10935. <doc>
  10936. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  10937. implementation.
  10938. @param dir
  10939. The input dir to get the disk space of this local dir
  10940. @return The total disk space of the input local directory]]>
  10941. </doc>
  10942. </method>
  10943. <method name="unZip"
  10944. abstract="false" native="false" synchronized="false"
  10945. static="true" final="false" visibility="public"
  10946. deprecated="not deprecated">
  10947. <param name="inFile" type="java.io.File"/>
  10948. <param name="unzipDir" type="java.io.File"/>
  10949. <exception name="IOException" type="java.io.IOException"/>
  10950. <doc>
  10951. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  10952. passed as the second parameter
  10953. @param inFile The zip file as input
  10954. @param unzipDir The unzip directory where to unzip the zip file.
  10955. @throws IOException]]>
  10956. </doc>
  10957. </method>
  10958. <method name="unTar"
  10959. abstract="false" native="false" synchronized="false"
  10960. static="true" final="false" visibility="public"
  10961. deprecated="not deprecated">
  10962. <param name="inFile" type="java.io.File"/>
  10963. <param name="untarDir" type="java.io.File"/>
  10964. <exception name="IOException" type="java.io.IOException"/>
  10965. <doc>
  10966. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  10967. passed as the second parameter
  10968. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  10969. @param inFile The tar file as input.
  10970. @param untarDir The untar directory where to untar the tar file.
  10971. @throws IOException]]>
  10972. </doc>
  10973. </method>
  10974. <method name="symLink" return="int"
  10975. abstract="false" native="false" synchronized="false"
  10976. static="true" final="false" visibility="public"
  10977. deprecated="not deprecated">
  10978. <param name="target" type="java.lang.String"/>
  10979. <param name="linkname" type="java.lang.String"/>
  10980. <exception name="IOException" type="java.io.IOException"/>
  10981. <doc>
  10982. <![CDATA[Create a soft link between a src and destination
  10983. only on a local disk. HDFS does not support this.
  10984. On Windows, when symlink creation fails due to security
  10985. setting, we will log a warning. The return code in this
  10986. case is 2.
  10987. @param target the target for symlink
  10988. @param linkname the symlink
  10989. @return 0 on success]]>
  10990. </doc>
  10991. </method>
  10992. <method name="chmod" return="int"
  10993. abstract="false" native="false" synchronized="false"
  10994. static="true" final="false" visibility="public"
  10995. deprecated="not deprecated">
  10996. <param name="filename" type="java.lang.String"/>
  10997. <param name="perm" type="java.lang.String"/>
  10998. <exception name="IOException" type="java.io.IOException"/>
  10999. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  11000. <doc>
  11001. <![CDATA[Change the permissions on a filename.
  11002. @param filename the name of the file to change
  11003. @param perm the permission string
  11004. @return the exit code from the command
  11005. @throws IOException
  11006. @throws InterruptedException]]>
  11007. </doc>
  11008. </method>
  11009. <method name="chmod" return="int"
  11010. abstract="false" native="false" synchronized="false"
  11011. static="true" final="false" visibility="public"
  11012. deprecated="not deprecated">
  11013. <param name="filename" type="java.lang.String"/>
  11014. <param name="perm" type="java.lang.String"/>
  11015. <param name="recursive" type="boolean"/>
  11016. <exception name="IOException" type="java.io.IOException"/>
  11017. <doc>
  11018. <![CDATA[Change the permissions on a file / directory, recursively, if
  11019. needed.
  11020. @param filename name of the file whose permissions are to change
  11021. @param perm permission string
  11022. @param recursive true, if permissions should be changed recursively
  11023. @return the exit code from the command.
  11024. @throws IOException]]>
  11025. </doc>
  11026. </method>
  11027. <method name="setOwner"
  11028. abstract="false" native="false" synchronized="false"
  11029. static="true" final="false" visibility="public"
  11030. deprecated="not deprecated">
  11031. <param name="file" type="java.io.File"/>
  11032. <param name="username" type="java.lang.String"/>
  11033. <param name="groupname" type="java.lang.String"/>
  11034. <exception name="IOException" type="java.io.IOException"/>
  11035. <doc>
  11036. <![CDATA[Set the ownership on a file / directory. User name and group name
  11037. cannot both be null.
  11038. @param file the file to change
  11039. @param username the new user owner name
  11040. @param groupname the new group owner name
  11041. @throws IOException]]>
  11042. </doc>
  11043. </method>
  11044. <method name="setReadable" return="boolean"
  11045. abstract="false" native="false" synchronized="false"
  11046. static="true" final="false" visibility="public"
  11047. deprecated="not deprecated">
  11048. <param name="f" type="java.io.File"/>
  11049. <param name="readable" type="boolean"/>
  11050. <doc>
  11051. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  11052. File#setReadable does not work as expected on Windows.
  11053. @param f input file
  11054. @param readable
  11055. @return true on success, false otherwise]]>
  11056. </doc>
  11057. </method>
  11058. <method name="setWritable" return="boolean"
  11059. abstract="false" native="false" synchronized="false"
  11060. static="true" final="false" visibility="public"
  11061. deprecated="not deprecated">
  11062. <param name="f" type="java.io.File"/>
  11063. <param name="writable" type="boolean"/>
  11064. <doc>
  11065. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  11066. File#setWritable does not work as expected on Windows.
  11067. @param f input file
  11068. @param writable
  11069. @return true on success, false otherwise]]>
  11070. </doc>
  11071. </method>
  11072. <method name="setExecutable" return="boolean"
  11073. abstract="false" native="false" synchronized="false"
  11074. static="true" final="false" visibility="public"
  11075. deprecated="not deprecated">
  11076. <param name="f" type="java.io.File"/>
  11077. <param name="executable" type="boolean"/>
  11078. <doc>
  11079. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  11080. File#setExecutable does not work as expected on Windows.
  11081. Note: revoking execute permission on folders does not have the same
  11082. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  11083. a file within that folder will still succeed on Windows.
  11084. @param f input file
  11085. @param executable
  11086. @return true on success, false otherwise]]>
  11087. </doc>
  11088. </method>
  11089. <method name="canRead" return="boolean"
  11090. abstract="false" native="false" synchronized="false"
  11091. static="true" final="false" visibility="public"
  11092. deprecated="not deprecated">
  11093. <param name="f" type="java.io.File"/>
  11094. <doc>
  11095. <![CDATA[Platform independent implementation for {@link File#canRead()}
  11096. @param f input file
  11097. @return On Unix, same as {@link File#canRead()}
  11098. On Windows, true if process has read access on the path]]>
  11099. </doc>
  11100. </method>
  11101. <method name="canWrite" return="boolean"
  11102. abstract="false" native="false" synchronized="false"
  11103. static="true" final="false" visibility="public"
  11104. deprecated="not deprecated">
  11105. <param name="f" type="java.io.File"/>
  11106. <doc>
  11107. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  11108. @param f input file
  11109. @return On Unix, same as {@link File#canWrite()}
  11110. On Windows, true if process has write access on the path]]>
  11111. </doc>
  11112. </method>
  11113. <method name="canExecute" return="boolean"
  11114. abstract="false" native="false" synchronized="false"
  11115. static="true" final="false" visibility="public"
  11116. deprecated="not deprecated">
  11117. <param name="f" type="java.io.File"/>
  11118. <doc>
  11119. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  11120. @param f input file
  11121. @return On Unix, same as {@link File#canExecute()}
  11122. On Windows, true if process has execute access on the path]]>
  11123. </doc>
  11124. </method>
  11125. <method name="setPermission"
  11126. abstract="false" native="false" synchronized="false"
  11127. static="true" final="false" visibility="public"
  11128. deprecated="not deprecated">
  11129. <param name="f" type="java.io.File"/>
  11130. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11131. <exception name="IOException" type="java.io.IOException"/>
  11132. <doc>
  11133. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  11134. of forking if group == other.
  11135. @param f the file to change
  11136. @param permission the new permissions
  11137. @throws IOException]]>
  11138. </doc>
  11139. </method>
  11140. <method name="createLocalTempFile" return="java.io.File"
  11141. abstract="false" native="false" synchronized="false"
  11142. static="true" final="true" visibility="public"
  11143. deprecated="not deprecated">
  11144. <param name="basefile" type="java.io.File"/>
  11145. <param name="prefix" type="java.lang.String"/>
  11146. <param name="isDeleteOnExit" type="boolean"/>
  11147. <exception name="IOException" type="java.io.IOException"/>
  11148. <doc>
  11149. <![CDATA[Create a tmp file for a base file.
  11150. @param basefile the base file of the tmp
  11151. @param prefix file name prefix of tmp
  11152. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  11153. @return a newly created tmp file
  11154. @exception IOException If a tmp file cannot created
  11155. @see java.io.File#createTempFile(String, String, File)
  11156. @see java.io.File#deleteOnExit()]]>
  11157. </doc>
  11158. </method>
  11159. <method name="replaceFile"
  11160. abstract="false" native="false" synchronized="false"
  11161. static="true" final="false" visibility="public"
  11162. deprecated="not deprecated">
  11163. <param name="src" type="java.io.File"/>
  11164. <param name="target" type="java.io.File"/>
  11165. <exception name="IOException" type="java.io.IOException"/>
  11166. <doc>
  11167. <![CDATA[Move the src file to the name specified by target.
  11168. @param src the source file
  11169. @param target the target file
  11170. @exception IOException If this operation fails]]>
  11171. </doc>
  11172. </method>
  11173. <method name="listFiles" return="java.io.File[]"
  11174. abstract="false" native="false" synchronized="false"
  11175. static="true" final="false" visibility="public"
  11176. deprecated="not deprecated">
  11177. <param name="dir" type="java.io.File"/>
  11178. <exception name="IOException" type="java.io.IOException"/>
  11179. <doc>
  11180. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  11181. when a dir is not a directory or for any I/O error. Instead of having
  11182. null check everywhere File#listFiles() is used, we will add utility API
  11183. to get around this problem. For the majority of cases where we prefer
  11184. an IOException to be thrown.
  11185. @param dir directory for which listing should be performed
  11186. @return list of files or empty list
  11187. @exception IOException for invalid directory or for a bad disk.]]>
  11188. </doc>
  11189. </method>
  11190. <method name="list" return="java.lang.String[]"
  11191. abstract="false" native="false" synchronized="false"
  11192. static="true" final="false" visibility="public"
  11193. deprecated="not deprecated">
  11194. <param name="dir" type="java.io.File"/>
  11195. <exception name="IOException" type="java.io.IOException"/>
  11196. <doc>
  11197. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  11198. when a dir is not a directory or for any I/O error. Instead of having
  11199. null check everywhere File#list() is used, we will add utility API
  11200. to get around this problem. For the majority of cases where we prefer
  11201. an IOException to be thrown.
  11202. @param dir directory for which listing should be performed
  11203. @return list of file names or empty string list
  11204. @exception IOException for invalid directory or for a bad disk.]]>
  11205. </doc>
  11206. </method>
  11207. <method name="createJarWithClassPath" return="java.lang.String[]"
  11208. abstract="false" native="false" synchronized="false"
  11209. static="true" final="false" visibility="public"
  11210. deprecated="not deprecated">
  11211. <param name="inputClassPath" type="java.lang.String"/>
  11212. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11213. <param name="callerEnv" type="java.util.Map"/>
  11214. <exception name="IOException" type="java.io.IOException"/>
  11215. </method>
  11216. <method name="createJarWithClassPath" return="java.lang.String[]"
  11217. abstract="false" native="false" synchronized="false"
  11218. static="true" final="false" visibility="public"
  11219. deprecated="not deprecated">
  11220. <param name="inputClassPath" type="java.lang.String"/>
  11221. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  11222. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  11223. <param name="callerEnv" type="java.util.Map"/>
  11224. <exception name="IOException" type="java.io.IOException"/>
  11225. <doc>
  11226. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  11227. that references all specified entries.
  11228. Some platforms may have an upper limit on command line length. For example,
  11229. the maximum command line length on Windows is 8191 characters, but the
  11230. length of the classpath may exceed this. To work around this limitation,
  11231. use this method to create a small intermediate jar with a manifest that
  11232. contains the full classpath. It returns the absolute path to the new jar,
  11233. which the caller may set as the classpath for a new process.
  11234. Environment variable evaluation is not supported within a jar manifest, so
  11235. this method expands environment variables before inserting classpath entries
  11236. to the manifest. The method parses environment variables according to
  11237. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  11238. environment variables are case-insensitive. For example, %VAR% and %var%
  11239. evaluate to the same value.
  11240. Specifying the classpath in a jar manifest does not support wildcards, so
  11241. this method expands wildcards internally. Any classpath entry that ends
  11242. with * is translated to all files at that path with extension .jar or .JAR.
  11243. @param inputClassPath String input classpath to bundle into the jar manifest
  11244. @param pwd Path to working directory to save jar
  11245. @param targetDir path to where the jar execution will have its working dir
  11246. @param callerEnv Map<String, String> caller's environment variables to use
  11247. for expansion
  11248. @return String[] with absolute path to new jar in position 0 and
  11249. unexpanded wild card entry path in position 1
  11250. @throws IOException if there is an I/O error while writing the jar file]]>
  11251. </doc>
  11252. </method>
  11253. <method name="getJarsInDirectory" return="java.util.List"
  11254. abstract="false" native="false" synchronized="false"
  11255. static="true" final="false" visibility="public"
  11256. deprecated="not deprecated">
  11257. <param name="path" type="java.lang.String"/>
  11258. <doc>
  11259. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11260. wildcard path to return all jars from the directory to use in a classpath.
  11261. It operates only on local paths.
  11262. @param path the path to the directory. The path may include the wildcard.
  11263. @return the list of jars as URLs, or an empty list if there are no jars, or
  11264. the directory does not exist locally]]>
  11265. </doc>
  11266. </method>
  11267. <method name="getJarsInDirectory" return="java.util.List"
  11268. abstract="false" native="false" synchronized="false"
  11269. static="true" final="false" visibility="public"
  11270. deprecated="not deprecated">
  11271. <param name="path" type="java.lang.String"/>
  11272. <param name="useLocal" type="boolean"/>
  11273. <doc>
  11274. <![CDATA[Returns all jars that are in the directory. It is useful in expanding a
  11275. wildcard path to return all jars from the directory to use in a classpath.
  11276. @param path the path to the directory. The path may include the wildcard.
  11277. @return the list of jars as URLs, or an empty list if there are no jars, or
  11278. the directory does not exist]]>
  11279. </doc>
  11280. </method>
  11281. <method name="compareFs" return="boolean"
  11282. abstract="false" native="false" synchronized="false"
  11283. static="true" final="false" visibility="public"
  11284. deprecated="not deprecated">
  11285. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  11286. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  11287. </method>
  11288. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  11289. transient="false" volatile="false"
  11290. static="true" final="true" visibility="public"
  11291. deprecated="not deprecated">
  11292. </field>
  11293. <doc>
  11294. <![CDATA[A collection of file-processing util methods]]>
  11295. </doc>
  11296. </class>
  11297. <!-- end class org.apache.hadoop.fs.FileUtil -->
  11298. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  11299. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11300. abstract="false"
  11301. static="false" final="false" visibility="public"
  11302. deprecated="not deprecated">
  11303. <constructor name="FilterFileSystem"
  11304. static="false" final="false" visibility="public"
  11305. deprecated="not deprecated">
  11306. </constructor>
  11307. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11308. static="false" final="false" visibility="public"
  11309. deprecated="not deprecated">
  11310. </constructor>
  11311. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11312. abstract="false" native="false" synchronized="false"
  11313. static="false" final="false" visibility="public"
  11314. deprecated="not deprecated">
  11315. <doc>
  11316. <![CDATA[Get the raw file system
  11317. @return FileSystem being filtered]]>
  11318. </doc>
  11319. </method>
  11320. <method name="initialize"
  11321. abstract="false" native="false" synchronized="false"
  11322. static="false" final="false" visibility="public"
  11323. deprecated="not deprecated">
  11324. <param name="name" type="java.net.URI"/>
  11325. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11326. <exception name="IOException" type="java.io.IOException"/>
  11327. <doc>
  11328. <![CDATA[Called after a new FileSystem instance is constructed.
  11329. @param name a uri whose authority section names the host, port, etc.
  11330. for this FileSystem
  11331. @param conf the configuration]]>
  11332. </doc>
  11333. </method>
  11334. <method name="getUri" return="java.net.URI"
  11335. abstract="false" native="false" synchronized="false"
  11336. static="false" final="false" visibility="public"
  11337. deprecated="not deprecated">
  11338. <doc>
  11339. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  11340. </doc>
  11341. </method>
  11342. <method name="getCanonicalUri" return="java.net.URI"
  11343. abstract="false" native="false" synchronized="false"
  11344. static="false" final="false" visibility="protected"
  11345. deprecated="not deprecated">
  11346. </method>
  11347. <method name="canonicalizeUri" return="java.net.URI"
  11348. abstract="false" native="false" synchronized="false"
  11349. static="false" final="false" visibility="protected"
  11350. deprecated="not deprecated">
  11351. <param name="uri" type="java.net.URI"/>
  11352. </method>
  11353. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  11354. abstract="false" native="false" synchronized="false"
  11355. static="false" final="false" visibility="public"
  11356. deprecated="not deprecated">
  11357. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11358. <doc>
  11359. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  11360. </doc>
  11361. </method>
  11362. <method name="checkPath"
  11363. abstract="false" native="false" synchronized="false"
  11364. static="false" final="false" visibility="protected"
  11365. deprecated="not deprecated">
  11366. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11367. <doc>
  11368. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  11369. </doc>
  11370. </method>
  11371. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  11372. abstract="false" native="false" synchronized="false"
  11373. static="false" final="false" visibility="public"
  11374. deprecated="not deprecated">
  11375. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  11376. <param name="start" type="long"/>
  11377. <param name="len" type="long"/>
  11378. <exception name="IOException" type="java.io.IOException"/>
  11379. </method>
  11380. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  11381. abstract="false" native="false" synchronized="false"
  11382. static="false" final="false" visibility="public"
  11383. deprecated="not deprecated">
  11384. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11385. <exception name="IOException" type="java.io.IOException"/>
  11386. </method>
  11387. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11388. abstract="false" native="false" synchronized="false"
  11389. static="false" final="false" visibility="public"
  11390. deprecated="not deprecated">
  11391. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11392. <param name="bufferSize" type="int"/>
  11393. <exception name="IOException" type="java.io.IOException"/>
  11394. <doc>
  11395. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  11396. @param f the file name to open
  11397. @param bufferSize the size of the buffer to be used.]]>
  11398. </doc>
  11399. </method>
  11400. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11401. abstract="false" native="false" synchronized="false"
  11402. static="false" final="false" visibility="public"
  11403. deprecated="not deprecated">
  11404. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11405. <param name="bufferSize" type="int"/>
  11406. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11407. <exception name="IOException" type="java.io.IOException"/>
  11408. </method>
  11409. <method name="concat"
  11410. abstract="false" native="false" synchronized="false"
  11411. static="false" final="false" visibility="public"
  11412. deprecated="not deprecated">
  11413. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11414. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  11415. <exception name="IOException" type="java.io.IOException"/>
  11416. </method>
  11417. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11418. abstract="false" native="false" synchronized="false"
  11419. static="false" final="false" visibility="public"
  11420. deprecated="not deprecated">
  11421. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11422. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11423. <param name="overwrite" type="boolean"/>
  11424. <param name="bufferSize" type="int"/>
  11425. <param name="replication" type="short"/>
  11426. <param name="blockSize" type="long"/>
  11427. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11428. <exception name="IOException" type="java.io.IOException"/>
  11429. </method>
  11430. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11431. abstract="false" native="false" synchronized="false"
  11432. static="false" final="false" visibility="public"
  11433. deprecated="not deprecated">
  11434. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11435. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11436. <param name="flags" type="java.util.EnumSet"/>
  11437. <param name="bufferSize" type="int"/>
  11438. <param name="replication" type="short"/>
  11439. <param name="blockSize" type="long"/>
  11440. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11441. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11442. <exception name="IOException" type="java.io.IOException"/>
  11443. </method>
  11444. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11445. abstract="false" native="false" synchronized="false"
  11446. static="false" final="false" visibility="protected"
  11447. deprecated="not deprecated">
  11448. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11449. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  11450. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11451. <exception name="IOException" type="java.io.IOException"/>
  11452. </method>
  11453. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  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="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11459. <param name="flags" type="java.util.EnumSet"/>
  11460. <param name="bufferSize" type="int"/>
  11461. <param name="replication" type="short"/>
  11462. <param name="blockSize" type="long"/>
  11463. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11464. <exception name="IOException" type="java.io.IOException"/>
  11465. </method>
  11466. <method name="setReplication" return="boolean"
  11467. abstract="false" native="false" synchronized="false"
  11468. static="false" final="false" visibility="public"
  11469. deprecated="not deprecated">
  11470. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11471. <param name="replication" type="short"/>
  11472. <exception name="IOException" type="java.io.IOException"/>
  11473. <doc>
  11474. <![CDATA[Set replication for an existing file.
  11475. @param src file name
  11476. @param replication new replication
  11477. @throws IOException
  11478. @return true if successful;
  11479. false if file does not exist or is a directory]]>
  11480. </doc>
  11481. </method>
  11482. <method name="rename" return="boolean"
  11483. abstract="false" native="false" synchronized="false"
  11484. static="false" final="false" visibility="public"
  11485. deprecated="not deprecated">
  11486. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11487. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11488. <exception name="IOException" type="java.io.IOException"/>
  11489. <doc>
  11490. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  11491. or remote DFS.]]>
  11492. </doc>
  11493. </method>
  11494. <method name="rename"
  11495. abstract="false" native="false" synchronized="false"
  11496. static="false" final="false" visibility="protected"
  11497. deprecated="not deprecated">
  11498. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11499. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11500. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  11501. <exception name="IOException" type="java.io.IOException"/>
  11502. </method>
  11503. <method name="truncate" return="boolean"
  11504. abstract="false" native="false" synchronized="false"
  11505. static="false" final="false" visibility="public"
  11506. deprecated="not deprecated">
  11507. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11508. <param name="newLength" type="long"/>
  11509. <exception name="IOException" type="java.io.IOException"/>
  11510. </method>
  11511. <method name="delete" return="boolean"
  11512. abstract="false" native="false" synchronized="false"
  11513. static="false" final="false" visibility="public"
  11514. deprecated="not deprecated">
  11515. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11516. <param name="recursive" type="boolean"/>
  11517. <exception name="IOException" type="java.io.IOException"/>
  11518. <doc>
  11519. <![CDATA[Delete a file]]>
  11520. </doc>
  11521. </method>
  11522. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11523. abstract="false" native="false" synchronized="false"
  11524. static="false" final="false" visibility="public"
  11525. deprecated="not deprecated">
  11526. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11527. <exception name="IOException" type="java.io.IOException"/>
  11528. <doc>
  11529. <![CDATA[List files in a directory.]]>
  11530. </doc>
  11531. </method>
  11532. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  11533. abstract="false" native="false" synchronized="false"
  11534. static="false" final="false" visibility="public"
  11535. deprecated="not deprecated">
  11536. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11537. <exception name="IOException" type="java.io.IOException"/>
  11538. </method>
  11539. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  11540. abstract="false" native="false" synchronized="false"
  11541. static="false" final="false" visibility="public"
  11542. deprecated="not deprecated">
  11543. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11544. <exception name="IOException" type="java.io.IOException"/>
  11545. <doc>
  11546. <![CDATA[List files and its block locations in a directory.]]>
  11547. </doc>
  11548. </method>
  11549. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  11550. abstract="false" native="false" synchronized="false"
  11551. static="false" final="false" visibility="public"
  11552. deprecated="not deprecated">
  11553. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11554. <exception name="IOException" type="java.io.IOException"/>
  11555. <doc>
  11556. <![CDATA[Return a remote iterator for listing in a directory]]>
  11557. </doc>
  11558. </method>
  11559. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11560. abstract="false" native="false" synchronized="false"
  11561. static="false" final="false" visibility="public"
  11562. deprecated="not deprecated">
  11563. </method>
  11564. <method name="setWorkingDirectory"
  11565. abstract="false" native="false" synchronized="false"
  11566. static="false" final="false" visibility="public"
  11567. deprecated="not deprecated">
  11568. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11569. <doc>
  11570. <![CDATA[Set the current working directory for the given file system. All relative
  11571. paths will be resolved relative to it.
  11572. @param newDir]]>
  11573. </doc>
  11574. </method>
  11575. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11576. abstract="false" native="false" synchronized="false"
  11577. static="false" final="false" visibility="public"
  11578. deprecated="not deprecated">
  11579. <doc>
  11580. <![CDATA[Get the current working directory for the given file system
  11581. @return the directory pathname]]>
  11582. </doc>
  11583. </method>
  11584. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11585. abstract="false" native="false" synchronized="false"
  11586. static="false" final="false" visibility="protected"
  11587. deprecated="not deprecated">
  11588. </method>
  11589. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11590. abstract="false" native="false" synchronized="false"
  11591. static="false" final="false" visibility="public"
  11592. deprecated="not deprecated">
  11593. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11594. <exception name="IOException" type="java.io.IOException"/>
  11595. </method>
  11596. <method name="mkdirs" return="boolean"
  11597. abstract="false" native="false" synchronized="false"
  11598. static="false" final="false" visibility="public"
  11599. deprecated="not deprecated">
  11600. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11601. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11602. <exception name="IOException" type="java.io.IOException"/>
  11603. </method>
  11604. <method name="mkdirs" return="boolean"
  11605. abstract="false" native="false" synchronized="false"
  11606. static="false" final="false" visibility="public"
  11607. deprecated="not deprecated">
  11608. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11609. <exception name="IOException" type="java.io.IOException"/>
  11610. </method>
  11611. <method name="copyFromLocalFile"
  11612. abstract="false" native="false" synchronized="false"
  11613. static="false" final="false" visibility="public"
  11614. deprecated="not deprecated">
  11615. <param name="delSrc" type="boolean"/>
  11616. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11617. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11618. <exception name="IOException" type="java.io.IOException"/>
  11619. <doc>
  11620. <![CDATA[The src file is on the local disk. Add it to FS at
  11621. the given dst name.
  11622. delSrc indicates if the source should be removed]]>
  11623. </doc>
  11624. </method>
  11625. <method name="copyFromLocalFile"
  11626. abstract="false" native="false" synchronized="false"
  11627. static="false" final="false" visibility="public"
  11628. deprecated="not deprecated">
  11629. <param name="delSrc" type="boolean"/>
  11630. <param name="overwrite" type="boolean"/>
  11631. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  11632. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11633. <exception name="IOException" type="java.io.IOException"/>
  11634. <doc>
  11635. <![CDATA[The src files are on the local disk. Add it to FS at
  11636. the given dst name.
  11637. delSrc indicates if the source should be removed]]>
  11638. </doc>
  11639. </method>
  11640. <method name="copyFromLocalFile"
  11641. abstract="false" native="false" synchronized="false"
  11642. static="false" final="false" visibility="public"
  11643. deprecated="not deprecated">
  11644. <param name="delSrc" type="boolean"/>
  11645. <param name="overwrite" type="boolean"/>
  11646. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11647. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11648. <exception name="IOException" type="java.io.IOException"/>
  11649. <doc>
  11650. <![CDATA[The src file is on the local disk. Add it to FS at
  11651. the given dst name.
  11652. delSrc indicates if the source should be removed]]>
  11653. </doc>
  11654. </method>
  11655. <method name="copyToLocalFile"
  11656. abstract="false" native="false" synchronized="false"
  11657. static="false" final="false" visibility="public"
  11658. deprecated="not deprecated">
  11659. <param name="delSrc" type="boolean"/>
  11660. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11661. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11662. <exception name="IOException" type="java.io.IOException"/>
  11663. <doc>
  11664. <![CDATA[The src file is under FS, and the dst is on the local disk.
  11665. Copy it from FS control to the local dst name.
  11666. delSrc indicates if the src will be removed or not.]]>
  11667. </doc>
  11668. </method>
  11669. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11670. abstract="false" native="false" synchronized="false"
  11671. static="false" final="false" visibility="public"
  11672. deprecated="not deprecated">
  11673. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11674. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11675. <exception name="IOException" type="java.io.IOException"/>
  11676. <doc>
  11677. <![CDATA[Returns a local File that the user can write output to. The caller
  11678. provides both the eventual FS target name and the local working
  11679. file. If the FS is local, we write directly into the target. If
  11680. the FS is remote, we write into the tmp local area.]]>
  11681. </doc>
  11682. </method>
  11683. <method name="completeLocalOutput"
  11684. abstract="false" native="false" synchronized="false"
  11685. static="false" final="false" visibility="public"
  11686. deprecated="not deprecated">
  11687. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11688. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11689. <exception name="IOException" type="java.io.IOException"/>
  11690. <doc>
  11691. <![CDATA[Called when we're all done writing to the target. A local FS will
  11692. do nothing, because we've written to exactly the right place. A remote
  11693. FS will copy the contents of tmpLocalFile to the correct target at
  11694. fsOutputFile.]]>
  11695. </doc>
  11696. </method>
  11697. <method name="getUsed" return="long"
  11698. abstract="false" native="false" synchronized="false"
  11699. static="false" final="false" visibility="public"
  11700. deprecated="not deprecated">
  11701. <exception name="IOException" type="java.io.IOException"/>
  11702. <doc>
  11703. <![CDATA[Return the total size of all files in the filesystem.]]>
  11704. </doc>
  11705. </method>
  11706. <method name="getUsed" return="long"
  11707. abstract="false" native="false" synchronized="false"
  11708. static="false" final="false" visibility="public"
  11709. deprecated="not deprecated">
  11710. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11711. <exception name="IOException" type="java.io.IOException"/>
  11712. <doc>
  11713. <![CDATA[Return the total size of all files from a specified path.]]>
  11714. </doc>
  11715. </method>
  11716. <method name="getDefaultBlockSize" return="long"
  11717. abstract="false" native="false" synchronized="false"
  11718. static="false" final="false" visibility="public"
  11719. deprecated="not deprecated">
  11720. </method>
  11721. <method name="getDefaultReplication" return="short"
  11722. abstract="false" native="false" synchronized="false"
  11723. static="false" final="false" visibility="public"
  11724. deprecated="not deprecated">
  11725. </method>
  11726. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11727. abstract="false" native="false" synchronized="false"
  11728. static="false" final="false" visibility="public"
  11729. deprecated="not deprecated">
  11730. <exception name="IOException" type="java.io.IOException"/>
  11731. </method>
  11732. <method name="getDefaultBlockSize" return="long"
  11733. abstract="false" native="false" synchronized="false"
  11734. static="false" final="false" visibility="public"
  11735. deprecated="not deprecated">
  11736. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11737. </method>
  11738. <method name="getDefaultReplication" return="short"
  11739. abstract="false" native="false" synchronized="false"
  11740. static="false" final="false" visibility="public"
  11741. deprecated="not deprecated">
  11742. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11743. </method>
  11744. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  11745. abstract="false" native="false" synchronized="false"
  11746. static="false" final="false" visibility="public"
  11747. deprecated="not deprecated">
  11748. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11749. <exception name="IOException" type="java.io.IOException"/>
  11750. </method>
  11751. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11752. abstract="false" native="false" synchronized="false"
  11753. static="false" final="false" visibility="public"
  11754. deprecated="not deprecated">
  11755. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11756. <exception name="IOException" type="java.io.IOException"/>
  11757. <doc>
  11758. <![CDATA[Get file status.]]>
  11759. </doc>
  11760. </method>
  11761. <method name="msync"
  11762. abstract="false" native="false" synchronized="false"
  11763. static="false" final="false" visibility="public"
  11764. deprecated="not deprecated">
  11765. <exception name="IOException" type="java.io.IOException"/>
  11766. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  11767. </method>
  11768. <method name="access"
  11769. abstract="false" native="false" synchronized="false"
  11770. static="false" final="false" visibility="public"
  11771. deprecated="not deprecated">
  11772. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11773. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  11774. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11775. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11776. <exception name="IOException" type="java.io.IOException"/>
  11777. </method>
  11778. <method name="createSymlink"
  11779. abstract="false" native="false" synchronized="false"
  11780. static="false" final="false" visibility="public"
  11781. deprecated="not deprecated">
  11782. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11783. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11784. <param name="createParent" type="boolean"/>
  11785. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11786. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  11787. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11788. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  11789. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11790. <exception name="IOException" type="java.io.IOException"/>
  11791. </method>
  11792. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11793. abstract="false" native="false" synchronized="false"
  11794. static="false" final="false" visibility="public"
  11795. deprecated="not deprecated">
  11796. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11797. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  11798. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  11799. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  11800. <exception name="IOException" type="java.io.IOException"/>
  11801. </method>
  11802. <method name="supportsSymlinks" return="boolean"
  11803. abstract="false" native="false" synchronized="false"
  11804. static="false" final="false" visibility="public"
  11805. deprecated="not deprecated">
  11806. </method>
  11807. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11808. abstract="false" native="false" synchronized="false"
  11809. static="false" final="false" visibility="public"
  11810. deprecated="not deprecated">
  11811. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11812. <exception name="IOException" type="java.io.IOException"/>
  11813. </method>
  11814. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  11815. abstract="false" native="false" synchronized="false"
  11816. static="false" final="false" visibility="protected"
  11817. deprecated="not deprecated">
  11818. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11819. <exception name="IOException" type="java.io.IOException"/>
  11820. </method>
  11821. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11822. abstract="false" native="false" synchronized="false"
  11823. static="false" final="false" visibility="public"
  11824. deprecated="not deprecated">
  11825. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11826. <exception name="IOException" type="java.io.IOException"/>
  11827. </method>
  11828. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  11829. abstract="false" native="false" synchronized="false"
  11830. static="false" final="false" visibility="public"
  11831. deprecated="not deprecated">
  11832. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11833. <param name="length" type="long"/>
  11834. <exception name="IOException" type="java.io.IOException"/>
  11835. </method>
  11836. <method name="setVerifyChecksum"
  11837. abstract="false" native="false" synchronized="false"
  11838. static="false" final="false" visibility="public"
  11839. deprecated="not deprecated">
  11840. <param name="verifyChecksum" type="boolean"/>
  11841. </method>
  11842. <method name="setWriteChecksum"
  11843. abstract="false" native="false" synchronized="false"
  11844. static="false" final="false" visibility="public"
  11845. deprecated="not deprecated">
  11846. <param name="writeChecksum" type="boolean"/>
  11847. </method>
  11848. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11849. abstract="false" native="false" synchronized="false"
  11850. static="false" final="false" visibility="public"
  11851. deprecated="not deprecated">
  11852. </method>
  11853. <method name="close"
  11854. abstract="false" native="false" synchronized="false"
  11855. static="false" final="false" visibility="public"
  11856. deprecated="not deprecated">
  11857. <exception name="IOException" type="java.io.IOException"/>
  11858. </method>
  11859. <method name="setOwner"
  11860. abstract="false" native="false" synchronized="false"
  11861. static="false" final="false" visibility="public"
  11862. deprecated="not deprecated">
  11863. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11864. <param name="username" type="java.lang.String"/>
  11865. <param name="groupname" type="java.lang.String"/>
  11866. <exception name="IOException" type="java.io.IOException"/>
  11867. </method>
  11868. <method name="setTimes"
  11869. abstract="false" native="false" synchronized="false"
  11870. static="false" final="false" visibility="public"
  11871. deprecated="not deprecated">
  11872. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11873. <param name="mtime" type="long"/>
  11874. <param name="atime" type="long"/>
  11875. <exception name="IOException" type="java.io.IOException"/>
  11876. </method>
  11877. <method name="setPermission"
  11878. abstract="false" native="false" synchronized="false"
  11879. static="false" final="false" visibility="public"
  11880. deprecated="not deprecated">
  11881. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11882. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11883. <exception name="IOException" type="java.io.IOException"/>
  11884. </method>
  11885. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  11886. abstract="false" native="false" synchronized="false"
  11887. static="false" final="false" visibility="protected"
  11888. deprecated="not deprecated">
  11889. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11890. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11891. <param name="flag" type="java.util.EnumSet"/>
  11892. <param name="bufferSize" type="int"/>
  11893. <param name="replication" type="short"/>
  11894. <param name="blockSize" type="long"/>
  11895. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11896. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  11897. <exception name="IOException" type="java.io.IOException"/>
  11898. </method>
  11899. <method name="primitiveMkdir" return="boolean"
  11900. abstract="false" native="false" synchronized="false"
  11901. static="false" final="false" visibility="protected"
  11902. deprecated="not deprecated">
  11903. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11904. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11905. <exception name="IOException" type="java.io.IOException"/>
  11906. </method>
  11907. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  11908. abstract="false" native="false" synchronized="false"
  11909. static="false" final="false" visibility="public"
  11910. deprecated="not deprecated">
  11911. </method>
  11912. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  11913. abstract="false" native="false" synchronized="false"
  11914. static="false" final="false" visibility="public"
  11915. deprecated="not deprecated">
  11916. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11917. <param name="snapshotName" type="java.lang.String"/>
  11918. <exception name="IOException" type="java.io.IOException"/>
  11919. </method>
  11920. <method name="renameSnapshot"
  11921. abstract="false" native="false" synchronized="false"
  11922. static="false" final="false" visibility="public"
  11923. deprecated="not deprecated">
  11924. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11925. <param name="snapshotOldName" type="java.lang.String"/>
  11926. <param name="snapshotNewName" type="java.lang.String"/>
  11927. <exception name="IOException" type="java.io.IOException"/>
  11928. </method>
  11929. <method name="deleteSnapshot"
  11930. abstract="false" native="false" synchronized="false"
  11931. static="false" final="false" visibility="public"
  11932. deprecated="not deprecated">
  11933. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11934. <param name="snapshotName" type="java.lang.String"/>
  11935. <exception name="IOException" type="java.io.IOException"/>
  11936. </method>
  11937. <method name="modifyAclEntries"
  11938. abstract="false" native="false" synchronized="false"
  11939. static="false" final="false" visibility="public"
  11940. deprecated="not deprecated">
  11941. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11942. <param name="aclSpec" type="java.util.List"/>
  11943. <exception name="IOException" type="java.io.IOException"/>
  11944. </method>
  11945. <method name="removeAclEntries"
  11946. abstract="false" native="false" synchronized="false"
  11947. static="false" final="false" visibility="public"
  11948. deprecated="not deprecated">
  11949. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11950. <param name="aclSpec" type="java.util.List"/>
  11951. <exception name="IOException" type="java.io.IOException"/>
  11952. </method>
  11953. <method name="removeDefaultAcl"
  11954. abstract="false" native="false" synchronized="false"
  11955. static="false" final="false" visibility="public"
  11956. deprecated="not deprecated">
  11957. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11958. <exception name="IOException" type="java.io.IOException"/>
  11959. </method>
  11960. <method name="removeAcl"
  11961. abstract="false" native="false" synchronized="false"
  11962. static="false" final="false" visibility="public"
  11963. deprecated="not deprecated">
  11964. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11965. <exception name="IOException" type="java.io.IOException"/>
  11966. </method>
  11967. <method name="setAcl"
  11968. abstract="false" native="false" synchronized="false"
  11969. static="false" final="false" visibility="public"
  11970. deprecated="not deprecated">
  11971. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11972. <param name="aclSpec" type="java.util.List"/>
  11973. <exception name="IOException" type="java.io.IOException"/>
  11974. </method>
  11975. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  11976. abstract="false" native="false" synchronized="false"
  11977. static="false" final="false" visibility="public"
  11978. deprecated="not deprecated">
  11979. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11980. <exception name="IOException" type="java.io.IOException"/>
  11981. </method>
  11982. <method name="setXAttr"
  11983. abstract="false" native="false" synchronized="false"
  11984. static="false" final="false" visibility="public"
  11985. deprecated="not deprecated">
  11986. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11987. <param name="name" type="java.lang.String"/>
  11988. <param name="value" type="byte[]"/>
  11989. <exception name="IOException" type="java.io.IOException"/>
  11990. </method>
  11991. <method name="setXAttr"
  11992. abstract="false" native="false" synchronized="false"
  11993. static="false" final="false" visibility="public"
  11994. deprecated="not deprecated">
  11995. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11996. <param name="name" type="java.lang.String"/>
  11997. <param name="value" type="byte[]"/>
  11998. <param name="flag" type="java.util.EnumSet"/>
  11999. <exception name="IOException" type="java.io.IOException"/>
  12000. </method>
  12001. <method name="getXAttr" return="byte[]"
  12002. abstract="false" native="false" synchronized="false"
  12003. static="false" final="false" visibility="public"
  12004. deprecated="not deprecated">
  12005. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12006. <param name="name" type="java.lang.String"/>
  12007. <exception name="IOException" type="java.io.IOException"/>
  12008. </method>
  12009. <method name="getXAttrs" return="java.util.Map"
  12010. abstract="false" native="false" synchronized="false"
  12011. static="false" final="false" visibility="public"
  12012. deprecated="not deprecated">
  12013. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12014. <exception name="IOException" type="java.io.IOException"/>
  12015. </method>
  12016. <method name="getXAttrs" return="java.util.Map"
  12017. abstract="false" native="false" synchronized="false"
  12018. static="false" final="false" visibility="public"
  12019. deprecated="not deprecated">
  12020. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12021. <param name="names" type="java.util.List"/>
  12022. <exception name="IOException" type="java.io.IOException"/>
  12023. </method>
  12024. <method name="listXAttrs" return="java.util.List"
  12025. abstract="false" native="false" synchronized="false"
  12026. static="false" final="false" visibility="public"
  12027. deprecated="not deprecated">
  12028. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12029. <exception name="IOException" type="java.io.IOException"/>
  12030. </method>
  12031. <method name="removeXAttr"
  12032. abstract="false" native="false" synchronized="false"
  12033. static="false" final="false" visibility="public"
  12034. deprecated="not deprecated">
  12035. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12036. <param name="name" type="java.lang.String"/>
  12037. <exception name="IOException" type="java.io.IOException"/>
  12038. </method>
  12039. <method name="setStoragePolicy"
  12040. abstract="false" native="false" synchronized="false"
  12041. static="false" final="false" visibility="public"
  12042. deprecated="not deprecated">
  12043. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12044. <param name="policyName" type="java.lang.String"/>
  12045. <exception name="IOException" type="java.io.IOException"/>
  12046. </method>
  12047. <method name="unsetStoragePolicy"
  12048. abstract="false" native="false" synchronized="false"
  12049. static="false" final="false" visibility="public"
  12050. deprecated="not deprecated">
  12051. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12052. <exception name="IOException" type="java.io.IOException"/>
  12053. </method>
  12054. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  12055. abstract="false" native="false" synchronized="false"
  12056. static="false" final="false" visibility="public"
  12057. deprecated="not deprecated">
  12058. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12059. <exception name="IOException" type="java.io.IOException"/>
  12060. </method>
  12061. <method name="getAllStoragePolicies" return="java.util.Collection"
  12062. abstract="false" native="false" synchronized="false"
  12063. static="false" final="false" visibility="public"
  12064. deprecated="not deprecated">
  12065. <exception name="IOException" type="java.io.IOException"/>
  12066. </method>
  12067. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  12068. abstract="false" native="false" synchronized="false"
  12069. static="false" final="false" visibility="public"
  12070. deprecated="not deprecated">
  12071. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12072. </method>
  12073. <method name="getTrashRoots" return="java.util.Collection"
  12074. abstract="false" native="false" synchronized="false"
  12075. static="false" final="false" visibility="public"
  12076. deprecated="not deprecated">
  12077. <param name="allUsers" type="boolean"/>
  12078. </method>
  12079. <method name="createFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12080. abstract="false" native="false" synchronized="false"
  12081. static="false" final="false" visibility="public"
  12082. deprecated="not deprecated">
  12083. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12084. </method>
  12085. <method name="appendFile" return="org.apache.hadoop.fs.FSDataOutputStreamBuilder"
  12086. abstract="false" native="false" synchronized="false"
  12087. static="false" final="false" visibility="public"
  12088. deprecated="not deprecated">
  12089. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12090. </method>
  12091. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  12092. transient="false" volatile="false"
  12093. static="false" final="false" visibility="protected"
  12094. deprecated="not deprecated">
  12095. </field>
  12096. <field name="swapScheme" type="java.lang.String"
  12097. transient="false" volatile="false"
  12098. static="false" final="false" visibility="protected"
  12099. deprecated="not deprecated">
  12100. </field>
  12101. <doc>
  12102. <![CDATA[A <code>FilterFileSystem</code> contains
  12103. some other file system, which it uses as
  12104. its basic file system, possibly transforming
  12105. the data along the way or providing additional
  12106. functionality. The class <code>FilterFileSystem</code>
  12107. itself simply overrides all methods of
  12108. <code>FileSystem</code> with versions that
  12109. pass all requests to the contained file
  12110. system. Subclasses of <code>FilterFileSystem</code>
  12111. may further override some of these methods
  12112. and may also provide additional methods
  12113. and fields.]]>
  12114. </doc>
  12115. </class>
  12116. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  12117. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  12118. <interface name="FsConstants" abstract="true"
  12119. static="false" final="false" visibility="public"
  12120. deprecated="not deprecated">
  12121. <field name="LOCAL_FS_URI" type="java.net.URI"
  12122. transient="false" volatile="false"
  12123. static="true" final="true" visibility="public"
  12124. deprecated="not deprecated">
  12125. </field>
  12126. <field name="FTP_SCHEME" type="java.lang.String"
  12127. transient="false" volatile="false"
  12128. static="true" final="true" visibility="public"
  12129. deprecated="not deprecated">
  12130. </field>
  12131. <field name="MAX_PATH_LINKS" type="int"
  12132. transient="false" volatile="false"
  12133. static="true" final="true" visibility="public"
  12134. deprecated="not deprecated">
  12135. </field>
  12136. <field name="VIEWFS_URI" type="java.net.URI"
  12137. transient="false" volatile="false"
  12138. static="true" final="true" visibility="public"
  12139. deprecated="not deprecated">
  12140. <doc>
  12141. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  12142. </doc>
  12143. </field>
  12144. <field name="VIEWFS_SCHEME" type="java.lang.String"
  12145. transient="false" volatile="false"
  12146. static="true" final="true" visibility="public"
  12147. deprecated="not deprecated">
  12148. </field>
  12149. <doc>
  12150. <![CDATA[FileSystem related constants.]]>
  12151. </doc>
  12152. </interface>
  12153. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  12154. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  12155. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  12156. abstract="false"
  12157. static="false" final="false" visibility="public"
  12158. deprecated="not deprecated">
  12159. <implements name="org.apache.hadoop.fs.Seekable"/>
  12160. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12161. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  12162. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  12163. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12164. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  12165. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  12166. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  12167. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12168. <implements name="org.apache.hadoop.fs.ByteBufferPositionedReadable"/>
  12169. <constructor name="FSDataInputStream" type="java.io.InputStream"
  12170. static="false" final="false" visibility="public"
  12171. deprecated="not deprecated">
  12172. </constructor>
  12173. <method name="seek"
  12174. abstract="false" native="false" synchronized="false"
  12175. static="false" final="false" visibility="public"
  12176. deprecated="not deprecated">
  12177. <param name="desired" type="long"/>
  12178. <exception name="IOException" type="java.io.IOException"/>
  12179. <doc>
  12180. <![CDATA[Seek to the given offset.
  12181. @param desired offset to seek to]]>
  12182. </doc>
  12183. </method>
  12184. <method name="getPos" return="long"
  12185. abstract="false" native="false" synchronized="false"
  12186. static="false" final="false" visibility="public"
  12187. deprecated="not deprecated">
  12188. <exception name="IOException" type="java.io.IOException"/>
  12189. <doc>
  12190. <![CDATA[Get the current position in the input stream.
  12191. @return current position in the input stream]]>
  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="position" type="long"/>
  12199. <param name="buffer" type="byte[]"/>
  12200. <param name="offset" type="int"/>
  12201. <param name="length" type="int"/>
  12202. <exception name="IOException" type="java.io.IOException"/>
  12203. <doc>
  12204. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12205. @param position position in the input stream to seek
  12206. @param buffer buffer into which data is read
  12207. @param offset offset into the buffer in which data is written
  12208. @param length maximum number of bytes to read
  12209. @return total number of bytes read into the buffer, or <code>-1</code>
  12210. if there is no more data because the end of the stream has been
  12211. reached]]>
  12212. </doc>
  12213. </method>
  12214. <method name="readFully"
  12215. abstract="false" native="false" synchronized="false"
  12216. static="false" final="false" visibility="public"
  12217. deprecated="not deprecated">
  12218. <param name="position" type="long"/>
  12219. <param name="buffer" type="byte[]"/>
  12220. <param name="offset" type="int"/>
  12221. <param name="length" type="int"/>
  12222. <exception name="IOException" type="java.io.IOException"/>
  12223. <doc>
  12224. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  12225. Continues to read until <code>length</code> bytes have been read.
  12226. @param position position in the input stream to seek
  12227. @param buffer buffer into which data is read
  12228. @param offset offset into the buffer in which data is written
  12229. @param length the number of bytes to read
  12230. @throws IOException IO problems
  12231. @throws EOFException If the end of stream is reached while reading.
  12232. If an exception is thrown an undetermined number
  12233. of bytes in the buffer may have been written.]]>
  12234. </doc>
  12235. </method>
  12236. <method name="readFully"
  12237. abstract="false" native="false" synchronized="false"
  12238. static="false" final="false" visibility="public"
  12239. deprecated="not deprecated">
  12240. <param name="position" type="long"/>
  12241. <param name="buffer" type="byte[]"/>
  12242. <exception name="IOException" type="java.io.IOException"/>
  12243. <doc>
  12244. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  12245. </doc>
  12246. </method>
  12247. <method name="seekToNewSource" return="boolean"
  12248. abstract="false" native="false" synchronized="false"
  12249. static="false" final="false" visibility="public"
  12250. deprecated="not deprecated">
  12251. <param name="targetPos" type="long"/>
  12252. <exception name="IOException" type="java.io.IOException"/>
  12253. <doc>
  12254. <![CDATA[Seek to the given position on an alternate copy of the data.
  12255. @param targetPos position to seek to
  12256. @return true if a new source is found, false otherwise]]>
  12257. </doc>
  12258. </method>
  12259. <method name="read" return="int"
  12260. abstract="false" native="false" synchronized="false"
  12261. static="false" final="false" visibility="public"
  12262. deprecated="not deprecated">
  12263. <param name="buf" type="java.nio.ByteBuffer"/>
  12264. <exception name="IOException" type="java.io.IOException"/>
  12265. </method>
  12266. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  12267. abstract="false" native="false" synchronized="false"
  12268. static="false" final="false" visibility="public"
  12269. deprecated="not deprecated">
  12270. <exception name="IOException" type="java.io.IOException"/>
  12271. </method>
  12272. <method name="setReadahead"
  12273. abstract="false" native="false" synchronized="false"
  12274. static="false" final="false" visibility="public"
  12275. deprecated="not deprecated">
  12276. <param name="readahead" type="java.lang.Long"/>
  12277. <exception name="IOException" type="java.io.IOException"/>
  12278. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12279. </method>
  12280. <method name="setDropBehind"
  12281. abstract="false" native="false" synchronized="false"
  12282. static="false" final="false" visibility="public"
  12283. deprecated="not deprecated">
  12284. <param name="dropBehind" type="java.lang.Boolean"/>
  12285. <exception name="IOException" type="java.io.IOException"/>
  12286. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12287. </method>
  12288. <method name="read" return="java.nio.ByteBuffer"
  12289. abstract="false" native="false" synchronized="false"
  12290. static="false" final="false" visibility="public"
  12291. deprecated="not deprecated">
  12292. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12293. <param name="maxLength" type="int"/>
  12294. <param name="opts" type="java.util.EnumSet"/>
  12295. <exception name="IOException" type="java.io.IOException"/>
  12296. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12297. </method>
  12298. <method name="read" return="java.nio.ByteBuffer"
  12299. abstract="false" native="false" synchronized="false"
  12300. static="false" final="true" visibility="public"
  12301. deprecated="not deprecated">
  12302. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  12303. <param name="maxLength" type="int"/>
  12304. <exception name="IOException" type="java.io.IOException"/>
  12305. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  12306. </method>
  12307. <method name="releaseBuffer"
  12308. abstract="false" native="false" synchronized="false"
  12309. static="false" final="false" visibility="public"
  12310. deprecated="not deprecated">
  12311. <param name="buffer" type="java.nio.ByteBuffer"/>
  12312. </method>
  12313. <method name="unbuffer"
  12314. abstract="false" native="false" synchronized="false"
  12315. static="false" final="false" visibility="public"
  12316. deprecated="not deprecated">
  12317. </method>
  12318. <method name="hasCapability" return="boolean"
  12319. abstract="false" native="false" synchronized="false"
  12320. static="false" final="false" visibility="public"
  12321. deprecated="not deprecated">
  12322. <param name="capability" type="java.lang.String"/>
  12323. </method>
  12324. <method name="toString" return="java.lang.String"
  12325. abstract="false" native="false" synchronized="false"
  12326. static="false" final="false" visibility="public"
  12327. deprecated="not deprecated">
  12328. <doc>
  12329. <![CDATA[String value. Includes the string value of the inner stream
  12330. @return the stream]]>
  12331. </doc>
  12332. </method>
  12333. <method name="read" return="int"
  12334. abstract="false" native="false" synchronized="false"
  12335. static="false" final="false" visibility="public"
  12336. deprecated="not deprecated">
  12337. <param name="position" type="long"/>
  12338. <param name="buf" type="java.nio.ByteBuffer"/>
  12339. <exception name="IOException" type="java.io.IOException"/>
  12340. </method>
  12341. <doc>
  12342. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  12343. and buffers input through a {@link java.io.BufferedInputStream}.]]>
  12344. </doc>
  12345. </class>
  12346. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  12347. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  12348. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  12349. abstract="false"
  12350. static="false" final="false" visibility="public"
  12351. deprecated="not deprecated">
  12352. <implements name="org.apache.hadoop.fs.Syncable"/>
  12353. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  12354. <implements name="org.apache.hadoop.fs.StreamCapabilities"/>
  12355. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  12356. static="false" final="false" visibility="public"
  12357. deprecated="not deprecated">
  12358. <exception name="IOException" type="java.io.IOException"/>
  12359. </constructor>
  12360. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  12361. static="false" final="false" visibility="public"
  12362. deprecated="not deprecated">
  12363. <exception name="IOException" type="java.io.IOException"/>
  12364. </constructor>
  12365. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  12366. static="false" final="false" visibility="public"
  12367. deprecated="not deprecated">
  12368. <exception name="IOException" type="java.io.IOException"/>
  12369. </constructor>
  12370. <method name="getPos" return="long"
  12371. abstract="false" native="false" synchronized="false"
  12372. static="false" final="false" visibility="public"
  12373. deprecated="not deprecated">
  12374. <exception name="IOException" type="java.io.IOException"/>
  12375. <doc>
  12376. <![CDATA[Get the current position in the output stream.
  12377. @return the current position in the output stream]]>
  12378. </doc>
  12379. </method>
  12380. <method name="close"
  12381. abstract="false" native="false" synchronized="false"
  12382. static="false" final="false" visibility="public"
  12383. deprecated="not deprecated">
  12384. <exception name="IOException" type="java.io.IOException"/>
  12385. <doc>
  12386. <![CDATA[Close the underlying output stream.]]>
  12387. </doc>
  12388. </method>
  12389. <method name="hasCapability" return="boolean"
  12390. abstract="false" native="false" synchronized="false"
  12391. static="false" final="false" visibility="public"
  12392. deprecated="not deprecated">
  12393. <param name="capability" type="java.lang.String"/>
  12394. </method>
  12395. <method name="sync"
  12396. abstract="false" native="false" synchronized="false"
  12397. static="false" final="false" visibility="public"
  12398. deprecated="not deprecated">
  12399. <exception name="IOException" type="java.io.IOException"/>
  12400. </method>
  12401. <method name="hflush"
  12402. abstract="false" native="false" synchronized="false"
  12403. static="false" final="false" visibility="public"
  12404. deprecated="not deprecated">
  12405. <exception name="IOException" type="java.io.IOException"/>
  12406. </method>
  12407. <method name="hsync"
  12408. abstract="false" native="false" synchronized="false"
  12409. static="false" final="false" visibility="public"
  12410. deprecated="not deprecated">
  12411. <exception name="IOException" type="java.io.IOException"/>
  12412. </method>
  12413. <method name="setDropBehind"
  12414. abstract="false" native="false" synchronized="false"
  12415. static="false" final="false" visibility="public"
  12416. deprecated="not deprecated">
  12417. <param name="dropBehind" type="java.lang.Boolean"/>
  12418. <exception name="IOException" type="java.io.IOException"/>
  12419. </method>
  12420. <doc>
  12421. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  12422. </doc>
  12423. </class>
  12424. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  12425. <!-- start class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  12426. <class name="FSDataOutputStreamBuilder" extends="java.lang.Object"
  12427. abstract="true"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <constructor name="FSDataOutputStreamBuilder" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path"
  12431. static="false" final="false" visibility="protected"
  12432. deprecated="not deprecated">
  12433. <doc>
  12434. <![CDATA[Constructor.]]>
  12435. </doc>
  12436. </constructor>
  12437. <method name="getThisBuilder" return="B"
  12438. abstract="true" native="false" synchronized="false"
  12439. static="false" final="false" visibility="protected"
  12440. deprecated="not deprecated">
  12441. <doc>
  12442. <![CDATA[Return the concrete implementation of the builder instance.]]>
  12443. </doc>
  12444. </method>
  12445. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  12446. abstract="false" native="false" synchronized="false"
  12447. static="false" final="false" visibility="protected"
  12448. deprecated="not deprecated">
  12449. </method>
  12450. <method name="getPath" return="org.apache.hadoop.fs.Path"
  12451. abstract="false" native="false" synchronized="false"
  12452. static="false" final="false" visibility="protected"
  12453. deprecated="not deprecated">
  12454. </method>
  12455. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  12456. abstract="false" native="false" synchronized="false"
  12457. static="false" final="false" visibility="protected"
  12458. deprecated="not deprecated">
  12459. </method>
  12460. <method name="permission" return="B"
  12461. abstract="false" native="false" synchronized="false"
  12462. static="false" final="false" visibility="public"
  12463. deprecated="not deprecated">
  12464. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12465. <doc>
  12466. <![CDATA[Set permission for the file.]]>
  12467. </doc>
  12468. </method>
  12469. <method name="getBufferSize" return="int"
  12470. abstract="false" native="false" synchronized="false"
  12471. static="false" final="false" visibility="protected"
  12472. deprecated="not deprecated">
  12473. </method>
  12474. <method name="bufferSize" return="B"
  12475. abstract="false" native="false" synchronized="false"
  12476. static="false" final="false" visibility="public"
  12477. deprecated="not deprecated">
  12478. <param name="bufSize" type="int"/>
  12479. <doc>
  12480. <![CDATA[Set the size of the buffer to be used.]]>
  12481. </doc>
  12482. </method>
  12483. <method name="getReplication" return="short"
  12484. abstract="false" native="false" synchronized="false"
  12485. static="false" final="false" visibility="protected"
  12486. deprecated="not deprecated">
  12487. </method>
  12488. <method name="replication" return="B"
  12489. abstract="false" native="false" synchronized="false"
  12490. static="false" final="false" visibility="public"
  12491. deprecated="not deprecated">
  12492. <param name="replica" type="short"/>
  12493. <doc>
  12494. <![CDATA[Set replication factor.]]>
  12495. </doc>
  12496. </method>
  12497. <method name="getBlockSize" return="long"
  12498. abstract="false" native="false" synchronized="false"
  12499. static="false" final="false" visibility="protected"
  12500. deprecated="not deprecated">
  12501. </method>
  12502. <method name="blockSize" return="B"
  12503. abstract="false" native="false" synchronized="false"
  12504. static="false" final="false" visibility="public"
  12505. deprecated="not deprecated">
  12506. <param name="blkSize" type="long"/>
  12507. <doc>
  12508. <![CDATA[Set block size.]]>
  12509. </doc>
  12510. </method>
  12511. <method name="isRecursive" return="boolean"
  12512. abstract="false" native="false" synchronized="false"
  12513. static="false" final="false" visibility="protected"
  12514. deprecated="not deprecated">
  12515. <doc>
  12516. <![CDATA[Return true to create the parent directories if they do not exist.]]>
  12517. </doc>
  12518. </method>
  12519. <method name="recursive" return="B"
  12520. abstract="false" native="false" synchronized="false"
  12521. static="false" final="false" visibility="public"
  12522. deprecated="not deprecated">
  12523. <doc>
  12524. <![CDATA[Create the parent directory if they do not exist.]]>
  12525. </doc>
  12526. </method>
  12527. <method name="getProgress" return="org.apache.hadoop.util.Progressable"
  12528. abstract="false" native="false" synchronized="false"
  12529. static="false" final="false" visibility="protected"
  12530. deprecated="not deprecated">
  12531. </method>
  12532. <method name="progress" return="B"
  12533. abstract="false" native="false" synchronized="false"
  12534. static="false" final="false" visibility="public"
  12535. deprecated="not deprecated">
  12536. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12537. <doc>
  12538. <![CDATA[Set the facility of reporting progress.]]>
  12539. </doc>
  12540. </method>
  12541. <method name="getFlags" return="java.util.EnumSet"
  12542. abstract="false" native="false" synchronized="false"
  12543. static="false" final="false" visibility="protected"
  12544. deprecated="not deprecated">
  12545. </method>
  12546. <method name="create" return="B"
  12547. abstract="false" native="false" synchronized="false"
  12548. static="false" final="false" visibility="public"
  12549. deprecated="not deprecated">
  12550. <doc>
  12551. <![CDATA[Create an FSDataOutputStream at the specified path.]]>
  12552. </doc>
  12553. </method>
  12554. <method name="overwrite" return="B"
  12555. abstract="false" native="false" synchronized="false"
  12556. static="false" final="false" visibility="public"
  12557. deprecated="not deprecated">
  12558. <param name="overwrite" type="boolean"/>
  12559. <doc>
  12560. <![CDATA[Set to true to overwrite the existing file.
  12561. Set it to false, an exception will be thrown when calling {@link #build()}
  12562. if the file exists.]]>
  12563. </doc>
  12564. </method>
  12565. <method name="append" return="B"
  12566. abstract="false" native="false" synchronized="false"
  12567. static="false" final="false" visibility="public"
  12568. deprecated="not deprecated">
  12569. <doc>
  12570. <![CDATA[Append to an existing file (optional operation).]]>
  12571. </doc>
  12572. </method>
  12573. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="protected"
  12576. deprecated="not deprecated">
  12577. </method>
  12578. <method name="checksumOpt" return="B"
  12579. abstract="false" native="false" synchronized="false"
  12580. static="false" final="false" visibility="public"
  12581. deprecated="not deprecated">
  12582. <param name="chksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  12583. <doc>
  12584. <![CDATA[Set checksum opt.]]>
  12585. </doc>
  12586. </method>
  12587. <method name="build" return="S"
  12588. abstract="true" native="false" synchronized="false"
  12589. static="false" final="false" visibility="public"
  12590. deprecated="not deprecated">
  12591. <exception name="IOException" type="java.io.IOException"/>
  12592. <doc>
  12593. <![CDATA[Create the FSDataOutputStream to write on the file system.
  12594. @throws HadoopIllegalArgumentException if the parameters are not valid.
  12595. @throws IOException on errors when file system creates or appends the file.]]>
  12596. </doc>
  12597. </method>
  12598. <doc>
  12599. <![CDATA[Builder for {@link FSDataOutputStream} and its subclasses.
  12600. It is used to create {@link FSDataOutputStream} when creating a new file or
  12601. appending an existing file on {@link FileSystem}.
  12602. By default, it does not create parent directory that do not exist.
  12603. {@link FileSystem#createNonRecursive(Path, boolean, int, short, long,
  12604. Progressable)}.
  12605. To create missing parent directory, use {@link #recursive()}.]]>
  12606. </doc>
  12607. </class>
  12608. <!-- end class org.apache.hadoop.fs.FSDataOutputStreamBuilder -->
  12609. <!-- start class org.apache.hadoop.fs.FSError -->
  12610. <class name="FSError" extends="java.lang.Error"
  12611. abstract="false"
  12612. static="false" final="false" visibility="public"
  12613. deprecated="not deprecated">
  12614. <doc>
  12615. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  12616. in the native filesystem.]]>
  12617. </doc>
  12618. </class>
  12619. <!-- end class org.apache.hadoop.fs.FSError -->
  12620. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  12621. <class name="FSInputStream" extends="java.io.InputStream"
  12622. abstract="true"
  12623. static="false" final="false" visibility="public"
  12624. deprecated="not deprecated">
  12625. <implements name="org.apache.hadoop.fs.Seekable"/>
  12626. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  12627. <constructor name="FSInputStream"
  12628. static="false" final="false" visibility="public"
  12629. deprecated="not deprecated">
  12630. </constructor>
  12631. <method name="seek"
  12632. abstract="true" native="false" synchronized="false"
  12633. static="false" final="false" visibility="public"
  12634. deprecated="not deprecated">
  12635. <param name="pos" type="long"/>
  12636. <exception name="IOException" type="java.io.IOException"/>
  12637. <doc>
  12638. <![CDATA[Seek to the given offset from the start of the file.
  12639. The next read() will be from that location. Can't
  12640. seek past the end of the file.]]>
  12641. </doc>
  12642. </method>
  12643. <method name="getPos" return="long"
  12644. abstract="true" native="false" synchronized="false"
  12645. static="false" final="false" visibility="public"
  12646. deprecated="not deprecated">
  12647. <exception name="IOException" type="java.io.IOException"/>
  12648. <doc>
  12649. <![CDATA[Return the current offset from the start of the file]]>
  12650. </doc>
  12651. </method>
  12652. <method name="seekToNewSource" return="boolean"
  12653. abstract="true" native="false" synchronized="false"
  12654. static="false" final="false" visibility="public"
  12655. deprecated="not deprecated">
  12656. <param name="targetPos" type="long"/>
  12657. <exception name="IOException" type="java.io.IOException"/>
  12658. <doc>
  12659. <![CDATA[Seeks a different copy of the data. Returns true if
  12660. found a new source, false otherwise.]]>
  12661. </doc>
  12662. </method>
  12663. <method name="read" return="int"
  12664. abstract="false" native="false" synchronized="false"
  12665. static="false" final="false" visibility="public"
  12666. deprecated="not deprecated">
  12667. <param name="position" type="long"/>
  12668. <param name="buffer" type="byte[]"/>
  12669. <param name="offset" type="int"/>
  12670. <param name="length" type="int"/>
  12671. <exception name="IOException" type="java.io.IOException"/>
  12672. </method>
  12673. <method name="validatePositionedReadArgs"
  12674. abstract="false" native="false" synchronized="false"
  12675. static="false" final="false" visibility="protected"
  12676. deprecated="not deprecated">
  12677. <param name="position" type="long"/>
  12678. <param name="buffer" type="byte[]"/>
  12679. <param name="offset" type="int"/>
  12680. <param name="length" type="int"/>
  12681. <exception name="EOFException" type="java.io.EOFException"/>
  12682. <doc>
  12683. <![CDATA[Validation code, available for use in subclasses.
  12684. @param position position: if negative an EOF exception is raised
  12685. @param buffer destination buffer
  12686. @param offset offset within the buffer
  12687. @param length length of bytes to read
  12688. @throws EOFException if the position is negative
  12689. @throws IndexOutOfBoundsException if there isn't space for the amount of
  12690. data requested.
  12691. @throws IllegalArgumentException other arguments are invalid.]]>
  12692. </doc>
  12693. </method>
  12694. <method name="readFully"
  12695. abstract="false" native="false" synchronized="false"
  12696. static="false" final="false" visibility="public"
  12697. deprecated="not deprecated">
  12698. <param name="position" type="long"/>
  12699. <param name="buffer" type="byte[]"/>
  12700. <param name="offset" type="int"/>
  12701. <param name="length" type="int"/>
  12702. <exception name="IOException" type="java.io.IOException"/>
  12703. </method>
  12704. <method name="readFully"
  12705. abstract="false" native="false" synchronized="false"
  12706. static="false" final="false" visibility="public"
  12707. deprecated="not deprecated">
  12708. <param name="position" type="long"/>
  12709. <param name="buffer" type="byte[]"/>
  12710. <exception name="IOException" type="java.io.IOException"/>
  12711. </method>
  12712. <doc>
  12713. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  12714. of RAF-style seek ability.]]>
  12715. </doc>
  12716. </class>
  12717. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  12718. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  12719. <class name="FsServerDefaults" extends="java.lang.Object"
  12720. abstract="false"
  12721. static="false" final="false" visibility="public"
  12722. deprecated="not deprecated">
  12723. <implements name="org.apache.hadoop.io.Writable"/>
  12724. <constructor name="FsServerDefaults"
  12725. static="false" final="false" visibility="public"
  12726. deprecated="not deprecated">
  12727. </constructor>
  12728. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  12729. static="false" final="false" visibility="public"
  12730. deprecated="not deprecated">
  12731. </constructor>
  12732. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String"
  12733. static="false" final="false" visibility="public"
  12734. deprecated="not deprecated">
  12735. </constructor>
  12736. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type, java.lang.String, byte"
  12737. static="false" final="false" visibility="public"
  12738. deprecated="not deprecated">
  12739. </constructor>
  12740. <method name="getBlockSize" return="long"
  12741. abstract="false" native="false" synchronized="false"
  12742. static="false" final="false" visibility="public"
  12743. deprecated="not deprecated">
  12744. </method>
  12745. <method name="getBytesPerChecksum" return="int"
  12746. abstract="false" native="false" synchronized="false"
  12747. static="false" final="false" visibility="public"
  12748. deprecated="not deprecated">
  12749. </method>
  12750. <method name="getWritePacketSize" return="int"
  12751. abstract="false" native="false" synchronized="false"
  12752. static="false" final="false" visibility="public"
  12753. deprecated="not deprecated">
  12754. </method>
  12755. <method name="getReplication" return="short"
  12756. abstract="false" native="false" synchronized="false"
  12757. static="false" final="false" visibility="public"
  12758. deprecated="not deprecated">
  12759. </method>
  12760. <method name="getFileBufferSize" return="int"
  12761. abstract="false" native="false" synchronized="false"
  12762. static="false" final="false" visibility="public"
  12763. deprecated="not deprecated">
  12764. </method>
  12765. <method name="getEncryptDataTransfer" return="boolean"
  12766. abstract="false" native="false" synchronized="false"
  12767. static="false" final="false" visibility="public"
  12768. deprecated="not deprecated">
  12769. </method>
  12770. <method name="getTrashInterval" return="long"
  12771. abstract="false" native="false" synchronized="false"
  12772. static="false" final="false" visibility="public"
  12773. deprecated="not deprecated">
  12774. </method>
  12775. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  12776. abstract="false" native="false" synchronized="false"
  12777. static="false" final="false" visibility="public"
  12778. deprecated="not deprecated">
  12779. </method>
  12780. <method name="getKeyProviderUri" return="java.lang.String"
  12781. abstract="false" native="false" synchronized="false"
  12782. static="false" final="false" visibility="public"
  12783. deprecated="not deprecated">
  12784. </method>
  12785. <method name="getDefaultStoragePolicyId" return="byte"
  12786. abstract="false" native="false" synchronized="false"
  12787. static="false" final="false" visibility="public"
  12788. deprecated="not deprecated">
  12789. </method>
  12790. <doc>
  12791. <![CDATA[Provides server default configuration values to clients.]]>
  12792. </doc>
  12793. </class>
  12794. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  12795. <!-- start class org.apache.hadoop.fs.FsStatus -->
  12796. <class name="FsStatus" extends="java.lang.Object"
  12797. abstract="false"
  12798. static="false" final="false" visibility="public"
  12799. deprecated="not deprecated">
  12800. <implements name="org.apache.hadoop.io.Writable"/>
  12801. <constructor name="FsStatus" type="long, long, long"
  12802. static="false" final="false" visibility="public"
  12803. deprecated="not deprecated">
  12804. <doc>
  12805. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  12806. </doc>
  12807. </constructor>
  12808. <method name="getCapacity" return="long"
  12809. abstract="false" native="false" synchronized="false"
  12810. static="false" final="false" visibility="public"
  12811. deprecated="not deprecated">
  12812. <doc>
  12813. <![CDATA[Return the capacity in bytes of the file system]]>
  12814. </doc>
  12815. </method>
  12816. <method name="getUsed" return="long"
  12817. abstract="false" native="false" synchronized="false"
  12818. static="false" final="false" visibility="public"
  12819. deprecated="not deprecated">
  12820. <doc>
  12821. <![CDATA[Return the number of bytes used on the file system]]>
  12822. </doc>
  12823. </method>
  12824. <method name="getRemaining" return="long"
  12825. abstract="false" native="false" synchronized="false"
  12826. static="false" final="false" visibility="public"
  12827. deprecated="not deprecated">
  12828. <doc>
  12829. <![CDATA[Return the number of remaining bytes on the file system]]>
  12830. </doc>
  12831. </method>
  12832. <method name="write"
  12833. abstract="false" native="false" synchronized="false"
  12834. static="false" final="false" visibility="public"
  12835. deprecated="not deprecated">
  12836. <param name="out" type="java.io.DataOutput"/>
  12837. <exception name="IOException" type="java.io.IOException"/>
  12838. </method>
  12839. <method name="readFields"
  12840. abstract="false" native="false" synchronized="false"
  12841. static="false" final="false" visibility="public"
  12842. deprecated="not deprecated">
  12843. <param name="in" type="java.io.DataInput"/>
  12844. <exception name="IOException" type="java.io.IOException"/>
  12845. </method>
  12846. <doc>
  12847. <![CDATA[This class is used to represent the capacity, free and used space on a
  12848. {@link FileSystem}.]]>
  12849. </doc>
  12850. </class>
  12851. <!-- end class org.apache.hadoop.fs.FsStatus -->
  12852. <!-- start class org.apache.hadoop.fs.GlobalStorageStatistics -->
  12853. <class name="GlobalStorageStatistics" extends="java.lang.Enum"
  12854. abstract="false"
  12855. static="false" final="true" visibility="public"
  12856. deprecated="not deprecated">
  12857. <method name="values" return="org.apache.hadoop.fs.GlobalStorageStatistics[]"
  12858. abstract="false" native="false" synchronized="false"
  12859. static="true" final="false" visibility="public"
  12860. deprecated="not deprecated">
  12861. </method>
  12862. <method name="valueOf" return="org.apache.hadoop.fs.GlobalStorageStatistics"
  12863. abstract="false" native="false" synchronized="false"
  12864. static="true" final="false" visibility="public"
  12865. deprecated="not deprecated">
  12866. <param name="name" type="java.lang.String"/>
  12867. </method>
  12868. <method name="get" return="org.apache.hadoop.fs.StorageStatistics"
  12869. abstract="false" native="false" synchronized="true"
  12870. static="false" final="false" visibility="public"
  12871. deprecated="not deprecated">
  12872. <param name="name" type="java.lang.String"/>
  12873. <doc>
  12874. <![CDATA[Get the StorageStatistics object with the given name.
  12875. @param name The storage statistics object name.
  12876. @return The StorageStatistics object with the given name, or
  12877. null if there is none.]]>
  12878. </doc>
  12879. </method>
  12880. <method name="put" return="org.apache.hadoop.fs.StorageStatistics"
  12881. abstract="false" native="false" synchronized="true"
  12882. static="false" final="false" visibility="public"
  12883. deprecated="not deprecated">
  12884. <param name="name" type="java.lang.String"/>
  12885. <param name="provider" type="org.apache.hadoop.fs.GlobalStorageStatistics.StorageStatisticsProvider"/>
  12886. <doc>
  12887. <![CDATA[Create or return the StorageStatistics object with the given name.
  12888. @param name The storage statistics object name.
  12889. @param provider An object which can create a new StorageStatistics
  12890. object if needed.
  12891. @return The StorageStatistics object with the given name.
  12892. @throws RuntimeException If the StorageStatisticsProvider provides a null
  12893. object or a new StorageStatistics object with the
  12894. wrong name.]]>
  12895. </doc>
  12896. </method>
  12897. <method name="reset"
  12898. abstract="false" native="false" synchronized="true"
  12899. static="false" final="false" visibility="public"
  12900. deprecated="not deprecated">
  12901. <doc>
  12902. <![CDATA[Reset all global storage statistics.]]>
  12903. </doc>
  12904. </method>
  12905. <method name="iterator" return="java.util.Iterator"
  12906. abstract="false" native="false" synchronized="true"
  12907. static="false" final="false" visibility="public"
  12908. deprecated="not deprecated">
  12909. <doc>
  12910. <![CDATA[Get an iterator that we can use to iterate throw all the global storage
  12911. statistics objects.]]>
  12912. </doc>
  12913. </method>
  12914. <doc>
  12915. <![CDATA[Stores global storage statistics objects.]]>
  12916. </doc>
  12917. </class>
  12918. <!-- end class org.apache.hadoop.fs.GlobalStorageStatistics -->
  12919. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  12920. <class name="GlobFilter" extends="java.lang.Object"
  12921. abstract="false"
  12922. static="false" final="false" visibility="public"
  12923. deprecated="not deprecated">
  12924. <implements name="org.apache.hadoop.fs.PathFilter"/>
  12925. <constructor name="GlobFilter" type="java.lang.String"
  12926. static="false" final="false" visibility="public"
  12927. deprecated="not deprecated">
  12928. <exception name="IOException" type="java.io.IOException"/>
  12929. <doc>
  12930. <![CDATA[Creates a glob filter with the specified file pattern.
  12931. @param filePattern the file pattern.
  12932. @throws IOException thrown if the file pattern is incorrect.]]>
  12933. </doc>
  12934. </constructor>
  12935. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  12936. static="false" final="false" visibility="public"
  12937. deprecated="not deprecated">
  12938. <exception name="IOException" type="java.io.IOException"/>
  12939. <doc>
  12940. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  12941. @param filePattern the file pattern.
  12942. @param filter user filter in addition to the glob pattern.
  12943. @throws IOException thrown if the file pattern is incorrect.]]>
  12944. </doc>
  12945. </constructor>
  12946. <method name="hasPattern" return="boolean"
  12947. abstract="false" native="false" synchronized="false"
  12948. static="false" final="false" visibility="public"
  12949. deprecated="not deprecated">
  12950. </method>
  12951. <method name="accept" return="boolean"
  12952. abstract="false" native="false" synchronized="false"
  12953. static="false" final="false" visibility="public"
  12954. deprecated="not deprecated">
  12955. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12956. </method>
  12957. <doc>
  12958. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  12959. </doc>
  12960. </class>
  12961. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  12962. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  12963. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  12964. abstract="false"
  12965. static="false" final="false" visibility="public"
  12966. deprecated="not deprecated">
  12967. <constructor name="InvalidPathException" type="java.lang.String"
  12968. static="false" final="false" visibility="public"
  12969. deprecated="not deprecated">
  12970. <doc>
  12971. <![CDATA[Constructs exception with the specified detail message.
  12972. @param path invalid path.]]>
  12973. </doc>
  12974. </constructor>
  12975. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  12976. static="false" final="false" visibility="public"
  12977. deprecated="not deprecated">
  12978. <doc>
  12979. <![CDATA[Constructs exception with the specified detail message.
  12980. @param path invalid path.
  12981. @param reason Reason <code>path</code> is invalid]]>
  12982. </doc>
  12983. </constructor>
  12984. <doc>
  12985. <![CDATA[Path string is invalid either because it has invalid characters or due to
  12986. other file system specific reasons.]]>
  12987. </doc>
  12988. </class>
  12989. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  12990. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  12991. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  12992. abstract="false"
  12993. static="false" final="false" visibility="public"
  12994. deprecated="not deprecated">
  12995. <constructor name="LocalFileSystem"
  12996. static="false" final="false" visibility="public"
  12997. deprecated="not deprecated">
  12998. </constructor>
  12999. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  13000. static="false" final="false" visibility="public"
  13001. deprecated="not deprecated">
  13002. </constructor>
  13003. <method name="initialize"
  13004. abstract="false" native="false" synchronized="false"
  13005. static="false" final="false" visibility="public"
  13006. deprecated="not deprecated">
  13007. <param name="name" type="java.net.URI"/>
  13008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13009. <exception name="IOException" type="java.io.IOException"/>
  13010. </method>
  13011. <method name="getScheme" return="java.lang.String"
  13012. abstract="false" native="false" synchronized="false"
  13013. static="false" final="false" visibility="public"
  13014. deprecated="not deprecated">
  13015. <doc>
  13016. <![CDATA[Return the protocol scheme for the FileSystem.
  13017. <p/>
  13018. @return <code>file</code>]]>
  13019. </doc>
  13020. </method>
  13021. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  13022. abstract="false" native="false" synchronized="false"
  13023. static="false" final="false" visibility="public"
  13024. deprecated="not deprecated">
  13025. </method>
  13026. <method name="pathToFile" return="java.io.File"
  13027. abstract="false" native="false" synchronized="false"
  13028. static="false" final="false" visibility="public"
  13029. deprecated="not deprecated">
  13030. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13031. <doc>
  13032. <![CDATA[Convert a path to a File.]]>
  13033. </doc>
  13034. </method>
  13035. <method name="copyFromLocalFile"
  13036. abstract="false" native="false" synchronized="false"
  13037. static="false" final="false" visibility="public"
  13038. deprecated="not deprecated">
  13039. <param name="delSrc" type="boolean"/>
  13040. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13041. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13042. <exception name="IOException" type="java.io.IOException"/>
  13043. </method>
  13044. <method name="copyToLocalFile"
  13045. abstract="false" native="false" synchronized="false"
  13046. static="false" final="false" visibility="public"
  13047. deprecated="not deprecated">
  13048. <param name="delSrc" type="boolean"/>
  13049. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13050. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13051. <exception name="IOException" type="java.io.IOException"/>
  13052. </method>
  13053. <method name="reportChecksumFailure" return="boolean"
  13054. abstract="false" native="false" synchronized="false"
  13055. static="false" final="false" visibility="public"
  13056. deprecated="not deprecated">
  13057. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13058. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13059. <param name="inPos" type="long"/>
  13060. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13061. <param name="sumsPos" type="long"/>
  13062. <doc>
  13063. <![CDATA[Moves files to a bad file directory on the same device, so that their
  13064. storage will not be reused.]]>
  13065. </doc>
  13066. </method>
  13067. <method name="supportsSymlinks" return="boolean"
  13068. abstract="false" native="false" synchronized="false"
  13069. static="false" final="false" visibility="public"
  13070. deprecated="not deprecated">
  13071. </method>
  13072. <method name="createSymlink"
  13073. abstract="false" native="false" synchronized="false"
  13074. static="false" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13077. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13078. <param name="createParent" type="boolean"/>
  13079. <exception name="IOException" type="java.io.IOException"/>
  13080. </method>
  13081. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13082. abstract="false" native="false" synchronized="false"
  13083. static="false" final="false" visibility="public"
  13084. deprecated="not deprecated">
  13085. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13086. <exception name="IOException" type="java.io.IOException"/>
  13087. </method>
  13088. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13089. abstract="false" native="false" synchronized="false"
  13090. static="false" final="false" visibility="public"
  13091. deprecated="not deprecated">
  13092. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13093. <exception name="IOException" type="java.io.IOException"/>
  13094. </method>
  13095. <doc>
  13096. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  13097. </doc>
  13098. </class>
  13099. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  13100. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  13101. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  13102. abstract="false"
  13103. static="false" final="false" visibility="public"
  13104. deprecated="not deprecated">
  13105. <constructor name="LocatedFileStatus"
  13106. static="false" final="false" visibility="public"
  13107. deprecated="not deprecated">
  13108. </constructor>
  13109. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  13110. static="false" final="false" visibility="public"
  13111. deprecated="not deprecated">
  13112. <exception name="IOException" type="java.io.IOException"/>
  13113. <doc>
  13114. <![CDATA[Constructor
  13115. @param stat a file status
  13116. @param locations a file's block locations]]>
  13117. </doc>
  13118. </constructor>
  13119. <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[]"
  13120. static="false" final="false" visibility="public"
  13121. deprecated="not deprecated">
  13122. <doc>
  13123. <![CDATA[Constructor
  13124. @param length a file's length
  13125. @param isdir if the path is a directory
  13126. @param block_replication the file's replication factor
  13127. @param blocksize a file's block size
  13128. @param modification_time a file's modification time
  13129. @param access_time a file's access time
  13130. @param permission a file's permission
  13131. @param owner a file's owner
  13132. @param group a file's group
  13133. @param symlink symlink if the path is a symbolic link
  13134. @param path the path's qualified name
  13135. @param locations a file's block locations]]>
  13136. </doc>
  13137. </constructor>
  13138. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13139. abstract="false" native="false" synchronized="false"
  13140. static="false" final="false" visibility="public"
  13141. deprecated="not deprecated">
  13142. <doc>
  13143. <![CDATA[Get the file's block locations
  13144. @return the file's block locations]]>
  13145. </doc>
  13146. </method>
  13147. <method name="compareTo" return="int"
  13148. abstract="false" native="false" synchronized="false"
  13149. static="false" final="false" visibility="public"
  13150. deprecated="not deprecated">
  13151. <param name="o" type="org.apache.hadoop.fs.FileStatus"/>
  13152. <doc>
  13153. <![CDATA[Compare this FileStatus to another FileStatus
  13154. @param o the FileStatus to be compared.
  13155. @return a negative integer, zero, or a positive integer as this object
  13156. is less than, equal to, or greater than the specified object.]]>
  13157. </doc>
  13158. </method>
  13159. <method name="equals" return="boolean"
  13160. abstract="false" native="false" synchronized="false"
  13161. static="false" final="false" visibility="public"
  13162. deprecated="not deprecated">
  13163. <param name="o" type="java.lang.Object"/>
  13164. <doc>
  13165. <![CDATA[Compare if this object is equal to another object
  13166. @param o the object to be compared.
  13167. @return true if two file status has the same path name; false if not.]]>
  13168. </doc>
  13169. </method>
  13170. <method name="hashCode" return="int"
  13171. abstract="false" native="false" synchronized="false"
  13172. static="false" final="false" visibility="public"
  13173. deprecated="not deprecated">
  13174. <doc>
  13175. <![CDATA[Returns a hash code value for the object, which is defined as
  13176. the hash code of the path name.
  13177. @return a hash code value for the path name.]]>
  13178. </doc>
  13179. </method>
  13180. <doc>
  13181. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  13182. </doc>
  13183. </class>
  13184. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  13185. <!-- start class org.apache.hadoop.fs.Options -->
  13186. <class name="Options" extends="java.lang.Object"
  13187. abstract="false"
  13188. static="false" final="true" visibility="public"
  13189. deprecated="not deprecated">
  13190. <constructor name="Options"
  13191. static="false" final="false" visibility="public"
  13192. deprecated="not deprecated">
  13193. </constructor>
  13194. <doc>
  13195. <![CDATA[This class contains options related to file system operations.]]>
  13196. </doc>
  13197. </class>
  13198. <!-- end class org.apache.hadoop.fs.Options -->
  13199. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  13200. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  13201. abstract="false"
  13202. static="false" final="false" visibility="public"
  13203. deprecated="not deprecated">
  13204. <constructor name="ParentNotDirectoryException"
  13205. static="false" final="false" visibility="public"
  13206. deprecated="not deprecated">
  13207. </constructor>
  13208. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  13209. static="false" final="false" visibility="public"
  13210. deprecated="not deprecated">
  13211. </constructor>
  13212. <doc>
  13213. <![CDATA[Indicates that the parent of specified Path is not a directory
  13214. as expected.]]>
  13215. </doc>
  13216. </class>
  13217. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  13218. <!-- start class org.apache.hadoop.fs.Path -->
  13219. <class name="Path" extends="java.lang.Object"
  13220. abstract="false"
  13221. static="false" final="false" visibility="public"
  13222. deprecated="not deprecated">
  13223. <implements name="java.lang.Comparable"/>
  13224. <constructor name="Path" type="java.lang.String, java.lang.String"
  13225. static="false" final="false" visibility="public"
  13226. deprecated="not deprecated">
  13227. <doc>
  13228. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13229. @param parent the parent path
  13230. @param child the child path]]>
  13231. </doc>
  13232. </constructor>
  13233. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  13234. static="false" final="false" visibility="public"
  13235. deprecated="not deprecated">
  13236. <doc>
  13237. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13238. @param parent the parent path
  13239. @param child the child path]]>
  13240. </doc>
  13241. </constructor>
  13242. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  13243. static="false" final="false" visibility="public"
  13244. deprecated="not deprecated">
  13245. <doc>
  13246. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13247. @param parent the parent path
  13248. @param child the child path]]>
  13249. </doc>
  13250. </constructor>
  13251. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  13252. static="false" final="false" visibility="public"
  13253. deprecated="not deprecated">
  13254. <doc>
  13255. <![CDATA[Create a new Path based on the child path resolved against the parent path.
  13256. @param parent the parent path
  13257. @param child the child path]]>
  13258. </doc>
  13259. </constructor>
  13260. <constructor name="Path" type="java.lang.String"
  13261. static="false" final="false" visibility="public"
  13262. deprecated="not deprecated">
  13263. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13264. <doc>
  13265. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  13266. unescaped elements and some additional normalization.
  13267. @param pathString the path string]]>
  13268. </doc>
  13269. </constructor>
  13270. <constructor name="Path" type="java.net.URI"
  13271. static="false" final="false" visibility="public"
  13272. deprecated="not deprecated">
  13273. <doc>
  13274. <![CDATA[Construct a path from a URI
  13275. @param aUri the source URI]]>
  13276. </doc>
  13277. </constructor>
  13278. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  13279. static="false" final="false" visibility="public"
  13280. deprecated="not deprecated">
  13281. <doc>
  13282. <![CDATA[Construct a Path from components.
  13283. @param scheme the scheme
  13284. @param authority the authority
  13285. @param path the path]]>
  13286. </doc>
  13287. </constructor>
  13288. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  13289. abstract="false" native="false" synchronized="false"
  13290. static="true" final="false" visibility="public"
  13291. deprecated="not deprecated">
  13292. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13293. <doc>
  13294. <![CDATA[Return a version of the given Path without the scheme information.
  13295. @param path the source Path
  13296. @return a copy of this Path without the scheme information]]>
  13297. </doc>
  13298. </method>
  13299. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  13300. abstract="false" native="false" synchronized="false"
  13301. static="true" final="false" visibility="public"
  13302. deprecated="not deprecated">
  13303. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  13304. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  13305. <doc>
  13306. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  13307. The returned path has the scheme and authority of the first path. On
  13308. Windows, the drive specification in the second path is discarded.
  13309. @param path1 the first path
  13310. @param path2 the second path, to be appended relative to path1
  13311. @return the merged path]]>
  13312. </doc>
  13313. </method>
  13314. <method name="isWindowsAbsolutePath" return="boolean"
  13315. abstract="false" native="false" synchronized="false"
  13316. static="true" final="false" visibility="public"
  13317. deprecated="not deprecated">
  13318. <param name="pathString" type="java.lang.String"/>
  13319. <param name="slashed" type="boolean"/>
  13320. <doc>
  13321. <![CDATA[Determine whether a given path string represents an absolute path on
  13322. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  13323. @param pathString the path string to evaluate
  13324. @param slashed true if the given path is prefixed with "/"
  13325. @return true if the supplied path looks like an absolute path with a Windows
  13326. drive-specifier]]>
  13327. </doc>
  13328. </method>
  13329. <method name="toUri" return="java.net.URI"
  13330. abstract="false" native="false" synchronized="false"
  13331. static="false" final="false" visibility="public"
  13332. deprecated="not deprecated">
  13333. <doc>
  13334. <![CDATA[Convert this Path to a URI.
  13335. @return this Path as a URI]]>
  13336. </doc>
  13337. </method>
  13338. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  13339. abstract="false" native="false" synchronized="false"
  13340. static="false" final="false" visibility="public"
  13341. deprecated="not deprecated">
  13342. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13343. <exception name="IOException" type="java.io.IOException"/>
  13344. <doc>
  13345. <![CDATA[Return the FileSystem that owns this Path.
  13346. @param conf the configuration to use when resolving the FileSystem
  13347. @return the FileSystem that owns this Path
  13348. @throws java.io.IOException thrown if there's an issue resolving the
  13349. FileSystem]]>
  13350. </doc>
  13351. </method>
  13352. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  13353. abstract="false" native="false" synchronized="false"
  13354. static="false" final="false" visibility="public"
  13355. deprecated="not deprecated">
  13356. <doc>
  13357. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13358. absolute <strong>and</strong> the scheme is null, <b>and</b> the authority
  13359. is null.
  13360. @return whether the path is absolute and the URI has no scheme nor
  13361. authority parts]]>
  13362. </doc>
  13363. </method>
  13364. <method name="isUriPathAbsolute" return="boolean"
  13365. abstract="false" native="false" synchronized="false"
  13366. static="false" final="false" visibility="public"
  13367. deprecated="not deprecated">
  13368. <doc>
  13369. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13370. absolute.
  13371. @return whether this URI's path is absolute]]>
  13372. </doc>
  13373. </method>
  13374. <method name="isAbsolute" return="boolean"
  13375. abstract="false" native="false" synchronized="false"
  13376. static="false" final="false" visibility="public"
  13377. deprecated="not deprecated">
  13378. <doc>
  13379. <![CDATA[Returns true if the path component (i.e. directory) of this URI is
  13380. absolute. This method is a wrapper for {@link #isUriPathAbsolute()}.
  13381. @return whether this URI's path is absolute]]>
  13382. </doc>
  13383. </method>
  13384. <method name="isRoot" return="boolean"
  13385. abstract="false" native="false" synchronized="false"
  13386. static="false" final="false" visibility="public"
  13387. deprecated="not deprecated">
  13388. <doc>
  13389. <![CDATA[Returns true if and only if this path represents the root of a file system.
  13390. @return true if and only if this path represents the root of a file system]]>
  13391. </doc>
  13392. </method>
  13393. <method name="getName" return="java.lang.String"
  13394. abstract="false" native="false" synchronized="false"
  13395. static="false" final="false" visibility="public"
  13396. deprecated="not deprecated">
  13397. <doc>
  13398. <![CDATA[Returns the final component of this path.
  13399. @return the final component of this path]]>
  13400. </doc>
  13401. </method>
  13402. <method name="getParent" return="org.apache.hadoop.fs.Path"
  13403. abstract="false" native="false" synchronized="false"
  13404. static="false" final="false" visibility="public"
  13405. deprecated="not deprecated">
  13406. <doc>
  13407. <![CDATA[Returns the parent of a path or null if at root.
  13408. @return the parent of a path or null if at root]]>
  13409. </doc>
  13410. </method>
  13411. <method name="suffix" return="org.apache.hadoop.fs.Path"
  13412. abstract="false" native="false" synchronized="false"
  13413. static="false" final="false" visibility="public"
  13414. deprecated="not deprecated">
  13415. <param name="suffix" type="java.lang.String"/>
  13416. <doc>
  13417. <![CDATA[Adds a suffix to the final name in the path.
  13418. @param suffix the suffix to add
  13419. @return a new path with the suffix added]]>
  13420. </doc>
  13421. </method>
  13422. <method name="toString" return="java.lang.String"
  13423. abstract="false" native="false" synchronized="false"
  13424. static="false" final="false" visibility="public"
  13425. deprecated="not deprecated">
  13426. </method>
  13427. <method name="equals" return="boolean"
  13428. abstract="false" native="false" synchronized="false"
  13429. static="false" final="false" visibility="public"
  13430. deprecated="not deprecated">
  13431. <param name="o" type="java.lang.Object"/>
  13432. </method>
  13433. <method name="hashCode" return="int"
  13434. abstract="false" native="false" synchronized="false"
  13435. static="false" final="false" visibility="public"
  13436. deprecated="not deprecated">
  13437. </method>
  13438. <method name="compareTo" return="int"
  13439. abstract="false" native="false" synchronized="false"
  13440. static="false" final="false" visibility="public"
  13441. deprecated="not deprecated">
  13442. <param name="o" type="java.lang.Object"/>
  13443. </method>
  13444. <method name="depth" return="int"
  13445. abstract="false" native="false" synchronized="false"
  13446. static="false" final="false" visibility="public"
  13447. deprecated="not deprecated">
  13448. <doc>
  13449. <![CDATA[Returns the number of elements in this path.
  13450. @return the number of elements in this path]]>
  13451. </doc>
  13452. </method>
  13453. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  13454. abstract="false" native="false" synchronized="false"
  13455. static="false" final="false" visibility="public"
  13456. deprecated="use {@link #makeQualified(URI, Path)}">
  13457. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13458. <doc>
  13459. <![CDATA[Returns a qualified path object for the {@link FileSystem}'s working
  13460. directory.
  13461. @param fs the target FileSystem
  13462. @return a qualified path object for the FileSystem's working directory
  13463. @deprecated use {@link #makeQualified(URI, Path)}]]>
  13464. </doc>
  13465. </method>
  13466. <field name="SEPARATOR" type="java.lang.String"
  13467. transient="false" volatile="false"
  13468. static="true" final="true" visibility="public"
  13469. deprecated="not deprecated">
  13470. <doc>
  13471. <![CDATA[The directory separator, a slash.]]>
  13472. </doc>
  13473. </field>
  13474. <field name="SEPARATOR_CHAR" type="char"
  13475. transient="false" volatile="false"
  13476. static="true" final="true" visibility="public"
  13477. deprecated="not deprecated">
  13478. <doc>
  13479. <![CDATA[The directory separator, a slash, as a character.]]>
  13480. </doc>
  13481. </field>
  13482. <field name="CUR_DIR" type="java.lang.String"
  13483. transient="false" volatile="false"
  13484. static="true" final="true" visibility="public"
  13485. deprecated="not deprecated">
  13486. <doc>
  13487. <![CDATA[The current directory, ".".]]>
  13488. </doc>
  13489. </field>
  13490. <field name="WINDOWS" type="boolean"
  13491. transient="false" volatile="false"
  13492. static="true" final="true" visibility="public"
  13493. deprecated="not deprecated">
  13494. <doc>
  13495. <![CDATA[Whether the current host is a Windows machine.]]>
  13496. </doc>
  13497. </field>
  13498. <doc>
  13499. <![CDATA[Names a file or directory in a {@link FileSystem}.
  13500. Path strings use slash as the directory separator.]]>
  13501. </doc>
  13502. </class>
  13503. <!-- end class org.apache.hadoop.fs.Path -->
  13504. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  13505. <interface name="PathFilter" abstract="true"
  13506. static="false" final="false" visibility="public"
  13507. deprecated="not deprecated">
  13508. <method name="accept" return="boolean"
  13509. abstract="false" native="false" synchronized="false"
  13510. static="false" final="false" visibility="public"
  13511. deprecated="not deprecated">
  13512. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13513. <doc>
  13514. <![CDATA[Tests whether or not the specified abstract pathname should be
  13515. included in a pathname list.
  13516. @param path The abstract pathname to be tested
  13517. @return <code>true</code> if and only if <code>pathname</code>
  13518. should be included]]>
  13519. </doc>
  13520. </method>
  13521. </interface>
  13522. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  13523. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  13524. <interface name="PositionedReadable" abstract="true"
  13525. static="false" final="false" visibility="public"
  13526. deprecated="not deprecated">
  13527. <method name="read" return="int"
  13528. abstract="false" native="false" synchronized="false"
  13529. static="false" final="false" visibility="public"
  13530. deprecated="not deprecated">
  13531. <param name="position" type="long"/>
  13532. <param name="buffer" type="byte[]"/>
  13533. <param name="offset" type="int"/>
  13534. <param name="length" type="int"/>
  13535. <exception name="IOException" type="java.io.IOException"/>
  13536. <doc>
  13537. <![CDATA[Read up to the specified number of bytes, from a given
  13538. position within a file, and return the number of bytes read. This does not
  13539. change the current offset of a file, and is thread-safe.
  13540. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  13541. @param position position within file
  13542. @param buffer destination buffer
  13543. @param offset offset in the buffer
  13544. @param length number of bytes to read
  13545. @return actual number of bytes read; -1 means "none"
  13546. @throws IOException IO problems.]]>
  13547. </doc>
  13548. </method>
  13549. <method name="readFully"
  13550. abstract="false" native="false" synchronized="false"
  13551. static="false" final="false" visibility="public"
  13552. deprecated="not deprecated">
  13553. <param name="position" type="long"/>
  13554. <param name="buffer" type="byte[]"/>
  13555. <param name="offset" type="int"/>
  13556. <param name="length" type="int"/>
  13557. <exception name="IOException" type="java.io.IOException"/>
  13558. <doc>
  13559. <![CDATA[Read the specified number of bytes, from a given
  13560. position within a file. This does not
  13561. change the current offset of a file, and is thread-safe.
  13562. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  13563. @param position position within file
  13564. @param buffer destination buffer
  13565. @param offset offset in the buffer
  13566. @param length number of bytes to read
  13567. @throws IOException IO problems.
  13568. @throws EOFException the end of the data was reached before
  13569. the read operation completed]]>
  13570. </doc>
  13571. </method>
  13572. <method name="readFully"
  13573. abstract="false" native="false" synchronized="false"
  13574. static="false" final="false" visibility="public"
  13575. deprecated="not deprecated">
  13576. <param name="position" type="long"/>
  13577. <param name="buffer" type="byte[]"/>
  13578. <exception name="IOException" type="java.io.IOException"/>
  13579. <doc>
  13580. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  13581. position within a file. This does not
  13582. change the current offset of a file, and is thread-safe.
  13583. <i>Warning: Not all filesystems satisfy the thread-safety requirement.</i>
  13584. @param position position within file
  13585. @param buffer destination buffer
  13586. @throws IOException IO problems.
  13587. @throws EOFException the end of the data was reached before
  13588. the read operation completed]]>
  13589. </doc>
  13590. </method>
  13591. <doc>
  13592. <![CDATA[Stream that permits positional reading.
  13593. Implementations are required to implement thread-safe operations; this may
  13594. be supported by concurrent access to the data, or by using a synchronization
  13595. mechanism to serialize access.
  13596. Not all implementations meet this requirement. Those that do not cannot
  13597. be used as a backing store for some applications, such as Apache HBase.
  13598. Independent of whether or not they are thread safe, some implementations
  13599. may make the intermediate state of the system, specifically the position
  13600. obtained in {@code Seekable.getPos()} visible.]]>
  13601. </doc>
  13602. </interface>
  13603. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  13604. <!-- start class org.apache.hadoop.fs.QuotaUsage -->
  13605. <class name="QuotaUsage" extends="java.lang.Object"
  13606. abstract="false"
  13607. static="false" final="false" visibility="public"
  13608. deprecated="not deprecated">
  13609. <constructor name="QuotaUsage"
  13610. static="false" final="false" visibility="protected"
  13611. deprecated="not deprecated">
  13612. </constructor>
  13613. <constructor name="QuotaUsage" type="org.apache.hadoop.fs.QuotaUsage.Builder"
  13614. static="false" final="false" visibility="protected"
  13615. deprecated="not deprecated">
  13616. <doc>
  13617. <![CDATA[Build the instance based on the builder.]]>
  13618. </doc>
  13619. </constructor>
  13620. <method name="setQuota"
  13621. abstract="false" native="false" synchronized="false"
  13622. static="false" final="false" visibility="protected"
  13623. deprecated="not deprecated">
  13624. <param name="quota" type="long"/>
  13625. </method>
  13626. <method name="setSpaceConsumed"
  13627. abstract="false" native="false" synchronized="false"
  13628. static="false" final="false" visibility="protected"
  13629. deprecated="not deprecated">
  13630. <param name="spaceConsumed" type="long"/>
  13631. </method>
  13632. <method name="setSpaceQuota"
  13633. abstract="false" native="false" synchronized="false"
  13634. static="false" final="false" visibility="protected"
  13635. deprecated="not deprecated">
  13636. <param name="spaceQuota" type="long"/>
  13637. </method>
  13638. <method name="getFileAndDirectoryCount" return="long"
  13639. abstract="false" native="false" synchronized="false"
  13640. static="false" final="false" visibility="public"
  13641. deprecated="not deprecated">
  13642. <doc>
  13643. <![CDATA[Return the directory count.]]>
  13644. </doc>
  13645. </method>
  13646. <method name="getQuota" return="long"
  13647. abstract="false" native="false" synchronized="false"
  13648. static="false" final="false" visibility="public"
  13649. deprecated="not deprecated">
  13650. <doc>
  13651. <![CDATA[Return the directory quota.]]>
  13652. </doc>
  13653. </method>
  13654. <method name="getSpaceConsumed" return="long"
  13655. abstract="false" native="false" synchronized="false"
  13656. static="false" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. <doc>
  13659. <![CDATA[Return (disk) space consumed.]]>
  13660. </doc>
  13661. </method>
  13662. <method name="getSpaceQuota" return="long"
  13663. abstract="false" native="false" synchronized="false"
  13664. static="false" final="false" visibility="public"
  13665. deprecated="not deprecated">
  13666. <doc>
  13667. <![CDATA[Return (disk) space quota.]]>
  13668. </doc>
  13669. </method>
  13670. <method name="getTypeQuota" return="long"
  13671. abstract="false" native="false" synchronized="false"
  13672. static="false" final="false" visibility="public"
  13673. deprecated="not deprecated">
  13674. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  13675. <doc>
  13676. <![CDATA[Return storage type quota.]]>
  13677. </doc>
  13678. </method>
  13679. <method name="getTypeConsumed" return="long"
  13680. abstract="false" native="false" synchronized="false"
  13681. static="false" final="false" visibility="public"
  13682. deprecated="not deprecated">
  13683. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  13684. <doc>
  13685. <![CDATA[Return storage type consumed.]]>
  13686. </doc>
  13687. </method>
  13688. <method name="isTypeQuotaSet" return="boolean"
  13689. abstract="false" native="false" synchronized="false"
  13690. static="false" final="false" visibility="public"
  13691. deprecated="not deprecated">
  13692. <doc>
  13693. <![CDATA[Return true if any storage type quota has been set.]]>
  13694. </doc>
  13695. </method>
  13696. <method name="isTypeConsumedAvailable" return="boolean"
  13697. abstract="false" native="false" synchronized="false"
  13698. static="false" final="false" visibility="public"
  13699. deprecated="not deprecated">
  13700. <doc>
  13701. <![CDATA[Return true if any storage type consumption information is available.]]>
  13702. </doc>
  13703. </method>
  13704. <method name="equals" return="boolean"
  13705. abstract="false" native="false" synchronized="false"
  13706. static="false" final="false" visibility="public"
  13707. deprecated="not deprecated">
  13708. <param name="to" type="java.lang.Object"/>
  13709. </method>
  13710. <method name="hashCode" return="int"
  13711. abstract="false" native="false" synchronized="false"
  13712. static="false" final="false" visibility="public"
  13713. deprecated="not deprecated">
  13714. </method>
  13715. <method name="getHeader" return="java.lang.String"
  13716. abstract="false" native="false" synchronized="false"
  13717. static="true" final="false" visibility="public"
  13718. deprecated="not deprecated">
  13719. <doc>
  13720. <![CDATA[Return the header of the output.
  13721. @return the header of the output]]>
  13722. </doc>
  13723. </method>
  13724. <method name="toString" return="java.lang.String"
  13725. abstract="false" native="false" synchronized="false"
  13726. static="false" final="false" visibility="public"
  13727. deprecated="not deprecated">
  13728. </method>
  13729. <method name="toString" return="java.lang.String"
  13730. abstract="false" native="false" synchronized="false"
  13731. static="false" final="false" visibility="public"
  13732. deprecated="not deprecated">
  13733. <param name="hOption" type="boolean"/>
  13734. </method>
  13735. <method name="toString" return="java.lang.String"
  13736. abstract="false" native="false" synchronized="false"
  13737. static="false" final="false" visibility="public"
  13738. deprecated="not deprecated">
  13739. <param name="hOption" type="boolean"/>
  13740. <param name="tOption" type="boolean"/>
  13741. <param name="types" type="java.util.List"/>
  13742. <doc>
  13743. <![CDATA[Return the string representation of the object in the output format.
  13744. if hOption is false file sizes are returned in bytes
  13745. if hOption is true file sizes are returned in human readable
  13746. @param hOption a flag indicating if human readable output if to be used
  13747. @return the string representation of the object]]>
  13748. </doc>
  13749. </method>
  13750. <method name="getQuotaUsage" return="java.lang.String"
  13751. abstract="false" native="false" synchronized="false"
  13752. static="false" final="false" visibility="protected"
  13753. deprecated="not deprecated">
  13754. <param name="hOption" type="boolean"/>
  13755. </method>
  13756. <method name="getTypesQuotaUsage" return="java.lang.String"
  13757. abstract="false" native="false" synchronized="false"
  13758. static="false" final="false" visibility="protected"
  13759. deprecated="not deprecated">
  13760. <param name="hOption" type="boolean"/>
  13761. <param name="types" type="java.util.List"/>
  13762. </method>
  13763. <method name="getStorageTypeHeader" return="java.lang.String"
  13764. abstract="false" native="false" synchronized="false"
  13765. static="true" final="false" visibility="public"
  13766. deprecated="not deprecated">
  13767. <param name="storageTypes" type="java.util.List"/>
  13768. <doc>
  13769. <![CDATA[return the header of with the StorageTypes.
  13770. @param storageTypes
  13771. @return storage header string]]>
  13772. </doc>
  13773. </method>
  13774. <field name="QUOTA_STRING_FORMAT" type="java.lang.String"
  13775. transient="false" volatile="false"
  13776. static="true" final="true" visibility="protected"
  13777. deprecated="not deprecated">
  13778. <doc>
  13779. <![CDATA[Output format:
  13780. <----12----> <----15----> <----15----> <----15----> <-------18------->
  13781. QUOTA REMAINING_QUATA SPACE_QUOTA SPACE_QUOTA_REM FILE_NAME]]>
  13782. </doc>
  13783. </field>
  13784. <field name="SPACE_QUOTA_STRING_FORMAT" type="java.lang.String"
  13785. transient="false" volatile="false"
  13786. static="true" final="true" visibility="protected"
  13787. deprecated="not deprecated">
  13788. </field>
  13789. <field name="QUOTA_HEADER_FIELDS" type="java.lang.String[]"
  13790. transient="false" volatile="false"
  13791. static="true" final="true" visibility="protected"
  13792. deprecated="not deprecated">
  13793. </field>
  13794. <field name="QUOTA_HEADER" type="java.lang.String"
  13795. transient="false" volatile="false"
  13796. static="true" final="true" visibility="protected"
  13797. deprecated="not deprecated">
  13798. </field>
  13799. <doc>
  13800. <![CDATA[Store the quota usage of a directory.]]>
  13801. </doc>
  13802. </class>
  13803. <!-- end class org.apache.hadoop.fs.QuotaUsage -->
  13804. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  13805. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13806. abstract="false"
  13807. static="false" final="false" visibility="public"
  13808. deprecated="not deprecated">
  13809. <constructor name="RawLocalFileSystem"
  13810. static="false" final="false" visibility="public"
  13811. deprecated="not deprecated">
  13812. </constructor>
  13813. <method name="useStatIfAvailable"
  13814. abstract="false" native="false" synchronized="false"
  13815. static="true" final="false" visibility="public"
  13816. deprecated="not deprecated">
  13817. </method>
  13818. <method name="pathToFile" return="java.io.File"
  13819. abstract="false" native="false" synchronized="false"
  13820. static="false" final="false" visibility="public"
  13821. deprecated="not deprecated">
  13822. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13823. <doc>
  13824. <![CDATA[Convert a path to a File.]]>
  13825. </doc>
  13826. </method>
  13827. <method name="getUri" return="java.net.URI"
  13828. abstract="false" native="false" synchronized="false"
  13829. static="false" final="false" visibility="public"
  13830. deprecated="not deprecated">
  13831. </method>
  13832. <method name="initialize"
  13833. abstract="false" native="false" synchronized="false"
  13834. static="false" final="false" visibility="public"
  13835. deprecated="not deprecated">
  13836. <param name="uri" type="java.net.URI"/>
  13837. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13838. <exception name="IOException" type="java.io.IOException"/>
  13839. </method>
  13840. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13841. abstract="false" native="false" synchronized="false"
  13842. static="false" final="false" visibility="public"
  13843. deprecated="not deprecated">
  13844. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13845. <param name="bufferSize" type="int"/>
  13846. <exception name="IOException" type="java.io.IOException"/>
  13847. </method>
  13848. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13849. abstract="false" native="false" synchronized="false"
  13850. static="false" final="false" visibility="public"
  13851. deprecated="not deprecated">
  13852. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13853. <param name="bufferSize" type="int"/>
  13854. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13855. <exception name="IOException" type="java.io.IOException"/>
  13856. </method>
  13857. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13858. abstract="false" native="false" synchronized="false"
  13859. static="false" final="false" visibility="public"
  13860. deprecated="not deprecated">
  13861. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13862. <param name="overwrite" type="boolean"/>
  13863. <param name="bufferSize" type="int"/>
  13864. <param name="replication" type="short"/>
  13865. <param name="blockSize" type="long"/>
  13866. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13867. <exception name="IOException" type="java.io.IOException"/>
  13868. </method>
  13869. <method name="createOutputStream" return="java.io.OutputStream"
  13870. abstract="false" native="false" synchronized="false"
  13871. static="false" final="false" visibility="protected"
  13872. deprecated="not deprecated">
  13873. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13874. <param name="append" type="boolean"/>
  13875. <exception name="IOException" type="java.io.IOException"/>
  13876. </method>
  13877. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  13878. abstract="false" native="false" synchronized="false"
  13879. static="false" final="false" visibility="protected"
  13880. deprecated="not deprecated">
  13881. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13882. <param name="append" type="boolean"/>
  13883. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13884. <exception name="IOException" type="java.io.IOException"/>
  13885. </method>
  13886. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13887. abstract="false" native="false" synchronized="false"
  13888. static="false" final="false" visibility="public"
  13889. deprecated="not deprecated">
  13890. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13891. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13892. <param name="flags" type="java.util.EnumSet"/>
  13893. <param name="bufferSize" type="int"/>
  13894. <param name="replication" type="short"/>
  13895. <param name="blockSize" type="long"/>
  13896. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13897. <exception name="IOException" type="java.io.IOException"/>
  13898. </method>
  13899. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13900. abstract="false" native="false" synchronized="false"
  13901. static="false" final="false" visibility="public"
  13902. deprecated="not deprecated">
  13903. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13904. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13905. <param name="overwrite" type="boolean"/>
  13906. <param name="bufferSize" type="int"/>
  13907. <param name="replication" type="short"/>
  13908. <param name="blockSize" type="long"/>
  13909. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13910. <exception name="IOException" type="java.io.IOException"/>
  13911. </method>
  13912. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  13913. abstract="false" native="false" synchronized="false"
  13914. static="false" final="false" visibility="public"
  13915. deprecated="not deprecated">
  13916. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13917. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13918. <param name="overwrite" type="boolean"/>
  13919. <param name="bufferSize" type="int"/>
  13920. <param name="replication" type="short"/>
  13921. <param name="blockSize" type="long"/>
  13922. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13923. <exception name="IOException" type="java.io.IOException"/>
  13924. </method>
  13925. <method name="rename" return="boolean"
  13926. abstract="false" native="false" synchronized="false"
  13927. static="false" final="false" visibility="public"
  13928. deprecated="not deprecated">
  13929. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13930. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13931. <exception name="IOException" type="java.io.IOException"/>
  13932. </method>
  13933. <method name="handleEmptyDstDirectoryOnWindows" return="boolean"
  13934. abstract="false" native="false" synchronized="false"
  13935. static="false" final="true" visibility="public"
  13936. deprecated="not deprecated">
  13937. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13938. <param name="srcFile" type="java.io.File"/>
  13939. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13940. <param name="dstFile" type="java.io.File"/>
  13941. <exception name="IOException" type="java.io.IOException"/>
  13942. </method>
  13943. <method name="truncate" return="boolean"
  13944. abstract="false" native="false" synchronized="false"
  13945. static="false" final="false" visibility="public"
  13946. deprecated="not deprecated">
  13947. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13948. <param name="newLength" type="long"/>
  13949. <exception name="IOException" type="java.io.IOException"/>
  13950. </method>
  13951. <method name="delete" return="boolean"
  13952. abstract="false" native="false" synchronized="false"
  13953. static="false" final="false" visibility="public"
  13954. deprecated="not deprecated">
  13955. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13956. <param name="recursive" type="boolean"/>
  13957. <exception name="IOException" type="java.io.IOException"/>
  13958. <doc>
  13959. <![CDATA[Delete the given path to a file or directory.
  13960. @param p the path to delete
  13961. @param recursive to delete sub-directories
  13962. @return true if the file or directory and all its contents were deleted
  13963. @throws IOException if p is non-empty and recursive is false]]>
  13964. </doc>
  13965. </method>
  13966. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13967. abstract="false" native="false" synchronized="false"
  13968. static="false" final="false" visibility="public"
  13969. deprecated="not deprecated">
  13970. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13971. <exception name="IOException" type="java.io.IOException"/>
  13972. </method>
  13973. <method name="mkOneDir" return="boolean"
  13974. abstract="false" native="false" synchronized="false"
  13975. static="false" final="false" visibility="protected"
  13976. deprecated="not deprecated">
  13977. <param name="p2f" type="java.io.File"/>
  13978. <exception name="IOException" type="java.io.IOException"/>
  13979. </method>
  13980. <method name="mkOneDirWithMode" return="boolean"
  13981. abstract="false" native="false" synchronized="false"
  13982. static="false" final="false" visibility="protected"
  13983. deprecated="not deprecated">
  13984. <param name="p" type="org.apache.hadoop.fs.Path"/>
  13985. <param name="p2f" type="java.io.File"/>
  13986. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13987. <exception name="IOException" type="java.io.IOException"/>
  13988. </method>
  13989. <method name="mkdirs" return="boolean"
  13990. abstract="false" native="false" synchronized="false"
  13991. static="false" final="false" visibility="public"
  13992. deprecated="not deprecated">
  13993. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13994. <exception name="IOException" type="java.io.IOException"/>
  13995. <doc>
  13996. <![CDATA[Creates the specified directory hierarchy. Does not
  13997. treat existence as an error.]]>
  13998. </doc>
  13999. </method>
  14000. <method name="mkdirs" return="boolean"
  14001. abstract="false" native="false" synchronized="false"
  14002. static="false" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14005. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14006. <exception name="IOException" type="java.io.IOException"/>
  14007. </method>
  14008. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  14009. abstract="false" native="false" synchronized="false"
  14010. static="false" final="false" visibility="public"
  14011. deprecated="not deprecated">
  14012. </method>
  14013. <method name="setWorkingDirectory"
  14014. abstract="false" native="false" synchronized="false"
  14015. static="false" final="false" visibility="public"
  14016. deprecated="not deprecated">
  14017. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  14018. <doc>
  14019. <![CDATA[Set the working directory to the given directory.]]>
  14020. </doc>
  14021. </method>
  14022. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14023. abstract="false" native="false" synchronized="false"
  14024. static="false" final="false" visibility="public"
  14025. deprecated="not deprecated">
  14026. </method>
  14027. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  14028. abstract="false" native="false" synchronized="false"
  14029. static="false" final="false" visibility="protected"
  14030. deprecated="not deprecated">
  14031. </method>
  14032. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  14033. abstract="false" native="false" synchronized="false"
  14034. static="false" final="false" visibility="public"
  14035. deprecated="not deprecated">
  14036. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14037. <exception name="IOException" type="java.io.IOException"/>
  14038. </method>
  14039. <method name="moveFromLocalFile"
  14040. abstract="false" native="false" synchronized="false"
  14041. static="false" final="false" visibility="public"
  14042. deprecated="not deprecated">
  14043. <param name="src" type="org.apache.hadoop.fs.Path"/>
  14044. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  14045. <exception name="IOException" type="java.io.IOException"/>
  14046. </method>
  14047. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  14048. abstract="false" native="false" synchronized="false"
  14049. static="false" final="false" visibility="public"
  14050. deprecated="not deprecated">
  14051. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  14052. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  14053. <exception name="IOException" type="java.io.IOException"/>
  14054. </method>
  14055. <method name="completeLocalOutput"
  14056. abstract="false" native="false" synchronized="false"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  14060. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  14061. <exception name="IOException" type="java.io.IOException"/>
  14062. </method>
  14063. <method name="close"
  14064. abstract="false" native="false" synchronized="false"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. <exception name="IOException" type="java.io.IOException"/>
  14068. </method>
  14069. <method name="toString" return="java.lang.String"
  14070. abstract="false" native="false" synchronized="false"
  14071. static="false" final="false" visibility="public"
  14072. deprecated="not deprecated">
  14073. </method>
  14074. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  14075. abstract="false" native="false" synchronized="false"
  14076. static="false" final="false" visibility="public"
  14077. deprecated="not deprecated">
  14078. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14079. <exception name="IOException" type="java.io.IOException"/>
  14080. </method>
  14081. <method name="setOwner"
  14082. abstract="false" native="false" synchronized="false"
  14083. static="false" final="false" visibility="public"
  14084. deprecated="not deprecated">
  14085. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14086. <param name="username" type="java.lang.String"/>
  14087. <param name="groupname" type="java.lang.String"/>
  14088. <exception name="IOException" type="java.io.IOException"/>
  14089. <doc>
  14090. <![CDATA[Use the command chown to set owner.]]>
  14091. </doc>
  14092. </method>
  14093. <method name="setPermission"
  14094. abstract="false" native="false" synchronized="false"
  14095. static="false" final="false" visibility="public"
  14096. deprecated="not deprecated">
  14097. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14098. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14099. <exception name="IOException" type="java.io.IOException"/>
  14100. <doc>
  14101. <![CDATA[Use the command chmod to set permission.]]>
  14102. </doc>
  14103. </method>
  14104. <method name="setTimes"
  14105. abstract="false" native="false" synchronized="false"
  14106. static="false" final="false" visibility="public"
  14107. deprecated="not deprecated">
  14108. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14109. <param name="mtime" type="long"/>
  14110. <param name="atime" type="long"/>
  14111. <exception name="IOException" type="java.io.IOException"/>
  14112. <doc>
  14113. <![CDATA[Sets the {@link Path}'s last modified time and last access time to
  14114. the given valid times.
  14115. @param mtime the modification time to set (only if no less than zero).
  14116. @param atime the access time to set (only if no less than zero).
  14117. @throws IOException if setting the times fails.]]>
  14118. </doc>
  14119. </method>
  14120. <method name="supportsSymlinks" return="boolean"
  14121. abstract="false" native="false" synchronized="false"
  14122. static="false" final="false" visibility="public"
  14123. deprecated="not deprecated">
  14124. </method>
  14125. <method name="createSymlink"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="false" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. <param name="target" type="org.apache.hadoop.fs.Path"/>
  14130. <param name="link" type="org.apache.hadoop.fs.Path"/>
  14131. <param name="createParent" type="boolean"/>
  14132. <exception name="IOException" type="java.io.IOException"/>
  14133. </method>
  14134. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  14135. abstract="false" native="false" synchronized="false"
  14136. static="false" final="false" visibility="public"
  14137. deprecated="not deprecated">
  14138. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14139. <exception name="IOException" type="java.io.IOException"/>
  14140. <doc>
  14141. <![CDATA[Return a FileStatus representing the given path. If the path refers
  14142. to a symlink return a FileStatus representing the link rather than
  14143. the object the link refers to.]]>
  14144. </doc>
  14145. </method>
  14146. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  14147. abstract="false" native="false" synchronized="false"
  14148. static="false" final="false" visibility="public"
  14149. deprecated="not deprecated">
  14150. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14151. <exception name="IOException" type="java.io.IOException"/>
  14152. </method>
  14153. <doc>
  14154. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  14155. </doc>
  14156. </class>
  14157. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  14158. <!-- start class org.apache.hadoop.fs.ReadOption -->
  14159. <class name="ReadOption" extends="java.lang.Enum"
  14160. abstract="false"
  14161. static="false" final="true" visibility="public"
  14162. deprecated="not deprecated">
  14163. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  14164. abstract="false" native="false" synchronized="false"
  14165. static="true" final="false" visibility="public"
  14166. deprecated="not deprecated">
  14167. </method>
  14168. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  14169. abstract="false" native="false" synchronized="false"
  14170. static="true" final="false" visibility="public"
  14171. deprecated="not deprecated">
  14172. <param name="name" type="java.lang.String"/>
  14173. </method>
  14174. <doc>
  14175. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  14176. </doc>
  14177. </class>
  14178. <!-- end class org.apache.hadoop.fs.ReadOption -->
  14179. <!-- start interface org.apache.hadoop.fs.Seekable -->
  14180. <interface name="Seekable" abstract="true"
  14181. static="false" final="false" visibility="public"
  14182. deprecated="not deprecated">
  14183. <method name="seek"
  14184. abstract="false" native="false" synchronized="false"
  14185. static="false" final="false" visibility="public"
  14186. deprecated="not deprecated">
  14187. <param name="pos" type="long"/>
  14188. <exception name="IOException" type="java.io.IOException"/>
  14189. <doc>
  14190. <![CDATA[Seek to the given offset from the start of the file.
  14191. The next read() will be from that location. Can't
  14192. seek past the end of the file.]]>
  14193. </doc>
  14194. </method>
  14195. <method name="getPos" return="long"
  14196. abstract="false" native="false" synchronized="false"
  14197. static="false" final="false" visibility="public"
  14198. deprecated="not deprecated">
  14199. <exception name="IOException" type="java.io.IOException"/>
  14200. <doc>
  14201. <![CDATA[Return the current offset from the start of the file]]>
  14202. </doc>
  14203. </method>
  14204. <doc>
  14205. <![CDATA[Stream that permits seeking.]]>
  14206. </doc>
  14207. </interface>
  14208. <!-- end interface org.apache.hadoop.fs.Seekable -->
  14209. <!-- start class org.apache.hadoop.fs.StorageStatistics -->
  14210. <class name="StorageStatistics" extends="java.lang.Object"
  14211. abstract="true"
  14212. static="false" final="false" visibility="public"
  14213. deprecated="not deprecated">
  14214. <constructor name="StorageStatistics" type="java.lang.String"
  14215. static="false" final="false" visibility="public"
  14216. deprecated="not deprecated">
  14217. </constructor>
  14218. <method name="getName" return="java.lang.String"
  14219. abstract="false" native="false" synchronized="false"
  14220. static="false" final="false" visibility="public"
  14221. deprecated="not deprecated">
  14222. <doc>
  14223. <![CDATA[Get the name of this StorageStatistics object.]]>
  14224. </doc>
  14225. </method>
  14226. <method name="getScheme" return="java.lang.String"
  14227. abstract="false" native="false" synchronized="false"
  14228. static="false" final="false" visibility="public"
  14229. deprecated="not deprecated">
  14230. <doc>
  14231. <![CDATA[@return the associated file system scheme if this is scheme specific,
  14232. else return null.]]>
  14233. </doc>
  14234. </method>
  14235. <method name="getLongStatistics" return="java.util.Iterator"
  14236. abstract="true" native="false" synchronized="false"
  14237. static="false" final="false" visibility="public"
  14238. deprecated="not deprecated">
  14239. <doc>
  14240. <![CDATA[Get an iterator over all the currently tracked long statistics.
  14241. The values returned will depend on the type of FileSystem or FileContext
  14242. object. The values do not necessarily reflect a snapshot in time.]]>
  14243. </doc>
  14244. </method>
  14245. <method name="getLong" return="java.lang.Long"
  14246. abstract="true" native="false" synchronized="false"
  14247. static="false" final="false" visibility="public"
  14248. deprecated="not deprecated">
  14249. <param name="key" type="java.lang.String"/>
  14250. <doc>
  14251. <![CDATA[Get the value of a statistic.
  14252. @return null if the statistic is not being tracked or is not a
  14253. long statistic. The value of the statistic, otherwise.]]>
  14254. </doc>
  14255. </method>
  14256. <method name="isTracked" return="boolean"
  14257. abstract="true" native="false" synchronized="false"
  14258. static="false" final="false" visibility="public"
  14259. deprecated="not deprecated">
  14260. <param name="key" type="java.lang.String"/>
  14261. <doc>
  14262. <![CDATA[Return true if a statistic is being tracked.
  14263. @return True only if the statistic is being tracked.]]>
  14264. </doc>
  14265. </method>
  14266. <method name="reset"
  14267. abstract="true" native="false" synchronized="false"
  14268. static="false" final="false" visibility="public"
  14269. deprecated="not deprecated">
  14270. <doc>
  14271. <![CDATA[Reset all the statistic data.]]>
  14272. </doc>
  14273. </method>
  14274. <doc>
  14275. <![CDATA[StorageStatistics contains statistics data for a FileSystem or FileContext
  14276. instance.]]>
  14277. </doc>
  14278. </class>
  14279. <!-- end class org.apache.hadoop.fs.StorageStatistics -->
  14280. <!-- start class org.apache.hadoop.fs.StorageType -->
  14281. <class name="StorageType" extends="java.lang.Enum"
  14282. abstract="false"
  14283. static="false" final="true" visibility="public"
  14284. deprecated="not deprecated">
  14285. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  14286. abstract="false" native="false" synchronized="false"
  14287. static="true" final="false" visibility="public"
  14288. deprecated="not deprecated">
  14289. </method>
  14290. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  14291. abstract="false" native="false" synchronized="false"
  14292. static="true" final="false" visibility="public"
  14293. deprecated="not deprecated">
  14294. <param name="name" type="java.lang.String"/>
  14295. </method>
  14296. <method name="isTransient" return="boolean"
  14297. abstract="false" native="false" synchronized="false"
  14298. static="false" final="false" visibility="public"
  14299. deprecated="not deprecated">
  14300. </method>
  14301. <method name="supportTypeQuota" return="boolean"
  14302. abstract="false" native="false" synchronized="false"
  14303. static="false" final="false" visibility="public"
  14304. deprecated="not deprecated">
  14305. </method>
  14306. <method name="isMovable" return="boolean"
  14307. abstract="false" native="false" synchronized="false"
  14308. static="false" final="false" visibility="public"
  14309. deprecated="not deprecated">
  14310. </method>
  14311. <method name="asList" return="java.util.List"
  14312. abstract="false" native="false" synchronized="false"
  14313. static="true" final="false" visibility="public"
  14314. deprecated="not deprecated">
  14315. </method>
  14316. <method name="getMovableTypes" return="java.util.List"
  14317. abstract="false" native="false" synchronized="false"
  14318. static="true" final="false" visibility="public"
  14319. deprecated="not deprecated">
  14320. </method>
  14321. <method name="getTypesSupportingQuota" return="java.util.List"
  14322. abstract="false" native="false" synchronized="false"
  14323. static="true" final="false" visibility="public"
  14324. deprecated="not deprecated">
  14325. </method>
  14326. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  14327. abstract="false" native="false" synchronized="false"
  14328. static="true" final="false" visibility="public"
  14329. deprecated="not deprecated">
  14330. <param name="i" type="int"/>
  14331. </method>
  14332. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  14333. abstract="false" native="false" synchronized="false"
  14334. static="true" final="false" visibility="public"
  14335. deprecated="not deprecated">
  14336. <param name="s" type="java.lang.String"/>
  14337. </method>
  14338. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  14339. transient="false" volatile="false"
  14340. static="true" final="true" visibility="public"
  14341. deprecated="not deprecated">
  14342. </field>
  14343. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  14344. transient="false" volatile="false"
  14345. static="true" final="true" visibility="public"
  14346. deprecated="not deprecated">
  14347. </field>
  14348. <doc>
  14349. <![CDATA[Defines the types of supported storage media. The default storage
  14350. medium is assumed to be DISK.]]>
  14351. </doc>
  14352. </class>
  14353. <!-- end class org.apache.hadoop.fs.StorageType -->
  14354. <!-- start interface org.apache.hadoop.fs.StreamCapabilities -->
  14355. <interface name="StreamCapabilities" abstract="true"
  14356. static="false" final="false" visibility="public"
  14357. deprecated="not deprecated">
  14358. <method name="hasCapability" return="boolean"
  14359. abstract="false" native="false" synchronized="false"
  14360. static="false" final="false" visibility="public"
  14361. deprecated="not deprecated">
  14362. <param name="capability" type="java.lang.String"/>
  14363. <doc>
  14364. <![CDATA[Query the stream for a specific capability.
  14365. @param capability string to query the stream support for.
  14366. @return True if the stream supports capability.]]>
  14367. </doc>
  14368. </method>
  14369. <field name="HFLUSH" type="java.lang.String"
  14370. transient="false" volatile="false"
  14371. static="true" final="true" visibility="public"
  14372. deprecated="not deprecated">
  14373. <doc>
  14374. <![CDATA[Stream hflush capability implemented by {@link Syncable#hflush()}.]]>
  14375. </doc>
  14376. </field>
  14377. <field name="HSYNC" type="java.lang.String"
  14378. transient="false" volatile="false"
  14379. static="true" final="true" visibility="public"
  14380. deprecated="not deprecated">
  14381. <doc>
  14382. <![CDATA[Stream hsync capability implemented by {@link Syncable#hsync()}.]]>
  14383. </doc>
  14384. </field>
  14385. <field name="READAHEAD" type="java.lang.String"
  14386. transient="false" volatile="false"
  14387. static="true" final="true" visibility="public"
  14388. deprecated="not deprecated">
  14389. <doc>
  14390. <![CDATA[Stream setReadahead capability implemented by
  14391. {@link CanSetReadahead#setReadahead(Long)}.]]>
  14392. </doc>
  14393. </field>
  14394. <field name="DROPBEHIND" type="java.lang.String"
  14395. transient="false" volatile="false"
  14396. static="true" final="true" visibility="public"
  14397. deprecated="not deprecated">
  14398. <doc>
  14399. <![CDATA[Stream setDropBehind capability implemented by
  14400. {@link CanSetDropBehind#setDropBehind(Boolean)}.]]>
  14401. </doc>
  14402. </field>
  14403. <field name="UNBUFFER" type="java.lang.String"
  14404. transient="false" volatile="false"
  14405. static="true" final="true" visibility="public"
  14406. deprecated="not deprecated">
  14407. <doc>
  14408. <![CDATA[Stream unbuffer capability implemented by {@link CanUnbuffer#unbuffer()}.]]>
  14409. </doc>
  14410. </field>
  14411. <field name="READBYTEBUFFER" type="java.lang.String"
  14412. transient="false" volatile="false"
  14413. static="true" final="true" visibility="public"
  14414. deprecated="not deprecated">
  14415. <doc>
  14416. <![CDATA[Stream read(ByteBuffer) capability implemented by
  14417. {@link ByteBufferReadable#read(java.nio.ByteBuffer)}.]]>
  14418. </doc>
  14419. </field>
  14420. <field name="PREADBYTEBUFFER" type="java.lang.String"
  14421. transient="false" volatile="false"
  14422. static="true" final="true" visibility="public"
  14423. deprecated="not deprecated">
  14424. <doc>
  14425. <![CDATA[Stream read(long, ByteBuffer) capability implemented by
  14426. {@link ByteBufferPositionedReadable#read(long, java.nio.ByteBuffer)}.]]>
  14427. </doc>
  14428. </field>
  14429. <doc>
  14430. <![CDATA[Interface to query streams for supported capabilities.
  14431. Capability strings must be in lower case.
  14432. Constant strings are chosen over enums in order to allow other file systems
  14433. to define their own capabilities.]]>
  14434. </doc>
  14435. </interface>
  14436. <!-- end interface org.apache.hadoop.fs.StreamCapabilities -->
  14437. <!-- start class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  14438. <class name="StreamCapabilitiesPolicy" extends="java.lang.Object"
  14439. abstract="false"
  14440. static="false" final="false" visibility="public"
  14441. deprecated="not deprecated">
  14442. <constructor name="StreamCapabilitiesPolicy"
  14443. static="false" final="false" visibility="public"
  14444. deprecated="not deprecated">
  14445. </constructor>
  14446. <method name="unbuffer"
  14447. abstract="false" native="false" synchronized="false"
  14448. static="true" final="false" visibility="public"
  14449. deprecated="not deprecated">
  14450. <param name="in" type="java.io.InputStream"/>
  14451. <doc>
  14452. <![CDATA[Implement the policy for {@link CanUnbuffer#unbuffer()}.
  14453. @param in the input stream]]>
  14454. </doc>
  14455. </method>
  14456. <field name="CAN_UNBUFFER_NOT_IMPLEMENTED_MESSAGE" type="java.lang.String"
  14457. transient="false" volatile="false"
  14458. static="true" final="true" visibility="public"
  14459. deprecated="not deprecated">
  14460. </field>
  14461. <doc>
  14462. <![CDATA[Static methods to implement policies for {@link StreamCapabilities}.]]>
  14463. </doc>
  14464. </class>
  14465. <!-- end class org.apache.hadoop.fs.StreamCapabilitiesPolicy -->
  14466. <!-- start interface org.apache.hadoop.fs.Syncable -->
  14467. <interface name="Syncable" abstract="true"
  14468. static="false" final="false" visibility="public"
  14469. deprecated="not deprecated">
  14470. <method name="sync"
  14471. abstract="false" native="false" synchronized="false"
  14472. static="false" final="false" visibility="public"
  14473. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  14474. <exception name="IOException" type="java.io.IOException"/>
  14475. <doc>
  14476. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  14477. @see #hflush()]]>
  14478. </doc>
  14479. </method>
  14480. <method name="hflush"
  14481. abstract="false" native="false" synchronized="false"
  14482. static="false" final="false" visibility="public"
  14483. deprecated="not deprecated">
  14484. <exception name="IOException" type="java.io.IOException"/>
  14485. <doc>
  14486. <![CDATA[Flush out the data in client's user buffer. After the return of
  14487. this call, new readers will see the data.
  14488. @throws IOException if any error occurs]]>
  14489. </doc>
  14490. </method>
  14491. <method name="hsync"
  14492. abstract="false" native="false" synchronized="false"
  14493. static="false" final="false" visibility="public"
  14494. deprecated="not deprecated">
  14495. <exception name="IOException" type="java.io.IOException"/>
  14496. <doc>
  14497. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  14498. all the way to the disk device (but the disk may have it in its cache).
  14499. @throws IOException if error occurs]]>
  14500. </doc>
  14501. </method>
  14502. <doc>
  14503. <![CDATA[This interface for flush/sync operation.]]>
  14504. </doc>
  14505. </interface>
  14506. <!-- end interface org.apache.hadoop.fs.Syncable -->
  14507. <!-- start class org.apache.hadoop.fs.Trash -->
  14508. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  14509. abstract="false"
  14510. static="false" final="false" visibility="public"
  14511. deprecated="not deprecated">
  14512. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  14513. static="false" final="false" visibility="public"
  14514. deprecated="not deprecated">
  14515. <exception name="IOException" type="java.io.IOException"/>
  14516. <doc>
  14517. <![CDATA[Construct a trash can accessor.
  14518. @param conf a Configuration]]>
  14519. </doc>
  14520. </constructor>
  14521. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  14522. static="false" final="false" visibility="public"
  14523. deprecated="not deprecated">
  14524. <exception name="IOException" type="java.io.IOException"/>
  14525. <doc>
  14526. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  14527. @param fs the FileSystem
  14528. @param conf a Configuration]]>
  14529. </doc>
  14530. </constructor>
  14531. <method name="moveToAppropriateTrash" return="boolean"
  14532. abstract="false" native="false" synchronized="false"
  14533. static="true" final="false" visibility="public"
  14534. deprecated="not deprecated">
  14535. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14536. <param name="p" type="org.apache.hadoop.fs.Path"/>
  14537. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14538. <exception name="IOException" type="java.io.IOException"/>
  14539. <doc>
  14540. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  14541. trashbin in the actual volume of the path p being deleted.
  14542. Hence we get the file system of the fully-qualified resolved-path and
  14543. then move the path p to the trashbin in that volume,
  14544. @param fs - the filesystem of path p
  14545. @param p - the path being deleted - to be moved to trasg
  14546. @param conf - configuration
  14547. @return false if the item is already in the trash or trash is disabled
  14548. @throws IOException on error]]>
  14549. </doc>
  14550. </method>
  14551. <method name="isEnabled" return="boolean"
  14552. abstract="false" native="false" synchronized="false"
  14553. static="false" final="false" visibility="public"
  14554. deprecated="not deprecated">
  14555. <doc>
  14556. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  14557. </doc>
  14558. </method>
  14559. <method name="moveToTrash" return="boolean"
  14560. abstract="false" native="false" synchronized="false"
  14561. static="false" final="false" visibility="public"
  14562. deprecated="not deprecated">
  14563. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14564. <exception name="IOException" type="java.io.IOException"/>
  14565. <doc>
  14566. <![CDATA[Move a file or directory to the current trash directory.
  14567. @return false if the item is already in the trash or trash is disabled]]>
  14568. </doc>
  14569. </method>
  14570. <method name="checkpoint"
  14571. abstract="false" native="false" synchronized="false"
  14572. static="false" final="false" visibility="public"
  14573. deprecated="not deprecated">
  14574. <exception name="IOException" type="java.io.IOException"/>
  14575. <doc>
  14576. <![CDATA[Create a trash checkpoint.]]>
  14577. </doc>
  14578. </method>
  14579. <method name="expunge"
  14580. abstract="false" native="false" synchronized="false"
  14581. static="false" final="false" visibility="public"
  14582. deprecated="not deprecated">
  14583. <exception name="IOException" type="java.io.IOException"/>
  14584. <doc>
  14585. <![CDATA[Delete old checkpoint(s).]]>
  14586. </doc>
  14587. </method>
  14588. <method name="getEmptier" return="java.lang.Runnable"
  14589. abstract="false" native="false" synchronized="false"
  14590. static="false" final="false" visibility="public"
  14591. deprecated="not deprecated">
  14592. <exception name="IOException" type="java.io.IOException"/>
  14593. <doc>
  14594. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  14595. users, intended to be run by the superuser.]]>
  14596. </doc>
  14597. </method>
  14598. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  14599. abstract="false" native="false" synchronized="false"
  14600. static="false" final="false" visibility="public"
  14601. deprecated="not deprecated">
  14602. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14603. <exception name="IOException" type="java.io.IOException"/>
  14604. </method>
  14605. <doc>
  14606. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  14607. See the implementation of the configured TrashPolicy for more
  14608. details.]]>
  14609. </doc>
  14610. </class>
  14611. <!-- end class org.apache.hadoop.fs.Trash -->
  14612. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  14613. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  14614. abstract="true"
  14615. static="false" final="false" visibility="public"
  14616. deprecated="not deprecated">
  14617. <constructor name="TrashPolicy"
  14618. static="false" final="false" visibility="public"
  14619. deprecated="not deprecated">
  14620. </constructor>
  14621. <method name="initialize"
  14622. abstract="true" native="false" synchronized="false"
  14623. static="false" final="false" visibility="public"
  14624. deprecated="Use {@link #initialize(Configuration, FileSystem)} instead.">
  14625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14626. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14627. <param name="home" type="org.apache.hadoop.fs.Path"/>
  14628. <doc>
  14629. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  14630. implementations.
  14631. @param conf the configuration to be used
  14632. @param fs the filesystem to be used
  14633. @param home the home directory
  14634. @deprecated Use {@link #initialize(Configuration, FileSystem)} instead.]]>
  14635. </doc>
  14636. </method>
  14637. <method name="initialize"
  14638. abstract="false" native="false" synchronized="false"
  14639. static="false" final="false" visibility="public"
  14640. deprecated="not deprecated">
  14641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14642. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14643. <doc>
  14644. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  14645. implementations. Different from initialize(conf, fs, home), this one does
  14646. not assume trash always under /user/$USER due to HDFS encryption zone.
  14647. @param conf the configuration to be used
  14648. @param fs the filesystem to be used]]>
  14649. </doc>
  14650. </method>
  14651. <method name="isEnabled" return="boolean"
  14652. abstract="true" native="false" synchronized="false"
  14653. static="false" final="false" visibility="public"
  14654. deprecated="not deprecated">
  14655. <doc>
  14656. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem.]]>
  14657. </doc>
  14658. </method>
  14659. <method name="moveToTrash" return="boolean"
  14660. abstract="true" native="false" synchronized="false"
  14661. static="false" final="false" visibility="public"
  14662. deprecated="not deprecated">
  14663. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14664. <exception name="IOException" type="java.io.IOException"/>
  14665. <doc>
  14666. <![CDATA[Move a file or directory to the current trash directory.
  14667. @return false if the item is already in the trash or trash is disabled]]>
  14668. </doc>
  14669. </method>
  14670. <method name="createCheckpoint"
  14671. abstract="true" native="false" synchronized="false"
  14672. static="false" final="false" visibility="public"
  14673. deprecated="not deprecated">
  14674. <exception name="IOException" type="java.io.IOException"/>
  14675. <doc>
  14676. <![CDATA[Create a trash checkpoint.]]>
  14677. </doc>
  14678. </method>
  14679. <method name="deleteCheckpoint"
  14680. abstract="true" native="false" synchronized="false"
  14681. static="false" final="false" visibility="public"
  14682. deprecated="not deprecated">
  14683. <exception name="IOException" type="java.io.IOException"/>
  14684. <doc>
  14685. <![CDATA[Delete old trash checkpoint(s).]]>
  14686. </doc>
  14687. </method>
  14688. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  14689. abstract="true" native="false" synchronized="false"
  14690. static="false" final="false" visibility="public"
  14691. deprecated="not deprecated">
  14692. <doc>
  14693. <![CDATA[Get the current working directory of the Trash Policy
  14694. This API does not work with files deleted from encryption zone when HDFS
  14695. data encryption at rest feature is enabled as rename file between
  14696. encryption zones or encryption zone and non-encryption zone is not allowed.
  14697. The caller is recommend to use the new API
  14698. TrashPolicy#getCurrentTrashDir(Path path).
  14699. It returns the trash location correctly for the path specified no matter
  14700. the path is in encryption zone or not.]]>
  14701. </doc>
  14702. </method>
  14703. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  14704. abstract="false" native="false" synchronized="false"
  14705. static="false" final="false" visibility="public"
  14706. deprecated="not deprecated">
  14707. <param name="path" type="org.apache.hadoop.fs.Path"/>
  14708. <exception name="IOException" type="java.io.IOException"/>
  14709. <doc>
  14710. <![CDATA[Get the current trash directory for path specified based on the Trash
  14711. Policy
  14712. @param path path to be deleted
  14713. @return current trash directory for the path to be deleted
  14714. @throws IOException]]>
  14715. </doc>
  14716. </method>
  14717. <method name="getEmptier" return="java.lang.Runnable"
  14718. abstract="true" native="false" synchronized="false"
  14719. static="false" final="false" visibility="public"
  14720. deprecated="not deprecated">
  14721. <exception name="IOException" type="java.io.IOException"/>
  14722. <doc>
  14723. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  14724. users, intended to be run by the superuser.]]>
  14725. </doc>
  14726. </method>
  14727. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  14728. abstract="false" native="false" synchronized="false"
  14729. static="true" final="false" visibility="public"
  14730. deprecated="Use {@link #getInstance(Configuration, FileSystem)} instead.">
  14731. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14732. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14733. <param name="home" type="org.apache.hadoop.fs.Path"/>
  14734. <doc>
  14735. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  14736. of the configuration parameter fs.trash.classname.
  14737. @param conf the configuration to be used
  14738. @param fs the file system to be used
  14739. @param home the home directory
  14740. @return an instance of TrashPolicy
  14741. @deprecated Use {@link #getInstance(Configuration, FileSystem)} instead.]]>
  14742. </doc>
  14743. </method>
  14744. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  14745. abstract="false" native="false" synchronized="false"
  14746. static="true" final="false" visibility="public"
  14747. deprecated="not deprecated">
  14748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14749. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14750. <doc>
  14751. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  14752. of the configuration parameter fs.trash.classname.
  14753. @param conf the configuration to be used
  14754. @param fs the file system to be used
  14755. @return an instance of TrashPolicy]]>
  14756. </doc>
  14757. </method>
  14758. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  14759. transient="false" volatile="false"
  14760. static="false" final="false" visibility="protected"
  14761. deprecated="not deprecated">
  14762. </field>
  14763. <field name="trash" type="org.apache.hadoop.fs.Path"
  14764. transient="false" volatile="false"
  14765. static="false" final="false" visibility="protected"
  14766. deprecated="not deprecated">
  14767. </field>
  14768. <field name="deletionInterval" type="long"
  14769. transient="false" volatile="false"
  14770. static="false" final="false" visibility="protected"
  14771. deprecated="not deprecated">
  14772. </field>
  14773. <doc>
  14774. <![CDATA[This interface is used for implementing different Trash policies.
  14775. Provides factory method to create instances of the configured Trash policy.]]>
  14776. </doc>
  14777. </class>
  14778. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  14779. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  14780. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  14781. abstract="false"
  14782. static="false" final="false" visibility="public"
  14783. deprecated="not deprecated">
  14784. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  14785. static="false" final="false" visibility="public"
  14786. deprecated="not deprecated">
  14787. <doc>
  14788. <![CDATA[Constructs exception with the specified detail message.
  14789. @param message exception message.]]>
  14790. </doc>
  14791. </constructor>
  14792. <doc>
  14793. <![CDATA[File system for a given file system name/scheme is not supported]]>
  14794. </doc>
  14795. </class>
  14796. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  14797. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  14798. <class name="XAttrCodec" extends="java.lang.Enum"
  14799. abstract="false"
  14800. static="false" final="true" visibility="public"
  14801. deprecated="not deprecated">
  14802. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  14803. abstract="false" native="false" synchronized="false"
  14804. static="true" final="false" visibility="public"
  14805. deprecated="not deprecated">
  14806. </method>
  14807. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  14808. abstract="false" native="false" synchronized="false"
  14809. static="true" final="false" visibility="public"
  14810. deprecated="not deprecated">
  14811. <param name="name" type="java.lang.String"/>
  14812. </method>
  14813. <method name="decodeValue" return="byte[]"
  14814. abstract="false" native="false" synchronized="false"
  14815. static="true" final="false" visibility="public"
  14816. deprecated="not deprecated">
  14817. <param name="value" type="java.lang.String"/>
  14818. <exception name="IOException" type="java.io.IOException"/>
  14819. <doc>
  14820. <![CDATA[Decode string representation of a value and check whether it's
  14821. encoded. If the given string begins with 0x or 0X, it expresses
  14822. a hexadecimal number. If the given string begins with 0s or 0S,
  14823. base64 encoding is expected. If the given string is enclosed in
  14824. double quotes, the inner string is treated as text. Otherwise
  14825. the given string is treated as text.
  14826. @param value string representation of the value.
  14827. @return byte[] the value
  14828. @throws IOException]]>
  14829. </doc>
  14830. </method>
  14831. <method name="encodeValue" return="java.lang.String"
  14832. abstract="false" native="false" synchronized="false"
  14833. static="true" final="false" visibility="public"
  14834. deprecated="not deprecated">
  14835. <param name="value" type="byte[]"/>
  14836. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  14837. <exception name="IOException" type="java.io.IOException"/>
  14838. <doc>
  14839. <![CDATA[Encode byte[] value to string representation with encoding.
  14840. Values encoded as text strings are enclosed in double quotes (\"),
  14841. while strings encoded as hexadecimal and base64 are prefixed with
  14842. 0x and 0s, respectively.
  14843. @param value byte[] value
  14844. @param encoding
  14845. @return String string representation of value
  14846. @throws IOException]]>
  14847. </doc>
  14848. </method>
  14849. <doc>
  14850. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  14851. covert byte[] to some kind of string representation or convert back.
  14852. String representation is convenient for display and input. For example
  14853. display in screen as shell response and json response, input as http
  14854. or shell parameter.]]>
  14855. </doc>
  14856. </class>
  14857. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  14858. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  14859. <class name="XAttrSetFlag" extends="java.lang.Enum"
  14860. abstract="false"
  14861. static="false" final="true" visibility="public"
  14862. deprecated="not deprecated">
  14863. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  14864. abstract="false" native="false" synchronized="false"
  14865. static="true" final="false" visibility="public"
  14866. deprecated="not deprecated">
  14867. </method>
  14868. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  14869. abstract="false" native="false" synchronized="false"
  14870. static="true" final="false" visibility="public"
  14871. deprecated="not deprecated">
  14872. <param name="name" type="java.lang.String"/>
  14873. </method>
  14874. <method name="validate"
  14875. abstract="false" native="false" synchronized="false"
  14876. static="true" final="false" visibility="public"
  14877. deprecated="not deprecated">
  14878. <param name="xAttrName" type="java.lang.String"/>
  14879. <param name="xAttrExists" type="boolean"/>
  14880. <param name="flag" type="java.util.EnumSet"/>
  14881. <exception name="IOException" type="java.io.IOException"/>
  14882. </method>
  14883. </class>
  14884. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  14885. <doc>
  14886. <![CDATA[An abstract file system API.]]>
  14887. </doc>
  14888. </package>
  14889. <package name="org.apache.hadoop.fs.crypto">
  14890. </package>
  14891. <package name="org.apache.hadoop.fs.ftp">
  14892. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  14893. <class name="FTPException" extends="java.lang.RuntimeException"
  14894. abstract="false"
  14895. static="false" final="false" visibility="public"
  14896. deprecated="not deprecated">
  14897. <constructor name="FTPException" type="java.lang.String"
  14898. static="false" final="false" visibility="public"
  14899. deprecated="not deprecated">
  14900. </constructor>
  14901. <constructor name="FTPException" type="java.lang.Throwable"
  14902. static="false" final="false" visibility="public"
  14903. deprecated="not deprecated">
  14904. </constructor>
  14905. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  14906. static="false" final="false" visibility="public"
  14907. deprecated="not deprecated">
  14908. </constructor>
  14909. <doc>
  14910. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  14911. </doc>
  14912. </class>
  14913. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  14914. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  14915. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  14916. abstract="false"
  14917. static="false" final="false" visibility="public"
  14918. deprecated="not deprecated">
  14919. <constructor name="FTPFileSystem"
  14920. static="false" final="false" visibility="public"
  14921. deprecated="not deprecated">
  14922. </constructor>
  14923. <method name="getScheme" return="java.lang.String"
  14924. abstract="false" native="false" synchronized="false"
  14925. static="false" final="false" visibility="public"
  14926. deprecated="not deprecated">
  14927. <doc>
  14928. <![CDATA[Return the protocol scheme for the FileSystem.
  14929. <p/>
  14930. @return <code>ftp</code>]]>
  14931. </doc>
  14932. </method>
  14933. <method name="getDefaultPort" return="int"
  14934. abstract="false" native="false" synchronized="false"
  14935. static="false" final="false" visibility="protected"
  14936. deprecated="not deprecated">
  14937. <doc>
  14938. <![CDATA[Get the default port for this FTPFileSystem.
  14939. @return the default port]]>
  14940. </doc>
  14941. </method>
  14942. <method name="initialize"
  14943. abstract="false" native="false" synchronized="false"
  14944. static="false" final="false" visibility="public"
  14945. deprecated="not deprecated">
  14946. <param name="uri" type="java.net.URI"/>
  14947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14948. <exception name="IOException" type="java.io.IOException"/>
  14949. </method>
  14950. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  14951. abstract="false" native="false" synchronized="false"
  14952. static="false" final="false" visibility="public"
  14953. deprecated="not deprecated">
  14954. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14955. <param name="bufferSize" type="int"/>
  14956. <exception name="IOException" type="java.io.IOException"/>
  14957. </method>
  14958. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  14959. abstract="false" native="false" synchronized="false"
  14960. static="false" final="false" visibility="public"
  14961. deprecated="not deprecated">
  14962. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14963. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  14964. <param name="overwrite" type="boolean"/>
  14965. <param name="bufferSize" type="int"/>
  14966. <param name="replication" type="short"/>
  14967. <param name="blockSize" type="long"/>
  14968. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14969. <exception name="IOException" type="java.io.IOException"/>
  14970. <doc>
  14971. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  14972. this class or else the invocation will block.]]>
  14973. </doc>
  14974. </method>
  14975. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  14976. abstract="false" native="false" synchronized="false"
  14977. static="false" final="false" visibility="public"
  14978. deprecated="not deprecated">
  14979. <param name="f" type="org.apache.hadoop.fs.Path"/>
  14980. <param name="bufferSize" type="int"/>
  14981. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14982. <exception name="IOException" type="java.io.IOException"/>
  14983. <doc>
  14984. <![CDATA[This optional operation is not yet supported.]]>
  14985. </doc>
  14986. </method>
  14987. <method name="delete" return="boolean"
  14988. abstract="false" native="false" synchronized="false"
  14989. static="false" final="false" visibility="public"
  14990. deprecated="not deprecated">
  14991. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14992. <param name="recursive" type="boolean"/>
  14993. <exception name="IOException" type="java.io.IOException"/>
  14994. </method>
  14995. <method name="getUri" return="java.net.URI"
  14996. abstract="false" native="false" synchronized="false"
  14997. static="false" final="false" visibility="public"
  14998. deprecated="not deprecated">
  14999. </method>
  15000. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  15001. abstract="false" native="false" synchronized="false"
  15002. static="false" final="false" visibility="public"
  15003. deprecated="not deprecated">
  15004. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15005. <exception name="IOException" type="java.io.IOException"/>
  15006. </method>
  15007. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  15008. abstract="false" native="false" synchronized="false"
  15009. static="false" final="false" visibility="public"
  15010. deprecated="not deprecated">
  15011. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15012. <exception name="IOException" type="java.io.IOException"/>
  15013. </method>
  15014. <method name="mkdirs" return="boolean"
  15015. abstract="false" native="false" synchronized="false"
  15016. static="false" final="false" visibility="public"
  15017. deprecated="not deprecated">
  15018. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15019. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15020. <exception name="IOException" type="java.io.IOException"/>
  15021. </method>
  15022. <method name="rename" return="boolean"
  15023. abstract="false" native="false" synchronized="false"
  15024. static="false" final="false" visibility="public"
  15025. deprecated="not deprecated">
  15026. <param name="src" type="org.apache.hadoop.fs.Path"/>
  15027. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  15028. <exception name="IOException" type="java.io.IOException"/>
  15029. </method>
  15030. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15031. abstract="false" native="false" synchronized="false"
  15032. static="false" final="false" visibility="public"
  15033. deprecated="not deprecated">
  15034. </method>
  15035. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15036. abstract="false" native="false" synchronized="false"
  15037. static="false" final="false" visibility="public"
  15038. deprecated="not deprecated">
  15039. </method>
  15040. <method name="setWorkingDirectory"
  15041. abstract="false" native="false" synchronized="false"
  15042. static="false" final="false" visibility="public"
  15043. deprecated="not deprecated">
  15044. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  15045. </method>
  15046. <field name="LOG" type="org.slf4j.Logger"
  15047. transient="false" volatile="false"
  15048. static="true" final="true" visibility="public"
  15049. deprecated="not deprecated">
  15050. </field>
  15051. <field name="DEFAULT_BUFFER_SIZE" type="int"
  15052. transient="false" volatile="false"
  15053. static="true" final="true" visibility="public"
  15054. deprecated="not deprecated">
  15055. </field>
  15056. <field name="DEFAULT_BLOCK_SIZE" type="int"
  15057. transient="false" volatile="false"
  15058. static="true" final="true" visibility="public"
  15059. deprecated="not deprecated">
  15060. </field>
  15061. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  15062. transient="false" volatile="false"
  15063. static="true" final="true" visibility="public"
  15064. deprecated="not deprecated">
  15065. </field>
  15066. <field name="FS_FTP_HOST" type="java.lang.String"
  15067. transient="false" volatile="false"
  15068. static="true" final="true" visibility="public"
  15069. deprecated="not deprecated">
  15070. </field>
  15071. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  15072. transient="false" volatile="false"
  15073. static="true" final="true" visibility="public"
  15074. deprecated="not deprecated">
  15075. </field>
  15076. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  15077. transient="false" volatile="false"
  15078. static="true" final="true" visibility="public"
  15079. deprecated="not deprecated">
  15080. </field>
  15081. <field name="FS_FTP_DATA_CONNECTION_MODE" type="java.lang.String"
  15082. transient="false" volatile="false"
  15083. static="true" final="true" visibility="public"
  15084. deprecated="not deprecated">
  15085. </field>
  15086. <field name="FS_FTP_TRANSFER_MODE" type="java.lang.String"
  15087. transient="false" volatile="false"
  15088. static="true" final="true" visibility="public"
  15089. deprecated="not deprecated">
  15090. </field>
  15091. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  15092. transient="false" volatile="false"
  15093. static="true" final="true" visibility="public"
  15094. deprecated="not deprecated">
  15095. </field>
  15096. <doc>
  15097. <![CDATA[<p>
  15098. A {@link FileSystem} backed by an FTP client provided by <a
  15099. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  15100. </p>]]>
  15101. </doc>
  15102. </class>
  15103. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  15104. </package>
  15105. <package name="org.apache.hadoop.fs.http">
  15106. </package>
  15107. <package name="org.apache.hadoop.fs.permission">
  15108. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  15109. <class name="AccessControlException" extends="java.io.IOException"
  15110. abstract="false"
  15111. static="false" final="false" visibility="public"
  15112. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  15113. instead.">
  15114. <constructor name="AccessControlException"
  15115. static="false" final="false" visibility="public"
  15116. deprecated="not deprecated">
  15117. <doc>
  15118. <![CDATA[Default constructor is needed for unwrapping from
  15119. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  15120. </doc>
  15121. </constructor>
  15122. <constructor name="AccessControlException" type="java.lang.String"
  15123. static="false" final="false" visibility="public"
  15124. deprecated="not deprecated">
  15125. <doc>
  15126. <![CDATA[Constructs an {@link AccessControlException}
  15127. with the specified detail message.
  15128. @param s the detail message.]]>
  15129. </doc>
  15130. </constructor>
  15131. <constructor name="AccessControlException" type="java.lang.Throwable"
  15132. static="false" final="false" visibility="public"
  15133. deprecated="not deprecated">
  15134. <doc>
  15135. <![CDATA[Constructs a new exception with the specified cause and a detail
  15136. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  15137. typically contains the class and detail message of <tt>cause</tt>).
  15138. @param cause the cause (which is saved for later retrieval by the
  15139. {@link #getCause()} method). (A <tt>null</tt> value is
  15140. permitted, and indicates that the cause is nonexistent or
  15141. unknown.)]]>
  15142. </doc>
  15143. </constructor>
  15144. <doc>
  15145. <![CDATA[An exception class for access control related issues.
  15146. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  15147. instead.]]>
  15148. </doc>
  15149. </class>
  15150. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  15151. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  15152. <class name="AclEntry" extends="java.lang.Object"
  15153. abstract="false"
  15154. static="false" final="false" visibility="public"
  15155. deprecated="not deprecated">
  15156. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  15157. abstract="false" native="false" synchronized="false"
  15158. static="false" final="false" visibility="public"
  15159. deprecated="not deprecated">
  15160. <doc>
  15161. <![CDATA[Returns the ACL entry type.
  15162. @return AclEntryType ACL entry type]]>
  15163. </doc>
  15164. </method>
  15165. <method name="getName" return="java.lang.String"
  15166. abstract="false" native="false" synchronized="false"
  15167. static="false" final="false" visibility="public"
  15168. deprecated="not deprecated">
  15169. <doc>
  15170. <![CDATA[Returns the optional ACL entry name.
  15171. @return String ACL entry name, or null if undefined]]>
  15172. </doc>
  15173. </method>
  15174. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  15175. abstract="false" native="false" synchronized="false"
  15176. static="false" final="false" visibility="public"
  15177. deprecated="not deprecated">
  15178. <doc>
  15179. <![CDATA[Returns the set of permissions in the ACL entry.
  15180. @return FsAction set of permissions in the ACL entry]]>
  15181. </doc>
  15182. </method>
  15183. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  15184. abstract="false" native="false" synchronized="false"
  15185. static="false" final="false" visibility="public"
  15186. deprecated="not deprecated">
  15187. <doc>
  15188. <![CDATA[Returns the scope of the ACL entry.
  15189. @return AclEntryScope scope of the ACL entry]]>
  15190. </doc>
  15191. </method>
  15192. <method name="equals" return="boolean"
  15193. abstract="false" native="false" synchronized="false"
  15194. static="false" final="false" visibility="public"
  15195. deprecated="not deprecated">
  15196. <param name="o" type="java.lang.Object"/>
  15197. </method>
  15198. <method name="hashCode" return="int"
  15199. abstract="false" native="false" synchronized="false"
  15200. static="false" final="false" visibility="public"
  15201. deprecated="not deprecated">
  15202. </method>
  15203. <method name="toString" return="java.lang.String"
  15204. abstract="false" native="false" synchronized="false"
  15205. static="false" final="false" visibility="public"
  15206. deprecated="not deprecated">
  15207. </method>
  15208. <method name="toStringStable" return="java.lang.String"
  15209. abstract="false" native="false" synchronized="false"
  15210. static="false" final="false" visibility="public"
  15211. deprecated="not deprecated">
  15212. <doc>
  15213. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  15214. satisfy backward compatibility requirements, such as for shell command
  15215. output or serialization. The format of this string representation matches
  15216. what is expected by the {@link #parseAclSpec(String, boolean)} and
  15217. {@link #parseAclEntry(String, boolean)} methods.
  15218. @return stable, backward compatible string representation]]>
  15219. </doc>
  15220. </method>
  15221. <method name="parseAclSpec" return="java.util.List"
  15222. abstract="false" native="false" synchronized="false"
  15223. static="true" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <param name="aclSpec" type="java.lang.String"/>
  15226. <param name="includePermission" type="boolean"/>
  15227. <doc>
  15228. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  15229. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  15230. The expected format of ACL entries in the string parameter is the same
  15231. format produced by the {@link #toStringStable()} method.
  15232. @param aclSpec
  15233. String representation of an ACL spec.
  15234. @param includePermission
  15235. for setAcl operations this will be true. i.e. AclSpec should
  15236. include permissions.<br>
  15237. But for removeAcl operation it will be false. i.e. AclSpec should
  15238. not contain permissions.<br>
  15239. Example: "user:foo,group:bar"
  15240. @return Returns list of {@link AclEntry} parsed]]>
  15241. </doc>
  15242. </method>
  15243. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  15244. abstract="false" native="false" synchronized="false"
  15245. static="true" final="false" visibility="public"
  15246. deprecated="not deprecated">
  15247. <param name="aclStr" type="java.lang.String"/>
  15248. <param name="includePermission" type="boolean"/>
  15249. <doc>
  15250. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  15251. The expected format of ACL entries in the string parameter is the same
  15252. format produced by the {@link #toStringStable()} method.
  15253. @param aclStr
  15254. String representation of an ACL.<br>
  15255. Example: "user:foo:rw-"
  15256. @param includePermission
  15257. for setAcl operations this will be true. i.e. Acl should include
  15258. permissions.<br>
  15259. But for removeAcl operation it will be false. i.e. Acl should not
  15260. contain permissions.<br>
  15261. Example: "user:foo,group:bar,mask::"
  15262. @return Returns an {@link AclEntry} object]]>
  15263. </doc>
  15264. </method>
  15265. <method name="aclSpecToString" return="java.lang.String"
  15266. abstract="false" native="false" synchronized="false"
  15267. static="true" final="false" visibility="public"
  15268. deprecated="not deprecated">
  15269. <param name="aclSpec" type="java.util.List"/>
  15270. <doc>
  15271. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  15272. @param aclSpec List of AclEntries to convert
  15273. @return String representation of aclSpec]]>
  15274. </doc>
  15275. </method>
  15276. <doc>
  15277. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  15278. mask, or other), an optional name (referring to a specific user or group), a
  15279. set of permissions (any combination of read, write and execute), and a scope
  15280. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  15281. to create a new instance.]]>
  15282. </doc>
  15283. </class>
  15284. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  15285. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  15286. <class name="AclEntryScope" extends="java.lang.Enum"
  15287. abstract="false"
  15288. static="false" final="true" visibility="public"
  15289. deprecated="not deprecated">
  15290. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  15291. abstract="false" native="false" synchronized="false"
  15292. static="true" final="false" visibility="public"
  15293. deprecated="not deprecated">
  15294. </method>
  15295. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  15296. abstract="false" native="false" synchronized="false"
  15297. static="true" final="false" visibility="public"
  15298. deprecated="not deprecated">
  15299. <param name="name" type="java.lang.String"/>
  15300. </method>
  15301. <doc>
  15302. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  15303. </doc>
  15304. </class>
  15305. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  15306. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  15307. <class name="AclEntryType" extends="java.lang.Enum"
  15308. abstract="false"
  15309. static="false" final="true" visibility="public"
  15310. deprecated="not deprecated">
  15311. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  15312. abstract="false" native="false" synchronized="false"
  15313. static="true" final="false" visibility="public"
  15314. deprecated="not deprecated">
  15315. </method>
  15316. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  15317. abstract="false" native="false" synchronized="false"
  15318. static="true" final="false" visibility="public"
  15319. deprecated="not deprecated">
  15320. <param name="name" type="java.lang.String"/>
  15321. </method>
  15322. <method name="toString" return="java.lang.String"
  15323. abstract="false" native="false" synchronized="false"
  15324. static="false" final="false" visibility="public"
  15325. deprecated="not deprecated">
  15326. </method>
  15327. <method name="toStringStable" return="java.lang.String"
  15328. abstract="false" native="false" synchronized="false"
  15329. static="false" final="false" visibility="public"
  15330. deprecated="not deprecated">
  15331. <doc>
  15332. <![CDATA[Returns a string representation guaranteed to be stable across versions to
  15333. satisfy backward compatibility requirements, such as for shell command
  15334. output or serialization.
  15335. @return stable, backward compatible string representation]]>
  15336. </doc>
  15337. </method>
  15338. <doc>
  15339. <![CDATA[Specifies the type of an ACL entry.]]>
  15340. </doc>
  15341. </class>
  15342. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  15343. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  15344. <class name="AclStatus" extends="java.lang.Object"
  15345. abstract="false"
  15346. static="false" final="false" visibility="public"
  15347. deprecated="not deprecated">
  15348. <method name="getOwner" return="java.lang.String"
  15349. abstract="false" native="false" synchronized="false"
  15350. static="false" final="false" visibility="public"
  15351. deprecated="not deprecated">
  15352. <doc>
  15353. <![CDATA[Returns the file owner.
  15354. @return String file owner]]>
  15355. </doc>
  15356. </method>
  15357. <method name="getGroup" return="java.lang.String"
  15358. abstract="false" native="false" synchronized="false"
  15359. static="false" final="false" visibility="public"
  15360. deprecated="not deprecated">
  15361. <doc>
  15362. <![CDATA[Returns the file group.
  15363. @return String file group]]>
  15364. </doc>
  15365. </method>
  15366. <method name="isStickyBit" return="boolean"
  15367. abstract="false" native="false" synchronized="false"
  15368. static="false" final="false" visibility="public"
  15369. deprecated="not deprecated">
  15370. <doc>
  15371. <![CDATA[Returns the sticky bit.
  15372. @return boolean sticky bit]]>
  15373. </doc>
  15374. </method>
  15375. <method name="getEntries" return="java.util.List"
  15376. abstract="false" native="false" synchronized="false"
  15377. static="false" final="false" visibility="public"
  15378. deprecated="not deprecated">
  15379. <doc>
  15380. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  15381. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  15382. </doc>
  15383. </method>
  15384. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  15385. abstract="false" native="false" synchronized="false"
  15386. static="false" final="false" visibility="public"
  15387. deprecated="not deprecated">
  15388. <doc>
  15389. <![CDATA[Returns the permission set for the path
  15390. @return {@link FsPermission} for the path]]>
  15391. </doc>
  15392. </method>
  15393. <method name="equals" return="boolean"
  15394. abstract="false" native="false" synchronized="false"
  15395. static="false" final="false" visibility="public"
  15396. deprecated="not deprecated">
  15397. <param name="o" type="java.lang.Object"/>
  15398. </method>
  15399. <method name="hashCode" return="int"
  15400. abstract="false" native="false" synchronized="false"
  15401. static="false" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. </method>
  15404. <method name="toString" return="java.lang.String"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. </method>
  15409. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  15410. abstract="false" native="false" synchronized="false"
  15411. static="false" final="false" visibility="public"
  15412. deprecated="not deprecated">
  15413. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  15414. <doc>
  15415. <![CDATA[Get the effective permission for the AclEntry
  15416. @param entry AclEntry to get the effective action]]>
  15417. </doc>
  15418. </method>
  15419. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  15420. abstract="false" native="false" synchronized="false"
  15421. static="false" final="false" visibility="public"
  15422. deprecated="not deprecated">
  15423. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  15424. <param name="permArg" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15425. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15426. <doc>
  15427. <![CDATA[Get the effective permission for the AclEntry. <br>
  15428. Recommended to use this API ONLY if client communicates with the old
  15429. NameNode, needs to pass the Permission for the path to get effective
  15430. permission, else use {@link AclStatus#getEffectivePermission(AclEntry)}.
  15431. @param entry AclEntry to get the effective action
  15432. @param permArg Permission for the path. However if the client is NOT
  15433. communicating with old namenode, then this argument will not have
  15434. any preference.
  15435. @return Returns the effective permission for the entry.
  15436. @throws IllegalArgumentException If the client communicating with old
  15437. namenode and permission is not passed as an argument.]]>
  15438. </doc>
  15439. </method>
  15440. <doc>
  15441. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  15442. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  15443. </doc>
  15444. </class>
  15445. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  15446. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  15447. <class name="FsAction" extends="java.lang.Enum"
  15448. abstract="false"
  15449. static="false" final="true" visibility="public"
  15450. deprecated="not deprecated">
  15451. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  15452. abstract="false" native="false" synchronized="false"
  15453. static="true" final="false" visibility="public"
  15454. deprecated="not deprecated">
  15455. </method>
  15456. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  15457. abstract="false" native="false" synchronized="false"
  15458. static="true" final="false" visibility="public"
  15459. deprecated="not deprecated">
  15460. <param name="name" type="java.lang.String"/>
  15461. </method>
  15462. <method name="implies" return="boolean"
  15463. abstract="false" native="false" synchronized="false"
  15464. static="false" final="false" visibility="public"
  15465. deprecated="not deprecated">
  15466. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  15467. <doc>
  15468. <![CDATA[Return true if this action implies that action.
  15469. @param that]]>
  15470. </doc>
  15471. </method>
  15472. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  15473. abstract="false" native="false" synchronized="false"
  15474. static="false" final="false" visibility="public"
  15475. deprecated="not deprecated">
  15476. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  15477. <doc>
  15478. <![CDATA[AND operation.]]>
  15479. </doc>
  15480. </method>
  15481. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  15482. abstract="false" native="false" synchronized="false"
  15483. static="false" final="false" visibility="public"
  15484. deprecated="not deprecated">
  15485. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  15486. <doc>
  15487. <![CDATA[OR operation.]]>
  15488. </doc>
  15489. </method>
  15490. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  15491. abstract="false" native="false" synchronized="false"
  15492. static="false" final="false" visibility="public"
  15493. deprecated="not deprecated">
  15494. <doc>
  15495. <![CDATA[NOT operation.]]>
  15496. </doc>
  15497. </method>
  15498. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  15499. abstract="false" native="false" synchronized="false"
  15500. static="true" final="false" visibility="public"
  15501. deprecated="not deprecated">
  15502. <param name="permission" type="java.lang.String"/>
  15503. <doc>
  15504. <![CDATA[Get the FsAction enum for String representation of permissions
  15505. @param permission
  15506. 3-character string representation of permission. ex: rwx
  15507. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  15508. Otherwise returns null]]>
  15509. </doc>
  15510. </method>
  15511. <field name="SYMBOL" type="java.lang.String"
  15512. transient="false" volatile="false"
  15513. static="false" final="true" visibility="public"
  15514. deprecated="not deprecated">
  15515. <doc>
  15516. <![CDATA[Symbolic representation]]>
  15517. </doc>
  15518. </field>
  15519. <doc>
  15520. <![CDATA[File system actions, e.g. read, write, etc.]]>
  15521. </doc>
  15522. </class>
  15523. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  15524. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  15525. <class name="FsPermission" extends="java.lang.Object"
  15526. abstract="false"
  15527. static="false" final="false" visibility="public"
  15528. deprecated="not deprecated">
  15529. <implements name="org.apache.hadoop.io.Writable"/>
  15530. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  15531. static="false" final="false" visibility="public"
  15532. deprecated="not deprecated">
  15533. <doc>
  15534. <![CDATA[Construct by the given {@link FsAction}.
  15535. @param u user action
  15536. @param g group action
  15537. @param o other action]]>
  15538. </doc>
  15539. </constructor>
  15540. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  15541. static="false" final="false" visibility="public"
  15542. deprecated="not deprecated">
  15543. </constructor>
  15544. <constructor name="FsPermission" type="short"
  15545. static="false" final="false" visibility="public"
  15546. deprecated="not deprecated">
  15547. <doc>
  15548. <![CDATA[Construct by the given mode.
  15549. @param mode
  15550. @see #toShort()]]>
  15551. </doc>
  15552. </constructor>
  15553. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  15554. static="false" final="false" visibility="public"
  15555. deprecated="not deprecated">
  15556. <doc>
  15557. <![CDATA[Copy constructor
  15558. @param other other permission]]>
  15559. </doc>
  15560. </constructor>
  15561. <constructor name="FsPermission" type="java.lang.String"
  15562. static="false" final="false" visibility="public"
  15563. deprecated="not deprecated">
  15564. <doc>
  15565. <![CDATA[Construct by given mode, either in octal or symbolic format.
  15566. @param mode mode as a string, either in octal or symbolic format
  15567. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  15568. </doc>
  15569. </constructor>
  15570. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  15571. abstract="false" native="false" synchronized="false"
  15572. static="true" final="false" visibility="public"
  15573. deprecated="not deprecated">
  15574. <param name="permission" type="short"/>
  15575. <doc>
  15576. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  15577. </doc>
  15578. </method>
  15579. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  15580. abstract="false" native="false" synchronized="false"
  15581. static="false" final="false" visibility="public"
  15582. deprecated="not deprecated">
  15583. <doc>
  15584. <![CDATA[Return user {@link FsAction}.]]>
  15585. </doc>
  15586. </method>
  15587. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  15588. abstract="false" native="false" synchronized="false"
  15589. static="false" final="false" visibility="public"
  15590. deprecated="not deprecated">
  15591. <doc>
  15592. <![CDATA[Return group {@link FsAction}.]]>
  15593. </doc>
  15594. </method>
  15595. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  15596. abstract="false" native="false" synchronized="false"
  15597. static="false" final="false" visibility="public"
  15598. deprecated="not deprecated">
  15599. <doc>
  15600. <![CDATA[Return other {@link FsAction}.]]>
  15601. </doc>
  15602. </method>
  15603. <method name="fromShort"
  15604. abstract="false" native="false" synchronized="false"
  15605. static="false" final="false" visibility="public"
  15606. deprecated="not deprecated">
  15607. <param name="n" type="short"/>
  15608. </method>
  15609. <method name="write"
  15610. abstract="false" native="false" synchronized="false"
  15611. static="false" final="false" visibility="public"
  15612. deprecated="not deprecated">
  15613. <param name="out" type="java.io.DataOutput"/>
  15614. <exception name="IOException" type="java.io.IOException"/>
  15615. </method>
  15616. <method name="readFields"
  15617. abstract="false" native="false" synchronized="false"
  15618. static="false" final="false" visibility="public"
  15619. deprecated="not deprecated">
  15620. <param name="in" type="java.io.DataInput"/>
  15621. <exception name="IOException" type="java.io.IOException"/>
  15622. </method>
  15623. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  15624. abstract="false" native="false" synchronized="false"
  15625. static="true" final="false" visibility="public"
  15626. deprecated="not deprecated">
  15627. <param name="in" type="java.io.DataInput"/>
  15628. <exception name="IOException" type="java.io.IOException"/>
  15629. <doc>
  15630. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  15631. </doc>
  15632. </method>
  15633. <method name="toShort" return="short"
  15634. abstract="false" native="false" synchronized="false"
  15635. static="false" final="false" visibility="public"
  15636. deprecated="not deprecated">
  15637. <doc>
  15638. <![CDATA[Encode the object to a short.]]>
  15639. </doc>
  15640. </method>
  15641. <method name="toExtendedShort" return="short"
  15642. abstract="false" native="false" synchronized="false"
  15643. static="false" final="false" visibility="public"
  15644. deprecated="not deprecated">
  15645. <doc>
  15646. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  15647. return values outside the fixed range 00000 - 01777 if extended features
  15648. are encoded into this permission, such as the ACL bit.
  15649. @return short extended short representation of this permission]]>
  15650. </doc>
  15651. </method>
  15652. <method name="toOctal" return="short"
  15653. abstract="false" native="false" synchronized="false"
  15654. static="false" final="false" visibility="public"
  15655. deprecated="not deprecated">
  15656. <doc>
  15657. <![CDATA[Returns the FsPermission in an octal format.
  15658. @return short Unlike {@link #toShort()} which provides a binary
  15659. representation, this method returns the standard octal style permission.]]>
  15660. </doc>
  15661. </method>
  15662. <method name="equals" return="boolean"
  15663. abstract="false" native="false" synchronized="false"
  15664. static="false" final="false" visibility="public"
  15665. deprecated="not deprecated">
  15666. <param name="obj" type="java.lang.Object"/>
  15667. </method>
  15668. <method name="hashCode" return="int"
  15669. abstract="false" native="false" synchronized="false"
  15670. static="false" final="false" visibility="public"
  15671. deprecated="not deprecated">
  15672. </method>
  15673. <method name="toString" return="java.lang.String"
  15674. abstract="false" native="false" synchronized="false"
  15675. static="false" final="false" visibility="public"
  15676. deprecated="not deprecated">
  15677. </method>
  15678. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  15679. abstract="false" native="false" synchronized="false"
  15680. static="false" final="false" visibility="public"
  15681. deprecated="not deprecated">
  15682. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15683. <doc>
  15684. <![CDATA[Apply a umask to this permission and return a new one.
  15685. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  15686. The mode argument for these operations is modified by removing the bits
  15687. which are set in the umask. Thus, the umask limits the permissions which
  15688. newly created files and directories get.
  15689. @param umask The umask to use
  15690. @return The effective permission]]>
  15691. </doc>
  15692. </method>
  15693. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  15694. abstract="false" native="false" synchronized="false"
  15695. static="true" final="false" visibility="public"
  15696. deprecated="not deprecated">
  15697. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15698. <doc>
  15699. <![CDATA[Get the user file creation mask (umask)
  15700. {@code UMASK_LABEL} config param has umask value that is either symbolic
  15701. or octal.
  15702. Symbolic umask is applied relative to file mode creation mask;
  15703. the permission op characters '+' clears the corresponding bit in the mask,
  15704. '-' sets bits in the mask.
  15705. Octal umask, the specified bits are set in the file mode creation mask.
  15706. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  15707. </doc>
  15708. </method>
  15709. <method name="getStickyBit" return="boolean"
  15710. abstract="false" native="false" synchronized="false"
  15711. static="false" final="false" visibility="public"
  15712. deprecated="not deprecated">
  15713. </method>
  15714. <method name="getAclBit" return="boolean"
  15715. abstract="false" native="false" synchronized="false"
  15716. static="false" final="false" visibility="public"
  15717. deprecated="not deprecated">
  15718. <doc>
  15719. <![CDATA[Returns true if there is also an ACL (access control list).
  15720. @return boolean true if there is also an ACL (access control list).]]>
  15721. </doc>
  15722. </method>
  15723. <method name="getEncryptedBit" return="boolean"
  15724. abstract="false" native="false" synchronized="false"
  15725. static="false" final="false" visibility="public"
  15726. deprecated="not deprecated">
  15727. <doc>
  15728. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  15729. </doc>
  15730. </method>
  15731. <method name="setUMask"
  15732. abstract="false" native="false" synchronized="false"
  15733. static="true" final="false" visibility="public"
  15734. deprecated="not deprecated">
  15735. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15736. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15737. <doc>
  15738. <![CDATA[Set the user file creation mask (umask)]]>
  15739. </doc>
  15740. </method>
  15741. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15742. abstract="false" native="false" synchronized="false"
  15743. static="true" final="false" visibility="public"
  15744. deprecated="not deprecated">
  15745. <doc>
  15746. <![CDATA[Get the default permission for directory and symlink.
  15747. In previous versions, this default permission was also used to
  15748. create files, so files created end up with ugo+x permission.
  15749. See HADOOP-9155 for detail.
  15750. Two new methods are added to solve this, please use
  15751. {@link FsPermission#getDirDefault()} for directory, and use
  15752. {@link FsPermission#getFileDefault()} for file.
  15753. This method is kept for compatibility.]]>
  15754. </doc>
  15755. </method>
  15756. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15757. abstract="false" native="false" synchronized="false"
  15758. static="true" final="false" visibility="public"
  15759. deprecated="not deprecated">
  15760. <doc>
  15761. <![CDATA[Get the default permission for directory.]]>
  15762. </doc>
  15763. </method>
  15764. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15765. abstract="false" native="false" synchronized="false"
  15766. static="true" final="false" visibility="public"
  15767. deprecated="not deprecated">
  15768. <doc>
  15769. <![CDATA[Get the default permission for file.]]>
  15770. </doc>
  15771. </method>
  15772. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  15773. abstract="false" native="false" synchronized="false"
  15774. static="true" final="false" visibility="public"
  15775. deprecated="not deprecated">
  15776. <doc>
  15777. <![CDATA[Get the default permission for cache pools.]]>
  15778. </doc>
  15779. </method>
  15780. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  15781. abstract="false" native="false" synchronized="false"
  15782. static="true" final="false" visibility="public"
  15783. deprecated="not deprecated">
  15784. <param name="unixSymbolicPermission" type="java.lang.String"/>
  15785. <doc>
  15786. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  15787. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  15788. </doc>
  15789. </method>
  15790. <field name="MAX_PERMISSION_LENGTH" type="int"
  15791. transient="false" volatile="false"
  15792. static="true" final="true" visibility="public"
  15793. deprecated="not deprecated">
  15794. <doc>
  15795. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  15796. </doc>
  15797. </field>
  15798. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  15799. transient="false" volatile="false"
  15800. static="true" final="true" visibility="public"
  15801. deprecated="not deprecated">
  15802. <doc>
  15803. <![CDATA[umask property label deprecated key and code in getUMask method
  15804. to accommodate it may be removed in version .23]]>
  15805. </doc>
  15806. </field>
  15807. <field name="UMASK_LABEL" type="java.lang.String"
  15808. transient="false" volatile="false"
  15809. static="true" final="true" visibility="public"
  15810. deprecated="not deprecated">
  15811. </field>
  15812. <field name="DEFAULT_UMASK" type="int"
  15813. transient="false" volatile="false"
  15814. static="true" final="true" visibility="public"
  15815. deprecated="not deprecated">
  15816. </field>
  15817. <doc>
  15818. <![CDATA[A class for file/directory permissions.]]>
  15819. </doc>
  15820. </class>
  15821. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  15822. </package>
  15823. <package name="org.apache.hadoop.fs.sftp">
  15824. </package>
  15825. <package name="org.apache.hadoop.fs.shell.find">
  15826. </package>
  15827. <package name="org.apache.hadoop.fs.viewfs">
  15828. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  15829. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  15830. abstract="false"
  15831. static="false" final="false" visibility="public"
  15832. deprecated="not deprecated">
  15833. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  15834. static="false" final="false" visibility="public"
  15835. deprecated="not deprecated">
  15836. </constructor>
  15837. <constructor name="NotInMountpointException" type="java.lang.String"
  15838. static="false" final="false" visibility="public"
  15839. deprecated="not deprecated">
  15840. </constructor>
  15841. <method name="getMessage" return="java.lang.String"
  15842. abstract="false" native="false" synchronized="false"
  15843. static="false" final="false" visibility="public"
  15844. deprecated="not deprecated">
  15845. </method>
  15846. <doc>
  15847. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  15848. Exception class used in cases where the given path is not mounted
  15849. through viewfs.]]>
  15850. </doc>
  15851. </class>
  15852. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  15853. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  15854. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  15855. abstract="false"
  15856. static="false" final="false" visibility="public"
  15857. deprecated="not deprecated">
  15858. <constructor name="ViewFileSystem"
  15859. static="false" final="false" visibility="public"
  15860. deprecated="not deprecated">
  15861. <exception name="IOException" type="java.io.IOException"/>
  15862. <doc>
  15863. <![CDATA[This is the constructor with the signature needed by
  15864. {@link FileSystem#createFileSystem(URI, Configuration)}
  15865. After this constructor is called initialize() is called.
  15866. @throws IOException]]>
  15867. </doc>
  15868. </constructor>
  15869. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  15870. static="false" final="false" visibility="public"
  15871. deprecated="not deprecated">
  15872. <exception name="IOException" type="java.io.IOException"/>
  15873. <doc>
  15874. <![CDATA[Convenience Constructor for apps to call directly
  15875. @param conf
  15876. @throws IOException]]>
  15877. </doc>
  15878. </constructor>
  15879. <method name="getScheme" return="java.lang.String"
  15880. abstract="false" native="false" synchronized="false"
  15881. static="false" final="false" visibility="public"
  15882. deprecated="not deprecated">
  15883. <doc>
  15884. <![CDATA[Return the protocol scheme for the FileSystem.
  15885. @return <code>viewfs</code>]]>
  15886. </doc>
  15887. </method>
  15888. <method name="initialize"
  15889. abstract="false" native="false" synchronized="false"
  15890. static="false" final="false" visibility="public"
  15891. deprecated="not deprecated">
  15892. <param name="theUri" type="java.net.URI"/>
  15893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15894. <exception name="IOException" type="java.io.IOException"/>
  15895. <doc>
  15896. <![CDATA[Called after a new FileSystem instance is constructed.
  15897. @param theUri a uri whose authority section names the host, port, etc. for
  15898. this FileSystem
  15899. @param conf the configuration]]>
  15900. </doc>
  15901. </method>
  15902. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  15903. abstract="false" native="false" synchronized="false"
  15904. static="false" final="false" visibility="public"
  15905. deprecated="not deprecated">
  15906. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15907. <exception name="IOException" type="java.io.IOException"/>
  15908. </method>
  15909. <method name="getUri" return="java.net.URI"
  15910. abstract="false" native="false" synchronized="false"
  15911. static="false" final="false" visibility="public"
  15912. deprecated="not deprecated">
  15913. </method>
  15914. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  15915. abstract="false" native="false" synchronized="false"
  15916. static="false" final="false" visibility="public"
  15917. deprecated="not deprecated">
  15918. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15919. <exception name="IOException" type="java.io.IOException"/>
  15920. </method>
  15921. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  15922. abstract="false" native="false" synchronized="false"
  15923. static="false" final="false" visibility="public"
  15924. deprecated="not deprecated">
  15925. </method>
  15926. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  15927. abstract="false" native="false" synchronized="false"
  15928. static="false" final="false" visibility="public"
  15929. deprecated="not deprecated">
  15930. </method>
  15931. <method name="setWorkingDirectory"
  15932. abstract="false" native="false" synchronized="false"
  15933. static="false" final="false" visibility="public"
  15934. deprecated="not deprecated">
  15935. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  15936. </method>
  15937. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  15938. abstract="false" native="false" synchronized="false"
  15939. static="false" final="false" visibility="public"
  15940. deprecated="not deprecated">
  15941. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15942. <param name="bufferSize" type="int"/>
  15943. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15944. <exception name="IOException" type="java.io.IOException"/>
  15945. </method>
  15946. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  15947. abstract="false" native="false" synchronized="false"
  15948. static="false" final="false" visibility="public"
  15949. deprecated="not deprecated">
  15950. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15951. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15952. <param name="flags" type="java.util.EnumSet"/>
  15953. <param name="bufferSize" type="int"/>
  15954. <param name="replication" type="short"/>
  15955. <param name="blockSize" type="long"/>
  15956. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15957. <exception name="IOException" type="java.io.IOException"/>
  15958. </method>
  15959. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  15960. abstract="false" native="false" synchronized="false"
  15961. static="false" final="false" visibility="public"
  15962. deprecated="not deprecated">
  15963. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15964. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  15965. <param name="overwrite" type="boolean"/>
  15966. <param name="bufferSize" type="int"/>
  15967. <param name="replication" type="short"/>
  15968. <param name="blockSize" type="long"/>
  15969. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  15970. <exception name="IOException" type="java.io.IOException"/>
  15971. </method>
  15972. <method name="delete" return="boolean"
  15973. abstract="false" native="false" synchronized="false"
  15974. static="false" final="false" visibility="public"
  15975. deprecated="not deprecated">
  15976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15977. <param name="recursive" type="boolean"/>
  15978. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15979. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15980. <exception name="IOException" type="java.io.IOException"/>
  15981. </method>
  15982. <method name="delete" return="boolean"
  15983. abstract="false" native="false" synchronized="false"
  15984. static="false" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  15987. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  15988. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  15989. <exception name="IOException" type="java.io.IOException"/>
  15990. </method>
  15991. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  15992. abstract="false" native="false" synchronized="false"
  15993. static="false" final="false" visibility="public"
  15994. deprecated="not deprecated">
  15995. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  15996. <param name="start" type="long"/>
  15997. <param name="len" type="long"/>
  15998. <exception name="IOException" type="java.io.IOException"/>
  15999. </method>
  16000. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  16001. abstract="false" native="false" synchronized="false"
  16002. static="false" final="false" visibility="public"
  16003. deprecated="not deprecated">
  16004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16005. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16006. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16007. <exception name="IOException" type="java.io.IOException"/>
  16008. </method>
  16009. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16010. abstract="false" native="false" synchronized="false"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16014. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16015. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16016. <exception name="IOException" type="java.io.IOException"/>
  16017. </method>
  16018. <method name="access"
  16019. abstract="false" native="false" synchronized="false"
  16020. static="false" final="false" visibility="public"
  16021. deprecated="not deprecated">
  16022. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16023. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  16024. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16025. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16026. <exception name="IOException" type="java.io.IOException"/>
  16027. </method>
  16028. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  16029. abstract="false" native="false" synchronized="false"
  16030. static="false" final="false" visibility="public"
  16031. deprecated="not deprecated">
  16032. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16033. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16034. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16035. <exception name="IOException" type="java.io.IOException"/>
  16036. </method>
  16037. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  16038. abstract="false" native="false" synchronized="false"
  16039. static="false" final="false" visibility="public"
  16040. deprecated="not deprecated">
  16041. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16042. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  16043. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16044. <exception name="IOException" type="java.io.IOException"/>
  16045. </method>
  16046. <method name="mkdirs" return="boolean"
  16047. abstract="false" native="false" synchronized="false"
  16048. static="false" final="false" visibility="public"
  16049. deprecated="not deprecated">
  16050. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  16051. <exception name="IOException" type="java.io.IOException"/>
  16052. </method>
  16053. <method name="mkdirs" return="boolean"
  16054. abstract="false" native="false" synchronized="false"
  16055. static="false" final="false" visibility="public"
  16056. deprecated="not deprecated">
  16057. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  16058. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16059. <exception name="IOException" type="java.io.IOException"/>
  16060. </method>
  16061. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16062. abstract="false" native="false" synchronized="false"
  16063. static="false" final="false" visibility="public"
  16064. deprecated="not deprecated">
  16065. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16066. <param name="bufferSize" type="int"/>
  16067. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16068. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16069. <exception name="IOException" type="java.io.IOException"/>
  16070. </method>
  16071. <method name="rename" return="boolean"
  16072. abstract="false" native="false" synchronized="false"
  16073. static="false" final="false" visibility="public"
  16074. deprecated="not deprecated">
  16075. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16076. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16077. <exception name="IOException" type="java.io.IOException"/>
  16078. </method>
  16079. <method name="truncate" return="boolean"
  16080. abstract="false" native="false" synchronized="false"
  16081. static="false" final="false" visibility="public"
  16082. deprecated="not deprecated">
  16083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16084. <param name="newLength" type="long"/>
  16085. <exception name="IOException" type="java.io.IOException"/>
  16086. </method>
  16087. <method name="setOwner"
  16088. abstract="false" native="false" synchronized="false"
  16089. static="false" final="false" visibility="public"
  16090. deprecated="not deprecated">
  16091. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16092. <param name="username" type="java.lang.String"/>
  16093. <param name="groupname" type="java.lang.String"/>
  16094. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16095. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16096. <exception name="IOException" type="java.io.IOException"/>
  16097. </method>
  16098. <method name="setPermission"
  16099. abstract="false" native="false" synchronized="false"
  16100. static="false" final="false" visibility="public"
  16101. deprecated="not deprecated">
  16102. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16103. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16104. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16105. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16106. <exception name="IOException" type="java.io.IOException"/>
  16107. </method>
  16108. <method name="setReplication" return="boolean"
  16109. abstract="false" native="false" synchronized="false"
  16110. static="false" final="false" visibility="public"
  16111. deprecated="not deprecated">
  16112. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16113. <param name="replication" type="short"/>
  16114. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16115. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16116. <exception name="IOException" type="java.io.IOException"/>
  16117. </method>
  16118. <method name="setTimes"
  16119. abstract="false" native="false" synchronized="false"
  16120. static="false" final="false" visibility="public"
  16121. deprecated="not deprecated">
  16122. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16123. <param name="mtime" type="long"/>
  16124. <param name="atime" type="long"/>
  16125. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16126. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16127. <exception name="IOException" type="java.io.IOException"/>
  16128. </method>
  16129. <method name="modifyAclEntries"
  16130. abstract="false" native="false" synchronized="false"
  16131. static="false" final="false" visibility="public"
  16132. deprecated="not deprecated">
  16133. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16134. <param name="aclSpec" type="java.util.List"/>
  16135. <exception name="IOException" type="java.io.IOException"/>
  16136. </method>
  16137. <method name="removeAclEntries"
  16138. abstract="false" native="false" synchronized="false"
  16139. static="false" final="false" visibility="public"
  16140. deprecated="not deprecated">
  16141. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16142. <param name="aclSpec" type="java.util.List"/>
  16143. <exception name="IOException" type="java.io.IOException"/>
  16144. </method>
  16145. <method name="removeDefaultAcl"
  16146. abstract="false" native="false" synchronized="false"
  16147. static="false" final="false" visibility="public"
  16148. deprecated="not deprecated">
  16149. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16150. <exception name="IOException" type="java.io.IOException"/>
  16151. </method>
  16152. <method name="removeAcl"
  16153. abstract="false" native="false" synchronized="false"
  16154. static="false" final="false" visibility="public"
  16155. deprecated="not deprecated">
  16156. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16157. <exception name="IOException" type="java.io.IOException"/>
  16158. </method>
  16159. <method name="setAcl"
  16160. abstract="false" native="false" synchronized="false"
  16161. static="false" final="false" visibility="public"
  16162. deprecated="not deprecated">
  16163. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16164. <param name="aclSpec" type="java.util.List"/>
  16165. <exception name="IOException" type="java.io.IOException"/>
  16166. </method>
  16167. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  16168. abstract="false" native="false" synchronized="false"
  16169. static="false" final="false" visibility="public"
  16170. deprecated="not deprecated">
  16171. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16172. <exception name="IOException" type="java.io.IOException"/>
  16173. </method>
  16174. <method name="setXAttr"
  16175. abstract="false" native="false" synchronized="false"
  16176. static="false" final="false" visibility="public"
  16177. deprecated="not deprecated">
  16178. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16179. <param name="name" type="java.lang.String"/>
  16180. <param name="value" type="byte[]"/>
  16181. <param name="flag" type="java.util.EnumSet"/>
  16182. <exception name="IOException" type="java.io.IOException"/>
  16183. </method>
  16184. <method name="getXAttr" return="byte[]"
  16185. abstract="false" native="false" synchronized="false"
  16186. static="false" final="false" visibility="public"
  16187. deprecated="not deprecated">
  16188. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16189. <param name="name" type="java.lang.String"/>
  16190. <exception name="IOException" type="java.io.IOException"/>
  16191. </method>
  16192. <method name="getXAttrs" return="java.util.Map"
  16193. abstract="false" native="false" synchronized="false"
  16194. static="false" final="false" visibility="public"
  16195. deprecated="not deprecated">
  16196. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16197. <exception name="IOException" type="java.io.IOException"/>
  16198. </method>
  16199. <method name="getXAttrs" return="java.util.Map"
  16200. abstract="false" native="false" synchronized="false"
  16201. static="false" final="false" visibility="public"
  16202. deprecated="not deprecated">
  16203. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16204. <param name="names" type="java.util.List"/>
  16205. <exception name="IOException" type="java.io.IOException"/>
  16206. </method>
  16207. <method name="listXAttrs" return="java.util.List"
  16208. abstract="false" native="false" synchronized="false"
  16209. static="false" final="false" visibility="public"
  16210. deprecated="not deprecated">
  16211. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16212. <exception name="IOException" type="java.io.IOException"/>
  16213. </method>
  16214. <method name="removeXAttr"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="public"
  16217. deprecated="not deprecated">
  16218. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16219. <param name="name" type="java.lang.String"/>
  16220. <exception name="IOException" type="java.io.IOException"/>
  16221. </method>
  16222. <method name="setVerifyChecksum"
  16223. abstract="false" native="false" synchronized="false"
  16224. static="false" final="false" visibility="public"
  16225. deprecated="not deprecated">
  16226. <param name="verifyChecksum" type="boolean"/>
  16227. </method>
  16228. <method name="getDefaultBlockSize" return="long"
  16229. abstract="false" native="false" synchronized="false"
  16230. static="false" final="false" visibility="public"
  16231. deprecated="not deprecated">
  16232. </method>
  16233. <method name="getDefaultReplication" return="short"
  16234. abstract="false" native="false" synchronized="false"
  16235. static="false" final="false" visibility="public"
  16236. deprecated="not deprecated">
  16237. </method>
  16238. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16239. abstract="false" native="false" synchronized="false"
  16240. static="false" final="false" visibility="public"
  16241. deprecated="not deprecated">
  16242. <exception name="IOException" type="java.io.IOException"/>
  16243. </method>
  16244. <method name="getDefaultBlockSize" return="long"
  16245. abstract="false" native="false" synchronized="false"
  16246. static="false" final="false" visibility="public"
  16247. deprecated="not deprecated">
  16248. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16249. </method>
  16250. <method name="getDefaultReplication" return="short"
  16251. abstract="false" native="false" synchronized="false"
  16252. static="false" final="false" visibility="public"
  16253. deprecated="not deprecated">
  16254. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16255. </method>
  16256. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16257. abstract="false" native="false" synchronized="false"
  16258. static="false" final="false" visibility="public"
  16259. deprecated="not deprecated">
  16260. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16261. <exception name="IOException" type="java.io.IOException"/>
  16262. </method>
  16263. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  16264. abstract="false" native="false" synchronized="false"
  16265. static="false" final="false" visibility="public"
  16266. deprecated="not deprecated">
  16267. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16268. <exception name="IOException" type="java.io.IOException"/>
  16269. </method>
  16270. <method name="getQuotaUsage" return="org.apache.hadoop.fs.QuotaUsage"
  16271. abstract="false" native="false" synchronized="false"
  16272. static="false" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16275. <exception name="IOException" type="java.io.IOException"/>
  16276. </method>
  16277. <method name="setWriteChecksum"
  16278. abstract="false" native="false" synchronized="false"
  16279. static="false" final="false" visibility="public"
  16280. deprecated="not deprecated">
  16281. <param name="writeChecksum" type="boolean"/>
  16282. </method>
  16283. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  16284. abstract="false" native="false" synchronized="false"
  16285. static="false" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. </method>
  16288. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  16289. abstract="false" native="false" synchronized="false"
  16290. static="false" final="false" visibility="public"
  16291. deprecated="not deprecated">
  16292. </method>
  16293. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  16294. abstract="false" native="false" synchronized="false"
  16295. static="false" final="false" visibility="public"
  16296. deprecated="not deprecated">
  16297. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16298. <param name="snapshotName" type="java.lang.String"/>
  16299. <exception name="IOException" type="java.io.IOException"/>
  16300. </method>
  16301. <method name="renameSnapshot"
  16302. abstract="false" native="false" synchronized="false"
  16303. static="false" final="false" visibility="public"
  16304. deprecated="not deprecated">
  16305. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16306. <param name="snapshotOldName" type="java.lang.String"/>
  16307. <param name="snapshotNewName" type="java.lang.String"/>
  16308. <exception name="IOException" type="java.io.IOException"/>
  16309. </method>
  16310. <method name="deleteSnapshot"
  16311. abstract="false" native="false" synchronized="false"
  16312. static="false" final="false" visibility="public"
  16313. deprecated="not deprecated">
  16314. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16315. <param name="snapshotName" type="java.lang.String"/>
  16316. <exception name="IOException" type="java.io.IOException"/>
  16317. </method>
  16318. <method name="getTrashRoot" return="org.apache.hadoop.fs.Path"
  16319. abstract="false" native="false" synchronized="false"
  16320. static="false" final="false" visibility="public"
  16321. deprecated="not deprecated">
  16322. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16323. <doc>
  16324. <![CDATA[Get the trash root directory for current user when the path
  16325. specified is deleted.
  16326. If FORCE_INSIDE_MOUNT_POINT flag is not set, return the default trash root
  16327. from targetFS.
  16328. When FORCE_INSIDE_MOUNT_POINT is set to true,
  16329. <ol>
  16330. <li>
  16331. If the trash root for path p is in the same mount point as path p,
  16332. and one of:
  16333. <ol>
  16334. <li>The mount point isn't at the top of the target fs.</li>
  16335. <li>The resolved path of path is root (in fallback FS).</li>
  16336. <li>The trash isn't in user's target fs home directory
  16337. get the corresponding viewFS path for the trash root and return
  16338. it.
  16339. </li>
  16340. </ol>
  16341. </li>
  16342. <li>
  16343. else, return the trash root under the root of the mount point
  16344. (/{mntpoint}/.Trash/{user}).
  16345. </li>
  16346. </ol>
  16347. These conditions handle several different important cases:
  16348. <ul>
  16349. <li>File systems may need to have more local trash roots, such as
  16350. encryption zones or snapshot roots.</li>
  16351. <li>The fallback mount should use the user's home directory.</li>
  16352. <li>Cloud storage systems should not use trash in an implicity defined
  16353. home directory, per a container, unless it is the fallback fs.</li>
  16354. </ul>
  16355. @param path the trash root of the path to be determined.
  16356. @return the trash root path.]]>
  16357. </doc>
  16358. </method>
  16359. <method name="getTrashRoots" return="java.util.Collection"
  16360. abstract="false" native="false" synchronized="false"
  16361. static="false" final="false" visibility="public"
  16362. deprecated="not deprecated">
  16363. <param name="allUsers" type="boolean"/>
  16364. <doc>
  16365. <![CDATA[Get all the trash roots for current user or all users.
  16366. When FORCE_INSIDE_MOUNT_POINT is set to true, we also return trash roots
  16367. under the root of each mount point, with their viewFS paths.
  16368. @param allUsers return trash roots for all users if true.
  16369. @return all Trash root directories.]]>
  16370. </doc>
  16371. </method>
  16372. <method name="close"
  16373. abstract="false" native="false" synchronized="false"
  16374. static="false" final="false" visibility="public"
  16375. deprecated="not deprecated">
  16376. <exception name="IOException" type="java.io.IOException"/>
  16377. </method>
  16378. <doc>
  16379. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  16380. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  16381. </doc>
  16382. </class>
  16383. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  16384. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  16385. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  16386. abstract="false"
  16387. static="false" final="false" visibility="public"
  16388. deprecated="not deprecated">
  16389. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  16390. static="false" final="false" visibility="public"
  16391. deprecated="not deprecated">
  16392. <exception name="IOException" type="java.io.IOException"/>
  16393. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  16394. </constructor>
  16395. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16396. abstract="false" native="false" synchronized="false"
  16397. static="false" final="false" visibility="public"
  16398. deprecated="not deprecated">
  16399. <exception name="IOException" type="java.io.IOException"/>
  16400. </method>
  16401. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  16402. abstract="false" native="false" synchronized="false"
  16403. static="false" final="false" visibility="public"
  16404. deprecated="not deprecated">
  16405. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16406. <exception name="IOException" type="java.io.IOException"/>
  16407. </method>
  16408. <method name="getUriDefaultPort" return="int"
  16409. abstract="false" native="false" synchronized="false"
  16410. static="false" final="false" visibility="public"
  16411. deprecated="not deprecated">
  16412. </method>
  16413. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  16414. abstract="false" native="false" synchronized="false"
  16415. static="false" final="false" visibility="public"
  16416. deprecated="not deprecated">
  16417. </method>
  16418. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  16419. abstract="false" native="false" synchronized="false"
  16420. static="false" final="false" visibility="public"
  16421. deprecated="not deprecated">
  16422. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16423. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16424. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16425. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16426. <exception name="IOException" type="java.io.IOException"/>
  16427. </method>
  16428. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  16429. abstract="false" native="false" synchronized="false"
  16430. static="false" final="false" visibility="public"
  16431. deprecated="not deprecated">
  16432. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16433. <param name="flag" type="java.util.EnumSet"/>
  16434. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16435. <param name="bufferSize" type="int"/>
  16436. <param name="replication" type="short"/>
  16437. <param name="blockSize" type="long"/>
  16438. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16439. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  16440. <param name="createParent" type="boolean"/>
  16441. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16442. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16443. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16444. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  16445. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  16446. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16447. <exception name="IOException" type="java.io.IOException"/>
  16448. </method>
  16449. <method name="delete" return="boolean"
  16450. abstract="false" native="false" synchronized="false"
  16451. static="false" final="false" visibility="public"
  16452. deprecated="not deprecated">
  16453. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16454. <param name="recursive" type="boolean"/>
  16455. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16456. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16457. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16458. <exception name="IOException" type="java.io.IOException"/>
  16459. </method>
  16460. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  16461. abstract="false" native="false" synchronized="false"
  16462. static="false" final="false" visibility="public"
  16463. deprecated="not deprecated">
  16464. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16465. <param name="start" type="long"/>
  16466. <param name="len" type="long"/>
  16467. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16468. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16469. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16470. <exception name="IOException" type="java.io.IOException"/>
  16471. </method>
  16472. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  16473. abstract="false" native="false" synchronized="false"
  16474. static="false" final="false" visibility="public"
  16475. deprecated="not deprecated">
  16476. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16477. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16478. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16479. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16480. <exception name="IOException" type="java.io.IOException"/>
  16481. </method>
  16482. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  16483. abstract="false" native="false" synchronized="false"
  16484. static="false" final="false" visibility="public"
  16485. deprecated="not deprecated">
  16486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16487. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16488. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16489. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16490. <exception name="IOException" type="java.io.IOException"/>
  16491. </method>
  16492. <method name="access"
  16493. abstract="false" native="false" synchronized="false"
  16494. static="false" final="false" visibility="public"
  16495. deprecated="not deprecated">
  16496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16497. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  16498. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16499. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16500. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16501. <exception name="IOException" type="java.io.IOException"/>
  16502. </method>
  16503. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  16504. abstract="false" native="false" synchronized="false"
  16505. static="false" final="false" visibility="public"
  16506. deprecated="not deprecated">
  16507. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16508. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16509. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16510. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  16511. <exception name="IOException" type="java.io.IOException"/>
  16512. </method>
  16513. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  16514. abstract="false" native="false" synchronized="false"
  16515. static="false" final="false" visibility="public"
  16516. deprecated="not deprecated">
  16517. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16518. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16519. <exception name="IOException" type="java.io.IOException"/>
  16520. </method>
  16521. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  16522. abstract="false" native="false" synchronized="false"
  16523. static="false" final="false" visibility="public"
  16524. deprecated="not deprecated">
  16525. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16526. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16527. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16528. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16529. <exception name="IOException" type="java.io.IOException"/>
  16530. </method>
  16531. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  16532. abstract="false" native="false" synchronized="false"
  16533. static="false" final="false" visibility="public"
  16534. deprecated="not deprecated">
  16535. <param name="f" type="org.apache.hadoop.fs.Path"/>
  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="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  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. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16547. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16548. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16549. <exception name="IOException" type="java.io.IOException"/>
  16550. </method>
  16551. <method name="mkdir"
  16552. abstract="false" native="false" synchronized="false"
  16553. static="false" final="false" visibility="public"
  16554. deprecated="not deprecated">
  16555. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  16556. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16557. <param name="createParent" type="boolean"/>
  16558. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16559. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16560. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16561. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16562. <exception name="IOException" type="java.io.IOException"/>
  16563. </method>
  16564. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  16565. abstract="false" native="false" synchronized="false"
  16566. static="false" final="false" visibility="public"
  16567. deprecated="not deprecated">
  16568. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16569. <param name="bufferSize" type="int"/>
  16570. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16571. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16572. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16573. <exception name="IOException" type="java.io.IOException"/>
  16574. </method>
  16575. <method name="truncate" return="boolean"
  16576. abstract="false" native="false" synchronized="false"
  16577. static="false" final="false" visibility="public"
  16578. deprecated="not deprecated">
  16579. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16580. <param name="newLength" type="long"/>
  16581. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16582. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16583. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16584. <exception name="IOException" type="java.io.IOException"/>
  16585. </method>
  16586. <method name="renameInternal"
  16587. abstract="false" native="false" synchronized="false"
  16588. static="false" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16591. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16592. <param name="overwrite" type="boolean"/>
  16593. <exception name="IOException" type="java.io.IOException"/>
  16594. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16595. </method>
  16596. <method name="renameInternal"
  16597. abstract="false" native="false" synchronized="false"
  16598. static="false" final="false" visibility="public"
  16599. deprecated="not deprecated">
  16600. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16601. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  16602. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16603. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  16604. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16605. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  16606. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16607. <exception name="IOException" type="java.io.IOException"/>
  16608. </method>
  16609. <method name="supportsSymlinks" return="boolean"
  16610. abstract="false" native="false" synchronized="false"
  16611. static="false" final="false" visibility="public"
  16612. deprecated="not deprecated">
  16613. </method>
  16614. <method name="createSymlink"
  16615. abstract="false" native="false" synchronized="false"
  16616. static="false" final="false" visibility="public"
  16617. deprecated="not deprecated">
  16618. <param name="target" type="org.apache.hadoop.fs.Path"/>
  16619. <param name="link" type="org.apache.hadoop.fs.Path"/>
  16620. <param name="createParent" type="boolean"/>
  16621. <exception name="IOException" type="java.io.IOException"/>
  16622. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16623. </method>
  16624. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="false" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16629. <exception name="IOException" type="java.io.IOException"/>
  16630. </method>
  16631. <method name="setOwner"
  16632. abstract="false" native="false" synchronized="false"
  16633. static="false" final="false" visibility="public"
  16634. deprecated="not deprecated">
  16635. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16636. <param name="username" type="java.lang.String"/>
  16637. <param name="groupname" type="java.lang.String"/>
  16638. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16639. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16640. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16641. <exception name="IOException" type="java.io.IOException"/>
  16642. </method>
  16643. <method name="setPermission"
  16644. abstract="false" native="false" synchronized="false"
  16645. static="false" final="false" visibility="public"
  16646. deprecated="not deprecated">
  16647. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16648. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  16649. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16650. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16651. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16652. <exception name="IOException" type="java.io.IOException"/>
  16653. </method>
  16654. <method name="setReplication" return="boolean"
  16655. abstract="false" native="false" synchronized="false"
  16656. static="false" final="false" visibility="public"
  16657. deprecated="not deprecated">
  16658. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16659. <param name="replication" type="short"/>
  16660. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16661. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16662. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16663. <exception name="IOException" type="java.io.IOException"/>
  16664. </method>
  16665. <method name="setTimes"
  16666. abstract="false" native="false" synchronized="false"
  16667. static="false" final="false" visibility="public"
  16668. deprecated="not deprecated">
  16669. <param name="f" type="org.apache.hadoop.fs.Path"/>
  16670. <param name="mtime" type="long"/>
  16671. <param name="atime" type="long"/>
  16672. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16673. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  16674. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  16675. <exception name="IOException" type="java.io.IOException"/>
  16676. </method>
  16677. <method name="setVerifyChecksum"
  16678. abstract="false" native="false" synchronized="false"
  16679. static="false" final="false" visibility="public"
  16680. deprecated="not deprecated">
  16681. <param name="verifyChecksum" type="boolean"/>
  16682. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  16683. <exception name="IOException" type="java.io.IOException"/>
  16684. </method>
  16685. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  16686. abstract="false" native="false" synchronized="false"
  16687. static="false" final="false" visibility="public"
  16688. deprecated="not deprecated">
  16689. </method>
  16690. <method name="getDelegationTokens" return="java.util.List"
  16691. abstract="false" native="false" synchronized="false"
  16692. static="false" final="false" visibility="public"
  16693. deprecated="not deprecated">
  16694. <param name="renewer" type="java.lang.String"/>
  16695. <exception name="IOException" type="java.io.IOException"/>
  16696. </method>
  16697. <method name="isValidName" return="boolean"
  16698. abstract="false" native="false" synchronized="false"
  16699. static="false" final="false" visibility="public"
  16700. deprecated="not deprecated">
  16701. <param name="src" type="java.lang.String"/>
  16702. </method>
  16703. <method name="modifyAclEntries"
  16704. abstract="false" native="false" synchronized="false"
  16705. static="false" final="false" visibility="public"
  16706. deprecated="not deprecated">
  16707. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16708. <param name="aclSpec" type="java.util.List"/>
  16709. <exception name="IOException" type="java.io.IOException"/>
  16710. </method>
  16711. <method name="removeAclEntries"
  16712. abstract="false" native="false" synchronized="false"
  16713. static="false" final="false" visibility="public"
  16714. deprecated="not deprecated">
  16715. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16716. <param name="aclSpec" type="java.util.List"/>
  16717. <exception name="IOException" type="java.io.IOException"/>
  16718. </method>
  16719. <method name="removeDefaultAcl"
  16720. abstract="false" native="false" synchronized="false"
  16721. static="false" final="false" visibility="public"
  16722. deprecated="not deprecated">
  16723. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16724. <exception name="IOException" type="java.io.IOException"/>
  16725. </method>
  16726. <method name="removeAcl"
  16727. abstract="false" native="false" synchronized="false"
  16728. static="false" final="false" visibility="public"
  16729. deprecated="not deprecated">
  16730. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16731. <exception name="IOException" type="java.io.IOException"/>
  16732. </method>
  16733. <method name="setAcl"
  16734. abstract="false" native="false" synchronized="false"
  16735. static="false" final="false" visibility="public"
  16736. deprecated="not deprecated">
  16737. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16738. <param name="aclSpec" type="java.util.List"/>
  16739. <exception name="IOException" type="java.io.IOException"/>
  16740. </method>
  16741. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  16742. abstract="false" native="false" synchronized="false"
  16743. static="false" final="false" visibility="public"
  16744. deprecated="not deprecated">
  16745. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16746. <exception name="IOException" type="java.io.IOException"/>
  16747. </method>
  16748. <method name="setXAttr"
  16749. abstract="false" native="false" synchronized="false"
  16750. static="false" final="false" visibility="public"
  16751. deprecated="not deprecated">
  16752. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16753. <param name="name" type="java.lang.String"/>
  16754. <param name="value" type="byte[]"/>
  16755. <param name="flag" type="java.util.EnumSet"/>
  16756. <exception name="IOException" type="java.io.IOException"/>
  16757. </method>
  16758. <method name="getXAttr" return="byte[]"
  16759. abstract="false" native="false" synchronized="false"
  16760. static="false" final="false" visibility="public"
  16761. deprecated="not deprecated">
  16762. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16763. <param name="name" type="java.lang.String"/>
  16764. <exception name="IOException" type="java.io.IOException"/>
  16765. </method>
  16766. <method name="getXAttrs" return="java.util.Map"
  16767. abstract="false" native="false" synchronized="false"
  16768. static="false" final="false" visibility="public"
  16769. deprecated="not deprecated">
  16770. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16771. <exception name="IOException" type="java.io.IOException"/>
  16772. </method>
  16773. <method name="getXAttrs" return="java.util.Map"
  16774. abstract="false" native="false" synchronized="false"
  16775. static="false" final="false" visibility="public"
  16776. deprecated="not deprecated">
  16777. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16778. <param name="names" type="java.util.List"/>
  16779. <exception name="IOException" type="java.io.IOException"/>
  16780. </method>
  16781. <method name="listXAttrs" return="java.util.List"
  16782. abstract="false" native="false" synchronized="false"
  16783. static="false" final="false" visibility="public"
  16784. deprecated="not deprecated">
  16785. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16786. <exception name="IOException" type="java.io.IOException"/>
  16787. </method>
  16788. <method name="removeXAttr"
  16789. abstract="false" native="false" synchronized="false"
  16790. static="false" final="false" visibility="public"
  16791. deprecated="not deprecated">
  16792. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16793. <param name="name" type="java.lang.String"/>
  16794. <exception name="IOException" type="java.io.IOException"/>
  16795. </method>
  16796. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  16797. abstract="false" native="false" synchronized="false"
  16798. static="false" final="false" visibility="public"
  16799. deprecated="not deprecated">
  16800. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16801. <param name="snapshotName" type="java.lang.String"/>
  16802. <exception name="IOException" type="java.io.IOException"/>
  16803. </method>
  16804. <method name="renameSnapshot"
  16805. abstract="false" native="false" synchronized="false"
  16806. static="false" final="false" visibility="public"
  16807. deprecated="not deprecated">
  16808. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16809. <param name="snapshotOldName" type="java.lang.String"/>
  16810. <param name="snapshotNewName" type="java.lang.String"/>
  16811. <exception name="IOException" type="java.io.IOException"/>
  16812. </method>
  16813. <method name="deleteSnapshot"
  16814. abstract="false" native="false" synchronized="false"
  16815. static="false" final="false" visibility="public"
  16816. deprecated="not deprecated">
  16817. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16818. <param name="snapshotName" type="java.lang.String"/>
  16819. <exception name="IOException" type="java.io.IOException"/>
  16820. </method>
  16821. <method name="setStoragePolicy"
  16822. abstract="false" native="false" synchronized="false"
  16823. static="false" final="false" visibility="public"
  16824. deprecated="not deprecated">
  16825. <param name="path" type="org.apache.hadoop.fs.Path"/>
  16826. <param name="policyName" type="java.lang.String"/>
  16827. <exception name="IOException" type="java.io.IOException"/>
  16828. </method>
  16829. <method name="unsetStoragePolicy"
  16830. abstract="false" native="false" synchronized="false"
  16831. static="false" final="false" visibility="public"
  16832. deprecated="not deprecated">
  16833. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16834. <exception name="IOException" type="java.io.IOException"/>
  16835. </method>
  16836. <method name="getStoragePolicy" return="org.apache.hadoop.fs.BlockStoragePolicySpi"
  16837. abstract="false" native="false" synchronized="false"
  16838. static="false" final="false" visibility="public"
  16839. deprecated="not deprecated">
  16840. <param name="src" type="org.apache.hadoop.fs.Path"/>
  16841. <exception name="IOException" type="java.io.IOException"/>
  16842. <doc>
  16843. <![CDATA[Retrieve the storage policy for a given file or directory.
  16844. @param src file or directory path.
  16845. @return storage policy for give file.
  16846. @throws IOException]]>
  16847. </doc>
  16848. </method>
  16849. <doc>
  16850. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  16851. mount table. The viewFs file system is implemented completely in memory on
  16852. the client side. The client-side mount table allows a client to provide a
  16853. customized view of a file system namespace that is composed from
  16854. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  16855. For example one could have a mount table that provides links such as
  16856. <ul>
  16857. <li> /user -> hdfs://nnContainingUserDir/user
  16858. <li> /project/foo -> hdfs://nnProject1/projects/foo
  16859. <li> /project/bar -> hdfs://nnProject2/projects/bar
  16860. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  16861. </ul>
  16862. ViewFs is specified with the following URI: <b>viewfs:///</b>
  16863. <p>
  16864. To use viewfs one would typically set the default file system in the
  16865. config (i.e. fs.defaultFS < = viewfs:///) along with the
  16866. mount table config variables as described below.
  16867. <p>
  16868. <b> ** Config variables to specify the mount table entries ** </b>
  16869. <p>
  16870. The file system is initialized from the standard Hadoop config through
  16871. config variables.
  16872. See {@link FsConstants} for URI and Scheme constants;
  16873. See {@link Constants} for config var constants;
  16874. see {@link ConfigUtil} for convenient lib.
  16875. <p>
  16876. All the mount table config entries for view fs are prefixed by
  16877. <b>fs.viewfs.mounttable.</b>
  16878. For example the above example can be specified with the following
  16879. config variables:
  16880. <ul>
  16881. <li> fs.viewfs.mounttable.default.link./user=
  16882. hdfs://nnContainingUserDir/user
  16883. <li> fs.viewfs.mounttable.default.link./project/foo=
  16884. hdfs://nnProject1/projects/foo
  16885. <li> fs.viewfs.mounttable.default.link./project/bar=
  16886. hdfs://nnProject2/projects/bar
  16887. <li> fs.viewfs.mounttable.default.link./tmp=
  16888. hdfs://nnTmp/privateTmpForUserXXX
  16889. </ul>
  16890. The default mount table (when no authority is specified) is
  16891. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  16892. The authority component of a URI can be used to specify a different mount
  16893. table. For example,
  16894. <ul>
  16895. <li> viewfs://sanjayMountable/
  16896. </ul>
  16897. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  16898. <p>
  16899. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  16900. <p>
  16901. One can also use "MergeMounts" to merge several directories (this is
  16902. sometimes called union-mounts or junction-mounts in the literature.
  16903. For example of the home directories are stored on say two file systems
  16904. (because they do not fit on one) then one could specify a mount
  16905. entry such as following merges two dirs:
  16906. <ul>
  16907. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  16908. </ul>
  16909. Such a mergeLink can be specified with the following config var where ","
  16910. is used as the separator for each of links to be merged:
  16911. <ul>
  16912. <li> fs.viewfs.mounttable.default.linkMerge./user=
  16913. hdfs://nnUser1/user,hdfs://nnUser1/user
  16914. </ul>
  16915. A special case of the merge mount is where mount table's root is merged
  16916. with the root (slash) of another file system:
  16917. <ul>
  16918. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  16919. </ul>
  16920. In this cases the root of the mount table is merged with the root of
  16921. <b>hdfs://nn99/ </b>]]>
  16922. </doc>
  16923. </class>
  16924. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  16925. </package>
  16926. <package name="org.apache.hadoop.ha">
  16927. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16928. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  16929. abstract="false"
  16930. static="false" final="false" visibility="public"
  16931. deprecated="not deprecated">
  16932. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  16933. static="false" final="false" visibility="public"
  16934. deprecated="not deprecated">
  16935. </constructor>
  16936. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  16937. static="false" final="false" visibility="public"
  16938. deprecated="not deprecated">
  16939. </constructor>
  16940. <doc>
  16941. <![CDATA[Indicates that the operator has specified an invalid configuration
  16942. for fencing methods.]]>
  16943. </doc>
  16944. </class>
  16945. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  16946. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  16947. <class name="FailoverFailedException" extends="java.lang.Exception"
  16948. abstract="false"
  16949. static="false" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <constructor name="FailoverFailedException" type="java.lang.String"
  16952. static="false" final="false" visibility="public"
  16953. deprecated="not deprecated">
  16954. </constructor>
  16955. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  16956. static="false" final="false" visibility="public"
  16957. deprecated="not deprecated">
  16958. </constructor>
  16959. <doc>
  16960. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  16961. </doc>
  16962. </class>
  16963. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  16964. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  16965. <interface name="FenceMethod" abstract="true"
  16966. static="false" final="false" visibility="public"
  16967. deprecated="not deprecated">
  16968. <method name="checkArgs"
  16969. abstract="false" native="false" synchronized="false"
  16970. static="false" final="false" visibility="public"
  16971. deprecated="not deprecated">
  16972. <param name="args" type="java.lang.String"/>
  16973. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16974. <doc>
  16975. <![CDATA[Verify that the given fencing method's arguments are valid.
  16976. @param args the arguments provided in the configuration. This may
  16977. be null if the operator did not configure any arguments.
  16978. @throws BadFencingConfigurationException if the arguments are invalid]]>
  16979. </doc>
  16980. </method>
  16981. <method name="tryFence" return="boolean"
  16982. abstract="false" native="false" synchronized="false"
  16983. static="false" final="false" visibility="public"
  16984. deprecated="not deprecated">
  16985. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  16986. <param name="args" type="java.lang.String"/>
  16987. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  16988. <doc>
  16989. <![CDATA[Attempt to fence the target node.
  16990. @param target the address (host:ipcport) of the service to fence
  16991. @param args the configured arguments, which were checked at startup by
  16992. {@link #checkArgs(String)}
  16993. @return true if fencing was successful, false if unsuccessful or
  16994. indeterminate
  16995. @throws BadFencingConfigurationException if the configuration was
  16996. determined to be invalid only at runtime]]>
  16997. </doc>
  16998. </method>
  16999. <doc>
  17000. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  17001. another node from making continued progress. This might be implemented
  17002. by killing a process on the other node, by denying the other node's
  17003. access to shared storage, or by accessing a PDU to cut the other node's
  17004. power.
  17005. <p>
  17006. Since these methods are often vendor- or device-specific, operators
  17007. may implement this interface in order to achieve fencing.
  17008. <p>
  17009. Fencing is configured by the operator as an ordered list of methods to
  17010. attempt. Each method will be tried in turn, and the next in the list
  17011. will only be attempted if the previous one fails. See {@link NodeFencer}
  17012. for more information.
  17013. <p>
  17014. If an implementation also implements {@link Configurable} then its
  17015. <code>setConf</code> method will be called upon instantiation.]]>
  17016. </doc>
  17017. </interface>
  17018. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  17019. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  17020. <interface name="HAServiceProtocol" abstract="true"
  17021. static="false" final="false" visibility="public"
  17022. deprecated="not deprecated">
  17023. <method name="monitorHealth"
  17024. abstract="false" native="false" synchronized="false"
  17025. static="false" final="false" visibility="public"
  17026. deprecated="not deprecated">
  17027. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  17028. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17029. <exception name="IOException" type="java.io.IOException"/>
  17030. <doc>
  17031. <![CDATA[Monitor the health of service. This periodically called by the HA
  17032. frameworks to monitor the health of the service.
  17033. Service is expected to perform checks to ensure it is functional.
  17034. If the service is not healthy due to failure or partial failure,
  17035. it is expected to throw {@link HealthCheckFailedException}.
  17036. The definition of service not healthy is left to the service.
  17037. Note that when health check of an Active service fails,
  17038. failover to standby may be done.
  17039. @throws HealthCheckFailedException
  17040. if the health check of a service fails.
  17041. @throws AccessControlException
  17042. if access is denied.
  17043. @throws IOException
  17044. if other errors happen]]>
  17045. </doc>
  17046. </method>
  17047. <method name="transitionToActive"
  17048. abstract="false" native="false" synchronized="false"
  17049. static="false" final="false" visibility="public"
  17050. deprecated="not deprecated">
  17051. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17052. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  17053. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17054. <exception name="IOException" type="java.io.IOException"/>
  17055. <doc>
  17056. <![CDATA[Request service to transition to active state. No operation, if the
  17057. service is already in active state.
  17058. @throws ServiceFailedException
  17059. if transition from standby to active fails.
  17060. @throws AccessControlException
  17061. if access is denied.
  17062. @throws IOException
  17063. if other errors happen]]>
  17064. </doc>
  17065. </method>
  17066. <method name="transitionToStandby"
  17067. abstract="false" native="false" synchronized="false"
  17068. static="false" final="false" visibility="public"
  17069. deprecated="not deprecated">
  17070. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17071. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  17072. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17073. <exception name="IOException" type="java.io.IOException"/>
  17074. <doc>
  17075. <![CDATA[Request service to transition to standby state. No operation, if the
  17076. service is already in standby state.
  17077. @throws ServiceFailedException
  17078. if transition from active to standby fails.
  17079. @throws AccessControlException
  17080. if access is denied.
  17081. @throws IOException
  17082. if other errors happen]]>
  17083. </doc>
  17084. </method>
  17085. <method name="transitionToObserver"
  17086. abstract="false" native="false" synchronized="false"
  17087. static="false" final="false" visibility="public"
  17088. deprecated="not deprecated">
  17089. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17090. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  17091. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17092. <exception name="IOException" type="java.io.IOException"/>
  17093. <doc>
  17094. <![CDATA[Request service to transition to observer state. No operation, if the
  17095. service is already in observer state.
  17096. @throws ServiceFailedException
  17097. if transition from standby to observer fails.
  17098. @throws AccessControlException
  17099. if access is denied.
  17100. @throws IOException
  17101. if other errors happen]]>
  17102. </doc>
  17103. </method>
  17104. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  17105. abstract="false" native="false" synchronized="false"
  17106. static="false" final="false" visibility="public"
  17107. deprecated="not deprecated">
  17108. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  17109. <exception name="IOException" type="java.io.IOException"/>
  17110. <doc>
  17111. <![CDATA[Return the current status of the service. The status indicates
  17112. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  17113. some additional information.
  17114. @throws AccessControlException
  17115. if access is denied.
  17116. @throws IOException
  17117. if other errors happen
  17118. @see HAServiceStatus]]>
  17119. </doc>
  17120. </method>
  17121. <field name="versionID" type="long"
  17122. transient="false" volatile="false"
  17123. static="true" final="true" visibility="public"
  17124. deprecated="not deprecated">
  17125. <doc>
  17126. <![CDATA[Initial version of the protocol]]>
  17127. </doc>
  17128. </field>
  17129. <doc>
  17130. <![CDATA[Protocol interface that provides High Availability related primitives to
  17131. monitor and fail-over the service.
  17132. This interface could be used by HA frameworks to manage the service.]]>
  17133. </doc>
  17134. </interface>
  17135. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  17136. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  17137. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  17138. abstract="false"
  17139. static="false" final="false" visibility="public"
  17140. deprecated="not deprecated">
  17141. <constructor name="HAServiceProtocolHelper"
  17142. static="false" final="false" visibility="public"
  17143. deprecated="not deprecated">
  17144. </constructor>
  17145. <method name="monitorHealth"
  17146. abstract="false" native="false" synchronized="false"
  17147. static="true" final="false" visibility="public"
  17148. deprecated="not deprecated">
  17149. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17150. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17151. <exception name="IOException" type="java.io.IOException"/>
  17152. </method>
  17153. <method name="transitionToActive"
  17154. abstract="false" native="false" synchronized="false"
  17155. static="true" final="false" visibility="public"
  17156. deprecated="not deprecated">
  17157. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17158. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17159. <exception name="IOException" type="java.io.IOException"/>
  17160. </method>
  17161. <method name="transitionToStandby"
  17162. abstract="false" native="false" synchronized="false"
  17163. static="true" final="false" visibility="public"
  17164. deprecated="not deprecated">
  17165. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17166. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17167. <exception name="IOException" type="java.io.IOException"/>
  17168. </method>
  17169. <method name="transitionToObserver"
  17170. abstract="false" native="false" synchronized="false"
  17171. static="true" final="false" visibility="public"
  17172. deprecated="not deprecated">
  17173. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  17174. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  17175. <exception name="IOException" type="java.io.IOException"/>
  17176. </method>
  17177. <doc>
  17178. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  17179. unwraps the {@link RemoteException} to specific exceptions.]]>
  17180. </doc>
  17181. </class>
  17182. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  17183. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  17184. <class name="HAServiceTarget" extends="java.lang.Object"
  17185. abstract="true"
  17186. static="false" final="false" visibility="public"
  17187. deprecated="not deprecated">
  17188. <constructor name="HAServiceTarget"
  17189. static="false" final="false" visibility="public"
  17190. deprecated="not deprecated">
  17191. </constructor>
  17192. <method name="getAddress" return="java.net.InetSocketAddress"
  17193. abstract="true" native="false" synchronized="false"
  17194. static="false" final="false" visibility="public"
  17195. deprecated="not deprecated">
  17196. <doc>
  17197. <![CDATA[@return the IPC address of the target node.]]>
  17198. </doc>
  17199. </method>
  17200. <method name="getHealthMonitorAddress" return="java.net.InetSocketAddress"
  17201. abstract="false" native="false" synchronized="false"
  17202. static="false" final="false" visibility="public"
  17203. deprecated="not deprecated">
  17204. <doc>
  17205. <![CDATA[Returns an optional separate RPC server address for health checks at the
  17206. target node. If defined, then this address is used by the health monitor
  17207. for the {@link HAServiceProtocol#monitorHealth()} and
  17208. {@link HAServiceProtocol#getServiceStatus()} calls. This can be useful for
  17209. separating out these calls onto separate RPC handlers to protect against
  17210. resource exhaustion in the main RPC handler pool. If null (which is the
  17211. default implementation), then all RPC calls go to the address defined by
  17212. {@link #getAddress()}.
  17213. @return IPC address of the lifeline RPC server on the target node, or null
  17214. if no lifeline RPC server is used]]>
  17215. </doc>
  17216. </method>
  17217. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  17218. abstract="true" native="false" synchronized="false"
  17219. static="false" final="false" visibility="public"
  17220. deprecated="not deprecated">
  17221. <doc>
  17222. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  17223. </doc>
  17224. </method>
  17225. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  17226. abstract="true" native="false" synchronized="false"
  17227. static="false" final="false" visibility="public"
  17228. deprecated="not deprecated">
  17229. <doc>
  17230. <![CDATA[@return a Fencer implementation configured for this target node]]>
  17231. </doc>
  17232. </method>
  17233. <method name="checkFencingConfigured"
  17234. abstract="true" native="false" synchronized="false"
  17235. static="false" final="false" visibility="public"
  17236. deprecated="not deprecated">
  17237. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  17238. <doc>
  17239. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  17240. appears to be invalid. This is divorced from the above
  17241. {@link #getFencer()} method so that the configuration can be checked
  17242. during the pre-flight phase of failover.]]>
  17243. </doc>
  17244. </method>
  17245. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  17246. abstract="false" native="false" synchronized="false"
  17247. static="false" final="false" visibility="public"
  17248. deprecated="not deprecated">
  17249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17250. <param name="timeoutMs" type="int"/>
  17251. <exception name="IOException" type="java.io.IOException"/>
  17252. <doc>
  17253. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  17254. </doc>
  17255. </method>
  17256. <method name="setTransitionTargetHAStatus"
  17257. abstract="false" native="false" synchronized="false"
  17258. static="false" final="false" visibility="public"
  17259. deprecated="not deprecated">
  17260. <param name="status" type="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"/>
  17261. </method>
  17262. <method name="getTransitionTargetHAStatus" return="org.apache.hadoop.ha.HAServiceProtocol.HAServiceState"
  17263. abstract="false" native="false" synchronized="false"
  17264. static="false" final="false" visibility="public"
  17265. deprecated="not deprecated">
  17266. </method>
  17267. <method name="getHealthMonitorProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  17268. abstract="false" native="false" synchronized="false"
  17269. static="false" final="false" visibility="public"
  17270. deprecated="not deprecated">
  17271. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17272. <param name="timeoutMs" type="int"/>
  17273. <exception name="IOException" type="java.io.IOException"/>
  17274. <doc>
  17275. <![CDATA[Returns a proxy to connect to the target HA service for health monitoring.
  17276. If {@link #getHealthMonitorAddress()} is implemented to return a non-null
  17277. address, then this proxy will connect to that address. Otherwise, the
  17278. returned proxy defaults to using {@link #getAddress()}, which means this
  17279. method's behavior is identical to {@link #getProxy(Configuration, int)}.
  17280. @param conf Configuration
  17281. @param timeoutMs timeout in milliseconds
  17282. @return a proxy to connect to the target HA service for health monitoring
  17283. @throws IOException if there is an error]]>
  17284. </doc>
  17285. </method>
  17286. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  17287. abstract="false" native="false" synchronized="false"
  17288. static="false" final="false" visibility="public"
  17289. deprecated="not deprecated">
  17290. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17291. <param name="timeoutMs" type="int"/>
  17292. <exception name="IOException" type="java.io.IOException"/>
  17293. <doc>
  17294. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  17295. </doc>
  17296. </method>
  17297. <method name="getFencingParameters" return="java.util.Map"
  17298. abstract="false" native="false" synchronized="false"
  17299. static="false" final="true" visibility="public"
  17300. deprecated="not deprecated">
  17301. </method>
  17302. <method name="addFencingParameters"
  17303. abstract="false" native="false" synchronized="false"
  17304. static="false" final="false" visibility="protected"
  17305. deprecated="not deprecated">
  17306. <param name="ret" type="java.util.Map"/>
  17307. <doc>
  17308. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  17309. expose to fencing implementations/scripts. Fencing methods are free
  17310. to use this map as they see fit -- notably, the shell script
  17311. implementation takes each entry, prepends 'target_', substitutes
  17312. '_' for '.', and adds it to the environment of the script.
  17313. Subclass implementations should be sure to delegate to the superclass
  17314. implementation as well as adding their own keys.
  17315. @param ret map which can be mutated to pass parameters to the fencer]]>
  17316. </doc>
  17317. </method>
  17318. <method name="isAutoFailoverEnabled" return="boolean"
  17319. abstract="false" native="false" synchronized="false"
  17320. static="false" final="false" visibility="public"
  17321. deprecated="not deprecated">
  17322. <doc>
  17323. <![CDATA[@return true if auto failover should be considered enabled]]>
  17324. </doc>
  17325. </method>
  17326. <method name="supportObserver" return="boolean"
  17327. abstract="false" native="false" synchronized="false"
  17328. static="false" final="false" visibility="public"
  17329. deprecated="not deprecated">
  17330. <doc>
  17331. <![CDATA[@return true if this target supports the Observer state, false otherwise.]]>
  17332. </doc>
  17333. </method>
  17334. <doc>
  17335. <![CDATA[Represents a target of the client side HA administration commands.]]>
  17336. </doc>
  17337. </class>
  17338. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  17339. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  17340. <class name="HealthCheckFailedException" extends="java.io.IOException"
  17341. abstract="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <constructor name="HealthCheckFailedException" type="java.lang.String"
  17345. static="false" final="false" visibility="public"
  17346. deprecated="not deprecated">
  17347. </constructor>
  17348. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  17349. static="false" final="false" visibility="public"
  17350. deprecated="not deprecated">
  17351. </constructor>
  17352. <doc>
  17353. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  17354. </doc>
  17355. </class>
  17356. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  17357. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  17358. <class name="ServiceFailedException" extends="java.io.IOException"
  17359. abstract="false"
  17360. static="false" final="false" visibility="public"
  17361. deprecated="not deprecated">
  17362. <constructor name="ServiceFailedException" type="java.lang.String"
  17363. static="false" final="false" visibility="public"
  17364. deprecated="not deprecated">
  17365. </constructor>
  17366. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  17367. static="false" final="false" visibility="public"
  17368. deprecated="not deprecated">
  17369. </constructor>
  17370. <doc>
  17371. <![CDATA[Exception thrown to indicate that an operation performed
  17372. to modify the state of a service or application failed.]]>
  17373. </doc>
  17374. </class>
  17375. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  17376. </package>
  17377. <package name="org.apache.hadoop.ha.protocolPB">
  17378. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  17379. <interface name="HAServiceProtocolPB" abstract="true"
  17380. static="false" final="false" visibility="public"
  17381. deprecated="not deprecated">
  17382. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  17383. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  17384. </interface>
  17385. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  17386. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  17387. <interface name="ZKFCProtocolPB" abstract="true"
  17388. static="false" final="false" visibility="public"
  17389. deprecated="not deprecated">
  17390. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  17391. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  17392. </interface>
  17393. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  17394. </package>
  17395. <package name="org.apache.hadoop.http.lib">
  17396. <doc>
  17397. <![CDATA[This package provides user-selectable (via configuration) classes that add
  17398. functionality to the web UI. They are configured as a list of classes in the
  17399. configuration parameter <b>hadoop.http.filter.initializers</b>.
  17400. <ul>
  17401. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  17402. users a static configured user.
  17403. </ul>]]>
  17404. </doc>
  17405. </package>
  17406. <package name="org.apache.hadoop.io">
  17407. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  17408. <class name="AbstractMapWritable" extends="java.lang.Object"
  17409. abstract="true"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. <implements name="org.apache.hadoop.io.Writable"/>
  17413. <implements name="org.apache.hadoop.conf.Configurable"/>
  17414. <constructor name="AbstractMapWritable"
  17415. static="false" final="false" visibility="protected"
  17416. deprecated="not deprecated">
  17417. <doc>
  17418. <![CDATA[constructor.]]>
  17419. </doc>
  17420. </constructor>
  17421. <method name="addToMap"
  17422. abstract="false" native="false" synchronized="true"
  17423. static="false" final="false" visibility="protected"
  17424. deprecated="not deprecated">
  17425. <param name="clazz" type="java.lang.Class"/>
  17426. <doc>
  17427. <![CDATA[Add a Class to the maps if it is not already present.]]>
  17428. </doc>
  17429. </method>
  17430. <method name="getClass" return="java.lang.Class"
  17431. abstract="false" native="false" synchronized="false"
  17432. static="false" final="false" visibility="protected"
  17433. deprecated="not deprecated">
  17434. <param name="id" type="byte"/>
  17435. <doc>
  17436. <![CDATA[@return the Class class for the specified id]]>
  17437. </doc>
  17438. </method>
  17439. <method name="getId" return="byte"
  17440. abstract="false" native="false" synchronized="false"
  17441. static="false" final="false" visibility="protected"
  17442. deprecated="not deprecated">
  17443. <param name="clazz" type="java.lang.Class"/>
  17444. <doc>
  17445. <![CDATA[@return the id for the specified Class]]>
  17446. </doc>
  17447. </method>
  17448. <method name="copy"
  17449. abstract="false" native="false" synchronized="true"
  17450. static="false" final="false" visibility="protected"
  17451. deprecated="not deprecated">
  17452. <param name="other" type="org.apache.hadoop.io.Writable"/>
  17453. <doc>
  17454. <![CDATA[Used by child copy constructors.]]>
  17455. </doc>
  17456. </method>
  17457. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17458. abstract="false" native="false" synchronized="false"
  17459. static="false" final="false" visibility="public"
  17460. deprecated="not deprecated">
  17461. <doc>
  17462. <![CDATA[@return the conf]]>
  17463. </doc>
  17464. </method>
  17465. <method name="setConf"
  17466. abstract="false" native="false" synchronized="false"
  17467. static="false" final="false" visibility="public"
  17468. deprecated="not deprecated">
  17469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17470. <doc>
  17471. <![CDATA[@param conf the conf to set]]>
  17472. </doc>
  17473. </method>
  17474. <method name="write"
  17475. abstract="false" native="false" synchronized="false"
  17476. static="false" final="false" visibility="public"
  17477. deprecated="not deprecated">
  17478. <param name="out" type="java.io.DataOutput"/>
  17479. <exception name="IOException" type="java.io.IOException"/>
  17480. </method>
  17481. <method name="readFields"
  17482. abstract="false" native="false" synchronized="false"
  17483. static="false" final="false" visibility="public"
  17484. deprecated="not deprecated">
  17485. <param name="in" type="java.io.DataInput"/>
  17486. <exception name="IOException" type="java.io.IOException"/>
  17487. </method>
  17488. <doc>
  17489. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  17490. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  17491. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  17492. maps travel with the class instead of being static.
  17493. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  17494. in any specific map instance.]]>
  17495. </doc>
  17496. </class>
  17497. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  17498. <!-- start class org.apache.hadoop.io.ArrayFile -->
  17499. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  17500. abstract="false"
  17501. static="false" final="false" visibility="public"
  17502. deprecated="not deprecated">
  17503. <constructor name="ArrayFile"
  17504. static="false" final="false" visibility="protected"
  17505. deprecated="not deprecated">
  17506. </constructor>
  17507. <doc>
  17508. <![CDATA[A dense file-based mapping from integers to values.]]>
  17509. </doc>
  17510. </class>
  17511. <!-- end class org.apache.hadoop.io.ArrayFile -->
  17512. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  17513. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  17514. abstract="false"
  17515. static="false" final="false" visibility="public"
  17516. deprecated="not deprecated">
  17517. <implements name="org.apache.hadoop.io.Writable"/>
  17518. <constructor name="ArrayPrimitiveWritable"
  17519. static="false" final="false" visibility="public"
  17520. deprecated="not deprecated">
  17521. <doc>
  17522. <![CDATA[Construct an empty instance, for use during Writable read]]>
  17523. </doc>
  17524. </constructor>
  17525. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  17526. static="false" final="false" visibility="public"
  17527. deprecated="not deprecated">
  17528. <doc>
  17529. <![CDATA[Construct an instance of known type but no value yet
  17530. for use with type-specific wrapper classes]]>
  17531. </doc>
  17532. </constructor>
  17533. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  17534. static="false" final="false" visibility="public"
  17535. deprecated="not deprecated">
  17536. <doc>
  17537. <![CDATA[Wrap an existing array of primitives
  17538. @param value - array of primitives]]>
  17539. </doc>
  17540. </constructor>
  17541. <method name="get" return="java.lang.Object"
  17542. abstract="false" native="false" synchronized="false"
  17543. static="false" final="false" visibility="public"
  17544. deprecated="not deprecated">
  17545. <doc>
  17546. <![CDATA[Get the original array.
  17547. Client must cast it back to type componentType[]
  17548. (or may use type-specific wrapper classes).
  17549. @return - original array as Object]]>
  17550. </doc>
  17551. </method>
  17552. <method name="getComponentType" return="java.lang.Class"
  17553. abstract="false" native="false" synchronized="false"
  17554. static="false" final="false" visibility="public"
  17555. deprecated="not deprecated">
  17556. </method>
  17557. <method name="getDeclaredComponentType" return="java.lang.Class"
  17558. abstract="false" native="false" synchronized="false"
  17559. static="false" final="false" visibility="public"
  17560. deprecated="not deprecated">
  17561. </method>
  17562. <method name="isDeclaredComponentType" return="boolean"
  17563. abstract="false" native="false" synchronized="false"
  17564. static="false" final="false" visibility="public"
  17565. deprecated="not deprecated">
  17566. <param name="componentType" type="java.lang.Class"/>
  17567. </method>
  17568. <method name="set"
  17569. abstract="false" native="false" synchronized="false"
  17570. static="false" final="false" visibility="public"
  17571. deprecated="not deprecated">
  17572. <param name="value" type="java.lang.Object"/>
  17573. </method>
  17574. <method name="write"
  17575. abstract="false" native="false" synchronized="false"
  17576. static="false" final="false" visibility="public"
  17577. deprecated="not deprecated">
  17578. <param name="out" type="java.io.DataOutput"/>
  17579. <exception name="IOException" type="java.io.IOException"/>
  17580. </method>
  17581. <method name="readFields"
  17582. abstract="false" native="false" synchronized="false"
  17583. static="false" final="false" visibility="public"
  17584. deprecated="not deprecated">
  17585. <param name="in" type="java.io.DataInput"/>
  17586. <exception name="IOException" type="java.io.IOException"/>
  17587. </method>
  17588. <doc>
  17589. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  17590. an array of primitives (e.g., int[], long[], etc.), with optimized
  17591. wire format, and without creating new objects per element.
  17592. This is a wrapper class only; it does not make a copy of the
  17593. underlying array.]]>
  17594. </doc>
  17595. </class>
  17596. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  17597. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  17598. <class name="ArrayWritable" extends="java.lang.Object"
  17599. abstract="false"
  17600. static="false" final="false" visibility="public"
  17601. deprecated="not deprecated">
  17602. <implements name="org.apache.hadoop.io.Writable"/>
  17603. <constructor name="ArrayWritable" type="java.lang.Class"
  17604. static="false" final="false" visibility="public"
  17605. deprecated="not deprecated">
  17606. </constructor>
  17607. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  17608. static="false" final="false" visibility="public"
  17609. deprecated="not deprecated">
  17610. </constructor>
  17611. <constructor name="ArrayWritable" type="java.lang.String[]"
  17612. static="false" final="false" visibility="public"
  17613. deprecated="not deprecated">
  17614. </constructor>
  17615. <method name="getValueClass" return="java.lang.Class"
  17616. abstract="false" native="false" synchronized="false"
  17617. static="false" final="false" visibility="public"
  17618. deprecated="not deprecated">
  17619. </method>
  17620. <method name="toStrings" return="java.lang.String[]"
  17621. abstract="false" native="false" synchronized="false"
  17622. static="false" final="false" visibility="public"
  17623. deprecated="not deprecated">
  17624. </method>
  17625. <method name="toArray" return="java.lang.Object"
  17626. abstract="false" native="false" synchronized="false"
  17627. static="false" final="false" visibility="public"
  17628. deprecated="not deprecated">
  17629. </method>
  17630. <method name="set"
  17631. abstract="false" native="false" synchronized="false"
  17632. static="false" final="false" visibility="public"
  17633. deprecated="not deprecated">
  17634. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  17635. </method>
  17636. <method name="get" return="org.apache.hadoop.io.Writable[]"
  17637. abstract="false" native="false" synchronized="false"
  17638. static="false" final="false" visibility="public"
  17639. deprecated="not deprecated">
  17640. </method>
  17641. <method name="readFields"
  17642. abstract="false" native="false" synchronized="false"
  17643. static="false" final="false" visibility="public"
  17644. deprecated="not deprecated">
  17645. <param name="in" type="java.io.DataInput"/>
  17646. <exception name="IOException" type="java.io.IOException"/>
  17647. </method>
  17648. <method name="write"
  17649. abstract="false" native="false" synchronized="false"
  17650. static="false" final="false" visibility="public"
  17651. deprecated="not deprecated">
  17652. <param name="out" type="java.io.DataOutput"/>
  17653. <exception name="IOException" type="java.io.IOException"/>
  17654. </method>
  17655. <doc>
  17656. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  17657. writable must all be instances of the same class. If this writable will be
  17658. the input for a Reducer, you will need to create a subclass that sets the
  17659. value to be of the proper type.
  17660. For example:
  17661. <code>
  17662. public class IntArrayWritable extends ArrayWritable {
  17663. public IntArrayWritable() {
  17664. super(IntWritable.class);
  17665. }
  17666. }
  17667. </code>]]>
  17668. </doc>
  17669. </class>
  17670. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  17671. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  17672. <class name="BinaryComparable" extends="java.lang.Object"
  17673. abstract="true"
  17674. static="false" final="false" visibility="public"
  17675. deprecated="not deprecated">
  17676. <implements name="java.lang.Comparable"/>
  17677. <constructor name="BinaryComparable"
  17678. static="false" final="false" visibility="public"
  17679. deprecated="not deprecated">
  17680. </constructor>
  17681. <method name="getLength" return="int"
  17682. abstract="true" native="false" synchronized="false"
  17683. static="false" final="false" visibility="public"
  17684. deprecated="not deprecated">
  17685. <doc>
  17686. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  17687. </doc>
  17688. </method>
  17689. <method name="getBytes" return="byte[]"
  17690. abstract="true" native="false" synchronized="false"
  17691. static="false" final="false" visibility="public"
  17692. deprecated="not deprecated">
  17693. <doc>
  17694. <![CDATA[Return representative byte array for this instance.]]>
  17695. </doc>
  17696. </method>
  17697. <method name="compareTo" return="int"
  17698. abstract="false" native="false" synchronized="false"
  17699. static="false" final="false" visibility="public"
  17700. deprecated="not deprecated">
  17701. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  17702. <doc>
  17703. <![CDATA[Compare bytes from {#getBytes()}.
  17704. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  17705. </doc>
  17706. </method>
  17707. <method name="compareTo" return="int"
  17708. abstract="false" native="false" synchronized="false"
  17709. static="false" final="false" visibility="public"
  17710. deprecated="not deprecated">
  17711. <param name="other" type="byte[]"/>
  17712. <param name="off" type="int"/>
  17713. <param name="len" type="int"/>
  17714. <doc>
  17715. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  17716. </doc>
  17717. </method>
  17718. <method name="equals" return="boolean"
  17719. abstract="false" native="false" synchronized="false"
  17720. static="false" final="false" visibility="public"
  17721. deprecated="not deprecated">
  17722. <param name="other" type="java.lang.Object"/>
  17723. <doc>
  17724. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  17725. </doc>
  17726. </method>
  17727. <method name="hashCode" return="int"
  17728. abstract="false" native="false" synchronized="false"
  17729. static="false" final="false" visibility="public"
  17730. deprecated="not deprecated">
  17731. <doc>
  17732. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  17733. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  17734. </doc>
  17735. </method>
  17736. <doc>
  17737. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  17738. types supporting ordering/permutation by a representative set of bytes.]]>
  17739. </doc>
  17740. </class>
  17741. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  17742. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  17743. <class name="BloomMapFile" extends="java.lang.Object"
  17744. abstract="false"
  17745. static="false" final="false" visibility="public"
  17746. deprecated="not deprecated">
  17747. <constructor name="BloomMapFile"
  17748. static="false" final="false" visibility="public"
  17749. deprecated="not deprecated">
  17750. </constructor>
  17751. <method name="delete"
  17752. abstract="false" native="false" synchronized="false"
  17753. static="true" final="false" visibility="public"
  17754. deprecated="not deprecated">
  17755. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17756. <param name="name" type="java.lang.String"/>
  17757. <exception name="IOException" type="java.io.IOException"/>
  17758. </method>
  17759. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  17760. transient="false" volatile="false"
  17761. static="true" final="true" visibility="public"
  17762. deprecated="not deprecated">
  17763. </field>
  17764. <field name="HASH_COUNT" type="int"
  17765. transient="false" volatile="false"
  17766. static="true" final="true" visibility="public"
  17767. deprecated="not deprecated">
  17768. </field>
  17769. <doc>
  17770. <![CDATA[This class extends {@link MapFile} and provides very much the same
  17771. functionality. However, it uses dynamic Bloom filters to provide
  17772. quick membership test for keys, and it offers a fast version of
  17773. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  17774. case of sparsely populated MapFile-s.]]>
  17775. </doc>
  17776. </class>
  17777. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  17778. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  17779. <class name="BooleanWritable" extends="java.lang.Object"
  17780. abstract="false"
  17781. static="false" final="false" visibility="public"
  17782. deprecated="not deprecated">
  17783. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17784. <constructor name="BooleanWritable"
  17785. static="false" final="false" visibility="public"
  17786. deprecated="not deprecated">
  17787. </constructor>
  17788. <constructor name="BooleanWritable" type="boolean"
  17789. static="false" final="false" visibility="public"
  17790. deprecated="not deprecated">
  17791. </constructor>
  17792. <method name="set"
  17793. abstract="false" native="false" synchronized="false"
  17794. static="false" final="false" visibility="public"
  17795. deprecated="not deprecated">
  17796. <param name="value" type="boolean"/>
  17797. <doc>
  17798. <![CDATA[Set the value of the BooleanWritable]]>
  17799. </doc>
  17800. </method>
  17801. <method name="get" return="boolean"
  17802. abstract="false" native="false" synchronized="false"
  17803. static="false" final="false" visibility="public"
  17804. deprecated="not deprecated">
  17805. <doc>
  17806. <![CDATA[Returns the value of the BooleanWritable]]>
  17807. </doc>
  17808. </method>
  17809. <method name="readFields"
  17810. abstract="false" native="false" synchronized="false"
  17811. static="false" final="false" visibility="public"
  17812. deprecated="not deprecated">
  17813. <param name="in" type="java.io.DataInput"/>
  17814. <exception name="IOException" type="java.io.IOException"/>
  17815. </method>
  17816. <method name="write"
  17817. abstract="false" native="false" synchronized="false"
  17818. static="false" final="false" visibility="public"
  17819. deprecated="not deprecated">
  17820. <param name="out" type="java.io.DataOutput"/>
  17821. <exception name="IOException" type="java.io.IOException"/>
  17822. </method>
  17823. <method name="equals" return="boolean"
  17824. abstract="false" native="false" synchronized="false"
  17825. static="false" final="false" visibility="public"
  17826. deprecated="not deprecated">
  17827. <param name="o" type="java.lang.Object"/>
  17828. </method>
  17829. <method name="hashCode" return="int"
  17830. abstract="false" native="false" synchronized="false"
  17831. static="false" final="false" visibility="public"
  17832. deprecated="not deprecated">
  17833. </method>
  17834. <method name="compareTo" return="int"
  17835. abstract="false" native="false" synchronized="false"
  17836. static="false" final="false" visibility="public"
  17837. deprecated="not deprecated">
  17838. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  17839. </method>
  17840. <method name="toString" return="java.lang.String"
  17841. abstract="false" native="false" synchronized="false"
  17842. static="false" final="false" visibility="public"
  17843. deprecated="not deprecated">
  17844. </method>
  17845. <doc>
  17846. <![CDATA[A WritableComparable for booleans.]]>
  17847. </doc>
  17848. </class>
  17849. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  17850. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  17851. <interface name="ByteBufferPool" abstract="true"
  17852. static="false" final="false" visibility="public"
  17853. deprecated="not deprecated">
  17854. <method name="getBuffer" return="java.nio.ByteBuffer"
  17855. abstract="false" native="false" synchronized="false"
  17856. static="false" final="false" visibility="public"
  17857. deprecated="not deprecated">
  17858. <param name="direct" type="boolean"/>
  17859. <param name="length" type="int"/>
  17860. <doc>
  17861. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  17862. removing a buffer from its internal cache, or by allocating a
  17863. new buffer.
  17864. @param direct Whether the buffer should be direct.
  17865. @param length The minimum length the buffer will have.
  17866. @return A new ByteBuffer. This ByteBuffer must be direct.
  17867. Its capacity can be less than what was requested, but
  17868. must be at least 1 byte.]]>
  17869. </doc>
  17870. </method>
  17871. <method name="putBuffer"
  17872. abstract="false" native="false" synchronized="false"
  17873. static="false" final="false" visibility="public"
  17874. deprecated="not deprecated">
  17875. <param name="buffer" type="java.nio.ByteBuffer"/>
  17876. <doc>
  17877. <![CDATA[Release a buffer back to the pool.
  17878. The pool may choose to put this buffer into its cache.
  17879. @param buffer a direct bytebuffer]]>
  17880. </doc>
  17881. </method>
  17882. </interface>
  17883. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  17884. <!-- start class org.apache.hadoop.io.BytesWritable -->
  17885. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  17886. abstract="false"
  17887. static="false" final="false" visibility="public"
  17888. deprecated="not deprecated">
  17889. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17890. <constructor name="BytesWritable"
  17891. static="false" final="false" visibility="public"
  17892. deprecated="not deprecated">
  17893. <doc>
  17894. <![CDATA[Create a zero-size sequence.]]>
  17895. </doc>
  17896. </constructor>
  17897. <constructor name="BytesWritable" type="byte[]"
  17898. static="false" final="false" visibility="public"
  17899. deprecated="not deprecated">
  17900. <doc>
  17901. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  17902. @param bytes This array becomes the backing storage for the object.]]>
  17903. </doc>
  17904. </constructor>
  17905. <constructor name="BytesWritable" type="byte[], int"
  17906. static="false" final="false" visibility="public"
  17907. deprecated="not deprecated">
  17908. <doc>
  17909. <![CDATA[Create a BytesWritable using the byte array as the initial value
  17910. and length as the length. Use this constructor if the array is larger
  17911. than the value it represents.
  17912. @param bytes This array becomes the backing storage for the object.
  17913. @param length The number of bytes to use from array.]]>
  17914. </doc>
  17915. </constructor>
  17916. <method name="copyBytes" return="byte[]"
  17917. abstract="false" native="false" synchronized="false"
  17918. static="false" final="false" visibility="public"
  17919. deprecated="not deprecated">
  17920. <doc>
  17921. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  17922. See {@link #getBytes()} for faster access to the underlying array.]]>
  17923. </doc>
  17924. </method>
  17925. <method name="getBytes" return="byte[]"
  17926. abstract="false" native="false" synchronized="false"
  17927. static="false" final="false" visibility="public"
  17928. deprecated="not deprecated">
  17929. <doc>
  17930. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  17931. if you need the returned array to be precisely the length of the data.
  17932. @return The data is only valid between 0 and getLength() - 1.]]>
  17933. </doc>
  17934. </method>
  17935. <method name="get" return="byte[]"
  17936. abstract="false" native="false" synchronized="false"
  17937. static="false" final="false" visibility="public"
  17938. deprecated="Use {@link #getBytes()} instead.">
  17939. <doc>
  17940. <![CDATA[Get the data from the BytesWritable.
  17941. @deprecated Use {@link #getBytes()} instead.]]>
  17942. </doc>
  17943. </method>
  17944. <method name="getLength" return="int"
  17945. abstract="false" native="false" synchronized="false"
  17946. static="false" final="false" visibility="public"
  17947. deprecated="not deprecated">
  17948. <doc>
  17949. <![CDATA[Get the current size of the buffer.]]>
  17950. </doc>
  17951. </method>
  17952. <method name="getSize" return="int"
  17953. abstract="false" native="false" synchronized="false"
  17954. static="false" final="false" visibility="public"
  17955. deprecated="Use {@link #getLength()} instead.">
  17956. <doc>
  17957. <![CDATA[Get the current size of the buffer.
  17958. @deprecated Use {@link #getLength()} instead.]]>
  17959. </doc>
  17960. </method>
  17961. <method name="setSize"
  17962. abstract="false" native="false" synchronized="false"
  17963. static="false" final="false" visibility="public"
  17964. deprecated="not deprecated">
  17965. <param name="size" type="int"/>
  17966. <doc>
  17967. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  17968. and any new values are undefined. The capacity is changed if it is
  17969. necessary.
  17970. @param size The new number of bytes]]>
  17971. </doc>
  17972. </method>
  17973. <method name="getCapacity" return="int"
  17974. abstract="false" native="false" synchronized="false"
  17975. static="false" final="false" visibility="public"
  17976. deprecated="not deprecated">
  17977. <doc>
  17978. <![CDATA[Get the capacity, which is the maximum size that could handled without
  17979. resizing the backing storage.
  17980. @return The number of bytes]]>
  17981. </doc>
  17982. </method>
  17983. <method name="setCapacity"
  17984. abstract="false" native="false" synchronized="false"
  17985. static="false" final="false" visibility="public"
  17986. deprecated="not deprecated">
  17987. <param name="new_cap" type="int"/>
  17988. <doc>
  17989. <![CDATA[Change the capacity of the backing storage.
  17990. The data is preserved.
  17991. @param new_cap The new capacity in bytes.]]>
  17992. </doc>
  17993. </method>
  17994. <method name="set"
  17995. abstract="false" native="false" synchronized="false"
  17996. static="false" final="false" visibility="public"
  17997. deprecated="not deprecated">
  17998. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  17999. <doc>
  18000. <![CDATA[Set the BytesWritable to the contents of the given newData.
  18001. @param newData the value to set this BytesWritable to.]]>
  18002. </doc>
  18003. </method>
  18004. <method name="set"
  18005. abstract="false" native="false" synchronized="false"
  18006. static="false" final="false" visibility="public"
  18007. deprecated="not deprecated">
  18008. <param name="newData" type="byte[]"/>
  18009. <param name="offset" type="int"/>
  18010. <param name="length" type="int"/>
  18011. <doc>
  18012. <![CDATA[Set the value to a copy of the given byte range
  18013. @param newData the new values to copy in
  18014. @param offset the offset in newData to start at
  18015. @param length the number of bytes to copy]]>
  18016. </doc>
  18017. </method>
  18018. <method name="readFields"
  18019. abstract="false" native="false" synchronized="false"
  18020. static="false" final="false" visibility="public"
  18021. deprecated="not deprecated">
  18022. <param name="in" type="java.io.DataInput"/>
  18023. <exception name="IOException" type="java.io.IOException"/>
  18024. </method>
  18025. <method name="write"
  18026. abstract="false" native="false" synchronized="false"
  18027. static="false" final="false" visibility="public"
  18028. deprecated="not deprecated">
  18029. <param name="out" type="java.io.DataOutput"/>
  18030. <exception name="IOException" type="java.io.IOException"/>
  18031. </method>
  18032. <method name="hashCode" return="int"
  18033. abstract="false" native="false" synchronized="false"
  18034. static="false" final="false" visibility="public"
  18035. deprecated="not deprecated">
  18036. </method>
  18037. <method name="equals" return="boolean"
  18038. abstract="false" native="false" synchronized="false"
  18039. static="false" final="false" visibility="public"
  18040. deprecated="not deprecated">
  18041. <param name="right_obj" type="java.lang.Object"/>
  18042. <doc>
  18043. <![CDATA[Are the two byte sequences equal?]]>
  18044. </doc>
  18045. </method>
  18046. <method name="toString" return="java.lang.String"
  18047. abstract="false" native="false" synchronized="false"
  18048. static="false" final="false" visibility="public"
  18049. deprecated="not deprecated">
  18050. <doc>
  18051. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  18052. </doc>
  18053. </method>
  18054. <doc>
  18055. <![CDATA[A byte sequence that is usable as a key or value.
  18056. It is resizable and distinguishes between the size of the sequence and
  18057. the current capacity. The hash function is the front of the md5 of the
  18058. buffer. The sort order is the same as memcmp.]]>
  18059. </doc>
  18060. </class>
  18061. <!-- end class org.apache.hadoop.io.BytesWritable -->
  18062. <!-- start class org.apache.hadoop.io.ByteWritable -->
  18063. <class name="ByteWritable" extends="java.lang.Object"
  18064. abstract="false"
  18065. static="false" final="false" visibility="public"
  18066. deprecated="not deprecated">
  18067. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18068. <constructor name="ByteWritable"
  18069. static="false" final="false" visibility="public"
  18070. deprecated="not deprecated">
  18071. </constructor>
  18072. <constructor name="ByteWritable" type="byte"
  18073. static="false" final="false" visibility="public"
  18074. deprecated="not deprecated">
  18075. </constructor>
  18076. <method name="set"
  18077. abstract="false" native="false" synchronized="false"
  18078. static="false" final="false" visibility="public"
  18079. deprecated="not deprecated">
  18080. <param name="value" type="byte"/>
  18081. <doc>
  18082. <![CDATA[Set the value of this ByteWritable.]]>
  18083. </doc>
  18084. </method>
  18085. <method name="get" return="byte"
  18086. abstract="false" native="false" synchronized="false"
  18087. static="false" final="false" visibility="public"
  18088. deprecated="not deprecated">
  18089. <doc>
  18090. <![CDATA[Return the value of this ByteWritable.]]>
  18091. </doc>
  18092. </method>
  18093. <method name="readFields"
  18094. abstract="false" native="false" synchronized="false"
  18095. static="false" final="false" visibility="public"
  18096. deprecated="not deprecated">
  18097. <param name="in" type="java.io.DataInput"/>
  18098. <exception name="IOException" type="java.io.IOException"/>
  18099. </method>
  18100. <method name="write"
  18101. abstract="false" native="false" synchronized="false"
  18102. static="false" final="false" visibility="public"
  18103. deprecated="not deprecated">
  18104. <param name="out" type="java.io.DataOutput"/>
  18105. <exception name="IOException" type="java.io.IOException"/>
  18106. </method>
  18107. <method name="equals" return="boolean"
  18108. abstract="false" native="false" synchronized="false"
  18109. static="false" final="false" visibility="public"
  18110. deprecated="not deprecated">
  18111. <param name="o" type="java.lang.Object"/>
  18112. <doc>
  18113. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  18114. </doc>
  18115. </method>
  18116. <method name="hashCode" return="int"
  18117. abstract="false" native="false" synchronized="false"
  18118. static="false" final="false" visibility="public"
  18119. deprecated="not deprecated">
  18120. </method>
  18121. <method name="compareTo" return="int"
  18122. abstract="false" native="false" synchronized="false"
  18123. static="false" final="false" visibility="public"
  18124. deprecated="not deprecated">
  18125. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  18126. <doc>
  18127. <![CDATA[Compares two ByteWritables.]]>
  18128. </doc>
  18129. </method>
  18130. <method name="toString" return="java.lang.String"
  18131. abstract="false" native="false" synchronized="false"
  18132. static="false" final="false" visibility="public"
  18133. deprecated="not deprecated">
  18134. </method>
  18135. <doc>
  18136. <![CDATA[A WritableComparable for a single byte.]]>
  18137. </doc>
  18138. </class>
  18139. <!-- end class org.apache.hadoop.io.ByteWritable -->
  18140. <!-- start interface org.apache.hadoop.io.Closeable -->
  18141. <interface name="Closeable" abstract="true"
  18142. static="false" final="false" visibility="public"
  18143. deprecated="use java.io.Closeable">
  18144. <implements name="java.io.Closeable"/>
  18145. <doc>
  18146. <![CDATA[@deprecated use java.io.Closeable]]>
  18147. </doc>
  18148. </interface>
  18149. <!-- end interface org.apache.hadoop.io.Closeable -->
  18150. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  18151. <class name="CompressedWritable" extends="java.lang.Object"
  18152. abstract="true"
  18153. static="false" final="false" visibility="public"
  18154. deprecated="not deprecated">
  18155. <implements name="org.apache.hadoop.io.Writable"/>
  18156. <constructor name="CompressedWritable"
  18157. static="false" final="false" visibility="public"
  18158. deprecated="not deprecated">
  18159. </constructor>
  18160. <method name="readFields"
  18161. abstract="false" native="false" synchronized="false"
  18162. static="false" final="true" visibility="public"
  18163. deprecated="not deprecated">
  18164. <param name="in" type="java.io.DataInput"/>
  18165. <exception name="IOException" type="java.io.IOException"/>
  18166. </method>
  18167. <method name="ensureInflated"
  18168. abstract="false" native="false" synchronized="false"
  18169. static="false" final="false" visibility="protected"
  18170. deprecated="not deprecated">
  18171. <doc>
  18172. <![CDATA[Must be called by all methods which access fields to ensure that the data
  18173. has been uncompressed.]]>
  18174. </doc>
  18175. </method>
  18176. <method name="readFieldsCompressed"
  18177. abstract="true" native="false" synchronized="false"
  18178. static="false" final="false" visibility="protected"
  18179. deprecated="not deprecated">
  18180. <param name="in" type="java.io.DataInput"/>
  18181. <exception name="IOException" type="java.io.IOException"/>
  18182. <doc>
  18183. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  18184. </doc>
  18185. </method>
  18186. <method name="write"
  18187. abstract="false" native="false" synchronized="false"
  18188. static="false" final="true" visibility="public"
  18189. deprecated="not deprecated">
  18190. <param name="out" type="java.io.DataOutput"/>
  18191. <exception name="IOException" type="java.io.IOException"/>
  18192. </method>
  18193. <method name="writeCompressed"
  18194. abstract="true" native="false" synchronized="false"
  18195. static="false" final="false" visibility="protected"
  18196. deprecated="not deprecated">
  18197. <param name="out" type="java.io.DataOutput"/>
  18198. <exception name="IOException" type="java.io.IOException"/>
  18199. <doc>
  18200. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  18201. </doc>
  18202. </method>
  18203. <doc>
  18204. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  18205. inflate on field access. This is useful for large objects whose fields are
  18206. not be altered during a map or reduce operation: leaving the field data
  18207. compressed makes copying the instance from one file to another much
  18208. faster.]]>
  18209. </doc>
  18210. </class>
  18211. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  18212. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  18213. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  18214. abstract="false"
  18215. static="false" final="false" visibility="public"
  18216. deprecated="not deprecated">
  18217. <method name="constructOutputStream" return="java.io.OutputStream"
  18218. abstract="false" native="false" synchronized="false"
  18219. static="true" final="false" visibility="public"
  18220. deprecated="not deprecated">
  18221. <param name="out" type="java.io.DataOutput"/>
  18222. <doc>
  18223. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  18224. is already an OutputStream, simply returns it. Otherwise, wraps
  18225. it in an OutputStream.
  18226. @param out the DataOutput to wrap
  18227. @return an OutputStream instance that outputs to 'out']]>
  18228. </doc>
  18229. </method>
  18230. <method name="write"
  18231. abstract="false" native="false" synchronized="false"
  18232. static="false" final="false" visibility="public"
  18233. deprecated="not deprecated">
  18234. <param name="b" type="int"/>
  18235. <exception name="IOException" type="java.io.IOException"/>
  18236. </method>
  18237. <method name="write"
  18238. abstract="false" native="false" synchronized="false"
  18239. static="false" final="false" visibility="public"
  18240. deprecated="not deprecated">
  18241. <param name="b" type="byte[]"/>
  18242. <param name="off" type="int"/>
  18243. <param name="len" type="int"/>
  18244. <exception name="IOException" type="java.io.IOException"/>
  18245. </method>
  18246. <method name="write"
  18247. abstract="false" native="false" synchronized="false"
  18248. static="false" final="false" visibility="public"
  18249. deprecated="not deprecated">
  18250. <param name="b" type="byte[]"/>
  18251. <exception name="IOException" type="java.io.IOException"/>
  18252. </method>
  18253. <doc>
  18254. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  18255. </doc>
  18256. </class>
  18257. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  18258. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  18259. <class name="DefaultStringifier" extends="java.lang.Object"
  18260. abstract="false"
  18261. static="false" final="false" visibility="public"
  18262. deprecated="not deprecated">
  18263. <implements name="org.apache.hadoop.io.Stringifier"/>
  18264. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  18265. static="false" final="false" visibility="public"
  18266. deprecated="not deprecated">
  18267. </constructor>
  18268. <method name="fromString" return="T"
  18269. abstract="false" native="false" synchronized="false"
  18270. static="false" final="false" visibility="public"
  18271. deprecated="not deprecated">
  18272. <param name="str" type="java.lang.String"/>
  18273. <exception name="IOException" type="java.io.IOException"/>
  18274. </method>
  18275. <method name="toString" return="java.lang.String"
  18276. abstract="false" native="false" synchronized="false"
  18277. static="false" final="false" visibility="public"
  18278. deprecated="not deprecated">
  18279. <param name="obj" type="T"/>
  18280. <exception name="IOException" type="java.io.IOException"/>
  18281. </method>
  18282. <method name="close"
  18283. abstract="false" native="false" synchronized="false"
  18284. static="false" final="false" visibility="public"
  18285. deprecated="not deprecated">
  18286. <exception name="IOException" type="java.io.IOException"/>
  18287. </method>
  18288. <method name="store"
  18289. abstract="false" native="false" synchronized="false"
  18290. static="true" final="false" visibility="public"
  18291. deprecated="not deprecated">
  18292. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18293. <param name="item" type="K"/>
  18294. <param name="keyName" type="java.lang.String"/>
  18295. <exception name="IOException" type="java.io.IOException"/>
  18296. <doc>
  18297. <![CDATA[Stores the item in the configuration with the given keyName.
  18298. @param <K> the class of the item
  18299. @param conf the configuration to store
  18300. @param item the object to be stored
  18301. @param keyName the name of the key to use
  18302. @throws IOException : forwards Exceptions from the underlying
  18303. {@link Serialization} classes.]]>
  18304. </doc>
  18305. </method>
  18306. <method name="load" return="K"
  18307. abstract="false" native="false" synchronized="false"
  18308. static="true" final="false" visibility="public"
  18309. deprecated="not deprecated">
  18310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18311. <param name="keyName" type="java.lang.String"/>
  18312. <param name="itemClass" type="java.lang.Class"/>
  18313. <exception name="IOException" type="java.io.IOException"/>
  18314. <doc>
  18315. <![CDATA[Restores the object from the configuration.
  18316. @param <K> the class of the item
  18317. @param conf the configuration to use
  18318. @param keyName the name of the key to use
  18319. @param itemClass the class of the item
  18320. @return restored object
  18321. @throws IOException : forwards Exceptions from the underlying
  18322. {@link Serialization} classes.]]>
  18323. </doc>
  18324. </method>
  18325. <method name="storeArray"
  18326. abstract="false" native="false" synchronized="false"
  18327. static="true" final="false" visibility="public"
  18328. deprecated="not deprecated">
  18329. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18330. <param name="items" type="K[]"/>
  18331. <param name="keyName" type="java.lang.String"/>
  18332. <exception name="IOException" type="java.io.IOException"/>
  18333. <doc>
  18334. <![CDATA[Stores the array of items in the configuration with the given keyName.
  18335. @param <K> the class of the item
  18336. @param conf the configuration to use
  18337. @param items the objects to be stored
  18338. @param keyName the name of the key to use
  18339. @throws IndexOutOfBoundsException if the items array is empty
  18340. @throws IOException : forwards Exceptions from the underlying
  18341. {@link Serialization} classes.]]>
  18342. </doc>
  18343. </method>
  18344. <method name="loadArray" return="K[]"
  18345. abstract="false" native="false" synchronized="false"
  18346. static="true" final="false" visibility="public"
  18347. deprecated="not deprecated">
  18348. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18349. <param name="keyName" type="java.lang.String"/>
  18350. <param name="itemClass" type="java.lang.Class"/>
  18351. <exception name="IOException" type="java.io.IOException"/>
  18352. <doc>
  18353. <![CDATA[Restores the array of objects from the configuration.
  18354. @param <K> the class of the item
  18355. @param conf the configuration to use
  18356. @param keyName the name of the key to use
  18357. @param itemClass the class of the item
  18358. @return restored object
  18359. @throws IOException : forwards Exceptions from the underlying
  18360. {@link Serialization} classes.]]>
  18361. </doc>
  18362. </method>
  18363. <doc>
  18364. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  18365. interface which stringifies the objects using base64 encoding of the
  18366. serialized version of the objects. The {@link Serializer} and
  18367. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  18368. <br>
  18369. DefaultStringifier offers convenience methods to store/load objects to/from
  18370. the configuration.
  18371. @param <T> the class of the objects to stringify]]>
  18372. </doc>
  18373. </class>
  18374. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  18375. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  18376. <class name="DoubleWritable" extends="java.lang.Object"
  18377. abstract="false"
  18378. static="false" final="false" visibility="public"
  18379. deprecated="not deprecated">
  18380. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18381. <constructor name="DoubleWritable"
  18382. static="false" final="false" visibility="public"
  18383. deprecated="not deprecated">
  18384. </constructor>
  18385. <constructor name="DoubleWritable" type="double"
  18386. static="false" final="false" visibility="public"
  18387. deprecated="not deprecated">
  18388. </constructor>
  18389. <method name="readFields"
  18390. abstract="false" native="false" synchronized="false"
  18391. static="false" final="false" visibility="public"
  18392. deprecated="not deprecated">
  18393. <param name="in" type="java.io.DataInput"/>
  18394. <exception name="IOException" type="java.io.IOException"/>
  18395. </method>
  18396. <method name="write"
  18397. abstract="false" native="false" synchronized="false"
  18398. static="false" final="false" visibility="public"
  18399. deprecated="not deprecated">
  18400. <param name="out" type="java.io.DataOutput"/>
  18401. <exception name="IOException" type="java.io.IOException"/>
  18402. </method>
  18403. <method name="set"
  18404. abstract="false" native="false" synchronized="false"
  18405. static="false" final="false" visibility="public"
  18406. deprecated="not deprecated">
  18407. <param name="value" type="double"/>
  18408. </method>
  18409. <method name="get" return="double"
  18410. abstract="false" native="false" synchronized="false"
  18411. static="false" final="false" visibility="public"
  18412. deprecated="not deprecated">
  18413. </method>
  18414. <method name="equals" return="boolean"
  18415. abstract="false" native="false" synchronized="false"
  18416. static="false" final="false" visibility="public"
  18417. deprecated="not deprecated">
  18418. <param name="o" type="java.lang.Object"/>
  18419. <doc>
  18420. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  18421. </doc>
  18422. </method>
  18423. <method name="hashCode" return="int"
  18424. abstract="false" native="false" synchronized="false"
  18425. static="false" final="false" visibility="public"
  18426. deprecated="not deprecated">
  18427. </method>
  18428. <method name="compareTo" return="int"
  18429. abstract="false" native="false" synchronized="false"
  18430. static="false" final="false" visibility="public"
  18431. deprecated="not deprecated">
  18432. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  18433. </method>
  18434. <method name="toString" return="java.lang.String"
  18435. abstract="false" native="false" synchronized="false"
  18436. static="false" final="false" visibility="public"
  18437. deprecated="not deprecated">
  18438. </method>
  18439. <doc>
  18440. <![CDATA[Writable for Double values.]]>
  18441. </doc>
  18442. </class>
  18443. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  18444. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  18445. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  18446. abstract="false"
  18447. static="false" final="true" visibility="public"
  18448. deprecated="not deprecated">
  18449. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  18450. <constructor name="ElasticByteBufferPool"
  18451. static="false" final="false" visibility="public"
  18452. deprecated="not deprecated">
  18453. </constructor>
  18454. <method name="getBuffer" return="java.nio.ByteBuffer"
  18455. abstract="false" native="false" synchronized="true"
  18456. static="false" final="false" visibility="public"
  18457. deprecated="not deprecated">
  18458. <param name="direct" type="boolean"/>
  18459. <param name="length" type="int"/>
  18460. </method>
  18461. <method name="putBuffer"
  18462. abstract="false" native="false" synchronized="true"
  18463. static="false" final="false" visibility="public"
  18464. deprecated="not deprecated">
  18465. <param name="buffer" type="java.nio.ByteBuffer"/>
  18466. </method>
  18467. <doc>
  18468. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  18469. It also caches ByteBuffers after they're released. It will always return
  18470. the smallest cached buffer with at least the capacity you request.
  18471. We don't try to do anything clever here like try to limit the maximum cache
  18472. size.]]>
  18473. </doc>
  18474. </class>
  18475. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  18476. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  18477. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  18478. abstract="false"
  18479. static="false" final="false" visibility="public"
  18480. deprecated="not deprecated">
  18481. <implements name="org.apache.hadoop.io.Writable"/>
  18482. <implements name="org.apache.hadoop.conf.Configurable"/>
  18483. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  18484. static="false" final="false" visibility="public"
  18485. deprecated="not deprecated">
  18486. <doc>
  18487. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  18488. its size is zero, the <tt>elementType</tt> argument must not be null. If
  18489. the argument <tt>value</tt>'s size is bigger than zero, the argument
  18490. <tt>elementType</tt> is not be used.
  18491. @param value
  18492. @param elementType]]>
  18493. </doc>
  18494. </constructor>
  18495. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  18496. static="false" final="false" visibility="public"
  18497. deprecated="not deprecated">
  18498. <doc>
  18499. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  18500. or empty.
  18501. @param value]]>
  18502. </doc>
  18503. </constructor>
  18504. <method name="iterator" return="java.util.Iterator"
  18505. abstract="false" native="false" synchronized="false"
  18506. static="false" final="false" visibility="public"
  18507. deprecated="not deprecated">
  18508. </method>
  18509. <method name="size" return="int"
  18510. abstract="false" native="false" synchronized="false"
  18511. static="false" final="false" visibility="public"
  18512. deprecated="not deprecated">
  18513. </method>
  18514. <method name="add" return="boolean"
  18515. abstract="false" native="false" synchronized="false"
  18516. static="false" final="false" visibility="public"
  18517. deprecated="not deprecated">
  18518. <param name="e" type="E"/>
  18519. </method>
  18520. <method name="set"
  18521. abstract="false" native="false" synchronized="false"
  18522. static="false" final="false" visibility="public"
  18523. deprecated="not deprecated">
  18524. <param name="value" type="java.util.EnumSet"/>
  18525. <param name="elementType" type="java.lang.Class"/>
  18526. <doc>
  18527. <![CDATA[reset the EnumSetWritable with specified
  18528. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  18529. is null or its size is zero, the <tt>elementType</tt> argument must not be
  18530. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  18531. argument <tt>elementType</tt> is not be used.
  18532. @param value
  18533. @param elementType]]>
  18534. </doc>
  18535. </method>
  18536. <method name="get" return="java.util.EnumSet"
  18537. abstract="false" native="false" synchronized="false"
  18538. static="false" final="false" visibility="public"
  18539. deprecated="not deprecated">
  18540. <doc>
  18541. <![CDATA[Return the value of this EnumSetWritable.]]>
  18542. </doc>
  18543. </method>
  18544. <method name="readFields"
  18545. abstract="false" native="false" synchronized="false"
  18546. static="false" final="false" visibility="public"
  18547. deprecated="not deprecated">
  18548. <param name="in" type="java.io.DataInput"/>
  18549. <exception name="IOException" type="java.io.IOException"/>
  18550. </method>
  18551. <method name="write"
  18552. abstract="false" native="false" synchronized="false"
  18553. static="false" final="false" visibility="public"
  18554. deprecated="not deprecated">
  18555. <param name="out" type="java.io.DataOutput"/>
  18556. <exception name="IOException" type="java.io.IOException"/>
  18557. </method>
  18558. <method name="equals" return="boolean"
  18559. abstract="false" native="false" synchronized="false"
  18560. static="false" final="false" visibility="public"
  18561. deprecated="not deprecated">
  18562. <param name="o" type="java.lang.Object"/>
  18563. <doc>
  18564. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  18565. or both are null.]]>
  18566. </doc>
  18567. </method>
  18568. <method name="getElementType" return="java.lang.Class"
  18569. abstract="false" native="false" synchronized="false"
  18570. static="false" final="false" visibility="public"
  18571. deprecated="not deprecated">
  18572. <doc>
  18573. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  18574. may return null.
  18575. @return the element class]]>
  18576. </doc>
  18577. </method>
  18578. <method name="hashCode" return="int"
  18579. abstract="false" native="false" synchronized="false"
  18580. static="false" final="false" visibility="public"
  18581. deprecated="not deprecated">
  18582. </method>
  18583. <method name="toString" return="java.lang.String"
  18584. abstract="false" native="false" synchronized="false"
  18585. static="false" final="false" visibility="public"
  18586. deprecated="not deprecated">
  18587. </method>
  18588. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18589. abstract="false" native="false" synchronized="false"
  18590. static="false" final="false" visibility="public"
  18591. deprecated="not deprecated">
  18592. </method>
  18593. <method name="setConf"
  18594. abstract="false" native="false" synchronized="false"
  18595. static="false" final="false" visibility="public"
  18596. deprecated="not deprecated">
  18597. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18598. </method>
  18599. <doc>
  18600. <![CDATA[A Writable wrapper for EnumSet.]]>
  18601. </doc>
  18602. </class>
  18603. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  18604. <!-- start class org.apache.hadoop.io.FloatWritable -->
  18605. <class name="FloatWritable" extends="java.lang.Object"
  18606. abstract="false"
  18607. static="false" final="false" visibility="public"
  18608. deprecated="not deprecated">
  18609. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18610. <constructor name="FloatWritable"
  18611. static="false" final="false" visibility="public"
  18612. deprecated="not deprecated">
  18613. </constructor>
  18614. <constructor name="FloatWritable" type="float"
  18615. static="false" final="false" visibility="public"
  18616. deprecated="not deprecated">
  18617. </constructor>
  18618. <method name="set"
  18619. abstract="false" native="false" synchronized="false"
  18620. static="false" final="false" visibility="public"
  18621. deprecated="not deprecated">
  18622. <param name="value" type="float"/>
  18623. <doc>
  18624. <![CDATA[Set the value of this FloatWritable.]]>
  18625. </doc>
  18626. </method>
  18627. <method name="get" return="float"
  18628. abstract="false" native="false" synchronized="false"
  18629. static="false" final="false" visibility="public"
  18630. deprecated="not deprecated">
  18631. <doc>
  18632. <![CDATA[Return the value of this FloatWritable.]]>
  18633. </doc>
  18634. </method>
  18635. <method name="readFields"
  18636. abstract="false" native="false" synchronized="false"
  18637. static="false" final="false" visibility="public"
  18638. deprecated="not deprecated">
  18639. <param name="in" type="java.io.DataInput"/>
  18640. <exception name="IOException" type="java.io.IOException"/>
  18641. </method>
  18642. <method name="write"
  18643. abstract="false" native="false" synchronized="false"
  18644. static="false" final="false" visibility="public"
  18645. deprecated="not deprecated">
  18646. <param name="out" type="java.io.DataOutput"/>
  18647. <exception name="IOException" type="java.io.IOException"/>
  18648. </method>
  18649. <method name="equals" return="boolean"
  18650. abstract="false" native="false" synchronized="false"
  18651. static="false" final="false" visibility="public"
  18652. deprecated="not deprecated">
  18653. <param name="o" type="java.lang.Object"/>
  18654. <doc>
  18655. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  18656. </doc>
  18657. </method>
  18658. <method name="hashCode" return="int"
  18659. abstract="false" native="false" synchronized="false"
  18660. static="false" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. </method>
  18663. <method name="compareTo" return="int"
  18664. abstract="false" native="false" synchronized="false"
  18665. static="false" final="false" visibility="public"
  18666. deprecated="not deprecated">
  18667. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  18668. <doc>
  18669. <![CDATA[Compares two FloatWritables.]]>
  18670. </doc>
  18671. </method>
  18672. <method name="toString" return="java.lang.String"
  18673. abstract="false" native="false" synchronized="false"
  18674. static="false" final="false" visibility="public"
  18675. deprecated="not deprecated">
  18676. </method>
  18677. <doc>
  18678. <![CDATA[A WritableComparable for floats.]]>
  18679. </doc>
  18680. </class>
  18681. <!-- end class org.apache.hadoop.io.FloatWritable -->
  18682. <!-- start class org.apache.hadoop.io.GenericWritable -->
  18683. <class name="GenericWritable" extends="java.lang.Object"
  18684. abstract="true"
  18685. static="false" final="false" visibility="public"
  18686. deprecated="not deprecated">
  18687. <implements name="org.apache.hadoop.io.Writable"/>
  18688. <implements name="org.apache.hadoop.conf.Configurable"/>
  18689. <constructor name="GenericWritable"
  18690. static="false" final="false" visibility="public"
  18691. deprecated="not deprecated">
  18692. </constructor>
  18693. <method name="set"
  18694. abstract="false" native="false" synchronized="false"
  18695. static="false" final="false" visibility="public"
  18696. deprecated="not deprecated">
  18697. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  18698. <doc>
  18699. <![CDATA[Set the instance that is wrapped.
  18700. @param obj]]>
  18701. </doc>
  18702. </method>
  18703. <method name="get" return="org.apache.hadoop.io.Writable"
  18704. abstract="false" native="false" synchronized="false"
  18705. static="false" final="false" visibility="public"
  18706. deprecated="not deprecated">
  18707. <doc>
  18708. <![CDATA[Return the wrapped instance.]]>
  18709. </doc>
  18710. </method>
  18711. <method name="toString" return="java.lang.String"
  18712. abstract="false" native="false" synchronized="false"
  18713. static="false" final="false" visibility="public"
  18714. deprecated="not deprecated">
  18715. </method>
  18716. <method name="readFields"
  18717. abstract="false" native="false" synchronized="false"
  18718. static="false" final="false" visibility="public"
  18719. deprecated="not deprecated">
  18720. <param name="in" type="java.io.DataInput"/>
  18721. <exception name="IOException" type="java.io.IOException"/>
  18722. </method>
  18723. <method name="write"
  18724. abstract="false" native="false" synchronized="false"
  18725. static="false" final="false" visibility="public"
  18726. deprecated="not deprecated">
  18727. <param name="out" type="java.io.DataOutput"/>
  18728. <exception name="IOException" type="java.io.IOException"/>
  18729. </method>
  18730. <method name="getTypes" return="java.lang.Class[]"
  18731. abstract="true" native="false" synchronized="false"
  18732. static="false" final="false" visibility="protected"
  18733. deprecated="not deprecated">
  18734. <doc>
  18735. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  18736. to return a constant array of classes.]]>
  18737. </doc>
  18738. </method>
  18739. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18740. abstract="false" native="false" synchronized="false"
  18741. static="false" final="false" visibility="public"
  18742. deprecated="not deprecated">
  18743. </method>
  18744. <method name="setConf"
  18745. abstract="false" native="false" synchronized="false"
  18746. static="false" final="false" visibility="public"
  18747. deprecated="not deprecated">
  18748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18749. </method>
  18750. <doc>
  18751. <![CDATA[A wrapper for Writable instances.
  18752. <p>
  18753. When two sequence files, which have same Key type but different Value
  18754. types, are mapped out to reduce, multiple Value types is not allowed.
  18755. In this case, this class can help you wrap instances with different types.
  18756. </p>
  18757. <p>
  18758. Compared with <code>ObjectWritable</code>, this class is much more effective,
  18759. because <code>ObjectWritable</code> will append the class declaration as a String
  18760. into the output file in every Key-Value pair.
  18761. </p>
  18762. <p>
  18763. Generic Writable implements {@link Configurable} interface, so that it will be
  18764. configured by the framework. The configuration is passed to the wrapped objects
  18765. implementing {@link Configurable} interface <i>before deserialization</i>.
  18766. </p>
  18767. how to use it: <br>
  18768. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  18769. 2. Implements the abstract method <code>getTypes()</code>, defines
  18770. the classes which will be wrapped in GenericObject in application.
  18771. Attention: this classes defined in <code>getTypes()</code> method, must
  18772. implement <code>Writable</code> interface.
  18773. <br><br>
  18774. The code looks like this:
  18775. <blockquote><pre>
  18776. public class GenericObject extends GenericWritable {
  18777. private static Class[] CLASSES = {
  18778. ClassType1.class,
  18779. ClassType2.class,
  18780. ClassType3.class,
  18781. };
  18782. protected Class[] getTypes() {
  18783. return CLASSES;
  18784. }
  18785. }
  18786. </pre></blockquote>
  18787. @since Nov 8, 2006]]>
  18788. </doc>
  18789. </class>
  18790. <!-- end class org.apache.hadoop.io.GenericWritable -->
  18791. <!-- start class org.apache.hadoop.io.IntWritable -->
  18792. <class name="IntWritable" extends="java.lang.Object"
  18793. abstract="false"
  18794. static="false" final="false" visibility="public"
  18795. deprecated="not deprecated">
  18796. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18797. <constructor name="IntWritable"
  18798. static="false" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. </constructor>
  18801. <constructor name="IntWritable" type="int"
  18802. static="false" final="false" visibility="public"
  18803. deprecated="not deprecated">
  18804. </constructor>
  18805. <method name="set"
  18806. abstract="false" native="false" synchronized="false"
  18807. static="false" final="false" visibility="public"
  18808. deprecated="not deprecated">
  18809. <param name="value" type="int"/>
  18810. <doc>
  18811. <![CDATA[Set the value of this IntWritable.]]>
  18812. </doc>
  18813. </method>
  18814. <method name="get" return="int"
  18815. abstract="false" native="false" synchronized="false"
  18816. static="false" final="false" visibility="public"
  18817. deprecated="not deprecated">
  18818. <doc>
  18819. <![CDATA[Return the value of this IntWritable.]]>
  18820. </doc>
  18821. </method>
  18822. <method name="readFields"
  18823. abstract="false" native="false" synchronized="false"
  18824. static="false" final="false" visibility="public"
  18825. deprecated="not deprecated">
  18826. <param name="in" type="java.io.DataInput"/>
  18827. <exception name="IOException" type="java.io.IOException"/>
  18828. </method>
  18829. <method name="write"
  18830. abstract="false" native="false" synchronized="false"
  18831. static="false" final="false" visibility="public"
  18832. deprecated="not deprecated">
  18833. <param name="out" type="java.io.DataOutput"/>
  18834. <exception name="IOException" type="java.io.IOException"/>
  18835. </method>
  18836. <method name="equals" return="boolean"
  18837. abstract="false" native="false" synchronized="false"
  18838. static="false" final="false" visibility="public"
  18839. deprecated="not deprecated">
  18840. <param name="o" type="java.lang.Object"/>
  18841. <doc>
  18842. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  18843. </doc>
  18844. </method>
  18845. <method name="hashCode" return="int"
  18846. abstract="false" native="false" synchronized="false"
  18847. static="false" final="false" visibility="public"
  18848. deprecated="not deprecated">
  18849. </method>
  18850. <method name="compareTo" return="int"
  18851. abstract="false" native="false" synchronized="false"
  18852. static="false" final="false" visibility="public"
  18853. deprecated="not deprecated">
  18854. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  18855. <doc>
  18856. <![CDATA[Compares two IntWritables.]]>
  18857. </doc>
  18858. </method>
  18859. <method name="toString" return="java.lang.String"
  18860. abstract="false" native="false" synchronized="false"
  18861. static="false" final="false" visibility="public"
  18862. deprecated="not deprecated">
  18863. </method>
  18864. <doc>
  18865. <![CDATA[A WritableComparable for ints.]]>
  18866. </doc>
  18867. </class>
  18868. <!-- end class org.apache.hadoop.io.IntWritable -->
  18869. <!-- start class org.apache.hadoop.io.IOUtils -->
  18870. <class name="IOUtils" extends="java.lang.Object"
  18871. abstract="false"
  18872. static="false" final="false" visibility="public"
  18873. deprecated="not deprecated">
  18874. <constructor name="IOUtils"
  18875. static="false" final="false" visibility="public"
  18876. deprecated="not deprecated">
  18877. </constructor>
  18878. <method name="copyBytes"
  18879. abstract="false" native="false" synchronized="false"
  18880. static="true" final="false" visibility="public"
  18881. deprecated="not deprecated">
  18882. <param name="in" type="java.io.InputStream"/>
  18883. <param name="out" type="java.io.OutputStream"/>
  18884. <param name="buffSize" type="int"/>
  18885. <param name="close" type="boolean"/>
  18886. <exception name="IOException" type="java.io.IOException"/>
  18887. <doc>
  18888. <![CDATA[Copies from one stream to another.
  18889. @param in InputStrem to read from
  18890. @param out OutputStream to write to
  18891. @param buffSize the size of the buffer
  18892. @param close whether or not close the InputStream and
  18893. OutputStream at the end. The streams are closed in the finally clause.]]>
  18894. </doc>
  18895. </method>
  18896. <method name="copyBytes"
  18897. abstract="false" native="false" synchronized="false"
  18898. static="true" final="false" visibility="public"
  18899. deprecated="not deprecated">
  18900. <param name="in" type="java.io.InputStream"/>
  18901. <param name="out" type="java.io.OutputStream"/>
  18902. <param name="buffSize" type="int"/>
  18903. <exception name="IOException" type="java.io.IOException"/>
  18904. <doc>
  18905. <![CDATA[Copies from one stream to another.
  18906. @param in InputStrem to read from
  18907. @param out OutputStream to write to
  18908. @param buffSize the size of the buffer]]>
  18909. </doc>
  18910. </method>
  18911. <method name="copyBytes"
  18912. abstract="false" native="false" synchronized="false"
  18913. static="true" final="false" visibility="public"
  18914. deprecated="not deprecated">
  18915. <param name="in" type="java.io.InputStream"/>
  18916. <param name="out" type="java.io.OutputStream"/>
  18917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18918. <exception name="IOException" type="java.io.IOException"/>
  18919. <doc>
  18920. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  18921. at the end</strong>.
  18922. @param in InputStrem to read from
  18923. @param out OutputStream to write to
  18924. @param conf the Configuration object]]>
  18925. </doc>
  18926. </method>
  18927. <method name="copyBytes"
  18928. abstract="false" native="false" synchronized="false"
  18929. static="true" final="false" visibility="public"
  18930. deprecated="not deprecated">
  18931. <param name="in" type="java.io.InputStream"/>
  18932. <param name="out" type="java.io.OutputStream"/>
  18933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18934. <param name="close" type="boolean"/>
  18935. <exception name="IOException" type="java.io.IOException"/>
  18936. <doc>
  18937. <![CDATA[Copies from one stream to another.
  18938. @param in InputStream to read from
  18939. @param out OutputStream to write to
  18940. @param conf the Configuration object
  18941. @param close whether or not close the InputStream and
  18942. OutputStream at the end. The streams are closed in the finally clause.]]>
  18943. </doc>
  18944. </method>
  18945. <method name="copyBytes"
  18946. abstract="false" native="false" synchronized="false"
  18947. static="true" final="false" visibility="public"
  18948. deprecated="not deprecated">
  18949. <param name="in" type="java.io.InputStream"/>
  18950. <param name="out" type="java.io.OutputStream"/>
  18951. <param name="count" type="long"/>
  18952. <param name="close" type="boolean"/>
  18953. <exception name="IOException" type="java.io.IOException"/>
  18954. <doc>
  18955. <![CDATA[Copies count bytes from one stream to another.
  18956. @param in InputStream to read from
  18957. @param out OutputStream to write to
  18958. @param count number of bytes to copy
  18959. @param close whether to close the streams
  18960. @throws IOException if bytes can not be read or written]]>
  18961. </doc>
  18962. </method>
  18963. <method name="wrappedReadForCompressedData" return="int"
  18964. abstract="false" native="false" synchronized="false"
  18965. static="true" final="false" visibility="public"
  18966. deprecated="not deprecated">
  18967. <param name="is" type="java.io.InputStream"/>
  18968. <param name="buf" type="byte[]"/>
  18969. <param name="off" type="int"/>
  18970. <param name="len" type="int"/>
  18971. <exception name="IOException" type="java.io.IOException"/>
  18972. <doc>
  18973. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  18974. thrown by the underlying stream (either IO or decompression-related), and
  18975. re-throws as an IOException.
  18976. @param is - InputStream to be read from
  18977. @param buf - buffer the data is read into
  18978. @param off - offset within buf
  18979. @param len - amount of data to be read
  18980. @return number of bytes read]]>
  18981. </doc>
  18982. </method>
  18983. <method name="readFully"
  18984. abstract="false" native="false" synchronized="false"
  18985. static="true" final="false" visibility="public"
  18986. deprecated="not deprecated">
  18987. <param name="in" type="java.io.InputStream"/>
  18988. <param name="buf" type="byte[]"/>
  18989. <param name="off" type="int"/>
  18990. <param name="len" type="int"/>
  18991. <exception name="IOException" type="java.io.IOException"/>
  18992. <doc>
  18993. <![CDATA[Reads len bytes in a loop.
  18994. @param in InputStream to read from
  18995. @param buf The buffer to fill
  18996. @param off offset from the buffer
  18997. @param len the length of bytes to read
  18998. @throws IOException if it could not read requested number of bytes
  18999. for any reason (including EOF)]]>
  19000. </doc>
  19001. </method>
  19002. <method name="skipFully"
  19003. abstract="false" native="false" synchronized="false"
  19004. static="true" final="false" visibility="public"
  19005. deprecated="not deprecated">
  19006. <param name="in" type="java.io.InputStream"/>
  19007. <param name="len" type="long"/>
  19008. <exception name="IOException" type="java.io.IOException"/>
  19009. <doc>
  19010. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  19011. @param in The InputStream to skip bytes from
  19012. @param len number of bytes to skip.
  19013. @throws IOException if it could not skip requested number of bytes
  19014. for any reason (including EOF)]]>
  19015. </doc>
  19016. </method>
  19017. <method name="cleanup"
  19018. abstract="false" native="false" synchronized="false"
  19019. static="true" final="false" visibility="public"
  19020. deprecated="use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  19021. instead">
  19022. <param name="log" type="org.apache.commons.logging.Log"/>
  19023. <param name="closeables" type="java.io.Closeable[]"/>
  19024. <doc>
  19025. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  19026. null pointers. Must only be used for cleanup in exception handlers.
  19027. @param log the log to record problems to at debug level. Can be null.
  19028. @param closeables the objects to close
  19029. @deprecated use {@link #cleanupWithLogger(Logger, java.io.Closeable...)}
  19030. instead]]>
  19031. </doc>
  19032. </method>
  19033. <method name="cleanupWithLogger"
  19034. abstract="false" native="false" synchronized="false"
  19035. static="true" final="false" visibility="public"
  19036. deprecated="not deprecated">
  19037. <param name="logger" type="org.slf4j.Logger"/>
  19038. <param name="closeables" type="java.io.Closeable[]"/>
  19039. <doc>
  19040. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link Throwable} or
  19041. null pointers. Must only be used for cleanup in exception handlers.
  19042. @param logger the log to record problems to at debug level. Can be null.
  19043. @param closeables the objects to close]]>
  19044. </doc>
  19045. </method>
  19046. <method name="closeStream"
  19047. abstract="false" native="false" synchronized="false"
  19048. static="true" final="false" visibility="public"
  19049. deprecated="not deprecated">
  19050. <param name="stream" type="java.io.Closeable"/>
  19051. <doc>
  19052. <![CDATA[Closes the stream ignoring {@link Throwable}.
  19053. Must only be called in cleaning up from exception handlers.
  19054. @param stream the Stream to close]]>
  19055. </doc>
  19056. </method>
  19057. <method name="closeStreams"
  19058. abstract="false" native="false" synchronized="false"
  19059. static="true" final="false" visibility="public"
  19060. deprecated="not deprecated">
  19061. <param name="streams" type="java.io.Closeable[]"/>
  19062. <doc>
  19063. <![CDATA[Closes the streams ignoring {@link Throwable}.
  19064. Must only be called in cleaning up from exception handlers.
  19065. @param streams the Streams to close]]>
  19066. </doc>
  19067. </method>
  19068. <method name="closeSocket"
  19069. abstract="false" native="false" synchronized="false"
  19070. static="true" final="false" visibility="public"
  19071. deprecated="not deprecated">
  19072. <param name="sock" type="java.net.Socket"/>
  19073. <doc>
  19074. <![CDATA[Closes the socket ignoring {@link IOException}
  19075. @param sock the Socket to close]]>
  19076. </doc>
  19077. </method>
  19078. <method name="writeFully"
  19079. abstract="false" native="false" synchronized="false"
  19080. static="true" final="false" visibility="public"
  19081. deprecated="not deprecated">
  19082. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  19083. <param name="buf" type="java.nio.ByteBuffer"/>
  19084. <exception name="IOException" type="java.io.IOException"/>
  19085. <doc>
  19086. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  19087. @param bc The WritableByteChannel to write to
  19088. @param buf The input buffer
  19089. @throws IOException On I/O error]]>
  19090. </doc>
  19091. </method>
  19092. <method name="writeFully"
  19093. abstract="false" native="false" synchronized="false"
  19094. static="true" final="false" visibility="public"
  19095. deprecated="not deprecated">
  19096. <param name="fc" type="java.nio.channels.FileChannel"/>
  19097. <param name="buf" type="java.nio.ByteBuffer"/>
  19098. <param name="offset" type="long"/>
  19099. <exception name="IOException" type="java.io.IOException"/>
  19100. <doc>
  19101. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  19102. handling short writes.
  19103. @param fc The FileChannel to write to
  19104. @param buf The input buffer
  19105. @param offset The offset in the file to start writing at
  19106. @throws IOException On I/O error]]>
  19107. </doc>
  19108. </method>
  19109. <method name="listDirectory" return="java.util.List"
  19110. abstract="false" native="false" synchronized="false"
  19111. static="true" final="false" visibility="public"
  19112. deprecated="not deprecated">
  19113. <param name="dir" type="java.io.File"/>
  19114. <param name="filter" type="java.io.FilenameFilter"/>
  19115. <exception name="IOException" type="java.io.IOException"/>
  19116. <doc>
  19117. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  19118. This is better than File#listDir because it does not ignore IOExceptions.
  19119. @param dir The directory to list.
  19120. @param filter If non-null, the filter to use when listing
  19121. this directory.
  19122. @return The list of files in the directory.
  19123. @throws IOException On I/O error]]>
  19124. </doc>
  19125. </method>
  19126. <method name="fsync"
  19127. abstract="false" native="false" synchronized="false"
  19128. static="true" final="false" visibility="public"
  19129. deprecated="not deprecated">
  19130. <param name="fileToSync" type="java.io.File"/>
  19131. <exception name="IOException" type="java.io.IOException"/>
  19132. <doc>
  19133. <![CDATA[Ensure that any writes to the given file is written to the storage device
  19134. that contains it. This method opens channel on given File and closes it
  19135. once the sync is done.<br>
  19136. Borrowed from Uwe Schindler in LUCENE-5588
  19137. @param fileToSync the file to fsync]]>
  19138. </doc>
  19139. </method>
  19140. <method name="fsync"
  19141. abstract="false" native="false" synchronized="false"
  19142. static="true" final="false" visibility="public"
  19143. deprecated="not deprecated">
  19144. <param name="channel" type="java.nio.channels.FileChannel"/>
  19145. <param name="isDir" type="boolean"/>
  19146. <exception name="IOException" type="java.io.IOException"/>
  19147. <doc>
  19148. <![CDATA[Ensure that any writes to the given file is written to the storage device
  19149. that contains it. This method opens channel on given File and closes it
  19150. once the sync is done.
  19151. Borrowed from Uwe Schindler in LUCENE-5588
  19152. @param channel Channel to sync
  19153. @param isDir if true, the given file is a directory (Channel should be
  19154. opened for read and ignore IOExceptions, because not all file
  19155. systems and operating systems allow to fsync on a directory)
  19156. @throws IOException]]>
  19157. </doc>
  19158. </method>
  19159. <method name="readFullyToByteArray" return="byte[]"
  19160. abstract="false" native="false" synchronized="false"
  19161. static="true" final="false" visibility="public"
  19162. deprecated="not deprecated">
  19163. <param name="in" type="java.io.DataInput"/>
  19164. <exception name="IOException" type="java.io.IOException"/>
  19165. <doc>
  19166. <![CDATA[Reads a DataInput until EOF and returns a byte array. Make sure not to
  19167. pass in an infinite DataInput or this will never return.
  19168. @param in A DataInput
  19169. @return a byte array containing the data from the DataInput
  19170. @throws IOException on I/O error, other than EOF]]>
  19171. </doc>
  19172. </method>
  19173. <field name="LOG" type="org.slf4j.Logger"
  19174. transient="false" volatile="false"
  19175. static="true" final="true" visibility="public"
  19176. deprecated="not deprecated">
  19177. </field>
  19178. <doc>
  19179. <![CDATA[An utility class for I/O related functionality.]]>
  19180. </doc>
  19181. </class>
  19182. <!-- end class org.apache.hadoop.io.IOUtils -->
  19183. <!-- start class org.apache.hadoop.io.LongWritable -->
  19184. <class name="LongWritable" extends="java.lang.Object"
  19185. abstract="false"
  19186. static="false" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19189. <constructor name="LongWritable"
  19190. static="false" final="false" visibility="public"
  19191. deprecated="not deprecated">
  19192. </constructor>
  19193. <constructor name="LongWritable" type="long"
  19194. static="false" final="false" visibility="public"
  19195. deprecated="not deprecated">
  19196. </constructor>
  19197. <method name="set"
  19198. abstract="false" native="false" synchronized="false"
  19199. static="false" final="false" visibility="public"
  19200. deprecated="not deprecated">
  19201. <param name="value" type="long"/>
  19202. <doc>
  19203. <![CDATA[Set the value of this LongWritable.]]>
  19204. </doc>
  19205. </method>
  19206. <method name="get" return="long"
  19207. abstract="false" native="false" synchronized="false"
  19208. static="false" final="false" visibility="public"
  19209. deprecated="not deprecated">
  19210. <doc>
  19211. <![CDATA[Return the value of this LongWritable.]]>
  19212. </doc>
  19213. </method>
  19214. <method name="readFields"
  19215. abstract="false" native="false" synchronized="false"
  19216. static="false" final="false" visibility="public"
  19217. deprecated="not deprecated">
  19218. <param name="in" type="java.io.DataInput"/>
  19219. <exception name="IOException" type="java.io.IOException"/>
  19220. </method>
  19221. <method name="write"
  19222. abstract="false" native="false" synchronized="false"
  19223. static="false" final="false" visibility="public"
  19224. deprecated="not deprecated">
  19225. <param name="out" type="java.io.DataOutput"/>
  19226. <exception name="IOException" type="java.io.IOException"/>
  19227. </method>
  19228. <method name="equals" return="boolean"
  19229. abstract="false" native="false" synchronized="false"
  19230. static="false" final="false" visibility="public"
  19231. deprecated="not deprecated">
  19232. <param name="o" type="java.lang.Object"/>
  19233. <doc>
  19234. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  19235. </doc>
  19236. </method>
  19237. <method name="hashCode" return="int"
  19238. abstract="false" native="false" synchronized="false"
  19239. static="false" final="false" visibility="public"
  19240. deprecated="not deprecated">
  19241. </method>
  19242. <method name="compareTo" return="int"
  19243. abstract="false" native="false" synchronized="false"
  19244. static="false" final="false" visibility="public"
  19245. deprecated="not deprecated">
  19246. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  19247. <doc>
  19248. <![CDATA[Compares two LongWritables.]]>
  19249. </doc>
  19250. </method>
  19251. <method name="toString" return="java.lang.String"
  19252. abstract="false" native="false" synchronized="false"
  19253. static="false" final="false" visibility="public"
  19254. deprecated="not deprecated">
  19255. </method>
  19256. <doc>
  19257. <![CDATA[A WritableComparable for longs.]]>
  19258. </doc>
  19259. </class>
  19260. <!-- end class org.apache.hadoop.io.LongWritable -->
  19261. <!-- start class org.apache.hadoop.io.MapFile -->
  19262. <class name="MapFile" extends="java.lang.Object"
  19263. abstract="false"
  19264. static="false" final="false" visibility="public"
  19265. deprecated="not deprecated">
  19266. <constructor name="MapFile"
  19267. static="false" final="false" visibility="protected"
  19268. deprecated="not deprecated">
  19269. </constructor>
  19270. <method name="rename"
  19271. abstract="false" native="false" synchronized="false"
  19272. static="true" final="false" visibility="public"
  19273. deprecated="not deprecated">
  19274. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19275. <param name="oldName" type="java.lang.String"/>
  19276. <param name="newName" type="java.lang.String"/>
  19277. <exception name="IOException" type="java.io.IOException"/>
  19278. <doc>
  19279. <![CDATA[Renames an existing map directory.]]>
  19280. </doc>
  19281. </method>
  19282. <method name="delete"
  19283. abstract="false" native="false" synchronized="false"
  19284. static="true" final="false" visibility="public"
  19285. deprecated="not deprecated">
  19286. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19287. <param name="name" type="java.lang.String"/>
  19288. <exception name="IOException" type="java.io.IOException"/>
  19289. <doc>
  19290. <![CDATA[Deletes the named map file.]]>
  19291. </doc>
  19292. </method>
  19293. <method name="fix" return="long"
  19294. abstract="false" native="false" synchronized="false"
  19295. static="true" final="false" visibility="public"
  19296. deprecated="not deprecated">
  19297. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19298. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  19299. <param name="keyClass" type="java.lang.Class"/>
  19300. <param name="valueClass" type="java.lang.Class"/>
  19301. <param name="dryrun" type="boolean"/>
  19302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19303. <exception name="Exception" type="java.lang.Exception"/>
  19304. <doc>
  19305. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  19306. @param fs filesystem
  19307. @param dir directory containing the MapFile data and index
  19308. @param keyClass key class (has to be a subclass of Writable)
  19309. @param valueClass value class (has to be a subclass of Writable)
  19310. @param dryrun do not perform any changes, just report what needs to be done
  19311. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  19312. @throws Exception]]>
  19313. </doc>
  19314. </method>
  19315. <method name="main"
  19316. abstract="false" native="false" synchronized="false"
  19317. static="true" final="false" visibility="public"
  19318. deprecated="not deprecated">
  19319. <param name="args" type="java.lang.String[]"/>
  19320. <exception name="Exception" type="java.lang.Exception"/>
  19321. </method>
  19322. <field name="INDEX_FILE_NAME" type="java.lang.String"
  19323. transient="false" volatile="false"
  19324. static="true" final="true" visibility="public"
  19325. deprecated="not deprecated">
  19326. <doc>
  19327. <![CDATA[The name of the index file.]]>
  19328. </doc>
  19329. </field>
  19330. <field name="DATA_FILE_NAME" type="java.lang.String"
  19331. transient="false" volatile="false"
  19332. static="true" final="true" visibility="public"
  19333. deprecated="not deprecated">
  19334. <doc>
  19335. <![CDATA[The name of the data file.]]>
  19336. </doc>
  19337. </field>
  19338. <doc>
  19339. <![CDATA[A file-based map from keys to values.
  19340. <p>A map is a directory containing two files, the <code>data</code> file,
  19341. containing all keys and values in the map, and a smaller <code>index</code>
  19342. file, containing a fraction of the keys. The fraction is determined by
  19343. {@link Writer#getIndexInterval()}.
  19344. <p>The index file is read entirely into memory. Thus key implementations
  19345. should try to keep themselves small.
  19346. <p>Map files are created by adding entries in-order. To maintain a large
  19347. database, perform updates by copying the previous version of a database and
  19348. merging in a sorted change list, to create a new version of the database in
  19349. a new file. Sorting large change lists can be done with {@link
  19350. SequenceFile.Sorter}.]]>
  19351. </doc>
  19352. </class>
  19353. <!-- end class org.apache.hadoop.io.MapFile -->
  19354. <!-- start class org.apache.hadoop.io.MapWritable -->
  19355. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  19356. abstract="false"
  19357. static="false" final="false" visibility="public"
  19358. deprecated="not deprecated">
  19359. <implements name="java.util.Map"/>
  19360. <constructor name="MapWritable"
  19361. static="false" final="false" visibility="public"
  19362. deprecated="not deprecated">
  19363. <doc>
  19364. <![CDATA[Default constructor.]]>
  19365. </doc>
  19366. </constructor>
  19367. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  19368. static="false" final="false" visibility="public"
  19369. deprecated="not deprecated">
  19370. <doc>
  19371. <![CDATA[Copy constructor.
  19372. @param other the map to copy from]]>
  19373. </doc>
  19374. </constructor>
  19375. <method name="clear"
  19376. abstract="false" native="false" synchronized="false"
  19377. static="false" final="false" visibility="public"
  19378. deprecated="not deprecated">
  19379. </method>
  19380. <method name="containsKey" return="boolean"
  19381. abstract="false" native="false" synchronized="false"
  19382. static="false" final="false" visibility="public"
  19383. deprecated="not deprecated">
  19384. <param name="key" type="java.lang.Object"/>
  19385. </method>
  19386. <method name="containsValue" return="boolean"
  19387. abstract="false" native="false" synchronized="false"
  19388. static="false" final="false" visibility="public"
  19389. deprecated="not deprecated">
  19390. <param name="value" type="java.lang.Object"/>
  19391. </method>
  19392. <method name="entrySet" return="java.util.Set"
  19393. abstract="false" native="false" synchronized="false"
  19394. static="false" final="false" visibility="public"
  19395. deprecated="not deprecated">
  19396. </method>
  19397. <method name="equals" return="boolean"
  19398. abstract="false" native="false" synchronized="false"
  19399. static="false" final="false" visibility="public"
  19400. deprecated="not deprecated">
  19401. <param name="obj" type="java.lang.Object"/>
  19402. </method>
  19403. <method name="get" return="org.apache.hadoop.io.Writable"
  19404. abstract="false" native="false" synchronized="false"
  19405. static="false" final="false" visibility="public"
  19406. deprecated="not deprecated">
  19407. <param name="key" type="java.lang.Object"/>
  19408. </method>
  19409. <method name="hashCode" return="int"
  19410. abstract="false" native="false" synchronized="false"
  19411. static="false" final="false" visibility="public"
  19412. deprecated="not deprecated">
  19413. </method>
  19414. <method name="isEmpty" return="boolean"
  19415. abstract="false" native="false" synchronized="false"
  19416. static="false" final="false" visibility="public"
  19417. deprecated="not deprecated">
  19418. </method>
  19419. <method name="keySet" return="java.util.Set"
  19420. abstract="false" native="false" synchronized="false"
  19421. static="false" final="false" visibility="public"
  19422. deprecated="not deprecated">
  19423. </method>
  19424. <method name="put" return="org.apache.hadoop.io.Writable"
  19425. abstract="false" native="false" synchronized="false"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <param name="key" type="org.apache.hadoop.io.Writable"/>
  19429. <param name="value" type="org.apache.hadoop.io.Writable"/>
  19430. </method>
  19431. <method name="putAll"
  19432. abstract="false" native="false" synchronized="false"
  19433. static="false" final="false" visibility="public"
  19434. deprecated="not deprecated">
  19435. <param name="t" type="java.util.Map"/>
  19436. </method>
  19437. <method name="remove" return="org.apache.hadoop.io.Writable"
  19438. abstract="false" native="false" synchronized="false"
  19439. static="false" final="false" visibility="public"
  19440. deprecated="not deprecated">
  19441. <param name="key" type="java.lang.Object"/>
  19442. </method>
  19443. <method name="size" return="int"
  19444. abstract="false" native="false" synchronized="false"
  19445. static="false" final="false" visibility="public"
  19446. deprecated="not deprecated">
  19447. </method>
  19448. <method name="values" return="java.util.Collection"
  19449. abstract="false" native="false" synchronized="false"
  19450. static="false" final="false" visibility="public"
  19451. deprecated="not deprecated">
  19452. </method>
  19453. <method name="write"
  19454. abstract="false" native="false" synchronized="false"
  19455. static="false" final="false" visibility="public"
  19456. deprecated="not deprecated">
  19457. <param name="out" type="java.io.DataOutput"/>
  19458. <exception name="IOException" type="java.io.IOException"/>
  19459. </method>
  19460. <method name="readFields"
  19461. abstract="false" native="false" synchronized="false"
  19462. static="false" final="false" visibility="public"
  19463. deprecated="not deprecated">
  19464. <param name="in" type="java.io.DataInput"/>
  19465. <exception name="IOException" type="java.io.IOException"/>
  19466. </method>
  19467. <method name="toString" return="java.lang.String"
  19468. abstract="false" native="false" synchronized="false"
  19469. static="false" final="false" visibility="public"
  19470. deprecated="not deprecated">
  19471. </method>
  19472. <doc>
  19473. <![CDATA[A Writable Map.]]>
  19474. </doc>
  19475. </class>
  19476. <!-- end class org.apache.hadoop.io.MapWritable -->
  19477. <!-- start class org.apache.hadoop.io.MD5Hash -->
  19478. <class name="MD5Hash" extends="java.lang.Object"
  19479. abstract="false"
  19480. static="false" final="false" visibility="public"
  19481. deprecated="not deprecated">
  19482. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19483. <constructor name="MD5Hash"
  19484. static="false" final="false" visibility="public"
  19485. deprecated="not deprecated">
  19486. <doc>
  19487. <![CDATA[Constructs an MD5Hash.]]>
  19488. </doc>
  19489. </constructor>
  19490. <constructor name="MD5Hash" type="java.lang.String"
  19491. static="false" final="false" visibility="public"
  19492. deprecated="not deprecated">
  19493. <doc>
  19494. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  19495. </doc>
  19496. </constructor>
  19497. <constructor name="MD5Hash" type="byte[]"
  19498. static="false" final="false" visibility="public"
  19499. deprecated="not deprecated">
  19500. <doc>
  19501. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  19502. </doc>
  19503. </constructor>
  19504. <method name="readFields"
  19505. abstract="false" native="false" synchronized="false"
  19506. static="false" final="false" visibility="public"
  19507. deprecated="not deprecated">
  19508. <param name="in" type="java.io.DataInput"/>
  19509. <exception name="IOException" type="java.io.IOException"/>
  19510. </method>
  19511. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  19512. abstract="false" native="false" synchronized="false"
  19513. static="true" final="false" visibility="public"
  19514. deprecated="not deprecated">
  19515. <param name="in" type="java.io.DataInput"/>
  19516. <exception name="IOException" type="java.io.IOException"/>
  19517. <doc>
  19518. <![CDATA[Constructs, reads and returns an instance.]]>
  19519. </doc>
  19520. </method>
  19521. <method name="write"
  19522. abstract="false" native="false" synchronized="false"
  19523. static="false" final="false" visibility="public"
  19524. deprecated="not deprecated">
  19525. <param name="out" type="java.io.DataOutput"/>
  19526. <exception name="IOException" type="java.io.IOException"/>
  19527. </method>
  19528. <method name="set"
  19529. abstract="false" native="false" synchronized="false"
  19530. static="false" final="false" visibility="public"
  19531. deprecated="not deprecated">
  19532. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  19533. <doc>
  19534. <![CDATA[Copy the contents of another instance into this instance.]]>
  19535. </doc>
  19536. </method>
  19537. <method name="getDigest" return="byte[]"
  19538. abstract="false" native="false" synchronized="false"
  19539. static="false" final="false" visibility="public"
  19540. deprecated="not deprecated">
  19541. <doc>
  19542. <![CDATA[Returns the digest bytes.]]>
  19543. </doc>
  19544. </method>
  19545. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19546. abstract="false" native="false" synchronized="false"
  19547. static="true" final="false" visibility="public"
  19548. deprecated="not deprecated">
  19549. <param name="data" type="byte[]"/>
  19550. <doc>
  19551. <![CDATA[Construct a hash value for a byte array.]]>
  19552. </doc>
  19553. </method>
  19554. <method name="getDigester" return="java.security.MessageDigest"
  19555. abstract="false" native="false" synchronized="false"
  19556. static="true" final="false" visibility="public"
  19557. deprecated="not deprecated">
  19558. <doc>
  19559. <![CDATA[Create a thread local MD5 digester]]>
  19560. </doc>
  19561. </method>
  19562. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19563. abstract="false" native="false" synchronized="false"
  19564. static="true" final="false" visibility="public"
  19565. deprecated="not deprecated">
  19566. <param name="in" type="java.io.InputStream"/>
  19567. <exception name="IOException" type="java.io.IOException"/>
  19568. <doc>
  19569. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  19570. </doc>
  19571. </method>
  19572. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19573. abstract="false" native="false" synchronized="false"
  19574. static="true" final="false" visibility="public"
  19575. deprecated="not deprecated">
  19576. <param name="data" type="byte[]"/>
  19577. <param name="start" type="int"/>
  19578. <param name="len" type="int"/>
  19579. <doc>
  19580. <![CDATA[Construct a hash value for a byte array.]]>
  19581. </doc>
  19582. </method>
  19583. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19584. abstract="false" native="false" synchronized="false"
  19585. static="true" final="false" visibility="public"
  19586. deprecated="not deprecated">
  19587. <param name="string" type="java.lang.String"/>
  19588. <doc>
  19589. <![CDATA[Construct a hash value for a String.]]>
  19590. </doc>
  19591. </method>
  19592. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  19593. abstract="false" native="false" synchronized="false"
  19594. static="true" final="false" visibility="public"
  19595. deprecated="not deprecated">
  19596. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  19597. <doc>
  19598. <![CDATA[Construct a hash value for a String.]]>
  19599. </doc>
  19600. </method>
  19601. <method name="halfDigest" return="long"
  19602. abstract="false" native="false" synchronized="false"
  19603. static="false" final="false" visibility="public"
  19604. deprecated="not deprecated">
  19605. <doc>
  19606. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  19607. </doc>
  19608. </method>
  19609. <method name="quarterDigest" return="int"
  19610. abstract="false" native="false" synchronized="false"
  19611. static="false" final="false" visibility="public"
  19612. deprecated="not deprecated">
  19613. <doc>
  19614. <![CDATA[Return a 32-bit digest of the MD5.
  19615. @return the first 4 bytes of the md5]]>
  19616. </doc>
  19617. </method>
  19618. <method name="equals" return="boolean"
  19619. abstract="false" native="false" synchronized="false"
  19620. static="false" final="false" visibility="public"
  19621. deprecated="not deprecated">
  19622. <param name="o" type="java.lang.Object"/>
  19623. <doc>
  19624. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  19625. same values.]]>
  19626. </doc>
  19627. </method>
  19628. <method name="hashCode" return="int"
  19629. abstract="false" native="false" synchronized="false"
  19630. static="false" final="false" visibility="public"
  19631. deprecated="not deprecated">
  19632. <doc>
  19633. <![CDATA[Returns a hash code value for this object.
  19634. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  19635. </doc>
  19636. </method>
  19637. <method name="compareTo" return="int"
  19638. abstract="false" native="false" synchronized="false"
  19639. static="false" final="false" visibility="public"
  19640. deprecated="not deprecated">
  19641. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  19642. <doc>
  19643. <![CDATA[Compares this object with the specified object for order.]]>
  19644. </doc>
  19645. </method>
  19646. <method name="toString" return="java.lang.String"
  19647. abstract="false" native="false" synchronized="false"
  19648. static="false" final="false" visibility="public"
  19649. deprecated="not deprecated">
  19650. <doc>
  19651. <![CDATA[Returns a string representation of this object.]]>
  19652. </doc>
  19653. </method>
  19654. <method name="setDigest"
  19655. abstract="false" native="false" synchronized="false"
  19656. static="false" final="false" visibility="public"
  19657. deprecated="not deprecated">
  19658. <param name="hex" type="java.lang.String"/>
  19659. <doc>
  19660. <![CDATA[Sets the digest value from a hex string.]]>
  19661. </doc>
  19662. </method>
  19663. <field name="MD5_LEN" type="int"
  19664. transient="false" volatile="false"
  19665. static="true" final="true" visibility="public"
  19666. deprecated="not deprecated">
  19667. </field>
  19668. <doc>
  19669. <![CDATA[A Writable for MD5 hash values.]]>
  19670. </doc>
  19671. </class>
  19672. <!-- end class org.apache.hadoop.io.MD5Hash -->
  19673. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  19674. <class name="MultipleIOException" extends="java.io.IOException"
  19675. abstract="false"
  19676. static="false" final="false" visibility="public"
  19677. deprecated="not deprecated">
  19678. <method name="getExceptions" return="java.util.List"
  19679. abstract="false" native="false" synchronized="false"
  19680. static="false" final="false" visibility="public"
  19681. deprecated="not deprecated">
  19682. <doc>
  19683. <![CDATA[@return the underlying exceptions]]>
  19684. </doc>
  19685. </method>
  19686. <method name="createIOException" return="java.io.IOException"
  19687. abstract="false" native="false" synchronized="false"
  19688. static="true" final="false" visibility="public"
  19689. deprecated="not deprecated">
  19690. <param name="exceptions" type="java.util.List"/>
  19691. <doc>
  19692. <![CDATA[A convenient method to create an {@link IOException}.]]>
  19693. </doc>
  19694. </method>
  19695. <doc>
  19696. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  19697. </doc>
  19698. </class>
  19699. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  19700. <!-- start class org.apache.hadoop.io.NullWritable -->
  19701. <class name="NullWritable" extends="java.lang.Object"
  19702. abstract="false"
  19703. static="false" final="false" visibility="public"
  19704. deprecated="not deprecated">
  19705. <implements name="org.apache.hadoop.io.WritableComparable"/>
  19706. <method name="get" return="org.apache.hadoop.io.NullWritable"
  19707. abstract="false" native="false" synchronized="false"
  19708. static="true" final="false" visibility="public"
  19709. deprecated="not deprecated">
  19710. <doc>
  19711. <![CDATA[Returns the single instance of this class.]]>
  19712. </doc>
  19713. </method>
  19714. <method name="toString" return="java.lang.String"
  19715. abstract="false" native="false" synchronized="false"
  19716. static="false" final="false" visibility="public"
  19717. deprecated="not deprecated">
  19718. </method>
  19719. <method name="hashCode" return="int"
  19720. abstract="false" native="false" synchronized="false"
  19721. static="false" final="false" visibility="public"
  19722. deprecated="not deprecated">
  19723. </method>
  19724. <method name="compareTo" return="int"
  19725. abstract="false" native="false" synchronized="false"
  19726. static="false" final="false" visibility="public"
  19727. deprecated="not deprecated">
  19728. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  19729. </method>
  19730. <method name="equals" return="boolean"
  19731. abstract="false" native="false" synchronized="false"
  19732. static="false" final="false" visibility="public"
  19733. deprecated="not deprecated">
  19734. <param name="other" type="java.lang.Object"/>
  19735. </method>
  19736. <method name="readFields"
  19737. abstract="false" native="false" synchronized="false"
  19738. static="false" final="false" visibility="public"
  19739. deprecated="not deprecated">
  19740. <param name="in" type="java.io.DataInput"/>
  19741. <exception name="IOException" type="java.io.IOException"/>
  19742. </method>
  19743. <method name="write"
  19744. abstract="false" native="false" synchronized="false"
  19745. static="false" final="false" visibility="public"
  19746. deprecated="not deprecated">
  19747. <param name="out" type="java.io.DataOutput"/>
  19748. <exception name="IOException" type="java.io.IOException"/>
  19749. </method>
  19750. <doc>
  19751. <![CDATA[Singleton Writable with no data.]]>
  19752. </doc>
  19753. </class>
  19754. <!-- end class org.apache.hadoop.io.NullWritable -->
  19755. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  19756. <class name="ObjectWritable" extends="java.lang.Object"
  19757. abstract="false"
  19758. static="false" final="false" visibility="public"
  19759. deprecated="not deprecated">
  19760. <implements name="org.apache.hadoop.io.Writable"/>
  19761. <implements name="org.apache.hadoop.conf.Configurable"/>
  19762. <constructor name="ObjectWritable"
  19763. static="false" final="false" visibility="public"
  19764. deprecated="not deprecated">
  19765. </constructor>
  19766. <constructor name="ObjectWritable" type="java.lang.Object"
  19767. static="false" final="false" visibility="public"
  19768. deprecated="not deprecated">
  19769. </constructor>
  19770. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  19771. static="false" final="false" visibility="public"
  19772. deprecated="not deprecated">
  19773. </constructor>
  19774. <method name="get" return="java.lang.Object"
  19775. abstract="false" native="false" synchronized="false"
  19776. static="false" final="false" visibility="public"
  19777. deprecated="not deprecated">
  19778. <doc>
  19779. <![CDATA[Return the instance, or null if none.]]>
  19780. </doc>
  19781. </method>
  19782. <method name="getDeclaredClass" return="java.lang.Class"
  19783. abstract="false" native="false" synchronized="false"
  19784. static="false" final="false" visibility="public"
  19785. deprecated="not deprecated">
  19786. <doc>
  19787. <![CDATA[Return the class this is meant to be.]]>
  19788. </doc>
  19789. </method>
  19790. <method name="set"
  19791. abstract="false" native="false" synchronized="false"
  19792. static="false" final="false" visibility="public"
  19793. deprecated="not deprecated">
  19794. <param name="instance" type="java.lang.Object"/>
  19795. <doc>
  19796. <![CDATA[Reset the instance.]]>
  19797. </doc>
  19798. </method>
  19799. <method name="toString" return="java.lang.String"
  19800. abstract="false" native="false" synchronized="false"
  19801. static="false" final="false" visibility="public"
  19802. deprecated="not deprecated">
  19803. </method>
  19804. <method name="readFields"
  19805. abstract="false" native="false" synchronized="false"
  19806. static="false" final="false" visibility="public"
  19807. deprecated="not deprecated">
  19808. <param name="in" type="java.io.DataInput"/>
  19809. <exception name="IOException" type="java.io.IOException"/>
  19810. </method>
  19811. <method name="write"
  19812. abstract="false" native="false" synchronized="false"
  19813. static="false" final="false" visibility="public"
  19814. deprecated="not deprecated">
  19815. <param name="out" type="java.io.DataOutput"/>
  19816. <exception name="IOException" type="java.io.IOException"/>
  19817. </method>
  19818. <method name="writeObject"
  19819. abstract="false" native="false" synchronized="false"
  19820. static="true" final="false" visibility="public"
  19821. deprecated="not deprecated">
  19822. <param name="out" type="java.io.DataOutput"/>
  19823. <param name="instance" type="java.lang.Object"/>
  19824. <param name="declaredClass" type="java.lang.Class"/>
  19825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19826. <exception name="IOException" type="java.io.IOException"/>
  19827. <doc>
  19828. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19829. the preceding.]]>
  19830. </doc>
  19831. </method>
  19832. <method name="writeObject"
  19833. abstract="false" native="false" synchronized="false"
  19834. static="true" final="false" visibility="public"
  19835. deprecated="not deprecated">
  19836. <param name="out" type="java.io.DataOutput"/>
  19837. <param name="instance" type="java.lang.Object"/>
  19838. <param name="declaredClass" type="java.lang.Class"/>
  19839. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19840. <param name="allowCompactArrays" type="boolean"/>
  19841. <exception name="IOException" type="java.io.IOException"/>
  19842. <doc>
  19843. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  19844. the preceding.
  19845. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  19846. usages. Set false for inter-cluster, File, and other persisted output
  19847. usages, to preserve the ability to interchange files with other clusters
  19848. that may not be running the same version of software. Sometime in ~2013
  19849. we can consider removing this parameter and always using the compact format.]]>
  19850. </doc>
  19851. </method>
  19852. <method name="readObject" return="java.lang.Object"
  19853. abstract="false" native="false" synchronized="false"
  19854. static="true" final="false" visibility="public"
  19855. deprecated="not deprecated">
  19856. <param name="in" type="java.io.DataInput"/>
  19857. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19858. <exception name="IOException" type="java.io.IOException"/>
  19859. <doc>
  19860. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19861. the preceding.]]>
  19862. </doc>
  19863. </method>
  19864. <method name="readObject" return="java.lang.Object"
  19865. abstract="false" native="false" synchronized="false"
  19866. static="true" final="false" visibility="public"
  19867. deprecated="not deprecated">
  19868. <param name="in" type="java.io.DataInput"/>
  19869. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  19870. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19871. <exception name="IOException" type="java.io.IOException"/>
  19872. <doc>
  19873. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  19874. the preceding.]]>
  19875. </doc>
  19876. </method>
  19877. <method name="loadClass" return="java.lang.Class"
  19878. abstract="false" native="false" synchronized="false"
  19879. static="true" final="false" visibility="public"
  19880. deprecated="not deprecated">
  19881. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19882. <param name="className" type="java.lang.String"/>
  19883. <doc>
  19884. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  19885. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  19886. try load it directly.]]>
  19887. </doc>
  19888. </method>
  19889. <method name="setConf"
  19890. abstract="false" native="false" synchronized="false"
  19891. static="false" final="false" visibility="public"
  19892. deprecated="not deprecated">
  19893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19894. </method>
  19895. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19896. abstract="false" native="false" synchronized="false"
  19897. static="false" final="false" visibility="public"
  19898. deprecated="not deprecated">
  19899. </method>
  19900. <doc>
  19901. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  19902. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  19903. </doc>
  19904. </class>
  19905. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  19906. <!-- start interface org.apache.hadoop.io.RawComparator -->
  19907. <interface name="RawComparator" abstract="true"
  19908. static="false" final="false" visibility="public"
  19909. deprecated="not deprecated">
  19910. <implements name="java.util.Comparator"/>
  19911. <method name="compare" return="int"
  19912. abstract="false" native="false" synchronized="false"
  19913. static="false" final="false" visibility="public"
  19914. deprecated="not deprecated">
  19915. <param name="b1" type="byte[]"/>
  19916. <param name="s1" type="int"/>
  19917. <param name="l1" type="int"/>
  19918. <param name="b2" type="byte[]"/>
  19919. <param name="s2" type="int"/>
  19920. <param name="l2" type="int"/>
  19921. <doc>
  19922. <![CDATA[Compare two objects in binary.
  19923. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  19924. @param b1 The first byte array.
  19925. @param s1 The position index in b1. The object under comparison's starting index.
  19926. @param l1 The length of the object in b1.
  19927. @param b2 The second byte array.
  19928. @param s2 The position index in b2. The object under comparison's starting index.
  19929. @param l2 The length of the object under comparison in b2.
  19930. @return An integer result of the comparison.]]>
  19931. </doc>
  19932. </method>
  19933. <doc>
  19934. <![CDATA[<p>
  19935. A {@link Comparator} that operates directly on byte representations of
  19936. objects.
  19937. </p>
  19938. @param <T>
  19939. @see DeserializerComparator]]>
  19940. </doc>
  19941. </interface>
  19942. <!-- end interface org.apache.hadoop.io.RawComparator -->
  19943. <!-- start class org.apache.hadoop.io.SequenceFile -->
  19944. <class name="SequenceFile" extends="java.lang.Object"
  19945. abstract="false"
  19946. static="false" final="false" visibility="public"
  19947. deprecated="not deprecated">
  19948. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  19949. abstract="false" native="false" synchronized="false"
  19950. static="true" final="false" visibility="public"
  19951. deprecated="not deprecated">
  19952. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19953. <doc>
  19954. <![CDATA[Get the compression type for the reduce outputs
  19955. @param job the job config to look in
  19956. @return the kind of compression to use]]>
  19957. </doc>
  19958. </method>
  19959. <method name="setDefaultCompressionType"
  19960. abstract="false" native="false" synchronized="false"
  19961. static="true" final="false" visibility="public"
  19962. deprecated="not deprecated">
  19963. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  19964. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  19965. <doc>
  19966. <![CDATA[Set the default compression type for sequence files.
  19967. @param job the configuration to modify
  19968. @param val the new compression type (none, block, record)]]>
  19969. </doc>
  19970. </method>
  19971. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19972. abstract="false" native="false" synchronized="false"
  19973. static="true" final="false" visibility="public"
  19974. deprecated="not deprecated">
  19975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19976. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  19977. <exception name="IOException" type="java.io.IOException"/>
  19978. <doc>
  19979. <![CDATA[Create a new Writer with the given options.
  19980. @param conf the configuration to use
  19981. @param opts the options to create the file with
  19982. @return a new Writer
  19983. @throws IOException]]>
  19984. </doc>
  19985. </method>
  19986. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  19987. abstract="false" native="false" synchronized="false"
  19988. static="true" final="false" visibility="public"
  19989. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  19990. instead.">
  19991. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19992. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19993. <param name="name" type="org.apache.hadoop.fs.Path"/>
  19994. <param name="keyClass" type="java.lang.Class"/>
  19995. <param name="valClass" type="java.lang.Class"/>
  19996. <exception name="IOException" type="java.io.IOException"/>
  19997. <doc>
  19998. <![CDATA[Construct the preferred type of SequenceFile Writer.
  19999. @param fs The configured filesystem.
  20000. @param conf The configuration.
  20001. @param name The name of the file.
  20002. @param keyClass The 'key' type.
  20003. @param valClass The 'value' type.
  20004. @return Returns the handle to the constructed SequenceFile Writer.
  20005. @throws IOException
  20006. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20007. instead.]]>
  20008. </doc>
  20009. </method>
  20010. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20011. abstract="false" native="false" synchronized="false"
  20012. static="true" final="false" visibility="public"
  20013. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20014. instead.">
  20015. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20017. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20018. <param name="keyClass" type="java.lang.Class"/>
  20019. <param name="valClass" type="java.lang.Class"/>
  20020. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20021. <exception name="IOException" type="java.io.IOException"/>
  20022. <doc>
  20023. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20024. @param fs The configured filesystem.
  20025. @param conf The configuration.
  20026. @param name The name of the file.
  20027. @param keyClass The 'key' type.
  20028. @param valClass The 'value' type.
  20029. @param compressionType The compression type.
  20030. @return Returns the handle to the constructed SequenceFile Writer.
  20031. @throws IOException
  20032. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20033. instead.]]>
  20034. </doc>
  20035. </method>
  20036. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20037. abstract="false" native="false" synchronized="false"
  20038. static="true" final="false" visibility="public"
  20039. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20040. instead.">
  20041. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20042. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20043. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20044. <param name="keyClass" type="java.lang.Class"/>
  20045. <param name="valClass" type="java.lang.Class"/>
  20046. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20047. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20048. <exception name="IOException" type="java.io.IOException"/>
  20049. <doc>
  20050. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20051. @param fs The configured filesystem.
  20052. @param conf The configuration.
  20053. @param name The name of the file.
  20054. @param keyClass The 'key' type.
  20055. @param valClass The 'value' type.
  20056. @param compressionType The compression type.
  20057. @param progress The Progressable object to track progress.
  20058. @return Returns the handle to the constructed SequenceFile Writer.
  20059. @throws IOException
  20060. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20061. instead.]]>
  20062. </doc>
  20063. </method>
  20064. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20065. abstract="false" native="false" synchronized="false"
  20066. static="true" final="false" visibility="public"
  20067. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20068. instead.">
  20069. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20070. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20071. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20072. <param name="keyClass" type="java.lang.Class"/>
  20073. <param name="valClass" type="java.lang.Class"/>
  20074. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20075. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20076. <exception name="IOException" type="java.io.IOException"/>
  20077. <doc>
  20078. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20079. @param fs The configured filesystem.
  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. @return Returns the handle to the constructed SequenceFile Writer.
  20087. @throws IOException
  20088. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20089. instead.]]>
  20090. </doc>
  20091. </method>
  20092. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20093. abstract="false" native="false" synchronized="false"
  20094. static="true" final="false" visibility="public"
  20095. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20096. instead.">
  20097. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20099. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20100. <param name="keyClass" type="java.lang.Class"/>
  20101. <param name="valClass" type="java.lang.Class"/>
  20102. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20103. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20104. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20105. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  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. @param metadata The metadata of the file.
  20118. @return Returns the handle to the constructed SequenceFile Writer.
  20119. @throws IOException
  20120. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20121. instead.]]>
  20122. </doc>
  20123. </method>
  20124. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20125. abstract="false" native="false" synchronized="false"
  20126. static="true" final="false" visibility="public"
  20127. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20128. instead.">
  20129. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20130. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20131. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20132. <param name="keyClass" type="java.lang.Class"/>
  20133. <param name="valClass" type="java.lang.Class"/>
  20134. <param name="bufferSize" type="int"/>
  20135. <param name="replication" type="short"/>
  20136. <param name="blockSize" type="long"/>
  20137. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20138. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20139. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20140. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20141. <exception name="IOException" type="java.io.IOException"/>
  20142. <doc>
  20143. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20144. @param fs The configured filesystem.
  20145. @param conf The configuration.
  20146. @param name The name of the file.
  20147. @param keyClass The 'key' type.
  20148. @param valClass The 'value' type.
  20149. @param bufferSize buffer size for the underlaying outputstream.
  20150. @param replication replication factor for the file.
  20151. @param blockSize block size for the file.
  20152. @param compressionType The compression type.
  20153. @param codec The compression codec.
  20154. @param progress The Progressable object to track progress.
  20155. @param metadata The metadata of the file.
  20156. @return Returns the handle to the constructed SequenceFile Writer.
  20157. @throws IOException
  20158. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20159. instead.]]>
  20160. </doc>
  20161. </method>
  20162. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20163. abstract="false" native="false" synchronized="false"
  20164. static="true" final="false" visibility="public"
  20165. deprecated="not deprecated">
  20166. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20167. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20168. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20169. <param name="keyClass" type="java.lang.Class"/>
  20170. <param name="valClass" type="java.lang.Class"/>
  20171. <param name="bufferSize" type="int"/>
  20172. <param name="replication" type="short"/>
  20173. <param name="blockSize" type="long"/>
  20174. <param name="createParent" type="boolean"/>
  20175. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20176. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20177. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20178. <exception name="IOException" type="java.io.IOException"/>
  20179. <doc>
  20180. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20181. @param fs The configured filesystem.
  20182. @param conf The configuration.
  20183. @param name The name of the file.
  20184. @param keyClass The 'key' type.
  20185. @param valClass The 'value' type.
  20186. @param bufferSize buffer size for the underlaying outputstream.
  20187. @param replication replication factor for the file.
  20188. @param blockSize block size for the file.
  20189. @param createParent create parent directory if non-existent
  20190. @param compressionType The compression type.
  20191. @param codec The compression codec.
  20192. @param metadata The metadata of the file.
  20193. @return Returns the handle to the constructed SequenceFile Writer.
  20194. @throws IOException]]>
  20195. </doc>
  20196. </method>
  20197. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20198. abstract="false" native="false" synchronized="false"
  20199. static="true" final="false" visibility="public"
  20200. deprecated="not deprecated">
  20201. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  20202. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20203. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20204. <param name="keyClass" type="java.lang.Class"/>
  20205. <param name="valClass" type="java.lang.Class"/>
  20206. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20207. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20208. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20209. <param name="createFlag" type="java.util.EnumSet"/>
  20210. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  20211. <exception name="IOException" type="java.io.IOException"/>
  20212. <doc>
  20213. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20214. @param fc The context for the specified file.
  20215. @param conf The configuration.
  20216. @param name The name of the file.
  20217. @param keyClass The 'key' type.
  20218. @param valClass The 'value' type.
  20219. @param compressionType The compression type.
  20220. @param codec The compression codec.
  20221. @param metadata The metadata of the file.
  20222. @param createFlag gives the semantics of create: overwrite, append etc.
  20223. @param opts file creation options; see {@link CreateOpts}.
  20224. @return Returns the handle to the constructed SequenceFile Writer.
  20225. @throws IOException]]>
  20226. </doc>
  20227. </method>
  20228. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20229. abstract="false" native="false" synchronized="false"
  20230. static="true" final="false" visibility="public"
  20231. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20232. instead.">
  20233. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  20234. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20235. <param name="name" type="org.apache.hadoop.fs.Path"/>
  20236. <param name="keyClass" type="java.lang.Class"/>
  20237. <param name="valClass" type="java.lang.Class"/>
  20238. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20239. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20240. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  20241. <exception name="IOException" type="java.io.IOException"/>
  20242. <doc>
  20243. <![CDATA[Construct the preferred type of SequenceFile Writer.
  20244. @param fs The configured filesystem.
  20245. @param conf The configuration.
  20246. @param name The name of the file.
  20247. @param keyClass The 'key' type.
  20248. @param valClass The 'value' type.
  20249. @param compressionType The compression type.
  20250. @param codec The compression codec.
  20251. @param progress The Progressable object to track progress.
  20252. @return Returns the handle to the constructed SequenceFile Writer.
  20253. @throws IOException
  20254. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20255. instead.]]>
  20256. </doc>
  20257. </method>
  20258. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20259. abstract="false" native="false" synchronized="false"
  20260. static="true" final="false" visibility="public"
  20261. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20262. instead.">
  20263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20264. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  20265. <param name="keyClass" type="java.lang.Class"/>
  20266. <param name="valClass" type="java.lang.Class"/>
  20267. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20268. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20269. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  20270. <exception name="IOException" type="java.io.IOException"/>
  20271. <doc>
  20272. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  20273. @param conf The configuration.
  20274. @param out The stream on top which the writer is to be constructed.
  20275. @param keyClass The 'key' type.
  20276. @param valClass The 'value' type.
  20277. @param compressionType The compression type.
  20278. @param codec The compression codec.
  20279. @param metadata The metadata of the file.
  20280. @return Returns the handle to the constructed SequenceFile Writer.
  20281. @throws IOException
  20282. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20283. instead.]]>
  20284. </doc>
  20285. </method>
  20286. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  20287. abstract="false" native="false" synchronized="false"
  20288. static="true" final="false" visibility="public"
  20289. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  20290. instead.">
  20291. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20292. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  20293. <param name="keyClass" type="java.lang.Class"/>
  20294. <param name="valClass" type="java.lang.Class"/>
  20295. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  20296. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  20297. <exception name="IOException" type="java.io.IOException"/>
  20298. <doc>
  20299. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  20300. @param conf The configuration.
  20301. @param out The stream on top which the writer is to be constructed.
  20302. @param keyClass The 'key' type.
  20303. @param valClass The 'value' type.
  20304. @param compressionType The compression type.
  20305. @param codec The compression codec.
  20306. @return Returns the handle to the constructed SequenceFile Writer.
  20307. @throws IOException
  20308. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  20309. instead.]]>
  20310. </doc>
  20311. </method>
  20312. <field name="SYNC_INTERVAL" type="int"
  20313. transient="false" volatile="false"
  20314. static="true" final="true" visibility="public"
  20315. deprecated="not deprecated">
  20316. <doc>
  20317. <![CDATA[The number of bytes between sync points.]]>
  20318. </doc>
  20319. </field>
  20320. <doc>
  20321. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  20322. pairs.
  20323. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  20324. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  20325. reading and sorting respectively.</p>
  20326. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  20327. {@link CompressionType} used to compress key/value pairs:
  20328. <ol>
  20329. <li>
  20330. <code>Writer</code> : Uncompressed records.
  20331. </li>
  20332. <li>
  20333. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  20334. values.
  20335. </li>
  20336. <li>
  20337. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  20338. values are collected in 'blocks'
  20339. separately and compressed. The size of
  20340. the 'block' is configurable.
  20341. </ol>
  20342. <p>The actual compression algorithm used to compress key and/or values can be
  20343. specified by using the appropriate {@link CompressionCodec}.</p>
  20344. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  20345. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  20346. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  20347. above <code>SequenceFile</code> formats.</p>
  20348. <h4 id="Formats">SequenceFile Formats</h4>
  20349. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  20350. depending on the <code>CompressionType</code> specified. All of them share a
  20351. <a href="#Header">common header</a> described below.
  20352. <h5 id="Header">SequenceFile Header</h5>
  20353. <ul>
  20354. <li>
  20355. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  20356. version number (e.g. SEQ4 or SEQ6)
  20357. </li>
  20358. <li>
  20359. keyClassName -key class
  20360. </li>
  20361. <li>
  20362. valueClassName - value class
  20363. </li>
  20364. <li>
  20365. compression - A boolean which specifies if compression is turned on for
  20366. keys/values in this file.
  20367. </li>
  20368. <li>
  20369. blockCompression - A boolean which specifies if block-compression is
  20370. turned on for keys/values in this file.
  20371. </li>
  20372. <li>
  20373. compression codec - <code>CompressionCodec</code> class which is used for
  20374. compression of keys and/or values (if compression is
  20375. enabled).
  20376. </li>
  20377. <li>
  20378. metadata - {@link Metadata} for this file.
  20379. </li>
  20380. <li>
  20381. sync - A sync marker to denote end of the header.
  20382. </li>
  20383. </ul>
  20384. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  20385. <ul>
  20386. <li>
  20387. <a href="#Header">Header</a>
  20388. </li>
  20389. <li>
  20390. Record
  20391. <ul>
  20392. <li>Record length</li>
  20393. <li>Key length</li>
  20394. <li>Key</li>
  20395. <li>Value</li>
  20396. </ul>
  20397. </li>
  20398. <li>
  20399. A sync-marker every few <code>100</code> bytes or so.
  20400. </li>
  20401. </ul>
  20402. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  20403. <ul>
  20404. <li>
  20405. <a href="#Header">Header</a>
  20406. </li>
  20407. <li>
  20408. Record
  20409. <ul>
  20410. <li>Record length</li>
  20411. <li>Key length</li>
  20412. <li>Key</li>
  20413. <li><i>Compressed</i> Value</li>
  20414. </ul>
  20415. </li>
  20416. <li>
  20417. A sync-marker every few <code>100</code> bytes or so.
  20418. </li>
  20419. </ul>
  20420. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  20421. <ul>
  20422. <li>
  20423. <a href="#Header">Header</a>
  20424. </li>
  20425. <li>
  20426. Record <i>Block</i>
  20427. <ul>
  20428. <li>Uncompressed number of records in the block</li>
  20429. <li>Compressed key-lengths block-size</li>
  20430. <li>Compressed key-lengths block</li>
  20431. <li>Compressed keys block-size</li>
  20432. <li>Compressed keys block</li>
  20433. <li>Compressed value-lengths block-size</li>
  20434. <li>Compressed value-lengths block</li>
  20435. <li>Compressed values block-size</li>
  20436. <li>Compressed values block</li>
  20437. </ul>
  20438. </li>
  20439. <li>
  20440. A sync-marker every block.
  20441. </li>
  20442. </ul>
  20443. <p>The compressed blocks of key lengths and value lengths consist of the
  20444. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  20445. format.</p>
  20446. @see CompressionCodec]]>
  20447. </doc>
  20448. </class>
  20449. <!-- end class org.apache.hadoop.io.SequenceFile -->
  20450. <!-- start class org.apache.hadoop.io.SetFile -->
  20451. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  20452. abstract="false"
  20453. static="false" final="false" visibility="public"
  20454. deprecated="not deprecated">
  20455. <constructor name="SetFile"
  20456. static="false" final="false" visibility="protected"
  20457. deprecated="not deprecated">
  20458. </constructor>
  20459. <doc>
  20460. <![CDATA[A file-based set of keys.]]>
  20461. </doc>
  20462. </class>
  20463. <!-- end class org.apache.hadoop.io.SetFile -->
  20464. <!-- start class org.apache.hadoop.io.ShortWritable -->
  20465. <class name="ShortWritable" extends="java.lang.Object"
  20466. abstract="false"
  20467. static="false" final="false" visibility="public"
  20468. deprecated="not deprecated">
  20469. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20470. <constructor name="ShortWritable"
  20471. static="false" final="false" visibility="public"
  20472. deprecated="not deprecated">
  20473. </constructor>
  20474. <constructor name="ShortWritable" type="short"
  20475. static="false" final="false" visibility="public"
  20476. deprecated="not deprecated">
  20477. </constructor>
  20478. <method name="set"
  20479. abstract="false" native="false" synchronized="false"
  20480. static="false" final="false" visibility="public"
  20481. deprecated="not deprecated">
  20482. <param name="value" type="short"/>
  20483. <doc>
  20484. <![CDATA[Set the value of this ShortWritable.]]>
  20485. </doc>
  20486. </method>
  20487. <method name="get" return="short"
  20488. abstract="false" native="false" synchronized="false"
  20489. static="false" final="false" visibility="public"
  20490. deprecated="not deprecated">
  20491. <doc>
  20492. <![CDATA[Return the value of this ShortWritable.]]>
  20493. </doc>
  20494. </method>
  20495. <method name="readFields"
  20496. abstract="false" native="false" synchronized="false"
  20497. static="false" final="false" visibility="public"
  20498. deprecated="not deprecated">
  20499. <param name="in" type="java.io.DataInput"/>
  20500. <exception name="IOException" type="java.io.IOException"/>
  20501. <doc>
  20502. <![CDATA[read the short value]]>
  20503. </doc>
  20504. </method>
  20505. <method name="write"
  20506. abstract="false" native="false" synchronized="false"
  20507. static="false" final="false" visibility="public"
  20508. deprecated="not deprecated">
  20509. <param name="out" type="java.io.DataOutput"/>
  20510. <exception name="IOException" type="java.io.IOException"/>
  20511. <doc>
  20512. <![CDATA[write short value]]>
  20513. </doc>
  20514. </method>
  20515. <method name="equals" return="boolean"
  20516. abstract="false" native="false" synchronized="false"
  20517. static="false" final="false" visibility="public"
  20518. deprecated="not deprecated">
  20519. <param name="o" type="java.lang.Object"/>
  20520. <doc>
  20521. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  20522. </doc>
  20523. </method>
  20524. <method name="hashCode" return="int"
  20525. abstract="false" native="false" synchronized="false"
  20526. static="false" final="false" visibility="public"
  20527. deprecated="not deprecated">
  20528. <doc>
  20529. <![CDATA[hash code]]>
  20530. </doc>
  20531. </method>
  20532. <method name="compareTo" return="int"
  20533. abstract="false" native="false" synchronized="false"
  20534. static="false" final="false" visibility="public"
  20535. deprecated="not deprecated">
  20536. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  20537. <doc>
  20538. <![CDATA[Compares two ShortWritable.]]>
  20539. </doc>
  20540. </method>
  20541. <method name="toString" return="java.lang.String"
  20542. abstract="false" native="false" synchronized="false"
  20543. static="false" final="false" visibility="public"
  20544. deprecated="not deprecated">
  20545. <doc>
  20546. <![CDATA[Short values in string format]]>
  20547. </doc>
  20548. </method>
  20549. <doc>
  20550. <![CDATA[A WritableComparable for shorts.]]>
  20551. </doc>
  20552. </class>
  20553. <!-- end class org.apache.hadoop.io.ShortWritable -->
  20554. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  20555. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  20556. abstract="false"
  20557. static="false" final="false" visibility="public"
  20558. deprecated="not deprecated">
  20559. <implements name="java.util.SortedMap"/>
  20560. <constructor name="SortedMapWritable"
  20561. static="false" final="false" visibility="public"
  20562. deprecated="not deprecated">
  20563. <doc>
  20564. <![CDATA[default constructor.]]>
  20565. </doc>
  20566. </constructor>
  20567. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  20568. static="false" final="false" visibility="public"
  20569. deprecated="not deprecated">
  20570. <doc>
  20571. <![CDATA[Copy constructor.
  20572. @param other the map to copy from]]>
  20573. </doc>
  20574. </constructor>
  20575. <method name="comparator" return="java.util.Comparator"
  20576. abstract="false" native="false" synchronized="false"
  20577. static="false" final="false" visibility="public"
  20578. deprecated="not deprecated">
  20579. </method>
  20580. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  20581. abstract="false" native="false" synchronized="false"
  20582. static="false" final="false" visibility="public"
  20583. deprecated="not deprecated">
  20584. </method>
  20585. <method name="headMap" return="java.util.SortedMap"
  20586. abstract="false" native="false" synchronized="false"
  20587. static="false" final="false" visibility="public"
  20588. deprecated="not deprecated">
  20589. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  20590. </method>
  20591. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  20592. abstract="false" native="false" synchronized="false"
  20593. static="false" final="false" visibility="public"
  20594. deprecated="not deprecated">
  20595. </method>
  20596. <method name="subMap" return="java.util.SortedMap"
  20597. abstract="false" native="false" synchronized="false"
  20598. static="false" final="false" visibility="public"
  20599. deprecated="not deprecated">
  20600. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  20601. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  20602. </method>
  20603. <method name="tailMap" return="java.util.SortedMap"
  20604. abstract="false" native="false" synchronized="false"
  20605. static="false" final="false" visibility="public"
  20606. deprecated="not deprecated">
  20607. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  20608. </method>
  20609. <method name="clear"
  20610. abstract="false" native="false" synchronized="false"
  20611. static="false" final="false" visibility="public"
  20612. deprecated="not deprecated">
  20613. </method>
  20614. <method name="containsKey" return="boolean"
  20615. abstract="false" native="false" synchronized="false"
  20616. static="false" final="false" visibility="public"
  20617. deprecated="not deprecated">
  20618. <param name="key" type="java.lang.Object"/>
  20619. </method>
  20620. <method name="containsValue" return="boolean"
  20621. abstract="false" native="false" synchronized="false"
  20622. static="false" final="false" visibility="public"
  20623. deprecated="not deprecated">
  20624. <param name="value" type="java.lang.Object"/>
  20625. </method>
  20626. <method name="entrySet" return="java.util.Set"
  20627. abstract="false" native="false" synchronized="false"
  20628. static="false" final="false" visibility="public"
  20629. deprecated="not deprecated">
  20630. </method>
  20631. <method name="get" return="org.apache.hadoop.io.Writable"
  20632. abstract="false" native="false" synchronized="false"
  20633. static="false" final="false" visibility="public"
  20634. deprecated="not deprecated">
  20635. <param name="key" type="java.lang.Object"/>
  20636. </method>
  20637. <method name="isEmpty" return="boolean"
  20638. abstract="false" native="false" synchronized="false"
  20639. static="false" final="false" visibility="public"
  20640. deprecated="not deprecated">
  20641. </method>
  20642. <method name="keySet" return="java.util.Set"
  20643. abstract="false" native="false" synchronized="false"
  20644. static="false" final="false" visibility="public"
  20645. deprecated="not deprecated">
  20646. </method>
  20647. <method name="put" return="org.apache.hadoop.io.Writable"
  20648. abstract="false" native="false" synchronized="false"
  20649. static="false" final="false" visibility="public"
  20650. deprecated="not deprecated">
  20651. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  20652. <param name="value" type="org.apache.hadoop.io.Writable"/>
  20653. </method>
  20654. <method name="putAll"
  20655. abstract="false" native="false" synchronized="false"
  20656. static="false" final="false" visibility="public"
  20657. deprecated="not deprecated">
  20658. <param name="t" type="java.util.Map"/>
  20659. </method>
  20660. <method name="remove" return="org.apache.hadoop.io.Writable"
  20661. abstract="false" native="false" synchronized="false"
  20662. static="false" final="false" visibility="public"
  20663. deprecated="not deprecated">
  20664. <param name="key" type="java.lang.Object"/>
  20665. </method>
  20666. <method name="size" return="int"
  20667. abstract="false" native="false" synchronized="false"
  20668. static="false" final="false" visibility="public"
  20669. deprecated="not deprecated">
  20670. </method>
  20671. <method name="values" return="java.util.Collection"
  20672. abstract="false" native="false" synchronized="false"
  20673. static="false" final="false" visibility="public"
  20674. deprecated="not deprecated">
  20675. </method>
  20676. <method name="readFields"
  20677. abstract="false" native="false" synchronized="false"
  20678. static="false" final="false" visibility="public"
  20679. deprecated="not deprecated">
  20680. <param name="in" type="java.io.DataInput"/>
  20681. <exception name="IOException" type="java.io.IOException"/>
  20682. </method>
  20683. <method name="write"
  20684. abstract="false" native="false" synchronized="false"
  20685. static="false" final="false" visibility="public"
  20686. deprecated="not deprecated">
  20687. <param name="out" type="java.io.DataOutput"/>
  20688. <exception name="IOException" type="java.io.IOException"/>
  20689. </method>
  20690. <method name="equals" return="boolean"
  20691. abstract="false" native="false" synchronized="false"
  20692. static="false" final="false" visibility="public"
  20693. deprecated="not deprecated">
  20694. <param name="obj" type="java.lang.Object"/>
  20695. </method>
  20696. <method name="hashCode" return="int"
  20697. abstract="false" native="false" synchronized="false"
  20698. static="false" final="false" visibility="public"
  20699. deprecated="not deprecated">
  20700. </method>
  20701. <doc>
  20702. <![CDATA[A Writable SortedMap.]]>
  20703. </doc>
  20704. </class>
  20705. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  20706. <!-- start interface org.apache.hadoop.io.Stringifier -->
  20707. <interface name="Stringifier" abstract="true"
  20708. static="false" final="false" visibility="public"
  20709. deprecated="not deprecated">
  20710. <implements name="java.io.Closeable"/>
  20711. <method name="toString" return="java.lang.String"
  20712. abstract="false" native="false" synchronized="false"
  20713. static="false" final="false" visibility="public"
  20714. deprecated="not deprecated">
  20715. <param name="obj" type="T"/>
  20716. <exception name="IOException" type="java.io.IOException"/>
  20717. <doc>
  20718. <![CDATA[Converts the object to a string representation
  20719. @param obj the object to convert
  20720. @return the string representation of the object
  20721. @throws IOException if the object cannot be converted]]>
  20722. </doc>
  20723. </method>
  20724. <method name="fromString" return="T"
  20725. abstract="false" native="false" synchronized="false"
  20726. static="false" final="false" visibility="public"
  20727. deprecated="not deprecated">
  20728. <param name="str" type="java.lang.String"/>
  20729. <exception name="IOException" type="java.io.IOException"/>
  20730. <doc>
  20731. <![CDATA[Restores the object from its string representation.
  20732. @param str the string representation of the object
  20733. @return restored object
  20734. @throws IOException if the object cannot be restored]]>
  20735. </doc>
  20736. </method>
  20737. <method name="close"
  20738. abstract="false" native="false" synchronized="false"
  20739. static="false" final="false" visibility="public"
  20740. deprecated="not deprecated">
  20741. <exception name="IOException" type="java.io.IOException"/>
  20742. <doc>
  20743. <![CDATA[Closes this object.
  20744. @throws IOException if an I/O error occurs]]>
  20745. </doc>
  20746. </method>
  20747. <doc>
  20748. <![CDATA[Stringifier interface offers two methods to convert an object
  20749. to a string representation and restore the object given its
  20750. string representation.
  20751. @param <T> the class of the objects to stringify]]>
  20752. </doc>
  20753. </interface>
  20754. <!-- end interface org.apache.hadoop.io.Stringifier -->
  20755. <!-- start class org.apache.hadoop.io.Text -->
  20756. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  20757. abstract="false"
  20758. static="false" final="false" visibility="public"
  20759. deprecated="not deprecated">
  20760. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20761. <constructor name="Text"
  20762. static="false" final="false" visibility="public"
  20763. deprecated="not deprecated">
  20764. </constructor>
  20765. <constructor name="Text" type="java.lang.String"
  20766. static="false" final="false" visibility="public"
  20767. deprecated="not deprecated">
  20768. <doc>
  20769. <![CDATA[Construct from a string.]]>
  20770. </doc>
  20771. </constructor>
  20772. <constructor name="Text" type="org.apache.hadoop.io.Text"
  20773. static="false" final="false" visibility="public"
  20774. deprecated="not deprecated">
  20775. <doc>
  20776. <![CDATA[Construct from another text.]]>
  20777. </doc>
  20778. </constructor>
  20779. <constructor name="Text" type="byte[]"
  20780. static="false" final="false" visibility="public"
  20781. deprecated="not deprecated">
  20782. <doc>
  20783. <![CDATA[Construct from a byte array.]]>
  20784. </doc>
  20785. </constructor>
  20786. <method name="copyBytes" return="byte[]"
  20787. abstract="false" native="false" synchronized="false"
  20788. static="false" final="false" visibility="public"
  20789. deprecated="not deprecated">
  20790. <doc>
  20791. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  20792. See {@link #getBytes()} for faster access to the underlying array.]]>
  20793. </doc>
  20794. </method>
  20795. <method name="getBytes" return="byte[]"
  20796. abstract="false" native="false" synchronized="false"
  20797. static="false" final="false" visibility="public"
  20798. deprecated="not deprecated">
  20799. <doc>
  20800. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  20801. valid. Please use {@link #copyBytes()} if you
  20802. need the returned array to be precisely the length of the data.]]>
  20803. </doc>
  20804. </method>
  20805. <method name="getLength" return="int"
  20806. abstract="false" native="false" synchronized="false"
  20807. static="false" final="false" visibility="public"
  20808. deprecated="not deprecated">
  20809. <doc>
  20810. <![CDATA[Returns the number of bytes in the byte array]]>
  20811. </doc>
  20812. </method>
  20813. <method name="charAt" return="int"
  20814. abstract="false" native="false" synchronized="false"
  20815. static="false" final="false" visibility="public"
  20816. deprecated="not deprecated">
  20817. <param name="position" type="int"/>
  20818. <doc>
  20819. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  20820. for the character at <code>position</code>. Note that this
  20821. method avoids using the converter or doing String instantiation
  20822. @return the Unicode scalar value at position or -1
  20823. if the position is invalid or points to a
  20824. trailing byte]]>
  20825. </doc>
  20826. </method>
  20827. <method name="find" return="int"
  20828. abstract="false" native="false" synchronized="false"
  20829. static="false" final="false" visibility="public"
  20830. deprecated="not deprecated">
  20831. <param name="what" type="java.lang.String"/>
  20832. </method>
  20833. <method name="find" return="int"
  20834. abstract="false" native="false" synchronized="false"
  20835. static="false" final="false" visibility="public"
  20836. deprecated="not deprecated">
  20837. <param name="what" type="java.lang.String"/>
  20838. <param name="start" type="int"/>
  20839. <doc>
  20840. <![CDATA[Finds any occurence of <code>what</code> in the backing
  20841. buffer, starting as position <code>start</code>. The starting
  20842. position is measured in bytes and the return value is in
  20843. terms of byte position in the buffer. The backing buffer is
  20844. not converted to a string for this operation.
  20845. @return byte position of the first occurence of the search
  20846. string in the UTF-8 buffer or -1 if not found]]>
  20847. </doc>
  20848. </method>
  20849. <method name="set"
  20850. abstract="false" native="false" synchronized="false"
  20851. static="false" final="false" visibility="public"
  20852. deprecated="not deprecated">
  20853. <param name="string" type="java.lang.String"/>
  20854. <doc>
  20855. <![CDATA[Set to contain the contents of a string.]]>
  20856. </doc>
  20857. </method>
  20858. <method name="set"
  20859. abstract="false" native="false" synchronized="false"
  20860. static="false" final="false" visibility="public"
  20861. deprecated="not deprecated">
  20862. <param name="utf8" type="byte[]"/>
  20863. <doc>
  20864. <![CDATA[Set to a utf8 byte array]]>
  20865. </doc>
  20866. </method>
  20867. <method name="set"
  20868. abstract="false" native="false" synchronized="false"
  20869. static="false" final="false" visibility="public"
  20870. deprecated="not deprecated">
  20871. <param name="other" type="org.apache.hadoop.io.Text"/>
  20872. <doc>
  20873. <![CDATA[copy a text.]]>
  20874. </doc>
  20875. </method>
  20876. <method name="set"
  20877. abstract="false" native="false" synchronized="false"
  20878. static="false" final="false" visibility="public"
  20879. deprecated="not deprecated">
  20880. <param name="utf8" type="byte[]"/>
  20881. <param name="start" type="int"/>
  20882. <param name="len" type="int"/>
  20883. <doc>
  20884. <![CDATA[Set the Text to range of bytes
  20885. @param utf8 the data to copy from
  20886. @param start the first position of the new string
  20887. @param len the number of bytes of the new string]]>
  20888. </doc>
  20889. </method>
  20890. <method name="append"
  20891. abstract="false" native="false" synchronized="false"
  20892. static="false" final="false" visibility="public"
  20893. deprecated="not deprecated">
  20894. <param name="utf8" type="byte[]"/>
  20895. <param name="start" type="int"/>
  20896. <param name="len" type="int"/>
  20897. <doc>
  20898. <![CDATA[Append a range of bytes to the end of the given text
  20899. @param utf8 the data to copy from
  20900. @param start the first position to append from utf8
  20901. @param len the number of bytes to append]]>
  20902. </doc>
  20903. </method>
  20904. <method name="clear"
  20905. abstract="false" native="false" synchronized="false"
  20906. static="false" final="false" visibility="public"
  20907. deprecated="not deprecated">
  20908. <doc>
  20909. <![CDATA[Clear the string to empty.
  20910. <em>Note</em>: For performance reasons, this call does not clear the
  20911. underlying byte array that is retrievable via {@link #getBytes()}.
  20912. In order to free the byte-array memory, call {@link #set(byte[])}
  20913. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  20914. </doc>
  20915. </method>
  20916. <method name="toString" return="java.lang.String"
  20917. abstract="false" native="false" synchronized="false"
  20918. static="false" final="false" visibility="public"
  20919. deprecated="not deprecated">
  20920. <doc>
  20921. <![CDATA[Convert text back to string
  20922. @see java.lang.Object#toString()]]>
  20923. </doc>
  20924. </method>
  20925. <method name="readFields"
  20926. abstract="false" native="false" synchronized="false"
  20927. static="false" final="false" visibility="public"
  20928. deprecated="not deprecated">
  20929. <param name="in" type="java.io.DataInput"/>
  20930. <exception name="IOException" type="java.io.IOException"/>
  20931. <doc>
  20932. <![CDATA[deserialize]]>
  20933. </doc>
  20934. </method>
  20935. <method name="readFields"
  20936. abstract="false" native="false" synchronized="false"
  20937. static="false" final="false" visibility="public"
  20938. deprecated="not deprecated">
  20939. <param name="in" type="java.io.DataInput"/>
  20940. <param name="maxLength" type="int"/>
  20941. <exception name="IOException" type="java.io.IOException"/>
  20942. </method>
  20943. <method name="skip"
  20944. abstract="false" native="false" synchronized="false"
  20945. static="true" final="false" visibility="public"
  20946. deprecated="not deprecated">
  20947. <param name="in" type="java.io.DataInput"/>
  20948. <exception name="IOException" type="java.io.IOException"/>
  20949. <doc>
  20950. <![CDATA[Skips over one Text in the input.]]>
  20951. </doc>
  20952. </method>
  20953. <method name="readWithKnownLength"
  20954. abstract="false" native="false" synchronized="false"
  20955. static="false" final="false" visibility="public"
  20956. deprecated="not deprecated">
  20957. <param name="in" type="java.io.DataInput"/>
  20958. <param name="len" type="int"/>
  20959. <exception name="IOException" type="java.io.IOException"/>
  20960. <doc>
  20961. <![CDATA[Read a Text object whose length is already known.
  20962. This allows creating Text from a stream which uses a different serialization
  20963. format.]]>
  20964. </doc>
  20965. </method>
  20966. <method name="write"
  20967. abstract="false" native="false" synchronized="false"
  20968. static="false" final="false" visibility="public"
  20969. deprecated="not deprecated">
  20970. <param name="out" type="java.io.DataOutput"/>
  20971. <exception name="IOException" type="java.io.IOException"/>
  20972. <doc>
  20973. <![CDATA[serialize
  20974. write this object to out
  20975. length uses zero-compressed encoding
  20976. @see Writable#write(DataOutput)]]>
  20977. </doc>
  20978. </method>
  20979. <method name="write"
  20980. abstract="false" native="false" synchronized="false"
  20981. static="false" final="false" visibility="public"
  20982. deprecated="not deprecated">
  20983. <param name="out" type="java.io.DataOutput"/>
  20984. <param name="maxLength" type="int"/>
  20985. <exception name="IOException" type="java.io.IOException"/>
  20986. </method>
  20987. <method name="equals" return="boolean"
  20988. abstract="false" native="false" synchronized="false"
  20989. static="false" final="false" visibility="public"
  20990. deprecated="not deprecated">
  20991. <param name="o" type="java.lang.Object"/>
  20992. <doc>
  20993. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  20994. </doc>
  20995. </method>
  20996. <method name="hashCode" return="int"
  20997. abstract="false" native="false" synchronized="false"
  20998. static="false" final="false" visibility="public"
  20999. deprecated="not deprecated">
  21000. </method>
  21001. <method name="decode" return="java.lang.String"
  21002. abstract="false" native="false" synchronized="false"
  21003. static="true" final="false" visibility="public"
  21004. deprecated="not deprecated">
  21005. <param name="utf8" type="byte[]"/>
  21006. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  21007. <doc>
  21008. <![CDATA[Converts the provided byte array to a String using the
  21009. UTF-8 encoding. If the input is malformed,
  21010. replace by a default value.]]>
  21011. </doc>
  21012. </method>
  21013. <method name="decode" return="java.lang.String"
  21014. abstract="false" native="false" synchronized="false"
  21015. static="true" final="false" visibility="public"
  21016. deprecated="not deprecated">
  21017. <param name="utf8" type="byte[]"/>
  21018. <param name="start" type="int"/>
  21019. <param name="length" type="int"/>
  21020. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  21021. </method>
  21022. <method name="decode" return="java.lang.String"
  21023. abstract="false" native="false" synchronized="false"
  21024. static="true" final="false" visibility="public"
  21025. deprecated="not deprecated">
  21026. <param name="utf8" type="byte[]"/>
  21027. <param name="start" type="int"/>
  21028. <param name="length" type="int"/>
  21029. <param name="replace" type="boolean"/>
  21030. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  21031. <doc>
  21032. <![CDATA[Converts the provided byte array to a String using the
  21033. UTF-8 encoding. If <code>replace</code> is true, then
  21034. malformed input is replaced with the
  21035. substitution character, which is U+FFFD. Otherwise the
  21036. method throws a MalformedInputException.]]>
  21037. </doc>
  21038. </method>
  21039. <method name="encode" return="java.nio.ByteBuffer"
  21040. abstract="false" native="false" synchronized="false"
  21041. static="true" final="false" visibility="public"
  21042. deprecated="not deprecated">
  21043. <param name="string" type="java.lang.String"/>
  21044. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  21045. <doc>
  21046. <![CDATA[Converts the provided String to bytes using the
  21047. UTF-8 encoding. If the input is malformed,
  21048. invalid chars are replaced by a default value.
  21049. @return ByteBuffer: bytes stores at ByteBuffer.array()
  21050. and length is ByteBuffer.limit()]]>
  21051. </doc>
  21052. </method>
  21053. <method name="encode" return="java.nio.ByteBuffer"
  21054. abstract="false" native="false" synchronized="false"
  21055. static="true" final="false" visibility="public"
  21056. deprecated="not deprecated">
  21057. <param name="string" type="java.lang.String"/>
  21058. <param name="replace" type="boolean"/>
  21059. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  21060. <doc>
  21061. <![CDATA[Converts the provided String to bytes using the
  21062. UTF-8 encoding. If <code>replace</code> is true, then
  21063. malformed input is replaced with the
  21064. substitution character, which is U+FFFD. Otherwise the
  21065. method throws a MalformedInputException.
  21066. @return ByteBuffer: bytes stores at ByteBuffer.array()
  21067. and length is ByteBuffer.limit()]]>
  21068. </doc>
  21069. </method>
  21070. <method name="readString" return="java.lang.String"
  21071. abstract="false" native="false" synchronized="false"
  21072. static="true" final="false" visibility="public"
  21073. deprecated="not deprecated">
  21074. <param name="in" type="java.io.DataInput"/>
  21075. <exception name="IOException" type="java.io.IOException"/>
  21076. <doc>
  21077. <![CDATA[Read a UTF8 encoded string from in]]>
  21078. </doc>
  21079. </method>
  21080. <method name="readString" return="java.lang.String"
  21081. abstract="false" native="false" synchronized="false"
  21082. static="true" final="false" visibility="public"
  21083. deprecated="not deprecated">
  21084. <param name="in" type="java.io.DataInput"/>
  21085. <param name="maxLength" type="int"/>
  21086. <exception name="IOException" type="java.io.IOException"/>
  21087. <doc>
  21088. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  21089. </doc>
  21090. </method>
  21091. <method name="writeString" return="int"
  21092. abstract="false" native="false" synchronized="false"
  21093. static="true" final="false" visibility="public"
  21094. deprecated="not deprecated">
  21095. <param name="out" type="java.io.DataOutput"/>
  21096. <param name="s" type="java.lang.String"/>
  21097. <exception name="IOException" type="java.io.IOException"/>
  21098. <doc>
  21099. <![CDATA[Write a UTF8 encoded string to out]]>
  21100. </doc>
  21101. </method>
  21102. <method name="writeString" return="int"
  21103. abstract="false" native="false" synchronized="false"
  21104. static="true" final="false" visibility="public"
  21105. deprecated="not deprecated">
  21106. <param name="out" type="java.io.DataOutput"/>
  21107. <param name="s" type="java.lang.String"/>
  21108. <param name="maxLength" type="int"/>
  21109. <exception name="IOException" type="java.io.IOException"/>
  21110. <doc>
  21111. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  21112. </doc>
  21113. </method>
  21114. <method name="validateUTF8"
  21115. abstract="false" native="false" synchronized="false"
  21116. static="true" final="false" visibility="public"
  21117. deprecated="not deprecated">
  21118. <param name="utf8" type="byte[]"/>
  21119. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  21120. <doc>
  21121. <![CDATA[Check if a byte array contains valid utf-8
  21122. @param utf8 byte array
  21123. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  21124. </doc>
  21125. </method>
  21126. <method name="validateUTF8"
  21127. abstract="false" native="false" synchronized="false"
  21128. static="true" final="false" visibility="public"
  21129. deprecated="not deprecated">
  21130. <param name="utf8" type="byte[]"/>
  21131. <param name="start" type="int"/>
  21132. <param name="len" type="int"/>
  21133. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  21134. <doc>
  21135. <![CDATA[Check to see if a byte array is valid utf-8
  21136. @param utf8 the array of bytes
  21137. @param start the offset of the first byte in the array
  21138. @param len the length of the byte sequence
  21139. @throws MalformedInputException if the byte array contains invalid bytes]]>
  21140. </doc>
  21141. </method>
  21142. <method name="bytesToCodePoint" return="int"
  21143. abstract="false" native="false" synchronized="false"
  21144. static="true" final="false" visibility="public"
  21145. deprecated="not deprecated">
  21146. <param name="bytes" type="java.nio.ByteBuffer"/>
  21147. <doc>
  21148. <![CDATA[Returns the next code point at the current position in
  21149. the buffer. The buffer's position will be incremented.
  21150. Any mark set on this buffer will be changed by this method!]]>
  21151. </doc>
  21152. </method>
  21153. <method name="utf8Length" return="int"
  21154. abstract="false" native="false" synchronized="false"
  21155. static="true" final="false" visibility="public"
  21156. deprecated="not deprecated">
  21157. <param name="string" type="java.lang.String"/>
  21158. <doc>
  21159. <![CDATA[For the given string, returns the number of UTF-8 bytes
  21160. required to encode the string.
  21161. @param string text to encode
  21162. @return number of UTF-8 bytes required to encode]]>
  21163. </doc>
  21164. </method>
  21165. <field name="DEFAULT_MAX_LEN" type="int"
  21166. transient="false" volatile="false"
  21167. static="true" final="true" visibility="public"
  21168. deprecated="not deprecated">
  21169. </field>
  21170. <doc>
  21171. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  21172. to serialize, deserialize, and compare texts at byte level. The type of
  21173. length is integer and is serialized using zero-compressed format. <p>In
  21174. addition, it provides methods for string traversal without converting the
  21175. byte array to a string. <p>Also includes utilities for
  21176. serializing/deserialing a string, coding/decoding a string, checking if a
  21177. byte array contains valid UTF8 code, calculating the length of an encoded
  21178. string.]]>
  21179. </doc>
  21180. </class>
  21181. <!-- end class org.apache.hadoop.io.Text -->
  21182. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  21183. <class name="TwoDArrayWritable" extends="java.lang.Object"
  21184. abstract="false"
  21185. static="false" final="false" visibility="public"
  21186. deprecated="not deprecated">
  21187. <implements name="org.apache.hadoop.io.Writable"/>
  21188. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  21189. static="false" final="false" visibility="public"
  21190. deprecated="not deprecated">
  21191. </constructor>
  21192. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  21193. static="false" final="false" visibility="public"
  21194. deprecated="not deprecated">
  21195. </constructor>
  21196. <method name="toArray" return="java.lang.Object"
  21197. abstract="false" native="false" synchronized="false"
  21198. static="false" final="false" visibility="public"
  21199. deprecated="not deprecated">
  21200. </method>
  21201. <method name="set"
  21202. abstract="false" native="false" synchronized="false"
  21203. static="false" final="false" visibility="public"
  21204. deprecated="not deprecated">
  21205. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  21206. </method>
  21207. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  21208. abstract="false" native="false" synchronized="false"
  21209. static="false" final="false" visibility="public"
  21210. deprecated="not deprecated">
  21211. </method>
  21212. <method name="readFields"
  21213. abstract="false" native="false" synchronized="false"
  21214. static="false" final="false" visibility="public"
  21215. deprecated="not deprecated">
  21216. <param name="in" type="java.io.DataInput"/>
  21217. <exception name="IOException" type="java.io.IOException"/>
  21218. </method>
  21219. <method name="write"
  21220. abstract="false" native="false" synchronized="false"
  21221. static="false" final="false" visibility="public"
  21222. deprecated="not deprecated">
  21223. <param name="out" type="java.io.DataOutput"/>
  21224. <exception name="IOException" type="java.io.IOException"/>
  21225. </method>
  21226. <doc>
  21227. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  21228. </doc>
  21229. </class>
  21230. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  21231. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  21232. <class name="VersionedWritable" extends="java.lang.Object"
  21233. abstract="true"
  21234. static="false" final="false" visibility="public"
  21235. deprecated="not deprecated">
  21236. <implements name="org.apache.hadoop.io.Writable"/>
  21237. <constructor name="VersionedWritable"
  21238. static="false" final="false" visibility="public"
  21239. deprecated="not deprecated">
  21240. </constructor>
  21241. <method name="getVersion" return="byte"
  21242. abstract="true" native="false" synchronized="false"
  21243. static="false" final="false" visibility="public"
  21244. deprecated="not deprecated">
  21245. <doc>
  21246. <![CDATA[Return the version number of the current implementation.]]>
  21247. </doc>
  21248. </method>
  21249. <method name="write"
  21250. abstract="false" native="false" synchronized="false"
  21251. static="false" final="false" visibility="public"
  21252. deprecated="not deprecated">
  21253. <param name="out" type="java.io.DataOutput"/>
  21254. <exception name="IOException" type="java.io.IOException"/>
  21255. </method>
  21256. <method name="readFields"
  21257. abstract="false" native="false" synchronized="false"
  21258. static="false" final="false" visibility="public"
  21259. deprecated="not deprecated">
  21260. <param name="in" type="java.io.DataInput"/>
  21261. <exception name="IOException" type="java.io.IOException"/>
  21262. </method>
  21263. <doc>
  21264. <![CDATA[A base class for Writables that provides version checking.
  21265. <p>This is useful when a class may evolve, so that instances written by the
  21266. old version of the class may still be processed by the new version. To
  21267. handle this situation, {@link #readFields(DataInput)}
  21268. implementations should catch {@link VersionMismatchException}.]]>
  21269. </doc>
  21270. </class>
  21271. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  21272. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  21273. <class name="VersionMismatchException" extends="java.io.IOException"
  21274. abstract="false"
  21275. static="false" final="false" visibility="public"
  21276. deprecated="not deprecated">
  21277. <constructor name="VersionMismatchException" type="byte, byte"
  21278. static="false" final="false" visibility="public"
  21279. deprecated="not deprecated">
  21280. </constructor>
  21281. <method name="toString" return="java.lang.String"
  21282. abstract="false" native="false" synchronized="false"
  21283. static="false" final="false" visibility="public"
  21284. deprecated="not deprecated">
  21285. <doc>
  21286. <![CDATA[Returns a string representation of this object.]]>
  21287. </doc>
  21288. </method>
  21289. <doc>
  21290. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  21291. version of an object being read does not match the current implementation
  21292. version as returned by {@link VersionedWritable#getVersion()}.]]>
  21293. </doc>
  21294. </class>
  21295. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  21296. <!-- start class org.apache.hadoop.io.VIntWritable -->
  21297. <class name="VIntWritable" extends="java.lang.Object"
  21298. abstract="false"
  21299. static="false" final="false" visibility="public"
  21300. deprecated="not deprecated">
  21301. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21302. <constructor name="VIntWritable"
  21303. static="false" final="false" visibility="public"
  21304. deprecated="not deprecated">
  21305. </constructor>
  21306. <constructor name="VIntWritable" type="int"
  21307. static="false" final="false" visibility="public"
  21308. deprecated="not deprecated">
  21309. </constructor>
  21310. <method name="set"
  21311. abstract="false" native="false" synchronized="false"
  21312. static="false" final="false" visibility="public"
  21313. deprecated="not deprecated">
  21314. <param name="value" type="int"/>
  21315. <doc>
  21316. <![CDATA[Set the value of this VIntWritable.]]>
  21317. </doc>
  21318. </method>
  21319. <method name="get" return="int"
  21320. abstract="false" native="false" synchronized="false"
  21321. static="false" final="false" visibility="public"
  21322. deprecated="not deprecated">
  21323. <doc>
  21324. <![CDATA[Return the value of this VIntWritable.]]>
  21325. </doc>
  21326. </method>
  21327. <method name="readFields"
  21328. abstract="false" native="false" synchronized="false"
  21329. static="false" final="false" visibility="public"
  21330. deprecated="not deprecated">
  21331. <param name="in" type="java.io.DataInput"/>
  21332. <exception name="IOException" type="java.io.IOException"/>
  21333. </method>
  21334. <method name="write"
  21335. abstract="false" native="false" synchronized="false"
  21336. static="false" final="false" visibility="public"
  21337. deprecated="not deprecated">
  21338. <param name="out" type="java.io.DataOutput"/>
  21339. <exception name="IOException" type="java.io.IOException"/>
  21340. </method>
  21341. <method name="equals" return="boolean"
  21342. abstract="false" native="false" synchronized="false"
  21343. static="false" final="false" visibility="public"
  21344. deprecated="not deprecated">
  21345. <param name="o" type="java.lang.Object"/>
  21346. <doc>
  21347. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  21348. </doc>
  21349. </method>
  21350. <method name="hashCode" return="int"
  21351. abstract="false" native="false" synchronized="false"
  21352. static="false" final="false" visibility="public"
  21353. deprecated="not deprecated">
  21354. </method>
  21355. <method name="compareTo" return="int"
  21356. abstract="false" native="false" synchronized="false"
  21357. static="false" final="false" visibility="public"
  21358. deprecated="not deprecated">
  21359. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  21360. <doc>
  21361. <![CDATA[Compares two VIntWritables.]]>
  21362. </doc>
  21363. </method>
  21364. <method name="toString" return="java.lang.String"
  21365. abstract="false" native="false" synchronized="false"
  21366. static="false" final="false" visibility="public"
  21367. deprecated="not deprecated">
  21368. </method>
  21369. <doc>
  21370. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  21371. Such values take between one and five bytes. Smaller values take fewer bytes.
  21372. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  21373. </doc>
  21374. </class>
  21375. <!-- end class org.apache.hadoop.io.VIntWritable -->
  21376. <!-- start class org.apache.hadoop.io.VLongWritable -->
  21377. <class name="VLongWritable" extends="java.lang.Object"
  21378. abstract="false"
  21379. static="false" final="false" visibility="public"
  21380. deprecated="not deprecated">
  21381. <implements name="org.apache.hadoop.io.WritableComparable"/>
  21382. <constructor name="VLongWritable"
  21383. static="false" final="false" visibility="public"
  21384. deprecated="not deprecated">
  21385. </constructor>
  21386. <constructor name="VLongWritable" type="long"
  21387. static="false" final="false" visibility="public"
  21388. deprecated="not deprecated">
  21389. </constructor>
  21390. <method name="set"
  21391. abstract="false" native="false" synchronized="false"
  21392. static="false" final="false" visibility="public"
  21393. deprecated="not deprecated">
  21394. <param name="value" type="long"/>
  21395. <doc>
  21396. <![CDATA[Set the value of this LongWritable.]]>
  21397. </doc>
  21398. </method>
  21399. <method name="get" return="long"
  21400. abstract="false" native="false" synchronized="false"
  21401. static="false" final="false" visibility="public"
  21402. deprecated="not deprecated">
  21403. <doc>
  21404. <![CDATA[Return the value of this LongWritable.]]>
  21405. </doc>
  21406. </method>
  21407. <method name="readFields"
  21408. abstract="false" native="false" synchronized="false"
  21409. static="false" final="false" visibility="public"
  21410. deprecated="not deprecated">
  21411. <param name="in" type="java.io.DataInput"/>
  21412. <exception name="IOException" type="java.io.IOException"/>
  21413. </method>
  21414. <method name="write"
  21415. abstract="false" native="false" synchronized="false"
  21416. static="false" final="false" visibility="public"
  21417. deprecated="not deprecated">
  21418. <param name="out" type="java.io.DataOutput"/>
  21419. <exception name="IOException" type="java.io.IOException"/>
  21420. </method>
  21421. <method name="equals" return="boolean"
  21422. abstract="false" native="false" synchronized="false"
  21423. static="false" final="false" visibility="public"
  21424. deprecated="not deprecated">
  21425. <param name="o" type="java.lang.Object"/>
  21426. <doc>
  21427. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  21428. </doc>
  21429. </method>
  21430. <method name="hashCode" return="int"
  21431. abstract="false" native="false" synchronized="false"
  21432. static="false" final="false" visibility="public"
  21433. deprecated="not deprecated">
  21434. </method>
  21435. <method name="compareTo" return="int"
  21436. abstract="false" native="false" synchronized="false"
  21437. static="false" final="false" visibility="public"
  21438. deprecated="not deprecated">
  21439. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  21440. <doc>
  21441. <![CDATA[Compares two VLongWritables.]]>
  21442. </doc>
  21443. </method>
  21444. <method name="toString" return="java.lang.String"
  21445. abstract="false" native="false" synchronized="false"
  21446. static="false" final="false" visibility="public"
  21447. deprecated="not deprecated">
  21448. </method>
  21449. <doc>
  21450. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  21451. between one and five bytes. Smaller values take fewer bytes.
  21452. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  21453. </doc>
  21454. </class>
  21455. <!-- end class org.apache.hadoop.io.VLongWritable -->
  21456. <!-- start interface org.apache.hadoop.io.Writable -->
  21457. <interface name="Writable" abstract="true"
  21458. static="false" final="false" visibility="public"
  21459. deprecated="not deprecated">
  21460. <method name="write"
  21461. abstract="false" native="false" synchronized="false"
  21462. static="false" final="false" visibility="public"
  21463. deprecated="not deprecated">
  21464. <param name="out" type="java.io.DataOutput"/>
  21465. <exception name="IOException" type="java.io.IOException"/>
  21466. <doc>
  21467. <![CDATA[Serialize the fields of this object to <code>out</code>.
  21468. @param out <code>DataOuput</code> to serialize this object into.
  21469. @throws IOException]]>
  21470. </doc>
  21471. </method>
  21472. <method name="readFields"
  21473. abstract="false" native="false" synchronized="false"
  21474. static="false" final="false" visibility="public"
  21475. deprecated="not deprecated">
  21476. <param name="in" type="java.io.DataInput"/>
  21477. <exception name="IOException" type="java.io.IOException"/>
  21478. <doc>
  21479. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  21480. <p>For efficiency, implementations should attempt to re-use storage in the
  21481. existing object where possible.</p>
  21482. @param in <code>DataInput</code> to deseriablize this object from.
  21483. @throws IOException]]>
  21484. </doc>
  21485. </method>
  21486. <doc>
  21487. <![CDATA[A serializable object which implements a simple, efficient, serialization
  21488. protocol, based on {@link DataInput} and {@link DataOutput}.
  21489. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  21490. framework implements this interface.</p>
  21491. <p>Implementations typically implement a static <code>read(DataInput)</code>
  21492. method which constructs a new instance, calls {@link #readFields(DataInput)}
  21493. and returns the instance.</p>
  21494. <p>Example:</p>
  21495. <p><blockquote><pre>
  21496. public class MyWritable implements Writable {
  21497. // Some data
  21498. private int counter;
  21499. private long timestamp;
  21500. public void write(DataOutput out) throws IOException {
  21501. out.writeInt(counter);
  21502. out.writeLong(timestamp);
  21503. }
  21504. public void readFields(DataInput in) throws IOException {
  21505. counter = in.readInt();
  21506. timestamp = in.readLong();
  21507. }
  21508. public static MyWritable read(DataInput in) throws IOException {
  21509. MyWritable w = new MyWritable();
  21510. w.readFields(in);
  21511. return w;
  21512. }
  21513. }
  21514. </pre></blockquote></p>]]>
  21515. </doc>
  21516. </interface>
  21517. <!-- end interface org.apache.hadoop.io.Writable -->
  21518. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  21519. <interface name="WritableComparable" abstract="true"
  21520. static="false" final="false" visibility="public"
  21521. deprecated="not deprecated">
  21522. <implements name="org.apache.hadoop.io.Writable"/>
  21523. <implements name="java.lang.Comparable"/>
  21524. <doc>
  21525. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  21526. <p><code>WritableComparable</code>s can be compared to each other, typically
  21527. via <code>Comparator</code>s. Any type which is to be used as a
  21528. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  21529. interface.</p>
  21530. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  21531. keys. It's important that your implementation of hashCode() returns the same
  21532. result across different instances of the JVM. Note also that the default
  21533. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  21534. satisfy this property.</p>
  21535. <p>Example:</p>
  21536. <p><blockquote><pre>
  21537. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  21538. // Some data
  21539. private int counter;
  21540. private long timestamp;
  21541. public void write(DataOutput out) throws IOException {
  21542. out.writeInt(counter);
  21543. out.writeLong(timestamp);
  21544. }
  21545. public void readFields(DataInput in) throws IOException {
  21546. counter = in.readInt();
  21547. timestamp = in.readLong();
  21548. }
  21549. public int compareTo(MyWritableComparable o) {
  21550. int thisValue = this.value;
  21551. int thatValue = o.value;
  21552. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  21553. }
  21554. public int hashCode() {
  21555. final int prime = 31;
  21556. int result = 1;
  21557. result = prime * result + counter;
  21558. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  21559. return result
  21560. }
  21561. }
  21562. </pre></blockquote></p>]]>
  21563. </doc>
  21564. </interface>
  21565. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  21566. <!-- start class org.apache.hadoop.io.WritableComparator -->
  21567. <class name="WritableComparator" extends="java.lang.Object"
  21568. abstract="false"
  21569. static="false" final="false" visibility="public"
  21570. deprecated="not deprecated">
  21571. <implements name="org.apache.hadoop.io.RawComparator"/>
  21572. <implements name="org.apache.hadoop.conf.Configurable"/>
  21573. <constructor name="WritableComparator"
  21574. static="false" final="false" visibility="protected"
  21575. deprecated="not deprecated">
  21576. </constructor>
  21577. <constructor name="WritableComparator" type="java.lang.Class"
  21578. static="false" final="false" visibility="protected"
  21579. deprecated="not deprecated">
  21580. <doc>
  21581. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  21582. </doc>
  21583. </constructor>
  21584. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  21585. static="false" final="false" visibility="protected"
  21586. deprecated="not deprecated">
  21587. </constructor>
  21588. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  21589. static="false" final="false" visibility="protected"
  21590. deprecated="not deprecated">
  21591. </constructor>
  21592. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  21593. abstract="false" native="false" synchronized="false"
  21594. static="true" final="false" visibility="public"
  21595. deprecated="not deprecated">
  21596. <param name="c" type="java.lang.Class"/>
  21597. <doc>
  21598. <![CDATA[For backwards compatibility.]]>
  21599. </doc>
  21600. </method>
  21601. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  21602. abstract="false" native="false" synchronized="false"
  21603. static="true" final="false" visibility="public"
  21604. deprecated="not deprecated">
  21605. <param name="c" type="java.lang.Class"/>
  21606. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21607. <doc>
  21608. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  21609. </doc>
  21610. </method>
  21611. <method name="setConf"
  21612. abstract="false" native="false" synchronized="false"
  21613. static="false" final="false" visibility="public"
  21614. deprecated="not deprecated">
  21615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21616. </method>
  21617. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21618. abstract="false" native="false" synchronized="false"
  21619. static="false" final="false" visibility="public"
  21620. deprecated="not deprecated">
  21621. </method>
  21622. <method name="define"
  21623. abstract="false" native="false" synchronized="false"
  21624. static="true" final="false" visibility="public"
  21625. deprecated="not deprecated">
  21626. <param name="c" type="java.lang.Class"/>
  21627. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  21628. <doc>
  21629. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  21630. implementation. Comparators registered with this method must be
  21631. thread-safe.]]>
  21632. </doc>
  21633. </method>
  21634. <method name="getKeyClass" return="java.lang.Class"
  21635. abstract="false" native="false" synchronized="false"
  21636. static="false" final="false" visibility="public"
  21637. deprecated="not deprecated">
  21638. <doc>
  21639. <![CDATA[Returns the WritableComparable implementation class.]]>
  21640. </doc>
  21641. </method>
  21642. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  21643. abstract="false" native="false" synchronized="false"
  21644. static="false" final="false" visibility="public"
  21645. deprecated="not deprecated">
  21646. <doc>
  21647. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  21648. </doc>
  21649. </method>
  21650. <method name="compare" return="int"
  21651. abstract="false" native="false" synchronized="false"
  21652. static="false" final="false" visibility="public"
  21653. deprecated="not deprecated">
  21654. <param name="b1" type="byte[]"/>
  21655. <param name="s1" type="int"/>
  21656. <param name="l1" type="int"/>
  21657. <param name="b2" type="byte[]"/>
  21658. <param name="s2" type="int"/>
  21659. <param name="l2" type="int"/>
  21660. <doc>
  21661. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  21662. <p>The default implementation reads the data into two {@link
  21663. WritableComparable}s (using {@link
  21664. Writable#readFields(DataInput)}, then calls {@link
  21665. #compare(WritableComparable,WritableComparable)}.]]>
  21666. </doc>
  21667. </method>
  21668. <method name="compare" return="int"
  21669. abstract="false" native="false" synchronized="false"
  21670. static="false" final="false" visibility="public"
  21671. deprecated="not deprecated">
  21672. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  21673. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  21674. <doc>
  21675. <![CDATA[Compare two WritableComparables.
  21676. <p> The default implementation uses the natural ordering, calling {@link
  21677. Comparable#compareTo(Object)}.]]>
  21678. </doc>
  21679. </method>
  21680. <method name="compare" return="int"
  21681. abstract="false" native="false" synchronized="false"
  21682. static="false" final="false" visibility="public"
  21683. deprecated="not deprecated">
  21684. <param name="a" type="java.lang.Object"/>
  21685. <param name="b" type="java.lang.Object"/>
  21686. </method>
  21687. <method name="compareBytes" return="int"
  21688. abstract="false" native="false" synchronized="false"
  21689. static="true" final="false" visibility="public"
  21690. deprecated="not deprecated">
  21691. <param name="b1" type="byte[]"/>
  21692. <param name="s1" type="int"/>
  21693. <param name="l1" type="int"/>
  21694. <param name="b2" type="byte[]"/>
  21695. <param name="s2" type="int"/>
  21696. <param name="l2" type="int"/>
  21697. <doc>
  21698. <![CDATA[Lexicographic order of binary data.]]>
  21699. </doc>
  21700. </method>
  21701. <method name="hashBytes" return="int"
  21702. abstract="false" native="false" synchronized="false"
  21703. static="true" final="false" visibility="public"
  21704. deprecated="not deprecated">
  21705. <param name="bytes" type="byte[]"/>
  21706. <param name="offset" type="int"/>
  21707. <param name="length" type="int"/>
  21708. <doc>
  21709. <![CDATA[Compute hash for binary data.]]>
  21710. </doc>
  21711. </method>
  21712. <method name="hashBytes" return="int"
  21713. abstract="false" native="false" synchronized="false"
  21714. static="true" final="false" visibility="public"
  21715. deprecated="not deprecated">
  21716. <param name="bytes" type="byte[]"/>
  21717. <param name="length" type="int"/>
  21718. <doc>
  21719. <![CDATA[Compute hash for binary data.]]>
  21720. </doc>
  21721. </method>
  21722. <method name="readUnsignedShort" return="int"
  21723. abstract="false" native="false" synchronized="false"
  21724. static="true" final="false" visibility="public"
  21725. deprecated="not deprecated">
  21726. <param name="bytes" type="byte[]"/>
  21727. <param name="start" type="int"/>
  21728. <doc>
  21729. <![CDATA[Parse an unsigned short from a byte array.]]>
  21730. </doc>
  21731. </method>
  21732. <method name="readInt" return="int"
  21733. abstract="false" native="false" synchronized="false"
  21734. static="true" final="false" visibility="public"
  21735. deprecated="not deprecated">
  21736. <param name="bytes" type="byte[]"/>
  21737. <param name="start" type="int"/>
  21738. <doc>
  21739. <![CDATA[Parse an integer from a byte array.]]>
  21740. </doc>
  21741. </method>
  21742. <method name="readFloat" return="float"
  21743. abstract="false" native="false" synchronized="false"
  21744. static="true" final="false" visibility="public"
  21745. deprecated="not deprecated">
  21746. <param name="bytes" type="byte[]"/>
  21747. <param name="start" type="int"/>
  21748. <doc>
  21749. <![CDATA[Parse a float from a byte array.]]>
  21750. </doc>
  21751. </method>
  21752. <method name="readLong" return="long"
  21753. abstract="false" native="false" synchronized="false"
  21754. static="true" final="false" visibility="public"
  21755. deprecated="not deprecated">
  21756. <param name="bytes" type="byte[]"/>
  21757. <param name="start" type="int"/>
  21758. <doc>
  21759. <![CDATA[Parse a long from a byte array.]]>
  21760. </doc>
  21761. </method>
  21762. <method name="readDouble" return="double"
  21763. abstract="false" native="false" synchronized="false"
  21764. static="true" final="false" visibility="public"
  21765. deprecated="not deprecated">
  21766. <param name="bytes" type="byte[]"/>
  21767. <param name="start" type="int"/>
  21768. <doc>
  21769. <![CDATA[Parse a double from a byte array.]]>
  21770. </doc>
  21771. </method>
  21772. <method name="readVLong" return="long"
  21773. abstract="false" native="false" synchronized="false"
  21774. static="true" final="false" visibility="public"
  21775. deprecated="not deprecated">
  21776. <param name="bytes" type="byte[]"/>
  21777. <param name="start" type="int"/>
  21778. <exception name="IOException" type="java.io.IOException"/>
  21779. <doc>
  21780. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  21781. @param bytes byte array with decode long
  21782. @param start starting index
  21783. @throws java.io.IOException
  21784. @return deserialized long]]>
  21785. </doc>
  21786. </method>
  21787. <method name="readVInt" return="int"
  21788. abstract="false" native="false" synchronized="false"
  21789. static="true" final="false" visibility="public"
  21790. deprecated="not deprecated">
  21791. <param name="bytes" type="byte[]"/>
  21792. <param name="start" type="int"/>
  21793. <exception name="IOException" type="java.io.IOException"/>
  21794. <doc>
  21795. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  21796. @param bytes byte array with the encoded integer
  21797. @param start start index
  21798. @throws java.io.IOException
  21799. @return deserialized integer]]>
  21800. </doc>
  21801. </method>
  21802. <doc>
  21803. <![CDATA[A Comparator for {@link WritableComparable}s.
  21804. <p>This base implemenation uses the natural ordering. To define alternate
  21805. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  21806. <p>One may optimize compare-intensive operations by overriding
  21807. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  21808. provided to assist in optimized implementations of this method.]]>
  21809. </doc>
  21810. </class>
  21811. <!-- end class org.apache.hadoop.io.WritableComparator -->
  21812. <!-- start class org.apache.hadoop.io.WritableFactories -->
  21813. <class name="WritableFactories" extends="java.lang.Object"
  21814. abstract="false"
  21815. static="false" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. <method name="setFactory"
  21818. abstract="false" native="false" synchronized="false"
  21819. static="true" final="false" visibility="public"
  21820. deprecated="not deprecated">
  21821. <param name="c" type="java.lang.Class"/>
  21822. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  21823. <doc>
  21824. <![CDATA[Define a factory for a class.]]>
  21825. </doc>
  21826. </method>
  21827. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  21828. abstract="false" native="false" synchronized="false"
  21829. static="true" final="false" visibility="public"
  21830. deprecated="not deprecated">
  21831. <param name="c" type="java.lang.Class"/>
  21832. <doc>
  21833. <![CDATA[Define a factory for a class.]]>
  21834. </doc>
  21835. </method>
  21836. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21837. abstract="false" native="false" synchronized="false"
  21838. static="true" final="false" visibility="public"
  21839. deprecated="not deprecated">
  21840. <param name="c" type="java.lang.Class"/>
  21841. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21842. <doc>
  21843. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21844. </doc>
  21845. </method>
  21846. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21847. abstract="false" native="false" synchronized="false"
  21848. static="true" final="false" visibility="public"
  21849. deprecated="not deprecated">
  21850. <param name="c" type="java.lang.Class"/>
  21851. <doc>
  21852. <![CDATA[Create a new instance of a class with a defined factory.]]>
  21853. </doc>
  21854. </method>
  21855. <doc>
  21856. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  21857. ObjectWritable} to be able to construct instances of non-public classes.]]>
  21858. </doc>
  21859. </class>
  21860. <!-- end class org.apache.hadoop.io.WritableFactories -->
  21861. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  21862. <interface name="WritableFactory" abstract="true"
  21863. static="false" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  21866. abstract="false" native="false" synchronized="false"
  21867. static="false" final="false" visibility="public"
  21868. deprecated="not deprecated">
  21869. <doc>
  21870. <![CDATA[Return a new instance.]]>
  21871. </doc>
  21872. </method>
  21873. <doc>
  21874. <![CDATA[A factory for a class of Writable.
  21875. @see WritableFactories]]>
  21876. </doc>
  21877. </interface>
  21878. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  21879. <!-- start class org.apache.hadoop.io.WritableUtils -->
  21880. <class name="WritableUtils" extends="java.lang.Object"
  21881. abstract="false"
  21882. static="false" final="true" visibility="public"
  21883. deprecated="not deprecated">
  21884. <constructor name="WritableUtils"
  21885. static="false" final="false" visibility="public"
  21886. deprecated="not deprecated">
  21887. </constructor>
  21888. <method name="readCompressedByteArray" return="byte[]"
  21889. abstract="false" native="false" synchronized="false"
  21890. static="true" final="false" visibility="public"
  21891. deprecated="not deprecated">
  21892. <param name="in" type="java.io.DataInput"/>
  21893. <exception name="IOException" type="java.io.IOException"/>
  21894. </method>
  21895. <method name="skipCompressedByteArray"
  21896. abstract="false" native="false" synchronized="false"
  21897. static="true" final="false" visibility="public"
  21898. deprecated="not deprecated">
  21899. <param name="in" type="java.io.DataInput"/>
  21900. <exception name="IOException" type="java.io.IOException"/>
  21901. </method>
  21902. <method name="writeCompressedByteArray" return="int"
  21903. abstract="false" native="false" synchronized="false"
  21904. static="true" final="false" visibility="public"
  21905. deprecated="not deprecated">
  21906. <param name="out" type="java.io.DataOutput"/>
  21907. <param name="bytes" type="byte[]"/>
  21908. <exception name="IOException" type="java.io.IOException"/>
  21909. </method>
  21910. <method name="readCompressedString" return="java.lang.String"
  21911. abstract="false" native="false" synchronized="false"
  21912. static="true" final="false" visibility="public"
  21913. deprecated="not deprecated">
  21914. <param name="in" type="java.io.DataInput"/>
  21915. <exception name="IOException" type="java.io.IOException"/>
  21916. </method>
  21917. <method name="writeCompressedString" return="int"
  21918. abstract="false" native="false" synchronized="false"
  21919. static="true" final="false" visibility="public"
  21920. deprecated="not deprecated">
  21921. <param name="out" type="java.io.DataOutput"/>
  21922. <param name="s" type="java.lang.String"/>
  21923. <exception name="IOException" type="java.io.IOException"/>
  21924. </method>
  21925. <method name="writeString"
  21926. abstract="false" native="false" synchronized="false"
  21927. static="true" final="false" visibility="public"
  21928. deprecated="not deprecated">
  21929. <param name="out" type="java.io.DataOutput"/>
  21930. <param name="s" type="java.lang.String"/>
  21931. <exception name="IOException" type="java.io.IOException"/>
  21932. </method>
  21933. <method name="readString" return="java.lang.String"
  21934. abstract="false" native="false" synchronized="false"
  21935. static="true" final="false" visibility="public"
  21936. deprecated="not deprecated">
  21937. <param name="in" type="java.io.DataInput"/>
  21938. <exception name="IOException" type="java.io.IOException"/>
  21939. </method>
  21940. <method name="writeStringArray"
  21941. abstract="false" native="false" synchronized="false"
  21942. static="true" final="false" visibility="public"
  21943. deprecated="not deprecated">
  21944. <param name="out" type="java.io.DataOutput"/>
  21945. <param name="s" type="java.lang.String[]"/>
  21946. <exception name="IOException" type="java.io.IOException"/>
  21947. </method>
  21948. <method name="writeCompressedStringArray"
  21949. abstract="false" native="false" synchronized="false"
  21950. static="true" final="false" visibility="public"
  21951. deprecated="not deprecated">
  21952. <param name="out" type="java.io.DataOutput"/>
  21953. <param name="s" type="java.lang.String[]"/>
  21954. <exception name="IOException" type="java.io.IOException"/>
  21955. </method>
  21956. <method name="readStringArray" return="java.lang.String[]"
  21957. abstract="false" native="false" synchronized="false"
  21958. static="true" final="false" visibility="public"
  21959. deprecated="not deprecated">
  21960. <param name="in" type="java.io.DataInput"/>
  21961. <exception name="IOException" type="java.io.IOException"/>
  21962. </method>
  21963. <method name="readCompressedStringArray" return="java.lang.String[]"
  21964. abstract="false" native="false" synchronized="false"
  21965. static="true" final="false" visibility="public"
  21966. deprecated="not deprecated">
  21967. <param name="in" type="java.io.DataInput"/>
  21968. <exception name="IOException" type="java.io.IOException"/>
  21969. </method>
  21970. <method name="displayByteArray"
  21971. abstract="false" native="false" synchronized="false"
  21972. static="true" final="false" visibility="public"
  21973. deprecated="not deprecated">
  21974. <param name="record" type="byte[]"/>
  21975. </method>
  21976. <method name="clone" return="T"
  21977. abstract="false" native="false" synchronized="false"
  21978. static="true" final="false" visibility="public"
  21979. deprecated="not deprecated">
  21980. <param name="orig" type="T"/>
  21981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21982. <doc>
  21983. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  21984. @param orig The object to copy
  21985. @return The copied object]]>
  21986. </doc>
  21987. </method>
  21988. <method name="cloneInto"
  21989. abstract="false" native="false" synchronized="false"
  21990. static="true" final="false" visibility="public"
  21991. deprecated="use ReflectionUtils.cloneInto instead.">
  21992. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  21993. <param name="src" type="org.apache.hadoop.io.Writable"/>
  21994. <exception name="IOException" type="java.io.IOException"/>
  21995. <doc>
  21996. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  21997. @param dst the object to copy from
  21998. @param src the object to copy into, which is destroyed
  21999. @throws IOException
  22000. @deprecated use ReflectionUtils.cloneInto instead.]]>
  22001. </doc>
  22002. </method>
  22003. <method name="writeVInt"
  22004. abstract="false" native="false" synchronized="false"
  22005. static="true" final="false" visibility="public"
  22006. deprecated="not deprecated">
  22007. <param name="stream" type="java.io.DataOutput"/>
  22008. <param name="i" type="int"/>
  22009. <exception name="IOException" type="java.io.IOException"/>
  22010. <doc>
  22011. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  22012. For -112 <= i <= 127, only one byte is used with the actual value.
  22013. For other values of i, the first byte value indicates whether the
  22014. integer is positive or negative, and the number of bytes that follow.
  22015. If the first byte value v is between -113 and -116, the following integer
  22016. is positive, with number of bytes that follow are -(v+112).
  22017. If the first byte value v is between -121 and -124, the following integer
  22018. is negative, with number of bytes that follow are -(v+120). Bytes are
  22019. stored in the high-non-zero-byte-first order.
  22020. @param stream Binary output stream
  22021. @param i Integer to be serialized
  22022. @throws java.io.IOException]]>
  22023. </doc>
  22024. </method>
  22025. <method name="writeVLong"
  22026. abstract="false" native="false" synchronized="false"
  22027. static="true" final="false" visibility="public"
  22028. deprecated="not deprecated">
  22029. <param name="stream" type="java.io.DataOutput"/>
  22030. <param name="i" type="long"/>
  22031. <exception name="IOException" type="java.io.IOException"/>
  22032. <doc>
  22033. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  22034. For -112 <= i <= 127, only one byte is used with the actual value.
  22035. For other values of i, the first byte value indicates whether the
  22036. long is positive or negative, and the number of bytes that follow.
  22037. If the first byte value v is between -113 and -120, the following long
  22038. is positive, with number of bytes that follow are -(v+112).
  22039. If the first byte value v is between -121 and -128, the following long
  22040. is negative, with number of bytes that follow are -(v+120). Bytes are
  22041. stored in the high-non-zero-byte-first order.
  22042. @param stream Binary output stream
  22043. @param i Long to be serialized
  22044. @throws java.io.IOException]]>
  22045. </doc>
  22046. </method>
  22047. <method name="readVLong" return="long"
  22048. abstract="false" native="false" synchronized="false"
  22049. static="true" final="false" visibility="public"
  22050. deprecated="not deprecated">
  22051. <param name="stream" type="java.io.DataInput"/>
  22052. <exception name="IOException" type="java.io.IOException"/>
  22053. <doc>
  22054. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  22055. @param stream Binary input stream
  22056. @throws java.io.IOException
  22057. @return deserialized long from stream.]]>
  22058. </doc>
  22059. </method>
  22060. <method name="readVInt" return="int"
  22061. abstract="false" native="false" synchronized="false"
  22062. static="true" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. <param name="stream" type="java.io.DataInput"/>
  22065. <exception name="IOException" type="java.io.IOException"/>
  22066. <doc>
  22067. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  22068. @param stream Binary input stream
  22069. @throws java.io.IOException
  22070. @return deserialized integer from stream.]]>
  22071. </doc>
  22072. </method>
  22073. <method name="readVIntInRange" return="int"
  22074. abstract="false" native="false" synchronized="false"
  22075. static="true" final="false" visibility="public"
  22076. deprecated="not deprecated">
  22077. <param name="stream" type="java.io.DataInput"/>
  22078. <param name="lower" type="int"/>
  22079. <param name="upper" type="int"/>
  22080. <exception name="IOException" type="java.io.IOException"/>
  22081. <doc>
  22082. <![CDATA[Reads an integer from the input stream and returns it.
  22083. This function validates that the integer is between [lower, upper],
  22084. inclusive.
  22085. @param stream Binary input stream
  22086. @throws java.io.IOException
  22087. @return deserialized integer from stream]]>
  22088. </doc>
  22089. </method>
  22090. <method name="isNegativeVInt" return="boolean"
  22091. abstract="false" native="false" synchronized="false"
  22092. static="true" final="false" visibility="public"
  22093. deprecated="not deprecated">
  22094. <param name="value" type="byte"/>
  22095. <doc>
  22096. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  22097. @param value the first byte
  22098. @return is the value negative]]>
  22099. </doc>
  22100. </method>
  22101. <method name="decodeVIntSize" return="int"
  22102. abstract="false" native="false" synchronized="false"
  22103. static="true" final="false" visibility="public"
  22104. deprecated="not deprecated">
  22105. <param name="value" type="byte"/>
  22106. <doc>
  22107. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  22108. @param value the first byte of the vint/vlong
  22109. @return the total number of bytes (1 to 9)]]>
  22110. </doc>
  22111. </method>
  22112. <method name="getVIntSize" return="int"
  22113. abstract="false" native="false" synchronized="false"
  22114. static="true" final="false" visibility="public"
  22115. deprecated="not deprecated">
  22116. <param name="i" type="long"/>
  22117. <doc>
  22118. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  22119. @return the encoded length]]>
  22120. </doc>
  22121. </method>
  22122. <method name="readEnum" return="T"
  22123. abstract="false" native="false" synchronized="false"
  22124. static="true" final="false" visibility="public"
  22125. deprecated="not deprecated">
  22126. <param name="in" type="java.io.DataInput"/>
  22127. <param name="enumType" type="java.lang.Class"/>
  22128. <exception name="IOException" type="java.io.IOException"/>
  22129. <doc>
  22130. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  22131. using String values.
  22132. @param <T> Enum type
  22133. @param in DataInput to read from
  22134. @param enumType Class type of Enum
  22135. @return Enum represented by String read from DataInput
  22136. @throws IOException]]>
  22137. </doc>
  22138. </method>
  22139. <method name="writeEnum"
  22140. abstract="false" native="false" synchronized="false"
  22141. static="true" final="false" visibility="public"
  22142. deprecated="not deprecated">
  22143. <param name="out" type="java.io.DataOutput"/>
  22144. <param name="enumVal" type="java.lang.Enum"/>
  22145. <exception name="IOException" type="java.io.IOException"/>
  22146. <doc>
  22147. <![CDATA[writes String value of enum to DataOutput.
  22148. @param out Dataoutput stream
  22149. @param enumVal enum value
  22150. @throws IOException]]>
  22151. </doc>
  22152. </method>
  22153. <method name="skipFully"
  22154. abstract="false" native="false" synchronized="false"
  22155. static="true" final="false" visibility="public"
  22156. deprecated="not deprecated">
  22157. <param name="in" type="java.io.DataInput"/>
  22158. <param name="len" type="int"/>
  22159. <exception name="IOException" type="java.io.IOException"/>
  22160. <doc>
  22161. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  22162. @param in input stream
  22163. @param len number of bytes to skip
  22164. @throws IOException when skipped less number of bytes]]>
  22165. </doc>
  22166. </method>
  22167. <method name="toByteArray" return="byte[]"
  22168. abstract="false" native="false" synchronized="false"
  22169. static="true" final="false" visibility="public"
  22170. deprecated="not deprecated">
  22171. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  22172. <doc>
  22173. <![CDATA[Convert writables to a byte array]]>
  22174. </doc>
  22175. </method>
  22176. <method name="readStringSafely" return="java.lang.String"
  22177. abstract="false" native="false" synchronized="false"
  22178. static="true" final="false" visibility="public"
  22179. deprecated="not deprecated">
  22180. <param name="in" type="java.io.DataInput"/>
  22181. <param name="maxLength" type="int"/>
  22182. <exception name="IOException" type="java.io.IOException"/>
  22183. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  22184. <doc>
  22185. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  22186. followed by the given number of bytes.
  22187. @param in the stream to read from
  22188. @param maxLength the largest acceptable length of the encoded string
  22189. @return the bytes as a string
  22190. @throws IOException if reading from the DataInput fails
  22191. @throws IllegalArgumentException if the encoded byte size for string
  22192. is negative or larger than maxSize. Only the vint is read.]]>
  22193. </doc>
  22194. </method>
  22195. </class>
  22196. <!-- end class org.apache.hadoop.io.WritableUtils -->
  22197. <doc>
  22198. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  22199. to databases, and to files.]]>
  22200. </doc>
  22201. </package>
  22202. <package name="org.apache.hadoop.io.compress">
  22203. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  22204. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  22205. abstract="false"
  22206. static="false" final="false" visibility="public"
  22207. deprecated="not deprecated">
  22208. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  22209. static="false" final="false" visibility="public"
  22210. deprecated="not deprecated">
  22211. <doc>
  22212. <![CDATA[Create a {@link BlockCompressorStream}.
  22213. @param out stream
  22214. @param compressor compressor to be used
  22215. @param bufferSize size of buffer
  22216. @param compressionOverhead maximum 'overhead' of the compression
  22217. algorithm with given bufferSize]]>
  22218. </doc>
  22219. </constructor>
  22220. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  22221. static="false" final="false" visibility="public"
  22222. deprecated="not deprecated">
  22223. <doc>
  22224. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  22225. compressor.
  22226. Use default of 512 as bufferSize and compressionOverhead of
  22227. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  22228. @param out stream
  22229. @param compressor compressor to be used]]>
  22230. </doc>
  22231. </constructor>
  22232. <method name="write"
  22233. abstract="false" native="false" synchronized="false"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <param name="b" type="byte[]"/>
  22237. <param name="off" type="int"/>
  22238. <param name="len" type="int"/>
  22239. <exception name="IOException" type="java.io.IOException"/>
  22240. <doc>
  22241. <![CDATA[Write the data provided to the compression codec, compressing no more
  22242. than the buffer size less the compression overhead as specified during
  22243. construction for each block.
  22244. Each block contains the uncompressed length for the block, followed by
  22245. one or more length-prefixed blocks of compressed data.]]>
  22246. </doc>
  22247. </method>
  22248. <method name="finish"
  22249. abstract="false" native="false" synchronized="false"
  22250. static="false" final="false" visibility="public"
  22251. deprecated="not deprecated">
  22252. <exception name="IOException" type="java.io.IOException"/>
  22253. </method>
  22254. <method name="compress"
  22255. abstract="false" native="false" synchronized="false"
  22256. static="false" final="false" visibility="protected"
  22257. deprecated="not deprecated">
  22258. <exception name="IOException" type="java.io.IOException"/>
  22259. </method>
  22260. <doc>
  22261. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  22262. with 'block-based' based compression algorithms, as opposed to
  22263. 'stream-based' compression algorithms.
  22264. It should be noted that this wrapper does not guarantee that blocks will
  22265. be sized for the compressor. If the
  22266. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  22267. effect meaningful compression, it is responsible for it.]]>
  22268. </doc>
  22269. </class>
  22270. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  22271. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  22272. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  22273. abstract="false"
  22274. static="false" final="false" visibility="public"
  22275. deprecated="not deprecated">
  22276. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  22277. static="false" final="false" visibility="public"
  22278. deprecated="not deprecated">
  22279. <exception name="IOException" type="java.io.IOException"/>
  22280. <doc>
  22281. <![CDATA[Create a {@link BlockDecompressorStream}.
  22282. @param in input stream
  22283. @param decompressor decompressor to use
  22284. @param bufferSize size of buffer
  22285. @throws IOException]]>
  22286. </doc>
  22287. </constructor>
  22288. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  22289. static="false" final="false" visibility="public"
  22290. deprecated="not deprecated">
  22291. <exception name="IOException" type="java.io.IOException"/>
  22292. <doc>
  22293. <![CDATA[Create a {@link BlockDecompressorStream}.
  22294. @param in input stream
  22295. @param decompressor decompressor to use
  22296. @throws IOException]]>
  22297. </doc>
  22298. </constructor>
  22299. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  22300. static="false" final="false" visibility="protected"
  22301. deprecated="not deprecated">
  22302. <exception name="IOException" type="java.io.IOException"/>
  22303. </constructor>
  22304. <method name="decompress" return="int"
  22305. abstract="false" native="false" synchronized="false"
  22306. static="false" final="false" visibility="protected"
  22307. deprecated="not deprecated">
  22308. <param name="b" type="byte[]"/>
  22309. <param name="off" type="int"/>
  22310. <param name="len" type="int"/>
  22311. <exception name="IOException" type="java.io.IOException"/>
  22312. </method>
  22313. <method name="getCompressedData" return="int"
  22314. abstract="false" native="false" synchronized="false"
  22315. static="false" final="false" visibility="protected"
  22316. deprecated="not deprecated">
  22317. <exception name="IOException" type="java.io.IOException"/>
  22318. </method>
  22319. <method name="resetState"
  22320. abstract="false" native="false" synchronized="false"
  22321. static="false" final="false" visibility="public"
  22322. deprecated="not deprecated">
  22323. <exception name="IOException" type="java.io.IOException"/>
  22324. </method>
  22325. <doc>
  22326. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  22327. with 'block-based' based compression algorithms, as opposed to
  22328. 'stream-based' compression algorithms.]]>
  22329. </doc>
  22330. </class>
  22331. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  22332. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  22333. <class name="BZip2Codec" extends="java.lang.Object"
  22334. abstract="false"
  22335. static="false" final="false" visibility="public"
  22336. deprecated="not deprecated">
  22337. <implements name="org.apache.hadoop.conf.Configurable"/>
  22338. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  22339. <constructor name="BZip2Codec"
  22340. static="false" final="false" visibility="public"
  22341. deprecated="not deprecated">
  22342. <doc>
  22343. <![CDATA[Creates a new instance of BZip2Codec.]]>
  22344. </doc>
  22345. </constructor>
  22346. <method name="setConf"
  22347. abstract="false" native="false" synchronized="false"
  22348. static="false" final="false" visibility="public"
  22349. deprecated="not deprecated">
  22350. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22351. <doc>
  22352. <![CDATA[Set the configuration to be used by this object.
  22353. @param conf the configuration object.]]>
  22354. </doc>
  22355. </method>
  22356. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  22357. abstract="false" native="false" synchronized="false"
  22358. static="false" final="false" visibility="public"
  22359. deprecated="not deprecated">
  22360. <doc>
  22361. <![CDATA[Return the configuration used by this object.
  22362. @return the configuration object used by this objec.]]>
  22363. </doc>
  22364. </method>
  22365. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22366. abstract="false" native="false" synchronized="false"
  22367. static="false" final="false" visibility="public"
  22368. deprecated="not deprecated">
  22369. <param name="out" type="java.io.OutputStream"/>
  22370. <exception name="IOException" type="java.io.IOException"/>
  22371. <doc>
  22372. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22373. {@link OutputStream}.
  22374. @param out the location for the final output stream
  22375. @return a stream the user can write uncompressed data to, to have it
  22376. compressed
  22377. @throws IOException]]>
  22378. </doc>
  22379. </method>
  22380. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22381. abstract="false" native="false" synchronized="false"
  22382. static="false" final="false" visibility="public"
  22383. deprecated="not deprecated">
  22384. <param name="out" type="java.io.OutputStream"/>
  22385. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22386. <exception name="IOException" type="java.io.IOException"/>
  22387. <doc>
  22388. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22389. {@link OutputStream} with the given {@link Compressor}.
  22390. @param out the location for the final output stream
  22391. @param compressor compressor to use
  22392. @return a stream the user can write uncompressed data to, to have it
  22393. compressed
  22394. @throws IOException]]>
  22395. </doc>
  22396. </method>
  22397. <method name="getCompressorType" return="java.lang.Class"
  22398. abstract="false" native="false" synchronized="false"
  22399. static="false" final="false" visibility="public"
  22400. deprecated="not deprecated">
  22401. <doc>
  22402. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22403. @return the type of compressor needed by this codec.]]>
  22404. </doc>
  22405. </method>
  22406. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22407. abstract="false" native="false" synchronized="false"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <doc>
  22411. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22412. @return a new compressor for use by this codec]]>
  22413. </doc>
  22414. </method>
  22415. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22416. abstract="false" native="false" synchronized="false"
  22417. static="false" final="false" visibility="public"
  22418. deprecated="not deprecated">
  22419. <param name="in" type="java.io.InputStream"/>
  22420. <exception name="IOException" type="java.io.IOException"/>
  22421. <doc>
  22422. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22423. input stream and return a stream for uncompressed data.
  22424. @param in the stream to read compressed bytes from
  22425. @return a stream to read uncompressed bytes from
  22426. @throws IOException]]>
  22427. </doc>
  22428. </method>
  22429. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22430. abstract="false" native="false" synchronized="false"
  22431. static="false" final="false" visibility="public"
  22432. deprecated="not deprecated">
  22433. <param name="in" type="java.io.InputStream"/>
  22434. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22435. <exception name="IOException" type="java.io.IOException"/>
  22436. <doc>
  22437. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22438. {@link InputStream} with the given {@link Decompressor}, and return a
  22439. stream for uncompressed data.
  22440. @param in the stream to read compressed bytes from
  22441. @param decompressor decompressor to use
  22442. @return a stream to read uncompressed bytes from
  22443. @throws IOException]]>
  22444. </doc>
  22445. </method>
  22446. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  22447. abstract="false" native="false" synchronized="false"
  22448. static="false" final="false" visibility="public"
  22449. deprecated="not deprecated">
  22450. <param name="seekableIn" type="java.io.InputStream"/>
  22451. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22452. <param name="start" type="long"/>
  22453. <param name="end" type="long"/>
  22454. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  22455. <exception name="IOException" type="java.io.IOException"/>
  22456. <doc>
  22457. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  22458. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  22459. @param seekableIn The InputStream
  22460. @param start The start offset into the compressed stream
  22461. @param end The end offset into the compressed stream
  22462. @param readMode Controls whether progress is reported continuously or
  22463. only at block boundaries.
  22464. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  22465. </doc>
  22466. </method>
  22467. <method name="getDecompressorType" return="java.lang.Class"
  22468. abstract="false" native="false" synchronized="false"
  22469. static="false" final="false" visibility="public"
  22470. deprecated="not deprecated">
  22471. <doc>
  22472. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22473. @return the type of decompressor needed by this codec.]]>
  22474. </doc>
  22475. </method>
  22476. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22477. abstract="false" native="false" synchronized="false"
  22478. static="false" final="false" visibility="public"
  22479. deprecated="not deprecated">
  22480. <doc>
  22481. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22482. @return a new decompressor for use by this codec]]>
  22483. </doc>
  22484. </method>
  22485. <method name="getDefaultExtension" return="java.lang.String"
  22486. abstract="false" native="false" synchronized="false"
  22487. static="false" final="false" visibility="public"
  22488. deprecated="not deprecated">
  22489. <doc>
  22490. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  22491. @return A String telling the default bzip2 file extension]]>
  22492. </doc>
  22493. </method>
  22494. <doc>
  22495. <![CDATA[This class provides output and input streams for bzip2 compression
  22496. and decompression. It uses the native bzip2 library on the system
  22497. if possible, else it uses a pure-Java implementation of the bzip2
  22498. algorithm. The configuration parameter
  22499. io.compression.codec.bzip2.library can be used to control this
  22500. behavior.
  22501. In the pure-Java mode, the Compressor and Decompressor interfaces
  22502. are not implemented. Therefore, in that mode, those methods of
  22503. CompressionCodec which have a Compressor or Decompressor type
  22504. argument, throw UnsupportedOperationException.
  22505. Currently, support for splittability is available only in the
  22506. pure-Java mode; therefore, if a SplitCompressionInputStream is
  22507. requested, the pure-Java implementation is used, regardless of the
  22508. setting of the configuration parameter mentioned above.]]>
  22509. </doc>
  22510. </class>
  22511. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  22512. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  22513. <class name="CodecPool" extends="java.lang.Object"
  22514. abstract="false"
  22515. static="false" final="false" visibility="public"
  22516. deprecated="not deprecated">
  22517. <constructor name="CodecPool"
  22518. static="false" final="false" visibility="public"
  22519. deprecated="not deprecated">
  22520. </constructor>
  22521. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22522. abstract="false" native="false" synchronized="false"
  22523. static="true" final="false" visibility="public"
  22524. deprecated="not deprecated">
  22525. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22527. <doc>
  22528. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  22529. pool or a new one.
  22530. @param codec the <code>CompressionCodec</code> for which to get the
  22531. <code>Compressor</code>
  22532. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  22533. @return <code>Compressor</code> for the given
  22534. <code>CompressionCodec</code> from the pool or a new one]]>
  22535. </doc>
  22536. </method>
  22537. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22538. abstract="false" native="false" synchronized="false"
  22539. static="true" final="false" visibility="public"
  22540. deprecated="not deprecated">
  22541. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22542. </method>
  22543. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22544. abstract="false" native="false" synchronized="false"
  22545. static="true" final="false" visibility="public"
  22546. deprecated="not deprecated">
  22547. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22548. <doc>
  22549. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  22550. pool or a new one.
  22551. @param codec the <code>CompressionCodec</code> for which to get the
  22552. <code>Decompressor</code>
  22553. @return <code>Decompressor</code> for the given
  22554. <code>CompressionCodec</code> the pool or a new one]]>
  22555. </doc>
  22556. </method>
  22557. <method name="returnCompressor"
  22558. abstract="false" native="false" synchronized="false"
  22559. static="true" final="false" visibility="public"
  22560. deprecated="not deprecated">
  22561. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22562. <doc>
  22563. <![CDATA[Return the {@link Compressor} to the pool.
  22564. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  22565. </doc>
  22566. </method>
  22567. <method name="returnDecompressor"
  22568. abstract="false" native="false" synchronized="false"
  22569. static="true" final="false" visibility="public"
  22570. deprecated="not deprecated">
  22571. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22572. <doc>
  22573. <![CDATA[Return the {@link Decompressor} to the pool.
  22574. @param decompressor the <code>Decompressor</code> to be returned to the
  22575. pool]]>
  22576. </doc>
  22577. </method>
  22578. <method name="getLeasedCompressorsCount" return="int"
  22579. abstract="false" native="false" synchronized="false"
  22580. static="true" final="false" visibility="public"
  22581. deprecated="not deprecated">
  22582. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22583. <doc>
  22584. <![CDATA[Return the number of leased {@link Compressor}s for this
  22585. {@link CompressionCodec}]]>
  22586. </doc>
  22587. </method>
  22588. <method name="getLeasedDecompressorsCount" return="int"
  22589. abstract="false" native="false" synchronized="false"
  22590. static="true" final="false" visibility="public"
  22591. deprecated="not deprecated">
  22592. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  22593. <doc>
  22594. <![CDATA[Return the number of leased {@link Decompressor}s for this
  22595. {@link CompressionCodec}]]>
  22596. </doc>
  22597. </method>
  22598. <doc>
  22599. <![CDATA[A global compressor/decompressor pool used to save and reuse
  22600. (possibly native) compression/decompression codecs.]]>
  22601. </doc>
  22602. </class>
  22603. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  22604. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  22605. <interface name="CompressionCodec" abstract="true"
  22606. static="false" final="false" visibility="public"
  22607. deprecated="not deprecated">
  22608. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22609. abstract="false" native="false" synchronized="false"
  22610. static="false" final="false" visibility="public"
  22611. deprecated="not deprecated">
  22612. <param name="out" type="java.io.OutputStream"/>
  22613. <exception name="IOException" type="java.io.IOException"/>
  22614. <doc>
  22615. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22616. {@link OutputStream}.
  22617. @param out the location for the final output stream
  22618. @return a stream the user can write uncompressed data to have it compressed
  22619. @throws IOException]]>
  22620. </doc>
  22621. </method>
  22622. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  22623. abstract="false" native="false" synchronized="false"
  22624. static="false" final="false" visibility="public"
  22625. deprecated="not deprecated">
  22626. <param name="out" type="java.io.OutputStream"/>
  22627. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  22628. <exception name="IOException" type="java.io.IOException"/>
  22629. <doc>
  22630. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  22631. {@link OutputStream} with the given {@link Compressor}.
  22632. @param out the location for the final output stream
  22633. @param compressor compressor to use
  22634. @return a stream the user can write uncompressed data to have it compressed
  22635. @throws IOException]]>
  22636. </doc>
  22637. </method>
  22638. <method name="getCompressorType" return="java.lang.Class"
  22639. abstract="false" native="false" synchronized="false"
  22640. static="false" final="false" visibility="public"
  22641. deprecated="not deprecated">
  22642. <doc>
  22643. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  22644. @return the type of compressor needed by this codec.]]>
  22645. </doc>
  22646. </method>
  22647. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  22648. abstract="false" native="false" synchronized="false"
  22649. static="false" final="false" visibility="public"
  22650. deprecated="not deprecated">
  22651. <doc>
  22652. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  22653. @return a new compressor for use by this codec]]>
  22654. </doc>
  22655. </method>
  22656. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22657. abstract="false" native="false" synchronized="false"
  22658. static="false" final="false" visibility="public"
  22659. deprecated="not deprecated">
  22660. <param name="in" type="java.io.InputStream"/>
  22661. <exception name="IOException" type="java.io.IOException"/>
  22662. <doc>
  22663. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22664. input stream.
  22665. @param in the stream to read compressed bytes from
  22666. @return a stream to read uncompressed bytes from
  22667. @throws IOException]]>
  22668. </doc>
  22669. </method>
  22670. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  22671. abstract="false" native="false" synchronized="false"
  22672. static="false" final="false" visibility="public"
  22673. deprecated="not deprecated">
  22674. <param name="in" type="java.io.InputStream"/>
  22675. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  22676. <exception name="IOException" type="java.io.IOException"/>
  22677. <doc>
  22678. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  22679. {@link InputStream} with the given {@link Decompressor}.
  22680. @param in the stream to read compressed bytes from
  22681. @param decompressor decompressor to use
  22682. @return a stream to read uncompressed bytes from
  22683. @throws IOException]]>
  22684. </doc>
  22685. </method>
  22686. <method name="getDecompressorType" return="java.lang.Class"
  22687. abstract="false" native="false" synchronized="false"
  22688. static="false" final="false" visibility="public"
  22689. deprecated="not deprecated">
  22690. <doc>
  22691. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  22692. @return the type of decompressor needed by this codec.]]>
  22693. </doc>
  22694. </method>
  22695. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  22696. abstract="false" native="false" synchronized="false"
  22697. static="false" final="false" visibility="public"
  22698. deprecated="not deprecated">
  22699. <doc>
  22700. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  22701. @return a new decompressor for use by this codec]]>
  22702. </doc>
  22703. </method>
  22704. <method name="getDefaultExtension" return="java.lang.String"
  22705. abstract="false" native="false" synchronized="false"
  22706. static="false" final="false" visibility="public"
  22707. deprecated="not deprecated">
  22708. <doc>
  22709. <![CDATA[Get the default filename extension for this kind of compression.
  22710. @return the extension including the '.']]>
  22711. </doc>
  22712. </method>
  22713. <doc>
  22714. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  22715. </doc>
  22716. </interface>
  22717. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  22718. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22719. <class name="CompressionCodecFactory" extends="java.lang.Object"
  22720. abstract="false"
  22721. static="false" final="false" visibility="public"
  22722. deprecated="not deprecated">
  22723. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  22724. static="false" final="false" visibility="public"
  22725. deprecated="not deprecated">
  22726. <doc>
  22727. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  22728. and register them. Defaults to gzip and deflate.]]>
  22729. </doc>
  22730. </constructor>
  22731. <method name="toString" return="java.lang.String"
  22732. abstract="false" native="false" synchronized="false"
  22733. static="false" final="false" visibility="public"
  22734. deprecated="not deprecated">
  22735. <doc>
  22736. <![CDATA[Print the extension map out as a string.]]>
  22737. </doc>
  22738. </method>
  22739. <method name="getCodecClasses" return="java.util.List"
  22740. abstract="false" native="false" synchronized="false"
  22741. static="true" final="false" visibility="public"
  22742. deprecated="not deprecated">
  22743. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22744. <doc>
  22745. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  22746. listed in the configuration. Codecs specified in configuration come
  22747. later in the returned list, and are considered to override those
  22748. from the ServiceLoader.
  22749. @param conf the configuration to look in
  22750. @return a list of the {@link CompressionCodec} classes]]>
  22751. </doc>
  22752. </method>
  22753. <method name="setCodecClasses"
  22754. abstract="false" native="false" synchronized="false"
  22755. static="true" final="false" visibility="public"
  22756. deprecated="not deprecated">
  22757. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22758. <param name="classes" type="java.util.List"/>
  22759. <doc>
  22760. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  22761. classes specified using this method, {@link CompressionCodec} classes on
  22762. the classpath are discovered using a Java ServiceLoader.
  22763. @param conf the configuration to modify
  22764. @param classes the list of classes to set]]>
  22765. </doc>
  22766. </method>
  22767. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  22768. abstract="false" native="false" synchronized="false"
  22769. static="false" final="false" visibility="public"
  22770. deprecated="not deprecated">
  22771. <param name="file" type="org.apache.hadoop.fs.Path"/>
  22772. <doc>
  22773. <![CDATA[Find the relevant compression codec for the given file based on its
  22774. filename suffix.
  22775. @param file the filename to check
  22776. @return the codec object]]>
  22777. </doc>
  22778. </method>
  22779. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22780. abstract="false" native="false" synchronized="false"
  22781. static="false" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <param name="classname" type="java.lang.String"/>
  22784. <doc>
  22785. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  22786. @param classname the canonical class name of the codec
  22787. @return the codec object]]>
  22788. </doc>
  22789. </method>
  22790. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  22791. abstract="false" native="false" synchronized="false"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="not deprecated">
  22794. <param name="codecName" type="java.lang.String"/>
  22795. <doc>
  22796. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22797. or by codec alias.
  22798. <p/>
  22799. Codec aliases are case insensitive.
  22800. <p/>
  22801. The code alias is the short class name (without the package name).
  22802. If the short class name ends with 'Codec', then there are two aliases for
  22803. the codec, the complete short class name and the short class name without
  22804. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22805. alias are 'gzip' and 'gzipcodec'.
  22806. @param codecName the canonical class name of the codec
  22807. @return the codec object]]>
  22808. </doc>
  22809. </method>
  22810. <method name="getCodecClassByName" return="java.lang.Class"
  22811. abstract="false" native="false" synchronized="false"
  22812. static="false" final="false" visibility="public"
  22813. deprecated="not deprecated">
  22814. <param name="codecName" type="java.lang.String"/>
  22815. <doc>
  22816. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  22817. or by codec alias and returns its implemetation class.
  22818. <p/>
  22819. Codec aliases are case insensitive.
  22820. <p/>
  22821. The code alias is the short class name (without the package name).
  22822. If the short class name ends with 'Codec', then there are two aliases for
  22823. the codec, the complete short class name and the short class name without
  22824. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  22825. alias are 'gzip' and 'gzipcodec'.
  22826. @param codecName the canonical class name of the codec
  22827. @return the codec class]]>
  22828. </doc>
  22829. </method>
  22830. <method name="removeSuffix" return="java.lang.String"
  22831. abstract="false" native="false" synchronized="false"
  22832. static="true" final="false" visibility="public"
  22833. deprecated="not deprecated">
  22834. <param name="filename" type="java.lang.String"/>
  22835. <param name="suffix" type="java.lang.String"/>
  22836. <doc>
  22837. <![CDATA[Removes a suffix from a filename, if it has it.
  22838. @param filename the filename to strip
  22839. @param suffix the suffix to remove
  22840. @return the shortened filename]]>
  22841. </doc>
  22842. </method>
  22843. <method name="main"
  22844. abstract="false" native="false" synchronized="false"
  22845. static="true" final="false" visibility="public"
  22846. deprecated="not deprecated">
  22847. <param name="args" type="java.lang.String[]"/>
  22848. <exception name="Exception" type="java.lang.Exception"/>
  22849. <doc>
  22850. <![CDATA[A little test program.
  22851. @param args]]>
  22852. </doc>
  22853. </method>
  22854. <field name="LOG" type="org.slf4j.Logger"
  22855. transient="false" volatile="false"
  22856. static="true" final="true" visibility="public"
  22857. deprecated="not deprecated">
  22858. </field>
  22859. <doc>
  22860. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  22861. </doc>
  22862. </class>
  22863. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  22864. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  22865. <class name="CompressionInputStream" extends="java.io.InputStream"
  22866. abstract="true"
  22867. static="false" final="false" visibility="public"
  22868. deprecated="not deprecated">
  22869. <implements name="org.apache.hadoop.fs.Seekable"/>
  22870. <constructor name="CompressionInputStream" type="java.io.InputStream"
  22871. static="false" final="false" visibility="protected"
  22872. deprecated="not deprecated">
  22873. <exception name="IOException" type="java.io.IOException"/>
  22874. <doc>
  22875. <![CDATA[Create a compression input stream that reads
  22876. the decompressed bytes from the given stream.
  22877. @param in The input stream to be compressed.
  22878. @throws IOException]]>
  22879. </doc>
  22880. </constructor>
  22881. <method name="close"
  22882. abstract="false" native="false" synchronized="false"
  22883. static="false" final="false" visibility="public"
  22884. deprecated="not deprecated">
  22885. <exception name="IOException" type="java.io.IOException"/>
  22886. </method>
  22887. <method name="read" return="int"
  22888. abstract="true" native="false" synchronized="false"
  22889. static="false" final="false" visibility="public"
  22890. deprecated="not deprecated">
  22891. <param name="b" type="byte[]"/>
  22892. <param name="off" type="int"/>
  22893. <param name="len" type="int"/>
  22894. <exception name="IOException" type="java.io.IOException"/>
  22895. <doc>
  22896. <![CDATA[Read bytes from the stream.
  22897. Made abstract to prevent leakage to underlying stream.]]>
  22898. </doc>
  22899. </method>
  22900. <method name="resetState"
  22901. abstract="true" native="false" synchronized="false"
  22902. static="false" final="false" visibility="public"
  22903. deprecated="not deprecated">
  22904. <exception name="IOException" type="java.io.IOException"/>
  22905. <doc>
  22906. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  22907. as the underlying stream may have been repositioned.]]>
  22908. </doc>
  22909. </method>
  22910. <method name="getPos" return="long"
  22911. abstract="false" native="false" synchronized="false"
  22912. static="false" final="false" visibility="public"
  22913. deprecated="not deprecated">
  22914. <exception name="IOException" type="java.io.IOException"/>
  22915. <doc>
  22916. <![CDATA[This method returns the current position in the stream.
  22917. @return Current position in stream as a long]]>
  22918. </doc>
  22919. </method>
  22920. <method name="seek"
  22921. abstract="false" native="false" synchronized="false"
  22922. static="false" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. <param name="pos" type="long"/>
  22925. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22926. <doc>
  22927. <![CDATA[This method is current not supported.
  22928. @throws UnsupportedOperationException]]>
  22929. </doc>
  22930. </method>
  22931. <method name="seekToNewSource" return="boolean"
  22932. abstract="false" native="false" synchronized="false"
  22933. static="false" final="false" visibility="public"
  22934. deprecated="not deprecated">
  22935. <param name="targetPos" type="long"/>
  22936. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22937. <doc>
  22938. <![CDATA[This method is current not supported.
  22939. @throws UnsupportedOperationException]]>
  22940. </doc>
  22941. </method>
  22942. <field name="in" type="java.io.InputStream"
  22943. transient="false" volatile="false"
  22944. static="false" final="true" visibility="protected"
  22945. deprecated="not deprecated">
  22946. <doc>
  22947. <![CDATA[The input stream to be compressed.]]>
  22948. </doc>
  22949. </field>
  22950. <field name="maxAvailableData" type="long"
  22951. transient="false" volatile="false"
  22952. static="false" final="false" visibility="protected"
  22953. deprecated="not deprecated">
  22954. </field>
  22955. <doc>
  22956. <![CDATA[A compression input stream.
  22957. <p>Implementations are assumed to be buffered. This permits clients to
  22958. reposition the underlying input stream then call {@link #resetState()},
  22959. without having to also synchronize client buffers.]]>
  22960. </doc>
  22961. </class>
  22962. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  22963. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  22964. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  22965. abstract="true"
  22966. static="false" final="false" visibility="public"
  22967. deprecated="not deprecated">
  22968. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  22969. static="false" final="false" visibility="protected"
  22970. deprecated="not deprecated">
  22971. <doc>
  22972. <![CDATA[Create a compression output stream that writes
  22973. the compressed bytes to the given stream.
  22974. @param out]]>
  22975. </doc>
  22976. </constructor>
  22977. <method name="close"
  22978. abstract="false" native="false" synchronized="false"
  22979. static="false" final="false" visibility="public"
  22980. deprecated="not deprecated">
  22981. <exception name="IOException" type="java.io.IOException"/>
  22982. </method>
  22983. <method name="flush"
  22984. abstract="false" native="false" synchronized="false"
  22985. static="false" final="false" visibility="public"
  22986. deprecated="not deprecated">
  22987. <exception name="IOException" type="java.io.IOException"/>
  22988. </method>
  22989. <method name="write"
  22990. abstract="true" native="false" synchronized="false"
  22991. static="false" final="false" visibility="public"
  22992. deprecated="not deprecated">
  22993. <param name="b" type="byte[]"/>
  22994. <param name="off" type="int"/>
  22995. <param name="len" type="int"/>
  22996. <exception name="IOException" type="java.io.IOException"/>
  22997. <doc>
  22998. <![CDATA[Write compressed bytes to the stream.
  22999. Made abstract to prevent leakage to underlying stream.]]>
  23000. </doc>
  23001. </method>
  23002. <method name="finish"
  23003. abstract="true" native="false" synchronized="false"
  23004. static="false" final="false" visibility="public"
  23005. deprecated="not deprecated">
  23006. <exception name="IOException" type="java.io.IOException"/>
  23007. <doc>
  23008. <![CDATA[Finishes writing compressed data to the output stream
  23009. without closing the underlying stream.]]>
  23010. </doc>
  23011. </method>
  23012. <method name="resetState"
  23013. abstract="true" native="false" synchronized="false"
  23014. static="false" final="false" visibility="public"
  23015. deprecated="not deprecated">
  23016. <exception name="IOException" type="java.io.IOException"/>
  23017. <doc>
  23018. <![CDATA[Reset the compression to the initial state.
  23019. Does not reset the underlying stream.]]>
  23020. </doc>
  23021. </method>
  23022. <field name="out" type="java.io.OutputStream"
  23023. transient="false" volatile="false"
  23024. static="false" final="true" visibility="protected"
  23025. deprecated="not deprecated">
  23026. <doc>
  23027. <![CDATA[The output stream to be compressed.]]>
  23028. </doc>
  23029. </field>
  23030. <doc>
  23031. <![CDATA[A compression output stream.]]>
  23032. </doc>
  23033. </class>
  23034. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  23035. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  23036. <interface name="Compressor" abstract="true"
  23037. static="false" final="false" visibility="public"
  23038. deprecated="not deprecated">
  23039. <method name="setInput"
  23040. abstract="false" native="false" synchronized="false"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. <param name="b" type="byte[]"/>
  23044. <param name="off" type="int"/>
  23045. <param name="len" type="int"/>
  23046. <doc>
  23047. <![CDATA[Sets input data for compression.
  23048. This should be called whenever #needsInput() returns
  23049. <code>true</code> indicating that more input data is required.
  23050. @param b Input data
  23051. @param off Start offset
  23052. @param len Length]]>
  23053. </doc>
  23054. </method>
  23055. <method name="needsInput" return="boolean"
  23056. abstract="false" native="false" synchronized="false"
  23057. static="false" final="false" visibility="public"
  23058. deprecated="not deprecated">
  23059. <doc>
  23060. <![CDATA[Returns true if the input data buffer is empty and
  23061. #setInput() should be called to provide more input.
  23062. @return <code>true</code> if the input data buffer is empty and
  23063. #setInput() should be called in order to provide more input.]]>
  23064. </doc>
  23065. </method>
  23066. <method name="setDictionary"
  23067. abstract="false" native="false" synchronized="false"
  23068. static="false" final="false" visibility="public"
  23069. deprecated="not deprecated">
  23070. <param name="b" type="byte[]"/>
  23071. <param name="off" type="int"/>
  23072. <param name="len" type="int"/>
  23073. <doc>
  23074. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  23075. is used when the history buffer can be predetermined.
  23076. @param b Dictionary data bytes
  23077. @param off Start offset
  23078. @param len Length]]>
  23079. </doc>
  23080. </method>
  23081. <method name="getBytesRead" return="long"
  23082. abstract="false" native="false" synchronized="false"
  23083. static="false" final="false" visibility="public"
  23084. deprecated="not deprecated">
  23085. <doc>
  23086. <![CDATA[Return number of uncompressed bytes input so far.]]>
  23087. </doc>
  23088. </method>
  23089. <method name="getBytesWritten" return="long"
  23090. abstract="false" native="false" synchronized="false"
  23091. static="false" final="false" visibility="public"
  23092. deprecated="not deprecated">
  23093. <doc>
  23094. <![CDATA[Return number of compressed bytes output so far.]]>
  23095. </doc>
  23096. </method>
  23097. <method name="finish"
  23098. abstract="false" native="false" synchronized="false"
  23099. static="false" final="false" visibility="public"
  23100. deprecated="not deprecated">
  23101. <doc>
  23102. <![CDATA[When called, indicates that compression should end
  23103. with the current contents of the input buffer.]]>
  23104. </doc>
  23105. </method>
  23106. <method name="finished" return="boolean"
  23107. abstract="false" native="false" synchronized="false"
  23108. static="false" final="false" visibility="public"
  23109. deprecated="not deprecated">
  23110. <doc>
  23111. <![CDATA[Returns true if the end of the compressed
  23112. data output stream has been reached.
  23113. @return <code>true</code> if the end of the compressed
  23114. data output stream has been reached.]]>
  23115. </doc>
  23116. </method>
  23117. <method name="compress" return="int"
  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. <exception name="IOException" type="java.io.IOException"/>
  23125. <doc>
  23126. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  23127. of bytes of compressed data. A return value of 0 indicates that
  23128. needsInput() should be called in order to determine if more input
  23129. data is required.
  23130. @param b Buffer for the compressed data
  23131. @param off Start offset of the data
  23132. @param len Size of the buffer
  23133. @return The actual number of bytes of compressed data.]]>
  23134. </doc>
  23135. </method>
  23136. <method name="reset"
  23137. abstract="false" native="false" synchronized="false"
  23138. static="false" final="false" visibility="public"
  23139. deprecated="not deprecated">
  23140. <doc>
  23141. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  23142. </doc>
  23143. </method>
  23144. <method name="end"
  23145. abstract="false" native="false" synchronized="false"
  23146. static="false" final="false" visibility="public"
  23147. deprecated="not deprecated">
  23148. <doc>
  23149. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  23150. </doc>
  23151. </method>
  23152. <method name="reinit"
  23153. abstract="false" native="false" synchronized="false"
  23154. static="false" final="false" visibility="public"
  23155. deprecated="not deprecated">
  23156. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23157. <doc>
  23158. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  23159. the given Configuration
  23160. @param conf Configuration from which new setting are fetched]]>
  23161. </doc>
  23162. </method>
  23163. <doc>
  23164. <![CDATA[Specification of a stream-based 'compressor' which can be
  23165. plugged into a {@link CompressionOutputStream} to compress data.
  23166. This is modelled after {@link java.util.zip.Deflater}]]>
  23167. </doc>
  23168. </interface>
  23169. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  23170. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  23171. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  23172. abstract="false"
  23173. static="false" final="false" visibility="public"
  23174. deprecated="not deprecated">
  23175. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  23176. static="false" final="false" visibility="public"
  23177. deprecated="not deprecated">
  23178. </constructor>
  23179. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. </constructor>
  23183. <constructor name="CompressorStream" type="java.io.OutputStream"
  23184. static="false" final="false" visibility="protected"
  23185. deprecated="not deprecated">
  23186. <doc>
  23187. <![CDATA[Allow derived classes to directly set the underlying stream.
  23188. @param out Underlying output stream.]]>
  23189. </doc>
  23190. </constructor>
  23191. <method name="write"
  23192. abstract="false" native="false" synchronized="false"
  23193. static="false" final="false" visibility="public"
  23194. deprecated="not deprecated">
  23195. <param name="b" type="byte[]"/>
  23196. <param name="off" type="int"/>
  23197. <param name="len" type="int"/>
  23198. <exception name="IOException" type="java.io.IOException"/>
  23199. </method>
  23200. <method name="compress"
  23201. abstract="false" native="false" synchronized="false"
  23202. static="false" final="false" visibility="protected"
  23203. deprecated="not deprecated">
  23204. <exception name="IOException" type="java.io.IOException"/>
  23205. </method>
  23206. <method name="finish"
  23207. abstract="false" native="false" synchronized="false"
  23208. static="false" final="false" visibility="public"
  23209. deprecated="not deprecated">
  23210. <exception name="IOException" type="java.io.IOException"/>
  23211. </method>
  23212. <method name="resetState"
  23213. abstract="false" native="false" synchronized="false"
  23214. static="false" final="false" visibility="public"
  23215. deprecated="not deprecated">
  23216. <exception name="IOException" type="java.io.IOException"/>
  23217. </method>
  23218. <method name="close"
  23219. abstract="false" native="false" synchronized="false"
  23220. static="false" final="false" visibility="public"
  23221. deprecated="not deprecated">
  23222. <exception name="IOException" type="java.io.IOException"/>
  23223. </method>
  23224. <method name="write"
  23225. abstract="false" native="false" synchronized="false"
  23226. static="false" final="false" visibility="public"
  23227. deprecated="not deprecated">
  23228. <param name="b" type="int"/>
  23229. <exception name="IOException" type="java.io.IOException"/>
  23230. </method>
  23231. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  23232. transient="false" volatile="false"
  23233. static="false" final="false" visibility="protected"
  23234. deprecated="not deprecated">
  23235. </field>
  23236. <field name="buffer" type="byte[]"
  23237. transient="false" volatile="false"
  23238. static="false" final="false" visibility="protected"
  23239. deprecated="not deprecated">
  23240. </field>
  23241. <field name="closed" type="boolean"
  23242. transient="false" volatile="false"
  23243. static="false" final="false" visibility="protected"
  23244. deprecated="not deprecated">
  23245. </field>
  23246. </class>
  23247. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  23248. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  23249. <interface name="Decompressor" abstract="true"
  23250. static="false" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <method name="setInput"
  23253. abstract="false" native="false" synchronized="false"
  23254. static="false" final="false" visibility="public"
  23255. deprecated="not deprecated">
  23256. <param name="b" type="byte[]"/>
  23257. <param name="off" type="int"/>
  23258. <param name="len" type="int"/>
  23259. <doc>
  23260. <![CDATA[Sets input data for decompression.
  23261. This should be called if and only if {@link #needsInput()} returns
  23262. <code>true</code> indicating that more input data is required.
  23263. (Both native and non-native versions of various Decompressors require
  23264. that the data passed in via <code>b[]</code> remain unmodified until
  23265. the caller is explicitly notified--via {@link #needsInput()}--that the
  23266. buffer may be safely modified. With this requirement, an extra
  23267. buffer-copy can be avoided.)
  23268. @param b Input data
  23269. @param off Start offset
  23270. @param len Length]]>
  23271. </doc>
  23272. </method>
  23273. <method name="needsInput" return="boolean"
  23274. abstract="false" native="false" synchronized="false"
  23275. static="false" final="false" visibility="public"
  23276. deprecated="not deprecated">
  23277. <doc>
  23278. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  23279. {@link #setInput(byte[], int, int)} should be called to
  23280. provide more input.
  23281. @return <code>true</code> if the input data buffer is empty and
  23282. {@link #setInput(byte[], int, int)} should be called in
  23283. order to provide more input.]]>
  23284. </doc>
  23285. </method>
  23286. <method name="setDictionary"
  23287. abstract="false" native="false" synchronized="false"
  23288. static="false" final="false" visibility="public"
  23289. deprecated="not deprecated">
  23290. <param name="b" type="byte[]"/>
  23291. <param name="off" type="int"/>
  23292. <param name="len" type="int"/>
  23293. <doc>
  23294. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  23295. is used when the history buffer can be predetermined.
  23296. @param b Dictionary data bytes
  23297. @param off Start offset
  23298. @param len Length]]>
  23299. </doc>
  23300. </method>
  23301. <method name="needsDictionary" return="boolean"
  23302. abstract="false" native="false" synchronized="false"
  23303. static="false" final="false" visibility="public"
  23304. deprecated="not deprecated">
  23305. <doc>
  23306. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  23307. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  23308. </doc>
  23309. </method>
  23310. <method name="finished" return="boolean"
  23311. abstract="false" native="false" synchronized="false"
  23312. static="false" final="false" visibility="public"
  23313. deprecated="not deprecated">
  23314. <doc>
  23315. <![CDATA[Returns <code>true</code> if the end of the decompressed
  23316. data output stream has been reached. Indicates a concatenated data stream
  23317. when finished() returns <code>true</code> and {@link #getRemaining()}
  23318. returns a positive value. finished() will be reset with the
  23319. {@link #reset()} method.
  23320. @return <code>true</code> if the end of the decompressed
  23321. data output stream has been reached.]]>
  23322. </doc>
  23323. </method>
  23324. <method name="decompress" return="int"
  23325. abstract="false" native="false" synchronized="false"
  23326. static="false" final="false" visibility="public"
  23327. deprecated="not deprecated">
  23328. <param name="b" type="byte[]"/>
  23329. <param name="off" type="int"/>
  23330. <param name="len" type="int"/>
  23331. <exception name="IOException" type="java.io.IOException"/>
  23332. <doc>
  23333. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  23334. of bytes of uncompressed data. A return value of 0 indicates that
  23335. {@link #needsInput()} should be called in order to determine if more
  23336. input data is required.
  23337. @param b Buffer for the compressed data
  23338. @param off Start offset of the data
  23339. @param len Size of the buffer
  23340. @return The actual number of bytes of uncompressed data.
  23341. @throws IOException]]>
  23342. </doc>
  23343. </method>
  23344. <method name="getRemaining" return="int"
  23345. abstract="false" native="false" synchronized="false"
  23346. static="false" final="false" visibility="public"
  23347. deprecated="not deprecated">
  23348. <doc>
  23349. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  23350. Indicates a concatenated data stream if {@link #finished()} returns
  23351. <code>true</code> and getRemaining() returns a positive value. If
  23352. {@link #finished()} returns <code>true</code> and getRemaining() returns
  23353. a zero value, indicates that the end of data stream has been reached and
  23354. is not a concatenated data stream.
  23355. @return The number of bytes remaining in the compressed data buffer.]]>
  23356. </doc>
  23357. </method>
  23358. <method name="reset"
  23359. abstract="false" native="false" synchronized="false"
  23360. static="false" final="false" visibility="public"
  23361. deprecated="not deprecated">
  23362. <doc>
  23363. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  23364. input data can be processed. If {@link #finished()}} returns
  23365. <code>true</code> and {@link #getRemaining()} returns a positive value,
  23366. reset() is called before processing of the next data stream in the
  23367. concatenated data stream. {@link #finished()} will be reset and will
  23368. return <code>false</code> when reset() is called.]]>
  23369. </doc>
  23370. </method>
  23371. <method name="end"
  23372. abstract="false" native="false" synchronized="false"
  23373. static="false" final="false" visibility="public"
  23374. deprecated="not deprecated">
  23375. <doc>
  23376. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  23377. </doc>
  23378. </method>
  23379. <doc>
  23380. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  23381. plugged into a {@link CompressionInputStream} to compress data.
  23382. This is modelled after {@link java.util.zip.Inflater}]]>
  23383. </doc>
  23384. </interface>
  23385. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  23386. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  23387. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23388. abstract="false"
  23389. static="false" final="false" visibility="public"
  23390. deprecated="not deprecated">
  23391. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  23392. static="false" final="false" visibility="public"
  23393. deprecated="not deprecated">
  23394. <exception name="IOException" type="java.io.IOException"/>
  23395. </constructor>
  23396. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  23397. static="false" final="false" visibility="public"
  23398. deprecated="not deprecated">
  23399. <exception name="IOException" type="java.io.IOException"/>
  23400. </constructor>
  23401. <constructor name="DecompressorStream" type="java.io.InputStream"
  23402. static="false" final="false" visibility="protected"
  23403. deprecated="not deprecated">
  23404. <exception name="IOException" type="java.io.IOException"/>
  23405. <doc>
  23406. <![CDATA[Allow derived classes to directly set the underlying stream.
  23407. @param in Underlying input stream.
  23408. @throws IOException]]>
  23409. </doc>
  23410. </constructor>
  23411. <method name="read" return="int"
  23412. abstract="false" native="false" synchronized="false"
  23413. static="false" final="false" visibility="public"
  23414. deprecated="not deprecated">
  23415. <exception name="IOException" type="java.io.IOException"/>
  23416. </method>
  23417. <method name="read" return="int"
  23418. abstract="false" native="false" synchronized="false"
  23419. static="false" final="false" visibility="public"
  23420. deprecated="not deprecated">
  23421. <param name="b" type="byte[]"/>
  23422. <param name="off" type="int"/>
  23423. <param name="len" type="int"/>
  23424. <exception name="IOException" type="java.io.IOException"/>
  23425. </method>
  23426. <method name="decompress" return="int"
  23427. abstract="false" native="false" synchronized="false"
  23428. static="false" final="false" visibility="protected"
  23429. deprecated="not deprecated">
  23430. <param name="b" type="byte[]"/>
  23431. <param name="off" type="int"/>
  23432. <param name="len" type="int"/>
  23433. <exception name="IOException" type="java.io.IOException"/>
  23434. </method>
  23435. <method name="getCompressedData" return="int"
  23436. abstract="false" native="false" synchronized="false"
  23437. static="false" final="false" visibility="protected"
  23438. deprecated="not deprecated">
  23439. <exception name="IOException" type="java.io.IOException"/>
  23440. </method>
  23441. <method name="checkStream"
  23442. abstract="false" native="false" synchronized="false"
  23443. static="false" final="false" visibility="protected"
  23444. deprecated="not deprecated">
  23445. <exception name="IOException" type="java.io.IOException"/>
  23446. </method>
  23447. <method name="resetState"
  23448. abstract="false" native="false" synchronized="false"
  23449. static="false" final="false" visibility="public"
  23450. deprecated="not deprecated">
  23451. <exception name="IOException" type="java.io.IOException"/>
  23452. </method>
  23453. <method name="skip" return="long"
  23454. abstract="false" native="false" synchronized="false"
  23455. static="false" final="false" visibility="public"
  23456. deprecated="not deprecated">
  23457. <param name="n" type="long"/>
  23458. <exception name="IOException" type="java.io.IOException"/>
  23459. </method>
  23460. <method name="available" return="int"
  23461. abstract="false" native="false" synchronized="false"
  23462. static="false" final="false" visibility="public"
  23463. deprecated="not deprecated">
  23464. <exception name="IOException" type="java.io.IOException"/>
  23465. </method>
  23466. <method name="close"
  23467. abstract="false" native="false" synchronized="false"
  23468. static="false" final="false" visibility="public"
  23469. deprecated="not deprecated">
  23470. <exception name="IOException" type="java.io.IOException"/>
  23471. </method>
  23472. <method name="markSupported" return="boolean"
  23473. abstract="false" native="false" synchronized="false"
  23474. static="false" final="false" visibility="public"
  23475. deprecated="not deprecated">
  23476. </method>
  23477. <method name="mark"
  23478. abstract="false" native="false" synchronized="true"
  23479. static="false" final="false" visibility="public"
  23480. deprecated="not deprecated">
  23481. <param name="readlimit" type="int"/>
  23482. </method>
  23483. <method name="reset"
  23484. abstract="false" native="false" synchronized="true"
  23485. static="false" final="false" visibility="public"
  23486. deprecated="not deprecated">
  23487. <exception name="IOException" type="java.io.IOException"/>
  23488. </method>
  23489. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  23490. transient="false" volatile="false"
  23491. static="false" final="false" visibility="protected"
  23492. deprecated="not deprecated">
  23493. </field>
  23494. <field name="buffer" type="byte[]"
  23495. transient="false" volatile="false"
  23496. static="false" final="false" visibility="protected"
  23497. deprecated="not deprecated">
  23498. </field>
  23499. <field name="eof" type="boolean"
  23500. transient="false" volatile="false"
  23501. static="false" final="false" visibility="protected"
  23502. deprecated="not deprecated">
  23503. </field>
  23504. <field name="closed" type="boolean"
  23505. transient="false" volatile="false"
  23506. static="false" final="false" visibility="protected"
  23507. deprecated="not deprecated">
  23508. </field>
  23509. </class>
  23510. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  23511. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  23512. <class name="DefaultCodec" extends="java.lang.Object"
  23513. abstract="false"
  23514. static="false" final="false" visibility="public"
  23515. deprecated="not deprecated">
  23516. <implements name="org.apache.hadoop.conf.Configurable"/>
  23517. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23518. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  23519. <constructor name="DefaultCodec"
  23520. static="false" final="false" visibility="public"
  23521. deprecated="not deprecated">
  23522. </constructor>
  23523. <method name="setConf"
  23524. abstract="false" native="false" synchronized="false"
  23525. static="false" final="false" visibility="public"
  23526. deprecated="not deprecated">
  23527. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23528. </method>
  23529. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23530. abstract="false" native="false" synchronized="false"
  23531. static="false" final="false" visibility="public"
  23532. deprecated="not deprecated">
  23533. </method>
  23534. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="false" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. <param name="out" type="java.io.OutputStream"/>
  23539. <exception name="IOException" type="java.io.IOException"/>
  23540. </method>
  23541. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23542. abstract="false" native="false" synchronized="false"
  23543. static="false" final="false" visibility="public"
  23544. deprecated="not deprecated">
  23545. <param name="out" type="java.io.OutputStream"/>
  23546. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23547. <exception name="IOException" type="java.io.IOException"/>
  23548. </method>
  23549. <method name="getCompressorType" return="java.lang.Class"
  23550. abstract="false" native="false" synchronized="false"
  23551. static="false" final="false" visibility="public"
  23552. deprecated="not deprecated">
  23553. </method>
  23554. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23555. abstract="false" native="false" synchronized="false"
  23556. static="false" final="false" visibility="public"
  23557. deprecated="not deprecated">
  23558. </method>
  23559. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23560. abstract="false" native="false" synchronized="false"
  23561. static="false" final="false" visibility="public"
  23562. deprecated="not deprecated">
  23563. <param name="in" type="java.io.InputStream"/>
  23564. <exception name="IOException" type="java.io.IOException"/>
  23565. </method>
  23566. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23567. abstract="false" native="false" synchronized="false"
  23568. static="false" final="false" visibility="public"
  23569. deprecated="not deprecated">
  23570. <param name="in" type="java.io.InputStream"/>
  23571. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23572. <exception name="IOException" type="java.io.IOException"/>
  23573. </method>
  23574. <method name="getDecompressorType" return="java.lang.Class"
  23575. abstract="false" native="false" synchronized="false"
  23576. static="false" final="false" visibility="public"
  23577. deprecated="not deprecated">
  23578. </method>
  23579. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23580. abstract="false" native="false" synchronized="false"
  23581. static="false" final="false" visibility="public"
  23582. deprecated="not deprecated">
  23583. </method>
  23584. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23585. abstract="false" native="false" synchronized="false"
  23586. static="false" final="false" visibility="public"
  23587. deprecated="not deprecated">
  23588. <doc>
  23589. <![CDATA[{@inheritDoc}]]>
  23590. </doc>
  23591. </method>
  23592. <method name="getDefaultExtension" return="java.lang.String"
  23593. abstract="false" native="false" synchronized="false"
  23594. static="false" final="false" visibility="public"
  23595. deprecated="not deprecated">
  23596. </method>
  23597. </class>
  23598. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  23599. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23600. <interface name="DirectDecompressionCodec" abstract="true"
  23601. static="false" final="false" visibility="public"
  23602. deprecated="not deprecated">
  23603. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23604. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23605. abstract="false" native="false" synchronized="false"
  23606. static="false" final="false" visibility="public"
  23607. deprecated="not deprecated">
  23608. <doc>
  23609. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  23610. @return a new direct decompressor for use by this codec]]>
  23611. </doc>
  23612. </method>
  23613. <doc>
  23614. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  23615. </doc>
  23616. </interface>
  23617. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  23618. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23619. <interface name="DirectDecompressor" abstract="true"
  23620. static="false" final="false" visibility="public"
  23621. deprecated="not deprecated">
  23622. <method name="decompress"
  23623. abstract="false" native="false" synchronized="false"
  23624. static="false" final="false" visibility="public"
  23625. deprecated="not deprecated">
  23626. <param name="src" type="java.nio.ByteBuffer"/>
  23627. <param name="dst" type="java.nio.ByteBuffer"/>
  23628. <exception name="IOException" type="java.io.IOException"/>
  23629. </method>
  23630. <doc>
  23631. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  23632. </doc>
  23633. </interface>
  23634. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  23635. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  23636. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  23637. abstract="false"
  23638. static="false" final="false" visibility="public"
  23639. deprecated="not deprecated">
  23640. <constructor name="GzipCodec"
  23641. static="false" final="false" visibility="public"
  23642. deprecated="not deprecated">
  23643. </constructor>
  23644. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23645. abstract="false" native="false" synchronized="false"
  23646. static="false" final="false" visibility="public"
  23647. deprecated="not deprecated">
  23648. <param name="out" type="java.io.OutputStream"/>
  23649. <exception name="IOException" type="java.io.IOException"/>
  23650. </method>
  23651. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  23652. abstract="false" native="false" synchronized="false"
  23653. static="false" final="false" visibility="public"
  23654. deprecated="not deprecated">
  23655. <param name="out" type="java.io.OutputStream"/>
  23656. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  23657. <exception name="IOException" type="java.io.IOException"/>
  23658. </method>
  23659. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  23660. abstract="false" native="false" synchronized="false"
  23661. static="false" final="false" visibility="public"
  23662. deprecated="not deprecated">
  23663. </method>
  23664. <method name="getCompressorType" return="java.lang.Class"
  23665. abstract="false" native="false" synchronized="false"
  23666. static="false" final="false" visibility="public"
  23667. deprecated="not deprecated">
  23668. </method>
  23669. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23670. abstract="false" native="false" synchronized="false"
  23671. static="false" final="false" visibility="public"
  23672. deprecated="not deprecated">
  23673. <param name="in" type="java.io.InputStream"/>
  23674. <exception name="IOException" type="java.io.IOException"/>
  23675. </method>
  23676. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  23677. abstract="false" native="false" synchronized="false"
  23678. static="false" final="false" visibility="public"
  23679. deprecated="not deprecated">
  23680. <param name="in" type="java.io.InputStream"/>
  23681. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23682. <exception name="IOException" type="java.io.IOException"/>
  23683. </method>
  23684. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  23685. abstract="false" native="false" synchronized="false"
  23686. static="false" final="false" visibility="public"
  23687. deprecated="not deprecated">
  23688. </method>
  23689. <method name="getDecompressorType" return="java.lang.Class"
  23690. abstract="false" native="false" synchronized="false"
  23691. static="false" final="false" visibility="public"
  23692. deprecated="not deprecated">
  23693. </method>
  23694. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  23695. abstract="false" native="false" synchronized="false"
  23696. static="false" final="false" visibility="public"
  23697. deprecated="not deprecated">
  23698. </method>
  23699. <method name="getDefaultExtension" return="java.lang.String"
  23700. abstract="false" native="false" synchronized="false"
  23701. static="false" final="false" visibility="public"
  23702. deprecated="not deprecated">
  23703. </method>
  23704. <doc>
  23705. <![CDATA[This class creates gzip compressors/decompressors.]]>
  23706. </doc>
  23707. </class>
  23708. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  23709. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23710. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  23711. abstract="true"
  23712. static="false" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  23715. static="false" final="false" visibility="public"
  23716. deprecated="not deprecated">
  23717. <exception name="IOException" type="java.io.IOException"/>
  23718. </constructor>
  23719. <method name="setStart"
  23720. abstract="false" native="false" synchronized="false"
  23721. static="false" final="false" visibility="protected"
  23722. deprecated="not deprecated">
  23723. <param name="start" type="long"/>
  23724. </method>
  23725. <method name="setEnd"
  23726. abstract="false" native="false" synchronized="false"
  23727. static="false" final="false" visibility="protected"
  23728. deprecated="not deprecated">
  23729. <param name="end" type="long"/>
  23730. </method>
  23731. <method name="getAdjustedStart" return="long"
  23732. abstract="false" native="false" synchronized="false"
  23733. static="false" final="false" visibility="public"
  23734. deprecated="not deprecated">
  23735. <doc>
  23736. <![CDATA[After calling createInputStream, the values of start or end
  23737. might change. So this method can be used to get the new value of start.
  23738. @return The changed value of start]]>
  23739. </doc>
  23740. </method>
  23741. <method name="getAdjustedEnd" return="long"
  23742. abstract="false" native="false" synchronized="false"
  23743. static="false" final="false" visibility="public"
  23744. deprecated="not deprecated">
  23745. <doc>
  23746. <![CDATA[After calling createInputStream, the values of start or end
  23747. might change. So this method can be used to get the new value of end.
  23748. @return The changed value of end]]>
  23749. </doc>
  23750. </method>
  23751. <doc>
  23752. <![CDATA[An InputStream covering a range of compressed data. The start and end
  23753. offsets requested by a client may be modified by the codec to fit block
  23754. boundaries or other algorithm-dependent requirements.]]>
  23755. </doc>
  23756. </class>
  23757. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  23758. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23759. <interface name="SplittableCompressionCodec" abstract="true"
  23760. static="false" final="false" visibility="public"
  23761. deprecated="not deprecated">
  23762. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  23763. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  23764. abstract="false" native="false" synchronized="false"
  23765. static="false" final="false" visibility="public"
  23766. deprecated="not deprecated">
  23767. <param name="seekableIn" type="java.io.InputStream"/>
  23768. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  23769. <param name="start" type="long"/>
  23770. <param name="end" type="long"/>
  23771. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  23772. <exception name="IOException" type="java.io.IOException"/>
  23773. <doc>
  23774. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  23775. the codecs wants the ability to work with the underlying stream positions.
  23776. @param seekableIn The seekable input stream (seeks in compressed data)
  23777. @param start The start offset into the compressed stream. May be changed
  23778. by the underlying codec.
  23779. @param end The end offset into the compressed stream. May be changed by
  23780. the underlying codec.
  23781. @param readMode Controls whether stream position is reported continuously
  23782. from the compressed stream only only at block boundaries.
  23783. @return a stream to read uncompressed bytes from]]>
  23784. </doc>
  23785. </method>
  23786. <doc>
  23787. <![CDATA[This interface is meant to be implemented by those compression codecs
  23788. which are capable to compress / de-compress a stream starting at any
  23789. arbitrary position.
  23790. Especially the process of de-compressing a stream starting at some arbitrary
  23791. position is challenging. Most of the codecs are only able to successfully
  23792. de-compress a stream, if they start from the very beginning till the end.
  23793. One of the reasons is the stored state at the beginning of the stream which
  23794. is crucial for de-compression.
  23795. Yet there are few codecs which do not save the whole state at the beginning
  23796. of the stream and hence can be used to de-compress stream starting at any
  23797. arbitrary points. This interface is meant to be used by such codecs. Such
  23798. codecs are highly valuable, especially in the context of Hadoop, because
  23799. an input compressed file can be split and hence can be worked on by multiple
  23800. machines in parallel.]]>
  23801. </doc>
  23802. </interface>
  23803. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  23804. </package>
  23805. <package name="org.apache.hadoop.io.file.tfile">
  23806. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23807. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  23808. abstract="false"
  23809. static="false" final="false" visibility="public"
  23810. deprecated="not deprecated">
  23811. <doc>
  23812. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  23813. </doc>
  23814. </class>
  23815. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  23816. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23817. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  23818. abstract="false"
  23819. static="false" final="false" visibility="public"
  23820. deprecated="not deprecated">
  23821. <doc>
  23822. <![CDATA[Exception - No such Meta Block with the given name.]]>
  23823. </doc>
  23824. </class>
  23825. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  23826. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23827. <interface name="RawComparable" abstract="true"
  23828. static="false" final="false" visibility="public"
  23829. deprecated="not deprecated">
  23830. <method name="buffer" return="byte[]"
  23831. abstract="false" native="false" synchronized="false"
  23832. static="false" final="false" visibility="public"
  23833. deprecated="not deprecated">
  23834. <doc>
  23835. <![CDATA[Get the underlying byte array.
  23836. @return The underlying byte array.]]>
  23837. </doc>
  23838. </method>
  23839. <method name="offset" return="int"
  23840. abstract="false" native="false" synchronized="false"
  23841. static="false" final="false" visibility="public"
  23842. deprecated="not deprecated">
  23843. <doc>
  23844. <![CDATA[Get the offset of the first byte in the byte array.
  23845. @return The offset of the first byte in the byte array.]]>
  23846. </doc>
  23847. </method>
  23848. <method name="size" return="int"
  23849. abstract="false" native="false" synchronized="false"
  23850. static="false" final="false" visibility="public"
  23851. deprecated="not deprecated">
  23852. <doc>
  23853. <![CDATA[Get the size of the byte range in the byte array.
  23854. @return The size of the byte range in the byte array.]]>
  23855. </doc>
  23856. </method>
  23857. <doc>
  23858. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  23859. This is useful in places where we need a single object reference to specify a
  23860. range of bytes in a byte array, such as {@link Comparable} or
  23861. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  23862. The actual comparison among RawComparable's requires an external
  23863. RawComparator and it is applications' responsibility to ensure two
  23864. RawComparable are supposed to be semantically comparable with the same
  23865. RawComparator.]]>
  23866. </doc>
  23867. </interface>
  23868. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  23869. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  23870. <class name="TFile" extends="java.lang.Object"
  23871. abstract="false"
  23872. static="false" final="false" visibility="public"
  23873. deprecated="not deprecated">
  23874. <method name="makeComparator" return="java.util.Comparator"
  23875. abstract="false" native="false" synchronized="false"
  23876. static="true" final="false" visibility="public"
  23877. deprecated="not deprecated">
  23878. <param name="name" type="java.lang.String"/>
  23879. <doc>
  23880. <![CDATA[Make a raw comparator from a string name.
  23881. @param name
  23882. Comparator name
  23883. @return A RawComparable comparator.]]>
  23884. </doc>
  23885. </method>
  23886. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  23887. abstract="false" native="false" synchronized="false"
  23888. static="true" final="false" visibility="public"
  23889. deprecated="not deprecated">
  23890. <doc>
  23891. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  23892. TFile.Writer.
  23893. @return Array of strings, each represents a supported compression
  23894. algorithm. Currently, the following compression algorithms are
  23895. supported.
  23896. <ul>
  23897. <li>"none" - No compression.
  23898. <li>"lzo" - LZO compression.
  23899. <li>"gz" - GZIP compression.
  23900. </ul>]]>
  23901. </doc>
  23902. </method>
  23903. <method name="main"
  23904. abstract="false" native="false" synchronized="false"
  23905. static="true" final="false" visibility="public"
  23906. deprecated="not deprecated">
  23907. <param name="args" type="java.lang.String[]"/>
  23908. <doc>
  23909. <![CDATA[Dumping the TFile information.
  23910. @param args
  23911. A list of TFile paths.]]>
  23912. </doc>
  23913. </method>
  23914. <field name="COMPRESSION_GZ" type="java.lang.String"
  23915. transient="false" volatile="false"
  23916. static="true" final="true" visibility="public"
  23917. deprecated="not deprecated">
  23918. <doc>
  23919. <![CDATA[compression: gzip]]>
  23920. </doc>
  23921. </field>
  23922. <field name="COMPRESSION_LZO" type="java.lang.String"
  23923. transient="false" volatile="false"
  23924. static="true" final="true" visibility="public"
  23925. deprecated="not deprecated">
  23926. <doc>
  23927. <![CDATA[compression: lzo]]>
  23928. </doc>
  23929. </field>
  23930. <field name="COMPRESSION_NONE" type="java.lang.String"
  23931. transient="false" volatile="false"
  23932. static="true" final="true" visibility="public"
  23933. deprecated="not deprecated">
  23934. <doc>
  23935. <![CDATA[compression: none]]>
  23936. </doc>
  23937. </field>
  23938. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  23939. transient="false" volatile="false"
  23940. static="true" final="true" visibility="public"
  23941. deprecated="not deprecated">
  23942. <doc>
  23943. <![CDATA[comparator: memcmp]]>
  23944. </doc>
  23945. </field>
  23946. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  23947. transient="false" volatile="false"
  23948. static="true" final="true" visibility="public"
  23949. deprecated="not deprecated">
  23950. <doc>
  23951. <![CDATA[comparator prefix: java class]]>
  23952. </doc>
  23953. </field>
  23954. <doc>
  23955. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  23956. bytes. Keys are restricted to 64KB, value length is not restricted
  23957. (practically limited to the available disk storage). TFile further provides
  23958. the following features:
  23959. <ul>
  23960. <li>Block Compression.
  23961. <li>Named meta data blocks.
  23962. <li>Sorted or unsorted keys.
  23963. <li>Seek by key or by file offset.
  23964. </ul>
  23965. The memory footprint of a TFile includes the following:
  23966. <ul>
  23967. <li>Some constant overhead of reading or writing a compressed block.
  23968. <ul>
  23969. <li>Each compressed block requires one compression/decompression codec for
  23970. I/O.
  23971. <li>Temporary space to buffer the key.
  23972. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  23973. chunk encoded, so that we buffer at most one chunk of user data. By default,
  23974. the chunk buffer is 1MB. Reading chunked value does not require additional
  23975. memory.
  23976. </ul>
  23977. <li>TFile index, which is proportional to the total number of Data Blocks.
  23978. The total amount of memory needed to hold the index can be estimated as
  23979. (56+AvgKeySize)*NumBlocks.
  23980. <li>MetaBlock index, which is proportional to the total number of Meta
  23981. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  23982. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  23983. </ul>
  23984. <p>
  23985. The behavior of TFile can be customized by the following variables through
  23986. Configuration:
  23987. <ul>
  23988. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  23989. to 1MB. Values of the length less than the chunk size is guaranteed to have
  23990. known value length in read time (See
  23991. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  23992. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  23993. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  23994. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  23995. FSDataInputStream. Integer (in bytes). Default to 256KB.
  23996. </ul>
  23997. <p>
  23998. Suggestions on performance optimization.
  23999. <ul>
  24000. <li>Minimum block size. We recommend a setting of minimum block size between
  24001. 256KB to 1MB for general usage. Larger block size is preferred if files are
  24002. primarily for sequential access. However, it would lead to inefficient random
  24003. access (because there are more data to decompress). Smaller blocks are good
  24004. for random access, but require more memory to hold the block index, and may
  24005. be slower to create (because we must flush the compressor stream at the
  24006. conclusion of each data block, which leads to an FS I/O flush). Further, due
  24007. to the internal caching in Compression codec, the smallest possible block
  24008. size would be around 20KB-30KB.
  24009. <li>The current implementation does not offer true multi-threading for
  24010. reading. The implementation uses FSDataInputStream seek()+read(), which is
  24011. shown to be much faster than positioned-read call in single thread mode.
  24012. However, it also means that if multiple threads attempt to access the same
  24013. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  24014. sequentially even if they access different DFS blocks.
  24015. <li>Compression codec. Use "none" if the data is not very compressable (by
  24016. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  24017. as the starting point for experimenting. "gz" overs slightly better
  24018. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  24019. decompress, comparing to "lzo".
  24020. <li>File system buffering, if the underlying FSDataInputStream and
  24021. FSDataOutputStream is already adequately buffered; or if applications
  24022. reads/writes keys and values in large buffers, we can reduce the sizes of
  24023. input/output buffering in TFile layer by setting the configuration parameters
  24024. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  24025. </ul>
  24026. Some design rationale behind TFile can be found at <a
  24027. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  24028. </doc>
  24029. </class>
  24030. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  24031. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  24032. <class name="Utils" extends="java.lang.Object"
  24033. abstract="false"
  24034. static="false" final="true" visibility="public"
  24035. deprecated="not deprecated">
  24036. <method name="writeVInt"
  24037. abstract="false" native="false" synchronized="false"
  24038. static="true" final="false" visibility="public"
  24039. deprecated="not deprecated">
  24040. <param name="out" type="java.io.DataOutput"/>
  24041. <param name="n" type="int"/>
  24042. <exception name="IOException" type="java.io.IOException"/>
  24043. <doc>
  24044. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  24045. <code>Utils#writeVLong(out, n)</code>.
  24046. @param out
  24047. output stream
  24048. @param n
  24049. The integer to be encoded
  24050. @throws IOException
  24051. @see Utils#writeVLong(DataOutput, long)]]>
  24052. </doc>
  24053. </method>
  24054. <method name="writeVLong"
  24055. abstract="false" native="false" synchronized="false"
  24056. static="true" final="false" visibility="public"
  24057. deprecated="not deprecated">
  24058. <param name="out" type="java.io.DataOutput"/>
  24059. <param name="n" type="long"/>
  24060. <exception name="IOException" type="java.io.IOException"/>
  24061. <doc>
  24062. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  24063. <ul>
  24064. <li>if n in [-32, 127): encode in one byte with the actual value.
  24065. Otherwise,
  24066. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  24067. byte[1]=n&0xff. Otherwise,
  24068. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  24069. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  24070. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  24071. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  24072. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  24073. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  24074. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  24075. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  24076. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  24077. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  24078. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  24079. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  24080. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  24081. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  24082. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  24083. byte[7]=n&0xff;
  24084. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  24085. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  24086. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  24087. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  24088. </ul>
  24089. @param out
  24090. output stream
  24091. @param n
  24092. the integer number
  24093. @throws IOException]]>
  24094. </doc>
  24095. </method>
  24096. <method name="readVInt" return="int"
  24097. abstract="false" native="false" synchronized="false"
  24098. static="true" final="false" visibility="public"
  24099. deprecated="not deprecated">
  24100. <param name="in" type="java.io.DataInput"/>
  24101. <exception name="IOException" type="java.io.IOException"/>
  24102. <doc>
  24103. <![CDATA[Decoding the variable-length integer. Synonymous to
  24104. <code>(int)Utils#readVLong(in)</code>.
  24105. @param in
  24106. input stream
  24107. @return the decoded integer
  24108. @throws IOException
  24109. @see Utils#readVLong(DataInput)]]>
  24110. </doc>
  24111. </method>
  24112. <method name="readVLong" return="long"
  24113. abstract="false" native="false" synchronized="false"
  24114. static="true" final="false" visibility="public"
  24115. deprecated="not deprecated">
  24116. <param name="in" type="java.io.DataInput"/>
  24117. <exception name="IOException" type="java.io.IOException"/>
  24118. <doc>
  24119. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  24120. is FB, and the following bytes are NB[*].
  24121. <ul>
  24122. <li>if (FB >= -32), return (long)FB;
  24123. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  24124. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  24125. NB[1]&0xff;
  24126. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  24127. (NB[1]&0xff)<<8 + NB[2]&0xff;
  24128. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  24129. big-endian integer.
  24130. @param in
  24131. input stream
  24132. @return the decoded long integer.
  24133. @throws IOException]]>
  24134. </doc>
  24135. </method>
  24136. <method name="writeString"
  24137. abstract="false" native="false" synchronized="false"
  24138. static="true" final="false" visibility="public"
  24139. deprecated="not deprecated">
  24140. <param name="out" type="java.io.DataOutput"/>
  24141. <param name="s" type="java.lang.String"/>
  24142. <exception name="IOException" type="java.io.IOException"/>
  24143. <doc>
  24144. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  24145. @param out
  24146. @param s
  24147. @throws IOException]]>
  24148. </doc>
  24149. </method>
  24150. <method name="readString" return="java.lang.String"
  24151. abstract="false" native="false" synchronized="false"
  24152. static="true" final="false" visibility="public"
  24153. deprecated="not deprecated">
  24154. <param name="in" type="java.io.DataInput"/>
  24155. <exception name="IOException" type="java.io.IOException"/>
  24156. <doc>
  24157. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  24158. @param in
  24159. The input stream.
  24160. @return The string
  24161. @throws IOException]]>
  24162. </doc>
  24163. </method>
  24164. <method name="lowerBound" return="int"
  24165. abstract="false" native="false" synchronized="false"
  24166. static="true" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. <param name="list" type="java.util.List"/>
  24169. <param name="key" type="T"/>
  24170. <param name="cmp" type="java.util.Comparator"/>
  24171. <doc>
  24172. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  24173. that compares greater than or equal to key.
  24174. @param <T>
  24175. Type of the input key.
  24176. @param list
  24177. The list
  24178. @param key
  24179. The input key.
  24180. @param cmp
  24181. Comparator for the key.
  24182. @return The index to the desired element if it exists; or list.size()
  24183. otherwise.]]>
  24184. </doc>
  24185. </method>
  24186. <method name="upperBound" return="int"
  24187. abstract="false" native="false" synchronized="false"
  24188. static="true" final="false" visibility="public"
  24189. deprecated="not deprecated">
  24190. <param name="list" type="java.util.List"/>
  24191. <param name="key" type="T"/>
  24192. <param name="cmp" type="java.util.Comparator"/>
  24193. <doc>
  24194. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  24195. that compares greater than the input key.
  24196. @param <T>
  24197. Type of the input key.
  24198. @param list
  24199. The list
  24200. @param key
  24201. The input key.
  24202. @param cmp
  24203. Comparator for the key.
  24204. @return The index to the desired element if it exists; or list.size()
  24205. otherwise.]]>
  24206. </doc>
  24207. </method>
  24208. <method name="lowerBound" return="int"
  24209. abstract="false" native="false" synchronized="false"
  24210. static="true" final="false" visibility="public"
  24211. deprecated="not deprecated">
  24212. <param name="list" type="java.util.List"/>
  24213. <param name="key" type="T"/>
  24214. <doc>
  24215. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  24216. that compares greater than or equal to key.
  24217. @param <T>
  24218. Type of the input key.
  24219. @param list
  24220. The list
  24221. @param key
  24222. The input key.
  24223. @return The index to the desired element if it exists; or list.size()
  24224. otherwise.]]>
  24225. </doc>
  24226. </method>
  24227. <method name="upperBound" return="int"
  24228. abstract="false" native="false" synchronized="false"
  24229. static="true" final="false" visibility="public"
  24230. deprecated="not deprecated">
  24231. <param name="list" type="java.util.List"/>
  24232. <param name="key" type="T"/>
  24233. <doc>
  24234. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  24235. that compares greater than the input key.
  24236. @param <T>
  24237. Type of the input key.
  24238. @param list
  24239. The list
  24240. @param key
  24241. The input key.
  24242. @return The index to the desired element if it exists; or list.size()
  24243. otherwise.]]>
  24244. </doc>
  24245. </method>
  24246. <doc>
  24247. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  24248. </doc>
  24249. </class>
  24250. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  24251. </package>
  24252. <package name="org.apache.hadoop.io.serializer">
  24253. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  24254. <class name="JavaSerialization" extends="java.lang.Object"
  24255. abstract="false"
  24256. static="false" final="false" visibility="public"
  24257. deprecated="not deprecated">
  24258. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24259. <constructor name="JavaSerialization"
  24260. static="false" final="false" visibility="public"
  24261. deprecated="not deprecated">
  24262. </constructor>
  24263. <doc>
  24264. <![CDATA[<p>
  24265. An experimental {@link Serialization} for Java {@link Serializable} classes.
  24266. </p>
  24267. @see JavaSerializationComparator]]>
  24268. </doc>
  24269. </class>
  24270. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  24271. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  24272. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  24273. abstract="false"
  24274. static="false" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <constructor name="JavaSerializationComparator"
  24277. static="false" final="false" visibility="public"
  24278. deprecated="not deprecated">
  24279. <exception name="IOException" type="java.io.IOException"/>
  24280. </constructor>
  24281. <doc>
  24282. <![CDATA[<p>
  24283. A {@link RawComparator} that uses a {@link JavaSerialization}
  24284. {@link Deserializer} to deserialize objects that are then compared via
  24285. their {@link Comparable} interfaces.
  24286. </p>
  24287. @param <T>
  24288. @see JavaSerialization]]>
  24289. </doc>
  24290. </class>
  24291. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  24292. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  24293. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  24294. abstract="false"
  24295. static="false" final="false" visibility="public"
  24296. deprecated="not deprecated">
  24297. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24298. <constructor name="WritableSerialization"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. </constructor>
  24302. <doc>
  24303. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  24304. {@link Writable#write(java.io.DataOutput)} and
  24305. {@link Writable#readFields(java.io.DataInput)}.]]>
  24306. </doc>
  24307. </class>
  24308. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  24309. <doc>
  24310. <![CDATA[<p>
  24311. This package provides a mechanism for using different serialization frameworks
  24312. in Hadoop. The property "io.serializations" defines a list of
  24313. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  24314. {@link org.apache.hadoop.io.serializer.Serializer}s and
  24315. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  24316. </p>
  24317. <p>
  24318. To add a new serialization framework write an implementation of
  24319. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  24320. "io.serializations" property.
  24321. </p>]]>
  24322. </doc>
  24323. </package>
  24324. <package name="org.apache.hadoop.io.serializer.avro">
  24325. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  24326. <interface name="AvroReflectSerializable" abstract="true"
  24327. static="false" final="false" visibility="public"
  24328. deprecated="not deprecated">
  24329. <doc>
  24330. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  24331. this interface can be serialized/deserialized using
  24332. {@link AvroReflectSerialization}.]]>
  24333. </doc>
  24334. </interface>
  24335. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  24336. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  24337. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  24338. abstract="false"
  24339. static="false" final="false" visibility="public"
  24340. deprecated="not deprecated">
  24341. <constructor name="AvroReflectSerialization"
  24342. static="false" final="false" visibility="public"
  24343. deprecated="not deprecated">
  24344. </constructor>
  24345. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  24346. transient="false" volatile="false"
  24347. static="true" final="true" visibility="public"
  24348. deprecated="not deprecated">
  24349. <doc>
  24350. <![CDATA[Key to configure packages that contain classes to be serialized and
  24351. deserialized using this class. Multiple packages can be specified using
  24352. comma-separated list.]]>
  24353. </doc>
  24354. </field>
  24355. <doc>
  24356. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  24357. serialization, it must either be in the package list configured via
  24358. <code>avro.reflect.pkgs</code> or implement
  24359. {@link AvroReflectSerializable} interface.]]>
  24360. </doc>
  24361. </class>
  24362. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  24363. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  24364. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  24365. abstract="true"
  24366. static="false" final="false" visibility="public"
  24367. deprecated="not deprecated">
  24368. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  24369. <constructor name="AvroSerialization"
  24370. static="false" final="false" visibility="public"
  24371. deprecated="not deprecated">
  24372. </constructor>
  24373. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  24374. transient="false" volatile="false"
  24375. static="true" final="true" visibility="public"
  24376. deprecated="not deprecated">
  24377. </field>
  24378. <doc>
  24379. <![CDATA[Base class for providing serialization to Avro types.]]>
  24380. </doc>
  24381. </class>
  24382. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  24383. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  24384. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  24385. abstract="false"
  24386. static="false" final="false" visibility="public"
  24387. deprecated="not deprecated">
  24388. <constructor name="AvroSpecificSerialization"
  24389. static="false" final="false" visibility="public"
  24390. deprecated="not deprecated">
  24391. </constructor>
  24392. <doc>
  24393. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  24394. for classes generated by Avro's 'specific' compiler.]]>
  24395. </doc>
  24396. </class>
  24397. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  24398. <doc>
  24399. <![CDATA[<p>
  24400. This package provides Avro serialization in Hadoop. This can be used to
  24401. serialize/deserialize Avro types in Hadoop.
  24402. </p>
  24403. <p>
  24404. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  24405. serialization of classes generated by Avro's 'specific' compiler.
  24406. </p>
  24407. <p>
  24408. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  24409. other classes.
  24410. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  24411. any class which is either in the package list configured via
  24412. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  24413. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  24414. interface.
  24415. </p>]]>
  24416. </doc>
  24417. </package>
  24418. <package name="org.apache.hadoop.ipc.protocolPB">
  24419. </package>
  24420. <package name="org.apache.hadoop.log">
  24421. </package>
  24422. <package name="org.apache.hadoop.log.metrics">
  24423. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  24424. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  24425. abstract="false"
  24426. static="false" final="false" visibility="public"
  24427. deprecated="not deprecated">
  24428. <constructor name="EventCounter"
  24429. static="false" final="false" visibility="public"
  24430. deprecated="not deprecated">
  24431. </constructor>
  24432. <method name="append"
  24433. abstract="false" native="false" synchronized="false"
  24434. static="false" final="false" visibility="public"
  24435. deprecated="not deprecated">
  24436. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  24437. </method>
  24438. <method name="close"
  24439. abstract="false" native="false" synchronized="false"
  24440. static="false" final="false" visibility="public"
  24441. deprecated="not deprecated">
  24442. </method>
  24443. <method name="requiresLayout" return="boolean"
  24444. abstract="false" native="false" synchronized="false"
  24445. static="false" final="false" visibility="public"
  24446. deprecated="not deprecated">
  24447. </method>
  24448. <doc>
  24449. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24450. fatal, error and warn. The class name is used in log4j.properties]]>
  24451. </doc>
  24452. </class>
  24453. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  24454. </package>
  24455. <package name="org.apache.hadoop.metrics">
  24456. <doc>
  24457. <![CDATA[This package defines an API for reporting performance metric information.
  24458. <p/>
  24459. The API is abstract so that it can be implemented on top of
  24460. a variety of metrics client libraries. The choice of
  24461. client library is a configuration option, and different
  24462. modules within the same application can use
  24463. different metrics implementation libraries.
  24464. <p/>
  24465. Sub-packages:
  24466. <dl>
  24467. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  24468. <dd>The abstract Server Provider Interface package. Those wishing to
  24469. integrate the metrics API with a particular metrics client library should
  24470. extend this package.</dd>
  24471. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  24472. <dd>An implementation package which writes the metric data to
  24473. a file, or sends it to the standard output stream.</dd>
  24474. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  24475. <dd>An implementation package which sends metric data to
  24476. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  24477. </dl>
  24478. <h3>Introduction to the Metrics API</h3>
  24479. Here is a simple example of how to use this package to report a single
  24480. metric value:
  24481. <pre>
  24482. private ContextFactory contextFactory = ContextFactory.getFactory();
  24483. void reportMyMetric(float myMetric) {
  24484. MetricsContext myContext = contextFactory.getContext("myContext");
  24485. MetricsRecord myRecord = myContext.getRecord("myRecord");
  24486. myRecord.setMetric("myMetric", myMetric);
  24487. myRecord.update();
  24488. }
  24489. </pre>
  24490. In this example there are three names:
  24491. <dl>
  24492. <dt><i>myContext</i></dt>
  24493. <dd>The context name will typically identify either the application, or else a
  24494. module within an application or library.</dd>
  24495. <dt><i>myRecord</i></dt>
  24496. <dd>The record name generally identifies some entity for which a set of
  24497. metrics are to be reported. For example, you could have a record named
  24498. "cacheStats" for reporting a number of statistics relating to the usage of
  24499. some cache in your application.</dd>
  24500. <dt><i>myMetric</i></dt>
  24501. <dd>This identifies a particular metric. For example, you might have metrics
  24502. named "cache_hits" and "cache_misses".
  24503. </dd>
  24504. </dl>
  24505. <h3>Tags</h3>
  24506. In some cases it is useful to have multiple records with the same name. For
  24507. example, suppose that you want to report statistics about each disk on a computer.
  24508. In this case, the record name would be something like "diskStats", but you also
  24509. need to identify the disk which is done by adding a <i>tag</i> to the record.
  24510. The code could look something like this:
  24511. <pre>
  24512. private MetricsRecord diskStats =
  24513. contextFactory.getContext("myContext").getRecord("diskStats");
  24514. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  24515. diskStats.setTag("diskName", diskName);
  24516. diskStats.setMetric("diskBusy", diskBusy);
  24517. diskStats.setMetric("diskUsed", diskUsed);
  24518. diskStats.update();
  24519. }
  24520. </pre>
  24521. <h3>Buffering and Callbacks</h3>
  24522. Data is not sent immediately to the metrics system when
  24523. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  24524. internal table, and the contents of the table are sent periodically.
  24525. This can be important for two reasons:
  24526. <ol>
  24527. <li>It means that a programmer is free to put calls to this API in an
  24528. inner loop, since updates can be very frequent without slowing down
  24529. the application significantly.</li>
  24530. <li>Some implementations can gain efficiency by combining many metrics
  24531. into a single UDP message.</li>
  24532. </ol>
  24533. The API provides a timer-based callback via the
  24534. <code>registerUpdater()</code> method. The benefit of this
  24535. versus using <code>java.util.Timer</code> is that the callbacks will be done
  24536. immediately before sending the data, making the data as current as possible.
  24537. <h3>Configuration</h3>
  24538. It is possible to programmatically examine and modify configuration data
  24539. before creating a context, like this:
  24540. <pre>
  24541. ContextFactory factory = ContextFactory.getFactory();
  24542. ... examine and/or modify factory attributes ...
  24543. MetricsContext context = factory.getContext("myContext");
  24544. </pre>
  24545. The factory attributes can be examined and modified using the following
  24546. <code>ContextFactory</code>methods:
  24547. <ul>
  24548. <li><code>Object getAttribute(String attributeName)</code></li>
  24549. <li><code>String[] getAttributeNames()</code></li>
  24550. <li><code>void setAttribute(String name, Object value)</code></li>
  24551. <li><code>void removeAttribute(attributeName)</code></li>
  24552. </ul>
  24553. <p/>
  24554. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  24555. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  24556. on the class path.
  24557. <p/>
  24558. A factory attribute named:
  24559. <pre>
  24560. <i>contextName</i>.class
  24561. </pre>
  24562. should have as its value the fully qualified name of the class to be
  24563. instantiated by a call of the <code>CodeFactory</code> method
  24564. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  24565. specified, the default is to instantiate
  24566. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  24567. <p/>
  24568. Other factory attributes are specific to a particular implementation of this
  24569. API and are documented elsewhere. For example, configuration attributes for
  24570. the file and Ganglia implementations can be found in the javadoc for
  24571. their respective packages.]]>
  24572. </doc>
  24573. </package>
  24574. <package name="org.apache.hadoop.metrics.ganglia">
  24575. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24576. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24577. abstract="false"
  24578. static="false" final="false" visibility="public"
  24579. deprecated="Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  24580. instead.">
  24581. <constructor name="GangliaContext"
  24582. static="false" final="false" visibility="public"
  24583. deprecated="not deprecated">
  24584. <doc>
  24585. <![CDATA[Creates a new instance of GangliaContext]]>
  24586. </doc>
  24587. </constructor>
  24588. <method name="close"
  24589. abstract="false" native="false" synchronized="false"
  24590. static="false" final="false" visibility="public"
  24591. deprecated="not deprecated">
  24592. <doc>
  24593. <![CDATA[method to close the datagram socket]]>
  24594. </doc>
  24595. </method>
  24596. <method name="emitMetric"
  24597. abstract="false" native="false" synchronized="false"
  24598. static="false" final="false" visibility="protected"
  24599. deprecated="not deprecated">
  24600. <param name="name" type="java.lang.String"/>
  24601. <param name="type" type="java.lang.String"/>
  24602. <param name="value" type="java.lang.String"/>
  24603. <exception name="IOException" type="java.io.IOException"/>
  24604. </method>
  24605. <method name="getUnits" return="java.lang.String"
  24606. abstract="false" native="false" synchronized="false"
  24607. static="false" final="false" visibility="protected"
  24608. deprecated="not deprecated">
  24609. <param name="metricName" type="java.lang.String"/>
  24610. </method>
  24611. <method name="getSlope" return="int"
  24612. abstract="false" native="false" synchronized="false"
  24613. static="false" final="false" visibility="protected"
  24614. deprecated="not deprecated">
  24615. <param name="metricName" type="java.lang.String"/>
  24616. </method>
  24617. <method name="getTmax" return="int"
  24618. abstract="false" native="false" synchronized="false"
  24619. static="false" final="false" visibility="protected"
  24620. deprecated="not deprecated">
  24621. <param name="metricName" type="java.lang.String"/>
  24622. </method>
  24623. <method name="getDmax" return="int"
  24624. abstract="false" native="false" synchronized="false"
  24625. static="false" final="false" visibility="protected"
  24626. deprecated="not deprecated">
  24627. <param name="metricName" type="java.lang.String"/>
  24628. </method>
  24629. <method name="xdr_string"
  24630. abstract="false" native="false" synchronized="false"
  24631. static="false" final="false" visibility="protected"
  24632. deprecated="not deprecated">
  24633. <param name="s" type="java.lang.String"/>
  24634. <doc>
  24635. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24636. as an int, followed by the bytes of the string, padded if necessary to
  24637. a multiple of 4.]]>
  24638. </doc>
  24639. </method>
  24640. <method name="xdr_int"
  24641. abstract="false" native="false" synchronized="false"
  24642. static="false" final="false" visibility="protected"
  24643. deprecated="not deprecated">
  24644. <param name="i" type="int"/>
  24645. <doc>
  24646. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  24647. </doc>
  24648. </method>
  24649. <field name="buffer" type="byte[]"
  24650. transient="false" volatile="false"
  24651. static="false" final="false" visibility="protected"
  24652. deprecated="not deprecated">
  24653. </field>
  24654. <field name="offset" type="int"
  24655. transient="false" volatile="false"
  24656. static="false" final="false" visibility="protected"
  24657. deprecated="not deprecated">
  24658. </field>
  24659. <field name="metricsServers" type="java.util.List"
  24660. transient="false" volatile="false"
  24661. static="false" final="false" visibility="protected"
  24662. deprecated="not deprecated">
  24663. </field>
  24664. <field name="datagramSocket" type="java.net.DatagramSocket"
  24665. transient="false" volatile="false"
  24666. static="false" final="false" visibility="protected"
  24667. deprecated="not deprecated">
  24668. </field>
  24669. <doc>
  24670. <![CDATA[Context for sending metrics to Ganglia.
  24671. @deprecated Use {@link org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30}
  24672. instead.]]>
  24673. </doc>
  24674. </class>
  24675. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24676. <doc>
  24677. <![CDATA[<!--
  24678. * Licensed to the Apache Software Foundation (ASF) under one
  24679. * or more contributor license agreements. See the NOTICE file
  24680. * distributed with this work for additional information
  24681. * regarding copyright ownership. The ASF licenses this file
  24682. * to you under the Apache License, Version 2.0 (the
  24683. * "License"); you may not use this file except in compliance
  24684. * with the License. You may obtain a copy of the License at
  24685. *
  24686. * http://www.apache.org/licenses/LICENSE-2.0
  24687. *
  24688. * Unless required by applicable law or agreed to in writing, software
  24689. * distributed under the License is distributed on an "AS IS" BASIS,
  24690. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  24691. * See the License for the specific language governing permissions and
  24692. * limitations under the License.
  24693. -->
  24694. Implementation of the metrics package that sends metric data to
  24695. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  24696. Programmers should not normally need to use this package directly. Instead
  24697. they should use org.hadoop.metrics.
  24698. <p/>
  24699. These are the implementation specific factory attributes
  24700. (See ContextFactory.getFactory()):
  24701. <dl>
  24702. <dt><i>contextName</i>.servers</dt>
  24703. <dd>Space and/or comma separated sequence of servers to which UDP
  24704. messages should be sent.</dd>
  24705. <dt><i>contextName</i>.period</dt>
  24706. <dd>The period in seconds on which the metric data is sent to the
  24707. server(s).</dd>
  24708. <dt><i>contextName</i>.multicast</dt>
  24709. <dd>Enable multicast for Ganglia</dd>
  24710. <dt><i>contextName</i>.multicast.ttl</dt>
  24711. <dd>TTL for multicast packets</dd>
  24712. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  24713. <dd>The units for the specified metric in the specified record.</dd>
  24714. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  24715. <dd>The slope for the specified metric in the specified record.</dd>
  24716. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  24717. <dd>The tmax for the specified metric in the specified record.</dd>
  24718. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  24719. <dd>The dmax for the specified metric in the specified record.</dd>
  24720. </dl>]]>
  24721. </doc>
  24722. </package>
  24723. <package name="org.apache.hadoop.metrics.spi">
  24724. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24725. <class name="AbstractMetricsContext" extends="java.lang.Object"
  24726. abstract="true"
  24727. static="false" final="false" visibility="public"
  24728. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  24729. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  24730. <constructor name="AbstractMetricsContext"
  24731. static="false" final="false" visibility="protected"
  24732. deprecated="not deprecated">
  24733. <doc>
  24734. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  24735. </doc>
  24736. </constructor>
  24737. <method name="init"
  24738. abstract="false" native="false" synchronized="false"
  24739. static="false" final="false" visibility="public"
  24740. deprecated="not deprecated">
  24741. <param name="contextName" type="java.lang.String"/>
  24742. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24743. <doc>
  24744. <![CDATA[Initializes the context.]]>
  24745. </doc>
  24746. </method>
  24747. <method name="getAttribute" return="java.lang.String"
  24748. abstract="false" native="false" synchronized="false"
  24749. static="false" final="false" visibility="protected"
  24750. deprecated="not deprecated">
  24751. <param name="attributeName" type="java.lang.String"/>
  24752. <doc>
  24753. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  24754. </doc>
  24755. </method>
  24756. <method name="getAttributeTable" return="java.util.Map"
  24757. abstract="false" native="false" synchronized="false"
  24758. static="false" final="false" visibility="protected"
  24759. deprecated="not deprecated">
  24760. <param name="tableName" type="java.lang.String"/>
  24761. <doc>
  24762. <![CDATA[Returns an attribute-value map derived from the factory attributes
  24763. by finding all factory attributes that begin with
  24764. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  24765. those attributes with the contextName and tableName stripped off.]]>
  24766. </doc>
  24767. </method>
  24768. <method name="getContextName" return="java.lang.String"
  24769. abstract="false" native="false" synchronized="false"
  24770. static="false" final="false" visibility="public"
  24771. deprecated="not deprecated">
  24772. <doc>
  24773. <![CDATA[Returns the context name.]]>
  24774. </doc>
  24775. </method>
  24776. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24777. abstract="false" native="false" synchronized="false"
  24778. static="false" final="false" visibility="public"
  24779. deprecated="not deprecated">
  24780. <doc>
  24781. <![CDATA[Returns the factory by which this context was created.]]>
  24782. </doc>
  24783. </method>
  24784. <method name="startMonitoring"
  24785. abstract="false" native="false" synchronized="true"
  24786. static="false" final="false" visibility="public"
  24787. deprecated="not deprecated">
  24788. <exception name="IOException" type="java.io.IOException"/>
  24789. <doc>
  24790. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  24791. </doc>
  24792. </method>
  24793. <method name="stopMonitoring"
  24794. abstract="false" native="false" synchronized="true"
  24795. static="false" final="false" visibility="public"
  24796. deprecated="not deprecated">
  24797. <doc>
  24798. <![CDATA[Stops monitoring. This does not free buffered data.
  24799. @see #close()]]>
  24800. </doc>
  24801. </method>
  24802. <method name="isMonitoring" return="boolean"
  24803. abstract="false" native="false" synchronized="false"
  24804. static="false" final="false" visibility="public"
  24805. deprecated="not deprecated">
  24806. <doc>
  24807. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24808. </doc>
  24809. </method>
  24810. <method name="close"
  24811. abstract="false" native="false" synchronized="true"
  24812. static="false" final="false" visibility="public"
  24813. deprecated="not deprecated">
  24814. <doc>
  24815. <![CDATA[Stops monitoring and frees buffered data, returning this
  24816. object to its initial state.]]>
  24817. </doc>
  24818. </method>
  24819. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24820. abstract="false" native="false" synchronized="true"
  24821. static="false" final="true" visibility="public"
  24822. deprecated="not deprecated">
  24823. <param name="recordName" type="java.lang.String"/>
  24824. <doc>
  24825. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  24826. Throws an exception if the metrics implementation is configured with a fixed
  24827. set of record names and <code>recordName</code> is not in that set.
  24828. @param recordName the name of the record
  24829. @throws MetricsException if recordName conflicts with configuration data]]>
  24830. </doc>
  24831. </method>
  24832. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24833. abstract="false" native="false" synchronized="false"
  24834. static="false" final="false" visibility="protected"
  24835. deprecated="not deprecated">
  24836. <param name="recordName" type="java.lang.String"/>
  24837. <doc>
  24838. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  24839. @param recordName the name of the record
  24840. @return newly created instance of MetricsRecordImpl or subclass]]>
  24841. </doc>
  24842. </method>
  24843. <method name="registerUpdater"
  24844. abstract="false" native="false" synchronized="true"
  24845. static="false" final="false" visibility="public"
  24846. deprecated="not deprecated">
  24847. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24848. <doc>
  24849. <![CDATA[Registers a callback to be called at time intervals determined by
  24850. the configuration.
  24851. @param updater object to be run periodically; it should update
  24852. some metrics records]]>
  24853. </doc>
  24854. </method>
  24855. <method name="unregisterUpdater"
  24856. abstract="false" native="false" synchronized="true"
  24857. static="false" final="false" visibility="public"
  24858. deprecated="not deprecated">
  24859. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24860. <doc>
  24861. <![CDATA[Removes a callback, if it exists.
  24862. @param updater object to be removed from the callback list]]>
  24863. </doc>
  24864. </method>
  24865. <method name="getAllRecords" return="java.util.Map"
  24866. abstract="false" native="false" synchronized="true"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. <doc>
  24870. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24871. Useful for monitoring systems that are polling-based.
  24872. @return A non-null collection of all monitoring records.]]>
  24873. </doc>
  24874. </method>
  24875. <method name="emitRecord"
  24876. abstract="true" native="false" synchronized="false"
  24877. static="false" final="false" visibility="protected"
  24878. deprecated="not deprecated">
  24879. <param name="contextName" type="java.lang.String"/>
  24880. <param name="recordName" type="java.lang.String"/>
  24881. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24882. <exception name="IOException" type="java.io.IOException"/>
  24883. <doc>
  24884. <![CDATA[Sends a record to the metrics system.]]>
  24885. </doc>
  24886. </method>
  24887. <method name="flush"
  24888. abstract="false" native="false" synchronized="false"
  24889. static="false" final="false" visibility="protected"
  24890. deprecated="not deprecated">
  24891. <exception name="IOException" type="java.io.IOException"/>
  24892. <doc>
  24893. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  24894. Subclasses may override it in order to perform some kind of flush.]]>
  24895. </doc>
  24896. </method>
  24897. <method name="update"
  24898. abstract="false" native="false" synchronized="false"
  24899. static="false" final="false" visibility="protected"
  24900. deprecated="not deprecated">
  24901. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24902. <doc>
  24903. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  24904. the internal table of metric data.]]>
  24905. </doc>
  24906. </method>
  24907. <method name="remove"
  24908. abstract="false" native="false" synchronized="false"
  24909. static="false" final="false" visibility="protected"
  24910. deprecated="not deprecated">
  24911. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24912. <doc>
  24913. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  24914. the internal table of metric data. A row matches if it has the same
  24915. tag names and values as record, but it may also have additional
  24916. tags.]]>
  24917. </doc>
  24918. </method>
  24919. <method name="getPeriod" return="int"
  24920. abstract="false" native="false" synchronized="false"
  24921. static="false" final="false" visibility="public"
  24922. deprecated="not deprecated">
  24923. <doc>
  24924. <![CDATA[Returns the timer period.]]>
  24925. </doc>
  24926. </method>
  24927. <method name="setPeriod"
  24928. abstract="false" native="false" synchronized="false"
  24929. static="false" final="false" visibility="protected"
  24930. deprecated="not deprecated">
  24931. <param name="period" type="int"/>
  24932. <doc>
  24933. <![CDATA[Sets the timer period]]>
  24934. </doc>
  24935. </method>
  24936. <method name="parseAndSetPeriod"
  24937. abstract="false" native="false" synchronized="false"
  24938. static="false" final="false" visibility="protected"
  24939. deprecated="not deprecated">
  24940. <param name="attributeName" type="java.lang.String"/>
  24941. <doc>
  24942. <![CDATA[If a period is set in the attribute passed in, override
  24943. the default with it.]]>
  24944. </doc>
  24945. </method>
  24946. <doc>
  24947. <![CDATA[The main class of the Service Provider Interface. This class should be
  24948. extended in order to integrate the Metrics API with a specific metrics
  24949. client library. <p/>
  24950. This class implements the internal table of metric data, and the timer
  24951. on which data is to be sent to the metrics system. Subclasses must
  24952. override the abstract <code>emitRecord</code> method in order to transmit
  24953. the data. <p/>
  24954. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  24955. </doc>
  24956. </class>
  24957. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  24958. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  24959. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24960. abstract="false"
  24961. static="false" final="false" visibility="public"
  24962. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  24963. <constructor name="CompositeContext"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="not deprecated">
  24966. </constructor>
  24967. <doc>
  24968. <![CDATA[@deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  24969. </doc>
  24970. </class>
  24971. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  24972. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  24973. <class name="MetricsRecordImpl" extends="java.lang.Object"
  24974. abstract="false"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  24977. instead.">
  24978. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  24979. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24980. static="false" final="false" visibility="protected"
  24981. deprecated="not deprecated">
  24982. <doc>
  24983. <![CDATA[Creates a new instance of FileRecord]]>
  24984. </doc>
  24985. </constructor>
  24986. <method name="getRecordName" return="java.lang.String"
  24987. abstract="false" native="false" synchronized="false"
  24988. static="false" final="false" visibility="public"
  24989. deprecated="not deprecated">
  24990. <doc>
  24991. <![CDATA[Returns the record name.
  24992. @return the record name]]>
  24993. </doc>
  24994. </method>
  24995. <method name="setTag"
  24996. abstract="false" native="false" synchronized="false"
  24997. static="false" final="false" visibility="public"
  24998. deprecated="not deprecated">
  24999. <param name="tagName" type="java.lang.String"/>
  25000. <param name="tagValue" type="java.lang.String"/>
  25001. <doc>
  25002. <![CDATA[Sets the named tag to the specified value.
  25003. @param tagName name of the tag
  25004. @param tagValue new value of the tag
  25005. @throws MetricsException if the tagName conflicts with the configuration]]>
  25006. </doc>
  25007. </method>
  25008. <method name="setTag"
  25009. abstract="false" native="false" synchronized="false"
  25010. static="false" final="false" visibility="public"
  25011. deprecated="not deprecated">
  25012. <param name="tagName" type="java.lang.String"/>
  25013. <param name="tagValue" type="int"/>
  25014. <doc>
  25015. <![CDATA[Sets the named tag to the specified value.
  25016. @param tagName name of the tag
  25017. @param tagValue new value of the tag
  25018. @throws MetricsException if the tagName conflicts with the configuration]]>
  25019. </doc>
  25020. </method>
  25021. <method name="setTag"
  25022. abstract="false" native="false" synchronized="false"
  25023. static="false" final="false" visibility="public"
  25024. deprecated="not deprecated">
  25025. <param name="tagName" type="java.lang.String"/>
  25026. <param name="tagValue" type="long"/>
  25027. <doc>
  25028. <![CDATA[Sets the named tag to the specified value.
  25029. @param tagName name of the tag
  25030. @param tagValue new value of the tag
  25031. @throws MetricsException if the tagName conflicts with the configuration]]>
  25032. </doc>
  25033. </method>
  25034. <method name="setTag"
  25035. abstract="false" native="false" synchronized="false"
  25036. static="false" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. <param name="tagName" type="java.lang.String"/>
  25039. <param name="tagValue" type="short"/>
  25040. <doc>
  25041. <![CDATA[Sets the named tag to the specified value.
  25042. @param tagName name of the tag
  25043. @param tagValue new value of the tag
  25044. @throws MetricsException if the tagName conflicts with the configuration]]>
  25045. </doc>
  25046. </method>
  25047. <method name="setTag"
  25048. abstract="false" native="false" synchronized="false"
  25049. static="false" final="false" visibility="public"
  25050. deprecated="not deprecated">
  25051. <param name="tagName" type="java.lang.String"/>
  25052. <param name="tagValue" type="byte"/>
  25053. <doc>
  25054. <![CDATA[Sets the named tag to the specified value.
  25055. @param tagName name of the tag
  25056. @param tagValue new value of the tag
  25057. @throws MetricsException if the tagName conflicts with the configuration]]>
  25058. </doc>
  25059. </method>
  25060. <method name="removeTag"
  25061. abstract="false" native="false" synchronized="false"
  25062. static="false" final="false" visibility="public"
  25063. deprecated="not deprecated">
  25064. <param name="tagName" type="java.lang.String"/>
  25065. <doc>
  25066. <![CDATA[Removes any tag of the specified name.]]>
  25067. </doc>
  25068. </method>
  25069. <method name="setMetric"
  25070. abstract="false" native="false" synchronized="false"
  25071. static="false" final="false" visibility="public"
  25072. deprecated="not deprecated">
  25073. <param name="metricName" type="java.lang.String"/>
  25074. <param name="metricValue" type="int"/>
  25075. <doc>
  25076. <![CDATA[Sets the named metric to the specified value.
  25077. @param metricName name of the metric
  25078. @param metricValue new value of the metric
  25079. @throws MetricsException if the metricName or the type of the metricValue
  25080. conflicts with the configuration]]>
  25081. </doc>
  25082. </method>
  25083. <method name="setMetric"
  25084. abstract="false" native="false" synchronized="false"
  25085. static="false" final="false" visibility="public"
  25086. deprecated="not deprecated">
  25087. <param name="metricName" type="java.lang.String"/>
  25088. <param name="metricValue" type="long"/>
  25089. <doc>
  25090. <![CDATA[Sets the named metric to the specified value.
  25091. @param metricName name of the metric
  25092. @param metricValue new value of the metric
  25093. @throws MetricsException if the metricName or the type of the metricValue
  25094. conflicts with the configuration]]>
  25095. </doc>
  25096. </method>
  25097. <method name="setMetric"
  25098. abstract="false" native="false" synchronized="false"
  25099. static="false" final="false" visibility="public"
  25100. deprecated="not deprecated">
  25101. <param name="metricName" type="java.lang.String"/>
  25102. <param name="metricValue" type="short"/>
  25103. <doc>
  25104. <![CDATA[Sets the named metric to the specified value.
  25105. @param metricName name of the metric
  25106. @param metricValue new value of the metric
  25107. @throws MetricsException if the metricName or the type of the metricValue
  25108. conflicts with the configuration]]>
  25109. </doc>
  25110. </method>
  25111. <method name="setMetric"
  25112. abstract="false" native="false" synchronized="false"
  25113. static="false" final="false" visibility="public"
  25114. deprecated="not deprecated">
  25115. <param name="metricName" type="java.lang.String"/>
  25116. <param name="metricValue" type="byte"/>
  25117. <doc>
  25118. <![CDATA[Sets the named metric to the specified value.
  25119. @param metricName name of the metric
  25120. @param metricValue new value of the metric
  25121. @throws MetricsException if the metricName or the type of the metricValue
  25122. conflicts with the configuration]]>
  25123. </doc>
  25124. </method>
  25125. <method name="setMetric"
  25126. abstract="false" native="false" synchronized="false"
  25127. static="false" final="false" visibility="public"
  25128. deprecated="not deprecated">
  25129. <param name="metricName" type="java.lang.String"/>
  25130. <param name="metricValue" type="float"/>
  25131. <doc>
  25132. <![CDATA[Sets the named metric to the specified value.
  25133. @param metricName name of the metric
  25134. @param metricValue new value of the metric
  25135. @throws MetricsException if the metricName or the type of the metricValue
  25136. conflicts with the configuration]]>
  25137. </doc>
  25138. </method>
  25139. <method name="incrMetric"
  25140. abstract="false" native="false" synchronized="false"
  25141. static="false" final="false" visibility="public"
  25142. deprecated="not deprecated">
  25143. <param name="metricName" type="java.lang.String"/>
  25144. <param name="metricValue" type="int"/>
  25145. <doc>
  25146. <![CDATA[Increments the named metric by the specified value.
  25147. @param metricName name of the metric
  25148. @param metricValue incremental value
  25149. @throws MetricsException if the metricName or the type of the metricValue
  25150. conflicts with the configuration]]>
  25151. </doc>
  25152. </method>
  25153. <method name="incrMetric"
  25154. abstract="false" native="false" synchronized="false"
  25155. static="false" final="false" visibility="public"
  25156. deprecated="not deprecated">
  25157. <param name="metricName" type="java.lang.String"/>
  25158. <param name="metricValue" type="long"/>
  25159. <doc>
  25160. <![CDATA[Increments the named metric by the specified value.
  25161. @param metricName name of the metric
  25162. @param metricValue incremental value
  25163. @throws MetricsException if the metricName or the type of the metricValue
  25164. conflicts with the configuration]]>
  25165. </doc>
  25166. </method>
  25167. <method name="incrMetric"
  25168. abstract="false" native="false" synchronized="false"
  25169. static="false" final="false" visibility="public"
  25170. deprecated="not deprecated">
  25171. <param name="metricName" type="java.lang.String"/>
  25172. <param name="metricValue" type="short"/>
  25173. <doc>
  25174. <![CDATA[Increments the named metric by the specified value.
  25175. @param metricName name of the metric
  25176. @param metricValue incremental value
  25177. @throws MetricsException if the metricName or the type of the metricValue
  25178. conflicts with the configuration]]>
  25179. </doc>
  25180. </method>
  25181. <method name="incrMetric"
  25182. abstract="false" native="false" synchronized="false"
  25183. static="false" final="false" visibility="public"
  25184. deprecated="not deprecated">
  25185. <param name="metricName" type="java.lang.String"/>
  25186. <param name="metricValue" type="byte"/>
  25187. <doc>
  25188. <![CDATA[Increments the named metric by the specified value.
  25189. @param metricName name of the metric
  25190. @param metricValue incremental value
  25191. @throws MetricsException if the metricName or the type of the metricValue
  25192. conflicts with the configuration]]>
  25193. </doc>
  25194. </method>
  25195. <method name="incrMetric"
  25196. abstract="false" native="false" synchronized="false"
  25197. static="false" final="false" visibility="public"
  25198. deprecated="not deprecated">
  25199. <param name="metricName" type="java.lang.String"/>
  25200. <param name="metricValue" type="float"/>
  25201. <doc>
  25202. <![CDATA[Increments the named metric by the specified value.
  25203. @param metricName name of the metric
  25204. @param metricValue incremental value
  25205. @throws MetricsException if the metricName or the type of the metricValue
  25206. conflicts with the configuration]]>
  25207. </doc>
  25208. </method>
  25209. <method name="update"
  25210. abstract="false" native="false" synchronized="false"
  25211. static="false" final="false" visibility="public"
  25212. deprecated="not deprecated">
  25213. <doc>
  25214. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25215. If the tag values match an existing row, that row is updated;
  25216. otherwise, a new row is added.]]>
  25217. </doc>
  25218. </method>
  25219. <method name="remove"
  25220. abstract="false" native="false" synchronized="false"
  25221. static="false" final="false" visibility="public"
  25222. deprecated="not deprecated">
  25223. <doc>
  25224. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25225. that equal the tags that have been set on this record.]]>
  25226. </doc>
  25227. </method>
  25228. <doc>
  25229. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25230. from which it was created, and delegates back to it on <code>update</code>
  25231. and <code>remove()</code>.
  25232. @deprecated Use {@link org.apache.hadoop.metrics2.impl.MetricsRecordImpl}
  25233. instead.]]>
  25234. </doc>
  25235. </class>
  25236. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25237. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25238. <class name="MetricValue" extends="java.lang.Object"
  25239. abstract="false"
  25240. static="false" final="false" visibility="public"
  25241. deprecated="not deprecated">
  25242. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25243. static="false" final="false" visibility="public"
  25244. deprecated="not deprecated">
  25245. <doc>
  25246. <![CDATA[Creates a new instance of MetricValue]]>
  25247. </doc>
  25248. </constructor>
  25249. <method name="isIncrement" return="boolean"
  25250. abstract="false" native="false" synchronized="false"
  25251. static="false" final="false" visibility="public"
  25252. deprecated="not deprecated">
  25253. </method>
  25254. <method name="isAbsolute" return="boolean"
  25255. abstract="false" native="false" synchronized="false"
  25256. static="false" final="false" visibility="public"
  25257. deprecated="not deprecated">
  25258. </method>
  25259. <method name="getNumber" return="java.lang.Number"
  25260. abstract="false" native="false" synchronized="false"
  25261. static="false" final="false" visibility="public"
  25262. deprecated="not deprecated">
  25263. </method>
  25264. <field name="ABSOLUTE" type="boolean"
  25265. transient="false" volatile="false"
  25266. static="true" final="true" visibility="public"
  25267. deprecated="not deprecated">
  25268. </field>
  25269. <field name="INCREMENT" type="boolean"
  25270. transient="false" volatile="false"
  25271. static="true" final="true" visibility="public"
  25272. deprecated="not deprecated">
  25273. </field>
  25274. <doc>
  25275. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  25276. </doc>
  25277. </class>
  25278. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25279. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25280. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25281. abstract="false"
  25282. static="false" final="false" visibility="public"
  25283. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25284. <constructor name="NoEmitMetricsContext"
  25285. static="false" final="false" visibility="public"
  25286. deprecated="not deprecated">
  25287. <doc>
  25288. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25289. </doc>
  25290. </constructor>
  25291. <doc>
  25292. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25293. does save it for retrieval with getAllRecords().
  25294. This is useful if you want to support {@link MetricsServlet}, but
  25295. not emit metrics in any other way.
  25296. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25297. </doc>
  25298. </class>
  25299. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25300. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25301. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25302. abstract="false"
  25303. static="false" final="false" visibility="public"
  25304. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25305. <constructor name="NullContext"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. <doc>
  25309. <![CDATA[Creates a new instance of NullContext]]>
  25310. </doc>
  25311. </constructor>
  25312. <doc>
  25313. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25314. default context, so that no performance data is emitted if no configuration
  25315. data is found.
  25316. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25317. </doc>
  25318. </class>
  25319. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25320. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25321. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25322. abstract="false"
  25323. static="false" final="false" visibility="public"
  25324. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25325. <constructor name="NullContextWithUpdateThread"
  25326. static="false" final="false" visibility="public"
  25327. deprecated="not deprecated">
  25328. <doc>
  25329. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25330. </doc>
  25331. </constructor>
  25332. <doc>
  25333. <![CDATA[A null context which has a thread calling
  25334. periodically when monitoring is started. This keeps the data sampled
  25335. correctly.
  25336. In all other respects, this is like the NULL context: No data is emitted.
  25337. This is suitable for Monitoring systems like JMX which reads the metrics
  25338. when someone reads the data from JMX.
  25339. The default impl of start and stop monitoring:
  25340. is the AbstractMetricsContext is good enough.
  25341. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25342. </doc>
  25343. </class>
  25344. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25345. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25346. <class name="OutputRecord" extends="java.lang.Object"
  25347. abstract="false"
  25348. static="false" final="false" visibility="public"
  25349. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25350. <method name="getTagNames" return="java.util.Set"
  25351. abstract="false" native="false" synchronized="false"
  25352. static="false" final="false" visibility="public"
  25353. deprecated="not deprecated">
  25354. <doc>
  25355. <![CDATA[Returns the set of tag names]]>
  25356. </doc>
  25357. </method>
  25358. <method name="getTag" return="java.lang.Object"
  25359. abstract="false" native="false" synchronized="false"
  25360. static="false" final="false" visibility="public"
  25361. deprecated="not deprecated">
  25362. <param name="name" type="java.lang.String"/>
  25363. <doc>
  25364. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25365. @return the tag value, or null if there is no such tag]]>
  25366. </doc>
  25367. </method>
  25368. <method name="getMetricNames" return="java.util.Set"
  25369. abstract="false" native="false" synchronized="false"
  25370. static="false" final="false" visibility="public"
  25371. deprecated="not deprecated">
  25372. <doc>
  25373. <![CDATA[Returns the set of metric names.]]>
  25374. </doc>
  25375. </method>
  25376. <method name="getMetric" return="java.lang.Number"
  25377. abstract="false" native="false" synchronized="false"
  25378. static="false" final="false" visibility="public"
  25379. deprecated="not deprecated">
  25380. <param name="name" type="java.lang.String"/>
  25381. <doc>
  25382. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25383. </doc>
  25384. </method>
  25385. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25386. abstract="false" native="false" synchronized="false"
  25387. static="false" final="false" visibility="public"
  25388. deprecated="not deprecated">
  25389. <doc>
  25390. <![CDATA[Returns a copy of this record's tags.]]>
  25391. </doc>
  25392. </method>
  25393. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25394. abstract="false" native="false" synchronized="false"
  25395. static="false" final="false" visibility="public"
  25396. deprecated="not deprecated">
  25397. <doc>
  25398. <![CDATA[Returns a copy of this record's metrics.]]>
  25399. </doc>
  25400. </method>
  25401. <doc>
  25402. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25403. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25404. </doc>
  25405. </class>
  25406. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25407. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25408. <class name="Util" extends="java.lang.Object"
  25409. abstract="false"
  25410. static="false" final="false" visibility="public"
  25411. deprecated="Use org.apache.hadoop.metrics2 package instead.">
  25412. <method name="parse" return="java.util.List"
  25413. abstract="false" native="false" synchronized="false"
  25414. static="true" final="false" visibility="public"
  25415. deprecated="not deprecated">
  25416. <param name="specs" type="java.lang.String"/>
  25417. <param name="defaultPort" type="int"/>
  25418. <doc>
  25419. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  25420. of the form <i>hostname</i> or <i>hostname:port</i>. If
  25421. the specs string is null, defaults to localhost:defaultPort.
  25422. @return a list of InetSocketAddress objects.]]>
  25423. </doc>
  25424. </method>
  25425. <doc>
  25426. <![CDATA[Static utility methods
  25427. @deprecated Use org.apache.hadoop.metrics2 package instead.]]>
  25428. </doc>
  25429. </class>
  25430. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  25431. <doc>
  25432. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  25433. an interface allowing a variety of metrics reporting implementations to be
  25434. plugged in to the Metrics API. Examples of such implementations can be found
  25435. in the packages <code>org.apache.hadoop.metrics.file</code> and
  25436. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  25437. Plugging in an implementation involves writing a concrete subclass of
  25438. <code>AbstractMetricsContext</code>. The subclass should get its
  25439. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  25440. method.]]>
  25441. </doc>
  25442. </package>
  25443. <package name="org.apache.hadoop.metrics2">
  25444. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  25445. <class name="AbstractMetric" extends="java.lang.Object"
  25446. abstract="true"
  25447. static="false" final="false" visibility="public"
  25448. deprecated="not deprecated">
  25449. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  25450. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  25451. static="false" final="false" visibility="protected"
  25452. deprecated="not deprecated">
  25453. <doc>
  25454. <![CDATA[Construct the metric
  25455. @param info about the metric]]>
  25456. </doc>
  25457. </constructor>
  25458. <method name="name" return="java.lang.String"
  25459. abstract="false" native="false" synchronized="false"
  25460. static="false" final="false" visibility="public"
  25461. deprecated="not deprecated">
  25462. </method>
  25463. <method name="description" return="java.lang.String"
  25464. abstract="false" native="false" synchronized="false"
  25465. static="false" final="false" visibility="public"
  25466. deprecated="not deprecated">
  25467. </method>
  25468. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  25469. abstract="false" native="false" synchronized="false"
  25470. static="false" final="false" visibility="protected"
  25471. deprecated="not deprecated">
  25472. </method>
  25473. <method name="value" return="java.lang.Number"
  25474. abstract="true" native="false" synchronized="false"
  25475. static="false" final="false" visibility="public"
  25476. deprecated="not deprecated">
  25477. <doc>
  25478. <![CDATA[Get the value of the metric
  25479. @return the value of the metric]]>
  25480. </doc>
  25481. </method>
  25482. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  25483. abstract="true" native="false" synchronized="false"
  25484. static="false" final="false" visibility="public"
  25485. deprecated="not deprecated">
  25486. <doc>
  25487. <![CDATA[Get the type of the metric
  25488. @return the type of the metric]]>
  25489. </doc>
  25490. </method>
  25491. <method name="visit"
  25492. abstract="true" native="false" synchronized="false"
  25493. static="false" final="false" visibility="public"
  25494. deprecated="not deprecated">
  25495. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  25496. <doc>
  25497. <![CDATA[Accept a visitor interface
  25498. @param visitor of the metric]]>
  25499. </doc>
  25500. </method>
  25501. <method name="equals" return="boolean"
  25502. abstract="false" native="false" synchronized="false"
  25503. static="false" final="false" visibility="public"
  25504. deprecated="not deprecated">
  25505. <param name="obj" type="java.lang.Object"/>
  25506. </method>
  25507. <method name="hashCode" return="int"
  25508. abstract="false" native="false" synchronized="false"
  25509. static="false" final="false" visibility="public"
  25510. deprecated="not deprecated">
  25511. </method>
  25512. <method name="toString" return="java.lang.String"
  25513. abstract="false" native="false" synchronized="false"
  25514. static="false" final="false" visibility="public"
  25515. deprecated="not deprecated">
  25516. </method>
  25517. <doc>
  25518. <![CDATA[The immutable metric]]>
  25519. </doc>
  25520. </class>
  25521. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  25522. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  25523. <interface name="MetricsCollector" abstract="true"
  25524. static="false" final="false" visibility="public"
  25525. deprecated="not deprecated">
  25526. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25527. abstract="false" native="false" synchronized="false"
  25528. static="false" final="false" visibility="public"
  25529. deprecated="not deprecated">
  25530. <param name="name" type="java.lang.String"/>
  25531. <doc>
  25532. <![CDATA[Add a metrics record
  25533. @param name of the record
  25534. @return a metrics record builder for the record]]>
  25535. </doc>
  25536. </method>
  25537. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25538. abstract="false" native="false" synchronized="false"
  25539. static="false" final="false" visibility="public"
  25540. deprecated="not deprecated">
  25541. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25542. <doc>
  25543. <![CDATA[Add a metrics record
  25544. @param info of the record
  25545. @return a metrics record builder for the record]]>
  25546. </doc>
  25547. </method>
  25548. <doc>
  25549. <![CDATA[The metrics collector interface]]>
  25550. </doc>
  25551. </interface>
  25552. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  25553. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  25554. <class name="MetricsException" extends="java.lang.RuntimeException"
  25555. abstract="false"
  25556. static="false" final="false" visibility="public"
  25557. deprecated="not deprecated">
  25558. <constructor name="MetricsException" type="java.lang.String"
  25559. static="false" final="false" visibility="public"
  25560. deprecated="not deprecated">
  25561. <doc>
  25562. <![CDATA[Construct the exception with a message
  25563. @param message for the exception]]>
  25564. </doc>
  25565. </constructor>
  25566. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  25567. static="false" final="false" visibility="public"
  25568. deprecated="not deprecated">
  25569. <doc>
  25570. <![CDATA[Construct the exception with a message and a cause
  25571. @param message for the exception
  25572. @param cause of the exception]]>
  25573. </doc>
  25574. </constructor>
  25575. <constructor name="MetricsException" type="java.lang.Throwable"
  25576. static="false" final="false" visibility="public"
  25577. deprecated="not deprecated">
  25578. <doc>
  25579. <![CDATA[Construct the exception with a cause
  25580. @param cause of the exception]]>
  25581. </doc>
  25582. </constructor>
  25583. <doc>
  25584. <![CDATA[A general metrics exception wrapper]]>
  25585. </doc>
  25586. </class>
  25587. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  25588. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  25589. <class name="MetricsFilter" extends="java.lang.Object"
  25590. abstract="true"
  25591. static="false" final="false" visibility="public"
  25592. deprecated="not deprecated">
  25593. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25594. <constructor name="MetricsFilter"
  25595. static="false" final="false" visibility="public"
  25596. deprecated="not deprecated">
  25597. </constructor>
  25598. <method name="accepts" return="boolean"
  25599. abstract="true" native="false" synchronized="false"
  25600. static="false" final="false" visibility="public"
  25601. deprecated="not deprecated">
  25602. <param name="name" type="java.lang.String"/>
  25603. <doc>
  25604. <![CDATA[Whether to accept the name
  25605. @param name to filter on
  25606. @return true to accept; false otherwise.]]>
  25607. </doc>
  25608. </method>
  25609. <method name="accepts" return="boolean"
  25610. abstract="true" native="false" synchronized="false"
  25611. static="false" final="false" visibility="public"
  25612. deprecated="not deprecated">
  25613. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25614. <doc>
  25615. <![CDATA[Whether to accept the tag
  25616. @param tag to filter on
  25617. @return true to accept; false otherwise]]>
  25618. </doc>
  25619. </method>
  25620. <method name="accepts" return="boolean"
  25621. abstract="true" native="false" synchronized="false"
  25622. static="false" final="false" visibility="public"
  25623. deprecated="not deprecated">
  25624. <param name="tags" type="java.lang.Iterable"/>
  25625. <doc>
  25626. <![CDATA[Whether to accept the tags
  25627. @param tags to filter on
  25628. @return true to accept; false otherwise]]>
  25629. </doc>
  25630. </method>
  25631. <method name="accepts" return="boolean"
  25632. abstract="false" native="false" synchronized="false"
  25633. static="false" final="false" visibility="public"
  25634. deprecated="not deprecated">
  25635. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25636. <doc>
  25637. <![CDATA[Whether to accept the record
  25638. @param record to filter on
  25639. @return true to accept; false otherwise.]]>
  25640. </doc>
  25641. </method>
  25642. <doc>
  25643. <![CDATA[The metrics filter interface]]>
  25644. </doc>
  25645. </class>
  25646. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  25647. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  25648. <interface name="MetricsInfo" abstract="true"
  25649. static="false" final="false" visibility="public"
  25650. deprecated="not deprecated">
  25651. <method name="name" return="java.lang.String"
  25652. abstract="false" native="false" synchronized="false"
  25653. static="false" final="false" visibility="public"
  25654. deprecated="not deprecated">
  25655. <doc>
  25656. <![CDATA[@return the name of the metric/tag]]>
  25657. </doc>
  25658. </method>
  25659. <method name="description" return="java.lang.String"
  25660. abstract="false" native="false" synchronized="false"
  25661. static="false" final="false" visibility="public"
  25662. deprecated="not deprecated">
  25663. <doc>
  25664. <![CDATA[@return the description of the metric/tag]]>
  25665. </doc>
  25666. </method>
  25667. <doc>
  25668. <![CDATA[Interface to provide immutable meta info for metrics]]>
  25669. </doc>
  25670. </interface>
  25671. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  25672. <!-- start class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  25673. <class name="MetricsJsonBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25674. abstract="false"
  25675. static="false" final="false" visibility="public"
  25676. deprecated="not deprecated">
  25677. <constructor name="MetricsJsonBuilder" type="org.apache.hadoop.metrics2.MetricsCollector"
  25678. static="false" final="false" visibility="public"
  25679. deprecated="not deprecated">
  25680. <doc>
  25681. <![CDATA[Build an instance.
  25682. @param parent parent collector. Unused in this instance; only used for
  25683. the {@link #parent()} method]]>
  25684. </doc>
  25685. </constructor>
  25686. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25687. abstract="false" native="false" synchronized="false"
  25688. static="false" final="false" visibility="public"
  25689. deprecated="not deprecated">
  25690. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25691. <param name="value" type="java.lang.String"/>
  25692. </method>
  25693. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25694. abstract="false" native="false" synchronized="false"
  25695. static="false" final="false" visibility="public"
  25696. deprecated="not deprecated">
  25697. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25698. </method>
  25699. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25700. abstract="false" native="false" synchronized="false"
  25701. static="false" final="false" visibility="public"
  25702. deprecated="not deprecated">
  25703. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  25704. </method>
  25705. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25706. abstract="false" native="false" synchronized="false"
  25707. static="false" final="false" visibility="public"
  25708. deprecated="not deprecated">
  25709. <param name="value" type="java.lang.String"/>
  25710. </method>
  25711. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25712. abstract="false" native="false" synchronized="false"
  25713. static="false" final="false" visibility="public"
  25714. deprecated="not deprecated">
  25715. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25716. <param name="value" type="int"/>
  25717. </method>
  25718. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25719. abstract="false" native="false" synchronized="false"
  25720. static="false" final="false" visibility="public"
  25721. deprecated="not deprecated">
  25722. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25723. <param name="value" type="long"/>
  25724. </method>
  25725. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25726. abstract="false" native="false" synchronized="false"
  25727. static="false" final="false" visibility="public"
  25728. deprecated="not deprecated">
  25729. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25730. <param name="value" type="int"/>
  25731. </method>
  25732. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25733. abstract="false" native="false" synchronized="false"
  25734. static="false" final="false" visibility="public"
  25735. deprecated="not deprecated">
  25736. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25737. <param name="value" type="long"/>
  25738. </method>
  25739. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25740. abstract="false" native="false" synchronized="false"
  25741. static="false" final="false" visibility="public"
  25742. deprecated="not deprecated">
  25743. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25744. <param name="value" type="float"/>
  25745. </method>
  25746. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25747. abstract="false" native="false" synchronized="false"
  25748. static="false" final="false" visibility="public"
  25749. deprecated="not deprecated">
  25750. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25751. <param name="value" type="double"/>
  25752. </method>
  25753. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  25754. abstract="false" native="false" synchronized="false"
  25755. static="false" final="false" visibility="public"
  25756. deprecated="not deprecated">
  25757. </method>
  25758. <method name="toString" return="java.lang.String"
  25759. abstract="false" native="false" synchronized="false"
  25760. static="false" final="false" visibility="public"
  25761. deprecated="not deprecated">
  25762. </method>
  25763. <field name="LOG" type="org.slf4j.Logger"
  25764. transient="false" volatile="false"
  25765. static="true" final="true" visibility="public"
  25766. deprecated="not deprecated">
  25767. </field>
  25768. <doc>
  25769. <![CDATA[Build a JSON dump of the metrics.
  25770. The {@link #toString()} operator dumps out all values collected.]]>
  25771. </doc>
  25772. </class>
  25773. <!-- end class org.apache.hadoop.metrics2.MetricsJsonBuilder -->
  25774. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25775. <interface name="MetricsPlugin" abstract="true"
  25776. static="false" final="false" visibility="public"
  25777. deprecated="not deprecated">
  25778. <method name="init"
  25779. abstract="false" native="false" synchronized="false"
  25780. static="false" final="false" visibility="public"
  25781. deprecated="not deprecated">
  25782. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25783. <doc>
  25784. <![CDATA[Initialize the plugin
  25785. @param conf the configuration object for the plugin]]>
  25786. </doc>
  25787. </method>
  25788. <doc>
  25789. <![CDATA[The plugin interface for the metrics framework]]>
  25790. </doc>
  25791. </interface>
  25792. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25793. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  25794. <interface name="MetricsRecord" abstract="true"
  25795. static="false" final="false" visibility="public"
  25796. deprecated="not deprecated">
  25797. <method name="timestamp" return="long"
  25798. abstract="false" native="false" synchronized="false"
  25799. static="false" final="false" visibility="public"
  25800. deprecated="not deprecated">
  25801. <doc>
  25802. <![CDATA[Get the timestamp of the metrics
  25803. @return the timestamp]]>
  25804. </doc>
  25805. </method>
  25806. <method name="name" return="java.lang.String"
  25807. abstract="false" native="false" synchronized="false"
  25808. static="false" final="false" visibility="public"
  25809. deprecated="not deprecated">
  25810. <doc>
  25811. <![CDATA[@return the record name]]>
  25812. </doc>
  25813. </method>
  25814. <method name="description" return="java.lang.String"
  25815. abstract="false" native="false" synchronized="false"
  25816. static="false" final="false" visibility="public"
  25817. deprecated="not deprecated">
  25818. <doc>
  25819. <![CDATA[@return the description of the record]]>
  25820. </doc>
  25821. </method>
  25822. <method name="context" return="java.lang.String"
  25823. abstract="false" native="false" synchronized="false"
  25824. static="false" final="false" visibility="public"
  25825. deprecated="not deprecated">
  25826. <doc>
  25827. <![CDATA[@return the context name of the record]]>
  25828. </doc>
  25829. </method>
  25830. <method name="tags" return="java.util.Collection"
  25831. abstract="false" native="false" synchronized="false"
  25832. static="false" final="false" visibility="public"
  25833. deprecated="not deprecated">
  25834. <doc>
  25835. <![CDATA[Get the tags of the record
  25836. Note: returning a collection instead of iterable as we
  25837. need to use tags as keys (hence Collection#hashCode etc.) in maps
  25838. @return an unmodifiable collection of tags]]>
  25839. </doc>
  25840. </method>
  25841. <method name="metrics" return="java.lang.Iterable"
  25842. abstract="false" native="false" synchronized="false"
  25843. static="false" final="false" visibility="public"
  25844. deprecated="not deprecated">
  25845. <doc>
  25846. <![CDATA[Get the metrics of the record
  25847. @return an immutable iterable interface for metrics]]>
  25848. </doc>
  25849. </method>
  25850. <doc>
  25851. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  25852. </doc>
  25853. </interface>
  25854. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  25855. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25856. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  25857. abstract="true"
  25858. static="false" final="false" visibility="public"
  25859. deprecated="not deprecated">
  25860. <constructor name="MetricsRecordBuilder"
  25861. static="false" final="false" visibility="public"
  25862. deprecated="not deprecated">
  25863. </constructor>
  25864. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25865. abstract="true" native="false" synchronized="false"
  25866. static="false" final="false" visibility="public"
  25867. deprecated="not deprecated">
  25868. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25869. <param name="value" type="java.lang.String"/>
  25870. <doc>
  25871. <![CDATA[Add a metrics tag
  25872. @param info metadata of the tag
  25873. @param value of the tag
  25874. @return self]]>
  25875. </doc>
  25876. </method>
  25877. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25878. abstract="true" native="false" synchronized="false"
  25879. static="false" final="false" visibility="public"
  25880. deprecated="not deprecated">
  25881. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25882. <doc>
  25883. <![CDATA[Add an immutable metrics tag object
  25884. @param tag a pre-made tag object (potentially save an object construction)
  25885. @return self]]>
  25886. </doc>
  25887. </method>
  25888. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25889. abstract="true" native="false" synchronized="false"
  25890. static="false" final="false" visibility="public"
  25891. deprecated="not deprecated">
  25892. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  25893. <doc>
  25894. <![CDATA[Add a pre-made immutable metric object
  25895. @param metric the pre-made metric to save an object construction
  25896. @return self]]>
  25897. </doc>
  25898. </method>
  25899. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25900. abstract="true" native="false" synchronized="false"
  25901. static="false" final="false" visibility="public"
  25902. deprecated="not deprecated">
  25903. <param name="value" type="java.lang.String"/>
  25904. <doc>
  25905. <![CDATA[Set the context tag
  25906. @param value of the context
  25907. @return self]]>
  25908. </doc>
  25909. </method>
  25910. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25911. abstract="true" native="false" synchronized="false"
  25912. static="false" final="false" visibility="public"
  25913. deprecated="not deprecated">
  25914. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25915. <param name="value" type="int"/>
  25916. <doc>
  25917. <![CDATA[Add an integer metric
  25918. @param info metadata of the metric
  25919. @param value of the metric
  25920. @return self]]>
  25921. </doc>
  25922. </method>
  25923. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25924. abstract="true" native="false" synchronized="false"
  25925. static="false" final="false" visibility="public"
  25926. deprecated="not deprecated">
  25927. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25928. <param name="value" type="long"/>
  25929. <doc>
  25930. <![CDATA[Add an long metric
  25931. @param info metadata of the metric
  25932. @param value of the metric
  25933. @return self]]>
  25934. </doc>
  25935. </method>
  25936. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25937. abstract="true" native="false" synchronized="false"
  25938. static="false" final="false" visibility="public"
  25939. deprecated="not deprecated">
  25940. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25941. <param name="value" type="int"/>
  25942. <doc>
  25943. <![CDATA[Add a integer gauge metric
  25944. @param info metadata of the metric
  25945. @param value of the metric
  25946. @return self]]>
  25947. </doc>
  25948. </method>
  25949. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25950. abstract="true" native="false" synchronized="false"
  25951. static="false" final="false" visibility="public"
  25952. deprecated="not deprecated">
  25953. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25954. <param name="value" type="long"/>
  25955. <doc>
  25956. <![CDATA[Add a long gauge metric
  25957. @param info metadata of the metric
  25958. @param value of the metric
  25959. @return self]]>
  25960. </doc>
  25961. </method>
  25962. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25963. abstract="true" native="false" synchronized="false"
  25964. static="false" final="false" visibility="public"
  25965. deprecated="not deprecated">
  25966. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25967. <param name="value" type="float"/>
  25968. <doc>
  25969. <![CDATA[Add a float gauge metric
  25970. @param info metadata of the metric
  25971. @param value of the metric
  25972. @return self]]>
  25973. </doc>
  25974. </method>
  25975. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25976. abstract="true" native="false" synchronized="false"
  25977. static="false" final="false" visibility="public"
  25978. deprecated="not deprecated">
  25979. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  25980. <param name="value" type="double"/>
  25981. <doc>
  25982. <![CDATA[Add a double gauge metric
  25983. @param info metadata of the metric
  25984. @param value of the metric
  25985. @return self]]>
  25986. </doc>
  25987. </method>
  25988. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  25989. abstract="true" native="false" synchronized="false"
  25990. static="false" final="false" visibility="public"
  25991. deprecated="not deprecated">
  25992. <doc>
  25993. <![CDATA[@return the parent metrics collector object]]>
  25994. </doc>
  25995. </method>
  25996. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  25997. abstract="false" native="false" synchronized="false"
  25998. static="false" final="false" visibility="public"
  25999. deprecated="not deprecated">
  26000. <doc>
  26001. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  26002. @return the parent metrics collector object]]>
  26003. </doc>
  26004. </method>
  26005. <doc>
  26006. <![CDATA[The metrics record builder interface]]>
  26007. </doc>
  26008. </class>
  26009. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26010. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  26011. <interface name="MetricsSink" abstract="true"
  26012. static="false" final="false" visibility="public"
  26013. deprecated="not deprecated">
  26014. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26015. <method name="putMetrics"
  26016. abstract="false" native="false" synchronized="false"
  26017. static="false" final="false" visibility="public"
  26018. deprecated="not deprecated">
  26019. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26020. <doc>
  26021. <![CDATA[Put a metrics record in the sink
  26022. @param record the record to put]]>
  26023. </doc>
  26024. </method>
  26025. <method name="flush"
  26026. abstract="false" native="false" synchronized="false"
  26027. static="false" final="false" visibility="public"
  26028. deprecated="not deprecated">
  26029. <doc>
  26030. <![CDATA[Flush any buffered metrics]]>
  26031. </doc>
  26032. </method>
  26033. <doc>
  26034. <![CDATA[The metrics sink interface. <p>
  26035. Implementations of this interface consume the {@link MetricsRecord} generated
  26036. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  26037. periodically pushes the {@link MetricsRecord} to the sink using
  26038. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  26039. implements {@link Closeable}, then the MetricsSystem will close the sink when
  26040. it is stopped.]]>
  26041. </doc>
  26042. </interface>
  26043. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  26044. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  26045. <interface name="MetricsSource" abstract="true"
  26046. static="false" final="false" visibility="public"
  26047. deprecated="not deprecated">
  26048. <method name="getMetrics"
  26049. abstract="false" native="false" synchronized="false"
  26050. static="false" final="false" visibility="public"
  26051. deprecated="not deprecated">
  26052. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  26053. <param name="all" type="boolean"/>
  26054. <doc>
  26055. <![CDATA[Get metrics from the source
  26056. @param collector to contain the resulting metrics snapshot
  26057. @param all if true, return all metrics even if unchanged.]]>
  26058. </doc>
  26059. </method>
  26060. <doc>
  26061. <![CDATA[The metrics source interface]]>
  26062. </doc>
  26063. </interface>
  26064. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  26065. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  26066. <class name="MetricsSystem" extends="java.lang.Object"
  26067. abstract="true"
  26068. static="false" final="false" visibility="public"
  26069. deprecated="not deprecated">
  26070. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  26071. <constructor name="MetricsSystem"
  26072. static="false" final="false" visibility="public"
  26073. deprecated="not deprecated">
  26074. </constructor>
  26075. <method name="unregisterSource"
  26076. abstract="true" native="false" synchronized="false"
  26077. static="false" final="false" visibility="public"
  26078. deprecated="not deprecated">
  26079. <param name="name" type="java.lang.String"/>
  26080. <doc>
  26081. <![CDATA[Unregister a metrics source
  26082. @param name of the source. This is the name you use to call register()]]>
  26083. </doc>
  26084. </method>
  26085. <method name="register" return="T"
  26086. abstract="false" native="false" synchronized="false"
  26087. static="false" final="false" visibility="public"
  26088. deprecated="not deprecated">
  26089. <param name="source" type="T"/>
  26090. <doc>
  26091. <![CDATA[Register a metrics source (deriving name and description from the object)
  26092. @param <T> the actual type of the source object
  26093. @param source object to register
  26094. @return the source object
  26095. @exception MetricsException]]>
  26096. </doc>
  26097. </method>
  26098. <method name="register" return="T"
  26099. abstract="true" native="false" synchronized="false"
  26100. static="false" final="false" visibility="public"
  26101. deprecated="not deprecated">
  26102. <param name="name" type="java.lang.String"/>
  26103. <param name="desc" type="java.lang.String"/>
  26104. <param name="source" type="T"/>
  26105. <doc>
  26106. <![CDATA[Register a metrics source
  26107. @param <T> the actual type of the source object
  26108. @param source object to register
  26109. @param name of the source. Must be unique or null (then extracted from
  26110. the annotations of the source object.)
  26111. @param desc the description of the source (or null. See above.)
  26112. @return the source object
  26113. @exception MetricsException]]>
  26114. </doc>
  26115. </method>
  26116. <method name="register"
  26117. abstract="true" native="false" synchronized="false"
  26118. static="false" final="false" visibility="public"
  26119. deprecated="not deprecated">
  26120. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26121. <doc>
  26122. <![CDATA[Register a callback interface for JMX events
  26123. @param callback the callback object implementing the MBean interface.]]>
  26124. </doc>
  26125. </method>
  26126. <method name="publishMetricsNow"
  26127. abstract="true" native="false" synchronized="false"
  26128. static="false" final="false" visibility="public"
  26129. deprecated="not deprecated">
  26130. <doc>
  26131. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  26132. This is a "soft" request: the expectation is that a best effort will be
  26133. done to synchronously snapshot the metrics from all the sources and put
  26134. them in all the sinks (including flushing the sinks) before returning to
  26135. the caller. If this can't be accomplished in reasonable time it's OK to
  26136. return to the caller before everything is done.]]>
  26137. </doc>
  26138. </method>
  26139. <method name="shutdown" return="boolean"
  26140. abstract="true" native="false" synchronized="false"
  26141. static="false" final="false" visibility="public"
  26142. deprecated="not deprecated">
  26143. <doc>
  26144. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  26145. The MetricsSystemMXBean will be unregistered.
  26146. @return true if shutdown completed]]>
  26147. </doc>
  26148. </method>
  26149. <doc>
  26150. <![CDATA[The metrics system interface]]>
  26151. </doc>
  26152. </class>
  26153. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  26154. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26155. <interface name="MetricsSystemMXBean" abstract="true"
  26156. static="false" final="false" visibility="public"
  26157. deprecated="not deprecated">
  26158. <method name="start"
  26159. abstract="false" native="false" synchronized="false"
  26160. static="false" final="false" visibility="public"
  26161. deprecated="not deprecated">
  26162. <doc>
  26163. <![CDATA[Start the metrics system
  26164. @throws MetricsException]]>
  26165. </doc>
  26166. </method>
  26167. <method name="stop"
  26168. abstract="false" native="false" synchronized="false"
  26169. static="false" final="false" visibility="public"
  26170. deprecated="not deprecated">
  26171. <doc>
  26172. <![CDATA[Stop the metrics system
  26173. @throws MetricsException]]>
  26174. </doc>
  26175. </method>
  26176. <method name="startMetricsMBeans"
  26177. abstract="false" native="false" synchronized="false"
  26178. static="false" final="false" visibility="public"
  26179. deprecated="not deprecated">
  26180. <doc>
  26181. <![CDATA[Start metrics MBeans
  26182. @throws MetricsException]]>
  26183. </doc>
  26184. </method>
  26185. <method name="stopMetricsMBeans"
  26186. abstract="false" native="false" synchronized="false"
  26187. static="false" final="false" visibility="public"
  26188. deprecated="not deprecated">
  26189. <doc>
  26190. <![CDATA[Stop metrics MBeans.
  26191. Note, it doesn't stop the metrics system control MBean,
  26192. i.e this interface.
  26193. @throws MetricsException]]>
  26194. </doc>
  26195. </method>
  26196. <method name="currentConfig" return="java.lang.String"
  26197. abstract="false" native="false" synchronized="false"
  26198. static="false" final="false" visibility="public"
  26199. deprecated="not deprecated">
  26200. <doc>
  26201. <![CDATA[@return the current config
  26202. Avoided getConfig, as it'll turn into a "Config" attribute,
  26203. which doesn't support multiple line values in jconsole.
  26204. @throws MetricsException]]>
  26205. </doc>
  26206. </method>
  26207. <doc>
  26208. <![CDATA[The JMX interface to the metrics system]]>
  26209. </doc>
  26210. </interface>
  26211. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  26212. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  26213. <class name="MetricsTag" extends="java.lang.Object"
  26214. abstract="false"
  26215. static="false" final="false" visibility="public"
  26216. deprecated="not deprecated">
  26217. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  26218. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  26219. static="false" final="false" visibility="public"
  26220. deprecated="not deprecated">
  26221. <doc>
  26222. <![CDATA[Construct the tag with name, description and value
  26223. @param info of the tag
  26224. @param value of the tag]]>
  26225. </doc>
  26226. </constructor>
  26227. <method name="name" return="java.lang.String"
  26228. abstract="false" native="false" synchronized="false"
  26229. static="false" final="false" visibility="public"
  26230. deprecated="not deprecated">
  26231. </method>
  26232. <method name="description" return="java.lang.String"
  26233. abstract="false" native="false" synchronized="false"
  26234. static="false" final="false" visibility="public"
  26235. deprecated="not deprecated">
  26236. </method>
  26237. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26238. abstract="false" native="false" synchronized="false"
  26239. static="false" final="false" visibility="public"
  26240. deprecated="not deprecated">
  26241. <doc>
  26242. <![CDATA[@return the info object of the tag]]>
  26243. </doc>
  26244. </method>
  26245. <method name="value" return="java.lang.String"
  26246. abstract="false" native="false" synchronized="false"
  26247. static="false" final="false" visibility="public"
  26248. deprecated="not deprecated">
  26249. <doc>
  26250. <![CDATA[Get the value of the tag
  26251. @return the value]]>
  26252. </doc>
  26253. </method>
  26254. <method name="equals" return="boolean"
  26255. abstract="false" native="false" synchronized="false"
  26256. static="false" final="false" visibility="public"
  26257. deprecated="not deprecated">
  26258. <param name="obj" type="java.lang.Object"/>
  26259. </method>
  26260. <method name="hashCode" return="int"
  26261. abstract="false" native="false" synchronized="false"
  26262. static="false" final="false" visibility="public"
  26263. deprecated="not deprecated">
  26264. </method>
  26265. <method name="toString" return="java.lang.String"
  26266. abstract="false" native="false" synchronized="false"
  26267. static="false" final="false" visibility="public"
  26268. deprecated="not deprecated">
  26269. </method>
  26270. <doc>
  26271. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  26272. </doc>
  26273. </class>
  26274. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  26275. <!-- start class org.apache.hadoop.metrics2.MetricStringBuilder -->
  26276. <class name="MetricStringBuilder" extends="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26277. abstract="false"
  26278. static="false" final="false" visibility="public"
  26279. deprecated="not deprecated">
  26280. <constructor name="MetricStringBuilder" type="org.apache.hadoop.metrics2.MetricsCollector, java.lang.String, java.lang.String, java.lang.String"
  26281. static="false" final="false" visibility="public"
  26282. deprecated="not deprecated">
  26283. <doc>
  26284. <![CDATA[Build an instance.
  26285. @param parent parent collector. Unused in this instance; only used for
  26286. the {@link #parent()} method
  26287. @param prefix string before each entry
  26288. @param separator separator between name and value
  26289. @param suffix suffix after each entry]]>
  26290. </doc>
  26291. </constructor>
  26292. <method name="add" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  26293. abstract="false" native="false" synchronized="false"
  26294. static="false" final="false" visibility="public"
  26295. deprecated="not deprecated">
  26296. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26297. <param name="value" type="java.lang.Object"/>
  26298. </method>
  26299. <method name="tuple" return="org.apache.hadoop.metrics2.MetricStringBuilder"
  26300. abstract="false" native="false" synchronized="false"
  26301. static="false" final="false" visibility="public"
  26302. deprecated="not deprecated">
  26303. <param name="key" type="java.lang.String"/>
  26304. <param name="value" type="java.lang.String"/>
  26305. <doc>
  26306. <![CDATA[Add any key,val pair to the string, between the prefix and suffix,
  26307. separated by the separator.
  26308. @param key key
  26309. @param value value
  26310. @return this instance]]>
  26311. </doc>
  26312. </method>
  26313. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26314. abstract="false" native="false" synchronized="false"
  26315. static="false" final="false" visibility="public"
  26316. deprecated="not deprecated">
  26317. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26318. <param name="value" type="java.lang.String"/>
  26319. </method>
  26320. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26321. abstract="false" native="false" synchronized="false"
  26322. static="false" final="false" visibility="public"
  26323. deprecated="not deprecated">
  26324. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26325. </method>
  26326. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26327. abstract="false" native="false" synchronized="false"
  26328. static="false" final="false" visibility="public"
  26329. deprecated="not deprecated">
  26330. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  26331. </method>
  26332. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26333. abstract="false" native="false" synchronized="false"
  26334. static="false" final="false" visibility="public"
  26335. deprecated="not deprecated">
  26336. <param name="value" type="java.lang.String"/>
  26337. </method>
  26338. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26339. abstract="false" native="false" synchronized="false"
  26340. static="false" final="false" visibility="public"
  26341. deprecated="not deprecated">
  26342. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26343. <param name="value" type="int"/>
  26344. </method>
  26345. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26346. abstract="false" native="false" synchronized="false"
  26347. static="false" final="false" visibility="public"
  26348. deprecated="not deprecated">
  26349. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26350. <param name="value" type="long"/>
  26351. </method>
  26352. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26353. abstract="false" native="false" synchronized="false"
  26354. static="false" final="false" visibility="public"
  26355. deprecated="not deprecated">
  26356. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26357. <param name="value" type="int"/>
  26358. </method>
  26359. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26360. abstract="false" native="false" synchronized="false"
  26361. static="false" final="false" visibility="public"
  26362. deprecated="not deprecated">
  26363. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26364. <param name="value" type="long"/>
  26365. </method>
  26366. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26367. abstract="false" native="false" synchronized="false"
  26368. static="false" final="false" visibility="public"
  26369. deprecated="not deprecated">
  26370. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26371. <param name="value" type="float"/>
  26372. </method>
  26373. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26374. abstract="false" native="false" synchronized="false"
  26375. static="false" final="false" visibility="public"
  26376. deprecated="not deprecated">
  26377. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26378. <param name="value" type="double"/>
  26379. </method>
  26380. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  26381. abstract="false" native="false" synchronized="false"
  26382. static="false" final="false" visibility="public"
  26383. deprecated="not deprecated">
  26384. </method>
  26385. <method name="toString" return="java.lang.String"
  26386. abstract="false" native="false" synchronized="false"
  26387. static="false" final="false" visibility="public"
  26388. deprecated="not deprecated">
  26389. </method>
  26390. <doc>
  26391. <![CDATA[Build a string dump of the metrics.
  26392. The {@link #toString()} operator dumps out all values collected.
  26393. Every entry is formatted as
  26394. {@code prefix + name + separator + value + suffix}]]>
  26395. </doc>
  26396. </class>
  26397. <!-- end class org.apache.hadoop.metrics2.MetricStringBuilder -->
  26398. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  26399. <interface name="MetricsVisitor" abstract="true"
  26400. static="false" final="false" visibility="public"
  26401. deprecated="not deprecated">
  26402. <method name="gauge"
  26403. abstract="false" native="false" synchronized="false"
  26404. static="false" final="false" visibility="public"
  26405. deprecated="not deprecated">
  26406. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26407. <param name="value" type="int"/>
  26408. <doc>
  26409. <![CDATA[Callback for integer value gauges
  26410. @param info the metric info
  26411. @param value of the metric]]>
  26412. </doc>
  26413. </method>
  26414. <method name="gauge"
  26415. abstract="false" native="false" synchronized="false"
  26416. static="false" final="false" visibility="public"
  26417. deprecated="not deprecated">
  26418. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26419. <param name="value" type="long"/>
  26420. <doc>
  26421. <![CDATA[Callback for long value gauges
  26422. @param info the metric info
  26423. @param value of the metric]]>
  26424. </doc>
  26425. </method>
  26426. <method name="gauge"
  26427. abstract="false" native="false" synchronized="false"
  26428. static="false" final="false" visibility="public"
  26429. deprecated="not deprecated">
  26430. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26431. <param name="value" type="float"/>
  26432. <doc>
  26433. <![CDATA[Callback for float value gauges
  26434. @param info the metric info
  26435. @param value of the metric]]>
  26436. </doc>
  26437. </method>
  26438. <method name="gauge"
  26439. abstract="false" native="false" synchronized="false"
  26440. static="false" final="false" visibility="public"
  26441. deprecated="not deprecated">
  26442. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26443. <param name="value" type="double"/>
  26444. <doc>
  26445. <![CDATA[Callback for double value gauges
  26446. @param info the metric info
  26447. @param value of the metric]]>
  26448. </doc>
  26449. </method>
  26450. <method name="counter"
  26451. abstract="false" native="false" synchronized="false"
  26452. static="false" final="false" visibility="public"
  26453. deprecated="not deprecated">
  26454. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26455. <param name="value" type="int"/>
  26456. <doc>
  26457. <![CDATA[Callback for integer value counters
  26458. @param info the metric info
  26459. @param value of the metric]]>
  26460. </doc>
  26461. </method>
  26462. <method name="counter"
  26463. abstract="false" native="false" synchronized="false"
  26464. static="false" final="false" visibility="public"
  26465. deprecated="not deprecated">
  26466. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26467. <param name="value" type="long"/>
  26468. <doc>
  26469. <![CDATA[Callback for long value counters
  26470. @param info the metric info
  26471. @param value of the metric]]>
  26472. </doc>
  26473. </method>
  26474. <doc>
  26475. <![CDATA[A visitor interface for metrics]]>
  26476. </doc>
  26477. </interface>
  26478. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  26479. </package>
  26480. <package name="org.apache.hadoop.metrics2.annotation">
  26481. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  26482. <class name="Metric" abstract="true"
  26483. static="false" final="false" visibility="public"
  26484. deprecated="not deprecated">
  26485. <implements name="java.lang.annotation.Annotation"/>
  26486. <doc>
  26487. <![CDATA[Annotation interface for a single metric]]>
  26488. </doc>
  26489. </class>
  26490. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  26491. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  26492. <class name="Metrics" abstract="true"
  26493. static="false" final="false" visibility="public"
  26494. deprecated="not deprecated">
  26495. <implements name="java.lang.annotation.Annotation"/>
  26496. <doc>
  26497. <![CDATA[Annotation interface for a group of metrics]]>
  26498. </doc>
  26499. </class>
  26500. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  26501. </package>
  26502. <package name="org.apache.hadoop.metrics2.filter">
  26503. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  26504. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  26505. abstract="false"
  26506. static="false" final="false" visibility="public"
  26507. deprecated="not deprecated">
  26508. <constructor name="GlobFilter"
  26509. static="false" final="false" visibility="public"
  26510. deprecated="not deprecated">
  26511. </constructor>
  26512. <method name="compile" return="java.util.regex.Pattern"
  26513. abstract="false" native="false" synchronized="false"
  26514. static="false" final="false" visibility="protected"
  26515. deprecated="not deprecated">
  26516. <param name="s" type="java.lang.String"/>
  26517. </method>
  26518. <doc>
  26519. <![CDATA[A glob pattern filter for metrics.
  26520. The class name is used in metrics config files]]>
  26521. </doc>
  26522. </class>
  26523. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  26524. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  26525. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  26526. abstract="false"
  26527. static="false" final="false" visibility="public"
  26528. deprecated="not deprecated">
  26529. <constructor name="RegexFilter"
  26530. static="false" final="false" visibility="public"
  26531. deprecated="not deprecated">
  26532. </constructor>
  26533. <method name="compile" return="java.util.regex.Pattern"
  26534. abstract="false" native="false" synchronized="false"
  26535. static="false" final="false" visibility="protected"
  26536. deprecated="not deprecated">
  26537. <param name="s" type="java.lang.String"/>
  26538. </method>
  26539. <doc>
  26540. <![CDATA[A regex pattern filter for metrics]]>
  26541. </doc>
  26542. </class>
  26543. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  26544. </package>
  26545. <package name="org.apache.hadoop.metrics2.lib">
  26546. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26547. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  26548. abstract="false"
  26549. static="false" final="true" visibility="public"
  26550. deprecated="not deprecated">
  26551. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  26552. abstract="false" native="false" synchronized="false"
  26553. static="true" final="false" visibility="public"
  26554. deprecated="not deprecated">
  26555. </method>
  26556. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26557. abstract="false" native="false" synchronized="false"
  26558. static="true" final="false" visibility="public"
  26559. deprecated="not deprecated">
  26560. <param name="name" type="java.lang.String"/>
  26561. </method>
  26562. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  26563. abstract="false" native="false" synchronized="false"
  26564. static="true" final="false" visibility="public"
  26565. deprecated="not deprecated">
  26566. <param name="prefix" type="java.lang.String"/>
  26567. <doc>
  26568. <![CDATA[Convenience method to initialize the metrics system
  26569. @param prefix for the metrics system configuration
  26570. @return the metrics system instance]]>
  26571. </doc>
  26572. </method>
  26573. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  26574. abstract="false" native="false" synchronized="false"
  26575. static="true" final="false" visibility="public"
  26576. deprecated="not deprecated">
  26577. <doc>
  26578. <![CDATA[@return the metrics system object]]>
  26579. </doc>
  26580. </method>
  26581. <method name="shutdown"
  26582. abstract="false" native="false" synchronized="false"
  26583. static="true" final="false" visibility="public"
  26584. deprecated="not deprecated">
  26585. <doc>
  26586. <![CDATA[Shutdown the metrics system]]>
  26587. </doc>
  26588. </method>
  26589. <doc>
  26590. <![CDATA[The default metrics system singleton]]>
  26591. </doc>
  26592. </class>
  26593. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26594. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  26595. <class name="Interns" extends="java.lang.Object"
  26596. abstract="false"
  26597. static="false" final="false" visibility="public"
  26598. deprecated="not deprecated">
  26599. <constructor name="Interns"
  26600. static="false" final="false" visibility="public"
  26601. deprecated="not deprecated">
  26602. </constructor>
  26603. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26604. abstract="false" native="false" synchronized="false"
  26605. static="true" final="false" visibility="public"
  26606. deprecated="not deprecated">
  26607. <param name="name" type="java.lang.String"/>
  26608. <param name="description" type="java.lang.String"/>
  26609. <doc>
  26610. <![CDATA[Get a metric info object.
  26611. @param name Name of metric info object
  26612. @param description Description of metric info object
  26613. @return an interned metric info object]]>
  26614. </doc>
  26615. </method>
  26616. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  26617. abstract="false" native="false" synchronized="false"
  26618. static="true" final="false" visibility="public"
  26619. deprecated="not deprecated">
  26620. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26621. <param name="value" type="java.lang.String"/>
  26622. <doc>
  26623. <![CDATA[Get a metrics tag.
  26624. @param info of the tag
  26625. @param value of the tag
  26626. @return an interned metrics tag]]>
  26627. </doc>
  26628. </method>
  26629. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  26630. abstract="false" native="false" synchronized="false"
  26631. static="true" final="false" visibility="public"
  26632. deprecated="not deprecated">
  26633. <param name="name" type="java.lang.String"/>
  26634. <param name="description" type="java.lang.String"/>
  26635. <param name="value" type="java.lang.String"/>
  26636. <doc>
  26637. <![CDATA[Get a metrics tag.
  26638. @param name of the tag
  26639. @param description of the tag
  26640. @param value of the tag
  26641. @return an interned metrics tag]]>
  26642. </doc>
  26643. </method>
  26644. <doc>
  26645. <![CDATA[Helpers to create interned metrics info.]]>
  26646. </doc>
  26647. </class>
  26648. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  26649. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26650. <class name="MetricsRegistry" extends="java.lang.Object"
  26651. abstract="false"
  26652. static="false" final="false" visibility="public"
  26653. deprecated="not deprecated">
  26654. <constructor name="MetricsRegistry" type="java.lang.String"
  26655. static="false" final="false" visibility="public"
  26656. deprecated="not deprecated">
  26657. <doc>
  26658. <![CDATA[Construct the registry with a record name
  26659. @param name of the record of the metrics]]>
  26660. </doc>
  26661. </constructor>
  26662. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  26663. static="false" final="false" visibility="public"
  26664. deprecated="not deprecated">
  26665. <doc>
  26666. <![CDATA[Construct the registry with a metadata object
  26667. @param info the info object for the metrics record/group]]>
  26668. </doc>
  26669. </constructor>
  26670. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  26671. abstract="false" native="false" synchronized="false"
  26672. static="false" final="false" visibility="public"
  26673. deprecated="not deprecated">
  26674. <doc>
  26675. <![CDATA[@return the info object of the metrics registry]]>
  26676. </doc>
  26677. </method>
  26678. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  26679. abstract="false" native="false" synchronized="true"
  26680. static="false" final="false" visibility="public"
  26681. deprecated="not deprecated">
  26682. <param name="name" type="java.lang.String"/>
  26683. <doc>
  26684. <![CDATA[Get a metric by name
  26685. @param name of the metric
  26686. @return the metric object]]>
  26687. </doc>
  26688. </method>
  26689. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  26690. abstract="false" native="false" synchronized="true"
  26691. static="false" final="false" visibility="public"
  26692. deprecated="not deprecated">
  26693. <param name="name" type="java.lang.String"/>
  26694. <doc>
  26695. <![CDATA[Get a tag by name
  26696. @param name of the tag
  26697. @return the tag object]]>
  26698. </doc>
  26699. </method>
  26700. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  26701. abstract="false" native="false" synchronized="false"
  26702. static="false" final="false" visibility="public"
  26703. deprecated="not deprecated">
  26704. <param name="name" type="java.lang.String"/>
  26705. <param name="desc" type="java.lang.String"/>
  26706. <param name="iVal" type="int"/>
  26707. <doc>
  26708. <![CDATA[Create a mutable integer counter
  26709. @param name of the metric
  26710. @param desc metric description
  26711. @param iVal initial value
  26712. @return a new counter object]]>
  26713. </doc>
  26714. </method>
  26715. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  26716. abstract="false" native="false" synchronized="true"
  26717. static="false" final="false" visibility="public"
  26718. deprecated="not deprecated">
  26719. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26720. <param name="iVal" type="int"/>
  26721. <doc>
  26722. <![CDATA[Create a mutable integer counter
  26723. @param info metadata of the metric
  26724. @param iVal initial value
  26725. @return a new counter object]]>
  26726. </doc>
  26727. </method>
  26728. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  26729. abstract="false" native="false" synchronized="false"
  26730. static="false" final="false" visibility="public"
  26731. deprecated="not deprecated">
  26732. <param name="name" type="java.lang.String"/>
  26733. <param name="desc" type="java.lang.String"/>
  26734. <param name="iVal" type="long"/>
  26735. <doc>
  26736. <![CDATA[Create a mutable long integer counter
  26737. @param name of the metric
  26738. @param desc metric description
  26739. @param iVal initial value
  26740. @return a new counter object]]>
  26741. </doc>
  26742. </method>
  26743. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  26744. abstract="false" native="false" synchronized="true"
  26745. static="false" final="false" visibility="public"
  26746. deprecated="not deprecated">
  26747. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26748. <param name="iVal" type="long"/>
  26749. <doc>
  26750. <![CDATA[Create a mutable long integer counter
  26751. @param info metadata of the metric
  26752. @param iVal initial value
  26753. @return a new counter object]]>
  26754. </doc>
  26755. </method>
  26756. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  26757. abstract="false" native="false" synchronized="false"
  26758. static="false" final="false" visibility="public"
  26759. deprecated="not deprecated">
  26760. <param name="name" type="java.lang.String"/>
  26761. <param name="desc" type="java.lang.String"/>
  26762. <param name="iVal" type="int"/>
  26763. <doc>
  26764. <![CDATA[Create a mutable integer gauge
  26765. @param name of the metric
  26766. @param desc metric description
  26767. @param iVal initial value
  26768. @return a new gauge object]]>
  26769. </doc>
  26770. </method>
  26771. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  26772. abstract="false" native="false" synchronized="true"
  26773. static="false" final="false" visibility="public"
  26774. deprecated="not deprecated">
  26775. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26776. <param name="iVal" type="int"/>
  26777. <doc>
  26778. <![CDATA[Create a mutable integer gauge
  26779. @param info metadata of the metric
  26780. @param iVal initial value
  26781. @return a new gauge object]]>
  26782. </doc>
  26783. </method>
  26784. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  26785. abstract="false" native="false" synchronized="false"
  26786. static="false" final="false" visibility="public"
  26787. deprecated="not deprecated">
  26788. <param name="name" type="java.lang.String"/>
  26789. <param name="desc" type="java.lang.String"/>
  26790. <param name="iVal" type="long"/>
  26791. <doc>
  26792. <![CDATA[Create a mutable long integer gauge
  26793. @param name of the metric
  26794. @param desc metric description
  26795. @param iVal initial value
  26796. @return a new gauge object]]>
  26797. </doc>
  26798. </method>
  26799. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  26800. abstract="false" native="false" synchronized="true"
  26801. static="false" final="false" visibility="public"
  26802. deprecated="not deprecated">
  26803. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26804. <param name="iVal" type="long"/>
  26805. <doc>
  26806. <![CDATA[Create a mutable long integer gauge
  26807. @param info metadata of the metric
  26808. @param iVal initial value
  26809. @return a new gauge object]]>
  26810. </doc>
  26811. </method>
  26812. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  26813. abstract="false" native="false" synchronized="false"
  26814. static="false" final="false" visibility="public"
  26815. deprecated="not deprecated">
  26816. <param name="name" type="java.lang.String"/>
  26817. <param name="desc" type="java.lang.String"/>
  26818. <param name="iVal" type="float"/>
  26819. <doc>
  26820. <![CDATA[Create a mutable float gauge
  26821. @param name of the metric
  26822. @param desc metric description
  26823. @param iVal initial value
  26824. @return a new gauge object]]>
  26825. </doc>
  26826. </method>
  26827. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeFloat"
  26828. abstract="false" native="false" synchronized="true"
  26829. static="false" final="false" visibility="public"
  26830. deprecated="not deprecated">
  26831. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  26832. <param name="iVal" type="float"/>
  26833. <doc>
  26834. <![CDATA[Create a mutable float gauge
  26835. @param info metadata of the metric
  26836. @param iVal initial value
  26837. @return a new gauge object]]>
  26838. </doc>
  26839. </method>
  26840. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  26841. abstract="false" native="false" synchronized="true"
  26842. static="false" final="false" visibility="public"
  26843. deprecated="not deprecated">
  26844. <param name="name" type="java.lang.String"/>
  26845. <param name="desc" type="java.lang.String"/>
  26846. <param name="sampleName" type="java.lang.String"/>
  26847. <param name="valueName" type="java.lang.String"/>
  26848. <param name="interval" type="int"/>
  26849. <doc>
  26850. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  26851. @param name of the metric
  26852. @param desc metric description
  26853. @param sampleName of the metric (e.g., "Ops")
  26854. @param valueName of the metric (e.g., "Time" or "Latency")
  26855. @param interval rollover interval of estimator in seconds
  26856. @return a new quantile estimator object
  26857. @throws MetricsException if interval is not a positive integer]]>
  26858. </doc>
  26859. </method>
  26860. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  26861. abstract="false" native="false" synchronized="true"
  26862. static="false" final="false" visibility="public"
  26863. deprecated="not deprecated">
  26864. <param name="name" type="java.lang.String"/>
  26865. <param name="desc" type="java.lang.String"/>
  26866. <param name="sampleName" type="java.lang.String"/>
  26867. <param name="valueName" type="java.lang.String"/>
  26868. <param name="extended" type="boolean"/>
  26869. <doc>
  26870. <![CDATA[Create a mutable metric with stats
  26871. @param name of the metric
  26872. @param desc metric description
  26873. @param sampleName of the metric (e.g., "Ops")
  26874. @param valueName of the metric (e.g., "Time" or "Latency")
  26875. @param extended produce extended stat (stdev, min/max etc.) if true.
  26876. @return a new mutable stat metric object]]>
  26877. </doc>
  26878. </method>
  26879. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  26880. abstract="false" native="false" synchronized="false"
  26881. static="false" final="false" visibility="public"
  26882. deprecated="not deprecated">
  26883. <param name="name" type="java.lang.String"/>
  26884. <param name="desc" type="java.lang.String"/>
  26885. <param name="sampleName" type="java.lang.String"/>
  26886. <param name="valueName" type="java.lang.String"/>
  26887. <doc>
  26888. <![CDATA[Create a mutable metric with stats
  26889. @param name of the metric
  26890. @param desc metric description
  26891. @param sampleName of the metric (e.g., "Ops")
  26892. @param valueName of the metric (e.g., "Time" or "Latency")
  26893. @return a new mutable metric object]]>
  26894. </doc>
  26895. </method>
  26896. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  26897. abstract="false" native="false" synchronized="false"
  26898. static="false" final="false" visibility="public"
  26899. deprecated="not deprecated">
  26900. <param name="name" type="java.lang.String"/>
  26901. <doc>
  26902. <![CDATA[Create a mutable rate metric
  26903. @param name of the metric
  26904. @return a new mutable metric object]]>
  26905. </doc>
  26906. </method>
  26907. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  26908. abstract="false" native="false" synchronized="false"
  26909. static="false" final="false" visibility="public"
  26910. deprecated="not deprecated">
  26911. <param name="name" type="java.lang.String"/>
  26912. <param name="description" type="java.lang.String"/>
  26913. <doc>
  26914. <![CDATA[Create a mutable rate metric
  26915. @param name of the metric
  26916. @param description of the metric
  26917. @return a new mutable rate metric object]]>
  26918. </doc>
  26919. </method>
  26920. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  26921. abstract="false" native="false" synchronized="false"
  26922. static="false" final="false" visibility="public"
  26923. deprecated="not deprecated">
  26924. <param name="name" type="java.lang.String"/>
  26925. <param name="desc" type="java.lang.String"/>
  26926. <param name="extended" type="boolean"/>
  26927. <doc>
  26928. <![CDATA[Create a mutable rate metric (for throughput measurement)
  26929. @param name of the metric
  26930. @param desc description
  26931. @param extended produce extended stat (stdev/min/max etc.) if true
  26932. @return a new mutable rate metric object]]>
  26933. </doc>
  26934. </method>
  26935. <method name="newRatesWithAggregation" return="org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation"
  26936. abstract="false" native="false" synchronized="true"
  26937. static="false" final="false" visibility="public"
  26938. deprecated="not deprecated">
  26939. <param name="name" type="java.lang.String"/>
  26940. </method>
  26941. <method name="newMutableRollingAverages" return="org.apache.hadoop.metrics2.lib.MutableRollingAverages"
  26942. abstract="false" native="false" synchronized="true"
  26943. static="false" final="false" visibility="public"
  26944. deprecated="not deprecated">
  26945. <param name="name" type="java.lang.String"/>
  26946. <param name="valueName" type="java.lang.String"/>
  26947. </method>
  26948. <method name="add"
  26949. abstract="false" native="false" synchronized="true"
  26950. static="false" final="false" visibility="public"
  26951. deprecated="not deprecated">
  26952. <param name="name" type="java.lang.String"/>
  26953. <param name="value" type="long"/>
  26954. <doc>
  26955. <![CDATA[Add sample to a stat metric by name.
  26956. @param name of the metric
  26957. @param value of the snapshot to add]]>
  26958. </doc>
  26959. </method>
  26960. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26961. abstract="false" native="false" synchronized="false"
  26962. static="false" final="false" visibility="public"
  26963. deprecated="not deprecated">
  26964. <param name="name" type="java.lang.String"/>
  26965. <doc>
  26966. <![CDATA[Set the metrics context tag
  26967. @param name of the context
  26968. @return the registry itself as a convenience]]>
  26969. </doc>
  26970. </method>
  26971. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26972. abstract="false" native="false" synchronized="false"
  26973. static="false" final="false" visibility="public"
  26974. deprecated="not deprecated">
  26975. <param name="name" type="java.lang.String"/>
  26976. <param name="description" type="java.lang.String"/>
  26977. <param name="value" type="java.lang.String"/>
  26978. <doc>
  26979. <![CDATA[Add a tag to the metrics
  26980. @param name of the tag
  26981. @param description of the tag
  26982. @param value of the tag
  26983. @return the registry (for keep adding tags)]]>
  26984. </doc>
  26985. </method>
  26986. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. <param name="name" type="java.lang.String"/>
  26991. <param name="description" type="java.lang.String"/>
  26992. <param name="value" type="java.lang.String"/>
  26993. <param name="override" type="boolean"/>
  26994. <doc>
  26995. <![CDATA[Add a tag to the metrics
  26996. @param name of the tag
  26997. @param description of the tag
  26998. @param value of the tag
  26999. @param override existing tag if true
  27000. @return the registry (for keep adding tags)]]>
  27001. </doc>
  27002. </method>
  27003. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27004. abstract="false" native="false" synchronized="true"
  27005. static="false" final="false" visibility="public"
  27006. deprecated="not deprecated">
  27007. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27008. <param name="value" type="java.lang.String"/>
  27009. <param name="override" type="boolean"/>
  27010. <doc>
  27011. <![CDATA[Add a tag to the metrics
  27012. @param info metadata of the tag
  27013. @param value of the tag
  27014. @param override existing tag if true
  27015. @return the registry (for keep adding tags etc.)]]>
  27016. </doc>
  27017. </method>
  27018. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27019. abstract="false" native="false" synchronized="false"
  27020. static="false" final="false" visibility="public"
  27021. deprecated="not deprecated">
  27022. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  27023. <param name="value" type="java.lang.String"/>
  27024. </method>
  27025. <method name="snapshot"
  27026. abstract="false" native="false" synchronized="true"
  27027. static="false" final="false" visibility="public"
  27028. deprecated="not deprecated">
  27029. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27030. <param name="all" type="boolean"/>
  27031. <doc>
  27032. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  27033. @param builder to contain the metrics snapshot
  27034. @param all get all the metrics even if the values are not changed.]]>
  27035. </doc>
  27036. </method>
  27037. <method name="toString" return="java.lang.String"
  27038. abstract="false" native="false" synchronized="false"
  27039. static="false" final="false" visibility="public"
  27040. deprecated="not deprecated">
  27041. </method>
  27042. <doc>
  27043. <![CDATA[An optional metrics registry class for creating and maintaining a
  27044. collection of MetricsMutables, making writing metrics source easier.]]>
  27045. </doc>
  27046. </class>
  27047. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  27048. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  27049. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27050. abstract="true"
  27051. static="false" final="false" visibility="public"
  27052. deprecated="not deprecated">
  27053. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  27054. static="false" final="false" visibility="protected"
  27055. deprecated="not deprecated">
  27056. </constructor>
  27057. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  27058. abstract="false" native="false" synchronized="false"
  27059. static="false" final="false" visibility="protected"
  27060. deprecated="not deprecated">
  27061. </method>
  27062. <method name="incr"
  27063. abstract="true" native="false" synchronized="false"
  27064. static="false" final="false" visibility="public"
  27065. deprecated="not deprecated">
  27066. <doc>
  27067. <![CDATA[Increment the metric value by 1.]]>
  27068. </doc>
  27069. </method>
  27070. <doc>
  27071. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  27072. </doc>
  27073. </class>
  27074. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  27075. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  27076. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  27077. abstract="false"
  27078. static="false" final="false" visibility="public"
  27079. deprecated="not deprecated">
  27080. <method name="incr"
  27081. abstract="false" native="false" synchronized="false"
  27082. static="false" final="false" visibility="public"
  27083. deprecated="not deprecated">
  27084. </method>
  27085. <method name="incr"
  27086. abstract="false" native="false" synchronized="true"
  27087. static="false" final="false" visibility="public"
  27088. deprecated="not deprecated">
  27089. <param name="delta" type="int"/>
  27090. <doc>
  27091. <![CDATA[Increment the value by a delta
  27092. @param delta of the increment]]>
  27093. </doc>
  27094. </method>
  27095. <method name="value" return="int"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. </method>
  27100. <method name="snapshot"
  27101. abstract="false" native="false" synchronized="false"
  27102. static="false" final="false" visibility="public"
  27103. deprecated="not deprecated">
  27104. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27105. <param name="all" type="boolean"/>
  27106. </method>
  27107. <doc>
  27108. <![CDATA[A mutable int counter for implementing metrics sources]]>
  27109. </doc>
  27110. </class>
  27111. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  27112. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  27113. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  27114. abstract="false"
  27115. static="false" final="false" visibility="public"
  27116. deprecated="not deprecated">
  27117. <constructor name="MutableCounterLong" type="org.apache.hadoop.metrics2.MetricsInfo, long"
  27118. static="false" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. </constructor>
  27121. <method name="incr"
  27122. abstract="false" native="false" synchronized="false"
  27123. static="false" final="false" visibility="public"
  27124. deprecated="not deprecated">
  27125. </method>
  27126. <method name="incr"
  27127. abstract="false" native="false" synchronized="false"
  27128. static="false" final="false" visibility="public"
  27129. deprecated="not deprecated">
  27130. <param name="delta" type="long"/>
  27131. <doc>
  27132. <![CDATA[Increment the value by a delta
  27133. @param delta of the increment]]>
  27134. </doc>
  27135. </method>
  27136. <method name="value" return="long"
  27137. abstract="false" native="false" synchronized="false"
  27138. static="false" final="false" visibility="public"
  27139. deprecated="not deprecated">
  27140. </method>
  27141. <method name="snapshot"
  27142. abstract="false" native="false" synchronized="false"
  27143. static="false" final="false" visibility="public"
  27144. deprecated="not deprecated">
  27145. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27146. <param name="all" type="boolean"/>
  27147. </method>
  27148. <doc>
  27149. <![CDATA[A mutable long counter]]>
  27150. </doc>
  27151. </class>
  27152. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  27153. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  27154. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27155. abstract="true"
  27156. static="false" final="false" visibility="public"
  27157. deprecated="not deprecated">
  27158. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  27159. static="false" final="false" visibility="protected"
  27160. deprecated="not deprecated">
  27161. </constructor>
  27162. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  27163. abstract="false" native="false" synchronized="false"
  27164. static="false" final="false" visibility="protected"
  27165. deprecated="not deprecated">
  27166. </method>
  27167. <method name="incr"
  27168. abstract="true" native="false" synchronized="false"
  27169. static="false" final="false" visibility="public"
  27170. deprecated="not deprecated">
  27171. <doc>
  27172. <![CDATA[Increment the value of the metric by 1]]>
  27173. </doc>
  27174. </method>
  27175. <method name="decr"
  27176. abstract="true" native="false" synchronized="false"
  27177. static="false" final="false" visibility="public"
  27178. deprecated="not deprecated">
  27179. <doc>
  27180. <![CDATA[Decrement the value of the metric by 1]]>
  27181. </doc>
  27182. </method>
  27183. <doc>
  27184. <![CDATA[The mutable gauge metric interface]]>
  27185. </doc>
  27186. </class>
  27187. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  27188. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  27189. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  27190. abstract="false"
  27191. static="false" final="false" visibility="public"
  27192. deprecated="not deprecated">
  27193. <method name="value" return="int"
  27194. abstract="false" native="false" synchronized="false"
  27195. static="false" final="false" visibility="public"
  27196. deprecated="not deprecated">
  27197. </method>
  27198. <method name="incr"
  27199. abstract="false" native="false" synchronized="false"
  27200. static="false" final="false" visibility="public"
  27201. deprecated="not deprecated">
  27202. </method>
  27203. <method name="incr"
  27204. abstract="false" native="false" synchronized="false"
  27205. static="false" final="false" visibility="public"
  27206. deprecated="not deprecated">
  27207. <param name="delta" type="int"/>
  27208. <doc>
  27209. <![CDATA[Increment by delta
  27210. @param delta of the increment]]>
  27211. </doc>
  27212. </method>
  27213. <method name="decr"
  27214. abstract="false" native="false" synchronized="false"
  27215. static="false" final="false" visibility="public"
  27216. deprecated="not deprecated">
  27217. </method>
  27218. <method name="decr"
  27219. abstract="false" native="false" synchronized="false"
  27220. static="false" final="false" visibility="public"
  27221. deprecated="not deprecated">
  27222. <param name="delta" type="int"/>
  27223. <doc>
  27224. <![CDATA[decrement by delta
  27225. @param delta of the decrement]]>
  27226. </doc>
  27227. </method>
  27228. <method name="set"
  27229. abstract="false" native="false" synchronized="false"
  27230. static="false" final="false" visibility="public"
  27231. deprecated="not deprecated">
  27232. <param name="value" type="int"/>
  27233. <doc>
  27234. <![CDATA[Set the value of the metric
  27235. @param value to set]]>
  27236. </doc>
  27237. </method>
  27238. <method name="snapshot"
  27239. abstract="false" native="false" synchronized="false"
  27240. static="false" final="false" visibility="public"
  27241. deprecated="not deprecated">
  27242. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27243. <param name="all" type="boolean"/>
  27244. </method>
  27245. <doc>
  27246. <![CDATA[A mutable int gauge]]>
  27247. </doc>
  27248. </class>
  27249. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  27250. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  27251. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  27252. abstract="false"
  27253. static="false" final="false" visibility="public"
  27254. deprecated="not deprecated">
  27255. <method name="value" return="long"
  27256. abstract="false" native="false" synchronized="false"
  27257. static="false" final="false" visibility="public"
  27258. deprecated="not deprecated">
  27259. </method>
  27260. <method name="incr"
  27261. abstract="false" native="false" synchronized="false"
  27262. static="false" final="false" visibility="public"
  27263. deprecated="not deprecated">
  27264. </method>
  27265. <method name="incr"
  27266. abstract="false" native="false" synchronized="false"
  27267. static="false" final="false" visibility="public"
  27268. deprecated="not deprecated">
  27269. <param name="delta" type="long"/>
  27270. <doc>
  27271. <![CDATA[Increment by delta
  27272. @param delta of the increment]]>
  27273. </doc>
  27274. </method>
  27275. <method name="decr"
  27276. abstract="false" native="false" synchronized="false"
  27277. static="false" final="false" visibility="public"
  27278. deprecated="not deprecated">
  27279. </method>
  27280. <method name="decr"
  27281. abstract="false" native="false" synchronized="false"
  27282. static="false" final="false" visibility="public"
  27283. deprecated="not deprecated">
  27284. <param name="delta" type="long"/>
  27285. <doc>
  27286. <![CDATA[decrement by delta
  27287. @param delta of the decrement]]>
  27288. </doc>
  27289. </method>
  27290. <method name="set"
  27291. abstract="false" native="false" synchronized="false"
  27292. static="false" final="false" visibility="public"
  27293. deprecated="not deprecated">
  27294. <param name="value" type="long"/>
  27295. <doc>
  27296. <![CDATA[Set the value of the metric
  27297. @param value to set]]>
  27298. </doc>
  27299. </method>
  27300. <method name="snapshot"
  27301. abstract="false" native="false" synchronized="false"
  27302. static="false" final="false" visibility="public"
  27303. deprecated="not deprecated">
  27304. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27305. <param name="all" type="boolean"/>
  27306. </method>
  27307. <doc>
  27308. <![CDATA[A mutable long gauge]]>
  27309. </doc>
  27310. </class>
  27311. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  27312. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  27313. <class name="MutableMetric" extends="java.lang.Object"
  27314. abstract="true"
  27315. static="false" final="false" visibility="public"
  27316. deprecated="not deprecated">
  27317. <constructor name="MutableMetric"
  27318. static="false" final="false" visibility="public"
  27319. deprecated="not deprecated">
  27320. </constructor>
  27321. <method name="snapshot"
  27322. abstract="true" native="false" synchronized="false"
  27323. static="false" final="false" visibility="public"
  27324. deprecated="not deprecated">
  27325. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27326. <param name="all" type="boolean"/>
  27327. <doc>
  27328. <![CDATA[Get a snapshot of the metric
  27329. @param builder the metrics record builder
  27330. @param all if true, snapshot unchanged metrics as well]]>
  27331. </doc>
  27332. </method>
  27333. <method name="snapshot"
  27334. abstract="false" native="false" synchronized="false"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27338. <doc>
  27339. <![CDATA[Get a snapshot of metric if changed
  27340. @param builder the metrics record builder]]>
  27341. </doc>
  27342. </method>
  27343. <method name="setChanged"
  27344. abstract="false" native="false" synchronized="false"
  27345. static="false" final="false" visibility="protected"
  27346. deprecated="not deprecated">
  27347. <doc>
  27348. <![CDATA[Set the changed flag in mutable operations]]>
  27349. </doc>
  27350. </method>
  27351. <method name="clearChanged"
  27352. abstract="false" native="false" synchronized="false"
  27353. static="false" final="false" visibility="protected"
  27354. deprecated="not deprecated">
  27355. <doc>
  27356. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27357. </doc>
  27358. </method>
  27359. <method name="changed" return="boolean"
  27360. abstract="false" native="false" synchronized="false"
  27361. static="false" final="false" visibility="public"
  27362. deprecated="not deprecated">
  27363. <doc>
  27364. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27365. </doc>
  27366. </method>
  27367. <doc>
  27368. <![CDATA[The mutable metric interface]]>
  27369. </doc>
  27370. </class>
  27371. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  27372. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  27373. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27374. abstract="false"
  27375. static="false" final="false" visibility="public"
  27376. deprecated="not deprecated">
  27377. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  27378. static="false" final="false" visibility="public"
  27379. deprecated="not deprecated">
  27380. <doc>
  27381. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  27382. over on the specified time interval.
  27383. @param name
  27384. of the metric
  27385. @param description
  27386. long-form textual description of the metric
  27387. @param sampleName
  27388. type of items in the stream (e.g., "Ops")
  27389. @param valueName
  27390. type of the values
  27391. @param interval
  27392. rollover interval (in seconds) of the estimator]]>
  27393. </doc>
  27394. </constructor>
  27395. <method name="snapshot"
  27396. abstract="false" native="false" synchronized="true"
  27397. static="false" final="false" visibility="public"
  27398. deprecated="not deprecated">
  27399. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27400. <param name="all" type="boolean"/>
  27401. </method>
  27402. <method name="add"
  27403. abstract="false" native="false" synchronized="true"
  27404. static="false" final="false" visibility="public"
  27405. deprecated="not deprecated">
  27406. <param name="value" type="long"/>
  27407. </method>
  27408. <method name="getInterval" return="int"
  27409. abstract="false" native="false" synchronized="false"
  27410. static="false" final="false" visibility="public"
  27411. deprecated="not deprecated">
  27412. </method>
  27413. <method name="stop"
  27414. abstract="false" native="false" synchronized="false"
  27415. static="false" final="false" visibility="public"
  27416. deprecated="not deprecated">
  27417. </method>
  27418. <method name="getEstimator" return="org.apache.hadoop.metrics2.util.QuantileEstimator"
  27419. abstract="false" native="false" synchronized="true"
  27420. static="false" final="false" visibility="public"
  27421. deprecated="not deprecated">
  27422. <doc>
  27423. <![CDATA[Get the quantile estimator.
  27424. @return the quantile estimator]]>
  27425. </doc>
  27426. </method>
  27427. <method name="setEstimator"
  27428. abstract="false" native="false" synchronized="true"
  27429. static="false" final="false" visibility="public"
  27430. deprecated="not deprecated">
  27431. <param name="quantileEstimator" type="org.apache.hadoop.metrics2.util.QuantileEstimator"/>
  27432. </method>
  27433. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  27434. transient="false" volatile="false"
  27435. static="true" final="true" visibility="public"
  27436. deprecated="not deprecated">
  27437. </field>
  27438. <field name="previousSnapshot" type="java.util.Map"
  27439. transient="false" volatile="false"
  27440. static="false" final="false" visibility="protected"
  27441. deprecated="not deprecated">
  27442. </field>
  27443. <doc>
  27444. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  27445. quantiles with provably low error bounds. This is particularly useful for
  27446. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  27447. </doc>
  27448. </class>
  27449. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  27450. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  27451. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  27452. abstract="false"
  27453. static="false" final="false" visibility="public"
  27454. deprecated="not deprecated">
  27455. <doc>
  27456. <![CDATA[A convenient mutable metric for throughput measurement]]>
  27457. </doc>
  27458. </class>
  27459. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  27460. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  27461. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27462. abstract="false"
  27463. static="false" final="false" visibility="public"
  27464. deprecated="not deprecated">
  27465. <method name="init"
  27466. abstract="false" native="false" synchronized="false"
  27467. static="false" final="false" visibility="public"
  27468. deprecated="not deprecated">
  27469. <param name="protocol" type="java.lang.Class"/>
  27470. <doc>
  27471. <![CDATA[Initialize the registry with all the methods in a protocol
  27472. so they all show up in the first snapshot.
  27473. Convenient for JMX implementations.
  27474. @param protocol the protocol class]]>
  27475. </doc>
  27476. </method>
  27477. <method name="add"
  27478. abstract="false" native="false" synchronized="false"
  27479. static="false" final="false" visibility="public"
  27480. deprecated="not deprecated">
  27481. <param name="name" type="java.lang.String"/>
  27482. <param name="elapsed" type="long"/>
  27483. <doc>
  27484. <![CDATA[Add a rate sample for a rate metric
  27485. @param name of the rate metric
  27486. @param elapsed time]]>
  27487. </doc>
  27488. </method>
  27489. <method name="snapshot"
  27490. abstract="false" native="false" synchronized="false"
  27491. static="false" final="false" visibility="public"
  27492. deprecated="not deprecated">
  27493. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27494. <param name="all" type="boolean"/>
  27495. </method>
  27496. <doc>
  27497. <![CDATA[Helper class to manage a group of mutable rate metrics
  27498. This class synchronizes all accesses to the metrics it
  27499. contains, so it should not be used in situations where
  27500. there is high contention on the metrics.
  27501. {@link MutableRatesWithAggregation} is preferable in that
  27502. situation.]]>
  27503. </doc>
  27504. </class>
  27505. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  27506. <!-- start class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  27507. <class name="MutableRatesWithAggregation" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27508. abstract="false"
  27509. static="false" final="false" visibility="public"
  27510. deprecated="not deprecated">
  27511. <constructor name="MutableRatesWithAggregation"
  27512. static="false" final="false" visibility="public"
  27513. deprecated="not deprecated">
  27514. </constructor>
  27515. <method name="init"
  27516. abstract="false" native="false" synchronized="false"
  27517. static="false" final="false" visibility="public"
  27518. deprecated="not deprecated">
  27519. <param name="protocol" type="java.lang.Class"/>
  27520. <doc>
  27521. <![CDATA[Initialize the registry with all the methods in a protocol
  27522. so they all show up in the first snapshot.
  27523. Convenient for JMX implementations.
  27524. @param protocol the protocol class]]>
  27525. </doc>
  27526. </method>
  27527. <method name="add"
  27528. abstract="false" native="false" synchronized="false"
  27529. static="false" final="false" visibility="public"
  27530. deprecated="not deprecated">
  27531. <param name="name" type="java.lang.String"/>
  27532. <param name="elapsed" type="long"/>
  27533. <doc>
  27534. <![CDATA[Add a rate sample for a rate metric.
  27535. @param name of the rate metric
  27536. @param elapsed time]]>
  27537. </doc>
  27538. </method>
  27539. <method name="snapshot"
  27540. abstract="false" native="false" synchronized="true"
  27541. static="false" final="false" visibility="public"
  27542. deprecated="not deprecated">
  27543. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27544. <param name="all" type="boolean"/>
  27545. </method>
  27546. <doc>
  27547. <![CDATA[Helper class to manage a group of mutable rate metrics.
  27548. Each thread will maintain a local rate count, and upon snapshot,
  27549. these values will be aggregated into a global rate. This class
  27550. should only be used for long running threads, as any metrics
  27551. produced between the last snapshot and the death of a thread
  27552. will be lost. This allows for significantly higher concurrency
  27553. than {@link MutableRates}. See HADOOP-24420.]]>
  27554. </doc>
  27555. </class>
  27556. <!-- end class org.apache.hadoop.metrics2.lib.MutableRatesWithAggregation -->
  27557. <!-- start class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  27558. <class name="MutableRollingAverages" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27559. abstract="false"
  27560. static="false" final="false" visibility="public"
  27561. deprecated="not deprecated">
  27562. <implements name="java.io.Closeable"/>
  27563. <constructor name="MutableRollingAverages" type="java.lang.String"
  27564. static="false" final="false" visibility="public"
  27565. deprecated="not deprecated">
  27566. <doc>
  27567. <![CDATA[Constructor for {@link MutableRollingAverages}.
  27568. @param metricValueName]]>
  27569. </doc>
  27570. </constructor>
  27571. <method name="snapshot"
  27572. abstract="false" native="false" synchronized="false"
  27573. static="false" final="false" visibility="public"
  27574. deprecated="not deprecated">
  27575. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27576. <param name="all" type="boolean"/>
  27577. </method>
  27578. <method name="collectThreadLocalStates"
  27579. abstract="false" native="false" synchronized="false"
  27580. static="false" final="false" visibility="public"
  27581. deprecated="not deprecated">
  27582. <doc>
  27583. <![CDATA[Collects states maintained in {@link ThreadLocal}, if any.]]>
  27584. </doc>
  27585. </method>
  27586. <method name="add"
  27587. abstract="false" native="false" synchronized="false"
  27588. static="false" final="false" visibility="public"
  27589. deprecated="not deprecated">
  27590. <param name="name" type="java.lang.String"/>
  27591. <param name="value" type="long"/>
  27592. <doc>
  27593. <![CDATA[@param name
  27594. name of metric
  27595. @param value
  27596. value of metric]]>
  27597. </doc>
  27598. </method>
  27599. <method name="close"
  27600. abstract="false" native="false" synchronized="false"
  27601. static="false" final="false" visibility="public"
  27602. deprecated="not deprecated">
  27603. <exception name="IOException" type="java.io.IOException"/>
  27604. </method>
  27605. <method name="getStats" return="java.util.Map"
  27606. abstract="false" native="false" synchronized="true"
  27607. static="false" final="false" visibility="public"
  27608. deprecated="not deprecated">
  27609. <param name="minSamples" type="long"/>
  27610. <doc>
  27611. <![CDATA[Retrieve a map of metric name -> (aggregate).
  27612. Filter out entries that don't have at least minSamples.
  27613. @return a map of peer DataNode Id to the average latency to that
  27614. node seen over the measurement period.]]>
  27615. </doc>
  27616. </method>
  27617. <method name="setRecordValidityMs"
  27618. abstract="false" native="false" synchronized="true"
  27619. static="false" final="false" visibility="public"
  27620. deprecated="not deprecated">
  27621. <param name="value" type="long"/>
  27622. <doc>
  27623. <![CDATA[Use for test only.]]>
  27624. </doc>
  27625. </method>
  27626. <doc>
  27627. <![CDATA[<p>
  27628. This class maintains a group of rolling average metrics. It implements the
  27629. algorithm of rolling average, i.e. a number of sliding windows are kept to
  27630. roll over and evict old subsets of samples. Each window has a subset of
  27631. samples in a stream, where sub-sum and sub-total are collected. All sub-sums
  27632. and sub-totals in all windows will be aggregated to final-sum and final-total
  27633. used to compute final average, which is called rolling average.
  27634. </p>]]>
  27635. </doc>
  27636. </class>
  27637. <!-- end class org.apache.hadoop.metrics2.lib.MutableRollingAverages -->
  27638. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  27639. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  27640. abstract="false"
  27641. static="false" final="false" visibility="public"
  27642. deprecated="not deprecated">
  27643. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  27644. static="false" final="false" visibility="public"
  27645. deprecated="not deprecated">
  27646. <doc>
  27647. <![CDATA[Construct a sample statistics metric
  27648. @param name of the metric
  27649. @param description of the metric
  27650. @param sampleName of the metric (e.g. "Ops")
  27651. @param valueName of the metric (e.g. "Time", "Latency")
  27652. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  27653. </doc>
  27654. </constructor>
  27655. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  27656. static="false" final="false" visibility="public"
  27657. deprecated="not deprecated">
  27658. <doc>
  27659. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  27660. @param name of the metric
  27661. @param description of the metric
  27662. @param sampleName of the metric (e.g. "Ops")
  27663. @param valueName of the metric (e.g. "Time", "Latency")]]>
  27664. </doc>
  27665. </constructor>
  27666. <method name="setExtended"
  27667. abstract="false" native="false" synchronized="true"
  27668. static="false" final="false" visibility="public"
  27669. deprecated="not deprecated">
  27670. <param name="extended" type="boolean"/>
  27671. <doc>
  27672. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  27673. @param extended enable/disable displaying extended stats]]>
  27674. </doc>
  27675. </method>
  27676. <method name="setUpdateTimeStamp"
  27677. abstract="false" native="false" synchronized="true"
  27678. static="false" final="false" visibility="public"
  27679. deprecated="not deprecated">
  27680. <param name="updateTimeStamp" type="boolean"/>
  27681. <doc>
  27682. <![CDATA[Set whether to update the snapshot time or not.
  27683. @param updateTimeStamp enable update stats snapshot timestamp]]>
  27684. </doc>
  27685. </method>
  27686. <method name="add"
  27687. abstract="false" native="false" synchronized="true"
  27688. static="false" final="false" visibility="public"
  27689. deprecated="not deprecated">
  27690. <param name="numSamples" type="long"/>
  27691. <param name="sum" type="long"/>
  27692. <doc>
  27693. <![CDATA[Add a number of samples and their sum to the running stat
  27694. Note that although use of this method will preserve accurate mean values,
  27695. large values for numSamples may result in inaccurate variance values due
  27696. to the use of a single step of the Welford method for variance calculation.
  27697. @param numSamples number of samples
  27698. @param sum of the samples]]>
  27699. </doc>
  27700. </method>
  27701. <method name="add"
  27702. abstract="false" native="false" synchronized="true"
  27703. static="false" final="false" visibility="public"
  27704. deprecated="not deprecated">
  27705. <param name="value" type="long"/>
  27706. <doc>
  27707. <![CDATA[Add a snapshot to the metric.
  27708. @param value of the metric]]>
  27709. </doc>
  27710. </method>
  27711. <method name="snapshot"
  27712. abstract="false" native="false" synchronized="true"
  27713. static="false" final="false" visibility="public"
  27714. deprecated="not deprecated">
  27715. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27716. <param name="all" type="boolean"/>
  27717. </method>
  27718. <method name="lastStat" return="org.apache.hadoop.metrics2.util.SampleStat"
  27719. abstract="false" native="false" synchronized="false"
  27720. static="false" final="false" visibility="public"
  27721. deprecated="not deprecated">
  27722. <doc>
  27723. <![CDATA[Return a SampleStat object that supports
  27724. calls like StdDev and Mean.
  27725. @return SampleStat]]>
  27726. </doc>
  27727. </method>
  27728. <method name="resetMinMax"
  27729. abstract="false" native="false" synchronized="false"
  27730. static="false" final="false" visibility="public"
  27731. deprecated="not deprecated">
  27732. <doc>
  27733. <![CDATA[Reset the all time min max of the metric]]>
  27734. </doc>
  27735. </method>
  27736. <method name="getSnapshotTimeStamp" return="long"
  27737. abstract="false" native="false" synchronized="false"
  27738. static="false" final="false" visibility="public"
  27739. deprecated="not deprecated">
  27740. <doc>
  27741. <![CDATA[Return the SampleStat snapshot timestamp]]>
  27742. </doc>
  27743. </method>
  27744. <method name="toString" return="java.lang.String"
  27745. abstract="false" native="false" synchronized="false"
  27746. static="false" final="false" visibility="public"
  27747. deprecated="not deprecated">
  27748. </method>
  27749. <doc>
  27750. <![CDATA[A mutable metric with stats.
  27751. Useful for keeping throughput/latency stats.]]>
  27752. </doc>
  27753. </class>
  27754. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  27755. </package>
  27756. <package name="org.apache.hadoop.metrics2.sink">
  27757. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  27758. <class name="FileSink" extends="java.lang.Object"
  27759. abstract="false"
  27760. static="false" final="false" visibility="public"
  27761. deprecated="not deprecated">
  27762. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27763. <implements name="java.io.Closeable"/>
  27764. <constructor name="FileSink"
  27765. static="false" final="false" visibility="public"
  27766. deprecated="not deprecated">
  27767. </constructor>
  27768. <method name="init"
  27769. abstract="false" native="false" synchronized="false"
  27770. static="false" final="false" visibility="public"
  27771. deprecated="not deprecated">
  27772. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27773. </method>
  27774. <method name="putMetrics"
  27775. abstract="false" native="false" synchronized="false"
  27776. static="false" final="false" visibility="public"
  27777. deprecated="not deprecated">
  27778. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27779. </method>
  27780. <method name="flush"
  27781. abstract="false" native="false" synchronized="false"
  27782. static="false" final="false" visibility="public"
  27783. deprecated="not deprecated">
  27784. </method>
  27785. <method name="close"
  27786. abstract="false" native="false" synchronized="false"
  27787. static="false" final="false" visibility="public"
  27788. deprecated="not deprecated">
  27789. <exception name="IOException" type="java.io.IOException"/>
  27790. </method>
  27791. <doc>
  27792. <![CDATA[A metrics sink that writes to a file]]>
  27793. </doc>
  27794. </class>
  27795. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  27796. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  27797. <class name="GraphiteSink" extends="java.lang.Object"
  27798. abstract="false"
  27799. static="false" final="false" visibility="public"
  27800. deprecated="not deprecated">
  27801. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27802. <implements name="java.io.Closeable"/>
  27803. <constructor name="GraphiteSink"
  27804. static="false" final="false" visibility="public"
  27805. deprecated="not deprecated">
  27806. </constructor>
  27807. <method name="init"
  27808. abstract="false" native="false" synchronized="false"
  27809. static="false" final="false" visibility="public"
  27810. deprecated="not deprecated">
  27811. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27812. </method>
  27813. <method name="putMetrics"
  27814. abstract="false" native="false" synchronized="false"
  27815. static="false" final="false" visibility="public"
  27816. deprecated="not deprecated">
  27817. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27818. </method>
  27819. <method name="flush"
  27820. abstract="false" native="false" synchronized="false"
  27821. static="false" final="false" visibility="public"
  27822. deprecated="not deprecated">
  27823. </method>
  27824. <method name="close"
  27825. abstract="false" native="false" synchronized="false"
  27826. static="false" final="false" visibility="public"
  27827. deprecated="not deprecated">
  27828. <exception name="IOException" type="java.io.IOException"/>
  27829. </method>
  27830. <doc>
  27831. <![CDATA[A metrics sink that writes to a Graphite server]]>
  27832. </doc>
  27833. </class>
  27834. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  27835. <!-- start class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  27836. <class name="RollingFileSystemSink" extends="java.lang.Object"
  27837. abstract="false"
  27838. static="false" final="false" visibility="public"
  27839. deprecated="not deprecated">
  27840. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27841. <implements name="java.io.Closeable"/>
  27842. <constructor name="RollingFileSystemSink"
  27843. static="false" final="false" visibility="public"
  27844. deprecated="not deprecated">
  27845. <doc>
  27846. <![CDATA[Create an empty instance. Required for reflection.]]>
  27847. </doc>
  27848. </constructor>
  27849. <constructor name="RollingFileSystemSink" type="long, long"
  27850. static="false" final="false" visibility="protected"
  27851. deprecated="not deprecated">
  27852. <doc>
  27853. <![CDATA[Create an instance for testing.
  27854. @param flushIntervalMillis the roll interval in millis
  27855. @param flushOffsetIntervalMillis the roll offset interval in millis]]>
  27856. </doc>
  27857. </constructor>
  27858. <method name="init"
  27859. abstract="false" native="false" synchronized="false"
  27860. static="false" final="false" visibility="public"
  27861. deprecated="not deprecated">
  27862. <param name="metrics2Properties" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27863. </method>
  27864. <method name="getRollInterval" return="long"
  27865. abstract="false" native="false" synchronized="false"
  27866. static="false" final="false" visibility="protected"
  27867. deprecated="not deprecated">
  27868. <doc>
  27869. <![CDATA[Extract the roll interval from the configuration and return it in
  27870. milliseconds.
  27871. @return the roll interval in millis]]>
  27872. </doc>
  27873. </method>
  27874. <method name="updateFlushTime"
  27875. abstract="false" native="false" synchronized="false"
  27876. static="false" final="false" visibility="protected"
  27877. deprecated="not deprecated">
  27878. <param name="now" type="java.util.Date"/>
  27879. <doc>
  27880. <![CDATA[Update the {@link #nextFlush} variable to the next flush time. Add
  27881. an integer number of flush intervals, preserving the initial random offset.
  27882. @param now the current time]]>
  27883. </doc>
  27884. </method>
  27885. <method name="setInitialFlushTime"
  27886. abstract="false" native="false" synchronized="false"
  27887. static="false" final="false" visibility="protected"
  27888. deprecated="not deprecated">
  27889. <param name="now" type="java.util.Date"/>
  27890. <doc>
  27891. <![CDATA[Set the {@link #nextFlush} variable to the initial flush time. The initial
  27892. flush will be an integer number of flush intervals past the beginning of
  27893. the current hour and will have a random offset added, up to
  27894. {@link #rollOffsetIntervalMillis}. The initial flush will be a time in
  27895. past that can be used from which to calculate future flush times.
  27896. @param now the current time]]>
  27897. </doc>
  27898. </method>
  27899. <method name="putMetrics"
  27900. abstract="false" native="false" synchronized="false"
  27901. static="false" final="false" visibility="public"
  27902. deprecated="not deprecated">
  27903. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27904. </method>
  27905. <method name="flush"
  27906. abstract="false" native="false" synchronized="false"
  27907. static="false" final="false" visibility="public"
  27908. deprecated="not deprecated">
  27909. </method>
  27910. <method name="close"
  27911. abstract="false" native="false" synchronized="false"
  27912. static="false" final="false" visibility="public"
  27913. deprecated="not deprecated">
  27914. </method>
  27915. <field name="source" type="java.lang.String"
  27916. transient="false" volatile="false"
  27917. static="false" final="false" visibility="protected"
  27918. deprecated="not deprecated">
  27919. </field>
  27920. <field name="ignoreError" type="boolean"
  27921. transient="false" volatile="false"
  27922. static="false" final="false" visibility="protected"
  27923. deprecated="not deprecated">
  27924. </field>
  27925. <field name="allowAppend" type="boolean"
  27926. transient="false" volatile="false"
  27927. static="false" final="false" visibility="protected"
  27928. deprecated="not deprecated">
  27929. </field>
  27930. <field name="basePath" type="org.apache.hadoop.fs.Path"
  27931. transient="false" volatile="false"
  27932. static="false" final="false" visibility="protected"
  27933. deprecated="not deprecated">
  27934. </field>
  27935. <field name="rollIntervalMillis" type="long"
  27936. transient="false" volatile="false"
  27937. static="false" final="false" visibility="protected"
  27938. deprecated="not deprecated">
  27939. </field>
  27940. <field name="rollOffsetIntervalMillis" type="long"
  27941. transient="false" volatile="false"
  27942. static="false" final="false" visibility="protected"
  27943. deprecated="not deprecated">
  27944. </field>
  27945. <field name="nextFlush" type="java.util.Calendar"
  27946. transient="false" volatile="false"
  27947. static="false" final="false" visibility="protected"
  27948. deprecated="not deprecated">
  27949. </field>
  27950. <field name="forceFlush" type="boolean"
  27951. transient="false" volatile="false"
  27952. static="true" final="false" visibility="protected"
  27953. deprecated="not deprecated">
  27954. </field>
  27955. <field name="hasFlushed" type="boolean"
  27956. transient="false" volatile="true"
  27957. static="true" final="false" visibility="protected"
  27958. deprecated="not deprecated">
  27959. </field>
  27960. <field name="suppliedConf" type="org.apache.hadoop.conf.Configuration"
  27961. transient="false" volatile="false"
  27962. static="true" final="false" visibility="protected"
  27963. deprecated="not deprecated">
  27964. </field>
  27965. <field name="suppliedFilesystem" type="org.apache.hadoop.fs.FileSystem"
  27966. transient="false" volatile="false"
  27967. static="true" final="false" visibility="protected"
  27968. deprecated="not deprecated">
  27969. </field>
  27970. <doc>
  27971. <![CDATA[<p>This class is a metrics sink that uses
  27972. {@link org.apache.hadoop.fs.FileSystem} to write the metrics logs. Every
  27973. roll interval a new directory will be created under the path specified by the
  27974. <code>basepath</code> property. All metrics will be logged to a file in the
  27975. current interval's directory in a file named &lt;hostname&gt;.log, where
  27976. &lt;hostname&gt; is the name of the host on which the metrics logging
  27977. process is running. The base path is set by the
  27978. <code>&lt;prefix&gt;.sink.&lt;instance&gt;.basepath</code> property. The
  27979. time zone used to create the current interval's directory name is GMT. If
  27980. the <code>basepath</code> property isn't specified, it will default to
  27981. &quot;/tmp&quot;, which is the temp directory on whatever default file
  27982. system is configured for the cluster.</p>
  27983. <p>The <code>&lt;prefix&gt;.sink.&lt;instance&gt;.ignore-error</code>
  27984. property controls whether an exception is thrown when an error is encountered
  27985. writing a log file. The default value is <code>true</code>. When set to
  27986. <code>false</code>, file errors are quietly swallowed.</p>
  27987. <p>The <code>roll-interval</code> property sets the amount of time before
  27988. rolling the directory. The default value is 1 hour. The roll interval may
  27989. not be less than 1 minute. The property's value should be given as
  27990. <i>number unit</i>, where <i>number</i> is an integer value, and
  27991. <i>unit</i> is a valid unit. Valid units are <i>minute</i>, <i>hour</i>,
  27992. and <i>day</i>. The units are case insensitive and may be abbreviated or
  27993. plural. If no units are specified, hours are assumed. For example,
  27994. &quot;2&quot;, &quot;2h&quot;, &quot;2 hour&quot;, and
  27995. &quot;2 hours&quot; are all valid ways to specify two hours.</p>
  27996. <p>The <code>roll-offset-interval-millis</code> property sets the upper
  27997. bound on a random time interval (in milliseconds) that is used to delay
  27998. before the initial roll. All subsequent rolls will happen an integer
  27999. number of roll intervals after the initial roll, hence retaining the original
  28000. offset. The purpose of this property is to insert some variance in the roll
  28001. times so that large clusters using this sink on every node don't cause a
  28002. performance impact on HDFS by rolling simultaneously. The default value is
  28003. 30000 (30s). When writing to HDFS, as a rule of thumb, the roll offset in
  28004. millis should be no less than the number of sink instances times 5.
  28005. <p>The primary use of this class is for logging to HDFS. As it uses
  28006. {@link org.apache.hadoop.fs.FileSystem} to access the target file system,
  28007. however, it can be used to write to the local file system, Amazon S3, or any
  28008. other supported file system. The base path for the sink will determine the
  28009. file system used. An unqualified path will write to the default file system
  28010. set by the configuration.</p>
  28011. <p>Not all file systems support the ability to append to files. In file
  28012. systems without the ability to append to files, only one writer can write to
  28013. a file at a time. To allow for concurrent writes from multiple daemons on a
  28014. single host, the <code>source</code> property is used to set unique headers
  28015. for the log files. The property should be set to the name of
  28016. the source daemon, e.g. <i>namenode</i>. The value of the
  28017. <code>source</code> property should typically be the same as the property's
  28018. prefix. If this property is not set, the source is taken to be
  28019. <i>unknown</i>.</p>
  28020. <p>Instead of appending to an existing file, by default the sink
  28021. will create a new file with a suffix of &quot;.&lt;n&gt;&quet;, where
  28022. <i>n</i> is the next lowest integer that isn't already used in a file name,
  28023. similar to the Hadoop daemon logs. NOTE: the file with the <b>highest</b>
  28024. sequence number is the <b>newest</b> file, unlike the Hadoop daemon logs.</p>
  28025. <p>For file systems that allow append, the sink supports appending to the
  28026. existing file instead. If the <code>allow-append</code> property is set to
  28027. true, the sink will instead append to the existing file on file systems that
  28028. support appends. By default, the <code>allow-append</code> property is
  28029. false.</p>
  28030. <p>Note that when writing to HDFS with <code>allow-append</code> set to true,
  28031. there is a minimum acceptable number of data nodes. If the number of data
  28032. nodes drops below that minimum, the append will succeed, but reading the
  28033. data will fail with an IOException in the DataStreamer class. The minimum
  28034. number of data nodes required for a successful append is generally 2 or
  28035. 3.</p>
  28036. <p>Note also that when writing to HDFS, the file size information is not
  28037. updated until the file is closed (at the end of the interval) even though
  28038. the data is being written successfully. This is a known HDFS limitation that
  28039. exists because of the performance cost of updating the metadata. See
  28040. <a href="https://issues.apache.org/jira/browse/HDFS-5478">HDFS-5478</a>.</p>
  28041. <p>When using this sink in a secure (Kerberos) environment, two additional
  28042. properties must be set: <code>keytab-key</code> and
  28043. <code>principal-key</code>. <code>keytab-key</code> should contain the key by
  28044. which the keytab file can be found in the configuration, for example,
  28045. <code>yarn.nodemanager.keytab</code>. <code>principal-key</code> should
  28046. contain the key by which the principal can be found in the configuration,
  28047. for example, <code>yarn.nodemanager.principal</code>.]]>
  28048. </doc>
  28049. </class>
  28050. <!-- end class org.apache.hadoop.metrics2.sink.RollingFileSystemSink -->
  28051. <!-- start class org.apache.hadoop.metrics2.sink.StatsDSink -->
  28052. <class name="StatsDSink" extends="java.lang.Object"
  28053. abstract="false"
  28054. static="false" final="false" visibility="public"
  28055. deprecated="not deprecated">
  28056. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28057. <implements name="java.io.Closeable"/>
  28058. <constructor name="StatsDSink"
  28059. static="false" final="false" visibility="public"
  28060. deprecated="not deprecated">
  28061. </constructor>
  28062. <method name="init"
  28063. abstract="false" native="false" synchronized="false"
  28064. static="false" final="false" visibility="public"
  28065. deprecated="not deprecated">
  28066. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28067. </method>
  28068. <method name="putMetrics"
  28069. abstract="false" native="false" synchronized="false"
  28070. static="false" final="false" visibility="public"
  28071. deprecated="not deprecated">
  28072. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28073. </method>
  28074. <method name="writeMetric"
  28075. abstract="false" native="false" synchronized="false"
  28076. static="false" final="false" visibility="public"
  28077. deprecated="not deprecated">
  28078. <param name="line" type="java.lang.String"/>
  28079. </method>
  28080. <method name="flush"
  28081. abstract="false" native="false" synchronized="false"
  28082. static="false" final="false" visibility="public"
  28083. deprecated="not deprecated">
  28084. </method>
  28085. <method name="close"
  28086. abstract="false" native="false" synchronized="false"
  28087. static="false" final="false" visibility="public"
  28088. deprecated="not deprecated">
  28089. <exception name="IOException" type="java.io.IOException"/>
  28090. </method>
  28091. <doc>
  28092. <![CDATA[A metrics sink that writes metrics to a StatsD daemon.
  28093. This sink will produce metrics of the form
  28094. '[hostname].servicename.context.name.metricname:value|type'
  28095. where hostname is optional. This is useful when sending to
  28096. a daemon that is running on the localhost and will add the
  28097. hostname to the metric (such as the
  28098. <a href="https://collectd.org/">CollectD</a> StatsD plugin).
  28099. <br/>
  28100. To configure this plugin, you will need to add the following
  28101. entries to your hadoop-metrics2.properties file:
  28102. <br/>
  28103. <pre>
  28104. *.sink.statsd.class=org.apache.hadoop.metrics2.sink.StatsDSink
  28105. [prefix].sink.statsd.server.host=
  28106. [prefix].sink.statsd.server.port=
  28107. [prefix].sink.statsd.skip.hostname=true|false (optional)
  28108. [prefix].sink.statsd.service.name=NameNode (name you want for service)
  28109. </pre>]]>
  28110. </doc>
  28111. </class>
  28112. <!-- end class org.apache.hadoop.metrics2.sink.StatsDSink -->
  28113. </package>
  28114. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  28115. </package>
  28116. <package name="org.apache.hadoop.metrics2.source">
  28117. </package>
  28118. <package name="org.apache.hadoop.metrics2.util">
  28119. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  28120. <class name="MBeans" extends="java.lang.Object"
  28121. abstract="false"
  28122. static="false" final="false" visibility="public"
  28123. deprecated="not deprecated">
  28124. <constructor name="MBeans"
  28125. static="false" final="false" visibility="public"
  28126. deprecated="not deprecated">
  28127. </constructor>
  28128. <method name="register" return="javax.management.ObjectName"
  28129. abstract="false" native="false" synchronized="false"
  28130. static="true" final="false" visibility="public"
  28131. deprecated="not deprecated">
  28132. <param name="serviceName" type="java.lang.String"/>
  28133. <param name="nameName" type="java.lang.String"/>
  28134. <param name="theMbean" type="java.lang.Object"/>
  28135. <doc>
  28136. <![CDATA[Register the MBean using our standard MBeanName format
  28137. "hadoop:service=<serviceName>,name=<nameName>"
  28138. Where the <serviceName> and <nameName> are the supplied parameters
  28139. @param serviceName
  28140. @param nameName
  28141. @param theMbean - the MBean to register
  28142. @return the named used to register the MBean]]>
  28143. </doc>
  28144. </method>
  28145. <method name="getMbeanNameService" return="java.lang.String"
  28146. abstract="false" native="false" synchronized="false"
  28147. static="true" final="false" visibility="public"
  28148. deprecated="not deprecated">
  28149. <param name="objectName" type="javax.management.ObjectName"/>
  28150. </method>
  28151. <method name="getMbeanNameName" return="java.lang.String"
  28152. abstract="false" native="false" synchronized="false"
  28153. static="true" final="false" visibility="public"
  28154. deprecated="not deprecated">
  28155. <param name="objectName" type="javax.management.ObjectName"/>
  28156. </method>
  28157. <method name="unregister"
  28158. abstract="false" native="false" synchronized="false"
  28159. static="true" final="false" visibility="public"
  28160. deprecated="not deprecated">
  28161. <param name="mbeanName" type="javax.management.ObjectName"/>
  28162. </method>
  28163. <doc>
  28164. <![CDATA[This util class provides a method to register an MBean using
  28165. our standard naming convention as described in the doc
  28166. for {link {@link #register(String, String, Object)}]]>
  28167. </doc>
  28168. </class>
  28169. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  28170. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  28171. <class name="MetricsCache" extends="java.lang.Object"
  28172. abstract="false"
  28173. static="false" final="false" visibility="public"
  28174. deprecated="not deprecated">
  28175. <constructor name="MetricsCache"
  28176. static="false" final="false" visibility="public"
  28177. deprecated="not deprecated">
  28178. </constructor>
  28179. <constructor name="MetricsCache" type="int"
  28180. static="false" final="false" visibility="public"
  28181. deprecated="not deprecated">
  28182. <doc>
  28183. <![CDATA[Construct a metrics cache
  28184. @param maxRecsPerName limit of the number records per record name]]>
  28185. </doc>
  28186. </constructor>
  28187. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28188. abstract="false" native="false" synchronized="false"
  28189. static="false" final="false" visibility="public"
  28190. deprecated="not deprecated">
  28191. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28192. <param name="includingTags" type="boolean"/>
  28193. <doc>
  28194. <![CDATA[Update the cache and return the current cached record
  28195. @param mr the update record
  28196. @param includingTags cache tag values (for later lookup by name) if true
  28197. @return the updated cache record]]>
  28198. </doc>
  28199. </method>
  28200. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28201. abstract="false" native="false" synchronized="false"
  28202. static="false" final="false" visibility="public"
  28203. deprecated="not deprecated">
  28204. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28205. <doc>
  28206. <![CDATA[Update the cache and return the current cache record
  28207. @param mr the update record
  28208. @return the updated cache record]]>
  28209. </doc>
  28210. </method>
  28211. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  28212. abstract="false" native="false" synchronized="false"
  28213. static="false" final="false" visibility="public"
  28214. deprecated="not deprecated">
  28215. <param name="name" type="java.lang.String"/>
  28216. <param name="tags" type="java.util.Collection"/>
  28217. <doc>
  28218. <![CDATA[Get the cached record
  28219. @param name of the record
  28220. @param tags of the record
  28221. @return the cached record or null]]>
  28222. </doc>
  28223. </method>
  28224. <doc>
  28225. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  28226. </doc>
  28227. </class>
  28228. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  28229. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  28230. <class name="Servers" extends="java.lang.Object"
  28231. abstract="false"
  28232. static="false" final="false" visibility="public"
  28233. deprecated="not deprecated">
  28234. <method name="parse" return="java.util.List"
  28235. abstract="false" native="false" synchronized="false"
  28236. static="true" final="false" visibility="public"
  28237. deprecated="not deprecated">
  28238. <param name="specs" type="java.lang.String"/>
  28239. <param name="defaultPort" type="int"/>
  28240. <doc>
  28241. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  28242. of the form <i>hostname</i> or <i>hostname:port</i>. If
  28243. the specs string is null, defaults to localhost:defaultPort.
  28244. @param specs server specs (see description)
  28245. @param defaultPort the default port if not specified
  28246. @return a list of InetSocketAddress objects.]]>
  28247. </doc>
  28248. </method>
  28249. <doc>
  28250. <![CDATA[Helpers to handle server addresses]]>
  28251. </doc>
  28252. </class>
  28253. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  28254. </package>
  28255. <package name="org.apache.hadoop.net">
  28256. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  28257. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  28258. abstract="true"
  28259. static="false" final="false" visibility="public"
  28260. deprecated="not deprecated">
  28261. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  28262. <implements name="org.apache.hadoop.conf.Configurable"/>
  28263. <constructor name="AbstractDNSToSwitchMapping"
  28264. static="false" final="false" visibility="protected"
  28265. deprecated="not deprecated">
  28266. <doc>
  28267. <![CDATA[Create an unconfigured instance]]>
  28268. </doc>
  28269. </constructor>
  28270. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  28271. static="false" final="false" visibility="protected"
  28272. deprecated="not deprecated">
  28273. <doc>
  28274. <![CDATA[Create an instance, caching the configuration file.
  28275. This constructor does not call {@link #setConf(Configuration)}; if
  28276. a subclass extracts information in that method, it must call it explicitly.
  28277. @param conf the configuration]]>
  28278. </doc>
  28279. </constructor>
  28280. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28281. abstract="false" native="false" synchronized="false"
  28282. static="false" final="false" visibility="public"
  28283. deprecated="not deprecated">
  28284. </method>
  28285. <method name="setConf"
  28286. abstract="false" native="false" synchronized="false"
  28287. static="false" final="false" visibility="public"
  28288. deprecated="not deprecated">
  28289. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28290. </method>
  28291. <method name="isSingleSwitch" return="boolean"
  28292. abstract="false" native="false" synchronized="false"
  28293. static="false" final="false" visibility="public"
  28294. deprecated="not deprecated">
  28295. <doc>
  28296. <![CDATA[Predicate that indicates that the switch mapping is known to be
  28297. single-switch. The base class returns false: it assumes all mappings are
  28298. multi-rack. Subclasses may override this with methods that are more aware
  28299. of their topologies.
  28300. <p/>
  28301. This method is used when parts of Hadoop need know whether to apply
  28302. single rack vs multi-rack policies, such as during block placement.
  28303. Such algorithms behave differently if they are on multi-switch systems.
  28304. </p>
  28305. @return true if the mapping thinks that it is on a single switch]]>
  28306. </doc>
  28307. </method>
  28308. <method name="getSwitchMap" return="java.util.Map"
  28309. abstract="false" native="false" synchronized="false"
  28310. static="false" final="false" visibility="public"
  28311. deprecated="not deprecated">
  28312. <doc>
  28313. <![CDATA[Get a copy of the map (for diagnostics)
  28314. @return a clone of the map or null for none known]]>
  28315. </doc>
  28316. </method>
  28317. <method name="dumpTopology" return="java.lang.String"
  28318. abstract="false" native="false" synchronized="false"
  28319. static="false" final="false" visibility="public"
  28320. deprecated="not deprecated">
  28321. <doc>
  28322. <![CDATA[Generate a string listing the switch mapping implementation,
  28323. the mapping for every known node and the number of nodes and
  28324. unique switches known about -each entry to a separate line.
  28325. @return a string that can be presented to the ops team or used in
  28326. debug messages.]]>
  28327. </doc>
  28328. </method>
  28329. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  28330. abstract="false" native="false" synchronized="false"
  28331. static="false" final="false" visibility="protected"
  28332. deprecated="not deprecated">
  28333. </method>
  28334. <method name="isMappingSingleSwitch" return="boolean"
  28335. abstract="false" native="false" synchronized="false"
  28336. static="true" final="false" visibility="public"
  28337. deprecated="not deprecated">
  28338. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  28339. <doc>
  28340. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  28341. switch.
  28342. <p/>
  28343. This predicate simply assumes that all mappings not derived from
  28344. this class are multi-switch.
  28345. @param mapping the mapping to query
  28346. @return true if the base class says it is single switch, or the mapping
  28347. is not derived from this class.]]>
  28348. </doc>
  28349. </method>
  28350. <doc>
  28351. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  28352. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  28353. recommended, as it makes it easy for the Hadoop developers to add new methods
  28354. to this base class that are automatically picked up by all implementations.
  28355. <p/>
  28356. This class does not extend the <code>Configured</code>
  28357. base class, and should not be changed to do so, as it causes problems
  28358. for subclasses. The constructor of the <code>Configured</code> calls
  28359. the {@link #setConf(Configuration)} method, which will call into the
  28360. subclasses before they have been fully constructed.]]>
  28361. </doc>
  28362. </class>
  28363. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  28364. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28365. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  28366. abstract="false"
  28367. static="false" final="false" visibility="public"
  28368. deprecated="not deprecated">
  28369. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28370. static="false" final="false" visibility="public"
  28371. deprecated="not deprecated">
  28372. <doc>
  28373. <![CDATA[cache a raw DNS mapping
  28374. @param rawMapping the raw mapping to cache]]>
  28375. </doc>
  28376. </constructor>
  28377. <method name="resolve" return="java.util.List"
  28378. abstract="false" native="false" synchronized="false"
  28379. static="false" final="false" visibility="public"
  28380. deprecated="not deprecated">
  28381. <param name="names" type="java.util.List"/>
  28382. </method>
  28383. <method name="getSwitchMap" return="java.util.Map"
  28384. abstract="false" native="false" synchronized="false"
  28385. static="false" final="false" visibility="public"
  28386. deprecated="not deprecated">
  28387. <doc>
  28388. <![CDATA[Get the (host x switch) map.
  28389. @return a copy of the cached map of hosts to rack]]>
  28390. </doc>
  28391. </method>
  28392. <method name="toString" return="java.lang.String"
  28393. abstract="false" native="false" synchronized="false"
  28394. static="false" final="false" visibility="public"
  28395. deprecated="not deprecated">
  28396. </method>
  28397. <method name="isSingleSwitch" return="boolean"
  28398. abstract="false" native="false" synchronized="false"
  28399. static="false" final="false" visibility="public"
  28400. deprecated="not deprecated">
  28401. <doc>
  28402. <![CDATA[Delegate the switch topology query to the raw mapping, via
  28403. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  28404. @return true iff the raw mapper is considered single-switch.]]>
  28405. </doc>
  28406. </method>
  28407. <method name="reloadCachedMappings"
  28408. abstract="false" native="false" synchronized="false"
  28409. static="false" final="false" visibility="public"
  28410. deprecated="not deprecated">
  28411. </method>
  28412. <method name="reloadCachedMappings"
  28413. abstract="false" native="false" synchronized="false"
  28414. static="false" final="false" visibility="public"
  28415. deprecated="not deprecated">
  28416. <param name="names" type="java.util.List"/>
  28417. </method>
  28418. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28419. transient="false" volatile="false"
  28420. static="false" final="true" visibility="protected"
  28421. deprecated="not deprecated">
  28422. <doc>
  28423. <![CDATA[The uncached mapping]]>
  28424. </doc>
  28425. </field>
  28426. <doc>
  28427. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  28428. raw DNSToSwitchMapping and stores the resolved network location in
  28429. a cache. The following calls to a resolved network location
  28430. will get its location from the cache.]]>
  28431. </doc>
  28432. </class>
  28433. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28434. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  28435. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  28436. abstract="false"
  28437. static="false" final="false" visibility="public"
  28438. deprecated="not deprecated">
  28439. <constructor name="ConnectTimeoutException" type="java.lang.String"
  28440. static="false" final="false" visibility="public"
  28441. deprecated="not deprecated">
  28442. </constructor>
  28443. <doc>
  28444. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  28445. if it times out while connecting to the remote host.]]>
  28446. </doc>
  28447. </class>
  28448. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  28449. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28450. <interface name="DNSToSwitchMapping" abstract="true"
  28451. static="false" final="false" visibility="public"
  28452. deprecated="not deprecated">
  28453. <method name="resolve" return="java.util.List"
  28454. abstract="false" native="false" synchronized="false"
  28455. static="false" final="false" visibility="public"
  28456. deprecated="not deprecated">
  28457. <param name="names" type="java.util.List"/>
  28458. <doc>
  28459. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  28460. switch information (network paths). One-to-one correspondence must be
  28461. maintained between the elements in the lists.
  28462. Consider an element in the argument list - x.y.com. The switch information
  28463. that is returned must be a network path of the form /foo/rack,
  28464. where / is the root, and 'foo' is the switch where 'rack' is connected.
  28465. Note the hostname/ip-address is not part of the returned path.
  28466. The network topology of the cluster would determine the number of
  28467. components in the network path.
  28468. <p/>
  28469. If a name cannot be resolved to a rack, the implementation
  28470. should return {@link NetworkTopology#DEFAULT_RACK}. This
  28471. is what the bundled implementations do, though it is not a formal requirement
  28472. @param names the list of hosts to resolve (can be empty)
  28473. @return list of resolved network paths.
  28474. If <i>names</i> is empty, the returned list is also empty]]>
  28475. </doc>
  28476. </method>
  28477. <method name="reloadCachedMappings"
  28478. abstract="false" native="false" synchronized="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <doc>
  28482. <![CDATA[Reload all of the cached mappings.
  28483. If there is a cache, this method will clear it, so that future accesses
  28484. will get a chance to see the new data.]]>
  28485. </doc>
  28486. </method>
  28487. <method name="reloadCachedMappings"
  28488. abstract="false" native="false" synchronized="false"
  28489. static="false" final="false" visibility="public"
  28490. deprecated="not deprecated">
  28491. <param name="names" type="java.util.List"/>
  28492. <doc>
  28493. <![CDATA[Reload cached mappings on specific nodes.
  28494. If there is a cache on these nodes, this method will clear it, so that
  28495. future accesses will see updated data.]]>
  28496. </doc>
  28497. </method>
  28498. <doc>
  28499. <![CDATA[An interface that must be implemented to allow pluggable
  28500. DNS-name/IP-address to RackID resolvers.]]>
  28501. </doc>
  28502. </interface>
  28503. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28504. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  28505. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  28506. abstract="false"
  28507. static="false" final="false" visibility="public"
  28508. deprecated="not deprecated">
  28509. <constructor name="ScriptBasedMapping"
  28510. static="false" final="false" visibility="public"
  28511. deprecated="not deprecated">
  28512. <doc>
  28513. <![CDATA[Create an instance with the default configuration.
  28514. </p>
  28515. Calling {@link #setConf(Configuration)} will trigger a
  28516. re-evaluation of the configuration settings and so be used to
  28517. set up the mapping script.]]>
  28518. </doc>
  28519. </constructor>
  28520. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28521. static="false" final="false" visibility="public"
  28522. deprecated="not deprecated">
  28523. <doc>
  28524. <![CDATA[Create an instance from the given raw mapping
  28525. @param rawMap raw DNSTOSwithMapping]]>
  28526. </doc>
  28527. </constructor>
  28528. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  28529. static="false" final="false" visibility="public"
  28530. deprecated="not deprecated">
  28531. <doc>
  28532. <![CDATA[Create an instance from the given configuration
  28533. @param conf configuration]]>
  28534. </doc>
  28535. </constructor>
  28536. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28537. abstract="false" native="false" synchronized="false"
  28538. static="false" final="false" visibility="public"
  28539. deprecated="not deprecated">
  28540. </method>
  28541. <method name="toString" return="java.lang.String"
  28542. abstract="false" native="false" synchronized="false"
  28543. static="false" final="false" visibility="public"
  28544. deprecated="not deprecated">
  28545. </method>
  28546. <method name="setConf"
  28547. abstract="false" native="false" synchronized="false"
  28548. static="false" final="false" visibility="public"
  28549. deprecated="not deprecated">
  28550. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28551. <doc>
  28552. <![CDATA[{@inheritDoc}
  28553. <p/>
  28554. This will get called in the superclass constructor, so a check is needed
  28555. to ensure that the raw mapping is defined before trying to relaying a null
  28556. configuration.
  28557. @param conf]]>
  28558. </doc>
  28559. </method>
  28560. <field name="NO_SCRIPT" type="java.lang.String"
  28561. transient="false" volatile="false"
  28562. static="true" final="true" visibility="public"
  28563. deprecated="not deprecated">
  28564. <doc>
  28565. <![CDATA[Text used in the {@link #toString()} method if there is no string
  28566. {@value}]]>
  28567. </doc>
  28568. </field>
  28569. <doc>
  28570. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  28571. script configured via the
  28572. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  28573. <p/>
  28574. It contains a static class <code>RawScriptBasedMapping</code> that performs
  28575. the work: reading the configuration parameters, executing any defined
  28576. script, handling errors and such like. The outer
  28577. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  28578. queries.
  28579. <p/>
  28580. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  28581. true if and only if a script is defined.]]>
  28582. </doc>
  28583. </class>
  28584. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  28585. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  28586. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  28587. abstract="false"
  28588. static="false" final="false" visibility="public"
  28589. deprecated="not deprecated">
  28590. <implements name="org.apache.hadoop.conf.Configurable"/>
  28591. <constructor name="SocksSocketFactory"
  28592. static="false" final="false" visibility="public"
  28593. deprecated="not deprecated">
  28594. <doc>
  28595. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  28596. </doc>
  28597. </constructor>
  28598. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  28599. static="false" final="false" visibility="public"
  28600. deprecated="not deprecated">
  28601. <doc>
  28602. <![CDATA[Constructor with a supplied Proxy
  28603. @param proxy the proxy to use to create sockets]]>
  28604. </doc>
  28605. </constructor>
  28606. <method name="createSocket" return="java.net.Socket"
  28607. abstract="false" native="false" synchronized="false"
  28608. static="false" final="false" visibility="public"
  28609. deprecated="not deprecated">
  28610. <exception name="IOException" type="java.io.IOException"/>
  28611. </method>
  28612. <method name="createSocket" return="java.net.Socket"
  28613. abstract="false" native="false" synchronized="false"
  28614. static="false" final="false" visibility="public"
  28615. deprecated="not deprecated">
  28616. <param name="addr" type="java.net.InetAddress"/>
  28617. <param name="port" type="int"/>
  28618. <exception name="IOException" type="java.io.IOException"/>
  28619. </method>
  28620. <method name="createSocket" return="java.net.Socket"
  28621. abstract="false" native="false" synchronized="false"
  28622. static="false" final="false" visibility="public"
  28623. deprecated="not deprecated">
  28624. <param name="addr" type="java.net.InetAddress"/>
  28625. <param name="port" type="int"/>
  28626. <param name="localHostAddr" type="java.net.InetAddress"/>
  28627. <param name="localPort" type="int"/>
  28628. <exception name="IOException" type="java.io.IOException"/>
  28629. </method>
  28630. <method name="createSocket" return="java.net.Socket"
  28631. abstract="false" native="false" synchronized="false"
  28632. static="false" final="false" visibility="public"
  28633. deprecated="not deprecated">
  28634. <param name="host" type="java.lang.String"/>
  28635. <param name="port" type="int"/>
  28636. <exception name="IOException" type="java.io.IOException"/>
  28637. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28638. </method>
  28639. <method name="createSocket" return="java.net.Socket"
  28640. abstract="false" native="false" synchronized="false"
  28641. static="false" final="false" visibility="public"
  28642. deprecated="not deprecated">
  28643. <param name="host" type="java.lang.String"/>
  28644. <param name="port" type="int"/>
  28645. <param name="localHostAddr" type="java.net.InetAddress"/>
  28646. <param name="localPort" type="int"/>
  28647. <exception name="IOException" type="java.io.IOException"/>
  28648. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28649. </method>
  28650. <method name="hashCode" return="int"
  28651. abstract="false" native="false" synchronized="false"
  28652. static="false" final="false" visibility="public"
  28653. deprecated="not deprecated">
  28654. </method>
  28655. <method name="equals" return="boolean"
  28656. abstract="false" native="false" synchronized="false"
  28657. static="false" final="false" visibility="public"
  28658. deprecated="not deprecated">
  28659. <param name="obj" type="java.lang.Object"/>
  28660. </method>
  28661. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28662. abstract="false" native="false" synchronized="false"
  28663. static="false" final="false" visibility="public"
  28664. deprecated="not deprecated">
  28665. </method>
  28666. <method name="setConf"
  28667. abstract="false" native="false" synchronized="false"
  28668. static="false" final="false" visibility="public"
  28669. deprecated="not deprecated">
  28670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28671. </method>
  28672. <doc>
  28673. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  28674. </doc>
  28675. </class>
  28676. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  28677. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  28678. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  28679. abstract="false"
  28680. static="false" final="false" visibility="public"
  28681. deprecated="not deprecated">
  28682. <constructor name="StandardSocketFactory"
  28683. static="false" final="false" visibility="public"
  28684. deprecated="not deprecated">
  28685. <doc>
  28686. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  28687. </doc>
  28688. </constructor>
  28689. <method name="createSocket" return="java.net.Socket"
  28690. abstract="false" native="false" synchronized="false"
  28691. static="false" final="false" visibility="public"
  28692. deprecated="not deprecated">
  28693. <exception name="IOException" type="java.io.IOException"/>
  28694. </method>
  28695. <method name="createSocket" return="java.net.Socket"
  28696. abstract="false" native="false" synchronized="false"
  28697. static="false" final="false" visibility="public"
  28698. deprecated="not deprecated">
  28699. <param name="addr" type="java.net.InetAddress"/>
  28700. <param name="port" type="int"/>
  28701. <exception name="IOException" type="java.io.IOException"/>
  28702. </method>
  28703. <method name="createSocket" return="java.net.Socket"
  28704. abstract="false" native="false" synchronized="false"
  28705. static="false" final="false" visibility="public"
  28706. deprecated="not deprecated">
  28707. <param name="addr" type="java.net.InetAddress"/>
  28708. <param name="port" type="int"/>
  28709. <param name="localHostAddr" type="java.net.InetAddress"/>
  28710. <param name="localPort" type="int"/>
  28711. <exception name="IOException" type="java.io.IOException"/>
  28712. </method>
  28713. <method name="createSocket" return="java.net.Socket"
  28714. abstract="false" native="false" synchronized="false"
  28715. static="false" final="false" visibility="public"
  28716. deprecated="not deprecated">
  28717. <param name="host" type="java.lang.String"/>
  28718. <param name="port" type="int"/>
  28719. <exception name="IOException" type="java.io.IOException"/>
  28720. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28721. </method>
  28722. <method name="createSocket" return="java.net.Socket"
  28723. abstract="false" native="false" synchronized="false"
  28724. static="false" final="false" visibility="public"
  28725. deprecated="not deprecated">
  28726. <param name="host" type="java.lang.String"/>
  28727. <param name="port" type="int"/>
  28728. <param name="localHostAddr" type="java.net.InetAddress"/>
  28729. <param name="localPort" type="int"/>
  28730. <exception name="IOException" type="java.io.IOException"/>
  28731. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28732. </method>
  28733. <method name="equals" return="boolean"
  28734. abstract="false" native="false" synchronized="false"
  28735. static="false" final="false" visibility="public"
  28736. deprecated="not deprecated">
  28737. <param name="obj" type="java.lang.Object"/>
  28738. </method>
  28739. <method name="hashCode" return="int"
  28740. abstract="false" native="false" synchronized="false"
  28741. static="false" final="false" visibility="public"
  28742. deprecated="not deprecated">
  28743. </method>
  28744. <doc>
  28745. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  28746. </doc>
  28747. </class>
  28748. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  28749. <!-- start class org.apache.hadoop.net.TableMapping -->
  28750. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  28751. abstract="false"
  28752. static="false" final="false" visibility="public"
  28753. deprecated="not deprecated">
  28754. <constructor name="TableMapping"
  28755. static="false" final="false" visibility="public"
  28756. deprecated="not deprecated">
  28757. </constructor>
  28758. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28759. abstract="false" native="false" synchronized="false"
  28760. static="false" final="false" visibility="public"
  28761. deprecated="not deprecated">
  28762. </method>
  28763. <method name="setConf"
  28764. abstract="false" native="false" synchronized="false"
  28765. static="false" final="false" visibility="public"
  28766. deprecated="not deprecated">
  28767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28768. </method>
  28769. <method name="reloadCachedMappings"
  28770. abstract="false" native="false" synchronized="false"
  28771. static="false" final="false" visibility="public"
  28772. deprecated="not deprecated">
  28773. </method>
  28774. <doc>
  28775. <![CDATA[<p>
  28776. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  28777. file. The columns are separated by whitespace. The first column is a DNS or
  28778. IP address and the second column specifies the rack where the address maps.
  28779. </p>
  28780. <p>
  28781. This class uses the configuration parameter {@code
  28782. net.topology.table.file.name} to locate the mapping file.
  28783. </p>
  28784. <p>
  28785. Calls to {@link #resolve(List)} will look up the address as defined in the
  28786. mapping file. If no entry corresponding to the address is found, the value
  28787. {@code /default-rack} is returned.
  28788. </p>]]>
  28789. </doc>
  28790. </class>
  28791. <!-- end class org.apache.hadoop.net.TableMapping -->
  28792. <doc>
  28793. <![CDATA[Network-related classes.]]>
  28794. </doc>
  28795. </package>
  28796. <package name="org.apache.hadoop.net.unix">
  28797. </package>
  28798. <package name="org.apache.hadoop.record">
  28799. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  28800. <class name="BinaryRecordInput" extends="java.lang.Object"
  28801. abstract="false"
  28802. static="false" final="false" visibility="public"
  28803. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28804. <implements name="org.apache.hadoop.record.RecordInput"/>
  28805. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  28806. static="false" final="false" visibility="public"
  28807. deprecated="not deprecated">
  28808. <doc>
  28809. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  28810. </doc>
  28811. </constructor>
  28812. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  28813. static="false" final="false" visibility="public"
  28814. deprecated="not deprecated">
  28815. <doc>
  28816. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  28817. </doc>
  28818. </constructor>
  28819. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  28820. abstract="false" native="false" synchronized="false"
  28821. static="true" final="false" visibility="public"
  28822. deprecated="not deprecated">
  28823. <param name="inp" type="java.io.DataInput"/>
  28824. <doc>
  28825. <![CDATA[Get a thread-local record input for the supplied DataInput.
  28826. @param inp data input stream
  28827. @return binary record input corresponding to the supplied DataInput.]]>
  28828. </doc>
  28829. </method>
  28830. <method name="readByte" return="byte"
  28831. abstract="false" native="false" synchronized="false"
  28832. static="false" final="false" visibility="public"
  28833. deprecated="not deprecated">
  28834. <param name="tag" type="java.lang.String"/>
  28835. <exception name="IOException" type="java.io.IOException"/>
  28836. </method>
  28837. <method name="readBool" return="boolean"
  28838. abstract="false" native="false" synchronized="false"
  28839. static="false" final="false" visibility="public"
  28840. deprecated="not deprecated">
  28841. <param name="tag" type="java.lang.String"/>
  28842. <exception name="IOException" type="java.io.IOException"/>
  28843. </method>
  28844. <method name="readInt" return="int"
  28845. abstract="false" native="false" synchronized="false"
  28846. static="false" final="false" visibility="public"
  28847. deprecated="not deprecated">
  28848. <param name="tag" type="java.lang.String"/>
  28849. <exception name="IOException" type="java.io.IOException"/>
  28850. </method>
  28851. <method name="readLong" return="long"
  28852. abstract="false" native="false" synchronized="false"
  28853. static="false" final="false" visibility="public"
  28854. deprecated="not deprecated">
  28855. <param name="tag" type="java.lang.String"/>
  28856. <exception name="IOException" type="java.io.IOException"/>
  28857. </method>
  28858. <method name="readFloat" return="float"
  28859. abstract="false" native="false" synchronized="false"
  28860. static="false" final="false" visibility="public"
  28861. deprecated="not deprecated">
  28862. <param name="tag" type="java.lang.String"/>
  28863. <exception name="IOException" type="java.io.IOException"/>
  28864. </method>
  28865. <method name="readDouble" return="double"
  28866. abstract="false" native="false" synchronized="false"
  28867. static="false" final="false" visibility="public"
  28868. deprecated="not deprecated">
  28869. <param name="tag" type="java.lang.String"/>
  28870. <exception name="IOException" type="java.io.IOException"/>
  28871. </method>
  28872. <method name="readString" return="java.lang.String"
  28873. abstract="false" native="false" synchronized="false"
  28874. static="false" final="false" visibility="public"
  28875. deprecated="not deprecated">
  28876. <param name="tag" type="java.lang.String"/>
  28877. <exception name="IOException" type="java.io.IOException"/>
  28878. </method>
  28879. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  28880. abstract="false" native="false" synchronized="false"
  28881. static="false" final="false" visibility="public"
  28882. deprecated="not deprecated">
  28883. <param name="tag" type="java.lang.String"/>
  28884. <exception name="IOException" type="java.io.IOException"/>
  28885. </method>
  28886. <method name="startRecord"
  28887. abstract="false" native="false" synchronized="false"
  28888. static="false" final="false" visibility="public"
  28889. deprecated="not deprecated">
  28890. <param name="tag" type="java.lang.String"/>
  28891. <exception name="IOException" type="java.io.IOException"/>
  28892. </method>
  28893. <method name="endRecord"
  28894. abstract="false" native="false" synchronized="false"
  28895. static="false" final="false" visibility="public"
  28896. deprecated="not deprecated">
  28897. <param name="tag" type="java.lang.String"/>
  28898. <exception name="IOException" type="java.io.IOException"/>
  28899. </method>
  28900. <method name="startVector" return="org.apache.hadoop.record.Index"
  28901. abstract="false" native="false" synchronized="false"
  28902. static="false" final="false" visibility="public"
  28903. deprecated="not deprecated">
  28904. <param name="tag" type="java.lang.String"/>
  28905. <exception name="IOException" type="java.io.IOException"/>
  28906. </method>
  28907. <method name="endVector"
  28908. abstract="false" native="false" synchronized="false"
  28909. static="false" final="false" visibility="public"
  28910. deprecated="not deprecated">
  28911. <param name="tag" type="java.lang.String"/>
  28912. <exception name="IOException" type="java.io.IOException"/>
  28913. </method>
  28914. <method name="startMap" return="org.apache.hadoop.record.Index"
  28915. abstract="false" native="false" synchronized="false"
  28916. static="false" final="false" visibility="public"
  28917. deprecated="not deprecated">
  28918. <param name="tag" type="java.lang.String"/>
  28919. <exception name="IOException" type="java.io.IOException"/>
  28920. </method>
  28921. <method name="endMap"
  28922. abstract="false" native="false" synchronized="false"
  28923. static="false" final="false" visibility="public"
  28924. deprecated="not deprecated">
  28925. <param name="tag" type="java.lang.String"/>
  28926. <exception name="IOException" type="java.io.IOException"/>
  28927. </method>
  28928. <doc>
  28929. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28930. </doc>
  28931. </class>
  28932. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  28933. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  28934. <class name="BinaryRecordOutput" extends="java.lang.Object"
  28935. abstract="false"
  28936. static="false" final="false" visibility="public"
  28937. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28938. <implements name="org.apache.hadoop.record.RecordOutput"/>
  28939. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  28940. static="false" final="false" visibility="public"
  28941. deprecated="not deprecated">
  28942. <doc>
  28943. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  28944. </doc>
  28945. </constructor>
  28946. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  28947. static="false" final="false" visibility="public"
  28948. deprecated="not deprecated">
  28949. <doc>
  28950. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  28951. </doc>
  28952. </constructor>
  28953. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  28954. abstract="false" native="false" synchronized="false"
  28955. static="true" final="false" visibility="public"
  28956. deprecated="not deprecated">
  28957. <param name="out" type="java.io.DataOutput"/>
  28958. <doc>
  28959. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  28960. @param out data output stream
  28961. @return binary record output corresponding to the supplied DataOutput.]]>
  28962. </doc>
  28963. </method>
  28964. <method name="writeByte"
  28965. abstract="false" native="false" synchronized="false"
  28966. static="false" final="false" visibility="public"
  28967. deprecated="not deprecated">
  28968. <param name="b" type="byte"/>
  28969. <param name="tag" type="java.lang.String"/>
  28970. <exception name="IOException" type="java.io.IOException"/>
  28971. </method>
  28972. <method name="writeBool"
  28973. abstract="false" native="false" synchronized="false"
  28974. static="false" final="false" visibility="public"
  28975. deprecated="not deprecated">
  28976. <param name="b" type="boolean"/>
  28977. <param name="tag" type="java.lang.String"/>
  28978. <exception name="IOException" type="java.io.IOException"/>
  28979. </method>
  28980. <method name="writeInt"
  28981. abstract="false" native="false" synchronized="false"
  28982. static="false" final="false" visibility="public"
  28983. deprecated="not deprecated">
  28984. <param name="i" type="int"/>
  28985. <param name="tag" type="java.lang.String"/>
  28986. <exception name="IOException" type="java.io.IOException"/>
  28987. </method>
  28988. <method name="writeLong"
  28989. abstract="false" native="false" synchronized="false"
  28990. static="false" final="false" visibility="public"
  28991. deprecated="not deprecated">
  28992. <param name="l" type="long"/>
  28993. <param name="tag" type="java.lang.String"/>
  28994. <exception name="IOException" type="java.io.IOException"/>
  28995. </method>
  28996. <method name="writeFloat"
  28997. abstract="false" native="false" synchronized="false"
  28998. static="false" final="false" visibility="public"
  28999. deprecated="not deprecated">
  29000. <param name="f" type="float"/>
  29001. <param name="tag" type="java.lang.String"/>
  29002. <exception name="IOException" type="java.io.IOException"/>
  29003. </method>
  29004. <method name="writeDouble"
  29005. abstract="false" native="false" synchronized="false"
  29006. static="false" final="false" visibility="public"
  29007. deprecated="not deprecated">
  29008. <param name="d" type="double"/>
  29009. <param name="tag" type="java.lang.String"/>
  29010. <exception name="IOException" type="java.io.IOException"/>
  29011. </method>
  29012. <method name="writeString"
  29013. abstract="false" native="false" synchronized="false"
  29014. static="false" final="false" visibility="public"
  29015. deprecated="not deprecated">
  29016. <param name="s" type="java.lang.String"/>
  29017. <param name="tag" type="java.lang.String"/>
  29018. <exception name="IOException" type="java.io.IOException"/>
  29019. </method>
  29020. <method name="writeBuffer"
  29021. abstract="false" native="false" synchronized="false"
  29022. static="false" final="false" visibility="public"
  29023. deprecated="not deprecated">
  29024. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29025. <param name="tag" type="java.lang.String"/>
  29026. <exception name="IOException" type="java.io.IOException"/>
  29027. </method>
  29028. <method name="startRecord"
  29029. abstract="false" native="false" synchronized="false"
  29030. static="false" final="false" visibility="public"
  29031. deprecated="not deprecated">
  29032. <param name="r" type="org.apache.hadoop.record.Record"/>
  29033. <param name="tag" type="java.lang.String"/>
  29034. <exception name="IOException" type="java.io.IOException"/>
  29035. </method>
  29036. <method name="endRecord"
  29037. abstract="false" native="false" synchronized="false"
  29038. static="false" final="false" visibility="public"
  29039. deprecated="not deprecated">
  29040. <param name="r" type="org.apache.hadoop.record.Record"/>
  29041. <param name="tag" type="java.lang.String"/>
  29042. <exception name="IOException" type="java.io.IOException"/>
  29043. </method>
  29044. <method name="startVector"
  29045. abstract="false" native="false" synchronized="false"
  29046. static="false" final="false" visibility="public"
  29047. deprecated="not deprecated">
  29048. <param name="v" type="java.util.ArrayList"/>
  29049. <param name="tag" type="java.lang.String"/>
  29050. <exception name="IOException" type="java.io.IOException"/>
  29051. </method>
  29052. <method name="endVector"
  29053. abstract="false" native="false" synchronized="false"
  29054. static="false" final="false" visibility="public"
  29055. deprecated="not deprecated">
  29056. <param name="v" type="java.util.ArrayList"/>
  29057. <param name="tag" type="java.lang.String"/>
  29058. <exception name="IOException" type="java.io.IOException"/>
  29059. </method>
  29060. <method name="startMap"
  29061. abstract="false" native="false" synchronized="false"
  29062. static="false" final="false" visibility="public"
  29063. deprecated="not deprecated">
  29064. <param name="v" type="java.util.TreeMap"/>
  29065. <param name="tag" type="java.lang.String"/>
  29066. <exception name="IOException" type="java.io.IOException"/>
  29067. </method>
  29068. <method name="endMap"
  29069. abstract="false" native="false" synchronized="false"
  29070. static="false" final="false" visibility="public"
  29071. deprecated="not deprecated">
  29072. <param name="v" type="java.util.TreeMap"/>
  29073. <param name="tag" type="java.lang.String"/>
  29074. <exception name="IOException" type="java.io.IOException"/>
  29075. </method>
  29076. <doc>
  29077. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29078. </doc>
  29079. </class>
  29080. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  29081. <!-- start class org.apache.hadoop.record.Buffer -->
  29082. <class name="Buffer" extends="java.lang.Object"
  29083. abstract="false"
  29084. static="false" final="false" visibility="public"
  29085. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  29086. <implements name="java.lang.Comparable"/>
  29087. <implements name="java.lang.Cloneable"/>
  29088. <constructor name="Buffer"
  29089. static="false" final="false" visibility="public"
  29090. deprecated="not deprecated">
  29091. <doc>
  29092. <![CDATA[Create a zero-count sequence.]]>
  29093. </doc>
  29094. </constructor>
  29095. <constructor name="Buffer" type="byte[]"
  29096. static="false" final="false" visibility="public"
  29097. deprecated="not deprecated">
  29098. <doc>
  29099. <![CDATA[Create a Buffer using the byte array as the initial value.
  29100. @param bytes This array becomes the backing storage for the object.]]>
  29101. </doc>
  29102. </constructor>
  29103. <constructor name="Buffer" type="byte[], int, int"
  29104. static="false" final="false" visibility="public"
  29105. deprecated="not deprecated">
  29106. <doc>
  29107. <![CDATA[Create a Buffer using the byte range as the initial value.
  29108. @param bytes Copy of this array becomes the backing storage for the object.
  29109. @param offset offset into byte array
  29110. @param length length of data]]>
  29111. </doc>
  29112. </constructor>
  29113. <method name="set"
  29114. abstract="false" native="false" synchronized="false"
  29115. static="false" final="false" visibility="public"
  29116. deprecated="not deprecated">
  29117. <param name="bytes" type="byte[]"/>
  29118. <doc>
  29119. <![CDATA[Use the specified bytes array as underlying sequence.
  29120. @param bytes byte sequence]]>
  29121. </doc>
  29122. </method>
  29123. <method name="copy"
  29124. abstract="false" native="false" synchronized="false"
  29125. static="false" final="true" visibility="public"
  29126. deprecated="not deprecated">
  29127. <param name="bytes" type="byte[]"/>
  29128. <param name="offset" type="int"/>
  29129. <param name="length" type="int"/>
  29130. <doc>
  29131. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  29132. @param bytes byte array to be assigned
  29133. @param offset offset into byte array
  29134. @param length length of data]]>
  29135. </doc>
  29136. </method>
  29137. <method name="get" return="byte[]"
  29138. abstract="false" native="false" synchronized="false"
  29139. static="false" final="false" visibility="public"
  29140. deprecated="not deprecated">
  29141. <doc>
  29142. <![CDATA[Get the data from the Buffer.
  29143. @return The data is only valid between 0 and getCount() - 1.]]>
  29144. </doc>
  29145. </method>
  29146. <method name="getCount" return="int"
  29147. abstract="false" native="false" synchronized="false"
  29148. static="false" final="false" visibility="public"
  29149. deprecated="not deprecated">
  29150. <doc>
  29151. <![CDATA[Get the current count of the buffer.]]>
  29152. </doc>
  29153. </method>
  29154. <method name="getCapacity" return="int"
  29155. abstract="false" native="false" synchronized="false"
  29156. static="false" final="false" visibility="public"
  29157. deprecated="not deprecated">
  29158. <doc>
  29159. <![CDATA[Get the capacity, which is the maximum count that could handled without
  29160. resizing the backing storage.
  29161. @return The number of bytes]]>
  29162. </doc>
  29163. </method>
  29164. <method name="setCapacity"
  29165. abstract="false" native="false" synchronized="false"
  29166. static="false" final="false" visibility="public"
  29167. deprecated="not deprecated">
  29168. <param name="newCapacity" type="int"/>
  29169. <doc>
  29170. <![CDATA[Change the capacity of the backing storage.
  29171. The data is preserved if newCapacity {@literal >=} getCount().
  29172. @param newCapacity The new capacity in bytes.]]>
  29173. </doc>
  29174. </method>
  29175. <method name="reset"
  29176. abstract="false" native="false" synchronized="false"
  29177. static="false" final="false" visibility="public"
  29178. deprecated="not deprecated">
  29179. <doc>
  29180. <![CDATA[Reset the buffer to 0 size]]>
  29181. </doc>
  29182. </method>
  29183. <method name="truncate"
  29184. abstract="false" native="false" synchronized="false"
  29185. static="false" final="false" visibility="public"
  29186. deprecated="not deprecated">
  29187. <doc>
  29188. <![CDATA[Change the capacity of the backing store to be the same as the current
  29189. count of buffer.]]>
  29190. </doc>
  29191. </method>
  29192. <method name="append"
  29193. abstract="false" native="false" synchronized="false"
  29194. static="false" final="false" visibility="public"
  29195. deprecated="not deprecated">
  29196. <param name="bytes" type="byte[]"/>
  29197. <param name="offset" type="int"/>
  29198. <param name="length" type="int"/>
  29199. <doc>
  29200. <![CDATA[Append specified bytes to the buffer.
  29201. @param bytes byte array to be appended
  29202. @param offset offset into byte array
  29203. @param length length of data]]>
  29204. </doc>
  29205. </method>
  29206. <method name="append"
  29207. abstract="false" native="false" synchronized="false"
  29208. static="false" final="false" visibility="public"
  29209. deprecated="not deprecated">
  29210. <param name="bytes" type="byte[]"/>
  29211. <doc>
  29212. <![CDATA[Append specified bytes to the buffer
  29213. @param bytes byte array to be appended]]>
  29214. </doc>
  29215. </method>
  29216. <method name="hashCode" return="int"
  29217. abstract="false" native="false" synchronized="false"
  29218. static="false" final="false" visibility="public"
  29219. deprecated="not deprecated">
  29220. </method>
  29221. <method name="compareTo" return="int"
  29222. abstract="false" native="false" synchronized="false"
  29223. static="false" final="false" visibility="public"
  29224. deprecated="not deprecated">
  29225. <param name="other" type="java.lang.Object"/>
  29226. <doc>
  29227. <![CDATA[Define the sort order of the Buffer.
  29228. @param other The other buffer
  29229. @return Positive if this is bigger than other, 0 if they are equal, and
  29230. negative if this is smaller than other.]]>
  29231. </doc>
  29232. </method>
  29233. <method name="equals" return="boolean"
  29234. abstract="false" native="false" synchronized="false"
  29235. static="false" final="false" visibility="public"
  29236. deprecated="not deprecated">
  29237. <param name="other" type="java.lang.Object"/>
  29238. </method>
  29239. <method name="toString" return="java.lang.String"
  29240. abstract="false" native="false" synchronized="false"
  29241. static="false" final="false" visibility="public"
  29242. deprecated="not deprecated">
  29243. </method>
  29244. <method name="toString" return="java.lang.String"
  29245. abstract="false" native="false" synchronized="false"
  29246. static="false" final="false" visibility="public"
  29247. deprecated="not deprecated">
  29248. <param name="charsetName" type="java.lang.String"/>
  29249. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  29250. <doc>
  29251. <![CDATA[Convert the byte buffer to a string an specific character encoding
  29252. @param charsetName Valid Java Character Set Name]]>
  29253. </doc>
  29254. </method>
  29255. <method name="clone" return="java.lang.Object"
  29256. abstract="false" native="false" synchronized="false"
  29257. static="false" final="false" visibility="public"
  29258. deprecated="not deprecated">
  29259. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  29260. </method>
  29261. <doc>
  29262. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  29263. It is resizable and distinguishes between the count of the sequence and
  29264. the current capacity.
  29265. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  29266. </doc>
  29267. </class>
  29268. <!-- end class org.apache.hadoop.record.Buffer -->
  29269. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  29270. <class name="CsvRecordInput" extends="java.lang.Object"
  29271. abstract="false"
  29272. static="false" final="false" visibility="public"
  29273. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29274. <implements name="org.apache.hadoop.record.RecordInput"/>
  29275. <constructor name="CsvRecordInput" type="java.io.InputStream"
  29276. static="false" final="false" visibility="public"
  29277. deprecated="not deprecated">
  29278. <doc>
  29279. <![CDATA[Creates a new instance of CsvRecordInput]]>
  29280. </doc>
  29281. </constructor>
  29282. <method name="readByte" return="byte"
  29283. abstract="false" native="false" synchronized="false"
  29284. static="false" final="false" visibility="public"
  29285. deprecated="not deprecated">
  29286. <param name="tag" type="java.lang.String"/>
  29287. <exception name="IOException" type="java.io.IOException"/>
  29288. </method>
  29289. <method name="readBool" return="boolean"
  29290. abstract="false" native="false" synchronized="false"
  29291. static="false" final="false" visibility="public"
  29292. deprecated="not deprecated">
  29293. <param name="tag" type="java.lang.String"/>
  29294. <exception name="IOException" type="java.io.IOException"/>
  29295. </method>
  29296. <method name="readInt" return="int"
  29297. abstract="false" native="false" synchronized="false"
  29298. static="false" final="false" visibility="public"
  29299. deprecated="not deprecated">
  29300. <param name="tag" type="java.lang.String"/>
  29301. <exception name="IOException" type="java.io.IOException"/>
  29302. </method>
  29303. <method name="readLong" return="long"
  29304. abstract="false" native="false" synchronized="false"
  29305. static="false" final="false" visibility="public"
  29306. deprecated="not deprecated">
  29307. <param name="tag" type="java.lang.String"/>
  29308. <exception name="IOException" type="java.io.IOException"/>
  29309. </method>
  29310. <method name="readFloat" return="float"
  29311. abstract="false" native="false" synchronized="false"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="not deprecated">
  29314. <param name="tag" type="java.lang.String"/>
  29315. <exception name="IOException" type="java.io.IOException"/>
  29316. </method>
  29317. <method name="readDouble" return="double"
  29318. abstract="false" native="false" synchronized="false"
  29319. static="false" final="false" visibility="public"
  29320. deprecated="not deprecated">
  29321. <param name="tag" type="java.lang.String"/>
  29322. <exception name="IOException" type="java.io.IOException"/>
  29323. </method>
  29324. <method name="readString" return="java.lang.String"
  29325. abstract="false" native="false" synchronized="false"
  29326. static="false" final="false" visibility="public"
  29327. deprecated="not deprecated">
  29328. <param name="tag" type="java.lang.String"/>
  29329. <exception name="IOException" type="java.io.IOException"/>
  29330. </method>
  29331. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29332. abstract="false" native="false" synchronized="false"
  29333. static="false" final="false" visibility="public"
  29334. deprecated="not deprecated">
  29335. <param name="tag" type="java.lang.String"/>
  29336. <exception name="IOException" type="java.io.IOException"/>
  29337. </method>
  29338. <method name="startRecord"
  29339. abstract="false" native="false" synchronized="false"
  29340. static="false" final="false" visibility="public"
  29341. deprecated="not deprecated">
  29342. <param name="tag" type="java.lang.String"/>
  29343. <exception name="IOException" type="java.io.IOException"/>
  29344. </method>
  29345. <method name="endRecord"
  29346. abstract="false" native="false" synchronized="false"
  29347. static="false" final="false" visibility="public"
  29348. deprecated="not deprecated">
  29349. <param name="tag" type="java.lang.String"/>
  29350. <exception name="IOException" type="java.io.IOException"/>
  29351. </method>
  29352. <method name="startVector" return="org.apache.hadoop.record.Index"
  29353. abstract="false" native="false" synchronized="false"
  29354. static="false" final="false" visibility="public"
  29355. deprecated="not deprecated">
  29356. <param name="tag" type="java.lang.String"/>
  29357. <exception name="IOException" type="java.io.IOException"/>
  29358. </method>
  29359. <method name="endVector"
  29360. abstract="false" native="false" synchronized="false"
  29361. static="false" final="false" visibility="public"
  29362. deprecated="not deprecated">
  29363. <param name="tag" type="java.lang.String"/>
  29364. <exception name="IOException" type="java.io.IOException"/>
  29365. </method>
  29366. <method name="startMap" return="org.apache.hadoop.record.Index"
  29367. abstract="false" native="false" synchronized="false"
  29368. static="false" final="false" visibility="public"
  29369. deprecated="not deprecated">
  29370. <param name="tag" type="java.lang.String"/>
  29371. <exception name="IOException" type="java.io.IOException"/>
  29372. </method>
  29373. <method name="endMap"
  29374. abstract="false" native="false" synchronized="false"
  29375. static="false" final="false" visibility="public"
  29376. deprecated="not deprecated">
  29377. <param name="tag" type="java.lang.String"/>
  29378. <exception name="IOException" type="java.io.IOException"/>
  29379. </method>
  29380. <doc>
  29381. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29382. </doc>
  29383. </class>
  29384. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  29385. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  29386. <class name="CsvRecordOutput" extends="java.lang.Object"
  29387. abstract="false"
  29388. static="false" final="false" visibility="public"
  29389. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29390. <implements name="org.apache.hadoop.record.RecordOutput"/>
  29391. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  29392. static="false" final="false" visibility="public"
  29393. deprecated="not deprecated">
  29394. <doc>
  29395. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  29396. </doc>
  29397. </constructor>
  29398. <method name="writeByte"
  29399. abstract="false" native="false" synchronized="false"
  29400. static="false" final="false" visibility="public"
  29401. deprecated="not deprecated">
  29402. <param name="b" type="byte"/>
  29403. <param name="tag" type="java.lang.String"/>
  29404. <exception name="IOException" type="java.io.IOException"/>
  29405. </method>
  29406. <method name="writeBool"
  29407. abstract="false" native="false" synchronized="false"
  29408. static="false" final="false" visibility="public"
  29409. deprecated="not deprecated">
  29410. <param name="b" type="boolean"/>
  29411. <param name="tag" type="java.lang.String"/>
  29412. <exception name="IOException" type="java.io.IOException"/>
  29413. </method>
  29414. <method name="writeInt"
  29415. abstract="false" native="false" synchronized="false"
  29416. static="false" final="false" visibility="public"
  29417. deprecated="not deprecated">
  29418. <param name="i" type="int"/>
  29419. <param name="tag" type="java.lang.String"/>
  29420. <exception name="IOException" type="java.io.IOException"/>
  29421. </method>
  29422. <method name="writeLong"
  29423. abstract="false" native="false" synchronized="false"
  29424. static="false" final="false" visibility="public"
  29425. deprecated="not deprecated">
  29426. <param name="l" type="long"/>
  29427. <param name="tag" type="java.lang.String"/>
  29428. <exception name="IOException" type="java.io.IOException"/>
  29429. </method>
  29430. <method name="writeFloat"
  29431. abstract="false" native="false" synchronized="false"
  29432. static="false" final="false" visibility="public"
  29433. deprecated="not deprecated">
  29434. <param name="f" type="float"/>
  29435. <param name="tag" type="java.lang.String"/>
  29436. <exception name="IOException" type="java.io.IOException"/>
  29437. </method>
  29438. <method name="writeDouble"
  29439. abstract="false" native="false" synchronized="false"
  29440. static="false" final="false" visibility="public"
  29441. deprecated="not deprecated">
  29442. <param name="d" type="double"/>
  29443. <param name="tag" type="java.lang.String"/>
  29444. <exception name="IOException" type="java.io.IOException"/>
  29445. </method>
  29446. <method name="writeString"
  29447. abstract="false" native="false" synchronized="false"
  29448. static="false" final="false" visibility="public"
  29449. deprecated="not deprecated">
  29450. <param name="s" type="java.lang.String"/>
  29451. <param name="tag" type="java.lang.String"/>
  29452. <exception name="IOException" type="java.io.IOException"/>
  29453. </method>
  29454. <method name="writeBuffer"
  29455. abstract="false" native="false" synchronized="false"
  29456. static="false" final="false" visibility="public"
  29457. deprecated="not deprecated">
  29458. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29459. <param name="tag" type="java.lang.String"/>
  29460. <exception name="IOException" type="java.io.IOException"/>
  29461. </method>
  29462. <method name="startRecord"
  29463. abstract="false" native="false" synchronized="false"
  29464. static="false" final="false" visibility="public"
  29465. deprecated="not deprecated">
  29466. <param name="r" type="org.apache.hadoop.record.Record"/>
  29467. <param name="tag" type="java.lang.String"/>
  29468. <exception name="IOException" type="java.io.IOException"/>
  29469. </method>
  29470. <method name="endRecord"
  29471. abstract="false" native="false" synchronized="false"
  29472. static="false" final="false" visibility="public"
  29473. deprecated="not deprecated">
  29474. <param name="r" type="org.apache.hadoop.record.Record"/>
  29475. <param name="tag" type="java.lang.String"/>
  29476. <exception name="IOException" type="java.io.IOException"/>
  29477. </method>
  29478. <method name="startVector"
  29479. abstract="false" native="false" synchronized="false"
  29480. static="false" final="false" visibility="public"
  29481. deprecated="not deprecated">
  29482. <param name="v" type="java.util.ArrayList"/>
  29483. <param name="tag" type="java.lang.String"/>
  29484. <exception name="IOException" type="java.io.IOException"/>
  29485. </method>
  29486. <method name="endVector"
  29487. abstract="false" native="false" synchronized="false"
  29488. static="false" final="false" visibility="public"
  29489. deprecated="not deprecated">
  29490. <param name="v" type="java.util.ArrayList"/>
  29491. <param name="tag" type="java.lang.String"/>
  29492. <exception name="IOException" type="java.io.IOException"/>
  29493. </method>
  29494. <method name="startMap"
  29495. abstract="false" native="false" synchronized="false"
  29496. static="false" final="false" visibility="public"
  29497. deprecated="not deprecated">
  29498. <param name="v" type="java.util.TreeMap"/>
  29499. <param name="tag" type="java.lang.String"/>
  29500. <exception name="IOException" type="java.io.IOException"/>
  29501. </method>
  29502. <method name="endMap"
  29503. abstract="false" native="false" synchronized="false"
  29504. static="false" final="false" visibility="public"
  29505. deprecated="not deprecated">
  29506. <param name="v" type="java.util.TreeMap"/>
  29507. <param name="tag" type="java.lang.String"/>
  29508. <exception name="IOException" type="java.io.IOException"/>
  29509. </method>
  29510. <doc>
  29511. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29512. </doc>
  29513. </class>
  29514. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  29515. <!-- start interface org.apache.hadoop.record.Index -->
  29516. <interface name="Index" abstract="true"
  29517. static="false" final="false" visibility="public"
  29518. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29519. <method name="done" return="boolean"
  29520. abstract="false" native="false" synchronized="false"
  29521. static="false" final="false" visibility="public"
  29522. deprecated="not deprecated">
  29523. </method>
  29524. <method name="incr"
  29525. abstract="false" native="false" synchronized="false"
  29526. static="false" final="false" visibility="public"
  29527. deprecated="not deprecated">
  29528. </method>
  29529. <doc>
  29530. <![CDATA[Interface that acts as an iterator for deserializing maps.
  29531. The deserializer returns an instance that the record uses to
  29532. read vectors and maps. An example of usage is as follows:
  29533. <code>
  29534. Index idx = startVector(...);
  29535. while (!idx.done()) {
  29536. .... // read element of a vector
  29537. idx.incr();
  29538. }
  29539. </code>
  29540. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29541. </doc>
  29542. </interface>
  29543. <!-- end interface org.apache.hadoop.record.Index -->
  29544. <!-- start class org.apache.hadoop.record.Record -->
  29545. <class name="Record" extends="java.lang.Object"
  29546. abstract="true"
  29547. static="false" final="false" visibility="public"
  29548. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29549. <implements name="org.apache.hadoop.io.WritableComparable"/>
  29550. <implements name="java.lang.Cloneable"/>
  29551. <constructor name="Record"
  29552. static="false" final="false" visibility="public"
  29553. deprecated="not deprecated">
  29554. </constructor>
  29555. <method name="serialize"
  29556. abstract="true" native="false" synchronized="false"
  29557. static="false" final="false" visibility="public"
  29558. deprecated="not deprecated">
  29559. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  29560. <param name="tag" type="java.lang.String"/>
  29561. <exception name="IOException" type="java.io.IOException"/>
  29562. <doc>
  29563. <![CDATA[Serialize a record with tag (ususally field name)
  29564. @param rout Record output destination
  29565. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  29566. </doc>
  29567. </method>
  29568. <method name="deserialize"
  29569. abstract="true" native="false" synchronized="false"
  29570. static="false" final="false" visibility="public"
  29571. deprecated="not deprecated">
  29572. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  29573. <param name="tag" type="java.lang.String"/>
  29574. <exception name="IOException" type="java.io.IOException"/>
  29575. <doc>
  29576. <![CDATA[Deserialize a record with a tag (usually field name)
  29577. @param rin Record input source
  29578. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  29579. </doc>
  29580. </method>
  29581. <method name="compareTo" return="int"
  29582. abstract="true" native="false" synchronized="false"
  29583. static="false" final="false" visibility="public"
  29584. deprecated="not deprecated">
  29585. <param name="peer" type="java.lang.Object"/>
  29586. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  29587. </method>
  29588. <method name="serialize"
  29589. abstract="false" native="false" synchronized="false"
  29590. static="false" final="false" visibility="public"
  29591. deprecated="not deprecated">
  29592. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  29593. <exception name="IOException" type="java.io.IOException"/>
  29594. <doc>
  29595. <![CDATA[Serialize a record without a tag
  29596. @param rout Record output destination]]>
  29597. </doc>
  29598. </method>
  29599. <method name="deserialize"
  29600. abstract="false" native="false" synchronized="false"
  29601. static="false" final="false" visibility="public"
  29602. deprecated="not deprecated">
  29603. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  29604. <exception name="IOException" type="java.io.IOException"/>
  29605. <doc>
  29606. <![CDATA[Deserialize a record without a tag
  29607. @param rin Record input source]]>
  29608. </doc>
  29609. </method>
  29610. <method name="write"
  29611. abstract="false" native="false" synchronized="false"
  29612. static="false" final="false" visibility="public"
  29613. deprecated="not deprecated">
  29614. <param name="out" type="java.io.DataOutput"/>
  29615. <exception name="IOException" type="java.io.IOException"/>
  29616. </method>
  29617. <method name="readFields"
  29618. abstract="false" native="false" synchronized="false"
  29619. static="false" final="false" visibility="public"
  29620. deprecated="not deprecated">
  29621. <param name="din" type="java.io.DataInput"/>
  29622. <exception name="IOException" type="java.io.IOException"/>
  29623. </method>
  29624. <method name="toString" return="java.lang.String"
  29625. abstract="false" native="false" synchronized="false"
  29626. static="false" final="false" visibility="public"
  29627. deprecated="not deprecated">
  29628. </method>
  29629. <doc>
  29630. <![CDATA[Abstract class that is extended by generated classes.
  29631. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29632. </doc>
  29633. </class>
  29634. <!-- end class org.apache.hadoop.record.Record -->
  29635. <!-- start class org.apache.hadoop.record.RecordComparator -->
  29636. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  29637. abstract="true"
  29638. static="false" final="false" visibility="public"
  29639. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29640. <constructor name="RecordComparator" type="java.lang.Class"
  29641. static="false" final="false" visibility="protected"
  29642. deprecated="not deprecated">
  29643. <doc>
  29644. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  29645. </doc>
  29646. </constructor>
  29647. <method name="compare" return="int"
  29648. abstract="true" native="false" synchronized="false"
  29649. static="false" final="false" visibility="public"
  29650. deprecated="not deprecated">
  29651. <param name="b1" type="byte[]"/>
  29652. <param name="s1" type="int"/>
  29653. <param name="l1" type="int"/>
  29654. <param name="b2" type="byte[]"/>
  29655. <param name="s2" type="int"/>
  29656. <param name="l2" type="int"/>
  29657. </method>
  29658. <method name="define"
  29659. abstract="false" native="false" synchronized="true"
  29660. static="true" final="false" visibility="public"
  29661. deprecated="not deprecated">
  29662. <param name="c" type="java.lang.Class"/>
  29663. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  29664. <doc>
  29665. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  29666. @param c record classs for which a raw comparator is provided
  29667. @param comparator Raw comparator instance for class c]]>
  29668. </doc>
  29669. </method>
  29670. <doc>
  29671. <![CDATA[A raw record comparator base class
  29672. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29673. </doc>
  29674. </class>
  29675. <!-- end class org.apache.hadoop.record.RecordComparator -->
  29676. <!-- start interface org.apache.hadoop.record.RecordInput -->
  29677. <interface name="RecordInput" abstract="true"
  29678. static="false" final="false" visibility="public"
  29679. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29680. <method name="readByte" return="byte"
  29681. abstract="false" native="false" synchronized="false"
  29682. static="false" final="false" visibility="public"
  29683. deprecated="not deprecated">
  29684. <param name="tag" type="java.lang.String"/>
  29685. <exception name="IOException" type="java.io.IOException"/>
  29686. <doc>
  29687. <![CDATA[Read a byte from serialized record.
  29688. @param tag Used by tagged serialization formats (such as XML)
  29689. @return value read from serialized record.]]>
  29690. </doc>
  29691. </method>
  29692. <method name="readBool" return="boolean"
  29693. abstract="false" native="false" synchronized="false"
  29694. static="false" final="false" visibility="public"
  29695. deprecated="not deprecated">
  29696. <param name="tag" type="java.lang.String"/>
  29697. <exception name="IOException" type="java.io.IOException"/>
  29698. <doc>
  29699. <![CDATA[Read a boolean from serialized record.
  29700. @param tag Used by tagged serialization formats (such as XML)
  29701. @return value read from serialized record.]]>
  29702. </doc>
  29703. </method>
  29704. <method name="readInt" return="int"
  29705. abstract="false" native="false" synchronized="false"
  29706. static="false" final="false" visibility="public"
  29707. deprecated="not deprecated">
  29708. <param name="tag" type="java.lang.String"/>
  29709. <exception name="IOException" type="java.io.IOException"/>
  29710. <doc>
  29711. <![CDATA[Read an integer from serialized record.
  29712. @param tag Used by tagged serialization formats (such as XML)
  29713. @return value read from serialized record.]]>
  29714. </doc>
  29715. </method>
  29716. <method name="readLong" return="long"
  29717. abstract="false" native="false" synchronized="false"
  29718. static="false" final="false" visibility="public"
  29719. deprecated="not deprecated">
  29720. <param name="tag" type="java.lang.String"/>
  29721. <exception name="IOException" type="java.io.IOException"/>
  29722. <doc>
  29723. <![CDATA[Read a long integer from serialized record.
  29724. @param tag Used by tagged serialization formats (such as XML)
  29725. @return value read from serialized record.]]>
  29726. </doc>
  29727. </method>
  29728. <method name="readFloat" return="float"
  29729. abstract="false" native="false" synchronized="false"
  29730. static="false" final="false" visibility="public"
  29731. deprecated="not deprecated">
  29732. <param name="tag" type="java.lang.String"/>
  29733. <exception name="IOException" type="java.io.IOException"/>
  29734. <doc>
  29735. <![CDATA[Read a single-precision float from serialized record.
  29736. @param tag Used by tagged serialization formats (such as XML)
  29737. @return value read from serialized record.]]>
  29738. </doc>
  29739. </method>
  29740. <method name="readDouble" return="double"
  29741. abstract="false" native="false" synchronized="false"
  29742. static="false" final="false" visibility="public"
  29743. deprecated="not deprecated">
  29744. <param name="tag" type="java.lang.String"/>
  29745. <exception name="IOException" type="java.io.IOException"/>
  29746. <doc>
  29747. <![CDATA[Read a double-precision number from serialized record.
  29748. @param tag Used by tagged serialization formats (such as XML)
  29749. @return value read from serialized record.]]>
  29750. </doc>
  29751. </method>
  29752. <method name="readString" return="java.lang.String"
  29753. abstract="false" native="false" synchronized="false"
  29754. static="false" final="false" visibility="public"
  29755. deprecated="not deprecated">
  29756. <param name="tag" type="java.lang.String"/>
  29757. <exception name="IOException" type="java.io.IOException"/>
  29758. <doc>
  29759. <![CDATA[Read a UTF-8 encoded string from serialized record.
  29760. @param tag Used by tagged serialization formats (such as XML)
  29761. @return value read from serialized record.]]>
  29762. </doc>
  29763. </method>
  29764. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29765. abstract="false" native="false" synchronized="false"
  29766. static="false" final="false" visibility="public"
  29767. deprecated="not deprecated">
  29768. <param name="tag" type="java.lang.String"/>
  29769. <exception name="IOException" type="java.io.IOException"/>
  29770. <doc>
  29771. <![CDATA[Read byte array from serialized record.
  29772. @param tag Used by tagged serialization formats (such as XML)
  29773. @return value read from serialized record.]]>
  29774. </doc>
  29775. </method>
  29776. <method name="startRecord"
  29777. abstract="false" native="false" synchronized="false"
  29778. static="false" final="false" visibility="public"
  29779. deprecated="not deprecated">
  29780. <param name="tag" type="java.lang.String"/>
  29781. <exception name="IOException" type="java.io.IOException"/>
  29782. <doc>
  29783. <![CDATA[Check the mark for start of the serialized record.
  29784. @param tag Used by tagged serialization formats (such as XML)]]>
  29785. </doc>
  29786. </method>
  29787. <method name="endRecord"
  29788. abstract="false" native="false" synchronized="false"
  29789. static="false" final="false" visibility="public"
  29790. deprecated="not deprecated">
  29791. <param name="tag" type="java.lang.String"/>
  29792. <exception name="IOException" type="java.io.IOException"/>
  29793. <doc>
  29794. <![CDATA[Check the mark for end of the serialized record.
  29795. @param tag Used by tagged serialization formats (such as XML)]]>
  29796. </doc>
  29797. </method>
  29798. <method name="startVector" return="org.apache.hadoop.record.Index"
  29799. abstract="false" native="false" synchronized="false"
  29800. static="false" final="false" visibility="public"
  29801. deprecated="not deprecated">
  29802. <param name="tag" type="java.lang.String"/>
  29803. <exception name="IOException" type="java.io.IOException"/>
  29804. <doc>
  29805. <![CDATA[Check the mark for start of the serialized vector.
  29806. @param tag Used by tagged serialization formats (such as XML)
  29807. @return Index that is used to count the number of elements.]]>
  29808. </doc>
  29809. </method>
  29810. <method name="endVector"
  29811. abstract="false" native="false" synchronized="false"
  29812. static="false" final="false" visibility="public"
  29813. deprecated="not deprecated">
  29814. <param name="tag" type="java.lang.String"/>
  29815. <exception name="IOException" type="java.io.IOException"/>
  29816. <doc>
  29817. <![CDATA[Check the mark for end of the serialized vector.
  29818. @param tag Used by tagged serialization formats (such as XML)]]>
  29819. </doc>
  29820. </method>
  29821. <method name="startMap" return="org.apache.hadoop.record.Index"
  29822. abstract="false" native="false" synchronized="false"
  29823. static="false" final="false" visibility="public"
  29824. deprecated="not deprecated">
  29825. <param name="tag" type="java.lang.String"/>
  29826. <exception name="IOException" type="java.io.IOException"/>
  29827. <doc>
  29828. <![CDATA[Check the mark for start of the serialized map.
  29829. @param tag Used by tagged serialization formats (such as XML)
  29830. @return Index that is used to count the number of map entries.]]>
  29831. </doc>
  29832. </method>
  29833. <method name="endMap"
  29834. abstract="false" native="false" synchronized="false"
  29835. static="false" final="false" visibility="public"
  29836. deprecated="not deprecated">
  29837. <param name="tag" type="java.lang.String"/>
  29838. <exception name="IOException" type="java.io.IOException"/>
  29839. <doc>
  29840. <![CDATA[Check the mark for end of the serialized map.
  29841. @param tag Used by tagged serialization formats (such as XML)]]>
  29842. </doc>
  29843. </method>
  29844. <doc>
  29845. <![CDATA[Interface that all the Deserializers have to implement.
  29846. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  29847. </doc>
  29848. </interface>
  29849. <!-- end interface org.apache.hadoop.record.RecordInput -->
  29850. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  29851. <interface name="RecordOutput" abstract="true"
  29852. static="false" final="false" visibility="public"
  29853. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  29854. <method name="writeByte"
  29855. abstract="false" native="false" synchronized="false"
  29856. static="false" final="false" visibility="public"
  29857. deprecated="not deprecated">
  29858. <param name="b" type="byte"/>
  29859. <param name="tag" type="java.lang.String"/>
  29860. <exception name="IOException" type="java.io.IOException"/>
  29861. <doc>
  29862. <![CDATA[Write a byte to serialized record.
  29863. @param b Byte to be serialized
  29864. @param tag Used by tagged serialization formats (such as XML)
  29865. @throws IOException Indicates error in serialization]]>
  29866. </doc>
  29867. </method>
  29868. <method name="writeBool"
  29869. abstract="false" native="false" synchronized="false"
  29870. static="false" final="false" visibility="public"
  29871. deprecated="not deprecated">
  29872. <param name="b" type="boolean"/>
  29873. <param name="tag" type="java.lang.String"/>
  29874. <exception name="IOException" type="java.io.IOException"/>
  29875. <doc>
  29876. <![CDATA[Write a boolean to serialized record.
  29877. @param b Boolean to be serialized
  29878. @param tag Used by tagged serialization formats (such as XML)
  29879. @throws IOException Indicates error in serialization]]>
  29880. </doc>
  29881. </method>
  29882. <method name="writeInt"
  29883. abstract="false" native="false" synchronized="false"
  29884. static="false" final="false" visibility="public"
  29885. deprecated="not deprecated">
  29886. <param name="i" type="int"/>
  29887. <param name="tag" type="java.lang.String"/>
  29888. <exception name="IOException" type="java.io.IOException"/>
  29889. <doc>
  29890. <![CDATA[Write an integer to serialized record.
  29891. @param i Integer to be serialized
  29892. @param tag Used by tagged serialization formats (such as XML)
  29893. @throws IOException Indicates error in serialization]]>
  29894. </doc>
  29895. </method>
  29896. <method name="writeLong"
  29897. abstract="false" native="false" synchronized="false"
  29898. static="false" final="false" visibility="public"
  29899. deprecated="not deprecated">
  29900. <param name="l" type="long"/>
  29901. <param name="tag" type="java.lang.String"/>
  29902. <exception name="IOException" type="java.io.IOException"/>
  29903. <doc>
  29904. <![CDATA[Write a long integer to serialized record.
  29905. @param l Long to be serialized
  29906. @param tag Used by tagged serialization formats (such as XML)
  29907. @throws IOException Indicates error in serialization]]>
  29908. </doc>
  29909. </method>
  29910. <method name="writeFloat"
  29911. abstract="false" native="false" synchronized="false"
  29912. static="false" final="false" visibility="public"
  29913. deprecated="not deprecated">
  29914. <param name="f" type="float"/>
  29915. <param name="tag" type="java.lang.String"/>
  29916. <exception name="IOException" type="java.io.IOException"/>
  29917. <doc>
  29918. <![CDATA[Write a single-precision float to serialized record.
  29919. @param f Float to be serialized
  29920. @param tag Used by tagged serialization formats (such as XML)
  29921. @throws IOException Indicates error in serialization]]>
  29922. </doc>
  29923. </method>
  29924. <method name="writeDouble"
  29925. abstract="false" native="false" synchronized="false"
  29926. static="false" final="false" visibility="public"
  29927. deprecated="not deprecated">
  29928. <param name="d" type="double"/>
  29929. <param name="tag" type="java.lang.String"/>
  29930. <exception name="IOException" type="java.io.IOException"/>
  29931. <doc>
  29932. <![CDATA[Write a double precision floating point number to serialized record.
  29933. @param d Double to be serialized
  29934. @param tag Used by tagged serialization formats (such as XML)
  29935. @throws IOException Indicates error in serialization]]>
  29936. </doc>
  29937. </method>
  29938. <method name="writeString"
  29939. abstract="false" native="false" synchronized="false"
  29940. static="false" final="false" visibility="public"
  29941. deprecated="not deprecated">
  29942. <param name="s" type="java.lang.String"/>
  29943. <param name="tag" type="java.lang.String"/>
  29944. <exception name="IOException" type="java.io.IOException"/>
  29945. <doc>
  29946. <![CDATA[Write a unicode string to serialized record.
  29947. @param s String to be serialized
  29948. @param tag Used by tagged serialization formats (such as XML)
  29949. @throws IOException Indicates error in serialization]]>
  29950. </doc>
  29951. </method>
  29952. <method name="writeBuffer"
  29953. abstract="false" native="false" synchronized="false"
  29954. static="false" final="false" visibility="public"
  29955. deprecated="not deprecated">
  29956. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29957. <param name="tag" type="java.lang.String"/>
  29958. <exception name="IOException" type="java.io.IOException"/>
  29959. <doc>
  29960. <![CDATA[Write a buffer to serialized record.
  29961. @param buf Buffer to be serialized
  29962. @param tag Used by tagged serialization formats (such as XML)
  29963. @throws IOException Indicates error in serialization]]>
  29964. </doc>
  29965. </method>
  29966. <method name="startRecord"
  29967. abstract="false" native="false" synchronized="false"
  29968. static="false" final="false" visibility="public"
  29969. deprecated="not deprecated">
  29970. <param name="r" type="org.apache.hadoop.record.Record"/>
  29971. <param name="tag" type="java.lang.String"/>
  29972. <exception name="IOException" type="java.io.IOException"/>
  29973. <doc>
  29974. <![CDATA[Mark the start of a record to be serialized.
  29975. @param r Record to be serialized
  29976. @param tag Used by tagged serialization formats (such as XML)
  29977. @throws IOException Indicates error in serialization]]>
  29978. </doc>
  29979. </method>
  29980. <method name="endRecord"
  29981. abstract="false" native="false" synchronized="false"
  29982. static="false" final="false" visibility="public"
  29983. deprecated="not deprecated">
  29984. <param name="r" type="org.apache.hadoop.record.Record"/>
  29985. <param name="tag" type="java.lang.String"/>
  29986. <exception name="IOException" type="java.io.IOException"/>
  29987. <doc>
  29988. <![CDATA[Mark the end of a serialized record.
  29989. @param r Record to be serialized
  29990. @param tag Used by tagged serialization formats (such as XML)
  29991. @throws IOException Indicates error in serialization]]>
  29992. </doc>
  29993. </method>
  29994. <method name="startVector"
  29995. abstract="false" native="false" synchronized="false"
  29996. static="false" final="false" visibility="public"
  29997. deprecated="not deprecated">
  29998. <param name="v" type="java.util.ArrayList"/>
  29999. <param name="tag" type="java.lang.String"/>
  30000. <exception name="IOException" type="java.io.IOException"/>
  30001. <doc>
  30002. <![CDATA[Mark the start of a vector to be serialized.
  30003. @param v Vector to be serialized
  30004. @param tag Used by tagged serialization formats (such as XML)
  30005. @throws IOException Indicates error in serialization]]>
  30006. </doc>
  30007. </method>
  30008. <method name="endVector"
  30009. abstract="false" native="false" synchronized="false"
  30010. static="false" final="false" visibility="public"
  30011. deprecated="not deprecated">
  30012. <param name="v" type="java.util.ArrayList"/>
  30013. <param name="tag" type="java.lang.String"/>
  30014. <exception name="IOException" type="java.io.IOException"/>
  30015. <doc>
  30016. <![CDATA[Mark the end of a serialized vector.
  30017. @param v Vector to be serialized
  30018. @param tag Used by tagged serialization formats (such as XML)
  30019. @throws IOException Indicates error in serialization]]>
  30020. </doc>
  30021. </method>
  30022. <method name="startMap"
  30023. abstract="false" native="false" synchronized="false"
  30024. static="false" final="false" visibility="public"
  30025. deprecated="not deprecated">
  30026. <param name="m" type="java.util.TreeMap"/>
  30027. <param name="tag" type="java.lang.String"/>
  30028. <exception name="IOException" type="java.io.IOException"/>
  30029. <doc>
  30030. <![CDATA[Mark the start of a map to be serialized.
  30031. @param m Map to be serialized
  30032. @param tag Used by tagged serialization formats (such as XML)
  30033. @throws IOException Indicates error in serialization]]>
  30034. </doc>
  30035. </method>
  30036. <method name="endMap"
  30037. abstract="false" native="false" synchronized="false"
  30038. static="false" final="false" visibility="public"
  30039. deprecated="not deprecated">
  30040. <param name="m" type="java.util.TreeMap"/>
  30041. <param name="tag" type="java.lang.String"/>
  30042. <exception name="IOException" type="java.io.IOException"/>
  30043. <doc>
  30044. <![CDATA[Mark the end of a serialized map.
  30045. @param m Map to be serialized
  30046. @param tag Used by tagged serialization formats (such as XML)
  30047. @throws IOException Indicates error in serialization]]>
  30048. </doc>
  30049. </method>
  30050. <doc>
  30051. <![CDATA[Interface that all the serializers have to implement.
  30052. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30053. </doc>
  30054. </interface>
  30055. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  30056. <!-- start class org.apache.hadoop.record.Utils -->
  30057. <class name="Utils" extends="java.lang.Object"
  30058. abstract="false"
  30059. static="false" final="false" visibility="public"
  30060. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  30061. <method name="readFloat" return="float"
  30062. abstract="false" native="false" synchronized="false"
  30063. static="true" final="false" visibility="public"
  30064. deprecated="not deprecated">
  30065. <param name="bytes" type="byte[]"/>
  30066. <param name="start" type="int"/>
  30067. <doc>
  30068. <![CDATA[Parse a float from a byte array.]]>
  30069. </doc>
  30070. </method>
  30071. <method name="readDouble" return="double"
  30072. abstract="false" native="false" synchronized="false"
  30073. static="true" final="false" visibility="public"
  30074. deprecated="not deprecated">
  30075. <param name="bytes" type="byte[]"/>
  30076. <param name="start" type="int"/>
  30077. <doc>
  30078. <![CDATA[Parse a double from a byte array.]]>
  30079. </doc>
  30080. </method>
  30081. <method name="readVLong" return="long"
  30082. abstract="false" native="false" synchronized="false"
  30083. static="true" final="false" visibility="public"
  30084. deprecated="not deprecated">
  30085. <param name="bytes" type="byte[]"/>
  30086. <param name="start" type="int"/>
  30087. <exception name="IOException" type="java.io.IOException"/>
  30088. <doc>
  30089. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  30090. @param bytes byte array with decode long
  30091. @param start starting index
  30092. @throws java.io.IOException
  30093. @return deserialized long]]>
  30094. </doc>
  30095. </method>
  30096. <method name="readVInt" return="int"
  30097. abstract="false" native="false" synchronized="false"
  30098. static="true" final="false" visibility="public"
  30099. deprecated="not deprecated">
  30100. <param name="bytes" type="byte[]"/>
  30101. <param name="start" type="int"/>
  30102. <exception name="IOException" type="java.io.IOException"/>
  30103. <doc>
  30104. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  30105. @param bytes byte array with the encoded integer
  30106. @param start start index
  30107. @throws java.io.IOException
  30108. @return deserialized integer]]>
  30109. </doc>
  30110. </method>
  30111. <method name="readVLong" return="long"
  30112. abstract="false" native="false" synchronized="false"
  30113. static="true" final="false" visibility="public"
  30114. deprecated="not deprecated">
  30115. <param name="in" type="java.io.DataInput"/>
  30116. <exception name="IOException" type="java.io.IOException"/>
  30117. <doc>
  30118. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  30119. @param in input stream
  30120. @throws java.io.IOException
  30121. @return deserialized long]]>
  30122. </doc>
  30123. </method>
  30124. <method name="readVInt" return="int"
  30125. abstract="false" native="false" synchronized="false"
  30126. static="true" final="false" visibility="public"
  30127. deprecated="not deprecated">
  30128. <param name="in" type="java.io.DataInput"/>
  30129. <exception name="IOException" type="java.io.IOException"/>
  30130. <doc>
  30131. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  30132. @param in input stream
  30133. @throws java.io.IOException
  30134. @return deserialized integer]]>
  30135. </doc>
  30136. </method>
  30137. <method name="getVIntSize" return="int"
  30138. abstract="false" native="false" synchronized="false"
  30139. static="true" final="false" visibility="public"
  30140. deprecated="not deprecated">
  30141. <param name="i" type="long"/>
  30142. <doc>
  30143. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  30144. @return the encoded length]]>
  30145. </doc>
  30146. </method>
  30147. <method name="writeVLong"
  30148. abstract="false" native="false" synchronized="false"
  30149. static="true" final="false" visibility="public"
  30150. deprecated="not deprecated">
  30151. <param name="stream" type="java.io.DataOutput"/>
  30152. <param name="i" type="long"/>
  30153. <exception name="IOException" type="java.io.IOException"/>
  30154. <doc>
  30155. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  30156. For {@literal -112 <= i <= 127}, only one byte is used with the actual
  30157. value. For other values of i, the first byte value indicates whether the
  30158. long is positive or negative, and the number of bytes that follow.
  30159. If the first byte value v is between -113 and -120, the following long
  30160. is positive, with number of bytes that follow are -(v+112).
  30161. If the first byte value v is between -121 and -128, the following long
  30162. is negative, with number of bytes that follow are -(v+120). Bytes are
  30163. stored in the high-non-zero-byte-first order.
  30164. @param stream Binary output stream
  30165. @param i Long to be serialized
  30166. @throws java.io.IOException]]>
  30167. </doc>
  30168. </method>
  30169. <method name="writeVInt"
  30170. abstract="false" native="false" synchronized="false"
  30171. static="true" final="false" visibility="public"
  30172. deprecated="not deprecated">
  30173. <param name="stream" type="java.io.DataOutput"/>
  30174. <param name="i" type="int"/>
  30175. <exception name="IOException" type="java.io.IOException"/>
  30176. <doc>
  30177. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  30178. @param stream Binary output stream
  30179. @param i int to be serialized
  30180. @throws java.io.IOException]]>
  30181. </doc>
  30182. </method>
  30183. <method name="compareBytes" return="int"
  30184. abstract="false" native="false" synchronized="false"
  30185. static="true" final="false" visibility="public"
  30186. deprecated="not deprecated">
  30187. <param name="b1" type="byte[]"/>
  30188. <param name="s1" type="int"/>
  30189. <param name="l1" type="int"/>
  30190. <param name="b2" type="byte[]"/>
  30191. <param name="s2" type="int"/>
  30192. <param name="l2" type="int"/>
  30193. <doc>
  30194. <![CDATA[Lexicographic order of binary data.]]>
  30195. </doc>
  30196. </method>
  30197. <field name="hexchars" type="char[]"
  30198. transient="false" volatile="false"
  30199. static="true" final="true" visibility="public"
  30200. deprecated="not deprecated">
  30201. </field>
  30202. <doc>
  30203. <![CDATA[Various utility functions for Hadoop record I/O runtime.
  30204. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  30205. </doc>
  30206. </class>
  30207. <!-- end class org.apache.hadoop.record.Utils -->
  30208. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  30209. <class name="XmlRecordInput" extends="java.lang.Object"
  30210. abstract="false"
  30211. static="false" final="false" visibility="public"
  30212. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30213. <implements name="org.apache.hadoop.record.RecordInput"/>
  30214. <constructor name="XmlRecordInput" type="java.io.InputStream"
  30215. static="false" final="false" visibility="public"
  30216. deprecated="not deprecated">
  30217. <doc>
  30218. <![CDATA[Creates a new instance of XmlRecordInput]]>
  30219. </doc>
  30220. </constructor>
  30221. <method name="readByte" return="byte"
  30222. abstract="false" native="false" synchronized="false"
  30223. static="false" final="false" visibility="public"
  30224. deprecated="not deprecated">
  30225. <param name="tag" type="java.lang.String"/>
  30226. <exception name="IOException" type="java.io.IOException"/>
  30227. </method>
  30228. <method name="readBool" return="boolean"
  30229. abstract="false" native="false" synchronized="false"
  30230. static="false" final="false" visibility="public"
  30231. deprecated="not deprecated">
  30232. <param name="tag" type="java.lang.String"/>
  30233. <exception name="IOException" type="java.io.IOException"/>
  30234. </method>
  30235. <method name="readInt" return="int"
  30236. abstract="false" native="false" synchronized="false"
  30237. static="false" final="false" visibility="public"
  30238. deprecated="not deprecated">
  30239. <param name="tag" type="java.lang.String"/>
  30240. <exception name="IOException" type="java.io.IOException"/>
  30241. </method>
  30242. <method name="readLong" return="long"
  30243. abstract="false" native="false" synchronized="false"
  30244. static="false" final="false" visibility="public"
  30245. deprecated="not deprecated">
  30246. <param name="tag" type="java.lang.String"/>
  30247. <exception name="IOException" type="java.io.IOException"/>
  30248. </method>
  30249. <method name="readFloat" return="float"
  30250. abstract="false" native="false" synchronized="false"
  30251. static="false" final="false" visibility="public"
  30252. deprecated="not deprecated">
  30253. <param name="tag" type="java.lang.String"/>
  30254. <exception name="IOException" type="java.io.IOException"/>
  30255. </method>
  30256. <method name="readDouble" return="double"
  30257. abstract="false" native="false" synchronized="false"
  30258. static="false" final="false" visibility="public"
  30259. deprecated="not deprecated">
  30260. <param name="tag" type="java.lang.String"/>
  30261. <exception name="IOException" type="java.io.IOException"/>
  30262. </method>
  30263. <method name="readString" return="java.lang.String"
  30264. abstract="false" native="false" synchronized="false"
  30265. static="false" final="false" visibility="public"
  30266. deprecated="not deprecated">
  30267. <param name="tag" type="java.lang.String"/>
  30268. <exception name="IOException" type="java.io.IOException"/>
  30269. </method>
  30270. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30271. abstract="false" native="false" synchronized="false"
  30272. static="false" final="false" visibility="public"
  30273. deprecated="not deprecated">
  30274. <param name="tag" type="java.lang.String"/>
  30275. <exception name="IOException" type="java.io.IOException"/>
  30276. </method>
  30277. <method name="startRecord"
  30278. abstract="false" native="false" synchronized="false"
  30279. static="false" final="false" visibility="public"
  30280. deprecated="not deprecated">
  30281. <param name="tag" type="java.lang.String"/>
  30282. <exception name="IOException" type="java.io.IOException"/>
  30283. </method>
  30284. <method name="endRecord"
  30285. abstract="false" native="false" synchronized="false"
  30286. static="false" final="false" visibility="public"
  30287. deprecated="not deprecated">
  30288. <param name="tag" type="java.lang.String"/>
  30289. <exception name="IOException" type="java.io.IOException"/>
  30290. </method>
  30291. <method name="startVector" return="org.apache.hadoop.record.Index"
  30292. abstract="false" native="false" synchronized="false"
  30293. static="false" final="false" visibility="public"
  30294. deprecated="not deprecated">
  30295. <param name="tag" type="java.lang.String"/>
  30296. <exception name="IOException" type="java.io.IOException"/>
  30297. </method>
  30298. <method name="endVector"
  30299. abstract="false" native="false" synchronized="false"
  30300. static="false" final="false" visibility="public"
  30301. deprecated="not deprecated">
  30302. <param name="tag" type="java.lang.String"/>
  30303. <exception name="IOException" type="java.io.IOException"/>
  30304. </method>
  30305. <method name="startMap" return="org.apache.hadoop.record.Index"
  30306. abstract="false" native="false" synchronized="false"
  30307. static="false" final="false" visibility="public"
  30308. deprecated="not deprecated">
  30309. <param name="tag" type="java.lang.String"/>
  30310. <exception name="IOException" type="java.io.IOException"/>
  30311. </method>
  30312. <method name="endMap"
  30313. abstract="false" native="false" synchronized="false"
  30314. static="false" final="false" visibility="public"
  30315. deprecated="not deprecated">
  30316. <param name="tag" type="java.lang.String"/>
  30317. <exception name="IOException" type="java.io.IOException"/>
  30318. </method>
  30319. <doc>
  30320. <![CDATA[XML Deserializer.
  30321. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30322. </doc>
  30323. </class>
  30324. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  30325. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  30326. <class name="XmlRecordOutput" extends="java.lang.Object"
  30327. abstract="false"
  30328. static="false" final="false" visibility="public"
  30329. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  30330. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30331. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  30332. static="false" final="false" visibility="public"
  30333. deprecated="not deprecated">
  30334. <doc>
  30335. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  30336. </doc>
  30337. </constructor>
  30338. <method name="writeByte"
  30339. abstract="false" native="false" synchronized="false"
  30340. static="false" final="false" visibility="public"
  30341. deprecated="not deprecated">
  30342. <param name="b" type="byte"/>
  30343. <param name="tag" type="java.lang.String"/>
  30344. <exception name="IOException" type="java.io.IOException"/>
  30345. </method>
  30346. <method name="writeBool"
  30347. abstract="false" native="false" synchronized="false"
  30348. static="false" final="false" visibility="public"
  30349. deprecated="not deprecated">
  30350. <param name="b" type="boolean"/>
  30351. <param name="tag" type="java.lang.String"/>
  30352. <exception name="IOException" type="java.io.IOException"/>
  30353. </method>
  30354. <method name="writeInt"
  30355. abstract="false" native="false" synchronized="false"
  30356. static="false" final="false" visibility="public"
  30357. deprecated="not deprecated">
  30358. <param name="i" type="int"/>
  30359. <param name="tag" type="java.lang.String"/>
  30360. <exception name="IOException" type="java.io.IOException"/>
  30361. </method>
  30362. <method name="writeLong"
  30363. abstract="false" native="false" synchronized="false"
  30364. static="false" final="false" visibility="public"
  30365. deprecated="not deprecated">
  30366. <param name="l" type="long"/>
  30367. <param name="tag" type="java.lang.String"/>
  30368. <exception name="IOException" type="java.io.IOException"/>
  30369. </method>
  30370. <method name="writeFloat"
  30371. abstract="false" native="false" synchronized="false"
  30372. static="false" final="false" visibility="public"
  30373. deprecated="not deprecated">
  30374. <param name="f" type="float"/>
  30375. <param name="tag" type="java.lang.String"/>
  30376. <exception name="IOException" type="java.io.IOException"/>
  30377. </method>
  30378. <method name="writeDouble"
  30379. abstract="false" native="false" synchronized="false"
  30380. static="false" final="false" visibility="public"
  30381. deprecated="not deprecated">
  30382. <param name="d" type="double"/>
  30383. <param name="tag" type="java.lang.String"/>
  30384. <exception name="IOException" type="java.io.IOException"/>
  30385. </method>
  30386. <method name="writeString"
  30387. abstract="false" native="false" synchronized="false"
  30388. static="false" final="false" visibility="public"
  30389. deprecated="not deprecated">
  30390. <param name="s" type="java.lang.String"/>
  30391. <param name="tag" type="java.lang.String"/>
  30392. <exception name="IOException" type="java.io.IOException"/>
  30393. </method>
  30394. <method name="writeBuffer"
  30395. abstract="false" native="false" synchronized="false"
  30396. static="false" final="false" visibility="public"
  30397. deprecated="not deprecated">
  30398. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30399. <param name="tag" type="java.lang.String"/>
  30400. <exception name="IOException" type="java.io.IOException"/>
  30401. </method>
  30402. <method name="startRecord"
  30403. abstract="false" native="false" synchronized="false"
  30404. static="false" final="false" visibility="public"
  30405. deprecated="not deprecated">
  30406. <param name="r" type="org.apache.hadoop.record.Record"/>
  30407. <param name="tag" type="java.lang.String"/>
  30408. <exception name="IOException" type="java.io.IOException"/>
  30409. </method>
  30410. <method name="endRecord"
  30411. abstract="false" native="false" synchronized="false"
  30412. static="false" final="false" visibility="public"
  30413. deprecated="not deprecated">
  30414. <param name="r" type="org.apache.hadoop.record.Record"/>
  30415. <param name="tag" type="java.lang.String"/>
  30416. <exception name="IOException" type="java.io.IOException"/>
  30417. </method>
  30418. <method name="startVector"
  30419. abstract="false" native="false" synchronized="false"
  30420. static="false" final="false" visibility="public"
  30421. deprecated="not deprecated">
  30422. <param name="v" type="java.util.ArrayList"/>
  30423. <param name="tag" type="java.lang.String"/>
  30424. <exception name="IOException" type="java.io.IOException"/>
  30425. </method>
  30426. <method name="endVector"
  30427. abstract="false" native="false" synchronized="false"
  30428. static="false" final="false" visibility="public"
  30429. deprecated="not deprecated">
  30430. <param name="v" type="java.util.ArrayList"/>
  30431. <param name="tag" type="java.lang.String"/>
  30432. <exception name="IOException" type="java.io.IOException"/>
  30433. </method>
  30434. <method name="startMap"
  30435. abstract="false" native="false" synchronized="false"
  30436. static="false" final="false" visibility="public"
  30437. deprecated="not deprecated">
  30438. <param name="v" type="java.util.TreeMap"/>
  30439. <param name="tag" type="java.lang.String"/>
  30440. <exception name="IOException" type="java.io.IOException"/>
  30441. </method>
  30442. <method name="endMap"
  30443. abstract="false" native="false" synchronized="false"
  30444. static="false" final="false" visibility="public"
  30445. deprecated="not deprecated">
  30446. <param name="v" type="java.util.TreeMap"/>
  30447. <param name="tag" type="java.lang.String"/>
  30448. <exception name="IOException" type="java.io.IOException"/>
  30449. </method>
  30450. <doc>
  30451. <![CDATA[XML Serializer.
  30452. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  30453. </doc>
  30454. </class>
  30455. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  30456. <doc>
  30457. <![CDATA[<p>
  30458. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  30459. translator for simplifying serialization and deserialization of records in a
  30460. language-neutral manner.
  30461. </p>
  30462. <p>
  30463. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  30464. </p>
  30465. <h2>Introduction</h2>
  30466. Software systems of any significant complexity require mechanisms for data
  30467. interchange with the outside world. These interchanges typically involve the
  30468. marshaling and unmarshaling of logical units of data to and from data streams
  30469. (files, network connections, memory buffers etc.). Applications usually have
  30470. some code for serializing and deserializing the data types that they manipulate
  30471. embedded in them. The work of serialization has several features that make
  30472. automatic code generation for it worthwhile. Given a particular output encoding
  30473. (binary, XML, etc.), serialization of primitive types and simple compositions
  30474. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  30475. written serialization code can be susceptible to bugs especially when records
  30476. have a large number of fields or a record definition changes between software
  30477. versions. Lastly, it can be very useful for applications written in different
  30478. programming languages to be able to share and interchange data. This can be
  30479. made a lot easier by describing the data records manipulated by these
  30480. applications in a language agnostic manner and using the descriptions to derive
  30481. implementations of serialization in multiple target languages.
  30482. This document describes Hadoop Record I/O, a mechanism that is aimed
  30483. at
  30484. <ul>
  30485. <li> enabling the specification of simple serializable data types (records)
  30486. <li> enabling the generation of code in multiple target languages for
  30487. marshaling and unmarshaling such types
  30488. <li> providing target language specific support that will enable application
  30489. programmers to incorporate generated code into their applications
  30490. </ul>
  30491. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  30492. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  30493. the specification of most record types, they differ widely in what else they
  30494. focus on. The focus in Hadoop Record I/O is on data marshaling and
  30495. multi-lingual support. We take a translator-based approach to serialization.
  30496. Hadoop users have to describe their data in a simple data description
  30497. language. The Hadoop DDL translator rcc generates code that users
  30498. can invoke in order to read/write their data from/to simple stream
  30499. abstractions. Next we list explicitly some of the goals and non-goals of
  30500. Hadoop Record I/O.
  30501. <h3>Goals</h3>
  30502. <ul>
  30503. <li> Support for commonly used primitive types. Hadoop should include as
  30504. primitives commonly used builtin types from programming languages we intend to
  30505. support.
  30506. <li> Support for common data compositions (including recursive compositions).
  30507. Hadoop should support widely used composite types such as structs and
  30508. vectors.
  30509. <li> Code generation in multiple target languages. Hadoop should be capable of
  30510. generating serialization code in multiple target languages and should be
  30511. easily extensible to new target languages. The initial target languages are
  30512. C++ and Java.
  30513. <li> Support for generated target languages. Hadooop should include support
  30514. in the form of headers, libraries, packages for supported target languages
  30515. that enable easy inclusion and use of generated code in applications.
  30516. <li> Support for multiple output encodings. Candidates include
  30517. packed binary, comma-separated text, XML etc.
  30518. <li> Support for specifying record types in a backwards/forwards compatible
  30519. manner. This will probably be in the form of support for optional fields in
  30520. records. This version of the document does not include a description of the
  30521. planned mechanism, we intend to include it in the next iteration.
  30522. </ul>
  30523. <h3>Non-Goals</h3>
  30524. <ul>
  30525. <li> Serializing existing arbitrary C++ classes.
  30526. <li> Serializing complex data structures such as trees, linked lists etc.
  30527. <li> Built-in indexing schemes, compression, or check-sums.
  30528. <li> Dynamic construction of objects from an XML schema.
  30529. </ul>
  30530. The remainder of this document describes the features of Hadoop record I/O
  30531. in more detail. Section 2 describes the data types supported by the system.
  30532. Section 3 lays out the DDL syntax with some examples of simple records.
  30533. Section 4 describes the process of code generation with rcc. Section 5
  30534. describes target language mappings and support for Hadoop types. We include a
  30535. fairly complete description of C++ mappings with intent to include Java and
  30536. others in upcoming iterations of this document. The last section talks about
  30537. supported output encodings.
  30538. <h2>Data Types and Streams</h2>
  30539. This section describes the primitive and composite types supported by Hadoop.
  30540. We aim to support a set of types that can be used to simply and efficiently
  30541. express a wide range of record types in different programming languages.
  30542. <h3>Primitive Types</h3>
  30543. For the most part, the primitive types of Hadoop map directly to primitive
  30544. types in high level programming languages. Special cases are the
  30545. ustring (a Unicode string) and buffer types, which we believe
  30546. find wide use and which are usually implemented in library code and not
  30547. available as language built-ins. Hadoop also supplies these via library code
  30548. when a target language built-in is not present and there is no widely
  30549. adopted "standard" implementation. The complete list of primitive types is:
  30550. <ul>
  30551. <li> byte: An 8-bit unsigned integer.
  30552. <li> boolean: A boolean value.
  30553. <li> int: A 32-bit signed integer.
  30554. <li> long: A 64-bit signed integer.
  30555. <li> float: A single precision floating point number as described by
  30556. IEEE-754.
  30557. <li> double: A double precision floating point number as described by
  30558. IEEE-754.
  30559. <li> ustring: A string consisting of Unicode characters.
  30560. <li> buffer: An arbitrary sequence of bytes.
  30561. </ul>
  30562. <h3>Composite Types</h3>
  30563. Hadoop supports a small set of composite types that enable the description
  30564. of simple aggregate types and containers. A composite type is serialized
  30565. by sequentially serializing it constituent elements. The supported
  30566. composite types are:
  30567. <ul>
  30568. <li> record: An aggregate type like a C-struct. This is a list of
  30569. typed fields that are together considered a single unit of data. A record
  30570. is serialized by sequentially serializing its constituent fields. In addition
  30571. to serialization a record has comparison operations (equality and less-than)
  30572. implemented for it, these are defined as memberwise comparisons.
  30573. <li>vector: A sequence of entries of the same data type, primitive
  30574. or composite.
  30575. <li> map: An associative container mapping instances of a key type to
  30576. instances of a value type. The key and value types may themselves be primitive
  30577. or composite types.
  30578. </ul>
  30579. <h3>Streams</h3>
  30580. Hadoop generates code for serializing and deserializing record types to
  30581. abstract streams. For each target language Hadoop defines very simple input
  30582. and output stream interfaces. Application writers can usually develop
  30583. concrete implementations of these by putting a one method wrapper around
  30584. an existing stream implementation.
  30585. <h2>DDL Syntax and Examples</h2>
  30586. We now describe the syntax of the Hadoop data description language. This is
  30587. followed by a few examples of DDL usage.
  30588. <h3>Hadoop DDL Syntax</h3>
  30589. <pre><code>
  30590. recfile = *include module *record
  30591. include = "include" path
  30592. path = (relative-path / absolute-path)
  30593. module = "module" module-name
  30594. module-name = name *("." name)
  30595. record := "class" name "{" 1*(field) "}"
  30596. field := type name ";"
  30597. name := ALPHA (ALPHA / DIGIT / "_" )*
  30598. type := (ptype / ctype)
  30599. ptype := ("byte" / "boolean" / "int" |
  30600. "long" / "float" / "double"
  30601. "ustring" / "buffer")
  30602. ctype := (("vector" "<" type ">") /
  30603. ("map" "<" type "," type ">" ) ) / name)
  30604. </code></pre>
  30605. A DDL file describes one or more record types. It begins with zero or
  30606. more include declarations, a single mandatory module declaration
  30607. followed by zero or more class declarations. The semantics of each of
  30608. these declarations are described below:
  30609. <ul>
  30610. <li>include: An include declaration specifies a DDL file to be
  30611. referenced when generating code for types in the current DDL file. Record types
  30612. in the current compilation unit may refer to types in all included files.
  30613. File inclusion is recursive. An include does not trigger code
  30614. generation for the referenced file.
  30615. <li> module: Every Hadoop DDL file must have a single module
  30616. declaration that follows the list of includes and precedes all record
  30617. declarations. A module declaration identifies a scope within which
  30618. the names of all types in the current file are visible. Module names are
  30619. mapped to C++ namespaces, Java packages etc. in generated code.
  30620. <li> class: Records types are specified through class
  30621. declarations. A class declaration is like a Java class declaration.
  30622. It specifies a named record type and a list of fields that constitute records
  30623. of the type. Usage is illustrated in the following examples.
  30624. </ul>
  30625. <h3>Examples</h3>
  30626. <ul>
  30627. <li>A simple DDL file links.jr with just one record declaration.
  30628. <pre><code>
  30629. module links {
  30630. class Link {
  30631. ustring URL;
  30632. boolean isRelative;
  30633. ustring anchorText;
  30634. };
  30635. }
  30636. </code></pre>
  30637. <li> A DDL file outlinks.jr which includes another
  30638. <pre><code>
  30639. include "links.jr"
  30640. module outlinks {
  30641. class OutLinks {
  30642. ustring baseURL;
  30643. vector<links.Link> outLinks;
  30644. };
  30645. }
  30646. </code></pre>
  30647. </ul>
  30648. <h2>Code Generation</h2>
  30649. The Hadoop translator is written in Java. Invocation is done by executing a
  30650. wrapper shell script named named rcc. It takes a list of
  30651. record description files as a mandatory argument and an
  30652. optional language argument (the default is Java) --language or
  30653. -l. Thus a typical invocation would look like:
  30654. <pre><code>
  30655. $ rcc -l C++ <filename> ...
  30656. </code></pre>
  30657. <h2>Target Language Mappings and Support</h2>
  30658. For all target languages, the unit of code generation is a record type.
  30659. For each record type, Hadoop generates code for serialization and
  30660. deserialization, record comparison and access to record members.
  30661. <h3>C++</h3>
  30662. Support for including Hadoop generated C++ code in applications comes in the
  30663. form of a header file recordio.hh which needs to be included in source
  30664. that uses Hadoop types and a library librecordio.a which applications need
  30665. to be linked with. The header declares the Hadoop C++ namespace which defines
  30666. appropriate types for the various primitives, the basic interfaces for
  30667. records and streams and enumerates the supported serialization encodings.
  30668. Declarations of these interfaces and a description of their semantics follow:
  30669. <pre><code>
  30670. namespace hadoop {
  30671. enum RecFormat { kBinary, kXML, kCSV };
  30672. class InStream {
  30673. public:
  30674. virtual ssize_t read(void *buf, size_t n) = 0;
  30675. };
  30676. class OutStream {
  30677. public:
  30678. virtual ssize_t write(const void *buf, size_t n) = 0;
  30679. };
  30680. class IOError : public runtime_error {
  30681. public:
  30682. explicit IOError(const std::string& msg);
  30683. };
  30684. class IArchive;
  30685. class OArchive;
  30686. class RecordReader {
  30687. public:
  30688. RecordReader(InStream& in, RecFormat fmt);
  30689. virtual ~RecordReader(void);
  30690. virtual void read(Record& rec);
  30691. };
  30692. class RecordWriter {
  30693. public:
  30694. RecordWriter(OutStream& out, RecFormat fmt);
  30695. virtual ~RecordWriter(void);
  30696. virtual void write(Record& rec);
  30697. };
  30698. class Record {
  30699. public:
  30700. virtual std::string type(void) const = 0;
  30701. virtual std::string signature(void) const = 0;
  30702. protected:
  30703. virtual bool validate(void) const = 0;
  30704. virtual void
  30705. serialize(OArchive& oa, const std::string& tag) const = 0;
  30706. virtual void
  30707. deserialize(IArchive& ia, const std::string& tag) = 0;
  30708. };
  30709. }
  30710. </code></pre>
  30711. <ul>
  30712. <li> RecFormat: An enumeration of the serialization encodings supported
  30713. by this implementation of Hadoop.
  30714. <li> InStream: A simple abstraction for an input stream. This has a
  30715. single public read method that reads n bytes from the stream into
  30716. the buffer buf. Has the same semantics as a blocking read system
  30717. call. Returns the number of bytes read or -1 if an error occurs.
  30718. <li> OutStream: A simple abstraction for an output stream. This has a
  30719. single write method that writes n bytes to the stream from the
  30720. buffer buf. Has the same semantics as a blocking write system
  30721. call. Returns the number of bytes written or -1 if an error occurs.
  30722. <li> RecordReader: A RecordReader reads records one at a time from
  30723. an underlying stream in a specified record format. The reader is instantiated
  30724. with a stream and a serialization format. It has a read method that
  30725. takes an instance of a record and deserializes the record from the stream.
  30726. <li> RecordWriter: A RecordWriter writes records one at a
  30727. time to an underlying stream in a specified record format. The writer is
  30728. instantiated with a stream and a serialization format. It has a
  30729. write method that takes an instance of a record and serializes the
  30730. record to the stream.
  30731. <li> Record: The base class for all generated record types. This has two
  30732. public methods type and signature that return the typename and the
  30733. type signature of the record.
  30734. </ul>
  30735. Two files are generated for each record file (note: not for each record). If a
  30736. record file is named "name.jr", the generated files are
  30737. "name.jr.cc" and "name.jr.hh" containing serialization
  30738. implementations and record type declarations respectively.
  30739. For each record in the DDL file, the generated header file will contain a
  30740. class definition corresponding to the record type, method definitions for the
  30741. generated type will be present in the '.cc' file. The generated class will
  30742. inherit from the abstract class hadoop::Record. The DDL files
  30743. module declaration determines the namespace the record belongs to.
  30744. Each '.' delimited token in the module declaration results in the
  30745. creation of a namespace. For instance, the declaration module docs.links
  30746. results in the creation of a docs namespace and a nested
  30747. docs::links namespace. In the preceding examples, the Link class
  30748. is placed in the links namespace. The header file corresponding to
  30749. the links.jr file will contain:
  30750. <pre><code>
  30751. namespace links {
  30752. class Link : public hadoop::Record {
  30753. // ....
  30754. };
  30755. };
  30756. </code></pre>
  30757. Each field within the record will cause the generation of a private member
  30758. declaration of the appropriate type in the class declaration, and one or more
  30759. acccessor methods. The generated class will implement the serialize and
  30760. deserialize methods defined in hadoop::Record+. It will also
  30761. implement the inspection methods type and signature from
  30762. hadoop::Record. A default constructor and virtual destructor will also
  30763. be generated. Serialization code will read/write records into streams that
  30764. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  30765. For each member of a record an accessor method is generated that returns
  30766. either the member or a reference to the member. For members that are returned
  30767. by value, a setter method is also generated. This is true for primitive
  30768. data members of the types byte, int, long, boolean, float and
  30769. double. For example, for a int field called MyField the folowing
  30770. code is generated.
  30771. <pre><code>
  30772. ...
  30773. private:
  30774. int32_t mMyField;
  30775. ...
  30776. public:
  30777. int32_t getMyField(void) const {
  30778. return mMyField;
  30779. };
  30780. void setMyField(int32_t m) {
  30781. mMyField = m;
  30782. };
  30783. ...
  30784. </code></pre>
  30785. For a ustring or buffer or composite field. The generated code
  30786. only contains accessors that return a reference to the field. A const
  30787. and a non-const accessor are generated. For example:
  30788. <pre><code>
  30789. ...
  30790. private:
  30791. std::string mMyBuf;
  30792. ...
  30793. public:
  30794. std::string& getMyBuf() {
  30795. return mMyBuf;
  30796. };
  30797. const std::string& getMyBuf() const {
  30798. return mMyBuf;
  30799. };
  30800. ...
  30801. </code></pre>
  30802. <h4>Examples</h4>
  30803. Suppose the inclrec.jr file contains:
  30804. <pre><code>
  30805. module inclrec {
  30806. class RI {
  30807. int I32;
  30808. double D;
  30809. ustring S;
  30810. };
  30811. }
  30812. </code></pre>
  30813. and the testrec.jr file contains:
  30814. <pre><code>
  30815. include "inclrec.jr"
  30816. module testrec {
  30817. class R {
  30818. vector<float> VF;
  30819. RI Rec;
  30820. buffer Buf;
  30821. };
  30822. }
  30823. </code></pre>
  30824. Then the invocation of rcc such as:
  30825. <pre><code>
  30826. $ rcc -l c++ inclrec.jr testrec.jr
  30827. </code></pre>
  30828. will result in generation of four files:
  30829. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  30830. The inclrec.jr.hh will contain:
  30831. <pre><code>
  30832. #ifndef _INCLREC_JR_HH_
  30833. #define _INCLREC_JR_HH_
  30834. #include "recordio.hh"
  30835. namespace inclrec {
  30836. class RI : public hadoop::Record {
  30837. private:
  30838. int32_t I32;
  30839. double D;
  30840. std::string S;
  30841. public:
  30842. RI(void);
  30843. virtual ~RI(void);
  30844. virtual bool operator==(const RI& peer) const;
  30845. virtual bool operator<(const RI& peer) const;
  30846. virtual int32_t getI32(void) const { return I32; }
  30847. virtual void setI32(int32_t v) { I32 = v; }
  30848. virtual double getD(void) const { return D; }
  30849. virtual void setD(double v) { D = v; }
  30850. virtual std::string& getS(void) const { return S; }
  30851. virtual const std::string& getS(void) const { return S; }
  30852. virtual std::string type(void) const;
  30853. virtual std::string signature(void) const;
  30854. protected:
  30855. virtual void serialize(hadoop::OArchive& a) const;
  30856. virtual void deserialize(hadoop::IArchive& a);
  30857. };
  30858. } // end namespace inclrec
  30859. #endif /* _INCLREC_JR_HH_ */
  30860. </code></pre>
  30861. The testrec.jr.hh file will contain:
  30862. <pre><code>
  30863. #ifndef _TESTREC_JR_HH_
  30864. #define _TESTREC_JR_HH_
  30865. #include "inclrec.jr.hh"
  30866. namespace testrec {
  30867. class R : public hadoop::Record {
  30868. private:
  30869. std::vector<float> VF;
  30870. inclrec::RI Rec;
  30871. std::string Buf;
  30872. public:
  30873. R(void);
  30874. virtual ~R(void);
  30875. virtual bool operator==(const R& peer) const;
  30876. virtual bool operator<(const R& peer) const;
  30877. virtual std::vector<float>& getVF(void) const;
  30878. virtual const std::vector<float>& getVF(void) const;
  30879. virtual std::string& getBuf(void) const ;
  30880. virtual const std::string& getBuf(void) const;
  30881. virtual inclrec::RI& getRec(void) const;
  30882. virtual const inclrec::RI& getRec(void) const;
  30883. virtual bool serialize(hadoop::OutArchive& a) const;
  30884. virtual bool deserialize(hadoop::InArchive& a);
  30885. virtual std::string type(void) const;
  30886. virtual std::string signature(void) const;
  30887. };
  30888. }; // end namespace testrec
  30889. #endif /* _TESTREC_JR_HH_ */
  30890. </code></pre>
  30891. <h3>Java</h3>
  30892. Code generation for Java is similar to that for C++. A Java class is generated
  30893. for each record type with private members corresponding to the fields. Getters
  30894. and setters for fields are also generated. Some differences arise in the
  30895. way comparison is expressed and in the mapping of modules to packages and
  30896. classes to files. For equality testing, an equals method is generated
  30897. for each record type. As per Java requirements a hashCode method is also
  30898. generated. For comparison a compareTo method is generated for each
  30899. record type. This has the semantics as defined by the Java Comparable
  30900. interface, that is, the method returns a negative integer, zero, or a positive
  30901. integer as the invoked object is less than, equal to, or greater than the
  30902. comparison parameter.
  30903. A .java file is generated per record type as opposed to per DDL
  30904. file as in C++. The module declaration translates to a Java
  30905. package declaration. The module name maps to an identical Java package
  30906. name. In addition to this mapping, the DDL compiler creates the appropriate
  30907. directory hierarchy for the package and places the generated .java
  30908. files in the correct directories.
  30909. <h2>Mapping Summary</h2>
  30910. <pre><code>
  30911. DDL Type C++ Type Java Type
  30912. boolean bool boolean
  30913. byte int8_t byte
  30914. int int32_t int
  30915. long int64_t long
  30916. float float float
  30917. double double double
  30918. ustring std::string java.lang.String
  30919. buffer std::string org.apache.hadoop.record.Buffer
  30920. class type class type class type
  30921. vector<type> std::vector<type> java.util.ArrayList<type>
  30922. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  30923. </code></pre>
  30924. <h2>Data encodings</h2>
  30925. This section describes the format of the data encodings supported by Hadoop.
  30926. Currently, three data encodings are supported, namely binary, CSV and XML.
  30927. <h3>Binary Serialization Format</h3>
  30928. The binary data encoding format is fairly dense. Serialization of composite
  30929. types is simply defined as a concatenation of serializations of the constituent
  30930. elements (lengths are included in vectors and maps).
  30931. Composite types are serialized as follows:
  30932. <ul>
  30933. <li> class: Sequence of serialized members.
  30934. <li> vector: The number of elements serialized as an int. Followed by a
  30935. sequence of serialized elements.
  30936. <li> map: The number of key value pairs serialized as an int. Followed
  30937. by a sequence of serialized (key,value) pairs.
  30938. </ul>
  30939. Serialization of primitives is more interesting, with a zero compression
  30940. optimization for integral types and normalization to UTF-8 for strings.
  30941. Primitive types are serialized as follows:
  30942. <ul>
  30943. <li> byte: Represented by 1 byte, as is.
  30944. <li> boolean: Represented by 1-byte (0 or 1)
  30945. <li> int/long: Integers and longs are serialized zero compressed.
  30946. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  30947. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  30948. the number of trailing bytes, N, as the negative number (-120-N). For example,
  30949. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  30950. This doesn't help much for 4-byte integers but does a reasonably good job with
  30951. longs without bit twiddling.
  30952. <li> float/double: Serialized in IEEE 754 single and double precision
  30953. format in network byte order. This is the format used by Java.
  30954. <li> ustring: Serialized as 4-byte zero compressed length followed by
  30955. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  30956. language representation.
  30957. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  30958. raw bytes in the buffer.
  30959. </ul>
  30960. <h3>CSV Serialization Format</h3>
  30961. The CSV serialization format has a lot more structure than the "standard"
  30962. Excel CSV format, but we believe the additional structure is useful because
  30963. <ul>
  30964. <li> it makes parsing a lot easier without detracting too much from legibility
  30965. <li> the delimiters around composites make it obvious when one is reading a
  30966. sequence of Hadoop records
  30967. </ul>
  30968. Serialization formats for the various types are detailed in the grammar that
  30969. follows. The notable feature of the formats is the use of delimiters for
  30970. indicating the certain field types.
  30971. <ul>
  30972. <li> A string field begins with a single quote (').
  30973. <li> A buffer field begins with a sharp (#).
  30974. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  30975. ends with '}'.
  30976. </ul>
  30977. The CSV format can be described by the following grammar:
  30978. <pre><code>
  30979. record = primitive / struct / vector / map
  30980. primitive = boolean / int / long / float / double / ustring / buffer
  30981. boolean = "T" / "F"
  30982. int = ["-"] 1*DIGIT
  30983. long = ";" ["-"] 1*DIGIT
  30984. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  30985. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  30986. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  30987. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  30988. struct = "s{" record *("," record) "}"
  30989. vector = "v{" [record *("," record)] "}"
  30990. map = "m{" [*(record "," record)] "}"
  30991. </code></pre>
  30992. <h3>XML Serialization Format</h3>
  30993. The XML serialization format is the same used by Apache XML-RPC
  30994. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  30995. XML-RPC format and adds some additional data types. All record I/O types are
  30996. not directly expressible in this format, and access to a DDL is required in
  30997. order to convert these to valid types. All types primitive or composite are
  30998. represented by &lt;value&gt; elements. The particular XML-RPC type is
  30999. indicated by a nested element in the &lt;value&gt; element. The encoding for
  31000. records is always UTF-8. Primitive types are serialized as follows:
  31001. <ul>
  31002. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  31003. integers represented in US-ASCII
  31004. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  31005. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  31006. signed integers represented in US-ASCII.
  31007. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  31008. represented in US-ASCII.
  31009. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  31010. floating point numbers represented in US-ASCII.
  31011. <li> double: XML tag &lt;double&gt;. Values: Double precision
  31012. floating point numbers represented in US-ASCII.
  31013. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  31014. represented as UTF-8. XML does not permit all Unicode characters in literal
  31015. data. In particular, NULLs and control chars are not allowed. Additionally,
  31016. XML processors are required to replace carriage returns with line feeds and to
  31017. replace CRLF sequences with line feeds. Programming languages that we work
  31018. with do not impose these restrictions on string types. To work around these
  31019. restrictions, disallowed characters and CRs are percent escaped in strings.
  31020. The '%' character is also percent escaped.
  31021. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  31022. data. Represented as hexBinary, each byte is replaced by its 2-byte
  31023. hexadecimal representation.
  31024. </ul>
  31025. Composite types are serialized as follows:
  31026. <ul>
  31027. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  31028. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  31029. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  31030. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  31031. by a &lt;value&gt; element.
  31032. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  31033. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  31034. &lt;value&gt; elements each of which represents an element of the vector.
  31035. <li> map: XML tag &lt;array&gt;. Same as vector.
  31036. </ul>
  31037. For example:
  31038. <pre><code>
  31039. class {
  31040. int MY_INT; // value 5
  31041. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  31042. buffer MY_BUF; // value '\00\n\tabc%'
  31043. }
  31044. </code></pre>
  31045. is serialized as
  31046. <pre><code class="XML">
  31047. &lt;value&gt;
  31048. &lt;struct&gt;
  31049. &lt;member&gt;
  31050. &lt;name&gt;MY_INT&lt;/name&gt;
  31051. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  31052. &lt;/member&gt;
  31053. &lt;member&gt;
  31054. &lt;name&gt;MY_VEC&lt;/name&gt;
  31055. &lt;value&gt;
  31056. &lt;array&gt;
  31057. &lt;data&gt;
  31058. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  31059. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  31060. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  31061. &lt;/data&gt;
  31062. &lt;/array&gt;
  31063. &lt;/value&gt;
  31064. &lt;/member&gt;
  31065. &lt;member&gt;
  31066. &lt;name&gt;MY_BUF&lt;/name&gt;
  31067. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  31068. &lt;/member&gt;
  31069. &lt;/struct&gt;
  31070. &lt;/value&gt;
  31071. </code></pre>]]>
  31072. </doc>
  31073. </package>
  31074. <package name="org.apache.hadoop.record.compiler">
  31075. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  31076. <class name="CodeBuffer" extends="java.lang.Object"
  31077. abstract="false"
  31078. static="false" final="false" visibility="public"
  31079. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31080. <method name="toString" return="java.lang.String"
  31081. abstract="false" native="false" synchronized="false"
  31082. static="false" final="false" visibility="public"
  31083. deprecated="not deprecated">
  31084. </method>
  31085. <doc>
  31086. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  31087. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31088. </doc>
  31089. </class>
  31090. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  31091. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  31092. <class name="Consts" extends="java.lang.Object"
  31093. abstract="false"
  31094. static="false" final="false" visibility="public"
  31095. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31096. <field name="RIO_PREFIX" type="java.lang.String"
  31097. transient="false" volatile="false"
  31098. static="true" final="true" visibility="public"
  31099. deprecated="not deprecated">
  31100. </field>
  31101. <field name="RTI_VAR" type="java.lang.String"
  31102. transient="false" volatile="false"
  31103. static="true" final="true" visibility="public"
  31104. deprecated="not deprecated">
  31105. </field>
  31106. <field name="RTI_FILTER" type="java.lang.String"
  31107. transient="false" volatile="false"
  31108. static="true" final="true" visibility="public"
  31109. deprecated="not deprecated">
  31110. </field>
  31111. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  31112. transient="false" volatile="false"
  31113. static="true" final="true" visibility="public"
  31114. deprecated="not deprecated">
  31115. </field>
  31116. <field name="RECORD_OUTPUT" type="java.lang.String"
  31117. transient="false" volatile="false"
  31118. static="true" final="true" visibility="public"
  31119. deprecated="not deprecated">
  31120. </field>
  31121. <field name="RECORD_INPUT" type="java.lang.String"
  31122. transient="false" volatile="false"
  31123. static="true" final="true" visibility="public"
  31124. deprecated="not deprecated">
  31125. </field>
  31126. <field name="TAG" type="java.lang.String"
  31127. transient="false" volatile="false"
  31128. static="true" final="true" visibility="public"
  31129. deprecated="not deprecated">
  31130. </field>
  31131. <doc>
  31132. <![CDATA[const definitions for Record I/O compiler
  31133. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31134. </doc>
  31135. </class>
  31136. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  31137. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  31138. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  31139. abstract="false"
  31140. static="false" final="false" visibility="public"
  31141. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31142. <constructor name="JBoolean"
  31143. static="false" final="false" visibility="public"
  31144. deprecated="not deprecated">
  31145. <doc>
  31146. <![CDATA[Creates a new instance of JBoolean]]>
  31147. </doc>
  31148. </constructor>
  31149. <doc>
  31150. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31151. </doc>
  31152. </class>
  31153. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  31154. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  31155. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  31156. abstract="false"
  31157. static="false" final="false" visibility="public"
  31158. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31159. <constructor name="JBuffer"
  31160. static="false" final="false" visibility="public"
  31161. deprecated="not deprecated">
  31162. <doc>
  31163. <![CDATA[Creates a new instance of JBuffer]]>
  31164. </doc>
  31165. </constructor>
  31166. <doc>
  31167. <![CDATA[Code generator for "buffer" type.
  31168. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31169. </doc>
  31170. </class>
  31171. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  31172. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  31173. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  31174. abstract="false"
  31175. static="false" final="false" visibility="public"
  31176. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31177. <constructor name="JByte"
  31178. static="false" final="false" visibility="public"
  31179. deprecated="not deprecated">
  31180. </constructor>
  31181. <doc>
  31182. <![CDATA[Code generator for "byte" type.
  31183. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31184. </doc>
  31185. </class>
  31186. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  31187. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  31188. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  31189. abstract="false"
  31190. static="false" final="false" visibility="public"
  31191. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31192. <constructor name="JDouble"
  31193. static="false" final="false" visibility="public"
  31194. deprecated="not deprecated">
  31195. <doc>
  31196. <![CDATA[Creates a new instance of JDouble]]>
  31197. </doc>
  31198. </constructor>
  31199. <doc>
  31200. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31201. </doc>
  31202. </class>
  31203. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  31204. <!-- start class org.apache.hadoop.record.compiler.JField -->
  31205. <class name="JField" extends="java.lang.Object"
  31206. abstract="false"
  31207. static="false" final="false" visibility="public"
  31208. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31209. <constructor name="JField" type="java.lang.String, T"
  31210. static="false" final="false" visibility="public"
  31211. deprecated="not deprecated">
  31212. <doc>
  31213. <![CDATA[Creates a new instance of JField]]>
  31214. </doc>
  31215. </constructor>
  31216. <doc>
  31217. <![CDATA[A thin wrappper around record field.
  31218. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31219. </doc>
  31220. </class>
  31221. <!-- end class org.apache.hadoop.record.compiler.JField -->
  31222. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  31223. <class name="JFile" extends="java.lang.Object"
  31224. abstract="false"
  31225. static="false" final="false" visibility="public"
  31226. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31227. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  31228. static="false" final="false" visibility="public"
  31229. deprecated="not deprecated">
  31230. <doc>
  31231. <![CDATA[Creates a new instance of JFile
  31232. @param name possibly full pathname to the file
  31233. @param inclFiles included files (as JFile)
  31234. @param recList List of records defined within this file]]>
  31235. </doc>
  31236. </constructor>
  31237. <method name="genCode" return="int"
  31238. abstract="false" native="false" synchronized="false"
  31239. static="false" final="false" visibility="public"
  31240. deprecated="not deprecated">
  31241. <param name="language" type="java.lang.String"/>
  31242. <param name="destDir" type="java.lang.String"/>
  31243. <param name="options" type="java.util.ArrayList"/>
  31244. <exception name="IOException" type="java.io.IOException"/>
  31245. <doc>
  31246. <![CDATA[Generate record code in given language. Language should be all
  31247. lowercase.]]>
  31248. </doc>
  31249. </method>
  31250. <doc>
  31251. <![CDATA[Container for the Hadoop Record DDL.
  31252. The main components of the file are filename, list of included files,
  31253. and records defined in that file.
  31254. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31255. </doc>
  31256. </class>
  31257. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  31258. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  31259. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  31260. abstract="false"
  31261. static="false" final="false" visibility="public"
  31262. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31263. <constructor name="JFloat"
  31264. static="false" final="false" visibility="public"
  31265. deprecated="not deprecated">
  31266. <doc>
  31267. <![CDATA[Creates a new instance of JFloat]]>
  31268. </doc>
  31269. </constructor>
  31270. <doc>
  31271. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31272. </doc>
  31273. </class>
  31274. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  31275. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  31276. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  31277. abstract="false"
  31278. static="false" final="false" visibility="public"
  31279. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31280. <constructor name="JInt"
  31281. static="false" final="false" visibility="public"
  31282. deprecated="not deprecated">
  31283. <doc>
  31284. <![CDATA[Creates a new instance of JInt]]>
  31285. </doc>
  31286. </constructor>
  31287. <doc>
  31288. <![CDATA[Code generator for "int" type
  31289. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31290. </doc>
  31291. </class>
  31292. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  31293. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  31294. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  31295. abstract="false"
  31296. static="false" final="false" visibility="public"
  31297. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31298. <constructor name="JLong"
  31299. static="false" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. <doc>
  31302. <![CDATA[Creates a new instance of JLong]]>
  31303. </doc>
  31304. </constructor>
  31305. <doc>
  31306. <![CDATA[Code generator for "long" type
  31307. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31308. </doc>
  31309. </class>
  31310. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  31311. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  31312. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  31313. abstract="false"
  31314. static="false" final="false" visibility="public"
  31315. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31316. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  31317. static="false" final="false" visibility="public"
  31318. deprecated="not deprecated">
  31319. <doc>
  31320. <![CDATA[Creates a new instance of JMap]]>
  31321. </doc>
  31322. </constructor>
  31323. <doc>
  31324. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31325. </doc>
  31326. </class>
  31327. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  31328. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  31329. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  31330. abstract="false"
  31331. static="false" final="false" visibility="public"
  31332. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31333. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  31334. static="false" final="false" visibility="public"
  31335. deprecated="not deprecated">
  31336. <doc>
  31337. <![CDATA[Creates a new instance of JRecord]]>
  31338. </doc>
  31339. </constructor>
  31340. <doc>
  31341. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31342. </doc>
  31343. </class>
  31344. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  31345. <!-- start class org.apache.hadoop.record.compiler.JString -->
  31346. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  31347. abstract="false"
  31348. static="false" final="false" visibility="public"
  31349. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31350. <constructor name="JString"
  31351. static="false" final="false" visibility="public"
  31352. deprecated="not deprecated">
  31353. <doc>
  31354. <![CDATA[Creates a new instance of JString]]>
  31355. </doc>
  31356. </constructor>
  31357. <doc>
  31358. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31359. </doc>
  31360. </class>
  31361. <!-- end class org.apache.hadoop.record.compiler.JString -->
  31362. <!-- start class org.apache.hadoop.record.compiler.JType -->
  31363. <class name="JType" extends="java.lang.Object"
  31364. abstract="true"
  31365. static="false" final="false" visibility="public"
  31366. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31367. <constructor name="JType"
  31368. static="false" final="false" visibility="public"
  31369. deprecated="not deprecated">
  31370. </constructor>
  31371. <doc>
  31372. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  31373. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31374. </doc>
  31375. </class>
  31376. <!-- end class org.apache.hadoop.record.compiler.JType -->
  31377. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  31378. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  31379. abstract="false"
  31380. static="false" final="false" visibility="public"
  31381. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31382. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  31383. static="false" final="false" visibility="public"
  31384. deprecated="not deprecated">
  31385. <doc>
  31386. <![CDATA[Creates a new instance of JVector]]>
  31387. </doc>
  31388. </constructor>
  31389. <doc>
  31390. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31391. </doc>
  31392. </class>
  31393. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  31394. <doc>
  31395. <![CDATA[<p>
  31396. (DEPRECATED) This package contains classes needed for code generation
  31397. from the hadoop record compiler. CppGenerator and JavaGenerator
  31398. are the main entry points from the parser. There are classes
  31399. corrsponding to every primitive type and compound type
  31400. included in Hadoop record I/O syntax.
  31401. </p>
  31402. <p>
  31403. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  31404. </p>]]>
  31405. </doc>
  31406. </package>
  31407. <package name="org.apache.hadoop.record.compiler.ant">
  31408. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  31409. <class name="RccTask" extends="org.apache.tools.ant.Task"
  31410. abstract="false"
  31411. static="false" final="false" visibility="public"
  31412. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31413. <constructor name="RccTask"
  31414. static="false" final="false" visibility="public"
  31415. deprecated="not deprecated">
  31416. <doc>
  31417. <![CDATA[Creates a new instance of RccTask]]>
  31418. </doc>
  31419. </constructor>
  31420. <method name="setLanguage"
  31421. abstract="false" native="false" synchronized="false"
  31422. static="false" final="false" visibility="public"
  31423. deprecated="not deprecated">
  31424. <param name="language" type="java.lang.String"/>
  31425. <doc>
  31426. <![CDATA[Sets the output language option
  31427. @param language "java"/"c++"]]>
  31428. </doc>
  31429. </method>
  31430. <method name="setFile"
  31431. abstract="false" native="false" synchronized="false"
  31432. static="false" final="false" visibility="public"
  31433. deprecated="not deprecated">
  31434. <param name="file" type="java.io.File"/>
  31435. <doc>
  31436. <![CDATA[Sets the record definition file attribute
  31437. @param file record definition file]]>
  31438. </doc>
  31439. </method>
  31440. <method name="setFailonerror"
  31441. abstract="false" native="false" synchronized="false"
  31442. static="false" final="false" visibility="public"
  31443. deprecated="not deprecated">
  31444. <param name="flag" type="boolean"/>
  31445. <doc>
  31446. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  31447. @param flag true will throw build exception in case of failure (default)]]>
  31448. </doc>
  31449. </method>
  31450. <method name="setDestdir"
  31451. abstract="false" native="false" synchronized="false"
  31452. static="false" final="false" visibility="public"
  31453. deprecated="not deprecated">
  31454. <param name="dir" type="java.io.File"/>
  31455. <doc>
  31456. <![CDATA[Sets directory where output files will be generated
  31457. @param dir output directory]]>
  31458. </doc>
  31459. </method>
  31460. <method name="addFileset"
  31461. abstract="false" native="false" synchronized="false"
  31462. static="false" final="false" visibility="public"
  31463. deprecated="not deprecated">
  31464. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  31465. <doc>
  31466. <![CDATA[Adds a fileset that can consist of one or more files
  31467. @param set Set of record definition files]]>
  31468. </doc>
  31469. </method>
  31470. <method name="execute"
  31471. abstract="false" native="false" synchronized="false"
  31472. static="false" final="false" visibility="public"
  31473. deprecated="not deprecated">
  31474. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  31475. <doc>
  31476. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  31477. </doc>
  31478. </method>
  31479. <doc>
  31480. <![CDATA[Hadoop record compiler ant Task
  31481. <p> This task takes the given record definition files and compiles them into
  31482. java or c++
  31483. files. It is then up to the user to compile the generated files.
  31484. <p> The task requires the <code>file</code> or the nested fileset element to be
  31485. specified. Optional attributes are <code>language</code> (set the output
  31486. language, default is "java"),
  31487. <code>destdir</code> (name of the destination directory for generated java/c++
  31488. code, default is ".") and <code>failonerror</code> (specifies error handling
  31489. behavior. default is true).
  31490. <p><h4>Usage</h4>
  31491. <pre>
  31492. &lt;recordcc
  31493. destdir="${basedir}/gensrc"
  31494. language="java"&gt;
  31495. &lt;fileset include="**\/*.jr" /&gt;
  31496. &lt;/recordcc&gt;
  31497. </pre>
  31498. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31499. </doc>
  31500. </class>
  31501. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  31502. </package>
  31503. <package name="org.apache.hadoop.record.compiler.generated">
  31504. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  31505. <class name="ParseException" extends="java.lang.Exception"
  31506. abstract="false"
  31507. static="false" final="false" visibility="public"
  31508. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31509. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  31510. static="false" final="false" visibility="public"
  31511. deprecated="not deprecated">
  31512. <doc>
  31513. <![CDATA[This constructor is used by the method "generateParseException"
  31514. in the generated parser. Calling this constructor generates
  31515. a new object of this type with the fields "currentToken",
  31516. "expectedTokenSequences", and "tokenImage" set. The boolean
  31517. flag "specialConstructor" is also set to true to indicate that
  31518. this constructor was used to create this object.
  31519. This constructor calls its super class with the empty string
  31520. to force the "toString" method of parent class "Throwable" to
  31521. print the error message in the form:
  31522. ParseException: <result of getMessage>]]>
  31523. </doc>
  31524. </constructor>
  31525. <constructor name="ParseException"
  31526. static="false" final="false" visibility="public"
  31527. deprecated="not deprecated">
  31528. <doc>
  31529. <![CDATA[The following constructors are for use by you for whatever
  31530. purpose you can think of. Constructing the exception in this
  31531. manner makes the exception behave in the normal way - i.e., as
  31532. documented in the class "Throwable". The fields "errorToken",
  31533. "expectedTokenSequences", and "tokenImage" do not contain
  31534. relevant information. The JavaCC generated code does not use
  31535. these constructors.]]>
  31536. </doc>
  31537. </constructor>
  31538. <constructor name="ParseException" type="java.lang.String"
  31539. static="false" final="false" visibility="public"
  31540. deprecated="not deprecated">
  31541. </constructor>
  31542. <method name="getMessage" return="java.lang.String"
  31543. abstract="false" native="false" synchronized="false"
  31544. static="false" final="false" visibility="public"
  31545. deprecated="not deprecated">
  31546. <doc>
  31547. <![CDATA[This method has the standard behavior when this object has been
  31548. created using the standard constructors. Otherwise, it uses
  31549. "currentToken" and "expectedTokenSequences" to generate a parse
  31550. error message and returns it. If this object has been created
  31551. due to a parse error, and you do not catch it (it gets thrown
  31552. from the parser), then this method is called during the printing
  31553. of the final stack trace, and hence the correct error message
  31554. gets displayed.]]>
  31555. </doc>
  31556. </method>
  31557. <method name="add_escapes" return="java.lang.String"
  31558. abstract="false" native="false" synchronized="false"
  31559. static="false" final="false" visibility="protected"
  31560. deprecated="not deprecated">
  31561. <param name="str" type="java.lang.String"/>
  31562. <doc>
  31563. <![CDATA[Used to convert raw characters to their escaped version
  31564. when these raw version cannot be used as part of an ASCII
  31565. string literal.]]>
  31566. </doc>
  31567. </method>
  31568. <field name="specialConstructor" type="boolean"
  31569. transient="false" volatile="false"
  31570. static="false" final="false" visibility="protected"
  31571. deprecated="not deprecated">
  31572. <doc>
  31573. <![CDATA[This variable determines which constructor was used to create
  31574. this object and thereby affects the semantics of the
  31575. "getMessage" method (see below).]]>
  31576. </doc>
  31577. </field>
  31578. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  31579. transient="false" volatile="false"
  31580. static="false" final="false" visibility="public"
  31581. deprecated="not deprecated">
  31582. <doc>
  31583. <![CDATA[This is the last token that has been consumed successfully. If
  31584. this object has been created due to a parse error, the token
  31585. followng this token will (therefore) be the first error token.]]>
  31586. </doc>
  31587. </field>
  31588. <field name="expectedTokenSequences" type="int[][]"
  31589. transient="false" volatile="false"
  31590. static="false" final="false" visibility="public"
  31591. deprecated="not deprecated">
  31592. <doc>
  31593. <![CDATA[Each entry in this array is an array of integers. Each array
  31594. of integers represents a sequence of tokens (by their ordinal
  31595. values) that is expected at this point of the parse.]]>
  31596. </doc>
  31597. </field>
  31598. <field name="tokenImage" type="java.lang.String[]"
  31599. transient="false" volatile="false"
  31600. static="false" final="false" visibility="public"
  31601. deprecated="not deprecated">
  31602. <doc>
  31603. <![CDATA[This is a reference to the "tokenImage" array of the generated
  31604. parser within which the parse error occurred. This array is
  31605. defined in the generated ...Constants interface.]]>
  31606. </doc>
  31607. </field>
  31608. <field name="eol" type="java.lang.String"
  31609. transient="false" volatile="false"
  31610. static="false" final="false" visibility="protected"
  31611. deprecated="not deprecated">
  31612. <doc>
  31613. <![CDATA[The end of line string for this machine.]]>
  31614. </doc>
  31615. </field>
  31616. <doc>
  31617. <![CDATA[This exception is thrown when parse errors are encountered.
  31618. You can explicitly create objects of this exception type by
  31619. calling the method generateParseException in the generated
  31620. parser.
  31621. You can modify this class to customize your error reporting
  31622. mechanisms so long as you retain the public fields.
  31623. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31624. </doc>
  31625. </class>
  31626. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  31627. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  31628. <class name="Rcc" extends="java.lang.Object"
  31629. abstract="false"
  31630. static="false" final="false" visibility="public"
  31631. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31632. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31633. <constructor name="Rcc" type="java.io.InputStream"
  31634. static="false" final="false" visibility="public"
  31635. deprecated="not deprecated">
  31636. </constructor>
  31637. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  31638. static="false" final="false" visibility="public"
  31639. deprecated="not deprecated">
  31640. </constructor>
  31641. <constructor name="Rcc" type="java.io.Reader"
  31642. static="false" final="false" visibility="public"
  31643. deprecated="not deprecated">
  31644. </constructor>
  31645. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31646. static="false" final="false" visibility="public"
  31647. deprecated="not deprecated">
  31648. </constructor>
  31649. <method name="main"
  31650. abstract="false" native="false" synchronized="false"
  31651. static="true" final="false" visibility="public"
  31652. deprecated="not deprecated">
  31653. <param name="args" type="java.lang.String[]"/>
  31654. </method>
  31655. <method name="usage"
  31656. abstract="false" native="false" synchronized="false"
  31657. static="true" final="false" visibility="public"
  31658. deprecated="not deprecated">
  31659. </method>
  31660. <method name="driver" return="int"
  31661. abstract="false" native="false" synchronized="false"
  31662. static="true" final="false" visibility="public"
  31663. deprecated="not deprecated">
  31664. <param name="args" type="java.lang.String[]"/>
  31665. </method>
  31666. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  31667. abstract="false" native="false" synchronized="false"
  31668. static="false" final="true" visibility="public"
  31669. deprecated="not deprecated">
  31670. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31671. </method>
  31672. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  31673. abstract="false" native="false" synchronized="false"
  31674. static="false" final="true" visibility="public"
  31675. deprecated="not deprecated">
  31676. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31677. </method>
  31678. <method name="Module" return="java.util.ArrayList"
  31679. abstract="false" native="false" synchronized="false"
  31680. static="false" final="true" visibility="public"
  31681. deprecated="not deprecated">
  31682. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31683. </method>
  31684. <method name="ModuleName" return="java.lang.String"
  31685. abstract="false" native="false" synchronized="false"
  31686. static="false" final="true" visibility="public"
  31687. deprecated="not deprecated">
  31688. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31689. </method>
  31690. <method name="RecordList" return="java.util.ArrayList"
  31691. abstract="false" native="false" synchronized="false"
  31692. static="false" final="true" visibility="public"
  31693. deprecated="not deprecated">
  31694. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31695. </method>
  31696. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  31697. abstract="false" native="false" synchronized="false"
  31698. static="false" final="true" visibility="public"
  31699. deprecated="not deprecated">
  31700. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31701. </method>
  31702. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  31703. abstract="false" native="false" synchronized="false"
  31704. static="false" final="true" visibility="public"
  31705. deprecated="not deprecated">
  31706. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31707. </method>
  31708. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  31709. abstract="false" native="false" synchronized="false"
  31710. static="false" final="true" visibility="public"
  31711. deprecated="not deprecated">
  31712. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31713. </method>
  31714. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  31715. abstract="false" native="false" synchronized="false"
  31716. static="false" final="true" visibility="public"
  31717. deprecated="not deprecated">
  31718. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31719. </method>
  31720. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  31721. abstract="false" native="false" synchronized="false"
  31722. static="false" final="true" visibility="public"
  31723. deprecated="not deprecated">
  31724. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31725. </method>
  31726. <method name="ReInit"
  31727. abstract="false" native="false" synchronized="false"
  31728. static="false" final="false" visibility="public"
  31729. deprecated="not deprecated">
  31730. <param name="stream" type="java.io.InputStream"/>
  31731. </method>
  31732. <method name="ReInit"
  31733. abstract="false" native="false" synchronized="false"
  31734. static="false" final="false" visibility="public"
  31735. deprecated="not deprecated">
  31736. <param name="stream" type="java.io.InputStream"/>
  31737. <param name="encoding" type="java.lang.String"/>
  31738. </method>
  31739. <method name="ReInit"
  31740. abstract="false" native="false" synchronized="false"
  31741. static="false" final="false" visibility="public"
  31742. deprecated="not deprecated">
  31743. <param name="stream" type="java.io.Reader"/>
  31744. </method>
  31745. <method name="ReInit"
  31746. abstract="false" native="false" synchronized="false"
  31747. static="false" final="false" visibility="public"
  31748. deprecated="not deprecated">
  31749. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  31750. </method>
  31751. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31752. abstract="false" native="false" synchronized="false"
  31753. static="false" final="true" visibility="public"
  31754. deprecated="not deprecated">
  31755. </method>
  31756. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31757. abstract="false" native="false" synchronized="false"
  31758. static="false" final="true" visibility="public"
  31759. deprecated="not deprecated">
  31760. <param name="index" type="int"/>
  31761. </method>
  31762. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  31763. abstract="false" native="false" synchronized="false"
  31764. static="false" final="false" visibility="public"
  31765. deprecated="not deprecated">
  31766. </method>
  31767. <method name="enable_tracing"
  31768. abstract="false" native="false" synchronized="false"
  31769. static="false" final="true" visibility="public"
  31770. deprecated="not deprecated">
  31771. </method>
  31772. <method name="disable_tracing"
  31773. abstract="false" native="false" synchronized="false"
  31774. static="false" final="true" visibility="public"
  31775. deprecated="not deprecated">
  31776. </method>
  31777. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31778. transient="false" volatile="false"
  31779. static="false" final="false" visibility="public"
  31780. deprecated="not deprecated">
  31781. </field>
  31782. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  31783. transient="false" volatile="false"
  31784. static="false" final="false" visibility="public"
  31785. deprecated="not deprecated">
  31786. </field>
  31787. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  31788. transient="false" volatile="false"
  31789. static="false" final="false" visibility="public"
  31790. deprecated="not deprecated">
  31791. </field>
  31792. <doc>
  31793. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31794. </doc>
  31795. </class>
  31796. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  31797. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31798. <interface name="RccConstants" abstract="true"
  31799. static="false" final="false" visibility="public"
  31800. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31801. <field name="EOF" type="int"
  31802. transient="false" volatile="false"
  31803. static="true" final="true" visibility="public"
  31804. deprecated="not deprecated">
  31805. </field>
  31806. <field name="MODULE_TKN" type="int"
  31807. transient="false" volatile="false"
  31808. static="true" final="true" visibility="public"
  31809. deprecated="not deprecated">
  31810. </field>
  31811. <field name="RECORD_TKN" type="int"
  31812. transient="false" volatile="false"
  31813. static="true" final="true" visibility="public"
  31814. deprecated="not deprecated">
  31815. </field>
  31816. <field name="INCLUDE_TKN" type="int"
  31817. transient="false" volatile="false"
  31818. static="true" final="true" visibility="public"
  31819. deprecated="not deprecated">
  31820. </field>
  31821. <field name="BYTE_TKN" type="int"
  31822. transient="false" volatile="false"
  31823. static="true" final="true" visibility="public"
  31824. deprecated="not deprecated">
  31825. </field>
  31826. <field name="BOOLEAN_TKN" type="int"
  31827. transient="false" volatile="false"
  31828. static="true" final="true" visibility="public"
  31829. deprecated="not deprecated">
  31830. </field>
  31831. <field name="INT_TKN" type="int"
  31832. transient="false" volatile="false"
  31833. static="true" final="true" visibility="public"
  31834. deprecated="not deprecated">
  31835. </field>
  31836. <field name="LONG_TKN" type="int"
  31837. transient="false" volatile="false"
  31838. static="true" final="true" visibility="public"
  31839. deprecated="not deprecated">
  31840. </field>
  31841. <field name="FLOAT_TKN" type="int"
  31842. transient="false" volatile="false"
  31843. static="true" final="true" visibility="public"
  31844. deprecated="not deprecated">
  31845. </field>
  31846. <field name="DOUBLE_TKN" type="int"
  31847. transient="false" volatile="false"
  31848. static="true" final="true" visibility="public"
  31849. deprecated="not deprecated">
  31850. </field>
  31851. <field name="USTRING_TKN" type="int"
  31852. transient="false" volatile="false"
  31853. static="true" final="true" visibility="public"
  31854. deprecated="not deprecated">
  31855. </field>
  31856. <field name="BUFFER_TKN" type="int"
  31857. transient="false" volatile="false"
  31858. static="true" final="true" visibility="public"
  31859. deprecated="not deprecated">
  31860. </field>
  31861. <field name="VECTOR_TKN" type="int"
  31862. transient="false" volatile="false"
  31863. static="true" final="true" visibility="public"
  31864. deprecated="not deprecated">
  31865. </field>
  31866. <field name="MAP_TKN" type="int"
  31867. transient="false" volatile="false"
  31868. static="true" final="true" visibility="public"
  31869. deprecated="not deprecated">
  31870. </field>
  31871. <field name="LBRACE_TKN" type="int"
  31872. transient="false" volatile="false"
  31873. static="true" final="true" visibility="public"
  31874. deprecated="not deprecated">
  31875. </field>
  31876. <field name="RBRACE_TKN" type="int"
  31877. transient="false" volatile="false"
  31878. static="true" final="true" visibility="public"
  31879. deprecated="not deprecated">
  31880. </field>
  31881. <field name="LT_TKN" type="int"
  31882. transient="false" volatile="false"
  31883. static="true" final="true" visibility="public"
  31884. deprecated="not deprecated">
  31885. </field>
  31886. <field name="GT_TKN" type="int"
  31887. transient="false" volatile="false"
  31888. static="true" final="true" visibility="public"
  31889. deprecated="not deprecated">
  31890. </field>
  31891. <field name="SEMICOLON_TKN" type="int"
  31892. transient="false" volatile="false"
  31893. static="true" final="true" visibility="public"
  31894. deprecated="not deprecated">
  31895. </field>
  31896. <field name="COMMA_TKN" type="int"
  31897. transient="false" volatile="false"
  31898. static="true" final="true" visibility="public"
  31899. deprecated="not deprecated">
  31900. </field>
  31901. <field name="DOT_TKN" type="int"
  31902. transient="false" volatile="false"
  31903. static="true" final="true" visibility="public"
  31904. deprecated="not deprecated">
  31905. </field>
  31906. <field name="CSTRING_TKN" type="int"
  31907. transient="false" volatile="false"
  31908. static="true" final="true" visibility="public"
  31909. deprecated="not deprecated">
  31910. </field>
  31911. <field name="IDENT_TKN" type="int"
  31912. transient="false" volatile="false"
  31913. static="true" final="true" visibility="public"
  31914. deprecated="not deprecated">
  31915. </field>
  31916. <field name="DEFAULT" type="int"
  31917. transient="false" volatile="false"
  31918. static="true" final="true" visibility="public"
  31919. deprecated="not deprecated">
  31920. </field>
  31921. <field name="WithinOneLineComment" type="int"
  31922. transient="false" volatile="false"
  31923. static="true" final="true" visibility="public"
  31924. deprecated="not deprecated">
  31925. </field>
  31926. <field name="WithinMultiLineComment" type="int"
  31927. transient="false" volatile="false"
  31928. static="true" final="true" visibility="public"
  31929. deprecated="not deprecated">
  31930. </field>
  31931. <field name="tokenImage" type="java.lang.String[]"
  31932. transient="false" volatile="false"
  31933. static="true" final="true" visibility="public"
  31934. deprecated="not deprecated">
  31935. </field>
  31936. <doc>
  31937. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  31938. </doc>
  31939. </interface>
  31940. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31941. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31942. <class name="RccTokenManager" extends="java.lang.Object"
  31943. abstract="false"
  31944. static="false" final="false" visibility="public"
  31945. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  31946. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31947. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31948. static="false" final="false" visibility="public"
  31949. deprecated="not deprecated">
  31950. </constructor>
  31951. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  31952. static="false" final="false" visibility="public"
  31953. deprecated="not deprecated">
  31954. </constructor>
  31955. <method name="setDebugStream"
  31956. abstract="false" native="false" synchronized="false"
  31957. static="false" final="false" visibility="public"
  31958. deprecated="not deprecated">
  31959. <param name="ds" type="java.io.PrintStream"/>
  31960. </method>
  31961. <method name="ReInit"
  31962. abstract="false" native="false" synchronized="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31966. </method>
  31967. <method name="ReInit"
  31968. abstract="false" native="false" synchronized="false"
  31969. static="false" final="false" visibility="public"
  31970. deprecated="not deprecated">
  31971. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  31972. <param name="lexState" type="int"/>
  31973. </method>
  31974. <method name="SwitchTo"
  31975. abstract="false" native="false" synchronized="false"
  31976. static="false" final="false" visibility="public"
  31977. deprecated="not deprecated">
  31978. <param name="lexState" type="int"/>
  31979. </method>
  31980. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31981. abstract="false" native="false" synchronized="false"
  31982. static="false" final="false" visibility="protected"
  31983. deprecated="not deprecated">
  31984. </method>
  31985. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31986. abstract="false" native="false" synchronized="false"
  31987. static="false" final="false" visibility="public"
  31988. deprecated="not deprecated">
  31989. </method>
  31990. <field name="debugStream" type="java.io.PrintStream"
  31991. transient="false" volatile="false"
  31992. static="false" final="false" visibility="public"
  31993. deprecated="not deprecated">
  31994. </field>
  31995. <field name="jjstrLiteralImages" type="java.lang.String[]"
  31996. transient="false" volatile="false"
  31997. static="true" final="true" visibility="public"
  31998. deprecated="not deprecated">
  31999. </field>
  32000. <field name="lexStateNames" type="java.lang.String[]"
  32001. transient="false" volatile="false"
  32002. static="true" final="true" visibility="public"
  32003. deprecated="not deprecated">
  32004. </field>
  32005. <field name="jjnewLexState" type="int[]"
  32006. transient="false" volatile="false"
  32007. static="true" final="true" visibility="public"
  32008. deprecated="not deprecated">
  32009. </field>
  32010. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  32011. transient="false" volatile="false"
  32012. static="false" final="false" visibility="protected"
  32013. deprecated="not deprecated">
  32014. </field>
  32015. <field name="curChar" type="char"
  32016. transient="false" volatile="false"
  32017. static="false" final="false" visibility="protected"
  32018. deprecated="not deprecated">
  32019. </field>
  32020. <doc>
  32021. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32022. </doc>
  32023. </class>
  32024. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  32025. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32026. <class name="SimpleCharStream" extends="java.lang.Object"
  32027. abstract="false"
  32028. static="false" final="false" visibility="public"
  32029. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32030. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  32031. static="false" final="false" visibility="public"
  32032. deprecated="not deprecated">
  32033. </constructor>
  32034. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  32035. static="false" final="false" visibility="public"
  32036. deprecated="not deprecated">
  32037. </constructor>
  32038. <constructor name="SimpleCharStream" type="java.io.Reader"
  32039. static="false" final="false" visibility="public"
  32040. deprecated="not deprecated">
  32041. </constructor>
  32042. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  32043. static="false" final="false" visibility="public"
  32044. deprecated="not deprecated">
  32045. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32046. </constructor>
  32047. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  32048. static="false" final="false" visibility="public"
  32049. deprecated="not deprecated">
  32050. </constructor>
  32051. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  32052. static="false" final="false" visibility="public"
  32053. deprecated="not deprecated">
  32054. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32055. </constructor>
  32056. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  32057. static="false" final="false" visibility="public"
  32058. deprecated="not deprecated">
  32059. </constructor>
  32060. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  32061. static="false" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32064. </constructor>
  32065. <constructor name="SimpleCharStream" type="java.io.InputStream"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. </constructor>
  32069. <method name="setTabSize"
  32070. abstract="false" native="false" synchronized="false"
  32071. static="false" final="false" visibility="protected"
  32072. deprecated="not deprecated">
  32073. <param name="i" type="int"/>
  32074. </method>
  32075. <method name="getTabSize" return="int"
  32076. abstract="false" native="false" synchronized="false"
  32077. static="false" final="false" visibility="protected"
  32078. deprecated="not deprecated">
  32079. <param name="i" type="int"/>
  32080. </method>
  32081. <method name="ExpandBuff"
  32082. abstract="false" native="false" synchronized="false"
  32083. static="false" final="false" visibility="protected"
  32084. deprecated="not deprecated">
  32085. <param name="wrapAround" type="boolean"/>
  32086. </method>
  32087. <method name="FillBuff"
  32088. abstract="false" native="false" synchronized="false"
  32089. static="false" final="false" visibility="protected"
  32090. deprecated="not deprecated">
  32091. <exception name="IOException" type="java.io.IOException"/>
  32092. </method>
  32093. <method name="BeginToken" return="char"
  32094. abstract="false" native="false" synchronized="false"
  32095. static="false" final="false" visibility="public"
  32096. deprecated="not deprecated">
  32097. <exception name="IOException" type="java.io.IOException"/>
  32098. </method>
  32099. <method name="UpdateLineColumn"
  32100. abstract="false" native="false" synchronized="false"
  32101. static="false" final="false" visibility="protected"
  32102. deprecated="not deprecated">
  32103. <param name="c" type="char"/>
  32104. </method>
  32105. <method name="readChar" return="char"
  32106. abstract="false" native="false" synchronized="false"
  32107. static="false" final="false" visibility="public"
  32108. deprecated="not deprecated">
  32109. <exception name="IOException" type="java.io.IOException"/>
  32110. </method>
  32111. <method name="getEndColumn" return="int"
  32112. abstract="false" native="false" synchronized="false"
  32113. static="false" final="false" visibility="public"
  32114. deprecated="not deprecated">
  32115. </method>
  32116. <method name="getEndLine" return="int"
  32117. abstract="false" native="false" synchronized="false"
  32118. static="false" final="false" visibility="public"
  32119. deprecated="not deprecated">
  32120. </method>
  32121. <method name="getBeginColumn" return="int"
  32122. abstract="false" native="false" synchronized="false"
  32123. static="false" final="false" visibility="public"
  32124. deprecated="not deprecated">
  32125. </method>
  32126. <method name="getBeginLine" return="int"
  32127. abstract="false" native="false" synchronized="false"
  32128. static="false" final="false" visibility="public"
  32129. deprecated="not deprecated">
  32130. </method>
  32131. <method name="backup"
  32132. abstract="false" native="false" synchronized="false"
  32133. static="false" final="false" visibility="public"
  32134. deprecated="not deprecated">
  32135. <param name="amount" type="int"/>
  32136. </method>
  32137. <method name="ReInit"
  32138. abstract="false" native="false" synchronized="false"
  32139. static="false" final="false" visibility="public"
  32140. deprecated="not deprecated">
  32141. <param name="dstream" type="java.io.Reader"/>
  32142. <param name="startline" type="int"/>
  32143. <param name="startcolumn" type="int"/>
  32144. <param name="buffersize" type="int"/>
  32145. </method>
  32146. <method name="ReInit"
  32147. abstract="false" native="false" synchronized="false"
  32148. static="false" final="false" visibility="public"
  32149. deprecated="not deprecated">
  32150. <param name="dstream" type="java.io.Reader"/>
  32151. <param name="startline" type="int"/>
  32152. <param name="startcolumn" type="int"/>
  32153. </method>
  32154. <method name="ReInit"
  32155. abstract="false" native="false" synchronized="false"
  32156. static="false" final="false" visibility="public"
  32157. deprecated="not deprecated">
  32158. <param name="dstream" type="java.io.Reader"/>
  32159. </method>
  32160. <method name="ReInit"
  32161. abstract="false" native="false" synchronized="false"
  32162. static="false" final="false" visibility="public"
  32163. deprecated="not deprecated">
  32164. <param name="dstream" type="java.io.InputStream"/>
  32165. <param name="encoding" type="java.lang.String"/>
  32166. <param name="startline" type="int"/>
  32167. <param name="startcolumn" type="int"/>
  32168. <param name="buffersize" type="int"/>
  32169. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32170. </method>
  32171. <method name="ReInit"
  32172. abstract="false" native="false" synchronized="false"
  32173. static="false" final="false" visibility="public"
  32174. deprecated="not deprecated">
  32175. <param name="dstream" type="java.io.InputStream"/>
  32176. <param name="startline" type="int"/>
  32177. <param name="startcolumn" type="int"/>
  32178. <param name="buffersize" type="int"/>
  32179. </method>
  32180. <method name="ReInit"
  32181. abstract="false" native="false" synchronized="false"
  32182. static="false" final="false" visibility="public"
  32183. deprecated="not deprecated">
  32184. <param name="dstream" type="java.io.InputStream"/>
  32185. <param name="encoding" type="java.lang.String"/>
  32186. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32187. </method>
  32188. <method name="ReInit"
  32189. abstract="false" native="false" synchronized="false"
  32190. static="false" final="false" visibility="public"
  32191. deprecated="not deprecated">
  32192. <param name="dstream" type="java.io.InputStream"/>
  32193. </method>
  32194. <method name="ReInit"
  32195. abstract="false" native="false" synchronized="false"
  32196. static="false" final="false" visibility="public"
  32197. deprecated="not deprecated">
  32198. <param name="dstream" type="java.io.InputStream"/>
  32199. <param name="encoding" type="java.lang.String"/>
  32200. <param name="startline" type="int"/>
  32201. <param name="startcolumn" type="int"/>
  32202. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32203. </method>
  32204. <method name="ReInit"
  32205. abstract="false" native="false" synchronized="false"
  32206. static="false" final="false" visibility="public"
  32207. deprecated="not deprecated">
  32208. <param name="dstream" type="java.io.InputStream"/>
  32209. <param name="startline" type="int"/>
  32210. <param name="startcolumn" type="int"/>
  32211. </method>
  32212. <method name="GetImage" return="java.lang.String"
  32213. abstract="false" native="false" synchronized="false"
  32214. static="false" final="false" visibility="public"
  32215. deprecated="not deprecated">
  32216. </method>
  32217. <method name="GetSuffix" return="char[]"
  32218. abstract="false" native="false" synchronized="false"
  32219. static="false" final="false" visibility="public"
  32220. deprecated="not deprecated">
  32221. <param name="len" type="int"/>
  32222. </method>
  32223. <method name="Done"
  32224. abstract="false" native="false" synchronized="false"
  32225. static="false" final="false" visibility="public"
  32226. deprecated="not deprecated">
  32227. </method>
  32228. <method name="adjustBeginLineColumn"
  32229. abstract="false" native="false" synchronized="false"
  32230. static="false" final="false" visibility="public"
  32231. deprecated="not deprecated">
  32232. <param name="newLine" type="int"/>
  32233. <param name="newCol" type="int"/>
  32234. <doc>
  32235. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  32236. </doc>
  32237. </method>
  32238. <field name="staticFlag" type="boolean"
  32239. transient="false" volatile="false"
  32240. static="true" final="true" visibility="public"
  32241. deprecated="not deprecated">
  32242. </field>
  32243. <field name="bufpos" type="int"
  32244. transient="false" volatile="false"
  32245. static="false" final="false" visibility="public"
  32246. deprecated="not deprecated">
  32247. </field>
  32248. <field name="bufline" type="int[]"
  32249. transient="false" volatile="false"
  32250. static="false" final="false" visibility="protected"
  32251. deprecated="not deprecated">
  32252. </field>
  32253. <field name="bufcolumn" type="int[]"
  32254. transient="false" volatile="false"
  32255. static="false" final="false" visibility="protected"
  32256. deprecated="not deprecated">
  32257. </field>
  32258. <field name="column" type="int"
  32259. transient="false" volatile="false"
  32260. static="false" final="false" visibility="protected"
  32261. deprecated="not deprecated">
  32262. </field>
  32263. <field name="line" type="int"
  32264. transient="false" volatile="false"
  32265. static="false" final="false" visibility="protected"
  32266. deprecated="not deprecated">
  32267. </field>
  32268. <field name="prevCharIsCR" type="boolean"
  32269. transient="false" volatile="false"
  32270. static="false" final="false" visibility="protected"
  32271. deprecated="not deprecated">
  32272. </field>
  32273. <field name="prevCharIsLF" type="boolean"
  32274. transient="false" volatile="false"
  32275. static="false" final="false" visibility="protected"
  32276. deprecated="not deprecated">
  32277. </field>
  32278. <field name="inputStream" type="java.io.Reader"
  32279. transient="false" volatile="false"
  32280. static="false" final="false" visibility="protected"
  32281. deprecated="not deprecated">
  32282. </field>
  32283. <field name="buffer" type="char[]"
  32284. transient="false" volatile="false"
  32285. static="false" final="false" visibility="protected"
  32286. deprecated="not deprecated">
  32287. </field>
  32288. <field name="maxNextCharInd" type="int"
  32289. transient="false" volatile="false"
  32290. static="false" final="false" visibility="protected"
  32291. deprecated="not deprecated">
  32292. </field>
  32293. <field name="inBuf" type="int"
  32294. transient="false" volatile="false"
  32295. static="false" final="false" visibility="protected"
  32296. deprecated="not deprecated">
  32297. </field>
  32298. <field name="tabSize" type="int"
  32299. transient="false" volatile="false"
  32300. static="false" final="false" visibility="protected"
  32301. deprecated="not deprecated">
  32302. </field>
  32303. <doc>
  32304. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  32305. contain only ASCII characters (without unicode processing).
  32306. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32307. </doc>
  32308. </class>
  32309. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32310. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  32311. <class name="Token" extends="java.lang.Object"
  32312. abstract="false"
  32313. static="false" final="false" visibility="public"
  32314. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32315. <constructor name="Token"
  32316. static="false" final="false" visibility="public"
  32317. deprecated="not deprecated">
  32318. </constructor>
  32319. <method name="toString" return="java.lang.String"
  32320. abstract="false" native="false" synchronized="false"
  32321. static="false" final="false" visibility="public"
  32322. deprecated="not deprecated">
  32323. <doc>
  32324. <![CDATA[Returns the image.]]>
  32325. </doc>
  32326. </method>
  32327. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32328. abstract="false" native="false" synchronized="false"
  32329. static="true" final="true" visibility="public"
  32330. deprecated="not deprecated">
  32331. <param name="ofKind" type="int"/>
  32332. <doc>
  32333. <![CDATA[Returns a new Token object, by default. However, if you want, you
  32334. can create and return subclass objects based on the value of ofKind.
  32335. Simply add the cases to the switch for all those special cases.
  32336. For example, if you have a subclass of Token called IDToken that
  32337. you want to create if ofKind is ID, simlpy add something like :
  32338. case MyParserConstants.ID : return new IDToken();
  32339. to the following switch statement. Then you can cast matchedToken
  32340. variable to the appropriate type and use it in your lexical actions.]]>
  32341. </doc>
  32342. </method>
  32343. <field name="kind" type="int"
  32344. transient="false" volatile="false"
  32345. static="false" final="false" visibility="public"
  32346. deprecated="not deprecated">
  32347. <doc>
  32348. <![CDATA[An integer that describes the kind of this token. This numbering
  32349. system is determined by JavaCCParser, and a table of these numbers is
  32350. stored in the file ...Constants.java.]]>
  32351. </doc>
  32352. </field>
  32353. <field name="beginLine" type="int"
  32354. transient="false" volatile="false"
  32355. static="false" final="false" visibility="public"
  32356. deprecated="not deprecated">
  32357. <doc>
  32358. <![CDATA[beginLine and beginColumn describe the position of the first character
  32359. of this token; endLine and endColumn describe the position of the
  32360. last character of this token.]]>
  32361. </doc>
  32362. </field>
  32363. <field name="beginColumn" type="int"
  32364. transient="false" volatile="false"
  32365. static="false" final="false" visibility="public"
  32366. deprecated="not deprecated">
  32367. <doc>
  32368. <![CDATA[beginLine and beginColumn describe the position of the first character
  32369. of this token; endLine and endColumn describe the position of the
  32370. last character of this token.]]>
  32371. </doc>
  32372. </field>
  32373. <field name="endLine" type="int"
  32374. transient="false" volatile="false"
  32375. static="false" final="false" visibility="public"
  32376. deprecated="not deprecated">
  32377. <doc>
  32378. <![CDATA[beginLine and beginColumn describe the position of the first character
  32379. of this token; endLine and endColumn describe the position of the
  32380. last character of this token.]]>
  32381. </doc>
  32382. </field>
  32383. <field name="endColumn" type="int"
  32384. transient="false" volatile="false"
  32385. static="false" final="false" visibility="public"
  32386. deprecated="not deprecated">
  32387. <doc>
  32388. <![CDATA[beginLine and beginColumn describe the position of the first character
  32389. of this token; endLine and endColumn describe the position of the
  32390. last character of this token.]]>
  32391. </doc>
  32392. </field>
  32393. <field name="image" type="java.lang.String"
  32394. transient="false" volatile="false"
  32395. static="false" final="false" visibility="public"
  32396. deprecated="not deprecated">
  32397. <doc>
  32398. <![CDATA[The string image of the token.]]>
  32399. </doc>
  32400. </field>
  32401. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  32402. transient="false" volatile="false"
  32403. static="false" final="false" visibility="public"
  32404. deprecated="not deprecated">
  32405. <doc>
  32406. <![CDATA[A reference to the next regular (non-special) token from the input
  32407. stream. If this is the last token from the input stream, or if the
  32408. token manager has not read tokens beyond this one, this field is
  32409. set to null. This is true only if this token is also a regular
  32410. token. Otherwise, see below for a description of the contents of
  32411. this field.]]>
  32412. </doc>
  32413. </field>
  32414. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32415. transient="false" volatile="false"
  32416. static="false" final="false" visibility="public"
  32417. deprecated="not deprecated">
  32418. <doc>
  32419. <![CDATA[This field is used to access special tokens that occur prior to this
  32420. token, but after the immediately preceding regular (non-special) token.
  32421. If there are no such special tokens, this field is set to null.
  32422. When there are more than one such special token, this field refers
  32423. to the last of these special tokens, which in turn refers to the next
  32424. previous special token through its specialToken field, and so on
  32425. until the first special token (whose specialToken field is null).
  32426. The next fields of special tokens refer to other special tokens that
  32427. immediately follow it (without an intervening regular token). If there
  32428. is no such token, this field is null.]]>
  32429. </doc>
  32430. </field>
  32431. <doc>
  32432. <![CDATA[Describes the input token stream.
  32433. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32434. </doc>
  32435. </class>
  32436. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  32437. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32438. <class name="TokenMgrError" extends="java.lang.Error"
  32439. abstract="false"
  32440. static="false" final="false" visibility="public"
  32441. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32442. <constructor name="TokenMgrError"
  32443. static="false" final="false" visibility="public"
  32444. deprecated="not deprecated">
  32445. </constructor>
  32446. <constructor name="TokenMgrError" type="java.lang.String, int"
  32447. static="false" final="false" visibility="public"
  32448. deprecated="not deprecated">
  32449. </constructor>
  32450. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  32451. static="false" final="false" visibility="public"
  32452. deprecated="not deprecated">
  32453. </constructor>
  32454. <method name="addEscapes" return="java.lang.String"
  32455. abstract="false" native="false" synchronized="false"
  32456. static="true" final="true" visibility="protected"
  32457. deprecated="not deprecated">
  32458. <param name="str" type="java.lang.String"/>
  32459. <doc>
  32460. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  32461. equivalents in the given string]]>
  32462. </doc>
  32463. </method>
  32464. <method name="LexicalError" return="java.lang.String"
  32465. abstract="false" native="false" synchronized="false"
  32466. static="true" final="false" visibility="protected"
  32467. deprecated="not deprecated">
  32468. <param name="EOFSeen" type="boolean"/>
  32469. <param name="lexState" type="int"/>
  32470. <param name="errorLine" type="int"/>
  32471. <param name="errorColumn" type="int"/>
  32472. <param name="errorAfter" type="java.lang.String"/>
  32473. <param name="curChar" type="char"/>
  32474. <doc>
  32475. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  32476. token manager to indicate a lexical error.
  32477. Parameters :
  32478. EOFSeen : indicates if EOF caused the lexicl error
  32479. curLexState : lexical state in which this error occured
  32480. errorLine : line number when the error occured
  32481. errorColumn : column number when the error occured
  32482. errorAfter : prefix that was seen before this error occured
  32483. curchar : the offending character
  32484. Note: You can customize the lexical error message by modifying this method.]]>
  32485. </doc>
  32486. </method>
  32487. <method name="getMessage" return="java.lang.String"
  32488. abstract="false" native="false" synchronized="false"
  32489. static="false" final="false" visibility="public"
  32490. deprecated="not deprecated">
  32491. <doc>
  32492. <![CDATA[You can also modify the body of this method to customize your error messages.
  32493. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  32494. of end-users concern, so you can return something like :
  32495. "Internal Error : Please file a bug report .... "
  32496. from this method for such cases in the release version of your parser.]]>
  32497. </doc>
  32498. </method>
  32499. <doc>
  32500. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32501. </doc>
  32502. </class>
  32503. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32504. <doc>
  32505. <![CDATA[<p>
  32506. (DEPRECATED) This package contains code generated by JavaCC from the
  32507. Hadoop record syntax file rcc.jj. For details about the
  32508. record file syntax please @see org.apache.hadoop.record.
  32509. </p>
  32510. <p>
  32511. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  32512. </p>]]>
  32513. </doc>
  32514. </package>
  32515. <package name="org.apache.hadoop.record.meta">
  32516. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32517. <class name="FieldTypeInfo" extends="java.lang.Object"
  32518. abstract="false"
  32519. static="false" final="false" visibility="public"
  32520. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32521. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32522. abstract="false" native="false" synchronized="false"
  32523. static="false" final="false" visibility="public"
  32524. deprecated="not deprecated">
  32525. <doc>
  32526. <![CDATA[get the field's TypeID object]]>
  32527. </doc>
  32528. </method>
  32529. <method name="getFieldID" return="java.lang.String"
  32530. abstract="false" native="false" synchronized="false"
  32531. static="false" final="false" visibility="public"
  32532. deprecated="not deprecated">
  32533. <doc>
  32534. <![CDATA[get the field's id (name)]]>
  32535. </doc>
  32536. </method>
  32537. <method name="equals" return="boolean"
  32538. abstract="false" native="false" synchronized="false"
  32539. static="false" final="false" visibility="public"
  32540. deprecated="not deprecated">
  32541. <param name="o" type="java.lang.Object"/>
  32542. <doc>
  32543. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  32544. </doc>
  32545. </method>
  32546. <method name="hashCode" return="int"
  32547. abstract="false" native="false" synchronized="false"
  32548. static="false" final="false" visibility="public"
  32549. deprecated="not deprecated">
  32550. <doc>
  32551. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32552. be used as a hashmap key]]>
  32553. </doc>
  32554. </method>
  32555. <method name="equals" return="boolean"
  32556. abstract="false" native="false" synchronized="false"
  32557. static="false" final="false" visibility="public"
  32558. deprecated="not deprecated">
  32559. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  32560. </method>
  32561. <doc>
  32562. <![CDATA[Represents a type information for a field, which is made up of its
  32563. ID (name) and its type (a TypeID object).
  32564. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32565. </doc>
  32566. </class>
  32567. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32568. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  32569. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32570. abstract="false"
  32571. static="false" final="false" visibility="public"
  32572. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32573. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  32574. static="false" final="false" visibility="public"
  32575. deprecated="not deprecated">
  32576. </constructor>
  32577. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32578. abstract="false" native="false" synchronized="false"
  32579. static="false" final="false" visibility="public"
  32580. deprecated="not deprecated">
  32581. <doc>
  32582. <![CDATA[get the TypeID of the map's key element]]>
  32583. </doc>
  32584. </method>
  32585. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32586. abstract="false" native="false" synchronized="false"
  32587. static="false" final="false" visibility="public"
  32588. deprecated="not deprecated">
  32589. <doc>
  32590. <![CDATA[get the TypeID of the map's value element]]>
  32591. </doc>
  32592. </method>
  32593. <method name="equals" return="boolean"
  32594. abstract="false" native="false" synchronized="false"
  32595. static="false" final="false" visibility="public"
  32596. deprecated="not deprecated">
  32597. <param name="o" type="java.lang.Object"/>
  32598. <doc>
  32599. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  32600. same type]]>
  32601. </doc>
  32602. </method>
  32603. <method name="hashCode" return="int"
  32604. abstract="false" native="false" synchronized="false"
  32605. static="false" final="false" visibility="public"
  32606. deprecated="not deprecated">
  32607. <doc>
  32608. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32609. be used as a hashmap key]]>
  32610. </doc>
  32611. </method>
  32612. <doc>
  32613. <![CDATA[Represents typeID for a Map
  32614. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32615. </doc>
  32616. </class>
  32617. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  32618. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32619. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  32620. abstract="false"
  32621. static="false" final="false" visibility="public"
  32622. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32623. <constructor name="RecordTypeInfo"
  32624. static="false" final="false" visibility="public"
  32625. deprecated="not deprecated">
  32626. <doc>
  32627. <![CDATA[Create an empty RecordTypeInfo object.]]>
  32628. </doc>
  32629. </constructor>
  32630. <constructor name="RecordTypeInfo" type="java.lang.String"
  32631. static="false" final="false" visibility="public"
  32632. deprecated="not deprecated">
  32633. <doc>
  32634. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  32635. @param name Name of the record]]>
  32636. </doc>
  32637. </constructor>
  32638. <method name="getName" return="java.lang.String"
  32639. abstract="false" native="false" synchronized="false"
  32640. static="false" final="false" visibility="public"
  32641. deprecated="not deprecated">
  32642. <doc>
  32643. <![CDATA[return the name of the record]]>
  32644. </doc>
  32645. </method>
  32646. <method name="setName"
  32647. abstract="false" native="false" synchronized="false"
  32648. static="false" final="false" visibility="public"
  32649. deprecated="not deprecated">
  32650. <param name="name" type="java.lang.String"/>
  32651. <doc>
  32652. <![CDATA[set the name of the record]]>
  32653. </doc>
  32654. </method>
  32655. <method name="addField"
  32656. abstract="false" native="false" synchronized="false"
  32657. static="false" final="false" visibility="public"
  32658. deprecated="not deprecated">
  32659. <param name="fieldName" type="java.lang.String"/>
  32660. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  32661. <doc>
  32662. <![CDATA[Add a field.
  32663. @param fieldName Name of the field
  32664. @param tid Type ID of the field]]>
  32665. </doc>
  32666. </method>
  32667. <method name="getFieldTypeInfos" return="java.util.Collection"
  32668. abstract="false" native="false" synchronized="false"
  32669. static="false" final="false" visibility="public"
  32670. deprecated="not deprecated">
  32671. <doc>
  32672. <![CDATA[Return a collection of field type infos]]>
  32673. </doc>
  32674. </method>
  32675. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  32676. abstract="false" native="false" synchronized="false"
  32677. static="false" final="false" visibility="public"
  32678. deprecated="not deprecated">
  32679. <param name="name" type="java.lang.String"/>
  32680. <doc>
  32681. <![CDATA[Return the type info of a nested record. We only consider nesting
  32682. to one level.
  32683. @param name Name of the nested record]]>
  32684. </doc>
  32685. </method>
  32686. <method name="serialize"
  32687. abstract="false" native="false" synchronized="false"
  32688. static="false" final="false" visibility="public"
  32689. deprecated="not deprecated">
  32690. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32691. <param name="tag" type="java.lang.String"/>
  32692. <exception name="IOException" type="java.io.IOException"/>
  32693. <doc>
  32694. <![CDATA[Serialize the type information for a record]]>
  32695. </doc>
  32696. </method>
  32697. <method name="deserialize"
  32698. abstract="false" native="false" synchronized="false"
  32699. static="false" final="false" visibility="public"
  32700. deprecated="not deprecated">
  32701. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32702. <param name="tag" type="java.lang.String"/>
  32703. <exception name="IOException" type="java.io.IOException"/>
  32704. <doc>
  32705. <![CDATA[Deserialize the type information for a record]]>
  32706. </doc>
  32707. </method>
  32708. <method name="compareTo" return="int"
  32709. abstract="false" native="false" synchronized="false"
  32710. static="false" final="false" visibility="public"
  32711. deprecated="not deprecated">
  32712. <param name="peer_" type="java.lang.Object"/>
  32713. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32714. <doc>
  32715. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  32716. for anything besides de/serializing.
  32717. So we always throw an exception.
  32718. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  32719. </doc>
  32720. </method>
  32721. <doc>
  32722. <![CDATA[A record's Type Information object which can read/write itself.
  32723. Type information for a record comprises metadata about the record,
  32724. as well as a collection of type information for each field in the record.
  32725. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32726. </doc>
  32727. </class>
  32728. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32729. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  32730. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32731. abstract="false"
  32732. static="false" final="false" visibility="public"
  32733. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32734. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  32735. static="false" final="false" visibility="public"
  32736. deprecated="not deprecated">
  32737. <doc>
  32738. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  32739. </doc>
  32740. </constructor>
  32741. <method name="getFieldTypeInfos" return="java.util.Collection"
  32742. abstract="false" native="false" synchronized="false"
  32743. static="false" final="false" visibility="public"
  32744. deprecated="not deprecated">
  32745. </method>
  32746. <method name="equals" return="boolean"
  32747. abstract="false" native="false" synchronized="false"
  32748. static="false" final="false" visibility="public"
  32749. deprecated="not deprecated">
  32750. <param name="o" type="java.lang.Object"/>
  32751. </method>
  32752. <method name="hashCode" return="int"
  32753. abstract="false" native="false" synchronized="false"
  32754. static="false" final="false" visibility="public"
  32755. deprecated="not deprecated">
  32756. </method>
  32757. <doc>
  32758. <![CDATA[Represents typeID for a struct
  32759. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32760. </doc>
  32761. </class>
  32762. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  32763. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  32764. <class name="TypeID" extends="java.lang.Object"
  32765. abstract="false"
  32766. static="false" final="false" visibility="public"
  32767. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32768. <method name="getTypeVal" return="byte"
  32769. abstract="false" native="false" synchronized="false"
  32770. static="false" final="false" visibility="public"
  32771. deprecated="not deprecated">
  32772. <doc>
  32773. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  32774. </doc>
  32775. </method>
  32776. <method name="equals" return="boolean"
  32777. abstract="false" native="false" synchronized="false"
  32778. static="false" final="false" visibility="public"
  32779. deprecated="not deprecated">
  32780. <param name="o" type="java.lang.Object"/>
  32781. <doc>
  32782. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  32783. </doc>
  32784. </method>
  32785. <method name="hashCode" return="int"
  32786. abstract="false" native="false" synchronized="false"
  32787. static="false" final="false" visibility="public"
  32788. deprecated="not deprecated">
  32789. <doc>
  32790. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32791. be used as a hashmap key]]>
  32792. </doc>
  32793. </method>
  32794. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32795. transient="false" volatile="false"
  32796. static="true" final="true" visibility="public"
  32797. deprecated="not deprecated">
  32798. <doc>
  32799. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  32800. </doc>
  32801. </field>
  32802. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32803. transient="false" volatile="false"
  32804. static="true" final="true" visibility="public"
  32805. deprecated="not deprecated">
  32806. </field>
  32807. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32808. transient="false" volatile="false"
  32809. static="true" final="true" visibility="public"
  32810. deprecated="not deprecated">
  32811. </field>
  32812. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32813. transient="false" volatile="false"
  32814. static="true" final="true" visibility="public"
  32815. deprecated="not deprecated">
  32816. </field>
  32817. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32818. transient="false" volatile="false"
  32819. static="true" final="true" visibility="public"
  32820. deprecated="not deprecated">
  32821. </field>
  32822. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32823. transient="false" volatile="false"
  32824. static="true" final="true" visibility="public"
  32825. deprecated="not deprecated">
  32826. </field>
  32827. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32828. transient="false" volatile="false"
  32829. static="true" final="true" visibility="public"
  32830. deprecated="not deprecated">
  32831. </field>
  32832. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32833. transient="false" volatile="false"
  32834. static="true" final="true" visibility="public"
  32835. deprecated="not deprecated">
  32836. </field>
  32837. <field name="typeVal" type="byte"
  32838. transient="false" volatile="false"
  32839. static="false" final="false" visibility="protected"
  32840. deprecated="not deprecated">
  32841. </field>
  32842. <doc>
  32843. <![CDATA[Represents typeID for basic types.
  32844. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32845. </doc>
  32846. </class>
  32847. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  32848. <!-- start class org.apache.hadoop.record.meta.Utils -->
  32849. <class name="Utils" extends="java.lang.Object"
  32850. abstract="false"
  32851. static="false" final="false" visibility="public"
  32852. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32853. <method name="skip"
  32854. abstract="false" native="false" synchronized="false"
  32855. static="true" final="false" visibility="public"
  32856. deprecated="not deprecated">
  32857. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32858. <param name="tag" type="java.lang.String"/>
  32859. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  32860. <exception name="IOException" type="java.io.IOException"/>
  32861. <doc>
  32862. <![CDATA[read/skip bytes from stream based on a type]]>
  32863. </doc>
  32864. </method>
  32865. <doc>
  32866. <![CDATA[Various utility functions for Hadooop record I/O platform.
  32867. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32868. </doc>
  32869. </class>
  32870. <!-- end class org.apache.hadoop.record.meta.Utils -->
  32871. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  32872. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32873. abstract="false"
  32874. static="false" final="false" visibility="public"
  32875. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  32876. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32877. static="false" final="false" visibility="public"
  32878. deprecated="not deprecated">
  32879. </constructor>
  32880. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32881. abstract="false" native="false" synchronized="false"
  32882. static="false" final="false" visibility="public"
  32883. deprecated="not deprecated">
  32884. </method>
  32885. <method name="equals" return="boolean"
  32886. abstract="false" native="false" synchronized="false"
  32887. static="false" final="false" visibility="public"
  32888. deprecated="not deprecated">
  32889. <param name="o" type="java.lang.Object"/>
  32890. <doc>
  32891. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  32892. same type]]>
  32893. </doc>
  32894. </method>
  32895. <method name="hashCode" return="int"
  32896. abstract="false" native="false" synchronized="false"
  32897. static="false" final="false" visibility="public"
  32898. deprecated="not deprecated">
  32899. <doc>
  32900. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32901. be used as a hashmap key]]>
  32902. </doc>
  32903. </method>
  32904. <doc>
  32905. <![CDATA[Represents typeID for vector.
  32906. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  32907. </doc>
  32908. </class>
  32909. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  32910. </package>
  32911. <package name="org.apache.hadoop.security">
  32912. <!-- start class org.apache.hadoop.security.AccessControlException -->
  32913. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  32914. abstract="false"
  32915. static="false" final="false" visibility="public"
  32916. deprecated="not deprecated">
  32917. <constructor name="AccessControlException"
  32918. static="false" final="false" visibility="public"
  32919. deprecated="not deprecated">
  32920. <doc>
  32921. <![CDATA[Default constructor is needed for unwrapping from
  32922. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  32923. </doc>
  32924. </constructor>
  32925. <constructor name="AccessControlException" type="java.lang.String"
  32926. static="false" final="false" visibility="public"
  32927. deprecated="not deprecated">
  32928. <doc>
  32929. <![CDATA[Constructs an {@link AccessControlException}
  32930. with the specified detail message.
  32931. @param s the detail message.]]>
  32932. </doc>
  32933. </constructor>
  32934. <constructor name="AccessControlException" type="java.lang.Throwable"
  32935. static="false" final="false" visibility="public"
  32936. deprecated="not deprecated">
  32937. <doc>
  32938. <![CDATA[Constructs a new exception with the specified cause and a detail
  32939. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  32940. typically contains the class and detail message of <tt>cause</tt>).
  32941. @param cause the cause (which is saved for later retrieval by the
  32942. {@link #getCause()} method). (A <tt>null</tt> value is
  32943. permitted, and indicates that the cause is nonexistent or
  32944. unknown.)]]>
  32945. </doc>
  32946. </constructor>
  32947. <doc>
  32948. <![CDATA[An exception class for access control related issues.]]>
  32949. </doc>
  32950. </class>
  32951. <!-- end class org.apache.hadoop.security.AccessControlException -->
  32952. <!-- start class org.apache.hadoop.security.Credentials -->
  32953. <class name="Credentials" extends="java.lang.Object"
  32954. abstract="false"
  32955. static="false" final="false" visibility="public"
  32956. deprecated="not deprecated">
  32957. <implements name="org.apache.hadoop.io.Writable"/>
  32958. <constructor name="Credentials"
  32959. static="false" final="false" visibility="public"
  32960. deprecated="not deprecated">
  32961. <doc>
  32962. <![CDATA[Create an empty credentials instance]]>
  32963. </doc>
  32964. </constructor>
  32965. <constructor name="Credentials" type="org.apache.hadoop.security.Credentials"
  32966. static="false" final="false" visibility="public"
  32967. deprecated="not deprecated">
  32968. <doc>
  32969. <![CDATA[Create a copy of the given credentials
  32970. @param credentials to copy]]>
  32971. </doc>
  32972. </constructor>
  32973. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  32974. abstract="false" native="false" synchronized="false"
  32975. static="false" final="false" visibility="public"
  32976. deprecated="not deprecated">
  32977. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32978. <doc>
  32979. <![CDATA[Returns the Token object for the alias
  32980. @param alias the alias for the Token
  32981. @return token for this alias]]>
  32982. </doc>
  32983. </method>
  32984. <method name="addToken"
  32985. abstract="false" native="false" synchronized="false"
  32986. static="false" final="false" visibility="public"
  32987. deprecated="not deprecated">
  32988. <param name="alias" type="org.apache.hadoop.io.Text"/>
  32989. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  32990. <doc>
  32991. <![CDATA[Add a token in the storage (in memory)
  32992. @param alias the alias for the key
  32993. @param t the token object]]>
  32994. </doc>
  32995. </method>
  32996. <method name="getAllTokens" return="java.util.Collection"
  32997. abstract="false" native="false" synchronized="false"
  32998. static="false" final="false" visibility="public"
  32999. deprecated="not deprecated">
  33000. <doc>
  33001. <![CDATA[Return all the tokens in the in-memory map]]>
  33002. </doc>
  33003. </method>
  33004. <method name="numberOfTokens" return="int"
  33005. abstract="false" native="false" synchronized="false"
  33006. static="false" final="false" visibility="public"
  33007. deprecated="not deprecated">
  33008. <doc>
  33009. <![CDATA[@return number of Tokens in the in-memory map]]>
  33010. </doc>
  33011. </method>
  33012. <method name="getSecretKey" return="byte[]"
  33013. abstract="false" native="false" synchronized="false"
  33014. static="false" final="false" visibility="public"
  33015. deprecated="not deprecated">
  33016. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33017. <doc>
  33018. <![CDATA[Returns the key bytes for the alias
  33019. @param alias the alias for the key
  33020. @return key for this alias]]>
  33021. </doc>
  33022. </method>
  33023. <method name="numberOfSecretKeys" return="int"
  33024. abstract="false" native="false" synchronized="false"
  33025. static="false" final="false" visibility="public"
  33026. deprecated="not deprecated">
  33027. <doc>
  33028. <![CDATA[@return number of keys in the in-memory map]]>
  33029. </doc>
  33030. </method>
  33031. <method name="addSecretKey"
  33032. abstract="false" native="false" synchronized="false"
  33033. static="false" final="false" visibility="public"
  33034. deprecated="not deprecated">
  33035. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33036. <param name="key" type="byte[]"/>
  33037. <doc>
  33038. <![CDATA[Set the key for an alias
  33039. @param alias the alias for the key
  33040. @param key the key bytes]]>
  33041. </doc>
  33042. </method>
  33043. <method name="removeSecretKey"
  33044. abstract="false" native="false" synchronized="false"
  33045. static="false" final="false" visibility="public"
  33046. deprecated="not deprecated">
  33047. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33048. <doc>
  33049. <![CDATA[Remove the key for a given alias.
  33050. @param alias the alias for the key]]>
  33051. </doc>
  33052. </method>
  33053. <method name="getAllSecretKeys" return="java.util.List"
  33054. abstract="false" native="false" synchronized="false"
  33055. static="false" final="false" visibility="public"
  33056. deprecated="not deprecated">
  33057. <doc>
  33058. <![CDATA[Return all the secret key entries in the in-memory map]]>
  33059. </doc>
  33060. </method>
  33061. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  33062. abstract="false" native="false" synchronized="false"
  33063. static="true" final="false" visibility="public"
  33064. deprecated="not deprecated">
  33065. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33066. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33067. <exception name="IOException" type="java.io.IOException"/>
  33068. <doc>
  33069. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  33070. therein in the passed UGI
  33071. @param filename
  33072. @param conf
  33073. @throws IOException]]>
  33074. </doc>
  33075. </method>
  33076. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  33077. abstract="false" native="false" synchronized="false"
  33078. static="true" final="false" visibility="public"
  33079. deprecated="not deprecated">
  33080. <param name="filename" type="java.io.File"/>
  33081. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33082. <exception name="IOException" type="java.io.IOException"/>
  33083. <doc>
  33084. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  33085. therein in the passed UGI
  33086. @param filename
  33087. @param conf
  33088. @throws IOException]]>
  33089. </doc>
  33090. </method>
  33091. <method name="readTokenStorageStream"
  33092. abstract="false" native="false" synchronized="false"
  33093. static="false" final="false" visibility="public"
  33094. deprecated="not deprecated">
  33095. <param name="in" type="java.io.DataInputStream"/>
  33096. <exception name="IOException" type="java.io.IOException"/>
  33097. <doc>
  33098. <![CDATA[Convenience method for reading a token storage file directly from a
  33099. datainputstream]]>
  33100. </doc>
  33101. </method>
  33102. <method name="writeTokenStorageToStream"
  33103. abstract="false" native="false" synchronized="false"
  33104. static="false" final="false" visibility="public"
  33105. deprecated="not deprecated">
  33106. <param name="os" type="java.io.DataOutputStream"/>
  33107. <exception name="IOException" type="java.io.IOException"/>
  33108. </method>
  33109. <method name="writeTokenStorageFile"
  33110. abstract="false" native="false" synchronized="false"
  33111. static="false" final="false" visibility="public"
  33112. deprecated="not deprecated">
  33113. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33114. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33115. <exception name="IOException" type="java.io.IOException"/>
  33116. </method>
  33117. <method name="write"
  33118. abstract="false" native="false" synchronized="false"
  33119. static="false" final="false" visibility="public"
  33120. deprecated="not deprecated">
  33121. <param name="out" type="java.io.DataOutput"/>
  33122. <exception name="IOException" type="java.io.IOException"/>
  33123. <doc>
  33124. <![CDATA[Stores all the keys to DataOutput
  33125. @param out
  33126. @throws IOException]]>
  33127. </doc>
  33128. </method>
  33129. <method name="readFields"
  33130. abstract="false" native="false" synchronized="false"
  33131. static="false" final="false" visibility="public"
  33132. deprecated="not deprecated">
  33133. <param name="in" type="java.io.DataInput"/>
  33134. <exception name="IOException" type="java.io.IOException"/>
  33135. <doc>
  33136. <![CDATA[Loads all the keys
  33137. @param in
  33138. @throws IOException]]>
  33139. </doc>
  33140. </method>
  33141. <method name="addAll"
  33142. abstract="false" native="false" synchronized="false"
  33143. static="false" final="false" visibility="public"
  33144. deprecated="not deprecated">
  33145. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  33146. <doc>
  33147. <![CDATA[Copy all of the credentials from one credential object into another.
  33148. Existing secrets and tokens are overwritten.
  33149. @param other the credentials to copy]]>
  33150. </doc>
  33151. </method>
  33152. <method name="mergeAll"
  33153. abstract="false" native="false" synchronized="false"
  33154. static="false" final="false" visibility="public"
  33155. deprecated="not deprecated">
  33156. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  33157. <doc>
  33158. <![CDATA[Copy all of the credentials from one credential object into another.
  33159. Existing secrets and tokens are not overwritten.
  33160. @param other the credentials to copy]]>
  33161. </doc>
  33162. </method>
  33163. <doc>
  33164. <![CDATA[A class that provides the facilities of reading and writing
  33165. secret keys and Tokens.]]>
  33166. </doc>
  33167. </class>
  33168. <!-- end class org.apache.hadoop.security.Credentials -->
  33169. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  33170. <interface name="GroupMappingServiceProvider" abstract="true"
  33171. static="false" final="false" visibility="public"
  33172. deprecated="not deprecated">
  33173. <method name="getGroups" return="java.util.List"
  33174. abstract="false" native="false" synchronized="false"
  33175. static="false" final="false" visibility="public"
  33176. deprecated="not deprecated">
  33177. <param name="user" type="java.lang.String"/>
  33178. <exception name="IOException" type="java.io.IOException"/>
  33179. <doc>
  33180. <![CDATA[Get all various group memberships of a given user.
  33181. Returns EMPTY list in case of non-existing user
  33182. @param user User's name
  33183. @return group memberships of user
  33184. @throws IOException]]>
  33185. </doc>
  33186. </method>
  33187. <method name="cacheGroupsRefresh"
  33188. abstract="false" native="false" synchronized="false"
  33189. static="false" final="false" visibility="public"
  33190. deprecated="not deprecated">
  33191. <exception name="IOException" type="java.io.IOException"/>
  33192. <doc>
  33193. <![CDATA[Refresh the cache of groups and user mapping
  33194. @throws IOException]]>
  33195. </doc>
  33196. </method>
  33197. <method name="cacheGroupsAdd"
  33198. abstract="false" native="false" synchronized="false"
  33199. static="false" final="false" visibility="public"
  33200. deprecated="not deprecated">
  33201. <param name="groups" type="java.util.List"/>
  33202. <exception name="IOException" type="java.io.IOException"/>
  33203. <doc>
  33204. <![CDATA[Caches the group user information
  33205. @param groups list of groups to add to cache
  33206. @throws IOException]]>
  33207. </doc>
  33208. </method>
  33209. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  33210. transient="false" volatile="false"
  33211. static="true" final="true" visibility="public"
  33212. deprecated="not deprecated">
  33213. </field>
  33214. <doc>
  33215. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  33216. used by {@link Groups}.]]>
  33217. </doc>
  33218. </interface>
  33219. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  33220. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  33221. <interface name="IdMappingServiceProvider" abstract="true"
  33222. static="false" final="false" visibility="public"
  33223. deprecated="not deprecated">
  33224. <method name="getUid" return="int"
  33225. abstract="false" native="false" synchronized="false"
  33226. static="false" final="false" visibility="public"
  33227. deprecated="not deprecated">
  33228. <param name="user" type="java.lang.String"/>
  33229. <exception name="IOException" type="java.io.IOException"/>
  33230. </method>
  33231. <method name="getGid" return="int"
  33232. abstract="false" native="false" synchronized="false"
  33233. static="false" final="false" visibility="public"
  33234. deprecated="not deprecated">
  33235. <param name="group" type="java.lang.String"/>
  33236. <exception name="IOException" type="java.io.IOException"/>
  33237. </method>
  33238. <method name="getUserName" return="java.lang.String"
  33239. abstract="false" native="false" synchronized="false"
  33240. static="false" final="false" visibility="public"
  33241. deprecated="not deprecated">
  33242. <param name="uid" type="int"/>
  33243. <param name="unknown" type="java.lang.String"/>
  33244. </method>
  33245. <method name="getGroupName" return="java.lang.String"
  33246. abstract="false" native="false" synchronized="false"
  33247. static="false" final="false" visibility="public"
  33248. deprecated="not deprecated">
  33249. <param name="gid" type="int"/>
  33250. <param name="unknown" type="java.lang.String"/>
  33251. </method>
  33252. <method name="getUidAllowingUnknown" return="int"
  33253. abstract="false" native="false" synchronized="false"
  33254. static="false" final="false" visibility="public"
  33255. deprecated="not deprecated">
  33256. <param name="user" type="java.lang.String"/>
  33257. </method>
  33258. <method name="getGidAllowingUnknown" return="int"
  33259. abstract="false" native="false" synchronized="false"
  33260. static="false" final="false" visibility="public"
  33261. deprecated="not deprecated">
  33262. <param name="group" type="java.lang.String"/>
  33263. </method>
  33264. <doc>
  33265. <![CDATA[An interface for the implementation of <userId, userName> mapping
  33266. and <groupId, groupName> mapping]]>
  33267. </doc>
  33268. </interface>
  33269. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  33270. <!-- start class org.apache.hadoop.security.KerberosAuthException -->
  33271. <class name="KerberosAuthException" extends="java.io.IOException"
  33272. abstract="false"
  33273. static="false" final="false" visibility="public"
  33274. deprecated="not deprecated">
  33275. <constructor name="KerberosAuthException" type="java.lang.String"
  33276. static="false" final="false" visibility="public"
  33277. deprecated="not deprecated">
  33278. </constructor>
  33279. <constructor name="KerberosAuthException" type="java.lang.Throwable"
  33280. static="false" final="false" visibility="public"
  33281. deprecated="not deprecated">
  33282. </constructor>
  33283. <constructor name="KerberosAuthException" type="java.lang.String, java.lang.Throwable"
  33284. static="false" final="false" visibility="public"
  33285. deprecated="not deprecated">
  33286. </constructor>
  33287. <method name="setUser"
  33288. abstract="false" native="false" synchronized="false"
  33289. static="false" final="false" visibility="public"
  33290. deprecated="not deprecated">
  33291. <param name="u" type="java.lang.String"/>
  33292. </method>
  33293. <method name="setPrincipal"
  33294. abstract="false" native="false" synchronized="false"
  33295. static="false" final="false" visibility="public"
  33296. deprecated="not deprecated">
  33297. <param name="p" type="java.lang.String"/>
  33298. </method>
  33299. <method name="setKeytabFile"
  33300. abstract="false" native="false" synchronized="false"
  33301. static="false" final="false" visibility="public"
  33302. deprecated="not deprecated">
  33303. <param name="k" type="java.lang.String"/>
  33304. </method>
  33305. <method name="setTicketCacheFile"
  33306. abstract="false" native="false" synchronized="false"
  33307. static="false" final="false" visibility="public"
  33308. deprecated="not deprecated">
  33309. <param name="t" type="java.lang.String"/>
  33310. </method>
  33311. <method name="getInitialMessage" return="java.lang.String"
  33312. abstract="false" native="false" synchronized="false"
  33313. static="false" final="false" visibility="public"
  33314. deprecated="not deprecated">
  33315. <doc>
  33316. <![CDATA[@return The initial message, or null if not set.]]>
  33317. </doc>
  33318. </method>
  33319. <method name="getKeytabFile" return="java.lang.String"
  33320. abstract="false" native="false" synchronized="false"
  33321. static="false" final="false" visibility="public"
  33322. deprecated="not deprecated">
  33323. <doc>
  33324. <![CDATA[@return The keytab file path, or null if not set.]]>
  33325. </doc>
  33326. </method>
  33327. <method name="getPrincipal" return="java.lang.String"
  33328. abstract="false" native="false" synchronized="false"
  33329. static="false" final="false" visibility="public"
  33330. deprecated="not deprecated">
  33331. <doc>
  33332. <![CDATA[@return The principal, or null if not set.]]>
  33333. </doc>
  33334. </method>
  33335. <method name="getTicketCacheFile" return="java.lang.String"
  33336. abstract="false" native="false" synchronized="false"
  33337. static="false" final="false" visibility="public"
  33338. deprecated="not deprecated">
  33339. <doc>
  33340. <![CDATA[@return The ticket cache file path, or null if not set.]]>
  33341. </doc>
  33342. </method>
  33343. <method name="getUser" return="java.lang.String"
  33344. abstract="false" native="false" synchronized="false"
  33345. static="false" final="false" visibility="public"
  33346. deprecated="not deprecated">
  33347. <doc>
  33348. <![CDATA[@return The user, or null if not set.]]>
  33349. </doc>
  33350. </method>
  33351. <method name="getMessage" return="java.lang.String"
  33352. abstract="false" native="false" synchronized="false"
  33353. static="false" final="false" visibility="public"
  33354. deprecated="not deprecated">
  33355. </method>
  33356. <doc>
  33357. <![CDATA[Thrown when {@link UserGroupInformation} failed with an unrecoverable error,
  33358. such as failure in kerberos login/logout, invalid subject etc.
  33359. Caller should not retry when catching this exception.]]>
  33360. </doc>
  33361. </class>
  33362. <!-- end class org.apache.hadoop.security.KerberosAuthException -->
  33363. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  33364. <class name="SecurityUtil" extends="java.lang.Object"
  33365. abstract="false"
  33366. static="false" final="true" visibility="public"
  33367. deprecated="not deprecated">
  33368. <method name="setConfiguration"
  33369. abstract="false" native="false" synchronized="false"
  33370. static="true" final="false" visibility="public"
  33371. deprecated="not deprecated">
  33372. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33373. </method>
  33374. <method name="isOriginalTGT" return="boolean"
  33375. abstract="false" native="false" synchronized="false"
  33376. static="true" final="false" visibility="protected"
  33377. deprecated="not deprecated">
  33378. <param name="ticket" type="javax.security.auth.kerberos.KerberosTicket"/>
  33379. <doc>
  33380. <![CDATA[Check whether the server principal is the TGS's principal
  33381. @param ticket the original TGT (the ticket that is obtained when a
  33382. kinit is done)
  33383. @return true or false]]>
  33384. </doc>
  33385. </method>
  33386. <method name="getServerPrincipal" return="java.lang.String"
  33387. abstract="false" native="false" synchronized="false"
  33388. static="true" final="false" visibility="public"
  33389. deprecated="not deprecated">
  33390. <param name="principalConfig" type="java.lang.String"/>
  33391. <param name="hostname" type="java.lang.String"/>
  33392. <exception name="IOException" type="java.io.IOException"/>
  33393. <doc>
  33394. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  33395. names. It replaces hostname pattern with hostname, which should be
  33396. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  33397. dynamically looked-up fqdn of the current host instead.
  33398. @param principalConfig
  33399. the Kerberos principal name conf value to convert
  33400. @param hostname
  33401. the fully-qualified domain name used for substitution
  33402. @return converted Kerberos principal name
  33403. @throws IOException if the client address cannot be determined]]>
  33404. </doc>
  33405. </method>
  33406. <method name="getServerPrincipal" return="java.lang.String"
  33407. abstract="false" native="false" synchronized="false"
  33408. static="true" final="false" visibility="public"
  33409. deprecated="not deprecated">
  33410. <param name="principalConfig" type="java.lang.String"/>
  33411. <param name="addr" type="java.net.InetAddress"/>
  33412. <exception name="IOException" type="java.io.IOException"/>
  33413. <doc>
  33414. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  33415. This method is similar to {@link #getServerPrincipal(String, String)},
  33416. except 1) the reverse DNS lookup from addr to hostname is done only when
  33417. necessary, 2) param addr can't be null (no default behavior of using local
  33418. hostname when addr is null).
  33419. @param principalConfig
  33420. Kerberos principal name pattern to convert
  33421. @param addr
  33422. InetAddress of the host used for substitution
  33423. @return converted Kerberos principal name
  33424. @throws IOException if the client address cannot be determined]]>
  33425. </doc>
  33426. </method>
  33427. <method name="login"
  33428. abstract="false" native="false" synchronized="false"
  33429. static="true" final="false" visibility="public"
  33430. deprecated="not deprecated">
  33431. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33432. <param name="keytabFileKey" type="java.lang.String"/>
  33433. <param name="userNameKey" type="java.lang.String"/>
  33434. <exception name="IOException" type="java.io.IOException"/>
  33435. <doc>
  33436. <![CDATA[Login as a principal specified in config. Substitute $host in
  33437. user's Kerberos principal name with a dynamically looked-up fully-qualified
  33438. domain name of the current host.
  33439. @param conf
  33440. conf to use
  33441. @param keytabFileKey
  33442. the key to look for keytab file in conf
  33443. @param userNameKey
  33444. the key to look for user's Kerberos principal name in conf
  33445. @throws IOException if login fails]]>
  33446. </doc>
  33447. </method>
  33448. <method name="login"
  33449. abstract="false" native="false" synchronized="false"
  33450. static="true" final="false" visibility="public"
  33451. deprecated="not deprecated">
  33452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33453. <param name="keytabFileKey" type="java.lang.String"/>
  33454. <param name="userNameKey" type="java.lang.String"/>
  33455. <param name="hostname" type="java.lang.String"/>
  33456. <exception name="IOException" type="java.io.IOException"/>
  33457. <doc>
  33458. <![CDATA[Login as a principal specified in config. Substitute $host in user's Kerberos principal
  33459. name with hostname. If non-secure mode - return. If no keytab available -
  33460. bail out with an exception
  33461. @param conf
  33462. conf to use
  33463. @param keytabFileKey
  33464. the key to look for keytab file in conf
  33465. @param userNameKey
  33466. the key to look for user's Kerberos principal name in conf
  33467. @param hostname
  33468. hostname to use for substitution
  33469. @throws IOException if the config doesn't specify a keytab]]>
  33470. </doc>
  33471. </method>
  33472. <method name="buildDTServiceName" return="java.lang.String"
  33473. abstract="false" native="false" synchronized="false"
  33474. static="true" final="false" visibility="public"
  33475. deprecated="not deprecated">
  33476. <param name="uri" type="java.net.URI"/>
  33477. <param name="defPort" type="int"/>
  33478. <doc>
  33479. <![CDATA[create the service name for a Delegation token
  33480. @param uri of the service
  33481. @param defPort is used if the uri lacks a port
  33482. @return the token service, or null if no authority
  33483. @see #buildTokenService(InetSocketAddress)]]>
  33484. </doc>
  33485. </method>
  33486. <method name="getHostFromPrincipal" return="java.lang.String"
  33487. abstract="false" native="false" synchronized="false"
  33488. static="true" final="false" visibility="public"
  33489. deprecated="not deprecated">
  33490. <param name="principalName" type="java.lang.String"/>
  33491. <doc>
  33492. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  33493. @param principalName principal name of format as described above
  33494. @return host name if the the string conforms to the above format, else null]]>
  33495. </doc>
  33496. </method>
  33497. <method name="getKerberosInfo" return="org.apache.hadoop.security.KerberosInfo"
  33498. abstract="false" native="false" synchronized="false"
  33499. static="true" final="false" visibility="public"
  33500. deprecated="not deprecated">
  33501. <param name="protocol" type="java.lang.Class"/>
  33502. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33503. <doc>
  33504. <![CDATA[Look up the KerberosInfo for a given protocol. It searches all known
  33505. SecurityInfo providers.
  33506. @param protocol the protocol class to get the information for
  33507. @param conf configuration object
  33508. @return the KerberosInfo or null if it has no KerberosInfo defined]]>
  33509. </doc>
  33510. </method>
  33511. <method name="getTokenInfo" return="org.apache.hadoop.security.token.TokenInfo"
  33512. abstract="false" native="false" synchronized="false"
  33513. static="true" final="false" visibility="public"
  33514. deprecated="not deprecated">
  33515. <param name="protocol" type="java.lang.Class"/>
  33516. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33517. <doc>
  33518. <![CDATA[Look up the TokenInfo for a given protocol. It searches all known
  33519. SecurityInfo providers.
  33520. @param protocol The protocol class to get the information for.
  33521. @param conf Configuration object
  33522. @return the TokenInfo or null if it has no KerberosInfo defined]]>
  33523. </doc>
  33524. </method>
  33525. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  33526. abstract="false" native="false" synchronized="false"
  33527. static="true" final="false" visibility="public"
  33528. deprecated="not deprecated">
  33529. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33530. <doc>
  33531. <![CDATA[Decode the given token's service field into an InetAddress
  33532. @param token from which to obtain the service
  33533. @return InetAddress for the service]]>
  33534. </doc>
  33535. </method>
  33536. <method name="setTokenService"
  33537. abstract="false" native="false" synchronized="false"
  33538. static="true" final="false" visibility="public"
  33539. deprecated="not deprecated">
  33540. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  33541. <param name="addr" type="java.net.InetSocketAddress"/>
  33542. <doc>
  33543. <![CDATA[Set the given token's service to the format expected by the RPC client
  33544. @param token a delegation token
  33545. @param addr the socket for the rpc connection]]>
  33546. </doc>
  33547. </method>
  33548. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  33549. abstract="false" native="false" synchronized="false"
  33550. static="true" final="false" visibility="public"
  33551. deprecated="not deprecated">
  33552. <param name="addr" type="java.net.InetSocketAddress"/>
  33553. <doc>
  33554. <![CDATA[Construct the service key for a token
  33555. @param addr InetSocketAddress of remote connection with a token
  33556. @return "ip:port" or "host:port" depending on the value of
  33557. hadoop.security.token.service.use_ip]]>
  33558. </doc>
  33559. </method>
  33560. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  33561. abstract="false" native="false" synchronized="false"
  33562. static="true" final="false" visibility="public"
  33563. deprecated="not deprecated">
  33564. <param name="uri" type="java.net.URI"/>
  33565. <doc>
  33566. <![CDATA[Construct the service key for a token
  33567. @param uri of remote connection with a token
  33568. @return "ip:port" or "host:port" depending on the value of
  33569. hadoop.security.token.service.use_ip]]>
  33570. </doc>
  33571. </method>
  33572. <method name="doAsLoginUserOrFatal" return="T"
  33573. abstract="false" native="false" synchronized="false"
  33574. static="true" final="false" visibility="public"
  33575. deprecated="not deprecated">
  33576. <param name="action" type="java.security.PrivilegedAction"/>
  33577. <doc>
  33578. <![CDATA[Perform the given action as the daemon's login user. If the login
  33579. user cannot be determined, this will log a FATAL error and exit
  33580. the whole JVM.]]>
  33581. </doc>
  33582. </method>
  33583. <method name="doAsLoginUser" return="T"
  33584. abstract="false" native="false" synchronized="false"
  33585. static="true" final="false" visibility="public"
  33586. deprecated="not deprecated">
  33587. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  33588. <exception name="IOException" type="java.io.IOException"/>
  33589. <doc>
  33590. <![CDATA[Perform the given action as the daemon's login user. If an
  33591. InterruptedException is thrown, it is converted to an IOException.
  33592. @param action the action to perform
  33593. @return the result of the action
  33594. @throws IOException in the event of error]]>
  33595. </doc>
  33596. </method>
  33597. <method name="doAsCurrentUser" return="T"
  33598. abstract="false" native="false" synchronized="false"
  33599. static="true" final="false" visibility="public"
  33600. deprecated="not deprecated">
  33601. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  33602. <exception name="IOException" type="java.io.IOException"/>
  33603. <doc>
  33604. <![CDATA[Perform the given action as the daemon's current user. If an
  33605. InterruptedException is thrown, it is converted to an IOException.
  33606. @param action the action to perform
  33607. @return the result of the action
  33608. @throws IOException in the event of error]]>
  33609. </doc>
  33610. </method>
  33611. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  33612. abstract="false" native="false" synchronized="false"
  33613. static="true" final="false" visibility="public"
  33614. deprecated="not deprecated">
  33615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33616. </method>
  33617. <method name="setAuthenticationMethod"
  33618. abstract="false" native="false" synchronized="false"
  33619. static="true" final="false" visibility="public"
  33620. deprecated="not deprecated">
  33621. <param name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  33622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33623. </method>
  33624. <method name="isPrivilegedPort" return="boolean"
  33625. abstract="false" native="false" synchronized="false"
  33626. static="true" final="false" visibility="public"
  33627. deprecated="not deprecated">
  33628. <param name="port" type="int"/>
  33629. </method>
  33630. <field name="LOG" type="org.slf4j.Logger"
  33631. transient="false" volatile="false"
  33632. static="true" final="true" visibility="public"
  33633. deprecated="not deprecated">
  33634. </field>
  33635. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  33636. transient="false" volatile="false"
  33637. static="true" final="true" visibility="public"
  33638. deprecated="not deprecated">
  33639. </field>
  33640. <field name="FAILED_TO_GET_UGI_MSG_HEADER" type="java.lang.String"
  33641. transient="false" volatile="false"
  33642. static="true" final="true" visibility="public"
  33643. deprecated="not deprecated">
  33644. </field>
  33645. <doc>
  33646. <![CDATA[Security Utils.]]>
  33647. </doc>
  33648. </class>
  33649. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  33650. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  33651. <class name="UserGroupInformation" extends="java.lang.Object"
  33652. abstract="false"
  33653. static="false" final="false" visibility="public"
  33654. deprecated="not deprecated">
  33655. <method name="setShouldRenewImmediatelyForTests"
  33656. abstract="false" native="false" synchronized="false"
  33657. static="true" final="false" visibility="public"
  33658. deprecated="not deprecated">
  33659. <param name="immediate" type="boolean"/>
  33660. <doc>
  33661. <![CDATA[For the purposes of unit tests, we want to test login
  33662. from keytab and don't want to wait until the renew
  33663. window (controlled by TICKET_RENEW_WINDOW).
  33664. @param immediate true if we should login without waiting for ticket window]]>
  33665. </doc>
  33666. </method>
  33667. <method name="reattachMetrics"
  33668. abstract="false" native="false" synchronized="false"
  33669. static="true" final="false" visibility="public"
  33670. deprecated="not deprecated">
  33671. <doc>
  33672. <![CDATA[Reattach the class's metrics to a new metric system.]]>
  33673. </doc>
  33674. </method>
  33675. <method name="isInitialized" return="boolean"
  33676. abstract="false" native="false" synchronized="false"
  33677. static="true" final="false" visibility="public"
  33678. deprecated="not deprecated">
  33679. </method>
  33680. <method name="setConfiguration"
  33681. abstract="false" native="false" synchronized="false"
  33682. static="true" final="false" visibility="public"
  33683. deprecated="not deprecated">
  33684. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33685. <doc>
  33686. <![CDATA[Set the static configuration for UGI.
  33687. In particular, set the security authentication mechanism and the
  33688. group look up service.
  33689. @param conf the configuration to use]]>
  33690. </doc>
  33691. </method>
  33692. <method name="isSecurityEnabled" return="boolean"
  33693. abstract="false" native="false" synchronized="false"
  33694. static="true" final="false" visibility="public"
  33695. deprecated="not deprecated">
  33696. <doc>
  33697. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  33698. user identities or is relying on simple authentication
  33699. @return true if UGI is working in a secure environment]]>
  33700. </doc>
  33701. </method>
  33702. <method name="hasKerberosCredentials" return="boolean"
  33703. abstract="false" native="false" synchronized="false"
  33704. static="false" final="false" visibility="public"
  33705. deprecated="not deprecated">
  33706. <doc>
  33707. <![CDATA[checks if logged in using kerberos
  33708. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  33709. </doc>
  33710. </method>
  33711. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  33712. abstract="false" native="false" synchronized="true"
  33713. static="true" final="false" visibility="public"
  33714. deprecated="not deprecated">
  33715. <exception name="IOException" type="java.io.IOException"/>
  33716. <doc>
  33717. <![CDATA[Return the current user, including any doAs in the current stack.
  33718. @return the current user
  33719. @throws IOException if login fails]]>
  33720. </doc>
  33721. </method>
  33722. <method name="getBestUGI" return="org.apache.hadoop.security.UserGroupInformation"
  33723. abstract="false" native="false" synchronized="false"
  33724. static="true" final="false" visibility="public"
  33725. deprecated="not deprecated">
  33726. <param name="ticketCachePath" type="java.lang.String"/>
  33727. <param name="user" type="java.lang.String"/>
  33728. <exception name="IOException" type="java.io.IOException"/>
  33729. <doc>
  33730. <![CDATA[Find the most appropriate UserGroupInformation to use
  33731. @param ticketCachePath The Kerberos ticket cache path, or NULL
  33732. if none is specfied
  33733. @param user The user name, or NULL if none is specified.
  33734. @return The most appropriate UserGroupInformation]]>
  33735. </doc>
  33736. </method>
  33737. <method name="getUGIFromTicketCache" return="org.apache.hadoop.security.UserGroupInformation"
  33738. abstract="false" native="false" synchronized="false"
  33739. static="true" final="false" visibility="public"
  33740. deprecated="not deprecated">
  33741. <param name="ticketCache" type="java.lang.String"/>
  33742. <param name="user" type="java.lang.String"/>
  33743. <exception name="IOException" type="java.io.IOException"/>
  33744. <doc>
  33745. <![CDATA[Create a UserGroupInformation from a Kerberos ticket cache.
  33746. @param user The principal name to load from the ticket
  33747. cache
  33748. @param ticketCache the path to the ticket cache file
  33749. @throws IOException if the kerberos login fails]]>
  33750. </doc>
  33751. </method>
  33752. <method name="getUGIFromSubject" return="org.apache.hadoop.security.UserGroupInformation"
  33753. abstract="false" native="false" synchronized="false"
  33754. static="true" final="false" visibility="public"
  33755. deprecated="not deprecated">
  33756. <param name="subject" type="javax.security.auth.Subject"/>
  33757. <exception name="IOException" type="java.io.IOException"/>
  33758. <doc>
  33759. <![CDATA[Create a UserGroupInformation from a Subject with Kerberos principal.
  33760. @param subject The KerberosPrincipal to use in UGI
  33761. @throws IOException
  33762. @throws KerberosAuthException if the kerberos login fails]]>
  33763. </doc>
  33764. </method>
  33765. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  33766. abstract="false" native="false" synchronized="true"
  33767. static="true" final="false" visibility="public"
  33768. deprecated="not deprecated">
  33769. <exception name="IOException" type="java.io.IOException"/>
  33770. <doc>
  33771. <![CDATA[Get the currently logged in user.
  33772. @return the logged in user
  33773. @throws IOException if login fails]]>
  33774. </doc>
  33775. </method>
  33776. <method name="trimLoginMethod" return="java.lang.String"
  33777. abstract="false" native="false" synchronized="false"
  33778. static="true" final="false" visibility="public"
  33779. deprecated="not deprecated">
  33780. <param name="userName" type="java.lang.String"/>
  33781. <doc>
  33782. <![CDATA[remove the login method that is followed by a space from the username
  33783. e.g. "jack (auth:SIMPLE)" -> "jack"
  33784. @param userName
  33785. @return userName without login method]]>
  33786. </doc>
  33787. </method>
  33788. <method name="loginUserFromSubject"
  33789. abstract="false" native="false" synchronized="true"
  33790. static="true" final="false" visibility="public"
  33791. deprecated="not deprecated">
  33792. <param name="subject" type="javax.security.auth.Subject"/>
  33793. <exception name="IOException" type="java.io.IOException"/>
  33794. <doc>
  33795. <![CDATA[Log in a user using the given subject
  33796. @param subject the subject to use when logging in a user, or null to
  33797. create a new subject.
  33798. @throws IOException if login fails]]>
  33799. </doc>
  33800. </method>
  33801. <method name="isFromKeytab" return="boolean"
  33802. abstract="false" native="false" synchronized="false"
  33803. static="false" final="false" visibility="public"
  33804. deprecated="not deprecated">
  33805. <doc>
  33806. <![CDATA[Is this user logged in from a keytab file?
  33807. @return true if the credentials are from a keytab file.]]>
  33808. </doc>
  33809. </method>
  33810. <method name="loginUserFromKeytab"
  33811. abstract="false" native="false" synchronized="true"
  33812. static="true" final="false" visibility="public"
  33813. deprecated="not deprecated">
  33814. <param name="user" type="java.lang.String"/>
  33815. <param name="path" type="java.lang.String"/>
  33816. <exception name="IOException" type="java.io.IOException"/>
  33817. <doc>
  33818. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  33819. file and logs them in. They become the currently logged-in user.
  33820. @param user the principal name to load from the keytab
  33821. @param path the path to the keytab file
  33822. @throws IOException
  33823. @throws KerberosAuthException if it's a kerberos login exception.]]>
  33824. </doc>
  33825. </method>
  33826. <method name="logoutUserFromKeytab"
  33827. abstract="false" native="false" synchronized="false"
  33828. static="false" final="false" visibility="public"
  33829. deprecated="not deprecated">
  33830. <exception name="IOException" type="java.io.IOException"/>
  33831. <doc>
  33832. <![CDATA[Log the current user out who previously logged in using keytab.
  33833. This method assumes that the user logged in by calling
  33834. {@link #loginUserFromKeytab(String, String)}.
  33835. @throws IOException
  33836. @throws KerberosAuthException if a failure occurred in logout,
  33837. or if the user did not log in by invoking loginUserFromKeyTab() before.]]>
  33838. </doc>
  33839. </method>
  33840. <method name="checkTGTAndReloginFromKeytab"
  33841. abstract="false" native="false" synchronized="true"
  33842. static="false" final="false" visibility="public"
  33843. deprecated="not deprecated">
  33844. <exception name="IOException" type="java.io.IOException"/>
  33845. <doc>
  33846. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  33847. @throws IOException
  33848. @throws KerberosAuthException if it's a kerberos login exception.]]>
  33849. </doc>
  33850. </method>
  33851. <method name="reloginFromKeytab"
  33852. abstract="false" native="false" synchronized="false"
  33853. static="false" final="false" visibility="public"
  33854. deprecated="not deprecated">
  33855. <exception name="IOException" type="java.io.IOException"/>
  33856. <doc>
  33857. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  33858. file and logs them in. They become the currently logged-in user. This
  33859. method assumes that {@link #loginUserFromKeytab(String, String)} had
  33860. happened already. The Subject field of this UserGroupInformation object is
  33861. updated to have the new credentials.
  33862. @throws IOException
  33863. @throws KerberosAuthException on a failure]]>
  33864. </doc>
  33865. </method>
  33866. <method name="forceReloginFromKeytab"
  33867. abstract="false" native="false" synchronized="false"
  33868. static="false" final="false" visibility="public"
  33869. deprecated="not deprecated">
  33870. <exception name="IOException" type="java.io.IOException"/>
  33871. <doc>
  33872. <![CDATA[Force re-Login a user in from a keytab file irrespective of the last login
  33873. time. Loads a user identity from a keytab file and logs them in. They
  33874. become the currently logged-in user. This method assumes that
  33875. {@link #loginUserFromKeytab(String, String)} had happened already. The
  33876. Subject field of this UserGroupInformation object is updated to have the
  33877. new credentials.
  33878. @throws IOException
  33879. @throws KerberosAuthException on a failure]]>
  33880. </doc>
  33881. </method>
  33882. <method name="reloginFromTicketCache"
  33883. abstract="false" native="false" synchronized="true"
  33884. static="false" final="false" visibility="public"
  33885. deprecated="not deprecated">
  33886. <exception name="IOException" type="java.io.IOException"/>
  33887. <doc>
  33888. <![CDATA[Re-Login a user in from the ticket cache. This
  33889. method assumes that login had happened already.
  33890. The Subject field of this UserGroupInformation object is updated to have
  33891. the new credentials.
  33892. @throws IOException
  33893. @throws KerberosAuthException on a failure]]>
  33894. </doc>
  33895. </method>
  33896. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  33897. abstract="false" native="false" synchronized="true"
  33898. static="true" final="false" visibility="public"
  33899. deprecated="not deprecated">
  33900. <param name="user" type="java.lang.String"/>
  33901. <param name="path" type="java.lang.String"/>
  33902. <exception name="IOException" type="java.io.IOException"/>
  33903. <doc>
  33904. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  33905. file and login them in. This new user does not affect the currently
  33906. logged-in user.
  33907. @param user the principal name to load from the keytab
  33908. @param path the path to the keytab file
  33909. @throws IOException if the keytab file can't be read]]>
  33910. </doc>
  33911. </method>
  33912. <method name="isLoginKeytabBased" return="boolean"
  33913. abstract="false" native="false" synchronized="true"
  33914. static="true" final="false" visibility="public"
  33915. deprecated="not deprecated">
  33916. <exception name="IOException" type="java.io.IOException"/>
  33917. <doc>
  33918. <![CDATA[Did the login happen via keytab
  33919. @return true or false]]>
  33920. </doc>
  33921. </method>
  33922. <method name="isLoginTicketBased" return="boolean"
  33923. abstract="false" native="false" synchronized="false"
  33924. static="true" final="false" visibility="public"
  33925. deprecated="not deprecated">
  33926. <exception name="IOException" type="java.io.IOException"/>
  33927. <doc>
  33928. <![CDATA[Did the login happen via ticket cache
  33929. @return true or false]]>
  33930. </doc>
  33931. </method>
  33932. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  33933. abstract="false" native="false" synchronized="false"
  33934. static="true" final="false" visibility="public"
  33935. deprecated="not deprecated">
  33936. <param name="user" type="java.lang.String"/>
  33937. <doc>
  33938. <![CDATA[Create a user from a login name. It is intended to be used for remote
  33939. users in RPC, since it won't have any credentials.
  33940. @param user the full user principal name, must not be empty or null
  33941. @return the UserGroupInformation for the remote user.]]>
  33942. </doc>
  33943. </method>
  33944. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  33945. abstract="false" native="false" synchronized="false"
  33946. static="true" final="false" visibility="public"
  33947. deprecated="not deprecated">
  33948. <param name="user" type="java.lang.String"/>
  33949. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  33950. <doc>
  33951. <![CDATA[Create a user from a login name. It is intended to be used for remote
  33952. users in RPC, since it won't have any credentials.
  33953. @param user the full user principal name, must not be empty or null
  33954. @return the UserGroupInformation for the remote user.]]>
  33955. </doc>
  33956. </method>
  33957. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  33958. abstract="false" native="false" synchronized="false"
  33959. static="true" final="false" visibility="public"
  33960. deprecated="not deprecated">
  33961. <param name="user" type="java.lang.String"/>
  33962. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  33963. <doc>
  33964. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  33965. real user.
  33966. @param user
  33967. @param realUser
  33968. @return proxyUser ugi]]>
  33969. </doc>
  33970. </method>
  33971. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  33972. abstract="false" native="false" synchronized="false"
  33973. static="false" final="false" visibility="public"
  33974. deprecated="not deprecated">
  33975. <doc>
  33976. <![CDATA[get RealUser (vs. EffectiveUser)
  33977. @return realUser running over proxy user]]>
  33978. </doc>
  33979. </method>
  33980. <method name="getRealUserOrSelf" return="org.apache.hadoop.security.UserGroupInformation"
  33981. abstract="false" native="false" synchronized="false"
  33982. static="true" final="false" visibility="public"
  33983. deprecated="not deprecated">
  33984. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  33985. <doc>
  33986. <![CDATA[If this is a proxy user, get the real user. Otherwise, return
  33987. this user.
  33988. @param user the user to check
  33989. @return the real user or self]]>
  33990. </doc>
  33991. </method>
  33992. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  33993. abstract="false" native="false" synchronized="false"
  33994. static="true" final="false" visibility="public"
  33995. deprecated="not deprecated">
  33996. <param name="user" type="java.lang.String"/>
  33997. <param name="userGroups" type="java.lang.String[]"/>
  33998. <doc>
  33999. <![CDATA[Create a UGI for testing HDFS and MapReduce
  34000. @param user the full user principal name
  34001. @param userGroups the names of the groups that the user belongs to
  34002. @return a fake user for running unit tests]]>
  34003. </doc>
  34004. </method>
  34005. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34006. abstract="false" native="false" synchronized="false"
  34007. static="true" final="false" visibility="public"
  34008. deprecated="not deprecated">
  34009. <param name="user" type="java.lang.String"/>
  34010. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34011. <param name="userGroups" type="java.lang.String[]"/>
  34012. <doc>
  34013. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  34014. @param user
  34015. the full user principal name for effective user
  34016. @param realUser
  34017. UGI of the real user
  34018. @param userGroups
  34019. the names of the groups that the user belongs to
  34020. @return a fake user for running unit tests]]>
  34021. </doc>
  34022. </method>
  34023. <method name="getShortUserName" return="java.lang.String"
  34024. abstract="false" native="false" synchronized="false"
  34025. static="false" final="false" visibility="public"
  34026. deprecated="not deprecated">
  34027. <doc>
  34028. <![CDATA[Get the user's login name.
  34029. @return the user's name up to the first '/' or '@'.]]>
  34030. </doc>
  34031. </method>
  34032. <method name="getPrimaryGroupName" return="java.lang.String"
  34033. abstract="false" native="false" synchronized="false"
  34034. static="false" final="false" visibility="public"
  34035. deprecated="not deprecated">
  34036. <exception name="IOException" type="java.io.IOException"/>
  34037. </method>
  34038. <method name="getUserName" return="java.lang.String"
  34039. abstract="false" native="false" synchronized="false"
  34040. static="false" final="false" visibility="public"
  34041. deprecated="not deprecated">
  34042. <doc>
  34043. <![CDATA[Get the user's full principal name.
  34044. @return the user's full principal name.]]>
  34045. </doc>
  34046. </method>
  34047. <method name="addTokenIdentifier" return="boolean"
  34048. abstract="false" native="false" synchronized="true"
  34049. static="false" final="false" visibility="public"
  34050. deprecated="not deprecated">
  34051. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  34052. <doc>
  34053. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  34054. authenticated by the RPC layer as belonging to the user represented by this
  34055. UGI.
  34056. @param tokenId
  34057. tokenIdentifier to be added
  34058. @return true on successful add of new tokenIdentifier]]>
  34059. </doc>
  34060. </method>
  34061. <method name="getTokenIdentifiers" return="java.util.Set"
  34062. abstract="false" native="false" synchronized="true"
  34063. static="false" final="false" visibility="public"
  34064. deprecated="not deprecated">
  34065. <doc>
  34066. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  34067. @return the set of TokenIdentifiers belonging to this UGI]]>
  34068. </doc>
  34069. </method>
  34070. <method name="addToken" return="boolean"
  34071. abstract="false" native="false" synchronized="false"
  34072. static="false" final="false" visibility="public"
  34073. deprecated="not deprecated">
  34074. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34075. <doc>
  34076. <![CDATA[Add a token to this UGI
  34077. @param token Token to be added
  34078. @return true on successful add of new token]]>
  34079. </doc>
  34080. </method>
  34081. <method name="addToken" return="boolean"
  34082. abstract="false" native="false" synchronized="false"
  34083. static="false" final="false" visibility="public"
  34084. deprecated="not deprecated">
  34085. <param name="alias" type="org.apache.hadoop.io.Text"/>
  34086. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34087. <doc>
  34088. <![CDATA[Add a named token to this UGI
  34089. @param alias Name of the token
  34090. @param token Token to be added
  34091. @return true on successful add of new token]]>
  34092. </doc>
  34093. </method>
  34094. <method name="getTokens" return="java.util.Collection"
  34095. abstract="false" native="false" synchronized="false"
  34096. static="false" final="false" visibility="public"
  34097. deprecated="not deprecated">
  34098. <doc>
  34099. <![CDATA[Obtain the collection of tokens associated with this user.
  34100. @return an unmodifiable collection of tokens associated with user]]>
  34101. </doc>
  34102. </method>
  34103. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  34104. abstract="false" native="false" synchronized="false"
  34105. static="false" final="false" visibility="public"
  34106. deprecated="not deprecated">
  34107. <doc>
  34108. <![CDATA[Obtain the tokens in credentials form associated with this user.
  34109. @return Credentials of tokens associated with this user]]>
  34110. </doc>
  34111. </method>
  34112. <method name="addCredentials"
  34113. abstract="false" native="false" synchronized="false"
  34114. static="false" final="false" visibility="public"
  34115. deprecated="not deprecated">
  34116. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  34117. <doc>
  34118. <![CDATA[Add the given Credentials to this user.
  34119. @param credentials of tokens and secrets]]>
  34120. </doc>
  34121. </method>
  34122. <method name="getGroupNames" return="java.lang.String[]"
  34123. abstract="false" native="false" synchronized="false"
  34124. static="false" final="false" visibility="public"
  34125. deprecated="not deprecated">
  34126. <doc>
  34127. <![CDATA[Get the group names for this user. {@link #getGroups()} is less
  34128. expensive alternative when checking for a contained element.
  34129. @return the list of users with the primary group first. If the command
  34130. fails, it returns an empty list.]]>
  34131. </doc>
  34132. </method>
  34133. <method name="getGroups" return="java.util.List"
  34134. abstract="false" native="false" synchronized="false"
  34135. static="false" final="false" visibility="public"
  34136. deprecated="not deprecated">
  34137. <doc>
  34138. <![CDATA[Get the group names for this user.
  34139. @return the list of users with the primary group first. If the command
  34140. fails, it returns an empty list.]]>
  34141. </doc>
  34142. </method>
  34143. <method name="toString" return="java.lang.String"
  34144. abstract="false" native="false" synchronized="false"
  34145. static="false" final="false" visibility="public"
  34146. deprecated="not deprecated">
  34147. <doc>
  34148. <![CDATA[Return the username.]]>
  34149. </doc>
  34150. </method>
  34151. <method name="setAuthenticationMethod"
  34152. abstract="false" native="false" synchronized="true"
  34153. static="false" final="false" visibility="public"
  34154. deprecated="not deprecated">
  34155. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  34156. <doc>
  34157. <![CDATA[Sets the authentication method in the subject
  34158. @param authMethod]]>
  34159. </doc>
  34160. </method>
  34161. <method name="setAuthenticationMethod"
  34162. abstract="false" native="false" synchronized="false"
  34163. static="false" final="false" visibility="public"
  34164. deprecated="not deprecated">
  34165. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  34166. <doc>
  34167. <![CDATA[Sets the authentication method in the subject
  34168. @param authMethod]]>
  34169. </doc>
  34170. </method>
  34171. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34172. abstract="false" native="false" synchronized="true"
  34173. static="false" final="false" visibility="public"
  34174. deprecated="not deprecated">
  34175. <doc>
  34176. <![CDATA[Get the authentication method from the subject
  34177. @return AuthenticationMethod in the subject, null if not present.]]>
  34178. </doc>
  34179. </method>
  34180. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34181. abstract="false" native="false" synchronized="true"
  34182. static="false" final="false" visibility="public"
  34183. deprecated="not deprecated">
  34184. <doc>
  34185. <![CDATA[Get the authentication method from the real user's subject. If there
  34186. is no real user, return the given user's authentication method.
  34187. @return AuthenticationMethod in the subject, null if not present.]]>
  34188. </doc>
  34189. </method>
  34190. <method name="getRealAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34191. abstract="false" native="false" synchronized="false"
  34192. static="true" final="false" visibility="public"
  34193. deprecated="not deprecated">
  34194. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34195. <doc>
  34196. <![CDATA[Returns the authentication method of a ugi. If the authentication method is
  34197. PROXY, returns the authentication method of the real user.
  34198. @param ugi
  34199. @return AuthenticationMethod]]>
  34200. </doc>
  34201. </method>
  34202. <method name="equals" return="boolean"
  34203. abstract="false" native="false" synchronized="false"
  34204. static="false" final="false" visibility="public"
  34205. deprecated="not deprecated">
  34206. <param name="o" type="java.lang.Object"/>
  34207. <doc>
  34208. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  34209. </doc>
  34210. </method>
  34211. <method name="hashCode" return="int"
  34212. abstract="false" native="false" synchronized="false"
  34213. static="false" final="false" visibility="public"
  34214. deprecated="not deprecated">
  34215. <doc>
  34216. <![CDATA[Return the hash of the subject.]]>
  34217. </doc>
  34218. </method>
  34219. <method name="getSubject" return="javax.security.auth.Subject"
  34220. abstract="false" native="false" synchronized="false"
  34221. static="false" final="false" visibility="protected"
  34222. deprecated="not deprecated">
  34223. <doc>
  34224. <![CDATA[Get the underlying subject from this ugi.
  34225. @return the subject that represents this user.]]>
  34226. </doc>
  34227. </method>
  34228. <method name="doAs" return="T"
  34229. abstract="false" native="false" synchronized="false"
  34230. static="false" final="false" visibility="public"
  34231. deprecated="not deprecated">
  34232. <param name="action" type="java.security.PrivilegedAction"/>
  34233. <doc>
  34234. <![CDATA[Run the given action as the user.
  34235. @param <T> the return type of the run method
  34236. @param action the method to execute
  34237. @return the value from the run method]]>
  34238. </doc>
  34239. </method>
  34240. <method name="doAs" return="T"
  34241. abstract="false" native="false" synchronized="false"
  34242. static="false" final="false" visibility="public"
  34243. deprecated="not deprecated">
  34244. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  34245. <exception name="IOException" type="java.io.IOException"/>
  34246. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  34247. <doc>
  34248. <![CDATA[Run the given action as the user, potentially throwing an exception.
  34249. @param <T> the return type of the run method
  34250. @param action the method to execute
  34251. @return the value from the run method
  34252. @throws IOException if the action throws an IOException
  34253. @throws Error if the action throws an Error
  34254. @throws RuntimeException if the action throws a RuntimeException
  34255. @throws InterruptedException if the action throws an InterruptedException
  34256. @throws UndeclaredThrowableException if the action throws something else]]>
  34257. </doc>
  34258. </method>
  34259. <method name="logAllUserInfo"
  34260. abstract="false" native="false" synchronized="false"
  34261. static="true" final="false" visibility="public"
  34262. deprecated="not deprecated">
  34263. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34264. <exception name="IOException" type="java.io.IOException"/>
  34265. <doc>
  34266. <![CDATA[Log all (current, real, login) UGI and token info into UGI debug log.
  34267. @param ugi - UGI
  34268. @throws IOException]]>
  34269. </doc>
  34270. </method>
  34271. <method name="main"
  34272. abstract="false" native="false" synchronized="false"
  34273. static="true" final="false" visibility="public"
  34274. deprecated="not deprecated">
  34275. <param name="args" type="java.lang.String[]"/>
  34276. <exception name="Exception" type="java.lang.Exception"/>
  34277. <doc>
  34278. <![CDATA[A test method to print out the current user's UGI.
  34279. @param args if there are two arguments, read the user from the keytab
  34280. and print it out.
  34281. @throws Exception]]>
  34282. </doc>
  34283. </method>
  34284. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  34285. transient="false" volatile="false"
  34286. static="true" final="true" visibility="public"
  34287. deprecated="not deprecated">
  34288. <doc>
  34289. <![CDATA[Environment variable pointing to the token cache file]]>
  34290. </doc>
  34291. </field>
  34292. <doc>
  34293. <![CDATA[User and group information for Hadoop.
  34294. This class wraps around a JAAS Subject and provides methods to determine the
  34295. user's username and groups. It supports both the Windows, Unix and Kerberos
  34296. login modules.]]>
  34297. </doc>
  34298. </class>
  34299. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  34300. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  34301. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  34302. abstract="false"
  34303. static="true" final="true" visibility="public"
  34304. deprecated="not deprecated">
  34305. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  34306. abstract="false" native="false" synchronized="false"
  34307. static="true" final="false" visibility="public"
  34308. deprecated="not deprecated">
  34309. </method>
  34310. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34311. abstract="false" native="false" synchronized="false"
  34312. static="true" final="false" visibility="public"
  34313. deprecated="not deprecated">
  34314. <param name="name" type="java.lang.String"/>
  34315. </method>
  34316. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34317. abstract="false" native="false" synchronized="false"
  34318. static="false" final="false" visibility="public"
  34319. deprecated="not deprecated">
  34320. </method>
  34321. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34322. abstract="false" native="false" synchronized="false"
  34323. static="true" final="false" visibility="public"
  34324. deprecated="not deprecated">
  34325. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  34326. </method>
  34327. <doc>
  34328. <![CDATA[existing types of authentications' methods]]>
  34329. </doc>
  34330. </class>
  34331. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  34332. </package>
  34333. <package name="org.apache.hadoop.security.alias">
  34334. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  34335. <class name="CredentialProvider" extends="java.lang.Object"
  34336. abstract="true"
  34337. static="false" final="false" visibility="public"
  34338. deprecated="not deprecated">
  34339. <constructor name="CredentialProvider"
  34340. static="false" final="false" visibility="public"
  34341. deprecated="not deprecated">
  34342. </constructor>
  34343. <method name="isTransient" return="boolean"
  34344. abstract="false" native="false" synchronized="false"
  34345. static="false" final="false" visibility="public"
  34346. deprecated="not deprecated">
  34347. <doc>
  34348. <![CDATA[Indicates whether this provider represents a store
  34349. that is intended for transient use - such as the UserProvider
  34350. is. These providers are generally used to provide job access to
  34351. passwords rather than for long term storage.
  34352. @return true if transient, false otherwise]]>
  34353. </doc>
  34354. </method>
  34355. <method name="flush"
  34356. abstract="true" native="false" synchronized="false"
  34357. static="false" final="false" visibility="public"
  34358. deprecated="not deprecated">
  34359. <exception name="IOException" type="java.io.IOException"/>
  34360. <doc>
  34361. <![CDATA[Ensures that any changes to the credentials are written to persistent
  34362. store.
  34363. @throws IOException]]>
  34364. </doc>
  34365. </method>
  34366. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  34367. abstract="true" native="false" synchronized="false"
  34368. static="false" final="false" visibility="public"
  34369. deprecated="not deprecated">
  34370. <param name="alias" type="java.lang.String"/>
  34371. <exception name="IOException" type="java.io.IOException"/>
  34372. <doc>
  34373. <![CDATA[Get the credential entry for a specific alias.
  34374. @param alias the name of a specific credential
  34375. @return the credentialEntry
  34376. @throws IOException]]>
  34377. </doc>
  34378. </method>
  34379. <method name="getAliases" return="java.util.List"
  34380. abstract="true" native="false" synchronized="false"
  34381. static="false" final="false" visibility="public"
  34382. deprecated="not deprecated">
  34383. <exception name="IOException" type="java.io.IOException"/>
  34384. <doc>
  34385. <![CDATA[Get the aliases for all credentials.
  34386. @return the list of alias names
  34387. @throws IOException]]>
  34388. </doc>
  34389. </method>
  34390. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  34391. abstract="true" native="false" synchronized="false"
  34392. static="false" final="false" visibility="public"
  34393. deprecated="not deprecated">
  34394. <param name="name" type="java.lang.String"/>
  34395. <param name="credential" type="char[]"/>
  34396. <exception name="IOException" type="java.io.IOException"/>
  34397. <doc>
  34398. <![CDATA[Create a new credential. The given alias must not already exist.
  34399. @param name the alias of the credential
  34400. @param credential the credential value for the alias.
  34401. @throws IOException]]>
  34402. </doc>
  34403. </method>
  34404. <method name="deleteCredentialEntry"
  34405. abstract="true" native="false" synchronized="false"
  34406. static="false" final="false" visibility="public"
  34407. deprecated="not deprecated">
  34408. <param name="name" type="java.lang.String"/>
  34409. <exception name="IOException" type="java.io.IOException"/>
  34410. <doc>
  34411. <![CDATA[Delete the given credential.
  34412. @param name the alias of the credential to delete
  34413. @throws IOException]]>
  34414. </doc>
  34415. </method>
  34416. <method name="needsPassword" return="boolean"
  34417. abstract="false" native="false" synchronized="false"
  34418. static="false" final="false" visibility="public"
  34419. deprecated="not deprecated">
  34420. <exception name="IOException" type="java.io.IOException"/>
  34421. <doc>
  34422. <![CDATA[Does this provider require a password? This means that a password is
  34423. required for normal operation, and it has not been found through normal
  34424. means. If true, the password should be provided by the caller using
  34425. setPassword().
  34426. @return Whether or not the provider requires a password
  34427. @throws IOException]]>
  34428. </doc>
  34429. </method>
  34430. <method name="noPasswordWarning" return="java.lang.String"
  34431. abstract="false" native="false" synchronized="false"
  34432. static="false" final="false" visibility="public"
  34433. deprecated="not deprecated">
  34434. <doc>
  34435. <![CDATA[If a password for the provider is needed, but is not provided, this will
  34436. return a warning and instructions for supplying said password to the
  34437. provider.
  34438. @return A warning and instructions for supplying the password]]>
  34439. </doc>
  34440. </method>
  34441. <method name="noPasswordError" return="java.lang.String"
  34442. abstract="false" native="false" synchronized="false"
  34443. static="false" final="false" visibility="public"
  34444. deprecated="not deprecated">
  34445. <doc>
  34446. <![CDATA[If a password for the provider is needed, but is not provided, this will
  34447. return an error message and instructions for supplying said password to
  34448. the provider.
  34449. @return An error message and instructions for supplying the password]]>
  34450. </doc>
  34451. </method>
  34452. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  34453. transient="false" volatile="false"
  34454. static="true" final="true" visibility="public"
  34455. deprecated="not deprecated">
  34456. </field>
  34457. <doc>
  34458. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  34459. abstraction to separate credential storage from users of them. It
  34460. is intended to support getting or storing passwords in a variety of ways,
  34461. including third party bindings.]]>
  34462. </doc>
  34463. </class>
  34464. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  34465. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  34466. <class name="CredentialProviderFactory" extends="java.lang.Object"
  34467. abstract="true"
  34468. static="false" final="false" visibility="public"
  34469. deprecated="not deprecated">
  34470. <constructor name="CredentialProviderFactory"
  34471. static="false" final="false" visibility="public"
  34472. deprecated="not deprecated">
  34473. </constructor>
  34474. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  34475. abstract="true" native="false" synchronized="false"
  34476. static="false" final="false" visibility="public"
  34477. deprecated="not deprecated">
  34478. <param name="providerName" type="java.net.URI"/>
  34479. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34480. <exception name="IOException" type="java.io.IOException"/>
  34481. </method>
  34482. <method name="getProviders" return="java.util.List"
  34483. abstract="false" native="false" synchronized="false"
  34484. static="true" final="false" visibility="public"
  34485. deprecated="not deprecated">
  34486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34487. <exception name="IOException" type="java.io.IOException"/>
  34488. </method>
  34489. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  34490. transient="false" volatile="false"
  34491. static="true" final="true" visibility="public"
  34492. deprecated="not deprecated">
  34493. </field>
  34494. <doc>
  34495. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  34496. Configuration. It uses a service loader interface to find the available
  34497. CredentialProviders and create them based on the list of URIs.]]>
  34498. </doc>
  34499. </class>
  34500. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  34501. </package>
  34502. <package name="org.apache.hadoop.security.authorize">
  34503. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  34504. <class name="AccessControlList" extends="java.lang.Object"
  34505. abstract="false"
  34506. static="false" final="false" visibility="public"
  34507. deprecated="not deprecated">
  34508. <implements name="org.apache.hadoop.io.Writable"/>
  34509. <constructor name="AccessControlList"
  34510. static="false" final="false" visibility="public"
  34511. deprecated="not deprecated">
  34512. <doc>
  34513. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  34514. </doc>
  34515. </constructor>
  34516. <constructor name="AccessControlList" type="java.lang.String"
  34517. static="false" final="false" visibility="public"
  34518. deprecated="not deprecated">
  34519. <doc>
  34520. <![CDATA[Construct a new ACL from a String representation of the same.
  34521. The String is a a comma separated list of users and groups.
  34522. The user list comes first and is separated by a space followed
  34523. by the group list. For e.g. "user1,user2 group1,group2"
  34524. @param aclString String representation of the ACL]]>
  34525. </doc>
  34526. </constructor>
  34527. <constructor name="AccessControlList" type="java.lang.String, java.lang.String"
  34528. static="false" final="false" visibility="public"
  34529. deprecated="not deprecated">
  34530. <doc>
  34531. <![CDATA[Construct a new ACL from String representation of users and groups
  34532. The arguments are comma separated lists
  34533. @param users comma separated list of users
  34534. @param groups comma separated list of groups]]>
  34535. </doc>
  34536. </constructor>
  34537. <method name="isAllAllowed" return="boolean"
  34538. abstract="false" native="false" synchronized="false"
  34539. static="false" final="false" visibility="public"
  34540. deprecated="not deprecated">
  34541. </method>
  34542. <method name="addUser"
  34543. abstract="false" native="false" synchronized="false"
  34544. static="false" final="false" visibility="public"
  34545. deprecated="not deprecated">
  34546. <param name="user" type="java.lang.String"/>
  34547. <doc>
  34548. <![CDATA[Add user to the names of users allowed for this service.
  34549. @param user
  34550. The user name]]>
  34551. </doc>
  34552. </method>
  34553. <method name="addGroup"
  34554. abstract="false" native="false" synchronized="false"
  34555. static="false" final="false" visibility="public"
  34556. deprecated="not deprecated">
  34557. <param name="group" type="java.lang.String"/>
  34558. <doc>
  34559. <![CDATA[Add group to the names of groups allowed for this service.
  34560. @param group
  34561. The group name]]>
  34562. </doc>
  34563. </method>
  34564. <method name="removeUser"
  34565. abstract="false" native="false" synchronized="false"
  34566. static="false" final="false" visibility="public"
  34567. deprecated="not deprecated">
  34568. <param name="user" type="java.lang.String"/>
  34569. <doc>
  34570. <![CDATA[Remove user from the names of users allowed for this service.
  34571. @param user
  34572. The user name]]>
  34573. </doc>
  34574. </method>
  34575. <method name="removeGroup"
  34576. abstract="false" native="false" synchronized="false"
  34577. static="false" final="false" visibility="public"
  34578. deprecated="not deprecated">
  34579. <param name="group" type="java.lang.String"/>
  34580. <doc>
  34581. <![CDATA[Remove group from the names of groups allowed for this service.
  34582. @param group
  34583. The group name]]>
  34584. </doc>
  34585. </method>
  34586. <method name="getUsers" return="java.util.Collection"
  34587. abstract="false" native="false" synchronized="false"
  34588. static="false" final="false" visibility="public"
  34589. deprecated="not deprecated">
  34590. <doc>
  34591. <![CDATA[Get the names of users allowed for this service.
  34592. @return the set of user names. the set must not be modified.]]>
  34593. </doc>
  34594. </method>
  34595. <method name="getGroups" return="java.util.Collection"
  34596. abstract="false" native="false" synchronized="false"
  34597. static="false" final="false" visibility="public"
  34598. deprecated="not deprecated">
  34599. <doc>
  34600. <![CDATA[Get the names of user groups allowed for this service.
  34601. @return the set of group names. the set must not be modified.]]>
  34602. </doc>
  34603. </method>
  34604. <method name="isUserInList" return="boolean"
  34605. abstract="false" native="false" synchronized="false"
  34606. static="false" final="true" visibility="public"
  34607. deprecated="not deprecated">
  34608. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34609. <doc>
  34610. <![CDATA[Checks if a user represented by the provided {@link UserGroupInformation}
  34611. is a member of the Access Control List. If user was proxied and
  34612. USE_REAL_ACLS + the real user name is in the control list, then treat this
  34613. case as if user were in the ACL list.
  34614. @param ugi UserGroupInformation to check if contained in the ACL
  34615. @return true if ugi is member of the list or if USE_REAL_ACLS + real user
  34616. is in the list]]>
  34617. </doc>
  34618. </method>
  34619. <method name="isUserAllowed" return="boolean"
  34620. abstract="false" native="false" synchronized="false"
  34621. static="false" final="false" visibility="public"
  34622. deprecated="not deprecated">
  34623. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  34624. </method>
  34625. <method name="toString" return="java.lang.String"
  34626. abstract="false" native="false" synchronized="false"
  34627. static="false" final="false" visibility="public"
  34628. deprecated="not deprecated">
  34629. <doc>
  34630. <![CDATA[Returns descriptive way of users and groups that are part of this ACL.
  34631. Use {@link #getAclString()} to get the exact String that can be given to
  34632. the constructor of AccessControlList to create a new instance.]]>
  34633. </doc>
  34634. </method>
  34635. <method name="getAclString" return="java.lang.String"
  34636. abstract="false" native="false" synchronized="false"
  34637. static="false" final="false" visibility="public"
  34638. deprecated="not deprecated">
  34639. <doc>
  34640. <![CDATA[Returns the access control list as a String that can be used for building a
  34641. new instance by sending it to the constructor of {@link AccessControlList}.]]>
  34642. </doc>
  34643. </method>
  34644. <method name="write"
  34645. abstract="false" native="false" synchronized="false"
  34646. static="false" final="false" visibility="public"
  34647. deprecated="not deprecated">
  34648. <param name="out" type="java.io.DataOutput"/>
  34649. <exception name="IOException" type="java.io.IOException"/>
  34650. <doc>
  34651. <![CDATA[Serializes the AccessControlList object]]>
  34652. </doc>
  34653. </method>
  34654. <method name="readFields"
  34655. abstract="false" native="false" synchronized="false"
  34656. static="false" final="false" visibility="public"
  34657. deprecated="not deprecated">
  34658. <param name="in" type="java.io.DataInput"/>
  34659. <exception name="IOException" type="java.io.IOException"/>
  34660. <doc>
  34661. <![CDATA[Deserializes the AccessControlList object]]>
  34662. </doc>
  34663. </method>
  34664. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  34665. transient="false" volatile="false"
  34666. static="true" final="true" visibility="public"
  34667. deprecated="not deprecated">
  34668. </field>
  34669. <field name="USE_REAL_ACLS" type="java.lang.String"
  34670. transient="false" volatile="false"
  34671. static="true" final="true" visibility="public"
  34672. deprecated="not deprecated">
  34673. </field>
  34674. <doc>
  34675. <![CDATA[Class representing a configured access control list.]]>
  34676. </doc>
  34677. </class>
  34678. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  34679. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  34680. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  34681. abstract="false"
  34682. static="false" final="false" visibility="public"
  34683. deprecated="not deprecated">
  34684. <constructor name="AuthorizationException"
  34685. static="false" final="false" visibility="public"
  34686. deprecated="not deprecated">
  34687. </constructor>
  34688. <constructor name="AuthorizationException" type="java.lang.String"
  34689. static="false" final="false" visibility="public"
  34690. deprecated="not deprecated">
  34691. </constructor>
  34692. <constructor name="AuthorizationException" type="java.lang.Throwable"
  34693. static="false" final="false" visibility="public"
  34694. deprecated="not deprecated">
  34695. <doc>
  34696. <![CDATA[Constructs a new exception with the specified cause and a detail
  34697. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34698. typically contains the class and detail message of <tt>cause</tt>).
  34699. @param cause the cause (which is saved for later retrieval by the
  34700. {@link #getCause()} method). (A <tt>null</tt> value is
  34701. permitted, and indicates that the cause is nonexistent or
  34702. unknown.)]]>
  34703. </doc>
  34704. </constructor>
  34705. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  34706. abstract="false" native="false" synchronized="false"
  34707. static="false" final="false" visibility="public"
  34708. deprecated="not deprecated">
  34709. </method>
  34710. <method name="printStackTrace"
  34711. abstract="false" native="false" synchronized="false"
  34712. static="false" final="false" visibility="public"
  34713. deprecated="not deprecated">
  34714. </method>
  34715. <method name="printStackTrace"
  34716. abstract="false" native="false" synchronized="false"
  34717. static="false" final="false" visibility="public"
  34718. deprecated="not deprecated">
  34719. <param name="s" type="java.io.PrintStream"/>
  34720. </method>
  34721. <method name="printStackTrace"
  34722. abstract="false" native="false" synchronized="false"
  34723. static="false" final="false" visibility="public"
  34724. deprecated="not deprecated">
  34725. <param name="s" type="java.io.PrintWriter"/>
  34726. </method>
  34727. <doc>
  34728. <![CDATA[An exception class for authorization-related issues.
  34729. This class <em>does not</em> provide the stack trace for security purposes.]]>
  34730. </doc>
  34731. </class>
  34732. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  34733. <!-- start class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  34734. <class name="DefaultImpersonationProvider" extends="java.lang.Object"
  34735. abstract="false"
  34736. static="false" final="false" visibility="public"
  34737. deprecated="not deprecated">
  34738. <implements name="org.apache.hadoop.security.authorize.ImpersonationProvider"/>
  34739. <constructor name="DefaultImpersonationProvider"
  34740. static="false" final="false" visibility="public"
  34741. deprecated="not deprecated">
  34742. </constructor>
  34743. <method name="getTestProvider" return="org.apache.hadoop.security.authorize.DefaultImpersonationProvider"
  34744. abstract="false" native="false" synchronized="true"
  34745. static="true" final="false" visibility="public"
  34746. deprecated="not deprecated">
  34747. </method>
  34748. <method name="setConf"
  34749. abstract="false" native="false" synchronized="false"
  34750. static="false" final="false" visibility="public"
  34751. deprecated="not deprecated">
  34752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34753. </method>
  34754. <method name="init"
  34755. abstract="false" native="false" synchronized="false"
  34756. static="false" final="false" visibility="public"
  34757. deprecated="not deprecated">
  34758. <param name="configurationPrefix" type="java.lang.String"/>
  34759. </method>
  34760. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  34761. abstract="false" native="false" synchronized="false"
  34762. static="false" final="false" visibility="public"
  34763. deprecated="not deprecated">
  34764. </method>
  34765. <method name="authorize"
  34766. abstract="false" native="false" synchronized="false"
  34767. static="false" final="false" visibility="public"
  34768. deprecated="not deprecated">
  34769. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34770. <param name="remoteAddress" type="java.lang.String"/>
  34771. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34772. </method>
  34773. <method name="getProxySuperuserUserConfKey" return="java.lang.String"
  34774. abstract="false" native="false" synchronized="false"
  34775. static="false" final="false" visibility="public"
  34776. deprecated="not deprecated">
  34777. <param name="userName" type="java.lang.String"/>
  34778. <doc>
  34779. <![CDATA[Returns configuration key for effective usergroups allowed for a superuser
  34780. @param userName name of the superuser
  34781. @return configuration key for superuser usergroups]]>
  34782. </doc>
  34783. </method>
  34784. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  34785. abstract="false" native="false" synchronized="false"
  34786. static="false" final="false" visibility="public"
  34787. deprecated="not deprecated">
  34788. <param name="userName" type="java.lang.String"/>
  34789. <doc>
  34790. <![CDATA[Returns configuration key for effective groups allowed for a superuser
  34791. @param userName name of the superuser
  34792. @return configuration key for superuser groups]]>
  34793. </doc>
  34794. </method>
  34795. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  34796. abstract="false" native="false" synchronized="false"
  34797. static="false" final="false" visibility="public"
  34798. deprecated="not deprecated">
  34799. <param name="userName" type="java.lang.String"/>
  34800. <doc>
  34801. <![CDATA[Return configuration key for superuser ip addresses
  34802. @param userName name of the superuser
  34803. @return configuration key for superuser ip-addresses]]>
  34804. </doc>
  34805. </method>
  34806. <method name="getProxyGroups" return="java.util.Map"
  34807. abstract="false" native="false" synchronized="false"
  34808. static="false" final="false" visibility="public"
  34809. deprecated="not deprecated">
  34810. </method>
  34811. <method name="getProxyHosts" return="java.util.Map"
  34812. abstract="false" native="false" synchronized="false"
  34813. static="false" final="false" visibility="public"
  34814. deprecated="not deprecated">
  34815. </method>
  34816. </class>
  34817. <!-- end class org.apache.hadoop.security.authorize.DefaultImpersonationProvider -->
  34818. <!-- start interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  34819. <interface name="ImpersonationProvider" abstract="true"
  34820. static="false" final="false" visibility="public"
  34821. deprecated="not deprecated">
  34822. <implements name="org.apache.hadoop.conf.Configurable"/>
  34823. <method name="init"
  34824. abstract="false" native="false" synchronized="false"
  34825. static="false" final="false" visibility="public"
  34826. deprecated="not deprecated">
  34827. <param name="configurationPrefix" type="java.lang.String"/>
  34828. <doc>
  34829. <![CDATA[Specifies the configuration prefix for the proxy user properties and
  34830. initializes the provider.
  34831. @param configurationPrefix the configuration prefix for the proxy user
  34832. properties]]>
  34833. </doc>
  34834. </method>
  34835. <method name="authorize"
  34836. abstract="false" native="false" synchronized="false"
  34837. static="false" final="false" visibility="public"
  34838. deprecated="not deprecated">
  34839. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  34840. <param name="remoteAddress" type="java.lang.String"/>
  34841. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  34842. <doc>
  34843. <![CDATA[Authorize the superuser which is doing doAs
  34844. @param user ugi of the effective or proxy user which contains a real user
  34845. @param remoteAddress the ip address of client
  34846. @throws AuthorizationException]]>
  34847. </doc>
  34848. </method>
  34849. </interface>
  34850. <!-- end interface org.apache.hadoop.security.authorize.ImpersonationProvider -->
  34851. </package>
  34852. <package name="org.apache.hadoop.security.http">
  34853. <!-- start class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  34854. <class name="RestCsrfPreventionFilter" extends="java.lang.Object"
  34855. abstract="false"
  34856. static="false" final="false" visibility="public"
  34857. deprecated="not deprecated">
  34858. <implements name="javax.servlet.Filter"/>
  34859. <constructor name="RestCsrfPreventionFilter"
  34860. static="false" final="false" visibility="public"
  34861. deprecated="not deprecated">
  34862. </constructor>
  34863. <method name="init"
  34864. abstract="false" native="false" synchronized="false"
  34865. static="false" final="false" visibility="public"
  34866. deprecated="not deprecated">
  34867. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  34868. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34869. </method>
  34870. <method name="isBrowser" return="boolean"
  34871. abstract="false" native="false" synchronized="false"
  34872. static="false" final="false" visibility="protected"
  34873. deprecated="not deprecated">
  34874. <param name="userAgent" type="java.lang.String"/>
  34875. <doc>
  34876. <![CDATA[This method interrogates the User-Agent String and returns whether it
  34877. refers to a browser. If its not a browser, then the requirement for the
  34878. CSRF header will not be enforced; if it is a browser, the requirement will
  34879. be enforced.
  34880. <p>
  34881. A User-Agent String is considered to be a browser if it matches
  34882. any of the regex patterns from browser-useragent-regex; the default
  34883. behavior is to consider everything a browser that matches the following:
  34884. "^Mozilla.*,^Opera.*". Subclasses can optionally override
  34885. this method to use different behavior.
  34886. @param userAgent The User-Agent String, or null if there isn't one
  34887. @return true if the User-Agent String refers to a browser, false if not]]>
  34888. </doc>
  34889. </method>
  34890. <method name="handleHttpInteraction"
  34891. abstract="false" native="false" synchronized="false"
  34892. static="false" final="false" visibility="public"
  34893. deprecated="not deprecated">
  34894. <param name="httpInteraction" type="org.apache.hadoop.security.http.RestCsrfPreventionFilter.HttpInteraction"/>
  34895. <exception name="IOException" type="java.io.IOException"/>
  34896. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34897. <doc>
  34898. <![CDATA[Handles an {@link HttpInteraction} by applying the filtering logic.
  34899. @param httpInteraction caller's HTTP interaction
  34900. @throws IOException if there is an I/O error
  34901. @throws ServletException if the implementation relies on the servlet API
  34902. and a servlet API call has failed]]>
  34903. </doc>
  34904. </method>
  34905. <method name="doFilter"
  34906. abstract="false" native="false" synchronized="false"
  34907. static="false" final="false" visibility="public"
  34908. deprecated="not deprecated">
  34909. <param name="request" type="javax.servlet.ServletRequest"/>
  34910. <param name="response" type="javax.servlet.ServletResponse"/>
  34911. <param name="chain" type="javax.servlet.FilterChain"/>
  34912. <exception name="IOException" type="java.io.IOException"/>
  34913. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34914. </method>
  34915. <method name="destroy"
  34916. abstract="false" native="false" synchronized="false"
  34917. static="false" final="false" visibility="public"
  34918. deprecated="not deprecated">
  34919. </method>
  34920. <method name="getFilterParams" return="java.util.Map"
  34921. abstract="false" native="false" synchronized="false"
  34922. static="true" final="false" visibility="public"
  34923. deprecated="not deprecated">
  34924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34925. <param name="confPrefix" type="java.lang.String"/>
  34926. <doc>
  34927. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  34928. initialization. The mapping includes all properties that start with the
  34929. specified configuration prefix. Property names in the mapping are trimmed
  34930. to remove the configuration prefix.
  34931. @param conf configuration to read
  34932. @param confPrefix configuration prefix
  34933. @return mapping of configuration properties to be used for filter
  34934. initialization]]>
  34935. </doc>
  34936. </method>
  34937. <field name="HEADER_USER_AGENT" type="java.lang.String"
  34938. transient="false" volatile="false"
  34939. static="true" final="true" visibility="public"
  34940. deprecated="not deprecated">
  34941. </field>
  34942. <field name="BROWSER_USER_AGENT_PARAM" type="java.lang.String"
  34943. transient="false" volatile="false"
  34944. static="true" final="true" visibility="public"
  34945. deprecated="not deprecated">
  34946. </field>
  34947. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  34948. transient="false" volatile="false"
  34949. static="true" final="true" visibility="public"
  34950. deprecated="not deprecated">
  34951. </field>
  34952. <field name="CUSTOM_METHODS_TO_IGNORE_PARAM" type="java.lang.String"
  34953. transient="false" volatile="false"
  34954. static="true" final="true" visibility="public"
  34955. deprecated="not deprecated">
  34956. </field>
  34957. <field name="HEADER_DEFAULT" type="java.lang.String"
  34958. transient="false" volatile="false"
  34959. static="true" final="true" visibility="public"
  34960. deprecated="not deprecated">
  34961. </field>
  34962. <doc>
  34963. <![CDATA[This filter provides protection against cross site request forgery (CSRF)
  34964. attacks for REST APIs. Enabling this filter on an endpoint results in the
  34965. requirement of all client to send a particular (configurable) HTTP header
  34966. with every request. In the absense of this header the filter will reject the
  34967. attempt as a bad request.]]>
  34968. </doc>
  34969. </class>
  34970. <!-- end class org.apache.hadoop.security.http.RestCsrfPreventionFilter -->
  34971. <!-- start class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  34972. <class name="XFrameOptionsFilter" extends="java.lang.Object"
  34973. abstract="false"
  34974. static="false" final="false" visibility="public"
  34975. deprecated="not deprecated">
  34976. <implements name="javax.servlet.Filter"/>
  34977. <constructor name="XFrameOptionsFilter"
  34978. static="false" final="false" visibility="public"
  34979. deprecated="not deprecated">
  34980. </constructor>
  34981. <method name="destroy"
  34982. abstract="false" native="false" synchronized="false"
  34983. static="false" final="false" visibility="public"
  34984. deprecated="not deprecated">
  34985. </method>
  34986. <method name="doFilter"
  34987. abstract="false" native="false" synchronized="false"
  34988. static="false" final="false" visibility="public"
  34989. deprecated="not deprecated">
  34990. <param name="req" type="javax.servlet.ServletRequest"/>
  34991. <param name="res" type="javax.servlet.ServletResponse"/>
  34992. <param name="chain" type="javax.servlet.FilterChain"/>
  34993. <exception name="IOException" type="java.io.IOException"/>
  34994. <exception name="ServletException" type="javax.servlet.ServletException"/>
  34995. </method>
  34996. <method name="init"
  34997. abstract="false" native="false" synchronized="false"
  34998. static="false" final="false" visibility="public"
  34999. deprecated="not deprecated">
  35000. <param name="config" type="javax.servlet.FilterConfig"/>
  35001. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35002. </method>
  35003. <method name="getFilterParams" return="java.util.Map"
  35004. abstract="false" native="false" synchronized="false"
  35005. static="true" final="false" visibility="public"
  35006. deprecated="not deprecated">
  35007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35008. <param name="confPrefix" type="java.lang.String"/>
  35009. <doc>
  35010. <![CDATA[Constructs a mapping of configuration properties to be used for filter
  35011. initialization. The mapping includes all properties that start with the
  35012. specified configuration prefix. Property names in the mapping are trimmed
  35013. to remove the configuration prefix.
  35014. @param conf configuration to read
  35015. @param confPrefix configuration prefix
  35016. @return mapping of configuration properties to be used for filter
  35017. initialization]]>
  35018. </doc>
  35019. </method>
  35020. <field name="X_FRAME_OPTIONS" type="java.lang.String"
  35021. transient="false" volatile="false"
  35022. static="true" final="true" visibility="public"
  35023. deprecated="not deprecated">
  35024. </field>
  35025. <field name="CUSTOM_HEADER_PARAM" type="java.lang.String"
  35026. transient="false" volatile="false"
  35027. static="true" final="true" visibility="public"
  35028. deprecated="not deprecated">
  35029. </field>
  35030. <doc>
  35031. <![CDATA[This filter protects webapps from clickjacking attacks that
  35032. are possible through use of Frames to embed the resources in another
  35033. application and intercept clicks to accomplish nefarious things.]]>
  35034. </doc>
  35035. </class>
  35036. <!-- end class org.apache.hadoop.security.http.XFrameOptionsFilter -->
  35037. </package>
  35038. <package name="org.apache.hadoop.security.protocolPB">
  35039. </package>
  35040. <package name="org.apache.hadoop.security.ssl">
  35041. </package>
  35042. <package name="org.apache.hadoop.security.token">
  35043. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  35044. <class name="SecretManager" extends="java.lang.Object"
  35045. abstract="true"
  35046. static="false" final="false" visibility="public"
  35047. deprecated="not deprecated">
  35048. <constructor name="SecretManager"
  35049. static="false" final="false" visibility="public"
  35050. deprecated="not deprecated">
  35051. </constructor>
  35052. <method name="createPassword" return="byte[]"
  35053. abstract="true" native="false" synchronized="false"
  35054. static="false" final="false" visibility="protected"
  35055. deprecated="not deprecated">
  35056. <param name="identifier" type="T"/>
  35057. <doc>
  35058. <![CDATA[Create the password for the given identifier.
  35059. identifier may be modified inside this method.
  35060. @param identifier the identifier to use
  35061. @return the new password]]>
  35062. </doc>
  35063. </method>
  35064. <method name="retrievePassword" return="byte[]"
  35065. abstract="true" native="false" synchronized="false"
  35066. static="false" final="false" visibility="public"
  35067. deprecated="not deprecated">
  35068. <param name="identifier" type="T"/>
  35069. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35070. <doc>
  35071. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  35072. or registry to make sure the token hasn't expired or been revoked. Returns
  35073. the relevant password.
  35074. @param identifier the identifier to validate
  35075. @return the password to use
  35076. @throws InvalidToken the token was invalid]]>
  35077. </doc>
  35078. </method>
  35079. <method name="retriableRetrievePassword" return="byte[]"
  35080. abstract="false" native="false" synchronized="false"
  35081. static="false" final="false" visibility="public"
  35082. deprecated="not deprecated">
  35083. <param name="identifier" type="T"/>
  35084. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  35085. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  35086. <exception name="RetriableException" type="org.apache.hadoop.ipc.RetriableException"/>
  35087. <exception name="IOException" type="java.io.IOException"/>
  35088. <doc>
  35089. <![CDATA[The same functionality with {@link #retrievePassword}, except that this
  35090. method can throw a {@link RetriableException} or a {@link StandbyException}
  35091. to indicate that client can retry/failover the same operation because of
  35092. temporary issue on the server side.
  35093. @param identifier the identifier to validate
  35094. @return the password to use
  35095. @throws InvalidToken the token was invalid
  35096. @throws StandbyException the server is in standby state, the client can
  35097. try other servers
  35098. @throws RetriableException the token was invalid, and the server thinks
  35099. this may be a temporary issue and suggests the client to retry
  35100. @throws IOException to allow future exceptions to be added without breaking
  35101. compatibility]]>
  35102. </doc>
  35103. </method>
  35104. <method name="createIdentifier" return="T"
  35105. abstract="true" native="false" synchronized="false"
  35106. static="false" final="false" visibility="public"
  35107. deprecated="not deprecated">
  35108. <doc>
  35109. <![CDATA[Create an empty token identifier.
  35110. @return the newly created empty token identifier]]>
  35111. </doc>
  35112. </method>
  35113. <method name="checkAvailableForRead"
  35114. abstract="false" native="false" synchronized="false"
  35115. static="false" final="false" visibility="public"
  35116. deprecated="not deprecated">
  35117. <exception name="StandbyException" type="org.apache.hadoop.ipc.StandbyException"/>
  35118. <doc>
  35119. <![CDATA[No-op if the secret manager is available for reading tokens, throw a
  35120. StandbyException otherwise.
  35121. @throws StandbyException if the secret manager is not available to read
  35122. tokens]]>
  35123. </doc>
  35124. </method>
  35125. <method name="generateSecret" return="javax.crypto.SecretKey"
  35126. abstract="false" native="false" synchronized="false"
  35127. static="false" final="false" visibility="protected"
  35128. deprecated="not deprecated">
  35129. <doc>
  35130. <![CDATA[Generate a new random secret key.
  35131. @return the new key]]>
  35132. </doc>
  35133. </method>
  35134. <method name="createPassword" return="byte[]"
  35135. abstract="false" native="false" synchronized="false"
  35136. static="true" final="false" visibility="public"
  35137. deprecated="not deprecated">
  35138. <param name="identifier" type="byte[]"/>
  35139. <param name="key" type="javax.crypto.SecretKey"/>
  35140. <doc>
  35141. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  35142. output as password
  35143. @param identifier the bytes of the identifier
  35144. @param key the secret key
  35145. @return the bytes of the generated password]]>
  35146. </doc>
  35147. </method>
  35148. <method name="createSecretKey" return="javax.crypto.SecretKey"
  35149. abstract="false" native="false" synchronized="false"
  35150. static="true" final="false" visibility="protected"
  35151. deprecated="not deprecated">
  35152. <param name="key" type="byte[]"/>
  35153. <doc>
  35154. <![CDATA[Convert the byte[] to a secret key
  35155. @param key the byte[] to create a secret key from
  35156. @return the secret key]]>
  35157. </doc>
  35158. </method>
  35159. <doc>
  35160. <![CDATA[The server-side secret manager for each token type.
  35161. @param <T> The type of the token identifier]]>
  35162. </doc>
  35163. </class>
  35164. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  35165. <!-- start class org.apache.hadoop.security.token.Token -->
  35166. <class name="Token" extends="java.lang.Object"
  35167. abstract="false"
  35168. static="false" final="false" visibility="public"
  35169. deprecated="not deprecated">
  35170. <implements name="org.apache.hadoop.io.Writable"/>
  35171. <constructor name="Token" type="T, org.apache.hadoop.security.token.SecretManager"
  35172. static="false" final="false" visibility="public"
  35173. deprecated="not deprecated">
  35174. <doc>
  35175. <![CDATA[Construct a token given a token identifier and a secret manager for the
  35176. type of the token identifier.
  35177. @param id the token identifier
  35178. @param mgr the secret manager]]>
  35179. </doc>
  35180. </constructor>
  35181. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  35182. static="false" final="false" visibility="public"
  35183. deprecated="not deprecated">
  35184. <doc>
  35185. <![CDATA[Construct a token from the components.
  35186. @param identifier the token identifier
  35187. @param password the token's password
  35188. @param kind the kind of token
  35189. @param service the service for this token]]>
  35190. </doc>
  35191. </constructor>
  35192. <constructor name="Token"
  35193. static="false" final="false" visibility="public"
  35194. deprecated="not deprecated">
  35195. <doc>
  35196. <![CDATA[Default constructor]]>
  35197. </doc>
  35198. </constructor>
  35199. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  35200. static="false" final="false" visibility="public"
  35201. deprecated="not deprecated">
  35202. <doc>
  35203. <![CDATA[Clone a token.
  35204. @param other the token to clone]]>
  35205. </doc>
  35206. </constructor>
  35207. <method name="getIdentifier" return="byte[]"
  35208. abstract="false" native="false" synchronized="false"
  35209. static="false" final="false" visibility="public"
  35210. deprecated="not deprecated">
  35211. <doc>
  35212. <![CDATA[Get the token identifier's byte representation
  35213. @return the token identifier's byte representation]]>
  35214. </doc>
  35215. </method>
  35216. <method name="decodeIdentifier" return="T"
  35217. abstract="false" native="false" synchronized="false"
  35218. static="false" final="false" visibility="public"
  35219. deprecated="not deprecated">
  35220. <exception name="IOException" type="java.io.IOException"/>
  35221. <doc>
  35222. <![CDATA[Get the token identifier object, or null if it could not be constructed
  35223. (because the class could not be loaded, for example).
  35224. @return the token identifier, or null
  35225. @throws IOException]]>
  35226. </doc>
  35227. </method>
  35228. <method name="getPassword" return="byte[]"
  35229. abstract="false" native="false" synchronized="false"
  35230. static="false" final="false" visibility="public"
  35231. deprecated="not deprecated">
  35232. <doc>
  35233. <![CDATA[Get the token password/secret
  35234. @return the token password/secret]]>
  35235. </doc>
  35236. </method>
  35237. <method name="getKind" return="org.apache.hadoop.io.Text"
  35238. abstract="false" native="false" synchronized="true"
  35239. static="false" final="false" visibility="public"
  35240. deprecated="not deprecated">
  35241. <doc>
  35242. <![CDATA[Get the token kind
  35243. @return the kind of the token]]>
  35244. </doc>
  35245. </method>
  35246. <method name="getService" return="org.apache.hadoop.io.Text"
  35247. abstract="false" native="false" synchronized="false"
  35248. static="false" final="false" visibility="public"
  35249. deprecated="not deprecated">
  35250. <doc>
  35251. <![CDATA[Get the service on which the token is supposed to be used
  35252. @return the service name]]>
  35253. </doc>
  35254. </method>
  35255. <method name="setService"
  35256. abstract="false" native="false" synchronized="false"
  35257. static="false" final="false" visibility="public"
  35258. deprecated="not deprecated">
  35259. <param name="newService" type="org.apache.hadoop.io.Text"/>
  35260. <doc>
  35261. <![CDATA[Set the service on which the token is supposed to be used
  35262. @param newService the service name]]>
  35263. </doc>
  35264. </method>
  35265. <method name="setID"
  35266. abstract="false" native="false" synchronized="false"
  35267. static="false" final="false" visibility="public"
  35268. deprecated="not deprecated">
  35269. <param name="bytes" type="byte[]"/>
  35270. </method>
  35271. <method name="setPassword"
  35272. abstract="false" native="false" synchronized="false"
  35273. static="false" final="false" visibility="public"
  35274. deprecated="not deprecated">
  35275. <param name="newPassword" type="byte[]"/>
  35276. </method>
  35277. <method name="isPrivate" return="boolean"
  35278. abstract="false" native="false" synchronized="false"
  35279. static="false" final="false" visibility="public"
  35280. deprecated="not deprecated">
  35281. <doc>
  35282. <![CDATA[Whether this is a private token.
  35283. @return false always for non-private tokens]]>
  35284. </doc>
  35285. </method>
  35286. <method name="isPrivateCloneOf" return="boolean"
  35287. abstract="false" native="false" synchronized="false"
  35288. static="false" final="false" visibility="public"
  35289. deprecated="not deprecated">
  35290. <param name="thePublicService" type="org.apache.hadoop.io.Text"/>
  35291. <doc>
  35292. <![CDATA[Whether this is a private clone of a public token.
  35293. @param thePublicService the public service name
  35294. @return false always for non-private tokens]]>
  35295. </doc>
  35296. </method>
  35297. <method name="privateClone" return="org.apache.hadoop.security.token.Token"
  35298. abstract="false" native="false" synchronized="false"
  35299. static="false" final="false" visibility="public"
  35300. deprecated="not deprecated">
  35301. <param name="newService" type="org.apache.hadoop.io.Text"/>
  35302. <doc>
  35303. <![CDATA[Create a private clone of a public token.
  35304. @param newService the new service name
  35305. @return a private token]]>
  35306. </doc>
  35307. </method>
  35308. <method name="readFields"
  35309. abstract="false" native="false" synchronized="false"
  35310. static="false" final="false" visibility="public"
  35311. deprecated="not deprecated">
  35312. <param name="in" type="java.io.DataInput"/>
  35313. <exception name="IOException" type="java.io.IOException"/>
  35314. </method>
  35315. <method name="write"
  35316. abstract="false" native="false" synchronized="false"
  35317. static="false" final="false" visibility="public"
  35318. deprecated="not deprecated">
  35319. <param name="out" type="java.io.DataOutput"/>
  35320. <exception name="IOException" type="java.io.IOException"/>
  35321. </method>
  35322. <method name="encodeToUrlString" return="java.lang.String"
  35323. abstract="false" native="false" synchronized="false"
  35324. static="false" final="false" visibility="public"
  35325. deprecated="not deprecated">
  35326. <exception name="IOException" type="java.io.IOException"/>
  35327. <doc>
  35328. <![CDATA[Encode this token as a url safe string
  35329. @return the encoded string
  35330. @throws IOException]]>
  35331. </doc>
  35332. </method>
  35333. <method name="decodeFromUrlString"
  35334. abstract="false" native="false" synchronized="false"
  35335. static="false" final="false" visibility="public"
  35336. deprecated="not deprecated">
  35337. <param name="newValue" type="java.lang.String"/>
  35338. <exception name="IOException" type="java.io.IOException"/>
  35339. <doc>
  35340. <![CDATA[Decode the given url safe string into this token.
  35341. @param newValue the encoded string
  35342. @throws IOException]]>
  35343. </doc>
  35344. </method>
  35345. <method name="equals" return="boolean"
  35346. abstract="false" native="false" synchronized="false"
  35347. static="false" final="false" visibility="public"
  35348. deprecated="not deprecated">
  35349. <param name="right" type="java.lang.Object"/>
  35350. </method>
  35351. <method name="hashCode" return="int"
  35352. abstract="false" native="false" synchronized="false"
  35353. static="false" final="false" visibility="public"
  35354. deprecated="not deprecated">
  35355. </method>
  35356. <method name="toString" return="java.lang.String"
  35357. abstract="false" native="false" synchronized="false"
  35358. static="false" final="false" visibility="public"
  35359. deprecated="not deprecated">
  35360. </method>
  35361. <method name="buildCacheKey" return="java.lang.String"
  35362. abstract="false" native="false" synchronized="false"
  35363. static="false" final="false" visibility="public"
  35364. deprecated="not deprecated">
  35365. </method>
  35366. <method name="isManaged" return="boolean"
  35367. abstract="false" native="false" synchronized="false"
  35368. static="false" final="false" visibility="public"
  35369. deprecated="not deprecated">
  35370. <exception name="IOException" type="java.io.IOException"/>
  35371. <doc>
  35372. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  35373. @return true, if it can be renewed and cancelled.]]>
  35374. </doc>
  35375. </method>
  35376. <method name="renew" return="long"
  35377. abstract="false" native="false" synchronized="false"
  35378. static="false" final="false" visibility="public"
  35379. deprecated="not deprecated">
  35380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35381. <exception name="IOException" type="java.io.IOException"/>
  35382. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35383. <doc>
  35384. <![CDATA[Renew this delegation token
  35385. @return the new expiration time
  35386. @throws IOException
  35387. @throws InterruptedException]]>
  35388. </doc>
  35389. </method>
  35390. <method name="cancel"
  35391. abstract="false" native="false" synchronized="false"
  35392. static="false" final="false" visibility="public"
  35393. deprecated="not deprecated">
  35394. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35395. <exception name="IOException" type="java.io.IOException"/>
  35396. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35397. <doc>
  35398. <![CDATA[Cancel this delegation token
  35399. @throws IOException
  35400. @throws InterruptedException]]>
  35401. </doc>
  35402. </method>
  35403. <field name="LOG" type="org.slf4j.Logger"
  35404. transient="false" volatile="false"
  35405. static="true" final="true" visibility="public"
  35406. deprecated="not deprecated">
  35407. </field>
  35408. <doc>
  35409. <![CDATA[The client-side form of the token.]]>
  35410. </doc>
  35411. </class>
  35412. <!-- end class org.apache.hadoop.security.token.Token -->
  35413. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  35414. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  35415. abstract="false"
  35416. static="true" final="false" visibility="public"
  35417. deprecated="not deprecated">
  35418. <constructor name="Token.TrivialRenewer"
  35419. static="false" final="false" visibility="public"
  35420. deprecated="not deprecated">
  35421. </constructor>
  35422. <method name="getKind" return="org.apache.hadoop.io.Text"
  35423. abstract="false" native="false" synchronized="false"
  35424. static="false" final="false" visibility="protected"
  35425. deprecated="not deprecated">
  35426. </method>
  35427. <method name="handleKind" return="boolean"
  35428. abstract="false" native="false" synchronized="false"
  35429. static="false" final="false" visibility="public"
  35430. deprecated="not deprecated">
  35431. <param name="kind" type="org.apache.hadoop.io.Text"/>
  35432. </method>
  35433. <method name="isManaged" return="boolean"
  35434. abstract="false" native="false" synchronized="false"
  35435. static="false" final="false" visibility="public"
  35436. deprecated="not deprecated">
  35437. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35438. </method>
  35439. <method name="renew" return="long"
  35440. abstract="false" native="false" synchronized="false"
  35441. static="false" final="false" visibility="public"
  35442. deprecated="not deprecated">
  35443. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35445. </method>
  35446. <method name="cancel"
  35447. abstract="false" native="false" synchronized="false"
  35448. static="false" final="false" visibility="public"
  35449. deprecated="not deprecated">
  35450. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35452. <exception name="IOException" type="java.io.IOException"/>
  35453. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35454. </method>
  35455. <doc>
  35456. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  35457. to implement getKind for their token kind.]]>
  35458. </doc>
  35459. </class>
  35460. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  35461. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  35462. <class name="TokenIdentifier" extends="java.lang.Object"
  35463. abstract="true"
  35464. static="false" final="false" visibility="public"
  35465. deprecated="not deprecated">
  35466. <implements name="org.apache.hadoop.io.Writable"/>
  35467. <constructor name="TokenIdentifier"
  35468. static="false" final="false" visibility="public"
  35469. deprecated="not deprecated">
  35470. </constructor>
  35471. <method name="getKind" return="org.apache.hadoop.io.Text"
  35472. abstract="true" native="false" synchronized="false"
  35473. static="false" final="false" visibility="public"
  35474. deprecated="not deprecated">
  35475. <doc>
  35476. <![CDATA[Get the token kind
  35477. @return the kind of the token]]>
  35478. </doc>
  35479. </method>
  35480. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  35481. abstract="true" native="false" synchronized="false"
  35482. static="false" final="false" visibility="public"
  35483. deprecated="not deprecated">
  35484. <doc>
  35485. <![CDATA[Get the Ugi with the username encoded in the token identifier
  35486. @return the username. null is returned if username in the identifier is
  35487. empty or null.]]>
  35488. </doc>
  35489. </method>
  35490. <method name="getBytes" return="byte[]"
  35491. abstract="false" native="false" synchronized="false"
  35492. static="false" final="false" visibility="public"
  35493. deprecated="not deprecated">
  35494. <doc>
  35495. <![CDATA[Get the bytes for the token identifier
  35496. @return the bytes of the identifier]]>
  35497. </doc>
  35498. </method>
  35499. <method name="getTrackingId" return="java.lang.String"
  35500. abstract="false" native="false" synchronized="false"
  35501. static="false" final="false" visibility="public"
  35502. deprecated="not deprecated">
  35503. <doc>
  35504. <![CDATA[Returns a tracking identifier that can be used to associate usages of a
  35505. token across multiple client sessions.
  35506. Currently, this function just returns an MD5 of {{@link #getBytes()}.
  35507. @return tracking identifier]]>
  35508. </doc>
  35509. </method>
  35510. <doc>
  35511. <![CDATA[An identifier that identifies a token, may contain public information
  35512. about a token, including its kind (or type).]]>
  35513. </doc>
  35514. </class>
  35515. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  35516. <!-- start class org.apache.hadoop.security.token.TokenInfo -->
  35517. <class name="TokenInfo" abstract="true"
  35518. static="false" final="false" visibility="public"
  35519. deprecated="not deprecated">
  35520. <implements name="java.lang.annotation.Annotation"/>
  35521. <doc>
  35522. <![CDATA[Indicates Token related information to be used]]>
  35523. </doc>
  35524. </class>
  35525. <!-- end class org.apache.hadoop.security.token.TokenInfo -->
  35526. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  35527. <class name="TokenRenewer" extends="java.lang.Object"
  35528. abstract="true"
  35529. static="false" final="false" visibility="public"
  35530. deprecated="not deprecated">
  35531. <constructor name="TokenRenewer"
  35532. static="false" final="false" visibility="public"
  35533. deprecated="not deprecated">
  35534. </constructor>
  35535. <method name="handleKind" return="boolean"
  35536. abstract="true" native="false" synchronized="false"
  35537. static="false" final="false" visibility="public"
  35538. deprecated="not deprecated">
  35539. <param name="kind" type="org.apache.hadoop.io.Text"/>
  35540. <doc>
  35541. <![CDATA[Does this renewer handle this kind of token?
  35542. @param kind the kind of the token
  35543. @return true if this renewer can renew it]]>
  35544. </doc>
  35545. </method>
  35546. <method name="isManaged" return="boolean"
  35547. abstract="true" native="false" synchronized="false"
  35548. static="false" final="false" visibility="public"
  35549. deprecated="not deprecated">
  35550. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35551. <exception name="IOException" type="java.io.IOException"/>
  35552. <doc>
  35553. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  35554. cancelled.
  35555. @param token the token being checked
  35556. @return true if the token may be renewed or cancelled
  35557. @throws IOException]]>
  35558. </doc>
  35559. </method>
  35560. <method name="renew" return="long"
  35561. abstract="true" native="false" synchronized="false"
  35562. static="false" final="false" visibility="public"
  35563. deprecated="not deprecated">
  35564. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35565. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35566. <exception name="IOException" type="java.io.IOException"/>
  35567. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35568. <doc>
  35569. <![CDATA[Renew the given token.
  35570. @return the new expiration time
  35571. @throws IOException
  35572. @throws InterruptedException]]>
  35573. </doc>
  35574. </method>
  35575. <method name="cancel"
  35576. abstract="true" native="false" synchronized="false"
  35577. static="false" final="false" visibility="public"
  35578. deprecated="not deprecated">
  35579. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  35580. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35581. <exception name="IOException" type="java.io.IOException"/>
  35582. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35583. <doc>
  35584. <![CDATA[Cancel the given token
  35585. @throws IOException
  35586. @throws InterruptedException]]>
  35587. </doc>
  35588. </method>
  35589. <doc>
  35590. <![CDATA[This is the interface for plugins that handle tokens.]]>
  35591. </doc>
  35592. </class>
  35593. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  35594. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  35595. <interface name="TokenSelector" abstract="true"
  35596. static="false" final="false" visibility="public"
  35597. deprecated="not deprecated">
  35598. <method name="selectToken" 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="service" type="org.apache.hadoop.io.Text"/>
  35603. <param name="tokens" type="java.util.Collection"/>
  35604. </method>
  35605. <doc>
  35606. <![CDATA[Select token of type T from tokens for use with named service
  35607. @param <T>
  35608. T extends TokenIdentifier]]>
  35609. </doc>
  35610. </interface>
  35611. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  35612. </package>
  35613. <package name="org.apache.hadoop.security.token.delegation.web">
  35614. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  35615. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  35616. abstract="false"
  35617. static="false" final="false" visibility="public"
  35618. deprecated="not deprecated">
  35619. <constructor name="DelegationTokenAuthenticatedURL"
  35620. static="false" final="false" visibility="public"
  35621. deprecated="not deprecated">
  35622. <doc>
  35623. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  35624. <p/>
  35625. An instance of the default {@link DelegationTokenAuthenticator} will be
  35626. used.]]>
  35627. </doc>
  35628. </constructor>
  35629. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  35630. static="false" final="false" visibility="public"
  35631. deprecated="not deprecated">
  35632. <doc>
  35633. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  35634. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  35635. use, if <code>null</code> the default one will be used.]]>
  35636. </doc>
  35637. </constructor>
  35638. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  35639. static="false" final="false" visibility="public"
  35640. deprecated="not deprecated">
  35641. <doc>
  35642. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  35643. {@link DelegationTokenAuthenticator} class.
  35644. @param connConfigurator a connection configurator.]]>
  35645. </doc>
  35646. </constructor>
  35647. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  35648. static="false" final="false" visibility="public"
  35649. deprecated="not deprecated">
  35650. <doc>
  35651. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  35652. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  35653. use, if <code>null</code> the default one will be used.
  35654. @param connConfigurator a connection configurator.]]>
  35655. </doc>
  35656. </constructor>
  35657. <method name="setDefaultDelegationTokenAuthenticator"
  35658. abstract="false" native="false" synchronized="false"
  35659. static="true" final="false" visibility="public"
  35660. deprecated="not deprecated">
  35661. <param name="authenticator" type="java.lang.Class"/>
  35662. <doc>
  35663. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  35664. {@link DelegationTokenAuthenticatedURL} instance is created without
  35665. specifying one.
  35666. The default class is {@link KerberosDelegationTokenAuthenticator}
  35667. @param authenticator the authenticator class to use as default.]]>
  35668. </doc>
  35669. </method>
  35670. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  35671. abstract="false" native="false" synchronized="false"
  35672. static="true" final="false" visibility="public"
  35673. deprecated="not deprecated">
  35674. <doc>
  35675. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  35676. an {@link DelegationTokenAuthenticatedURL} instance is created without
  35677. specifying one.
  35678. <p/>
  35679. The default class is {@link KerberosDelegationTokenAuthenticator}
  35680. @return the delegation token authenticator class to use as default.]]>
  35681. </doc>
  35682. </method>
  35683. <method name="setUseQueryStringForDelegationToken"
  35684. abstract="false" native="false" synchronized="false"
  35685. static="false" final="false" visibility="protected"
  35686. deprecated="not deprecated">
  35687. <param name="useQueryString" type="boolean"/>
  35688. <doc>
  35689. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  35690. By default it is transmitted using the
  35691. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  35692. <p/>
  35693. This method is provided to enable WebHDFS backwards compatibility.
  35694. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  35695. URL query string, <code>FALSE</code> if the delegation token is transmitted
  35696. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  35697. header.]]>
  35698. </doc>
  35699. </method>
  35700. <method name="useQueryStringForDelegationToken" return="boolean"
  35701. abstract="false" native="false" synchronized="false"
  35702. static="false" final="false" visibility="public"
  35703. deprecated="not deprecated">
  35704. <doc>
  35705. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  35706. @return <code>TRUE</code> if the token is transmitted in the URL query
  35707. string, <code>FALSE</code> if the delegation token is transmitted using the
  35708. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  35709. </doc>
  35710. </method>
  35711. <method name="openConnection" return="java.net.HttpURLConnection"
  35712. abstract="false" native="false" synchronized="false"
  35713. static="false" final="false" visibility="public"
  35714. deprecated="not deprecated">
  35715. <param name="url" type="java.net.URL"/>
  35716. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35717. <exception name="IOException" type="java.io.IOException"/>
  35718. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35719. <doc>
  35720. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  35721. Token only if the given auth token is an instance of {@link Token} and
  35722. it contains a Delegation Token, otherwise use the configured
  35723. {@link DelegationTokenAuthenticator} to authenticate the connection.
  35724. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35725. @param token the authentication token being used for the user.
  35726. @return an authenticated {@link HttpURLConnection}.
  35727. @throws IOException if an IO error occurred.
  35728. @throws AuthenticationException if an authentication exception occurred.]]>
  35729. </doc>
  35730. </method>
  35731. <method name="openConnection" return="java.net.HttpURLConnection"
  35732. abstract="false" native="false" synchronized="false"
  35733. static="false" final="false" visibility="public"
  35734. deprecated="not deprecated">
  35735. <param name="url" type="java.net.URL"/>
  35736. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35737. <exception name="IOException" type="java.io.IOException"/>
  35738. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35739. <doc>
  35740. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  35741. Token is present, it will be used taking precedence over the configured
  35742. <code>Authenticator</code>.
  35743. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35744. @param token the authentication token being used for the user.
  35745. @return an authenticated {@link HttpURLConnection}.
  35746. @throws IOException if an IO error occurred.
  35747. @throws AuthenticationException if an authentication exception occurred.]]>
  35748. </doc>
  35749. </method>
  35750. <method name="openConnection" return="java.net.HttpURLConnection"
  35751. abstract="false" native="false" synchronized="false"
  35752. static="false" final="false" visibility="public"
  35753. deprecated="not deprecated">
  35754. <param name="url" type="java.net.URL"/>
  35755. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35756. <param name="doAs" type="java.lang.String"/>
  35757. <exception name="IOException" type="java.io.IOException"/>
  35758. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35759. <doc>
  35760. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  35761. Token is present, it will be used taking precedence over the configured
  35762. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  35763. the request will be done on behalf of the specified <code>doAs</code> user.
  35764. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35765. @param token the authentication token being used for the user.
  35766. @param doAs user to do the the request on behalf of, if NULL the request is
  35767. as self.
  35768. @return an authenticated {@link HttpURLConnection}.
  35769. @throws IOException if an IO error occurred.
  35770. @throws AuthenticationException if an authentication exception occurred.]]>
  35771. </doc>
  35772. </method>
  35773. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35774. abstract="false" native="false" synchronized="false"
  35775. static="false" final="false" visibility="public"
  35776. deprecated="not deprecated">
  35777. <param name="url" type="java.net.URL"/>
  35778. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35779. <param name="renewer" type="java.lang.String"/>
  35780. <exception name="IOException" type="java.io.IOException"/>
  35781. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35782. <doc>
  35783. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35784. for authentication.
  35785. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35786. supported.
  35787. @param token the authentication token being used for the user where the
  35788. Delegation token will be stored.
  35789. @param renewer the renewer user.
  35790. @return a delegation token.
  35791. @throws IOException if an IO error occurred.
  35792. @throws AuthenticationException if an authentication exception occurred.]]>
  35793. </doc>
  35794. </method>
  35795. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35796. abstract="false" native="false" synchronized="false"
  35797. static="false" final="false" visibility="public"
  35798. deprecated="not deprecated">
  35799. <param name="url" type="java.net.URL"/>
  35800. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35801. <param name="renewer" type="java.lang.String"/>
  35802. <param name="doAsUser" type="java.lang.String"/>
  35803. <exception name="IOException" type="java.io.IOException"/>
  35804. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35805. <doc>
  35806. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35807. for authentication.
  35808. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35809. supported.
  35810. @param token the authentication token being used for the user where the
  35811. Delegation token will be stored.
  35812. @param renewer the renewer user.
  35813. @param doAsUser the user to do as, which will be the token owner.
  35814. @return a delegation token.
  35815. @throws IOException if an IO error occurred.
  35816. @throws AuthenticationException if an authentication exception occurred.]]>
  35817. </doc>
  35818. </method>
  35819. <method name="renewDelegationToken" return="long"
  35820. abstract="false" native="false" synchronized="false"
  35821. static="false" final="false" visibility="public"
  35822. deprecated="not deprecated">
  35823. <param name="url" type="java.net.URL"/>
  35824. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35825. <exception name="IOException" type="java.io.IOException"/>
  35826. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35827. <doc>
  35828. <![CDATA[Renews a delegation token from the server end-point using the
  35829. configured <code>Authenticator</code> for authentication.
  35830. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35831. supported.
  35832. @param token the authentication token with the Delegation Token to renew.
  35833. @throws IOException if an IO error occurred.
  35834. @throws AuthenticationException if an authentication exception occurred.]]>
  35835. </doc>
  35836. </method>
  35837. <method name="renewDelegationToken" return="long"
  35838. abstract="false" native="false" synchronized="false"
  35839. static="false" final="false" visibility="public"
  35840. deprecated="not deprecated">
  35841. <param name="url" type="java.net.URL"/>
  35842. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35843. <param name="doAsUser" type="java.lang.String"/>
  35844. <exception name="IOException" type="java.io.IOException"/>
  35845. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35846. <doc>
  35847. <![CDATA[Renews a delegation token from the server end-point using the
  35848. configured <code>Authenticator</code> for authentication.
  35849. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  35850. supported.
  35851. @param token the authentication token with the Delegation Token to renew.
  35852. @param doAsUser the user to do as, which will be the token owner.
  35853. @throws IOException if an IO error occurred.
  35854. @throws AuthenticationException if an authentication exception occurred.]]>
  35855. </doc>
  35856. </method>
  35857. <method name="cancelDelegationToken"
  35858. abstract="false" native="false" synchronized="false"
  35859. static="false" final="false" visibility="public"
  35860. deprecated="not deprecated">
  35861. <param name="url" type="java.net.URL"/>
  35862. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35863. <exception name="IOException" type="java.io.IOException"/>
  35864. <doc>
  35865. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35866. being authenticated by the configured <code>Authenticator</code>.
  35867. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35868. are supported.
  35869. @param token the authentication token with the Delegation Token to cancel.
  35870. @throws IOException if an IO error occurred.]]>
  35871. </doc>
  35872. </method>
  35873. <method name="cancelDelegationToken"
  35874. abstract="false" native="false" synchronized="false"
  35875. static="false" final="false" visibility="public"
  35876. deprecated="not deprecated">
  35877. <param name="url" type="java.net.URL"/>
  35878. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  35879. <param name="doAsUser" type="java.lang.String"/>
  35880. <exception name="IOException" type="java.io.IOException"/>
  35881. <doc>
  35882. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  35883. being authenticated by the configured <code>Authenticator</code>.
  35884. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  35885. are supported.
  35886. @param token the authentication token with the Delegation Token to cancel.
  35887. @param doAsUser the user to do as, which will be the token owner.
  35888. @throws IOException if an IO error occurred.]]>
  35889. </doc>
  35890. </method>
  35891. <doc>
  35892. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  35893. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  35894. functionality.
  35895. <p/>
  35896. The authentication mechanisms supported by default are Hadoop Simple
  35897. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  35898. authentication.
  35899. <p/>
  35900. Additional authentication mechanisms can be supported via {@link
  35901. DelegationTokenAuthenticator} implementations.
  35902. <p/>
  35903. The default {@link DelegationTokenAuthenticator} is the {@link
  35904. KerberosDelegationTokenAuthenticator} class which supports
  35905. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  35906. the {@link PseudoDelegationTokenAuthenticator} class.
  35907. <p/>
  35908. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  35909. </doc>
  35910. </class>
  35911. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  35912. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  35913. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  35914. abstract="false"
  35915. static="true" final="false" visibility="public"
  35916. deprecated="not deprecated">
  35917. <constructor name="DelegationTokenAuthenticatedURL.Token"
  35918. static="false" final="false" visibility="public"
  35919. deprecated="not deprecated">
  35920. </constructor>
  35921. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35922. abstract="false" native="false" synchronized="false"
  35923. static="false" final="false" visibility="public"
  35924. deprecated="not deprecated">
  35925. </method>
  35926. <method name="setDelegationToken"
  35927. abstract="false" native="false" synchronized="false"
  35928. static="false" final="false" visibility="public"
  35929. deprecated="not deprecated">
  35930. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  35931. </method>
  35932. <doc>
  35933. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  35934. </doc>
  35935. </class>
  35936. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  35937. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  35938. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  35939. abstract="true"
  35940. static="false" final="false" visibility="public"
  35941. deprecated="not deprecated">
  35942. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35943. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35944. static="false" final="false" visibility="public"
  35945. deprecated="not deprecated">
  35946. </constructor>
  35947. <method name="setConnectionConfigurator"
  35948. abstract="false" native="false" synchronized="false"
  35949. static="false" final="false" visibility="public"
  35950. deprecated="not deprecated">
  35951. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  35952. </method>
  35953. <method name="authenticate"
  35954. abstract="false" native="false" synchronized="false"
  35955. static="false" final="false" visibility="public"
  35956. deprecated="not deprecated">
  35957. <param name="url" type="java.net.URL"/>
  35958. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35959. <exception name="IOException" type="java.io.IOException"/>
  35960. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35961. </method>
  35962. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35963. abstract="false" native="false" synchronized="false"
  35964. static="false" final="false" visibility="public"
  35965. deprecated="not deprecated">
  35966. <param name="url" type="java.net.URL"/>
  35967. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35968. <param name="renewer" type="java.lang.String"/>
  35969. <exception name="IOException" type="java.io.IOException"/>
  35970. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35971. <doc>
  35972. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35973. for authentication.
  35974. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35975. supported.
  35976. @param token the authentication token being used for the user where the
  35977. Delegation token will be stored.
  35978. @param renewer the renewer user.
  35979. @throws IOException if an IO error occurred.
  35980. @throws AuthenticationException if an authentication exception occurred.]]>
  35981. </doc>
  35982. </method>
  35983. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  35984. abstract="false" native="false" synchronized="false"
  35985. static="false" final="false" visibility="public"
  35986. deprecated="not deprecated">
  35987. <param name="url" type="java.net.URL"/>
  35988. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35989. <param name="renewer" type="java.lang.String"/>
  35990. <param name="doAsUser" type="java.lang.String"/>
  35991. <exception name="IOException" type="java.io.IOException"/>
  35992. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35993. <doc>
  35994. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  35995. for authentication.
  35996. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  35997. supported.
  35998. @param token the authentication token being used for the user where the
  35999. Delegation token will be stored.
  36000. @param renewer the renewer user.
  36001. @param doAsUser the user to do as, which will be the token owner.
  36002. @throws IOException if an IO error occurred.
  36003. @throws AuthenticationException if an authentication exception occurred.]]>
  36004. </doc>
  36005. </method>
  36006. <method name="renewDelegationToken" return="long"
  36007. abstract="false" native="false" synchronized="false"
  36008. static="false" final="false" visibility="public"
  36009. deprecated="not deprecated">
  36010. <param name="url" type="java.net.URL"/>
  36011. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36012. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  36013. <exception name="IOException" type="java.io.IOException"/>
  36014. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36015. <doc>
  36016. <![CDATA[Renews a delegation token from the server end-point using the
  36017. configured <code>Authenticator</code> for authentication.
  36018. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  36019. supported.
  36020. @param token the authentication token with the Delegation Token to renew.
  36021. @throws IOException if an IO error occurred.
  36022. @throws AuthenticationException if an authentication exception occurred.]]>
  36023. </doc>
  36024. </method>
  36025. <method name="renewDelegationToken" return="long"
  36026. abstract="false" native="false" synchronized="false"
  36027. static="false" final="false" visibility="public"
  36028. deprecated="not deprecated">
  36029. <param name="url" type="java.net.URL"/>
  36030. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36031. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  36032. <param name="doAsUser" type="java.lang.String"/>
  36033. <exception name="IOException" type="java.io.IOException"/>
  36034. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36035. <doc>
  36036. <![CDATA[Renews a delegation token from the server end-point using the
  36037. configured <code>Authenticator</code> for authentication.
  36038. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  36039. supported.
  36040. @param token the authentication token with the Delegation Token to renew.
  36041. @param doAsUser the user to do as, which will be the token owner.
  36042. @throws IOException if an IO error occurred.
  36043. @throws AuthenticationException if an authentication exception occurred.]]>
  36044. </doc>
  36045. </method>
  36046. <method name="cancelDelegationToken"
  36047. abstract="false" native="false" synchronized="false"
  36048. static="false" final="false" visibility="public"
  36049. deprecated="not deprecated">
  36050. <param name="url" type="java.net.URL"/>
  36051. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36052. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  36053. <exception name="IOException" type="java.io.IOException"/>
  36054. <doc>
  36055. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  36056. being authenticated by the configured <code>Authenticator</code>.
  36057. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  36058. are supported.
  36059. @param token the authentication token with the Delegation Token to cancel.
  36060. @throws IOException if an IO error occurred.]]>
  36061. </doc>
  36062. </method>
  36063. <method name="cancelDelegationToken"
  36064. abstract="false" native="false" synchronized="false"
  36065. static="false" final="false" visibility="public"
  36066. deprecated="not deprecated">
  36067. <param name="url" type="java.net.URL"/>
  36068. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  36069. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  36070. <param name="doAsUser" type="java.lang.String"/>
  36071. <exception name="IOException" type="java.io.IOException"/>
  36072. <doc>
  36073. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  36074. being authenticated by the configured <code>Authenticator</code>.
  36075. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  36076. are supported.
  36077. @param token the authentication token with the Delegation Token to cancel.
  36078. @param doAsUser the user to do as, which will be the token owner.
  36079. @throws IOException if an IO error occurred.]]>
  36080. </doc>
  36081. </method>
  36082. <field name="OP_PARAM" type="java.lang.String"
  36083. transient="false" volatile="false"
  36084. static="true" final="true" visibility="public"
  36085. deprecated="not deprecated">
  36086. </field>
  36087. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  36088. transient="false" volatile="false"
  36089. static="true" final="true" visibility="public"
  36090. deprecated="not deprecated">
  36091. </field>
  36092. <field name="DELEGATION_PARAM" type="java.lang.String"
  36093. transient="false" volatile="false"
  36094. static="true" final="true" visibility="public"
  36095. deprecated="not deprecated">
  36096. </field>
  36097. <field name="TOKEN_PARAM" type="java.lang.String"
  36098. transient="false" volatile="false"
  36099. static="true" final="true" visibility="public"
  36100. deprecated="not deprecated">
  36101. </field>
  36102. <field name="RENEWER_PARAM" type="java.lang.String"
  36103. transient="false" volatile="false"
  36104. static="true" final="true" visibility="public"
  36105. deprecated="not deprecated">
  36106. </field>
  36107. <field name="SERVICE_PARAM" type="java.lang.String"
  36108. transient="false" volatile="false"
  36109. static="true" final="true" visibility="public"
  36110. deprecated="not deprecated">
  36111. </field>
  36112. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  36113. transient="false" volatile="false"
  36114. static="true" final="true" visibility="public"
  36115. deprecated="not deprecated">
  36116. </field>
  36117. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  36118. transient="false" volatile="false"
  36119. static="true" final="true" visibility="public"
  36120. deprecated="not deprecated">
  36121. </field>
  36122. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  36123. transient="false" volatile="false"
  36124. static="true" final="true" visibility="public"
  36125. deprecated="not deprecated">
  36126. </field>
  36127. <doc>
  36128. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  36129. Delegation Token support.]]>
  36130. </doc>
  36131. </class>
  36132. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  36133. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  36134. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  36135. abstract="false"
  36136. static="false" final="false" visibility="public"
  36137. deprecated="not deprecated">
  36138. <constructor name="KerberosDelegationTokenAuthenticator"
  36139. static="false" final="false" visibility="public"
  36140. deprecated="not deprecated">
  36141. </constructor>
  36142. <doc>
  36143. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  36144. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  36145. Token operations.
  36146. <p/>
  36147. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  36148. endpoint does not trigger a SPNEGO authentication]]>
  36149. </doc>
  36150. </class>
  36151. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  36152. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  36153. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  36154. abstract="false"
  36155. static="false" final="false" visibility="public"
  36156. deprecated="not deprecated">
  36157. <constructor name="PseudoDelegationTokenAuthenticator"
  36158. static="false" final="false" visibility="public"
  36159. deprecated="not deprecated">
  36160. </constructor>
  36161. <doc>
  36162. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  36163. Hadoop's pseudo authentication mechanism that accepts
  36164. the user name specified as a query string parameter and support for Hadoop
  36165. Delegation Token operations.
  36166. <p/>
  36167. This mimics the model of Hadoop Simple authentication trusting the
  36168. {@link UserGroupInformation#getCurrentUser()} value.]]>
  36169. </doc>
  36170. </class>
  36171. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  36172. </package>
  36173. <package name="org.apache.hadoop.service">
  36174. <!-- start class org.apache.hadoop.service.AbstractService -->
  36175. <class name="AbstractService" extends="java.lang.Object"
  36176. abstract="true"
  36177. static="false" final="false" visibility="public"
  36178. deprecated="not deprecated">
  36179. <implements name="org.apache.hadoop.service.Service"/>
  36180. <constructor name="AbstractService" type="java.lang.String"
  36181. static="false" final="false" visibility="public"
  36182. deprecated="not deprecated">
  36183. <doc>
  36184. <![CDATA[Construct the service.
  36185. @param name service name]]>
  36186. </doc>
  36187. </constructor>
  36188. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  36189. abstract="false" native="false" synchronized="false"
  36190. static="false" final="true" visibility="public"
  36191. deprecated="not deprecated">
  36192. </method>
  36193. <method name="getFailureCause" return="java.lang.Throwable"
  36194. abstract="false" native="false" synchronized="true"
  36195. static="false" final="true" visibility="public"
  36196. deprecated="not deprecated">
  36197. </method>
  36198. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  36199. abstract="false" native="false" synchronized="true"
  36200. static="false" final="false" visibility="public"
  36201. deprecated="not deprecated">
  36202. </method>
  36203. <method name="setConfig"
  36204. abstract="false" native="false" synchronized="false"
  36205. static="false" final="false" visibility="protected"
  36206. deprecated="not deprecated">
  36207. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36208. <doc>
  36209. <![CDATA[Set the configuration for this service.
  36210. This method is called during {@link #init(Configuration)}
  36211. and should only be needed if for some reason a service implementation
  36212. needs to override that initial setting -for example replacing
  36213. it with a new subclass of {@link Configuration}
  36214. @param conf new configuration.]]>
  36215. </doc>
  36216. </method>
  36217. <method name="init"
  36218. abstract="false" native="false" synchronized="false"
  36219. static="false" final="false" visibility="public"
  36220. deprecated="not deprecated">
  36221. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36222. <doc>
  36223. <![CDATA[{@inheritDoc}
  36224. This invokes {@link #serviceInit}
  36225. @param conf the configuration of the service. This must not be null
  36226. @throws ServiceStateException if the configuration was null,
  36227. the state change not permitted, or something else went wrong]]>
  36228. </doc>
  36229. </method>
  36230. <method name="start"
  36231. abstract="false" native="false" synchronized="false"
  36232. static="false" final="false" visibility="public"
  36233. deprecated="not deprecated">
  36234. <doc>
  36235. <![CDATA[{@inheritDoc}
  36236. @throws ServiceStateException if the current service state does not permit
  36237. this action]]>
  36238. </doc>
  36239. </method>
  36240. <method name="stop"
  36241. abstract="false" native="false" synchronized="false"
  36242. static="false" final="false" visibility="public"
  36243. deprecated="not deprecated">
  36244. <doc>
  36245. <![CDATA[{@inheritDoc}]]>
  36246. </doc>
  36247. </method>
  36248. <method name="close"
  36249. abstract="false" native="false" synchronized="false"
  36250. static="false" final="true" visibility="public"
  36251. deprecated="not deprecated">
  36252. <exception name="IOException" type="java.io.IOException"/>
  36253. <doc>
  36254. <![CDATA[Relay to {@link #stop()}
  36255. @throws IOException]]>
  36256. </doc>
  36257. </method>
  36258. <method name="noteFailure"
  36259. abstract="false" native="false" synchronized="false"
  36260. static="false" final="true" visibility="protected"
  36261. deprecated="not deprecated">
  36262. <param name="exception" type="java.lang.Exception"/>
  36263. <doc>
  36264. <![CDATA[Failure handling: record the exception
  36265. that triggered it -if there was not one already.
  36266. Services are free to call this themselves.
  36267. @param exception the exception]]>
  36268. </doc>
  36269. </method>
  36270. <method name="waitForServiceToStop" return="boolean"
  36271. abstract="false" native="false" synchronized="false"
  36272. static="false" final="true" visibility="public"
  36273. deprecated="not deprecated">
  36274. <param name="timeout" type="long"/>
  36275. </method>
  36276. <method name="serviceInit"
  36277. abstract="false" native="false" synchronized="false"
  36278. static="false" final="false" visibility="protected"
  36279. deprecated="not deprecated">
  36280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36281. <exception name="Exception" type="java.lang.Exception"/>
  36282. <doc>
  36283. <![CDATA[All initialization code needed by a service.
  36284. This method will only ever be called once during the lifecycle of
  36285. a specific service instance.
  36286. Implementations do not need to be synchronized as the logic
  36287. in {@link #init(Configuration)} prevents re-entrancy.
  36288. The base implementation checks to see if the subclass has created
  36289. a new configuration instance, and if so, updates the base class value
  36290. @param conf configuration
  36291. @throws Exception on a failure -these will be caught,
  36292. possibly wrapped, and wil; trigger a service stop]]>
  36293. </doc>
  36294. </method>
  36295. <method name="serviceStart"
  36296. abstract="false" native="false" synchronized="false"
  36297. static="false" final="false" visibility="protected"
  36298. deprecated="not deprecated">
  36299. <exception name="Exception" type="java.lang.Exception"/>
  36300. <doc>
  36301. <![CDATA[Actions called during the INITED to STARTED transition.
  36302. This method will only ever be called once during the lifecycle of
  36303. a specific service instance.
  36304. Implementations do not need to be synchronized as the logic
  36305. in {@link #start()} prevents re-entrancy.
  36306. @throws Exception if needed -these will be caught,
  36307. wrapped, and trigger a service stop]]>
  36308. </doc>
  36309. </method>
  36310. <method name="serviceStop"
  36311. abstract="false" native="false" synchronized="false"
  36312. static="false" final="false" visibility="protected"
  36313. deprecated="not deprecated">
  36314. <exception name="Exception" type="java.lang.Exception"/>
  36315. <doc>
  36316. <![CDATA[Actions called during the transition to the STOPPED state.
  36317. This method will only ever be called once during the lifecycle of
  36318. a specific service instance.
  36319. Implementations do not need to be synchronized as the logic
  36320. in {@link #stop()} prevents re-entrancy.
  36321. Implementations MUST write this to be robust against failures, including
  36322. checks for null references -and for the first failure to not stop other
  36323. attempts to shut down parts of the service.
  36324. @throws Exception if needed -these will be caught and logged.]]>
  36325. </doc>
  36326. </method>
  36327. <method name="registerServiceListener"
  36328. abstract="false" native="false" synchronized="false"
  36329. static="false" final="false" visibility="public"
  36330. deprecated="not deprecated">
  36331. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36332. </method>
  36333. <method name="unregisterServiceListener"
  36334. abstract="false" native="false" synchronized="false"
  36335. static="false" final="false" visibility="public"
  36336. deprecated="not deprecated">
  36337. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36338. </method>
  36339. <method name="registerGlobalListener"
  36340. abstract="false" native="false" synchronized="false"
  36341. static="true" final="false" visibility="public"
  36342. deprecated="not deprecated">
  36343. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36344. <doc>
  36345. <![CDATA[Register a global listener, which receives notifications
  36346. from the state change events of all services in the JVM
  36347. @param l listener]]>
  36348. </doc>
  36349. </method>
  36350. <method name="unregisterGlobalListener" return="boolean"
  36351. abstract="false" native="false" synchronized="false"
  36352. static="true" final="false" visibility="public"
  36353. deprecated="not deprecated">
  36354. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36355. <doc>
  36356. <![CDATA[unregister a global listener.
  36357. @param l listener to unregister
  36358. @return true if the listener was found (and then deleted)]]>
  36359. </doc>
  36360. </method>
  36361. <method name="getName" return="java.lang.String"
  36362. abstract="false" native="false" synchronized="false"
  36363. static="false" final="false" visibility="public"
  36364. deprecated="not deprecated">
  36365. </method>
  36366. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  36367. abstract="false" native="false" synchronized="false"
  36368. static="false" final="false" visibility="public"
  36369. deprecated="not deprecated">
  36370. </method>
  36371. <method name="getStartTime" return="long"
  36372. abstract="false" native="false" synchronized="false"
  36373. static="false" final="false" visibility="public"
  36374. deprecated="not deprecated">
  36375. </method>
  36376. <method name="getLifecycleHistory" return="java.util.List"
  36377. abstract="false" native="false" synchronized="true"
  36378. static="false" final="false" visibility="public"
  36379. deprecated="not deprecated">
  36380. </method>
  36381. <method name="isInState" return="boolean"
  36382. abstract="false" native="false" synchronized="false"
  36383. static="false" final="true" visibility="public"
  36384. deprecated="not deprecated">
  36385. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  36386. </method>
  36387. <method name="toString" return="java.lang.String"
  36388. abstract="false" native="false" synchronized="false"
  36389. static="false" final="false" visibility="public"
  36390. deprecated="not deprecated">
  36391. </method>
  36392. <method name="putBlocker"
  36393. abstract="false" native="false" synchronized="false"
  36394. static="false" final="false" visibility="protected"
  36395. deprecated="not deprecated">
  36396. <param name="name" type="java.lang.String"/>
  36397. <param name="details" type="java.lang.String"/>
  36398. <doc>
  36399. <![CDATA[Put a blocker to the blocker map -replacing any
  36400. with the same name.
  36401. @param name blocker name
  36402. @param details any specifics on the block. This must be non-null.]]>
  36403. </doc>
  36404. </method>
  36405. <method name="removeBlocker"
  36406. abstract="false" native="false" synchronized="false"
  36407. static="false" final="false" visibility="public"
  36408. deprecated="not deprecated">
  36409. <param name="name" type="java.lang.String"/>
  36410. <doc>
  36411. <![CDATA[Remove a blocker from the blocker map -
  36412. this is a no-op if the blocker is not present
  36413. @param name the name of the blocker]]>
  36414. </doc>
  36415. </method>
  36416. <method name="getBlockers" return="java.util.Map"
  36417. abstract="false" native="false" synchronized="false"
  36418. static="false" final="false" visibility="public"
  36419. deprecated="not deprecated">
  36420. </method>
  36421. <doc>
  36422. <![CDATA[This is the base implementation class for services.]]>
  36423. </doc>
  36424. </class>
  36425. <!-- end class org.apache.hadoop.service.AbstractService -->
  36426. <!-- start class org.apache.hadoop.service.CompositeService -->
  36427. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  36428. abstract="false"
  36429. static="false" final="false" visibility="public"
  36430. deprecated="not deprecated">
  36431. <constructor name="CompositeService" type="java.lang.String"
  36432. static="false" final="false" visibility="public"
  36433. deprecated="not deprecated">
  36434. </constructor>
  36435. <method name="getServices" return="java.util.List"
  36436. abstract="false" native="false" synchronized="false"
  36437. static="false" final="false" visibility="public"
  36438. deprecated="not deprecated">
  36439. <doc>
  36440. <![CDATA[Get a cloned list of services
  36441. @return a list of child services at the time of invocation -
  36442. added services will not be picked up.]]>
  36443. </doc>
  36444. </method>
  36445. <method name="addService"
  36446. abstract="false" native="false" synchronized="false"
  36447. static="false" final="false" visibility="protected"
  36448. deprecated="not deprecated">
  36449. <param name="service" type="org.apache.hadoop.service.Service"/>
  36450. <doc>
  36451. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  36452. {@link CompositeService}
  36453. @param service the {@link Service} to be added]]>
  36454. </doc>
  36455. </method>
  36456. <method name="addIfService" return="boolean"
  36457. abstract="false" native="false" synchronized="false"
  36458. static="false" final="false" visibility="protected"
  36459. deprecated="not deprecated">
  36460. <param name="object" type="java.lang.Object"/>
  36461. <doc>
  36462. <![CDATA[If the passed object is an instance of {@link Service},
  36463. add it to the list of services managed by this {@link CompositeService}
  36464. @param object
  36465. @return true if a service is added, false otherwise.]]>
  36466. </doc>
  36467. </method>
  36468. <method name="removeService" return="boolean"
  36469. abstract="false" native="false" synchronized="true"
  36470. static="false" final="false" visibility="protected"
  36471. deprecated="not deprecated">
  36472. <param name="service" type="org.apache.hadoop.service.Service"/>
  36473. </method>
  36474. <method name="serviceInit"
  36475. abstract="false" native="false" synchronized="false"
  36476. static="false" final="false" visibility="protected"
  36477. deprecated="not deprecated">
  36478. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36479. <exception name="Exception" type="java.lang.Exception"/>
  36480. </method>
  36481. <method name="serviceStart"
  36482. abstract="false" native="false" synchronized="false"
  36483. static="false" final="false" visibility="protected"
  36484. deprecated="not deprecated">
  36485. <exception name="Exception" type="java.lang.Exception"/>
  36486. </method>
  36487. <method name="serviceStop"
  36488. abstract="false" native="false" synchronized="false"
  36489. static="false" final="false" visibility="protected"
  36490. deprecated="not deprecated">
  36491. <exception name="Exception" type="java.lang.Exception"/>
  36492. </method>
  36493. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  36494. transient="false" volatile="false"
  36495. static="true" final="true" visibility="protected"
  36496. deprecated="not deprecated">
  36497. <doc>
  36498. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  36499. only try to close started services (which assumes
  36500. that the service implementations may not handle the stop() operation
  36501. except when started.
  36502. Irrespective of this policy, if a child service fails during
  36503. its init() or start() operations, it will have stop() called on it.]]>
  36504. </doc>
  36505. </field>
  36506. <doc>
  36507. <![CDATA[Composition of services.]]>
  36508. </doc>
  36509. </class>
  36510. <!-- end class org.apache.hadoop.service.CompositeService -->
  36511. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  36512. <class name="LifecycleEvent" extends="java.lang.Object"
  36513. abstract="false"
  36514. static="false" final="false" visibility="public"
  36515. deprecated="not deprecated">
  36516. <implements name="java.io.Serializable"/>
  36517. <constructor name="LifecycleEvent"
  36518. static="false" final="false" visibility="public"
  36519. deprecated="not deprecated">
  36520. </constructor>
  36521. <field name="time" type="long"
  36522. transient="false" volatile="false"
  36523. static="false" final="false" visibility="public"
  36524. deprecated="not deprecated">
  36525. <doc>
  36526. <![CDATA[Local time in milliseconds when the event occurred]]>
  36527. </doc>
  36528. </field>
  36529. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  36530. transient="false" volatile="false"
  36531. static="false" final="false" visibility="public"
  36532. deprecated="not deprecated">
  36533. <doc>
  36534. <![CDATA[new state]]>
  36535. </doc>
  36536. </field>
  36537. <doc>
  36538. <![CDATA[A serializable lifecycle event: the time a state
  36539. transition occurred, and what state was entered.]]>
  36540. </doc>
  36541. </class>
  36542. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  36543. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  36544. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  36545. abstract="false"
  36546. static="false" final="false" visibility="public"
  36547. deprecated="not deprecated">
  36548. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36549. <constructor name="LoggingStateChangeListener" type="org.slf4j.Logger"
  36550. static="false" final="false" visibility="public"
  36551. deprecated="not deprecated">
  36552. <doc>
  36553. <![CDATA[Log events to the given log
  36554. @param log destination for events]]>
  36555. </doc>
  36556. </constructor>
  36557. <constructor name="LoggingStateChangeListener"
  36558. static="false" final="false" visibility="public"
  36559. deprecated="not deprecated">
  36560. <doc>
  36561. <![CDATA[Log events to the static log for this class]]>
  36562. </doc>
  36563. </constructor>
  36564. <method name="stateChanged"
  36565. abstract="false" native="false" synchronized="false"
  36566. static="false" final="false" visibility="public"
  36567. deprecated="not deprecated">
  36568. <param name="service" type="org.apache.hadoop.service.Service"/>
  36569. <doc>
  36570. <![CDATA[Callback for a state change event: log it
  36571. @param service the service that has changed.]]>
  36572. </doc>
  36573. </method>
  36574. <doc>
  36575. <![CDATA[This is a state change listener that logs events at INFO level]]>
  36576. </doc>
  36577. </class>
  36578. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  36579. <!-- start interface org.apache.hadoop.service.Service -->
  36580. <interface name="Service" abstract="true"
  36581. static="false" final="false" visibility="public"
  36582. deprecated="not deprecated">
  36583. <implements name="java.io.Closeable"/>
  36584. <method name="init"
  36585. abstract="false" native="false" synchronized="false"
  36586. static="false" final="false" visibility="public"
  36587. deprecated="not deprecated">
  36588. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  36589. <doc>
  36590. <![CDATA[Initialize the service.
  36591. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  36592. unless the operation failed and an exception was raised, in which case
  36593. {@link #stop()} MUST be invoked and the service enter the state
  36594. {@link STATE#STOPPED}.
  36595. @param config the configuration of the service
  36596. @throws RuntimeException on any failure during the operation]]>
  36597. </doc>
  36598. </method>
  36599. <method name="start"
  36600. abstract="false" native="false" synchronized="false"
  36601. static="false" final="false" visibility="public"
  36602. deprecated="not deprecated">
  36603. <doc>
  36604. <![CDATA[Start the service.
  36605. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  36606. unless the operation failed and an exception was raised, in which case
  36607. {@link #stop()} MUST be invoked and the service enter the state
  36608. {@link STATE#STOPPED}.
  36609. @throws RuntimeException on any failure during the operation]]>
  36610. </doc>
  36611. </method>
  36612. <method name="stop"
  36613. abstract="false" native="false" synchronized="false"
  36614. static="false" final="false" visibility="public"
  36615. deprecated="not deprecated">
  36616. <doc>
  36617. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  36618. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  36619. to stop all parts of the service.
  36620. The implementation must be designed to complete regardless of the service
  36621. state, including the initialized/uninitialized state of all its internal
  36622. fields.
  36623. @throws RuntimeException on any failure during the stop operation]]>
  36624. </doc>
  36625. </method>
  36626. <method name="close"
  36627. abstract="false" native="false" synchronized="false"
  36628. static="false" final="false" visibility="public"
  36629. deprecated="not deprecated">
  36630. <exception name="IOException" type="java.io.IOException"/>
  36631. <doc>
  36632. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  36633. clauses.
  36634. Implementation classes MUST relay this directly to {@link #stop()}
  36635. @throws IOException never
  36636. @throws RuntimeException on any failure during the stop operation]]>
  36637. </doc>
  36638. </method>
  36639. <method name="registerServiceListener"
  36640. abstract="false" native="false" synchronized="false"
  36641. static="false" final="false" visibility="public"
  36642. deprecated="not deprecated">
  36643. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36644. <doc>
  36645. <![CDATA[Register a listener to the service state change events.
  36646. If the supplied listener is already listening to this service,
  36647. this method is a no-op.
  36648. @param listener a new listener]]>
  36649. </doc>
  36650. </method>
  36651. <method name="unregisterServiceListener"
  36652. abstract="false" native="false" synchronized="false"
  36653. static="false" final="false" visibility="public"
  36654. deprecated="not deprecated">
  36655. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  36656. <doc>
  36657. <![CDATA[Unregister a previously registered listener of the service state
  36658. change events. No-op if the listener is already unregistered.
  36659. @param listener the listener to unregister.]]>
  36660. </doc>
  36661. </method>
  36662. <method name="getName" return="java.lang.String"
  36663. abstract="false" native="false" synchronized="false"
  36664. static="false" final="false" visibility="public"
  36665. deprecated="not deprecated">
  36666. <doc>
  36667. <![CDATA[Get the name of this service.
  36668. @return the service name]]>
  36669. </doc>
  36670. </method>
  36671. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  36672. abstract="false" native="false" synchronized="false"
  36673. static="false" final="false" visibility="public"
  36674. deprecated="not deprecated">
  36675. <doc>
  36676. <![CDATA[Get the configuration of this service.
  36677. This is normally not a clone and may be manipulated, though there are no
  36678. guarantees as to what the consequences of such actions may be
  36679. @return the current configuration, unless a specific implentation chooses
  36680. otherwise.]]>
  36681. </doc>
  36682. </method>
  36683. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  36684. abstract="false" native="false" synchronized="false"
  36685. static="false" final="false" visibility="public"
  36686. deprecated="not deprecated">
  36687. <doc>
  36688. <![CDATA[Get the current service state
  36689. @return the state of the service]]>
  36690. </doc>
  36691. </method>
  36692. <method name="getStartTime" return="long"
  36693. abstract="false" native="false" synchronized="false"
  36694. static="false" final="false" visibility="public"
  36695. deprecated="not deprecated">
  36696. <doc>
  36697. <![CDATA[Get the service start time
  36698. @return the start time of the service. This will be zero if the service
  36699. has not yet been started.]]>
  36700. </doc>
  36701. </method>
  36702. <method name="isInState" return="boolean"
  36703. abstract="false" native="false" synchronized="false"
  36704. static="false" final="false" visibility="public"
  36705. deprecated="not deprecated">
  36706. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  36707. <doc>
  36708. <![CDATA[Query to see if the service is in a specific state.
  36709. In a multi-threaded system, the state may not hold for very long.
  36710. @param state the expected state
  36711. @return true if, at the time of invocation, the service was in that state.]]>
  36712. </doc>
  36713. </method>
  36714. <method name="getFailureCause" return="java.lang.Throwable"
  36715. abstract="false" native="false" synchronized="false"
  36716. static="false" final="false" visibility="public"
  36717. deprecated="not deprecated">
  36718. <doc>
  36719. <![CDATA[Get the first exception raised during the service failure. If null,
  36720. no exception was logged
  36721. @return the failure logged during a transition to the stopped state]]>
  36722. </doc>
  36723. </method>
  36724. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  36725. abstract="false" native="false" synchronized="false"
  36726. static="false" final="false" visibility="public"
  36727. deprecated="not deprecated">
  36728. <doc>
  36729. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  36730. @return the state or null if there was no failure]]>
  36731. </doc>
  36732. </method>
  36733. <method name="waitForServiceToStop" return="boolean"
  36734. abstract="false" native="false" synchronized="false"
  36735. static="false" final="false" visibility="public"
  36736. deprecated="not deprecated">
  36737. <param name="timeout" type="long"/>
  36738. <doc>
  36739. <![CDATA[Block waiting for the service to stop; uses the termination notification
  36740. object to do so.
  36741. This method will only return after all the service stop actions
  36742. have been executed (to success or failure), or the timeout elapsed
  36743. This method can be called before the service is inited or started; this is
  36744. to eliminate any race condition with the service stopping before
  36745. this event occurs.
  36746. @param timeout timeout in milliseconds. A value of zero means "forever"
  36747. @return true iff the service stopped in the time period]]>
  36748. </doc>
  36749. </method>
  36750. <method name="getLifecycleHistory" return="java.util.List"
  36751. abstract="false" native="false" synchronized="false"
  36752. static="false" final="false" visibility="public"
  36753. deprecated="not deprecated">
  36754. <doc>
  36755. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  36756. @return a possibly empty but never null list of lifecycle events.]]>
  36757. </doc>
  36758. </method>
  36759. <method name="getBlockers" return="java.util.Map"
  36760. abstract="false" native="false" synchronized="false"
  36761. static="false" final="false" visibility="public"
  36762. deprecated="not deprecated">
  36763. <doc>
  36764. <![CDATA[Get the blockers on a service -remote dependencies
  36765. that are stopping the service from being <i>live</i>.
  36766. @return a (snapshotted) map of blocker name-&gt;description values]]>
  36767. </doc>
  36768. </method>
  36769. <doc>
  36770. <![CDATA[Service LifeCycle.]]>
  36771. </doc>
  36772. </interface>
  36773. <!-- end interface org.apache.hadoop.service.Service -->
  36774. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  36775. <class name="ServiceOperations" extends="java.lang.Object"
  36776. abstract="false"
  36777. static="false" final="true" visibility="public"
  36778. deprecated="not deprecated">
  36779. <method name="stop"
  36780. abstract="false" native="false" synchronized="false"
  36781. static="true" final="false" visibility="public"
  36782. deprecated="not deprecated">
  36783. <param name="service" type="org.apache.hadoop.service.Service"/>
  36784. <doc>
  36785. <![CDATA[Stop a service.
  36786. <p/>Do nothing if the service is null or not
  36787. in a state in which it can be/needs to be stopped.
  36788. <p/>
  36789. The service state is checked <i>before</i> the operation begins.
  36790. This process is <i>not</i> thread safe.
  36791. @param service a service or null]]>
  36792. </doc>
  36793. </method>
  36794. <method name="stopQuietly" return="java.lang.Exception"
  36795. abstract="false" native="false" synchronized="false"
  36796. static="true" final="false" visibility="public"
  36797. deprecated="not deprecated">
  36798. <param name="service" type="org.apache.hadoop.service.Service"/>
  36799. <doc>
  36800. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36801. logged at warn level. (but not Throwables). This operation is intended to
  36802. be used in cleanup operations
  36803. @param service a service; may be null
  36804. @return any exception that was caught; null if none was.]]>
  36805. </doc>
  36806. </method>
  36807. <method name="stopQuietly" return="java.lang.Exception"
  36808. abstract="false" native="false" synchronized="false"
  36809. static="true" final="false" visibility="public"
  36810. deprecated="not deprecated">
  36811. <param name="log" type="org.apache.commons.logging.Log"/>
  36812. <param name="service" type="org.apache.hadoop.service.Service"/>
  36813. <doc>
  36814. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36815. logged at warn level. (but not Throwables). This operation is intended to
  36816. be used in cleanup operations
  36817. @param log the log to warn at
  36818. @param service a service; may be null
  36819. @return any exception that was caught; null if none was.
  36820. @see ServiceOperations#stopQuietly(Service)]]>
  36821. </doc>
  36822. </method>
  36823. <method name="stopQuietly" return="java.lang.Exception"
  36824. abstract="false" native="false" synchronized="false"
  36825. static="true" final="false" visibility="public"
  36826. deprecated="not deprecated">
  36827. <param name="log" type="org.slf4j.Logger"/>
  36828. <param name="service" type="org.apache.hadoop.service.Service"/>
  36829. <doc>
  36830. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  36831. logged at warn level. (but not Throwables). This operation is intended to
  36832. be used in cleanup operations
  36833. @param log the log to warn at
  36834. @param service a service; may be null
  36835. @return any exception that was caught; null if none was.
  36836. @see ServiceOperations#stopQuietly(Service)]]>
  36837. </doc>
  36838. </method>
  36839. <doc>
  36840. <![CDATA[This class contains a set of methods to work with services, especially
  36841. to walk them through their lifecycle.]]>
  36842. </doc>
  36843. </class>
  36844. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  36845. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  36846. <interface name="ServiceStateChangeListener" abstract="true"
  36847. static="false" final="false" visibility="public"
  36848. deprecated="not deprecated">
  36849. <method name="stateChanged"
  36850. abstract="false" native="false" synchronized="false"
  36851. static="false" final="false" visibility="public"
  36852. deprecated="not deprecated">
  36853. <param name="service" type="org.apache.hadoop.service.Service"/>
  36854. <doc>
  36855. <![CDATA[Callback to notify of a state change. The service will already
  36856. have changed state before this callback is invoked.
  36857. This operation is invoked on the thread that initiated the state change,
  36858. while the service itself in in a sychronized section.
  36859. <ol>
  36860. <li>Any long-lived operation here will prevent the service state
  36861. change from completing in a timely manner.</li>
  36862. <li>If another thread is somehow invoked from the listener, and
  36863. that thread invokes the methods of the service (including
  36864. subclass-specific methods), there is a risk of a deadlock.</li>
  36865. </ol>
  36866. @param service the service that has changed.]]>
  36867. </doc>
  36868. </method>
  36869. <doc>
  36870. <![CDATA[Interface to notify state changes of a service.]]>
  36871. </doc>
  36872. </interface>
  36873. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  36874. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  36875. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  36876. abstract="false"
  36877. static="false" final="false" visibility="public"
  36878. deprecated="not deprecated">
  36879. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  36880. <constructor name="ServiceStateException" type="java.lang.String"
  36881. static="false" final="false" visibility="public"
  36882. deprecated="not deprecated">
  36883. <doc>
  36884. <![CDATA[Instantiate
  36885. @param message error message]]>
  36886. </doc>
  36887. </constructor>
  36888. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  36889. static="false" final="false" visibility="public"
  36890. deprecated="not deprecated">
  36891. <doc>
  36892. <![CDATA[Instantiate with a message and cause; if the cause has an exit code
  36893. then it is used, otherwise the generic
  36894. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION} exit code
  36895. is used.
  36896. @param message exception message
  36897. @param cause optional inner cause]]>
  36898. </doc>
  36899. </constructor>
  36900. <constructor name="ServiceStateException" type="int, java.lang.String, java.lang.Throwable"
  36901. static="false" final="false" visibility="public"
  36902. deprecated="not deprecated">
  36903. <doc>
  36904. <![CDATA[Instantiate, using the specified exit code as the exit code
  36905. of the exception, irrespetive of any exit code supplied by any inner
  36906. cause.
  36907. @param exitCode exit code to declare
  36908. @param message exception message
  36909. @param cause inner cause]]>
  36910. </doc>
  36911. </constructor>
  36912. <constructor name="ServiceStateException" type="java.lang.Throwable"
  36913. static="false" final="false" visibility="public"
  36914. deprecated="not deprecated">
  36915. </constructor>
  36916. <method name="getExitCode" return="int"
  36917. abstract="false" native="false" synchronized="false"
  36918. static="false" final="false" visibility="public"
  36919. deprecated="not deprecated">
  36920. </method>
  36921. <method name="convert" return="java.lang.RuntimeException"
  36922. abstract="false" native="false" synchronized="false"
  36923. static="true" final="false" visibility="public"
  36924. deprecated="not deprecated">
  36925. <param name="fault" type="java.lang.Throwable"/>
  36926. <doc>
  36927. <![CDATA[Convert any exception into a {@link RuntimeException}.
  36928. All other exception types are wrapped in a new instance of
  36929. {@code ServiceStateException}.
  36930. @param fault exception or throwable
  36931. @return a {@link RuntimeException} to rethrow]]>
  36932. </doc>
  36933. </method>
  36934. <method name="convert" return="java.lang.RuntimeException"
  36935. abstract="false" native="false" synchronized="false"
  36936. static="true" final="false" visibility="public"
  36937. deprecated="not deprecated">
  36938. <param name="text" type="java.lang.String"/>
  36939. <param name="fault" type="java.lang.Throwable"/>
  36940. <doc>
  36941. <![CDATA[Convert any exception into a {@link RuntimeException}.
  36942. If the caught exception is already of that type, it is typecast to a
  36943. {@link RuntimeException} and returned.
  36944. All other exception types are wrapped in a new instance of
  36945. {@code ServiceStateException}.
  36946. @param text text to use if a new exception is created
  36947. @param fault exception or throwable
  36948. @return a {@link RuntimeException} to rethrow]]>
  36949. </doc>
  36950. </method>
  36951. <doc>
  36952. <![CDATA[Exception that can be raised on state change operations, whose
  36953. exit code can be explicitly set, determined from that of any nested
  36954. cause, or a default value of
  36955. {@link LauncherExitCodes#EXIT_SERVICE_LIFECYCLE_EXCEPTION}.]]>
  36956. </doc>
  36957. </class>
  36958. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  36959. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  36960. <class name="ServiceStateModel" extends="java.lang.Object"
  36961. abstract="false"
  36962. static="false" final="false" visibility="public"
  36963. deprecated="not deprecated">
  36964. <constructor name="ServiceStateModel" type="java.lang.String"
  36965. static="false" final="false" visibility="public"
  36966. deprecated="not deprecated">
  36967. <doc>
  36968. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  36969. state.]]>
  36970. </doc>
  36971. </constructor>
  36972. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  36973. static="false" final="false" visibility="public"
  36974. deprecated="not deprecated">
  36975. <doc>
  36976. <![CDATA[Create a service state model instance in the chosen state
  36977. @param state the starting state]]>
  36978. </doc>
  36979. </constructor>
  36980. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  36981. abstract="false" native="false" synchronized="false"
  36982. static="false" final="false" visibility="public"
  36983. deprecated="not deprecated">
  36984. <doc>
  36985. <![CDATA[Query the service state. This is a non-blocking operation.
  36986. @return the state]]>
  36987. </doc>
  36988. </method>
  36989. <method name="isInState" return="boolean"
  36990. abstract="false" native="false" synchronized="false"
  36991. static="false" final="false" visibility="public"
  36992. deprecated="not deprecated">
  36993. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  36994. <doc>
  36995. <![CDATA[Query that the state is in a specific state
  36996. @param proposed proposed new state
  36997. @return the state]]>
  36998. </doc>
  36999. </method>
  37000. <method name="ensureCurrentState"
  37001. abstract="false" native="false" synchronized="false"
  37002. static="false" final="false" visibility="public"
  37003. deprecated="not deprecated">
  37004. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  37005. <doc>
  37006. <![CDATA[Verify that that a service is in a given state.
  37007. @param expectedState the desired state
  37008. @throws ServiceStateException if the service state is different from
  37009. the desired state]]>
  37010. </doc>
  37011. </method>
  37012. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  37013. abstract="false" native="false" synchronized="true"
  37014. static="false" final="false" visibility="public"
  37015. deprecated="not deprecated">
  37016. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  37017. <doc>
  37018. <![CDATA[Enter a state -thread safe.
  37019. @param proposed proposed new state
  37020. @return the original state
  37021. @throws ServiceStateException if the transition is not permitted]]>
  37022. </doc>
  37023. </method>
  37024. <method name="checkStateTransition"
  37025. abstract="false" native="false" synchronized="false"
  37026. static="true" final="false" visibility="public"
  37027. deprecated="not deprecated">
  37028. <param name="name" type="java.lang.String"/>
  37029. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  37030. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  37031. <doc>
  37032. <![CDATA[Check that a state tansition is valid and
  37033. throw an exception if not
  37034. @param name name of the service (can be null)
  37035. @param state current state
  37036. @param proposed proposed new state]]>
  37037. </doc>
  37038. </method>
  37039. <method name="isValidStateTransition" return="boolean"
  37040. abstract="false" native="false" synchronized="false"
  37041. static="true" final="false" visibility="public"
  37042. deprecated="not deprecated">
  37043. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  37044. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  37045. <doc>
  37046. <![CDATA[Is a state transition valid?
  37047. There are no checks for current==proposed
  37048. as that is considered a non-transition.
  37049. using an array kills off all branch misprediction costs, at the expense
  37050. of cache line misses.
  37051. @param current current state
  37052. @param proposed proposed new state
  37053. @return true if the transition to a new state is valid]]>
  37054. </doc>
  37055. </method>
  37056. <method name="toString" return="java.lang.String"
  37057. abstract="false" native="false" synchronized="false"
  37058. static="false" final="false" visibility="public"
  37059. deprecated="not deprecated">
  37060. <doc>
  37061. <![CDATA[return the state text as the toString() value
  37062. @return the current state's description]]>
  37063. </doc>
  37064. </method>
  37065. <doc>
  37066. <![CDATA[Implements the service state model.]]>
  37067. </doc>
  37068. </class>
  37069. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  37070. </package>
  37071. <package name="org.apache.hadoop.service.launcher">
  37072. <!-- start class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  37073. <class name="AbstractLaunchableService" extends="org.apache.hadoop.service.AbstractService"
  37074. abstract="true"
  37075. static="false" final="false" visibility="public"
  37076. deprecated="not deprecated">
  37077. <implements name="org.apache.hadoop.service.launcher.LaunchableService"/>
  37078. <constructor name="AbstractLaunchableService" type="java.lang.String"
  37079. static="false" final="false" visibility="protected"
  37080. deprecated="not deprecated">
  37081. <doc>
  37082. <![CDATA[Construct an instance with the given name.]]>
  37083. </doc>
  37084. </constructor>
  37085. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  37086. abstract="false" native="false" synchronized="false"
  37087. static="false" final="false" visibility="public"
  37088. deprecated="not deprecated">
  37089. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  37090. <param name="args" type="java.util.List"/>
  37091. <exception name="Exception" type="java.lang.Exception"/>
  37092. <doc>
  37093. <![CDATA[{@inheritDoc}
  37094. <p>
  37095. The base implementation logs all arguments at the debug level,
  37096. then returns the passed in config unchanged.]]>
  37097. </doc>
  37098. </method>
  37099. <method name="execute" return="int"
  37100. abstract="false" native="false" synchronized="false"
  37101. static="false" final="false" visibility="public"
  37102. deprecated="not deprecated">
  37103. <exception name="Exception" type="java.lang.Exception"/>
  37104. <doc>
  37105. <![CDATA[{@inheritDoc}
  37106. <p>
  37107. The action is to signal success by returning the exit code 0.]]>
  37108. </doc>
  37109. </method>
  37110. <doc>
  37111. <![CDATA[Subclass of {@link AbstractService} that provides basic implementations
  37112. of the {@link LaunchableService} methods.]]>
  37113. </doc>
  37114. </class>
  37115. <!-- end class org.apache.hadoop.service.launcher.AbstractLaunchableService -->
  37116. <!-- start class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  37117. <class name="HadoopUncaughtExceptionHandler" extends="java.lang.Object"
  37118. abstract="false"
  37119. static="false" final="false" visibility="public"
  37120. deprecated="not deprecated">
  37121. <implements name="java.lang.Thread.UncaughtExceptionHandler"/>
  37122. <constructor name="HadoopUncaughtExceptionHandler" type="java.lang.Thread.UncaughtExceptionHandler"
  37123. static="false" final="false" visibility="public"
  37124. deprecated="not deprecated">
  37125. <doc>
  37126. <![CDATA[Create an instance delegating to the supplied handler if
  37127. the exception is considered "simple".
  37128. @param delegate a delegate exception handler.]]>
  37129. </doc>
  37130. </constructor>
  37131. <constructor name="HadoopUncaughtExceptionHandler"
  37132. static="false" final="false" visibility="public"
  37133. deprecated="not deprecated">
  37134. <doc>
  37135. <![CDATA[Basic exception handler -logs simple exceptions, then continues.]]>
  37136. </doc>
  37137. </constructor>
  37138. <method name="uncaughtException"
  37139. abstract="false" native="false" synchronized="false"
  37140. static="false" final="false" visibility="public"
  37141. deprecated="not deprecated">
  37142. <param name="thread" type="java.lang.Thread"/>
  37143. <param name="exception" type="java.lang.Throwable"/>
  37144. <doc>
  37145. <![CDATA[Uncaught exception handler.
  37146. If an error is raised: shutdown
  37147. The state of the system is unknown at this point -attempting
  37148. a clean shutdown is dangerous. Instead: exit
  37149. @param thread thread that failed
  37150. @param exception the raised exception]]>
  37151. </doc>
  37152. </method>
  37153. <doc>
  37154. <![CDATA[This class is intended to be installed by calling
  37155. {@link Thread#setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler)}
  37156. in the main entry point.
  37157. The base class will always attempt to shut down the process if an Error
  37158. was raised; the behavior on a standard Exception, raised outside
  37159. process shutdown, is simply to log it.
  37160. (Based on the class {@code YarnUncaughtExceptionHandler})]]>
  37161. </doc>
  37162. </class>
  37163. <!-- end class org.apache.hadoop.service.launcher.HadoopUncaughtExceptionHandler -->
  37164. <!-- start interface org.apache.hadoop.service.launcher.LaunchableService -->
  37165. <interface name="LaunchableService" abstract="true"
  37166. static="false" final="false" visibility="public"
  37167. deprecated="not deprecated">
  37168. <implements name="org.apache.hadoop.service.Service"/>
  37169. <method name="bindArgs" return="org.apache.hadoop.conf.Configuration"
  37170. abstract="false" native="false" synchronized="false"
  37171. static="false" final="false" visibility="public"
  37172. deprecated="not deprecated">
  37173. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  37174. <param name="args" type="java.util.List"/>
  37175. <exception name="Exception" type="java.lang.Exception"/>
  37176. <doc>
  37177. <![CDATA[Propagate the command line arguments.
  37178. <p>
  37179. This method is called before {@link #init(Configuration)};
  37180. Any non-null configuration that is returned from this operation
  37181. becomes the one that is passed on to that {@link #init(Configuration)}
  37182. operation.
  37183. <p>
  37184. This permits implementations to change the configuration before
  37185. the init operation. As the ServiceLauncher only creates
  37186. an instance of the base {@link Configuration} class, it is
  37187. recommended to instantiate any subclass (such as YarnConfiguration)
  37188. that injects new resources.
  37189. <p>
  37190. @param config the initial configuration build up by the
  37191. service launcher.
  37192. @param args list of arguments passed to the command line
  37193. after any launcher-specific commands have been stripped.
  37194. @return the configuration to init the service with.
  37195. Recommended: pass down the config parameter with any changes
  37196. @throws Exception any problem]]>
  37197. </doc>
  37198. </method>
  37199. <method name="execute" return="int"
  37200. abstract="false" native="false" synchronized="false"
  37201. static="false" final="false" visibility="public"
  37202. deprecated="not deprecated">
  37203. <exception name="Exception" type="java.lang.Exception"/>
  37204. <doc>
  37205. <![CDATA[Run a service. This method is called after {@link Service#start()}.
  37206. <p>
  37207. The return value becomes the exit code of the launched process.
  37208. <p>
  37209. If an exception is raised, the policy is:
  37210. <ol>
  37211. <li>Any subset of {@link org.apache.hadoop.util.ExitUtil.ExitException}:
  37212. the exception is passed up unmodified.
  37213. </li>
  37214. <li>Any exception which implements
  37215. {@link org.apache.hadoop.util.ExitCodeProvider}:
  37216. A new {@link ServiceLaunchException} is created with the exit code
  37217. and message of the thrown exception; the thrown exception becomes the
  37218. cause.</li>
  37219. <li>Any other exception: a new {@link ServiceLaunchException} is created
  37220. with the exit code {@link LauncherExitCodes#EXIT_EXCEPTION_THROWN} and
  37221. the message of the original exception (which becomes the cause).</li>
  37222. </ol>
  37223. @return the exit code
  37224. @throws org.apache.hadoop.util.ExitUtil.ExitException an exception passed
  37225. up as the exit code and error text.
  37226. @throws Exception any exception to report. If it provides an exit code
  37227. this is used in a wrapping exception.]]>
  37228. </doc>
  37229. </method>
  37230. <doc>
  37231. <![CDATA[An interface which services can implement to have their
  37232. execution managed by the ServiceLauncher.
  37233. <p>
  37234. The command line options will be passed down before the
  37235. {@link Service#init(Configuration)} operation is invoked via an
  37236. invocation of {@link LaunchableService#bindArgs(Configuration, List)}
  37237. After the service has been successfully started via {@link Service#start()}
  37238. the {@link LaunchableService#execute()} method is called to execute the
  37239. service. When this method returns, the service launcher will exit, using
  37240. the return code from the method as its exit option.]]>
  37241. </doc>
  37242. </interface>
  37243. <!-- end interface org.apache.hadoop.service.launcher.LaunchableService -->
  37244. <!-- start interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  37245. <interface name="LauncherExitCodes" abstract="true"
  37246. static="false" final="false" visibility="public"
  37247. deprecated="not deprecated">
  37248. <field name="EXIT_SUCCESS" type="int"
  37249. transient="false" volatile="false"
  37250. static="true" final="true" visibility="public"
  37251. deprecated="not deprecated">
  37252. <doc>
  37253. <![CDATA[Success: {@value}.]]>
  37254. </doc>
  37255. </field>
  37256. <field name="EXIT_FAIL" type="int"
  37257. transient="false" volatile="false"
  37258. static="true" final="true" visibility="public"
  37259. deprecated="not deprecated">
  37260. <doc>
  37261. <![CDATA[Generic "false/fail" response: {@value}.
  37262. The operation worked but the result was not "true" from the viewpoint
  37263. of the executed code.]]>
  37264. </doc>
  37265. </field>
  37266. <field name="EXIT_CLIENT_INITIATED_SHUTDOWN" type="int"
  37267. transient="false" volatile="false"
  37268. static="true" final="true" visibility="public"
  37269. deprecated="not deprecated">
  37270. <doc>
  37271. <![CDATA[Exit code when a client requested service termination: {@value}.]]>
  37272. </doc>
  37273. </field>
  37274. <field name="EXIT_TASK_LAUNCH_FAILURE" type="int"
  37275. transient="false" volatile="false"
  37276. static="true" final="true" visibility="public"
  37277. deprecated="not deprecated">
  37278. <doc>
  37279. <![CDATA[Exit code when targets could not be launched: {@value}.]]>
  37280. </doc>
  37281. </field>
  37282. <field name="EXIT_INTERRUPTED" type="int"
  37283. transient="false" volatile="false"
  37284. static="true" final="true" visibility="public"
  37285. deprecated="not deprecated">
  37286. <doc>
  37287. <![CDATA[Exit code when a control-C, kill -3, signal was picked up: {@value}.]]>
  37288. </doc>
  37289. </field>
  37290. <field name="EXIT_OTHER_FAILURE" type="int"
  37291. transient="false" volatile="false"
  37292. static="true" final="true" visibility="public"
  37293. deprecated="not deprecated">
  37294. <doc>
  37295. <![CDATA[Exit code when something happened but we can't be specific: {@value}.]]>
  37296. </doc>
  37297. </field>
  37298. <field name="EXIT_COMMAND_ARGUMENT_ERROR" type="int"
  37299. transient="false" volatile="false"
  37300. static="true" final="true" visibility="public"
  37301. deprecated="not deprecated">
  37302. <doc>
  37303. <![CDATA[Exit code when the command line doesn't parse: {@value}, or
  37304. when it is otherwise invalid.
  37305. <p>
  37306. Approximate HTTP equivalent: {@code 400 Bad Request}]]>
  37307. </doc>
  37308. </field>
  37309. <field name="EXIT_UNAUTHORIZED" type="int"
  37310. transient="false" volatile="false"
  37311. static="true" final="true" visibility="public"
  37312. deprecated="not deprecated">
  37313. <doc>
  37314. <![CDATA[The request requires user authentication: {@value}.
  37315. <p>
  37316. approximate HTTP equivalent: Approximate HTTP equivalent: {@code 401 Unauthorized}]]>
  37317. </doc>
  37318. </field>
  37319. <field name="EXIT_USAGE" type="int"
  37320. transient="false" volatile="false"
  37321. static="true" final="true" visibility="public"
  37322. deprecated="not deprecated">
  37323. <doc>
  37324. <![CDATA[Exit code when a usage message was printed: {@value}.]]>
  37325. </doc>
  37326. </field>
  37327. <field name="EXIT_FORBIDDEN" type="int"
  37328. transient="false" volatile="false"
  37329. static="true" final="true" visibility="public"
  37330. deprecated="not deprecated">
  37331. <doc>
  37332. <![CDATA[Forbidden action: {@value}.
  37333. <p>
  37334. Approximate HTTP equivalent: Approximate HTTP equivalent: {@code 403: Forbidden}]]>
  37335. </doc>
  37336. </field>
  37337. <field name="EXIT_NOT_FOUND" type="int"
  37338. transient="false" volatile="false"
  37339. static="true" final="true" visibility="public"
  37340. deprecated="not deprecated">
  37341. <doc>
  37342. <![CDATA[Something was not found: {@value}.
  37343. <p>
  37344. Approximate HTTP equivalent: {@code 404: Not Found}]]>
  37345. </doc>
  37346. </field>
  37347. <field name="EXIT_OPERATION_NOT_ALLOWED" type="int"
  37348. transient="false" volatile="false"
  37349. static="true" final="true" visibility="public"
  37350. deprecated="not deprecated">
  37351. <doc>
  37352. <![CDATA[The operation is not allowed: {@value}.
  37353. <p>
  37354. Approximate HTTP equivalent: {@code 405: Not allowed}]]>
  37355. </doc>
  37356. </field>
  37357. <field name="EXIT_NOT_ACCEPTABLE" type="int"
  37358. transient="false" volatile="false"
  37359. static="true" final="true" visibility="public"
  37360. deprecated="not deprecated">
  37361. <doc>
  37362. <![CDATA[The command is somehow not acceptable: {@value}.
  37363. <p>
  37364. Approximate HTTP equivalent: {@code 406: Not Acceptable}]]>
  37365. </doc>
  37366. </field>
  37367. <field name="EXIT_CONNECTIVITY_PROBLEM" type="int"
  37368. transient="false" volatile="false"
  37369. static="true" final="true" visibility="public"
  37370. deprecated="not deprecated">
  37371. <doc>
  37372. <![CDATA[Exit code on connectivity problems: {@value}.
  37373. <p>
  37374. Approximate HTTP equivalent: {@code 408: Request Timeout}]]>
  37375. </doc>
  37376. </field>
  37377. <field name="EXIT_BAD_CONFIGURATION" type="int"
  37378. transient="false" volatile="false"
  37379. static="true" final="true" visibility="public"
  37380. deprecated="not deprecated">
  37381. <doc>
  37382. <![CDATA[Exit code when the configurations in valid/incomplete: {@value}.
  37383. <p>
  37384. Approximate HTTP equivalent: {@code 409: Conflict}]]>
  37385. </doc>
  37386. </field>
  37387. <field name="EXIT_EXCEPTION_THROWN" type="int"
  37388. transient="false" volatile="false"
  37389. static="true" final="true" visibility="public"
  37390. deprecated="not deprecated">
  37391. <doc>
  37392. <![CDATA[Exit code when an exception was thrown from the service: {@value}.
  37393. <p>
  37394. Approximate HTTP equivalent: {@code 500 Internal Server Error}]]>
  37395. </doc>
  37396. </field>
  37397. <field name="EXIT_UNIMPLEMENTED" type="int"
  37398. transient="false" volatile="false"
  37399. static="true" final="true" visibility="public"
  37400. deprecated="not deprecated">
  37401. <doc>
  37402. <![CDATA[Unimplemented feature: {@value}.
  37403. <p>
  37404. Approximate HTTP equivalent: {@code 501: Not Implemented}]]>
  37405. </doc>
  37406. </field>
  37407. <field name="EXIT_SERVICE_UNAVAILABLE" type="int"
  37408. transient="false" volatile="false"
  37409. static="true" final="true" visibility="public"
  37410. deprecated="not deprecated">
  37411. <doc>
  37412. <![CDATA[Service Unavailable; it may be available later: {@value}.
  37413. <p>
  37414. Approximate HTTP equivalent: {@code 503 Service Unavailable}]]>
  37415. </doc>
  37416. </field>
  37417. <field name="EXIT_UNSUPPORTED_VERSION" type="int"
  37418. transient="false" volatile="false"
  37419. static="true" final="true" visibility="public"
  37420. deprecated="not deprecated">
  37421. <doc>
  37422. <![CDATA[The application does not support, or refuses to support this
  37423. version: {@value}.
  37424. <p>
  37425. If raised, this is expected to be raised server-side and likely due
  37426. to client/server version incompatibilities.
  37427. <p>
  37428. Approximate HTTP equivalent: {@code 505: Version Not Supported}]]>
  37429. </doc>
  37430. </field>
  37431. <field name="EXIT_SERVICE_CREATION_FAILURE" type="int"
  37432. transient="false" volatile="false"
  37433. static="true" final="true" visibility="public"
  37434. deprecated="not deprecated">
  37435. <doc>
  37436. <![CDATA[The service instance could not be created: {@value}.]]>
  37437. </doc>
  37438. </field>
  37439. <field name="EXIT_SERVICE_LIFECYCLE_EXCEPTION" type="int"
  37440. transient="false" volatile="false"
  37441. static="true" final="true" visibility="public"
  37442. deprecated="not deprecated">
  37443. <doc>
  37444. <![CDATA[The service instance could not be created: {@value}.]]>
  37445. </doc>
  37446. </field>
  37447. <doc>
  37448. <![CDATA[Common Exit codes.
  37449. <p>
  37450. Codes with a YARN prefix are YARN-related.
  37451. <p>
  37452. Many of the exit codes are designed to resemble HTTP error codes,
  37453. squashed into a single byte. e.g 44 , "not found" is the equivalent
  37454. of 404. The various 2XX HTTP error codes aren't followed;
  37455. the Unix standard of "0" for success is used.
  37456. <pre>
  37457. 0-10: general command issues
  37458. 30-39: equivalent to the 3XX responses, where those responses are
  37459. considered errors by the application.
  37460. 40-49: client-side/CLI/config problems
  37461. 50-59: service-side problems.
  37462. 60+ : application specific error codes
  37463. </pre>]]>
  37464. </doc>
  37465. </interface>
  37466. <!-- end interface org.apache.hadoop.service.launcher.LauncherExitCodes -->
  37467. <!-- start class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  37468. <class name="ServiceLaunchException" extends="org.apache.hadoop.util.ExitUtil.ExitException"
  37469. abstract="false"
  37470. static="false" final="false" visibility="public"
  37471. deprecated="not deprecated">
  37472. <implements name="org.apache.hadoop.util.ExitCodeProvider"/>
  37473. <implements name="org.apache.hadoop.service.launcher.LauncherExitCodes"/>
  37474. <constructor name="ServiceLaunchException" type="int, java.lang.Throwable"
  37475. static="false" final="false" visibility="public"
  37476. deprecated="not deprecated">
  37477. <doc>
  37478. <![CDATA[Create an exception with the specific exit code.
  37479. @param exitCode exit code
  37480. @param cause cause of the exception]]>
  37481. </doc>
  37482. </constructor>
  37483. <constructor name="ServiceLaunchException" type="int, java.lang.String"
  37484. static="false" final="false" visibility="public"
  37485. deprecated="not deprecated">
  37486. <doc>
  37487. <![CDATA[Create an exception with the specific exit code and text.
  37488. @param exitCode exit code
  37489. @param message message to use in exception]]>
  37490. </doc>
  37491. </constructor>
  37492. <constructor name="ServiceLaunchException" type="int, java.lang.String, java.lang.Object[]"
  37493. static="false" final="false" visibility="public"
  37494. deprecated="not deprecated">
  37495. <doc>
  37496. <![CDATA[Create a formatted exception.
  37497. <p>
  37498. This uses {@link String#format(String, Object...)}
  37499. to build the formatted exception in the ENGLISH locale.
  37500. <p>
  37501. If the last argument is a throwable, it becomes the cause of the exception.
  37502. It will also be used as a parameter for the format.
  37503. @param exitCode exit code
  37504. @param format format for message to use in exception
  37505. @param args list of arguments]]>
  37506. </doc>
  37507. </constructor>
  37508. <doc>
  37509. <![CDATA[A service launch exception that includes an exit code.
  37510. <p>
  37511. When caught by the ServiceLauncher, it will convert that
  37512. into a process exit code.
  37513. The {@link #ServiceLaunchException(int, String, Object...)} constructor
  37514. generates formatted exceptions.]]>
  37515. </doc>
  37516. </class>
  37517. <!-- end class org.apache.hadoop.service.launcher.ServiceLaunchException -->
  37518. </package>
  37519. <package name="org.apache.hadoop.tools">
  37520. </package>
  37521. <package name="org.apache.hadoop.tools.protocolPB">
  37522. </package>
  37523. <package name="org.apache.hadoop.tracing">
  37524. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  37525. <class name="SpanReceiverInfo" extends="java.lang.Object"
  37526. abstract="false"
  37527. static="false" final="false" visibility="public"
  37528. deprecated="not deprecated">
  37529. <method name="getId" return="long"
  37530. abstract="false" native="false" synchronized="false"
  37531. static="false" final="false" visibility="public"
  37532. deprecated="not deprecated">
  37533. </method>
  37534. <method name="getClassName" return="java.lang.String"
  37535. abstract="false" native="false" synchronized="false"
  37536. static="false" final="false" visibility="public"
  37537. deprecated="not deprecated">
  37538. </method>
  37539. </class>
  37540. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  37541. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  37542. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  37543. abstract="false"
  37544. static="false" final="false" visibility="public"
  37545. deprecated="not deprecated">
  37546. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  37547. static="false" final="false" visibility="public"
  37548. deprecated="not deprecated">
  37549. </constructor>
  37550. <method name="addConfigurationPair"
  37551. abstract="false" native="false" synchronized="false"
  37552. static="false" final="false" visibility="public"
  37553. deprecated="not deprecated">
  37554. <param name="key" type="java.lang.String"/>
  37555. <param name="value" type="java.lang.String"/>
  37556. </method>
  37557. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  37558. abstract="false" native="false" synchronized="false"
  37559. static="false" final="false" visibility="public"
  37560. deprecated="not deprecated">
  37561. </method>
  37562. </class>
  37563. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  37564. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  37565. <interface name="TraceAdminProtocol" abstract="true"
  37566. static="false" final="false" visibility="public"
  37567. deprecated="not deprecated">
  37568. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  37569. abstract="false" native="false" synchronized="false"
  37570. static="false" final="false" visibility="public"
  37571. deprecated="not deprecated">
  37572. <exception name="IOException" type="java.io.IOException"/>
  37573. <doc>
  37574. <![CDATA[List the currently active trace span receivers.
  37575. @throws IOException On error.]]>
  37576. </doc>
  37577. </method>
  37578. <method name="addSpanReceiver" return="long"
  37579. abstract="false" native="false" synchronized="false"
  37580. static="false" final="false" visibility="public"
  37581. deprecated="not deprecated">
  37582. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  37583. <exception name="IOException" type="java.io.IOException"/>
  37584. <doc>
  37585. <![CDATA[Add a new trace span receiver.
  37586. @param desc The span receiver description.
  37587. @return The ID of the new trace span receiver.
  37588. @throws IOException On error.]]>
  37589. </doc>
  37590. </method>
  37591. <method name="removeSpanReceiver"
  37592. abstract="false" native="false" synchronized="false"
  37593. static="false" final="false" visibility="public"
  37594. deprecated="not deprecated">
  37595. <param name="spanReceiverId" type="long"/>
  37596. <exception name="IOException" type="java.io.IOException"/>
  37597. <doc>
  37598. <![CDATA[Remove a trace span receiver.
  37599. @param spanReceiverId The id of the span receiver to remove.
  37600. @throws IOException On error.]]>
  37601. </doc>
  37602. </method>
  37603. <field name="versionID" type="long"
  37604. transient="false" volatile="false"
  37605. static="true" final="true" visibility="public"
  37606. deprecated="not deprecated">
  37607. </field>
  37608. <doc>
  37609. <![CDATA[Protocol interface that provides tracing.]]>
  37610. </doc>
  37611. </interface>
  37612. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  37613. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  37614. <interface name="TraceAdminProtocolPB" abstract="true"
  37615. static="false" final="false" visibility="public"
  37616. deprecated="not deprecated">
  37617. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  37618. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  37619. </interface>
  37620. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  37621. </package>
  37622. <package name="org.apache.hadoop.util">
  37623. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  37624. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  37625. abstract="false"
  37626. static="false" final="false" visibility="public"
  37627. deprecated="not deprecated">
  37628. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  37629. static="false" final="false" visibility="public"
  37630. deprecated="not deprecated">
  37631. </constructor>
  37632. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  37633. static="false" final="false" visibility="public"
  37634. deprecated="not deprecated">
  37635. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  37636. </constructor>
  37637. <method name="getResource" return="java.net.URL"
  37638. abstract="false" native="false" synchronized="false"
  37639. static="false" final="false" visibility="public"
  37640. deprecated="not deprecated">
  37641. <param name="name" type="java.lang.String"/>
  37642. </method>
  37643. <method name="loadClass" return="java.lang.Class"
  37644. abstract="false" native="false" synchronized="false"
  37645. static="false" final="false" visibility="public"
  37646. deprecated="not deprecated">
  37647. <param name="name" type="java.lang.String"/>
  37648. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37649. </method>
  37650. <method name="loadClass" return="java.lang.Class"
  37651. abstract="false" native="false" synchronized="true"
  37652. static="false" final="false" visibility="protected"
  37653. deprecated="not deprecated">
  37654. <param name="name" type="java.lang.String"/>
  37655. <param name="resolve" type="boolean"/>
  37656. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  37657. </method>
  37658. <method name="isSystemClass" return="boolean"
  37659. abstract="false" native="false" synchronized="false"
  37660. static="true" final="false" visibility="public"
  37661. deprecated="not deprecated">
  37662. <param name="name" type="java.lang.String"/>
  37663. <param name="systemClasses" type="java.util.List"/>
  37664. <doc>
  37665. <![CDATA[Checks if a class should be included as a system class.
  37666. A class is a system class if and only if it matches one of the positive
  37667. patterns and none of the negative ones.
  37668. @param name the class name to check
  37669. @param systemClasses a list of system class configurations.
  37670. @return true if the class is a system class]]>
  37671. </doc>
  37672. </method>
  37673. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  37674. transient="false" volatile="false"
  37675. static="true" final="true" visibility="public"
  37676. deprecated="not deprecated">
  37677. <doc>
  37678. <![CDATA[Default value of the system classes if the user did not override them.
  37679. JDK classes, hadoop classes and resources, and some select third-party
  37680. classes are considered system classes, and are not loaded by the
  37681. application classloader.]]>
  37682. </doc>
  37683. </field>
  37684. <doc>
  37685. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  37686. application JARs are loaded in preference to the parent loader.]]>
  37687. </doc>
  37688. </class>
  37689. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  37690. <!-- start interface org.apache.hadoop.util.IPList -->
  37691. <interface name="IPList" abstract="true"
  37692. static="false" final="false" visibility="public"
  37693. deprecated="not deprecated">
  37694. <method name="isIn" return="boolean"
  37695. abstract="false" native="false" synchronized="false"
  37696. static="false" final="false" visibility="public"
  37697. deprecated="not deprecated">
  37698. <param name="ipAddress" type="java.lang.String"/>
  37699. <doc>
  37700. <![CDATA[returns true if the ipAddress is in the IPList.
  37701. @param ipAddress
  37702. @return boolean value indicating whether the ipAddress is in the IPList]]>
  37703. </doc>
  37704. </method>
  37705. </interface>
  37706. <!-- end interface org.apache.hadoop.util.IPList -->
  37707. <!-- start interface org.apache.hadoop.util.Progressable -->
  37708. <interface name="Progressable" abstract="true"
  37709. static="false" final="false" visibility="public"
  37710. deprecated="not deprecated">
  37711. <method name="progress"
  37712. abstract="false" native="false" synchronized="false"
  37713. static="false" final="false" visibility="public"
  37714. deprecated="not deprecated">
  37715. <doc>
  37716. <![CDATA[Report progress to the Hadoop framework.]]>
  37717. </doc>
  37718. </method>
  37719. <doc>
  37720. <![CDATA[A facility for reporting progress.
  37721. <p>Clients and/or applications can use the provided <code>Progressable</code>
  37722. to explicitly report progress to the Hadoop framework. This is especially
  37723. important for operations which take significant amount of time since,
  37724. in-lieu of the reported progress, the framework has to assume that an error
  37725. has occured and time-out the operation.</p>]]>
  37726. </doc>
  37727. </interface>
  37728. <!-- end interface org.apache.hadoop.util.Progressable -->
  37729. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  37730. <class name="PureJavaCrc32" extends="java.lang.Object"
  37731. abstract="false"
  37732. static="false" final="false" visibility="public"
  37733. deprecated="not deprecated">
  37734. <implements name="java.util.zip.Checksum"/>
  37735. <constructor name="PureJavaCrc32"
  37736. static="false" final="false" visibility="public"
  37737. deprecated="not deprecated">
  37738. <doc>
  37739. <![CDATA[Create a new PureJavaCrc32 object.]]>
  37740. </doc>
  37741. </constructor>
  37742. <method name="getValue" return="long"
  37743. abstract="false" native="false" synchronized="false"
  37744. static="false" final="false" visibility="public"
  37745. deprecated="not deprecated">
  37746. </method>
  37747. <method name="reset"
  37748. abstract="false" native="false" synchronized="false"
  37749. static="false" final="false" visibility="public"
  37750. deprecated="not deprecated">
  37751. </method>
  37752. <method name="update"
  37753. abstract="false" native="false" synchronized="false"
  37754. static="false" final="false" visibility="public"
  37755. deprecated="not deprecated">
  37756. <param name="b" type="byte[]"/>
  37757. <param name="offset" type="int"/>
  37758. <param name="len" type="int"/>
  37759. </method>
  37760. <method name="update"
  37761. abstract="false" native="false" synchronized="false"
  37762. static="false" final="true" visibility="public"
  37763. deprecated="not deprecated">
  37764. <param name="b" type="int"/>
  37765. </method>
  37766. <doc>
  37767. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  37768. the same polynomial as the built-in native CRC32.
  37769. This is to avoid the JNI overhead for certain uses of Checksumming
  37770. where many small pieces of data are checksummed in succession.
  37771. The current version is ~10x to 1.8x as fast as Sun's native
  37772. java.util.zip.CRC32 in Java 1.6
  37773. @see java.util.zip.CRC32]]>
  37774. </doc>
  37775. </class>
  37776. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  37777. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  37778. <class name="PureJavaCrc32C" extends="java.lang.Object"
  37779. abstract="false"
  37780. static="false" final="false" visibility="public"
  37781. deprecated="not deprecated">
  37782. <implements name="java.util.zip.Checksum"/>
  37783. <constructor name="PureJavaCrc32C"
  37784. static="false" final="false" visibility="public"
  37785. deprecated="not deprecated">
  37786. <doc>
  37787. <![CDATA[Create a new PureJavaCrc32 object.]]>
  37788. </doc>
  37789. </constructor>
  37790. <method name="getValue" return="long"
  37791. abstract="false" native="false" synchronized="false"
  37792. static="false" final="false" visibility="public"
  37793. deprecated="not deprecated">
  37794. </method>
  37795. <method name="reset"
  37796. abstract="false" native="false" synchronized="false"
  37797. static="false" final="false" visibility="public"
  37798. deprecated="not deprecated">
  37799. </method>
  37800. <method name="update"
  37801. abstract="false" native="false" synchronized="false"
  37802. static="false" final="false" visibility="public"
  37803. deprecated="not deprecated">
  37804. <param name="b" type="byte[]"/>
  37805. <param name="off" type="int"/>
  37806. <param name="len" type="int"/>
  37807. </method>
  37808. <method name="update"
  37809. abstract="false" native="false" synchronized="false"
  37810. static="false" final="true" visibility="public"
  37811. deprecated="not deprecated">
  37812. <param name="b" type="int"/>
  37813. </method>
  37814. <doc>
  37815. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  37816. the CRC32-C polynomial, the same polynomial used by iSCSI
  37817. and implemented on many Intel chipsets supporting SSE4.2.]]>
  37818. </doc>
  37819. </class>
  37820. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  37821. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  37822. <class name="ReflectionUtils" extends="java.lang.Object"
  37823. abstract="false"
  37824. static="false" final="false" visibility="public"
  37825. deprecated="not deprecated">
  37826. <constructor name="ReflectionUtils"
  37827. static="false" final="false" visibility="public"
  37828. deprecated="not deprecated">
  37829. </constructor>
  37830. <method name="setConf"
  37831. abstract="false" native="false" synchronized="false"
  37832. static="true" final="false" visibility="public"
  37833. deprecated="not deprecated">
  37834. <param name="theObject" type="java.lang.Object"/>
  37835. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37836. <doc>
  37837. <![CDATA[Check and set 'configuration' if necessary.
  37838. @param theObject object for which to set configuration
  37839. @param conf Configuration]]>
  37840. </doc>
  37841. </method>
  37842. <method name="newInstance" return="T"
  37843. abstract="false" native="false" synchronized="false"
  37844. static="true" final="false" visibility="public"
  37845. deprecated="not deprecated">
  37846. <param name="theClass" type="java.lang.Class"/>
  37847. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37848. <doc>
  37849. <![CDATA[Create an object for the given class and initialize it from conf
  37850. @param theClass class of which an object is created
  37851. @param conf Configuration
  37852. @return a new object]]>
  37853. </doc>
  37854. </method>
  37855. <method name="setContentionTracing"
  37856. abstract="false" native="false" synchronized="false"
  37857. static="true" final="false" visibility="public"
  37858. deprecated="not deprecated">
  37859. <param name="val" type="boolean"/>
  37860. </method>
  37861. <method name="printThreadInfo"
  37862. abstract="false" native="false" synchronized="true"
  37863. static="true" final="false" visibility="public"
  37864. deprecated="not deprecated">
  37865. <param name="stream" type="java.io.PrintStream"/>
  37866. <param name="title" type="java.lang.String"/>
  37867. <doc>
  37868. <![CDATA[Print all of the thread's information and stack traces.
  37869. @param stream the stream to
  37870. @param title a string title for the stack trace]]>
  37871. </doc>
  37872. </method>
  37873. <method name="logThreadInfo"
  37874. abstract="false" native="false" synchronized="false"
  37875. static="true" final="false" visibility="public"
  37876. deprecated="not deprecated">
  37877. <param name="log" type="org.apache.commons.logging.Log"/>
  37878. <param name="title" type="java.lang.String"/>
  37879. <param name="minInterval" type="long"/>
  37880. <doc>
  37881. <![CDATA[Log the current thread stacks at INFO level.
  37882. @param log the logger that logs the stack trace
  37883. @param title a descriptive title for the call stacks
  37884. @param minInterval the minimum time from the last]]>
  37885. </doc>
  37886. </method>
  37887. <method name="logThreadInfo"
  37888. abstract="false" native="false" synchronized="false"
  37889. static="true" final="false" visibility="public"
  37890. deprecated="not deprecated">
  37891. <param name="log" type="org.slf4j.Logger"/>
  37892. <param name="title" type="java.lang.String"/>
  37893. <param name="minInterval" type="long"/>
  37894. <doc>
  37895. <![CDATA[Log the current thread stacks at INFO level.
  37896. @param log the logger that logs the stack trace
  37897. @param title a descriptive title for the call stacks
  37898. @param minInterval the minimum time from the last]]>
  37899. </doc>
  37900. </method>
  37901. <method name="getClass" return="java.lang.Class"
  37902. abstract="false" native="false" synchronized="false"
  37903. static="true" final="false" visibility="public"
  37904. deprecated="not deprecated">
  37905. <param name="o" type="T"/>
  37906. <doc>
  37907. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  37908. @param o object whose correctly-typed <code>Class</code> is to be obtained
  37909. @return the correctly typed <code>Class</code> of the given object.]]>
  37910. </doc>
  37911. </method>
  37912. <method name="copy" return="T"
  37913. abstract="false" native="false" synchronized="false"
  37914. static="true" final="false" visibility="public"
  37915. deprecated="not deprecated">
  37916. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37917. <param name="src" type="T"/>
  37918. <param name="dst" type="T"/>
  37919. <exception name="IOException" type="java.io.IOException"/>
  37920. <doc>
  37921. <![CDATA[Make a copy of the writable object using serialization to a buffer
  37922. @param src the object to copy from
  37923. @param dst the object to copy into, which is destroyed
  37924. @return dst param (the copy)
  37925. @throws IOException]]>
  37926. </doc>
  37927. </method>
  37928. <method name="cloneWritableInto"
  37929. abstract="false" native="false" synchronized="false"
  37930. static="true" final="false" visibility="public"
  37931. deprecated="not deprecated">
  37932. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  37933. <param name="src" type="org.apache.hadoop.io.Writable"/>
  37934. <exception name="IOException" type="java.io.IOException"/>
  37935. </method>
  37936. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  37937. abstract="false" native="false" synchronized="false"
  37938. static="true" final="false" visibility="public"
  37939. deprecated="not deprecated">
  37940. <param name="clazz" type="java.lang.Class"/>
  37941. <doc>
  37942. <![CDATA[Gets all the declared fields of a class including fields declared in
  37943. superclasses.]]>
  37944. </doc>
  37945. </method>
  37946. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  37947. abstract="false" native="false" synchronized="false"
  37948. static="true" final="false" visibility="public"
  37949. deprecated="not deprecated">
  37950. <param name="clazz" type="java.lang.Class"/>
  37951. <doc>
  37952. <![CDATA[Gets all the declared methods of a class including methods declared in
  37953. superclasses.]]>
  37954. </doc>
  37955. </method>
  37956. <doc>
  37957. <![CDATA[General reflection utils]]>
  37958. </doc>
  37959. </class>
  37960. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  37961. <!-- start class org.apache.hadoop.util.Shell -->
  37962. <class name="Shell" extends="java.lang.Object"
  37963. abstract="true"
  37964. static="false" final="false" visibility="public"
  37965. deprecated="not deprecated">
  37966. <constructor name="Shell"
  37967. static="false" final="false" visibility="protected"
  37968. deprecated="not deprecated">
  37969. <doc>
  37970. <![CDATA[Create an instance with no minimum interval between runs; stderr is
  37971. not merged with stdout.]]>
  37972. </doc>
  37973. </constructor>
  37974. <constructor name="Shell" type="long"
  37975. static="false" final="false" visibility="protected"
  37976. deprecated="not deprecated">
  37977. <doc>
  37978. <![CDATA[Create an instance with a minimum interval between executions; stderr is
  37979. not merged with stdout.
  37980. @param interval interval in milliseconds between command executions.]]>
  37981. </doc>
  37982. </constructor>
  37983. <constructor name="Shell" type="long, boolean"
  37984. static="false" final="false" visibility="protected"
  37985. deprecated="not deprecated">
  37986. <doc>
  37987. <![CDATA[Create a shell instance which can be re-executed when the {@link #run()}
  37988. method is invoked with a given elapsed time between calls.
  37989. @param interval the minimum duration in milliseconds to wait before
  37990. re-executing the command. If set to 0, there is no minimum.
  37991. @param redirectErrorStream should the error stream be merged with
  37992. the normal output stream?]]>
  37993. </doc>
  37994. </constructor>
  37995. <method name="isJava7OrAbove" return="boolean"
  37996. abstract="false" native="false" synchronized="false"
  37997. static="true" final="false" visibility="public"
  37998. deprecated="This call isn't needed any more: please remove uses of it.">
  37999. <doc>
  38000. <![CDATA[query to see if system is Java 7 or later.
  38001. Now that Hadoop requires Java 7 or later, this always returns true.
  38002. @deprecated This call isn't needed any more: please remove uses of it.
  38003. @return true, always.]]>
  38004. </doc>
  38005. </method>
  38006. <method name="checkWindowsCommandLineLength"
  38007. abstract="false" native="false" synchronized="false"
  38008. static="true" final="false" visibility="public"
  38009. deprecated="not deprecated">
  38010. <param name="commands" type="java.lang.String[]"/>
  38011. <exception name="IOException" type="java.io.IOException"/>
  38012. <doc>
  38013. <![CDATA[Checks if a given command (String[]) fits in the Windows maximum command
  38014. line length Note that the input is expected to already include space
  38015. delimiters, no extra count will be added for delimiters.
  38016. @param commands command parts, including any space delimiters]]>
  38017. </doc>
  38018. </method>
  38019. <method name="getGroupsCommand" return="java.lang.String[]"
  38020. abstract="false" native="false" synchronized="false"
  38021. static="true" final="false" visibility="public"
  38022. deprecated="not deprecated">
  38023. <doc>
  38024. <![CDATA[a Unix command to get the current user's groups list.]]>
  38025. </doc>
  38026. </method>
  38027. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  38028. abstract="false" native="false" synchronized="false"
  38029. static="true" final="false" visibility="public"
  38030. deprecated="not deprecated">
  38031. <param name="user" type="java.lang.String"/>
  38032. <doc>
  38033. <![CDATA[A command to get a given user's groups list.
  38034. If the OS is not WINDOWS, the command will get the user's primary group
  38035. first and finally get the groups list which includes the primary group.
  38036. i.e. the user's primary group will be included twice.]]>
  38037. </doc>
  38038. </method>
  38039. <method name="getGroupsIDForUserCommand" return="java.lang.String[]"
  38040. abstract="false" native="false" synchronized="false"
  38041. static="true" final="false" visibility="public"
  38042. deprecated="not deprecated">
  38043. <param name="user" type="java.lang.String"/>
  38044. <doc>
  38045. <![CDATA[A command to get a given user's group id list.
  38046. The command will get the user's primary group
  38047. first and finally get the groups list which includes the primary group.
  38048. i.e. the user's primary group will be included twice.
  38049. This command does not support Windows and will only return group names.]]>
  38050. </doc>
  38051. </method>
  38052. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  38053. abstract="false" native="false" synchronized="false"
  38054. static="true" final="false" visibility="public"
  38055. deprecated="not deprecated">
  38056. <param name="netgroup" type="java.lang.String"/>
  38057. <doc>
  38058. <![CDATA[A command to get a given netgroup's user list.]]>
  38059. </doc>
  38060. </method>
  38061. <method name="getGetPermissionCommand" return="java.lang.String[]"
  38062. abstract="false" native="false" synchronized="false"
  38063. static="true" final="false" visibility="public"
  38064. deprecated="not deprecated">
  38065. <doc>
  38066. <![CDATA[Return a command to get permission information.]]>
  38067. </doc>
  38068. </method>
  38069. <method name="getSetPermissionCommand" return="java.lang.String[]"
  38070. abstract="false" native="false" synchronized="false"
  38071. static="true" final="false" visibility="public"
  38072. deprecated="not deprecated">
  38073. <param name="perm" type="java.lang.String"/>
  38074. <param name="recursive" type="boolean"/>
  38075. <doc>
  38076. <![CDATA[Return a command to set permission.]]>
  38077. </doc>
  38078. </method>
  38079. <method name="getSetPermissionCommand" return="java.lang.String[]"
  38080. abstract="false" native="false" synchronized="false"
  38081. static="true" final="false" visibility="public"
  38082. deprecated="not deprecated">
  38083. <param name="perm" type="java.lang.String"/>
  38084. <param name="recursive" type="boolean"/>
  38085. <param name="file" type="java.lang.String"/>
  38086. <doc>
  38087. <![CDATA[Return a command to set permission for specific file.
  38088. @param perm String permission to set
  38089. @param recursive boolean true to apply to all sub-directories recursively
  38090. @param file String file to set
  38091. @return String[] containing command and arguments]]>
  38092. </doc>
  38093. </method>
  38094. <method name="getSetOwnerCommand" return="java.lang.String[]"
  38095. abstract="false" native="false" synchronized="false"
  38096. static="true" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <param name="owner" type="java.lang.String"/>
  38099. <doc>
  38100. <![CDATA[Return a command to set owner.]]>
  38101. </doc>
  38102. </method>
  38103. <method name="getSymlinkCommand" return="java.lang.String[]"
  38104. abstract="false" native="false" synchronized="false"
  38105. static="true" final="false" visibility="public"
  38106. deprecated="not deprecated">
  38107. <param name="target" type="java.lang.String"/>
  38108. <param name="link" type="java.lang.String"/>
  38109. <doc>
  38110. <![CDATA[Return a command to create symbolic links.]]>
  38111. </doc>
  38112. </method>
  38113. <method name="getReadlinkCommand" return="java.lang.String[]"
  38114. abstract="false" native="false" synchronized="false"
  38115. static="true" final="false" visibility="public"
  38116. deprecated="not deprecated">
  38117. <param name="link" type="java.lang.String"/>
  38118. <doc>
  38119. <![CDATA[Return a command to read the target of the a symbolic link.]]>
  38120. </doc>
  38121. </method>
  38122. <method name="getCheckProcessIsAliveCommand" return="java.lang.String[]"
  38123. abstract="false" native="false" synchronized="false"
  38124. static="true" final="false" visibility="public"
  38125. deprecated="not deprecated">
  38126. <param name="pid" type="java.lang.String"/>
  38127. <doc>
  38128. <![CDATA[Return a command for determining if process with specified pid is alive.
  38129. @param pid process ID
  38130. @return a <code>kill -0</code> command or equivalent]]>
  38131. </doc>
  38132. </method>
  38133. <method name="getSignalKillCommand" return="java.lang.String[]"
  38134. abstract="false" native="false" synchronized="false"
  38135. static="true" final="false" visibility="public"
  38136. deprecated="not deprecated">
  38137. <param name="code" type="int"/>
  38138. <param name="pid" type="java.lang.String"/>
  38139. <doc>
  38140. <![CDATA[Return a command to send a signal to a given pid.]]>
  38141. </doc>
  38142. </method>
  38143. <method name="getEnvironmentVariableRegex" return="java.lang.String"
  38144. abstract="false" native="false" synchronized="false"
  38145. static="true" final="false" visibility="public"
  38146. deprecated="not deprecated">
  38147. <doc>
  38148. <![CDATA[Return a regular expression string that match environment variables.]]>
  38149. </doc>
  38150. </method>
  38151. <method name="appendScriptExtension" return="java.io.File"
  38152. abstract="false" native="false" synchronized="false"
  38153. static="true" final="false" visibility="public"
  38154. deprecated="not deprecated">
  38155. <param name="parent" type="java.io.File"/>
  38156. <param name="basename" type="java.lang.String"/>
  38157. <doc>
  38158. <![CDATA[Returns a File referencing a script with the given basename, inside the
  38159. given parent directory. The file extension is inferred by platform:
  38160. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  38161. @param parent File parent directory
  38162. @param basename String script file basename
  38163. @return File referencing the script in the directory]]>
  38164. </doc>
  38165. </method>
  38166. <method name="appendScriptExtension" return="java.lang.String"
  38167. abstract="false" native="false" synchronized="false"
  38168. static="true" final="false" visibility="public"
  38169. deprecated="not deprecated">
  38170. <param name="basename" type="java.lang.String"/>
  38171. <doc>
  38172. <![CDATA[Returns a script file name with the given basename.
  38173. The file extension is inferred by platform:
  38174. <code>".cmd"</code> on Windows, or <code>".sh"</code> otherwise.
  38175. @param basename String script file basename
  38176. @return String script file name]]>
  38177. </doc>
  38178. </method>
  38179. <method name="getRunScriptCommand" return="java.lang.String[]"
  38180. abstract="false" native="false" synchronized="false"
  38181. static="true" final="false" visibility="public"
  38182. deprecated="not deprecated">
  38183. <param name="script" type="java.io.File"/>
  38184. <doc>
  38185. <![CDATA[Returns a command to run the given script. The script interpreter is
  38186. inferred by platform: cmd on Windows or bash otherwise.
  38187. @param script File script to run
  38188. @return String[] command to run the script]]>
  38189. </doc>
  38190. </method>
  38191. <method name="getHadoopHome" return="java.lang.String"
  38192. abstract="false" native="false" synchronized="false"
  38193. static="true" final="false" visibility="public"
  38194. deprecated="not deprecated">
  38195. <exception name="IOException" type="java.io.IOException"/>
  38196. <doc>
  38197. <![CDATA[Get the Hadoop home directory. Raises an exception if not found
  38198. @return the home dir
  38199. @throws IOException if the home directory cannot be located.]]>
  38200. </doc>
  38201. </method>
  38202. <method name="getQualifiedBin" return="java.io.File"
  38203. abstract="false" native="false" synchronized="false"
  38204. static="true" final="false" visibility="public"
  38205. deprecated="not deprecated">
  38206. <param name="executable" type="java.lang.String"/>
  38207. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  38208. <doc>
  38209. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  38210. bin location. This is primarily useful for disambiguating call-outs
  38211. to executable sub-components of Hadoop to avoid clashes with other
  38212. executables that may be in the path. Caveat: this call doesn't
  38213. just format the path to the bin directory. It also checks for file
  38214. existence of the composed path. The output of this call should be
  38215. cached by callers.
  38216. @param executable executable
  38217. @return executable file reference
  38218. @throws FileNotFoundException if the path does not exist]]>
  38219. </doc>
  38220. </method>
  38221. <method name="getQualifiedBinPath" return="java.lang.String"
  38222. abstract="false" native="false" synchronized="false"
  38223. static="true" final="false" visibility="public"
  38224. deprecated="not deprecated">
  38225. <param name="executable" type="java.lang.String"/>
  38226. <exception name="IOException" type="java.io.IOException"/>
  38227. <doc>
  38228. <![CDATA[Fully qualify the path to a binary that should be in a known hadoop
  38229. bin location. This is primarily useful for disambiguating call-outs
  38230. to executable sub-components of Hadoop to avoid clashes with other
  38231. executables that may be in the path. Caveat: this call doesn't
  38232. just format the path to the bin directory. It also checks for file
  38233. existence of the composed path. The output of this call should be
  38234. cached by callers.
  38235. @param executable executable
  38236. @return executable file reference
  38237. @throws FileNotFoundException if the path does not exist
  38238. @throws IOException on path canonicalization failures]]>
  38239. </doc>
  38240. </method>
  38241. <method name="hasWinutilsPath" return="boolean"
  38242. abstract="false" native="false" synchronized="false"
  38243. static="true" final="false" visibility="public"
  38244. deprecated="not deprecated">
  38245. <doc>
  38246. <![CDATA[Predicate to indicate whether or not the path to winutils is known.
  38247. If true, then {@link #WINUTILS} is non-null, and both
  38248. {@link #getWinUtilsPath()} and {@link #getWinUtilsFile()}
  38249. will successfully return this value. Always false on non-windows systems.
  38250. @return true if there is a valid path to the binary]]>
  38251. </doc>
  38252. </method>
  38253. <method name="getWinUtilsPath" return="java.lang.String"
  38254. abstract="false" native="false" synchronized="false"
  38255. static="true" final="false" visibility="public"
  38256. deprecated="not deprecated">
  38257. <doc>
  38258. <![CDATA[Locate the winutils binary, or fail with a meaningful
  38259. exception and stack trace as an RTE.
  38260. This method is for use in methods which don't explicitly throw
  38261. an <code>IOException</code>.
  38262. @return the path to {@link #WINUTILS_EXE}
  38263. @throws RuntimeException if the path is not resolvable]]>
  38264. </doc>
  38265. </method>
  38266. <method name="getWinUtilsFile" return="java.io.File"
  38267. abstract="false" native="false" synchronized="false"
  38268. static="true" final="false" visibility="public"
  38269. deprecated="not deprecated">
  38270. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  38271. <doc>
  38272. <![CDATA[Get a file reference to winutils.
  38273. Always raises an exception if there isn't one
  38274. @return the file instance referring to the winutils bin.
  38275. @throws FileNotFoundException on any failure to locate that file.]]>
  38276. </doc>
  38277. </method>
  38278. <method name="checkIsBashSupported" return="boolean"
  38279. abstract="false" native="false" synchronized="false"
  38280. static="true" final="false" visibility="public"
  38281. deprecated="not deprecated">
  38282. <exception name="InterruptedIOException" type="java.io.InterruptedIOException"/>
  38283. </method>
  38284. <method name="setEnvironment"
  38285. abstract="false" native="false" synchronized="false"
  38286. static="false" final="false" visibility="protected"
  38287. deprecated="not deprecated">
  38288. <param name="env" type="java.util.Map"/>
  38289. <doc>
  38290. <![CDATA[Set the environment for the command.
  38291. @param env Mapping of environment variables]]>
  38292. </doc>
  38293. </method>
  38294. <method name="setWorkingDirectory"
  38295. abstract="false" native="false" synchronized="false"
  38296. static="false" final="false" visibility="protected"
  38297. deprecated="not deprecated">
  38298. <param name="dir" type="java.io.File"/>
  38299. <doc>
  38300. <![CDATA[Set the working directory.
  38301. @param dir The directory where the command will be executed]]>
  38302. </doc>
  38303. </method>
  38304. <method name="run"
  38305. abstract="false" native="false" synchronized="false"
  38306. static="false" final="false" visibility="protected"
  38307. deprecated="not deprecated">
  38308. <exception name="IOException" type="java.io.IOException"/>
  38309. <doc>
  38310. <![CDATA[Check to see if a command needs to be executed and execute if needed.]]>
  38311. </doc>
  38312. </method>
  38313. <method name="getExecString" return="java.lang.String[]"
  38314. abstract="true" native="false" synchronized="false"
  38315. static="false" final="false" visibility="protected"
  38316. deprecated="not deprecated">
  38317. <doc>
  38318. <![CDATA[return an array containing the command name and its parameters.]]>
  38319. </doc>
  38320. </method>
  38321. <method name="parseExecResult"
  38322. abstract="true" native="false" synchronized="false"
  38323. static="false" final="false" visibility="protected"
  38324. deprecated="not deprecated">
  38325. <param name="lines" type="java.io.BufferedReader"/>
  38326. <exception name="IOException" type="java.io.IOException"/>
  38327. <doc>
  38328. <![CDATA[Parse the execution result]]>
  38329. </doc>
  38330. </method>
  38331. <method name="getEnvironment" return="java.lang.String"
  38332. abstract="false" native="false" synchronized="false"
  38333. static="false" final="false" visibility="public"
  38334. deprecated="not deprecated">
  38335. <param name="env" type="java.lang.String"/>
  38336. <doc>
  38337. <![CDATA[Get an environment variable.
  38338. @param env the environment var
  38339. @return the value or null if it was unset.]]>
  38340. </doc>
  38341. </method>
  38342. <method name="getProcess" return="java.lang.Process"
  38343. abstract="false" native="false" synchronized="false"
  38344. static="false" final="false" visibility="public"
  38345. deprecated="not deprecated">
  38346. <doc>
  38347. <![CDATA[get the current sub-process executing the given command.
  38348. @return process executing the command]]>
  38349. </doc>
  38350. </method>
  38351. <method name="getExitCode" return="int"
  38352. abstract="false" native="false" synchronized="false"
  38353. static="false" final="false" visibility="public"
  38354. deprecated="not deprecated">
  38355. <doc>
  38356. <![CDATA[get the exit code.
  38357. @return the exit code of the process]]>
  38358. </doc>
  38359. </method>
  38360. <method name="getWaitingThread" return="java.lang.Thread"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <doc>
  38365. <![CDATA[get the thread that is waiting on this instance of <code>Shell</code>.
  38366. @return the thread that ran runCommand() that spawned this shell
  38367. or null if no thread is waiting for this shell to complete]]>
  38368. </doc>
  38369. </method>
  38370. <method name="isTimedOut" return="boolean"
  38371. abstract="false" native="false" synchronized="false"
  38372. static="false" final="false" visibility="public"
  38373. deprecated="not deprecated">
  38374. <doc>
  38375. <![CDATA[To check if the passed script to shell command executor timed out or
  38376. not.
  38377. @return if the script timed out.]]>
  38378. </doc>
  38379. </method>
  38380. <method name="execCommand" return="java.lang.String"
  38381. abstract="false" native="false" synchronized="false"
  38382. static="true" final="false" visibility="public"
  38383. deprecated="not deprecated">
  38384. <param name="cmd" type="java.lang.String[]"/>
  38385. <exception name="IOException" type="java.io.IOException"/>
  38386. <doc>
  38387. <![CDATA[Static method to execute a shell command.
  38388. Covers most of the simple cases without requiring the user to implement
  38389. the <code>Shell</code> interface.
  38390. @param cmd shell command to execute.
  38391. @return the output of the executed command.]]>
  38392. </doc>
  38393. </method>
  38394. <method name="execCommand" return="java.lang.String"
  38395. abstract="false" native="false" synchronized="false"
  38396. static="true" final="false" visibility="public"
  38397. deprecated="not deprecated">
  38398. <param name="env" type="java.util.Map"/>
  38399. <param name="cmd" type="java.lang.String[]"/>
  38400. <param name="timeout" type="long"/>
  38401. <exception name="IOException" type="java.io.IOException"/>
  38402. <doc>
  38403. <![CDATA[Static method to execute a shell command.
  38404. Covers most of the simple cases without requiring the user to implement
  38405. the <code>Shell</code> interface.
  38406. @param env the map of environment key=value
  38407. @param cmd shell command to execute.
  38408. @param timeout time in milliseconds after which script should be marked timeout
  38409. @return the output of the executed command.
  38410. @throws IOException on any problem.]]>
  38411. </doc>
  38412. </method>
  38413. <method name="execCommand" return="java.lang.String"
  38414. abstract="false" native="false" synchronized="false"
  38415. static="true" final="false" visibility="public"
  38416. deprecated="not deprecated">
  38417. <param name="env" type="java.util.Map"/>
  38418. <param name="cmd" type="java.lang.String[]"/>
  38419. <exception name="IOException" type="java.io.IOException"/>
  38420. <doc>
  38421. <![CDATA[Static method to execute a shell command.
  38422. Covers most of the simple cases without requiring the user to implement
  38423. the <code>Shell</code> interface.
  38424. @param env the map of environment key=value
  38425. @param cmd shell command to execute.
  38426. @return the output of the executed command.
  38427. @throws IOException on any problem.]]>
  38428. </doc>
  38429. </method>
  38430. <method name="destroyAllShellProcesses"
  38431. abstract="false" native="false" synchronized="false"
  38432. static="true" final="false" visibility="public"
  38433. deprecated="not deprecated">
  38434. <doc>
  38435. <![CDATA[Static method to destroy all running <code>Shell</code> processes.
  38436. Iterates through a map of all currently running <code>Shell</code>
  38437. processes and destroys them one by one. This method is thread safe]]>
  38438. </doc>
  38439. </method>
  38440. <method name="getAllShells" return="java.util.Set"
  38441. abstract="false" native="false" synchronized="false"
  38442. static="true" final="false" visibility="public"
  38443. deprecated="not deprecated">
  38444. <doc>
  38445. <![CDATA[Static method to return a Set of all <code>Shell</code> objects.]]>
  38446. </doc>
  38447. </method>
  38448. <method name="getMemlockLimit" return="java.lang.Long"
  38449. abstract="false" native="false" synchronized="false"
  38450. static="true" final="false" visibility="public"
  38451. deprecated="not deprecated">
  38452. <param name="ulimit" type="java.lang.Long"/>
  38453. <doc>
  38454. <![CDATA[Static method to return the memory lock limit for datanode.
  38455. @param ulimit max value at which memory locked should be capped.
  38456. @return long value specifying the memory lock limit.]]>
  38457. </doc>
  38458. </method>
  38459. <field name="LOG" type="org.slf4j.Logger"
  38460. transient="false" volatile="false"
  38461. static="true" final="true" visibility="public"
  38462. deprecated="not deprecated">
  38463. </field>
  38464. <field name="SYSPROP_HADOOP_HOME_DIR" type="java.lang.String"
  38465. transient="false" volatile="false"
  38466. static="true" final="true" visibility="public"
  38467. deprecated="not deprecated">
  38468. <doc>
  38469. <![CDATA[System property for the Hadoop home directory: {@value}.]]>
  38470. </doc>
  38471. </field>
  38472. <field name="ENV_HADOOP_HOME" type="java.lang.String"
  38473. transient="false" volatile="false"
  38474. static="true" final="true" visibility="public"
  38475. deprecated="not deprecated">
  38476. <doc>
  38477. <![CDATA[Environment variable for Hadoop's home dir: {@value}.]]>
  38478. </doc>
  38479. </field>
  38480. <field name="WINDOWS_MAX_SHELL_LENGTH" type="int"
  38481. transient="false" volatile="false"
  38482. static="true" final="true" visibility="public"
  38483. deprecated="not deprecated">
  38484. <doc>
  38485. <![CDATA[Maximum command line length in Windows
  38486. KB830473 documents this as 8191]]>
  38487. </doc>
  38488. </field>
  38489. <field name="WINDOWS_MAX_SHELL_LENGHT" type="int"
  38490. transient="false" volatile="false"
  38491. static="true" final="true" visibility="public"
  38492. deprecated="use the correctly spelled constant.">
  38493. <doc>
  38494. <![CDATA[mis-spelling of {@link #WINDOWS_MAX_SHELL_LENGTH}.
  38495. @deprecated use the correctly spelled constant.]]>
  38496. </doc>
  38497. </field>
  38498. <field name="USER_NAME_COMMAND" type="java.lang.String"
  38499. transient="false" volatile="false"
  38500. static="true" final="true" visibility="public"
  38501. deprecated="not deprecated">
  38502. <doc>
  38503. <![CDATA[a Unix command to get the current user's name: {@value}.]]>
  38504. </doc>
  38505. </field>
  38506. <field name="WindowsProcessLaunchLock" type="java.lang.Object"
  38507. transient="false" volatile="false"
  38508. static="true" final="true" visibility="public"
  38509. deprecated="not deprecated">
  38510. <doc>
  38511. <![CDATA[Windows <code>CreateProcess</code> synchronization object.]]>
  38512. </doc>
  38513. </field>
  38514. <field name="osType" type="org.apache.hadoop.util.Shell.OSType"
  38515. transient="false" volatile="false"
  38516. static="true" final="true" visibility="public"
  38517. deprecated="not deprecated">
  38518. <doc>
  38519. <![CDATA[Get the type of the operating system, as determined from parsing
  38520. the <code>os.name</code> property.]]>
  38521. </doc>
  38522. </field>
  38523. <field name="WINDOWS" type="boolean"
  38524. transient="false" volatile="false"
  38525. static="true" final="true" visibility="public"
  38526. deprecated="not deprecated">
  38527. </field>
  38528. <field name="SOLARIS" type="boolean"
  38529. transient="false" volatile="false"
  38530. static="true" final="true" visibility="public"
  38531. deprecated="not deprecated">
  38532. </field>
  38533. <field name="MAC" type="boolean"
  38534. transient="false" volatile="false"
  38535. static="true" final="true" visibility="public"
  38536. deprecated="not deprecated">
  38537. </field>
  38538. <field name="FREEBSD" type="boolean"
  38539. transient="false" volatile="false"
  38540. static="true" final="true" visibility="public"
  38541. deprecated="not deprecated">
  38542. </field>
  38543. <field name="LINUX" type="boolean"
  38544. transient="false" volatile="false"
  38545. static="true" final="true" visibility="public"
  38546. deprecated="not deprecated">
  38547. </field>
  38548. <field name="OTHER" type="boolean"
  38549. transient="false" volatile="false"
  38550. static="true" final="true" visibility="public"
  38551. deprecated="not deprecated">
  38552. </field>
  38553. <field name="PPC_64" type="boolean"
  38554. transient="false" volatile="false"
  38555. static="true" final="true" visibility="public"
  38556. deprecated="not deprecated">
  38557. </field>
  38558. <field name="ENV_NAME_REGEX" type="java.lang.String"
  38559. transient="false" volatile="false"
  38560. static="true" final="true" visibility="public"
  38561. deprecated="not deprecated">
  38562. <doc>
  38563. <![CDATA[Regular expression for environment variables: {@value}.]]>
  38564. </doc>
  38565. </field>
  38566. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  38567. transient="false" volatile="false"
  38568. static="true" final="true" visibility="public"
  38569. deprecated="not deprecated">
  38570. <doc>
  38571. <![CDATA[a Unix command to set permission: {@value}.]]>
  38572. </doc>
  38573. </field>
  38574. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  38575. transient="false" volatile="false"
  38576. static="true" final="true" visibility="public"
  38577. deprecated="not deprecated">
  38578. <doc>
  38579. <![CDATA[a Unix command to set owner: {@value}.]]>
  38580. </doc>
  38581. </field>
  38582. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  38583. transient="false" volatile="false"
  38584. static="true" final="true" visibility="public"
  38585. deprecated="not deprecated">
  38586. <doc>
  38587. <![CDATA[a Unix command to set the change user's groups list: {@value}.]]>
  38588. </doc>
  38589. </field>
  38590. <field name="LINK_COMMAND" type="java.lang.String"
  38591. transient="false" volatile="false"
  38592. static="true" final="true" visibility="public"
  38593. deprecated="not deprecated">
  38594. <doc>
  38595. <![CDATA[a Unix command to create a link: {@value}.]]>
  38596. </doc>
  38597. </field>
  38598. <field name="READ_LINK_COMMAND" type="java.lang.String"
  38599. transient="false" volatile="false"
  38600. static="true" final="true" visibility="public"
  38601. deprecated="not deprecated">
  38602. <doc>
  38603. <![CDATA[a Unix command to get a link target: {@value}.]]>
  38604. </doc>
  38605. </field>
  38606. <field name="timeOutInterval" type="long"
  38607. transient="false" volatile="false"
  38608. static="false" final="false" visibility="protected"
  38609. deprecated="not deprecated">
  38610. <doc>
  38611. <![CDATA[Time after which the executing script would be timedout.]]>
  38612. </doc>
  38613. </field>
  38614. <field name="inheritParentEnv" type="boolean"
  38615. transient="false" volatile="false"
  38616. static="false" final="false" visibility="protected"
  38617. deprecated="not deprecated">
  38618. <doc>
  38619. <![CDATA[Indicates if the parent env vars should be inherited or not]]>
  38620. </doc>
  38621. </field>
  38622. <field name="WINUTILS" type="java.lang.String"
  38623. transient="false" volatile="false"
  38624. static="true" final="true" visibility="public"
  38625. deprecated="use one of the exception-raising getter methods,
  38626. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}">
  38627. <doc>
  38628. <![CDATA[Location of winutils as a string; null if not found.
  38629. <p>
  38630. <i>Important: caller must check for this value being null</i>.
  38631. The lack of such checks has led to many support issues being raised.
  38632. <p>
  38633. @deprecated use one of the exception-raising getter methods,
  38634. specifically {@link #getWinUtilsPath()} or {@link #getWinUtilsFile()}]]>
  38635. </doc>
  38636. </field>
  38637. <field name="isSetsidAvailable" type="boolean"
  38638. transient="false" volatile="false"
  38639. static="true" final="true" visibility="public"
  38640. deprecated="not deprecated">
  38641. <doc>
  38642. <![CDATA[Flag which is true if setsid exists.]]>
  38643. </doc>
  38644. </field>
  38645. <field name="TOKEN_SEPARATOR_REGEX" type="java.lang.String"
  38646. transient="false" volatile="false"
  38647. static="true" final="true" visibility="public"
  38648. deprecated="not deprecated">
  38649. <doc>
  38650. <![CDATA[Token separator regex used to parse Shell tool outputs.]]>
  38651. </doc>
  38652. </field>
  38653. <doc>
  38654. <![CDATA[A base class for running a Shell command.
  38655. <code>Shell</code> can be used to run shell commands like <code>du</code> or
  38656. <code>df</code>. It also offers facilities to gate commands by
  38657. time-intervals.]]>
  38658. </doc>
  38659. </class>
  38660. <!-- end class org.apache.hadoop.util.Shell -->
  38661. <!-- start class org.apache.hadoop.util.ShutdownHookManager -->
  38662. <class name="ShutdownHookManager" extends="java.lang.Object"
  38663. abstract="false"
  38664. static="false" final="true" visibility="public"
  38665. deprecated="not deprecated">
  38666. <method name="get" return="org.apache.hadoop.util.ShutdownHookManager"
  38667. abstract="false" native="false" synchronized="false"
  38668. static="true" final="false" visibility="public"
  38669. deprecated="not deprecated">
  38670. <doc>
  38671. <![CDATA[Return <code>ShutdownHookManager</code> singleton.
  38672. @return <code>ShutdownHookManager</code> singleton.]]>
  38673. </doc>
  38674. </method>
  38675. <method name="addShutdownHook"
  38676. abstract="false" native="false" synchronized="false"
  38677. static="false" final="false" visibility="public"
  38678. deprecated="not deprecated">
  38679. <param name="shutdownHook" type="java.lang.Runnable"/>
  38680. <param name="priority" type="int"/>
  38681. <doc>
  38682. <![CDATA[Adds a shutdownHook with a priority, the higher the priority
  38683. the earlier will run. ShutdownHooks with same priority run
  38684. in a non-deterministic order.
  38685. @param shutdownHook shutdownHook <code>Runnable</code>
  38686. @param priority priority of the shutdownHook.]]>
  38687. </doc>
  38688. </method>
  38689. <method name="addShutdownHook"
  38690. abstract="false" native="false" synchronized="false"
  38691. static="false" final="false" visibility="public"
  38692. deprecated="not deprecated">
  38693. <param name="shutdownHook" type="java.lang.Runnable"/>
  38694. <param name="priority" type="int"/>
  38695. <param name="timeout" type="long"/>
  38696. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  38697. <doc>
  38698. <![CDATA[Adds a shutdownHook with a priority and timeout the higher the priority
  38699. the earlier will run. ShutdownHooks with same priority run
  38700. in a non-deterministic order. The shutdown hook will be terminated if it
  38701. has not been finished in the specified period of time.
  38702. @param shutdownHook shutdownHook <code>Runnable</code>
  38703. @param priority priority of the shutdownHook
  38704. @param timeout timeout of the shutdownHook
  38705. @param unit unit of the timeout <code>TimeUnit</code>]]>
  38706. </doc>
  38707. </method>
  38708. <method name="removeShutdownHook" return="boolean"
  38709. abstract="false" native="false" synchronized="false"
  38710. static="false" final="false" visibility="public"
  38711. deprecated="not deprecated">
  38712. <param name="shutdownHook" type="java.lang.Runnable"/>
  38713. <doc>
  38714. <![CDATA[Removes a shutdownHook.
  38715. @param shutdownHook shutdownHook to remove.
  38716. @return TRUE if the shutdownHook was registered and removed,
  38717. FALSE otherwise.]]>
  38718. </doc>
  38719. </method>
  38720. <method name="hasShutdownHook" return="boolean"
  38721. abstract="false" native="false" synchronized="false"
  38722. static="false" final="false" visibility="public"
  38723. deprecated="not deprecated">
  38724. <param name="shutdownHook" type="java.lang.Runnable"/>
  38725. <doc>
  38726. <![CDATA[Indicates if a shutdownHook is registered or not.
  38727. @param shutdownHook shutdownHook to check if registered.
  38728. @return TRUE/FALSE depending if the shutdownHook is is registered.]]>
  38729. </doc>
  38730. </method>
  38731. <method name="isShutdownInProgress" return="boolean"
  38732. abstract="false" native="false" synchronized="false"
  38733. static="false" final="false" visibility="public"
  38734. deprecated="not deprecated">
  38735. <doc>
  38736. <![CDATA[Indicates if shutdown is in progress or not.
  38737. @return TRUE if the shutdown is in progress, otherwise FALSE.]]>
  38738. </doc>
  38739. </method>
  38740. <method name="clearShutdownHooks"
  38741. abstract="false" native="false" synchronized="false"
  38742. static="false" final="false" visibility="public"
  38743. deprecated="not deprecated">
  38744. <doc>
  38745. <![CDATA[clear all registered shutdownHooks.]]>
  38746. </doc>
  38747. </method>
  38748. <field name="TIMEOUT_MINIMUM" type="long"
  38749. transient="false" volatile="false"
  38750. static="true" final="true" visibility="public"
  38751. deprecated="not deprecated">
  38752. <doc>
  38753. <![CDATA[Minimum shutdown timeout: {@value} second(s).]]>
  38754. </doc>
  38755. </field>
  38756. <field name="TIME_UNIT_DEFAULT" type="java.util.concurrent.TimeUnit"
  38757. transient="false" volatile="false"
  38758. static="true" final="true" visibility="public"
  38759. deprecated="not deprecated">
  38760. <doc>
  38761. <![CDATA[The default time unit used: seconds.]]>
  38762. </doc>
  38763. </field>
  38764. <doc>
  38765. <![CDATA[The <code>ShutdownHookManager</code> enables running shutdownHook
  38766. in a deterministic order, higher priority first.
  38767. <p/>
  38768. The JVM runs ShutdownHooks in a non-deterministic order or in parallel.
  38769. This class registers a single JVM shutdownHook and run all the
  38770. shutdownHooks registered to it (to this class) in order based on their
  38771. priority.
  38772. Unless a hook was registered with a shutdown explicitly set through
  38773. {@link #addShutdownHook(Runnable, int, long, TimeUnit)},
  38774. the shutdown time allocated to it is set by the configuration option
  38775. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT} in
  38776. {@code core-site.xml}, with a default value of
  38777. {@link CommonConfigurationKeysPublic#SERVICE_SHUTDOWN_TIMEOUT_DEFAULT}
  38778. seconds.]]>
  38779. </doc>
  38780. </class>
  38781. <!-- end class org.apache.hadoop.util.ShutdownHookManager -->
  38782. <!-- start class org.apache.hadoop.util.StringInterner -->
  38783. <class name="StringInterner" extends="java.lang.Object"
  38784. abstract="false"
  38785. static="false" final="false" visibility="public"
  38786. deprecated="not deprecated">
  38787. <constructor name="StringInterner"
  38788. static="false" final="false" visibility="public"
  38789. deprecated="not deprecated">
  38790. </constructor>
  38791. <method name="strongIntern" return="java.lang.String"
  38792. abstract="false" native="false" synchronized="false"
  38793. static="true" final="false" visibility="public"
  38794. deprecated="not deprecated">
  38795. <param name="sample" type="java.lang.String"/>
  38796. <doc>
  38797. <![CDATA[Interns and returns a reference to the representative instance
  38798. for any of a collection of string instances that are equal to each other.
  38799. Retains strong reference to the instance,
  38800. thus preventing it from being garbage-collected.
  38801. @param sample string instance to be interned
  38802. @return strong reference to interned string instance]]>
  38803. </doc>
  38804. </method>
  38805. <method name="weakIntern" return="java.lang.String"
  38806. abstract="false" native="false" synchronized="false"
  38807. static="true" final="false" visibility="public"
  38808. deprecated="not deprecated">
  38809. <param name="sample" type="java.lang.String"/>
  38810. <doc>
  38811. <![CDATA[Interns and returns a reference to the representative instance
  38812. for any of a collection of string instances that are equal to each other.
  38813. Retains weak reference to the instance,
  38814. and so does not prevent it from being garbage-collected.
  38815. @param sample string instance to be interned
  38816. @return weak reference to interned string instance]]>
  38817. </doc>
  38818. </method>
  38819. <method name="internStringsInArray" return="java.lang.String[]"
  38820. abstract="false" native="false" synchronized="false"
  38821. static="true" final="false" visibility="public"
  38822. deprecated="not deprecated">
  38823. <param name="strings" type="java.lang.String[]"/>
  38824. <doc>
  38825. <![CDATA[Interns all the strings in the given array in place,
  38826. returning the same array.]]>
  38827. </doc>
  38828. </method>
  38829. <doc>
  38830. <![CDATA[Provides string interning utility methods. For weak interning,
  38831. we use the standard String.intern() call, that performs very well
  38832. (no problems with PermGen overflowing, etc.) starting from JDK 7.]]>
  38833. </doc>
  38834. </class>
  38835. <!-- end class org.apache.hadoop.util.StringInterner -->
  38836. <!-- start class org.apache.hadoop.util.SysInfo -->
  38837. <class name="SysInfo" extends="java.lang.Object"
  38838. abstract="true"
  38839. static="false" final="false" visibility="public"
  38840. deprecated="not deprecated">
  38841. <constructor name="SysInfo"
  38842. static="false" final="false" visibility="public"
  38843. deprecated="not deprecated">
  38844. </constructor>
  38845. <method name="newInstance" return="org.apache.hadoop.util.SysInfo"
  38846. abstract="false" native="false" synchronized="false"
  38847. static="true" final="false" visibility="public"
  38848. deprecated="not deprecated">
  38849. <doc>
  38850. <![CDATA[Return default OS instance.
  38851. @throws UnsupportedOperationException If cannot determine OS.
  38852. @return Default instance for the detected OS.]]>
  38853. </doc>
  38854. </method>
  38855. <method name="getVirtualMemorySize" return="long"
  38856. abstract="true" native="false" synchronized="false"
  38857. static="false" final="false" visibility="public"
  38858. deprecated="not deprecated">
  38859. <doc>
  38860. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38861. @return virtual memory size in bytes.]]>
  38862. </doc>
  38863. </method>
  38864. <method name="getPhysicalMemorySize" return="long"
  38865. abstract="true" native="false" synchronized="false"
  38866. static="false" final="false" visibility="public"
  38867. deprecated="not deprecated">
  38868. <doc>
  38869. <![CDATA[Obtain the total size of the physical memory present in the system.
  38870. @return physical memory size bytes.]]>
  38871. </doc>
  38872. </method>
  38873. <method name="getAvailableVirtualMemorySize" return="long"
  38874. abstract="true" native="false" synchronized="false"
  38875. static="false" final="false" visibility="public"
  38876. deprecated="not deprecated">
  38877. <doc>
  38878. <![CDATA[Obtain the total size of the available virtual memory present
  38879. in the system.
  38880. @return available virtual memory size in bytes.]]>
  38881. </doc>
  38882. </method>
  38883. <method name="getAvailablePhysicalMemorySize" return="long"
  38884. abstract="true" native="false" synchronized="false"
  38885. static="false" final="false" visibility="public"
  38886. deprecated="not deprecated">
  38887. <doc>
  38888. <![CDATA[Obtain the total size of the available physical memory present
  38889. in the system.
  38890. @return available physical memory size bytes.]]>
  38891. </doc>
  38892. </method>
  38893. <method name="getNumProcessors" return="int"
  38894. abstract="true" native="false" synchronized="false"
  38895. static="false" final="false" visibility="public"
  38896. deprecated="not deprecated">
  38897. <doc>
  38898. <![CDATA[Obtain the total number of logical processors present on the system.
  38899. @return number of logical processors]]>
  38900. </doc>
  38901. </method>
  38902. <method name="getNumCores" return="int"
  38903. abstract="true" native="false" synchronized="false"
  38904. static="false" final="false" visibility="public"
  38905. deprecated="not deprecated">
  38906. <doc>
  38907. <![CDATA[Obtain total number of physical cores present on the system.
  38908. @return number of physical cores]]>
  38909. </doc>
  38910. </method>
  38911. <method name="getCpuFrequency" return="long"
  38912. abstract="true" native="false" synchronized="false"
  38913. static="false" final="false" visibility="public"
  38914. deprecated="not deprecated">
  38915. <doc>
  38916. <![CDATA[Obtain the CPU frequency of on the system.
  38917. @return CPU frequency in kHz]]>
  38918. </doc>
  38919. </method>
  38920. <method name="getCumulativeCpuTime" return="long"
  38921. abstract="true" native="false" synchronized="false"
  38922. static="false" final="false" visibility="public"
  38923. deprecated="not deprecated">
  38924. <doc>
  38925. <![CDATA[Obtain the cumulative CPU time since the system is on.
  38926. @return cumulative CPU time in milliseconds]]>
  38927. </doc>
  38928. </method>
  38929. <method name="getCpuUsagePercentage" return="float"
  38930. abstract="true" native="false" synchronized="false"
  38931. static="false" final="false" visibility="public"
  38932. deprecated="not deprecated">
  38933. <doc>
  38934. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  38935. @return CPU usage as a percentage (from 0 to 100) of available cycles.]]>
  38936. </doc>
  38937. </method>
  38938. <method name="getNumVCoresUsed" return="float"
  38939. abstract="true" native="false" synchronized="false"
  38940. static="false" final="false" visibility="public"
  38941. deprecated="not deprecated">
  38942. <doc>
  38943. <![CDATA[Obtain the number of VCores used. Return -1 if it is unavailable
  38944. @return Number of VCores used a percentage (from 0 to #VCores).]]>
  38945. </doc>
  38946. </method>
  38947. <method name="getNetworkBytesRead" return="long"
  38948. abstract="true" native="false" synchronized="false"
  38949. static="false" final="false" visibility="public"
  38950. deprecated="not deprecated">
  38951. <doc>
  38952. <![CDATA[Obtain the aggregated number of bytes read over the network.
  38953. @return total number of bytes read.]]>
  38954. </doc>
  38955. </method>
  38956. <method name="getNetworkBytesWritten" return="long"
  38957. abstract="true" native="false" synchronized="false"
  38958. static="false" final="false" visibility="public"
  38959. deprecated="not deprecated">
  38960. <doc>
  38961. <![CDATA[Obtain the aggregated number of bytes written to the network.
  38962. @return total number of bytes written.]]>
  38963. </doc>
  38964. </method>
  38965. <method name="getStorageBytesRead" return="long"
  38966. abstract="true" native="false" synchronized="false"
  38967. static="false" final="false" visibility="public"
  38968. deprecated="not deprecated">
  38969. <doc>
  38970. <![CDATA[Obtain the aggregated number of bytes read from disks.
  38971. @return total number of bytes read.]]>
  38972. </doc>
  38973. </method>
  38974. <method name="getStorageBytesWritten" return="long"
  38975. abstract="true" native="false" synchronized="false"
  38976. static="false" final="false" visibility="public"
  38977. deprecated="not deprecated">
  38978. <doc>
  38979. <![CDATA[Obtain the aggregated number of bytes written to disks.
  38980. @return total number of bytes written.]]>
  38981. </doc>
  38982. </method>
  38983. <doc>
  38984. <![CDATA[Plugin to calculate resource information on the system.]]>
  38985. </doc>
  38986. </class>
  38987. <!-- end class org.apache.hadoop.util.SysInfo -->
  38988. <!-- start interface org.apache.hadoop.util.Tool -->
  38989. <interface name="Tool" abstract="true"
  38990. static="false" final="false" visibility="public"
  38991. deprecated="not deprecated">
  38992. <implements name="org.apache.hadoop.conf.Configurable"/>
  38993. <method name="run" return="int"
  38994. abstract="false" native="false" synchronized="false"
  38995. static="false" final="false" visibility="public"
  38996. deprecated="not deprecated">
  38997. <param name="args" type="java.lang.String[]"/>
  38998. <exception name="Exception" type="java.lang.Exception"/>
  38999. <doc>
  39000. <![CDATA[Execute the command with the given arguments.
  39001. @param args command specific arguments.
  39002. @return exit code.
  39003. @throws Exception]]>
  39004. </doc>
  39005. </method>
  39006. <doc>
  39007. <![CDATA[A tool interface that supports handling of generic command-line options.
  39008. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  39009. The tool/application should delegate the handling of
  39010. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  39011. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  39012. and only handle its custom arguments.</p>
  39013. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  39014. <p><blockquote><pre>
  39015. public class MyApp extends Configured implements Tool {
  39016. public int run(String[] args) throws Exception {
  39017. // <code>Configuration</code> processed by <code>ToolRunner</code>
  39018. Configuration conf = getConf();
  39019. // Create a JobConf using the processed <code>conf</code>
  39020. JobConf job = new JobConf(conf, MyApp.class);
  39021. // Process custom command-line options
  39022. Path in = new Path(args[1]);
  39023. Path out = new Path(args[2]);
  39024. // Specify various job-specific parameters
  39025. job.setJobName("my-app");
  39026. job.setInputPath(in);
  39027. job.setOutputPath(out);
  39028. job.setMapperClass(MyMapper.class);
  39029. job.setReducerClass(MyReducer.class);
  39030. // Submit the job, then poll for progress until the job is complete
  39031. RunningJob runningJob = JobClient.runJob(job);
  39032. if (runningJob.isSuccessful()) {
  39033. return 0;
  39034. } else {
  39035. return 1;
  39036. }
  39037. }
  39038. public static void main(String[] args) throws Exception {
  39039. // Let <code>ToolRunner</code> handle generic command-line options
  39040. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  39041. System.exit(res);
  39042. }
  39043. }
  39044. </pre></blockquote></p>
  39045. @see GenericOptionsParser
  39046. @see ToolRunner]]>
  39047. </doc>
  39048. </interface>
  39049. <!-- end interface org.apache.hadoop.util.Tool -->
  39050. <!-- start class org.apache.hadoop.util.ToolRunner -->
  39051. <class name="ToolRunner" extends="java.lang.Object"
  39052. abstract="false"
  39053. static="false" final="false" visibility="public"
  39054. deprecated="not deprecated">
  39055. <constructor name="ToolRunner"
  39056. static="false" final="false" visibility="public"
  39057. deprecated="not deprecated">
  39058. </constructor>
  39059. <method name="run" return="int"
  39060. abstract="false" native="false" synchronized="false"
  39061. static="true" final="false" visibility="public"
  39062. deprecated="not deprecated">
  39063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39064. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  39065. <param name="args" type="java.lang.String[]"/>
  39066. <exception name="Exception" type="java.lang.Exception"/>
  39067. <doc>
  39068. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  39069. parsing with the given generic arguments. Uses the given
  39070. <code>Configuration</code>, or builds one if null.
  39071. Sets the <code>Tool</code>'s configuration with the possibly modified
  39072. version of the <code>conf</code>.
  39073. @param conf <code>Configuration</code> for the <code>Tool</code>.
  39074. @param tool <code>Tool</code> to run.
  39075. @param args command-line arguments to the tool.
  39076. @return exit code of the {@link Tool#run(String[])} method.]]>
  39077. </doc>
  39078. </method>
  39079. <method name="run" return="int"
  39080. abstract="false" native="false" synchronized="false"
  39081. static="true" final="false" visibility="public"
  39082. deprecated="not deprecated">
  39083. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  39084. <param name="args" type="java.lang.String[]"/>
  39085. <exception name="Exception" type="java.lang.Exception"/>
  39086. <doc>
  39087. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  39088. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  39089. @param tool <code>Tool</code> to run.
  39090. @param args command-line arguments to the tool.
  39091. @return exit code of the {@link Tool#run(String[])} method.]]>
  39092. </doc>
  39093. </method>
  39094. <method name="printGenericCommandUsage"
  39095. abstract="false" native="false" synchronized="false"
  39096. static="true" final="false" visibility="public"
  39097. deprecated="not deprecated">
  39098. <param name="out" type="java.io.PrintStream"/>
  39099. <doc>
  39100. <![CDATA[Prints generic command-line argurments and usage information.
  39101. @param out stream to write usage information to.]]>
  39102. </doc>
  39103. </method>
  39104. <method name="confirmPrompt" return="boolean"
  39105. abstract="false" native="false" synchronized="false"
  39106. static="true" final="false" visibility="public"
  39107. deprecated="not deprecated">
  39108. <param name="prompt" type="java.lang.String"/>
  39109. <exception name="IOException" type="java.io.IOException"/>
  39110. <doc>
  39111. <![CDATA[Print out a prompt to the user, and return true if the user
  39112. responds with "y" or "yes". (case insensitive)]]>
  39113. </doc>
  39114. </method>
  39115. <doc>
  39116. <![CDATA[A utility to help run {@link Tool}s.
  39117. <p><code>ToolRunner</code> can be used to run classes implementing
  39118. <code>Tool</code> interface. It works in conjunction with
  39119. {@link GenericOptionsParser} to parse the
  39120. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  39121. generic hadoop command line arguments</a> and modifies the
  39122. <code>Configuration</code> of the <code>Tool</code>. The
  39123. application-specific options are passed along without being modified.
  39124. </p>
  39125. @see Tool
  39126. @see GenericOptionsParser]]>
  39127. </doc>
  39128. </class>
  39129. <!-- end class org.apache.hadoop.util.ToolRunner -->
  39130. <!-- start class org.apache.hadoop.util.VersionInfo -->
  39131. <class name="VersionInfo" extends="java.lang.Object"
  39132. abstract="false"
  39133. static="false" final="false" visibility="public"
  39134. deprecated="not deprecated">
  39135. <constructor name="VersionInfo" type="java.lang.String"
  39136. static="false" final="false" visibility="protected"
  39137. deprecated="not deprecated">
  39138. </constructor>
  39139. <method name="_getVersion" return="java.lang.String"
  39140. abstract="false" native="false" synchronized="false"
  39141. static="false" final="false" visibility="protected"
  39142. deprecated="not deprecated">
  39143. </method>
  39144. <method name="_getRevision" return="java.lang.String"
  39145. abstract="false" native="false" synchronized="false"
  39146. static="false" final="false" visibility="protected"
  39147. deprecated="not deprecated">
  39148. </method>
  39149. <method name="_getBranch" return="java.lang.String"
  39150. abstract="false" native="false" synchronized="false"
  39151. static="false" final="false" visibility="protected"
  39152. deprecated="not deprecated">
  39153. </method>
  39154. <method name="_getDate" return="java.lang.String"
  39155. abstract="false" native="false" synchronized="false"
  39156. static="false" final="false" visibility="protected"
  39157. deprecated="not deprecated">
  39158. </method>
  39159. <method name="_getUser" return="java.lang.String"
  39160. abstract="false" native="false" synchronized="false"
  39161. static="false" final="false" visibility="protected"
  39162. deprecated="not deprecated">
  39163. </method>
  39164. <method name="_getUrl" return="java.lang.String"
  39165. abstract="false" native="false" synchronized="false"
  39166. static="false" final="false" visibility="protected"
  39167. deprecated="not deprecated">
  39168. </method>
  39169. <method name="_getSrcChecksum" return="java.lang.String"
  39170. abstract="false" native="false" synchronized="false"
  39171. static="false" final="false" visibility="protected"
  39172. deprecated="not deprecated">
  39173. </method>
  39174. <method name="_getBuildVersion" return="java.lang.String"
  39175. abstract="false" native="false" synchronized="false"
  39176. static="false" final="false" visibility="protected"
  39177. deprecated="not deprecated">
  39178. </method>
  39179. <method name="_getProtocVersion" return="java.lang.String"
  39180. abstract="false" native="false" synchronized="false"
  39181. static="false" final="false" visibility="protected"
  39182. deprecated="not deprecated">
  39183. </method>
  39184. <method name="getVersion" return="java.lang.String"
  39185. abstract="false" native="false" synchronized="false"
  39186. static="true" final="false" visibility="public"
  39187. deprecated="not deprecated">
  39188. <doc>
  39189. <![CDATA[Get the Hadoop version.
  39190. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  39191. </doc>
  39192. </method>
  39193. <method name="getRevision" return="java.lang.String"
  39194. abstract="false" native="false" synchronized="false"
  39195. static="true" final="false" visibility="public"
  39196. deprecated="not deprecated">
  39197. <doc>
  39198. <![CDATA[Get the Git commit hash of the repository when compiled.
  39199. @return the commit hash, eg. "18f64065d5db6208daf50b02c1b5ed4ee3ce547a"]]>
  39200. </doc>
  39201. </method>
  39202. <method name="getBranch" return="java.lang.String"
  39203. abstract="false" native="false" synchronized="false"
  39204. static="true" final="false" visibility="public"
  39205. deprecated="not deprecated">
  39206. <doc>
  39207. <![CDATA[Get the branch on which this originated.
  39208. @return The branch name, e.g. "trunk" or "branches/branch-0.20"]]>
  39209. </doc>
  39210. </method>
  39211. <method name="getDate" return="java.lang.String"
  39212. abstract="false" native="false" synchronized="false"
  39213. static="true" final="false" visibility="public"
  39214. deprecated="not deprecated">
  39215. <doc>
  39216. <![CDATA[The date that Hadoop was compiled.
  39217. @return the compilation date in unix date format]]>
  39218. </doc>
  39219. </method>
  39220. <method name="getUser" return="java.lang.String"
  39221. abstract="false" native="false" synchronized="false"
  39222. static="true" final="false" visibility="public"
  39223. deprecated="not deprecated">
  39224. <doc>
  39225. <![CDATA[The user that compiled Hadoop.
  39226. @return the username of the user]]>
  39227. </doc>
  39228. </method>
  39229. <method name="getUrl" return="java.lang.String"
  39230. abstract="false" native="false" synchronized="false"
  39231. static="true" final="false" visibility="public"
  39232. deprecated="not deprecated">
  39233. <doc>
  39234. <![CDATA[Get the URL for the Hadoop repository.
  39235. @return the URL of the Hadoop repository]]>
  39236. </doc>
  39237. </method>
  39238. <method name="getSrcChecksum" return="java.lang.String"
  39239. abstract="false" native="false" synchronized="false"
  39240. static="true" final="false" visibility="public"
  39241. deprecated="not deprecated">
  39242. <doc>
  39243. <![CDATA[Get the checksum of the source files from which Hadoop was built.
  39244. @return the checksum of the source files]]>
  39245. </doc>
  39246. </method>
  39247. <method name="getBuildVersion" return="java.lang.String"
  39248. abstract="false" native="false" synchronized="false"
  39249. static="true" final="false" visibility="public"
  39250. deprecated="not deprecated">
  39251. <doc>
  39252. <![CDATA[Returns the buildVersion which includes version,
  39253. revision, user and date.
  39254. @return the buildVersion]]>
  39255. </doc>
  39256. </method>
  39257. <method name="getProtocVersion" return="java.lang.String"
  39258. abstract="false" native="false" synchronized="false"
  39259. static="true" final="false" visibility="public"
  39260. deprecated="not deprecated">
  39261. <doc>
  39262. <![CDATA[Returns the protoc version used for the build.
  39263. @return the protoc version]]>
  39264. </doc>
  39265. </method>
  39266. <method name="main"
  39267. abstract="false" native="false" synchronized="false"
  39268. static="true" final="false" visibility="public"
  39269. deprecated="not deprecated">
  39270. <param name="args" type="java.lang.String[]"/>
  39271. </method>
  39272. <doc>
  39273. <![CDATA[This class returns build information about Hadoop components.]]>
  39274. </doc>
  39275. </class>
  39276. <!-- end class org.apache.hadoop.util.VersionInfo -->
  39277. <doc>
  39278. <![CDATA[Common utilities.]]>
  39279. </doc>
  39280. </package>
  39281. <package name="org.apache.hadoop.util.bloom">
  39282. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  39283. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  39284. abstract="false"
  39285. static="false" final="false" visibility="public"
  39286. deprecated="not deprecated">
  39287. <constructor name="BloomFilter"
  39288. static="false" final="false" visibility="public"
  39289. deprecated="not deprecated">
  39290. <doc>
  39291. <![CDATA[Default constructor - use with readFields]]>
  39292. </doc>
  39293. </constructor>
  39294. <constructor name="BloomFilter" type="int, int, int"
  39295. static="false" final="false" visibility="public"
  39296. deprecated="not deprecated">
  39297. <doc>
  39298. <![CDATA[Constructor
  39299. @param vectorSize The vector size of <i>this</i> filter.
  39300. @param nbHash The number of hash function to consider.
  39301. @param hashType type of the hashing function (see
  39302. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39303. </doc>
  39304. </constructor>
  39305. <method name="add"
  39306. abstract="false" native="false" synchronized="false"
  39307. static="false" final="false" visibility="public"
  39308. deprecated="not deprecated">
  39309. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39310. </method>
  39311. <method name="and"
  39312. abstract="false" native="false" synchronized="false"
  39313. static="false" final="false" visibility="public"
  39314. deprecated="not deprecated">
  39315. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39316. </method>
  39317. <method name="membershipTest" return="boolean"
  39318. abstract="false" native="false" synchronized="false"
  39319. static="false" final="false" visibility="public"
  39320. deprecated="not deprecated">
  39321. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39322. </method>
  39323. <method name="not"
  39324. abstract="false" native="false" synchronized="false"
  39325. static="false" final="false" visibility="public"
  39326. deprecated="not deprecated">
  39327. </method>
  39328. <method name="or"
  39329. abstract="false" native="false" synchronized="false"
  39330. static="false" final="false" visibility="public"
  39331. deprecated="not deprecated">
  39332. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39333. </method>
  39334. <method name="xor"
  39335. abstract="false" native="false" synchronized="false"
  39336. static="false" final="false" visibility="public"
  39337. deprecated="not deprecated">
  39338. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39339. </method>
  39340. <method name="toString" return="java.lang.String"
  39341. abstract="false" native="false" synchronized="false"
  39342. static="false" final="false" visibility="public"
  39343. deprecated="not deprecated">
  39344. </method>
  39345. <method name="getVectorSize" return="int"
  39346. abstract="false" native="false" synchronized="false"
  39347. static="false" final="false" visibility="public"
  39348. deprecated="not deprecated">
  39349. <doc>
  39350. <![CDATA[@return size of the the bloomfilter]]>
  39351. </doc>
  39352. </method>
  39353. <method name="write"
  39354. abstract="false" native="false" synchronized="false"
  39355. static="false" final="false" visibility="public"
  39356. deprecated="not deprecated">
  39357. <param name="out" type="java.io.DataOutput"/>
  39358. <exception name="IOException" type="java.io.IOException"/>
  39359. </method>
  39360. <method name="readFields"
  39361. abstract="false" native="false" synchronized="false"
  39362. static="false" final="false" visibility="public"
  39363. deprecated="not deprecated">
  39364. <param name="in" type="java.io.DataInput"/>
  39365. <exception name="IOException" type="java.io.IOException"/>
  39366. </method>
  39367. <doc>
  39368. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  39369. <p>
  39370. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  39371. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  39372. offers for the transmission of set membership information between networked hosts. A sender encodes
  39373. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  39374. representation. Computation and space costs for construction are linear in the number of elements.
  39375. The receiver uses the filter to test whether various elements are members of the set. Though the
  39376. filter will occasionally return a false positive, it will never return a false negative. When creating
  39377. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  39378. <p>
  39379. Originally created by
  39380. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39381. @see Filter The general behavior of a filter
  39382. @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>]]>
  39383. </doc>
  39384. </class>
  39385. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  39386. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  39387. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  39388. abstract="false"
  39389. static="false" final="true" visibility="public"
  39390. deprecated="not deprecated">
  39391. <constructor name="CountingBloomFilter"
  39392. static="false" final="false" visibility="public"
  39393. deprecated="not deprecated">
  39394. <doc>
  39395. <![CDATA[Default constructor - use with readFields]]>
  39396. </doc>
  39397. </constructor>
  39398. <constructor name="CountingBloomFilter" type="int, int, int"
  39399. static="false" final="false" visibility="public"
  39400. deprecated="not deprecated">
  39401. <doc>
  39402. <![CDATA[Constructor
  39403. @param vectorSize The vector size of <i>this</i> filter.
  39404. @param nbHash The number of hash function to consider.
  39405. @param hashType type of the hashing function (see
  39406. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39407. </doc>
  39408. </constructor>
  39409. <method name="add"
  39410. abstract="false" native="false" synchronized="false"
  39411. static="false" final="false" visibility="public"
  39412. deprecated="not deprecated">
  39413. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39414. </method>
  39415. <method name="delete"
  39416. abstract="false" native="false" synchronized="false"
  39417. static="false" final="false" visibility="public"
  39418. deprecated="not deprecated">
  39419. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39420. <doc>
  39421. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  39422. <p>
  39423. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  39424. @param key The key to remove.]]>
  39425. </doc>
  39426. </method>
  39427. <method name="and"
  39428. abstract="false" native="false" synchronized="false"
  39429. static="false" final="false" visibility="public"
  39430. deprecated="not deprecated">
  39431. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39432. </method>
  39433. <method name="membershipTest" return="boolean"
  39434. abstract="false" native="false" synchronized="false"
  39435. static="false" final="false" visibility="public"
  39436. deprecated="not deprecated">
  39437. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39438. </method>
  39439. <method name="approximateCount" return="int"
  39440. abstract="false" native="false" synchronized="false"
  39441. static="false" final="false" visibility="public"
  39442. deprecated="not deprecated">
  39443. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39444. <doc>
  39445. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  39446. times the key was added to the filter. This allows the filter to be
  39447. used as an approximate <code>key -&gt; count</code> map.
  39448. <p>NOTE: due to the bucket size of this filter, inserting the same
  39449. key more than 15 times will cause an overflow at all filter positions
  39450. associated with this key, and it will significantly increase the error
  39451. rate for this and other keys. For this reason the filter can only be
  39452. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  39453. @param key key to be tested
  39454. @return 0 if the key is not present. Otherwise, a positive value v will
  39455. be returned such that <code>v == count</code> with probability equal to the
  39456. error rate of this filter, and <code>v &gt; count</code> otherwise.
  39457. Additionally, if the filter experienced an underflow as a result of
  39458. {@link #delete(Key)} operation, the return value may be lower than the
  39459. <code>count</code> with the probability of the false negative rate of such
  39460. filter.]]>
  39461. </doc>
  39462. </method>
  39463. <method name="not"
  39464. abstract="false" native="false" synchronized="false"
  39465. static="false" final="false" visibility="public"
  39466. deprecated="not deprecated">
  39467. </method>
  39468. <method name="or"
  39469. abstract="false" native="false" synchronized="false"
  39470. static="false" final="false" visibility="public"
  39471. deprecated="not deprecated">
  39472. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39473. </method>
  39474. <method name="xor"
  39475. abstract="false" native="false" synchronized="false"
  39476. static="false" final="false" visibility="public"
  39477. deprecated="not deprecated">
  39478. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39479. </method>
  39480. <method name="toString" return="java.lang.String"
  39481. abstract="false" native="false" synchronized="false"
  39482. static="false" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. </method>
  39485. <method name="write"
  39486. abstract="false" native="false" synchronized="false"
  39487. static="false" final="false" visibility="public"
  39488. deprecated="not deprecated">
  39489. <param name="out" type="java.io.DataOutput"/>
  39490. <exception name="IOException" type="java.io.IOException"/>
  39491. </method>
  39492. <method name="readFields"
  39493. abstract="false" native="false" synchronized="false"
  39494. static="false" final="false" visibility="public"
  39495. deprecated="not deprecated">
  39496. <param name="in" type="java.io.DataInput"/>
  39497. <exception name="IOException" type="java.io.IOException"/>
  39498. </method>
  39499. <doc>
  39500. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  39501. 2000 paper.
  39502. <p>
  39503. A counting Bloom filter is an improvement to standard a Bloom filter as it
  39504. allows dynamic additions and deletions of set membership information. This
  39505. is achieved through the use of a counting vector instead of a bit vector.
  39506. <p>
  39507. Originally created by
  39508. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39509. @see Filter The general behavior of a filter
  39510. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  39511. </doc>
  39512. </class>
  39513. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  39514. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  39515. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  39516. abstract="false"
  39517. static="false" final="false" visibility="public"
  39518. deprecated="not deprecated">
  39519. <constructor name="DynamicBloomFilter"
  39520. static="false" final="false" visibility="public"
  39521. deprecated="not deprecated">
  39522. <doc>
  39523. <![CDATA[Zero-args constructor for the serialization.]]>
  39524. </doc>
  39525. </constructor>
  39526. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  39527. static="false" final="false" visibility="public"
  39528. deprecated="not deprecated">
  39529. <doc>
  39530. <![CDATA[Constructor.
  39531. <p>
  39532. Builds an empty Dynamic Bloom filter.
  39533. @param vectorSize The number of bits in the vector.
  39534. @param nbHash The number of hash function to consider.
  39535. @param hashType type of the hashing function (see
  39536. {@link org.apache.hadoop.util.hash.Hash}).
  39537. @param nr The threshold for the maximum number of keys to record in a
  39538. dynamic Bloom filter row.]]>
  39539. </doc>
  39540. </constructor>
  39541. <method name="add"
  39542. abstract="false" native="false" synchronized="false"
  39543. static="false" final="false" visibility="public"
  39544. deprecated="not deprecated">
  39545. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39546. </method>
  39547. <method name="and"
  39548. abstract="false" native="false" synchronized="false"
  39549. static="false" final="false" visibility="public"
  39550. deprecated="not deprecated">
  39551. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39552. </method>
  39553. <method name="membershipTest" return="boolean"
  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="not"
  39560. abstract="false" native="false" synchronized="false"
  39561. static="false" final="false" visibility="public"
  39562. deprecated="not deprecated">
  39563. </method>
  39564. <method name="or"
  39565. abstract="false" native="false" synchronized="false"
  39566. static="false" final="false" visibility="public"
  39567. deprecated="not deprecated">
  39568. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39569. </method>
  39570. <method name="xor"
  39571. abstract="false" native="false" synchronized="false"
  39572. static="false" final="false" visibility="public"
  39573. deprecated="not deprecated">
  39574. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  39575. </method>
  39576. <method name="toString" return="java.lang.String"
  39577. abstract="false" native="false" synchronized="false"
  39578. static="false" final="false" visibility="public"
  39579. deprecated="not deprecated">
  39580. </method>
  39581. <method name="write"
  39582. abstract="false" native="false" synchronized="false"
  39583. static="false" final="false" visibility="public"
  39584. deprecated="not deprecated">
  39585. <param name="out" type="java.io.DataOutput"/>
  39586. <exception name="IOException" type="java.io.IOException"/>
  39587. </method>
  39588. <method name="readFields"
  39589. abstract="false" native="false" synchronized="false"
  39590. static="false" final="false" visibility="public"
  39591. deprecated="not deprecated">
  39592. <param name="in" type="java.io.DataInput"/>
  39593. <exception name="IOException" type="java.io.IOException"/>
  39594. </method>
  39595. <doc>
  39596. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  39597. <p>
  39598. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  39599. each of the <code>s</code> rows is a standard Bloom filter. The creation
  39600. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  39601. bit matrix, i.e., it is composed of a single standard Bloom filter.
  39602. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  39603. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  39604. the cardinality of the set <code>A</code> to record in the filter).
  39605. <p>
  39606. As the size of <code>A</code> grows during the execution of the application,
  39607. several keys must be inserted in the DBF. When inserting a key into the DBF,
  39608. one must first get an active Bloom filter in the matrix. A Bloom filter is
  39609. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  39610. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  39611. If an active Bloom filter is found, the key is inserted and
  39612. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  39613. is no active Bloom filter, a new one is created (i.e., a new row is added to
  39614. the matrix) according to the current size of <code>A</code> and the element
  39615. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  39616. this new Bloom filter is set to one. A given key is said to belong to the
  39617. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  39618. <p>
  39619. Originally created by
  39620. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39621. @see Filter The general behavior of a filter
  39622. @see BloomFilter A Bloom filter
  39623. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  39624. </doc>
  39625. </class>
  39626. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  39627. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  39628. <class name="HashFunction" extends="java.lang.Object"
  39629. abstract="false"
  39630. static="false" final="true" visibility="public"
  39631. deprecated="not deprecated">
  39632. <constructor name="HashFunction" type="int, int, int"
  39633. static="false" final="false" visibility="public"
  39634. deprecated="not deprecated">
  39635. <doc>
  39636. <![CDATA[Constructor.
  39637. <p>
  39638. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  39639. @param maxValue The maximum highest returned value.
  39640. @param nbHash The number of resulting hashed values.
  39641. @param hashType type of the hashing function (see {@link Hash}).]]>
  39642. </doc>
  39643. </constructor>
  39644. <method name="clear"
  39645. abstract="false" native="false" synchronized="false"
  39646. static="false" final="false" visibility="public"
  39647. deprecated="not deprecated">
  39648. <doc>
  39649. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  39650. </doc>
  39651. </method>
  39652. <method name="hash" return="int[]"
  39653. abstract="false" native="false" synchronized="false"
  39654. static="false" final="false" visibility="public"
  39655. deprecated="not deprecated">
  39656. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  39657. <doc>
  39658. <![CDATA[Hashes a specified key into several integers.
  39659. @param k The specified key.
  39660. @return The array of hashed values.]]>
  39661. </doc>
  39662. </method>
  39663. <doc>
  39664. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  39665. @see Key The general behavior of a key being stored in a filter
  39666. @see Filter The general behavior of a filter]]>
  39667. </doc>
  39668. </class>
  39669. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  39670. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  39671. <interface name="RemoveScheme" abstract="true"
  39672. static="false" final="false" visibility="public"
  39673. deprecated="not deprecated">
  39674. <field name="RANDOM" type="short"
  39675. transient="false" volatile="false"
  39676. static="true" final="true" visibility="public"
  39677. deprecated="not deprecated">
  39678. <doc>
  39679. <![CDATA[Random selection.
  39680. <p>
  39681. The idea is to randomly select a bit to reset.]]>
  39682. </doc>
  39683. </field>
  39684. <field name="MINIMUM_FN" type="short"
  39685. transient="false" volatile="false"
  39686. static="true" final="true" visibility="public"
  39687. deprecated="not deprecated">
  39688. <doc>
  39689. <![CDATA[MinimumFN Selection.
  39690. <p>
  39691. The idea is to select the bit to reset that will generate the minimum
  39692. number of false negative.]]>
  39693. </doc>
  39694. </field>
  39695. <field name="MAXIMUM_FP" type="short"
  39696. transient="false" volatile="false"
  39697. static="true" final="true" visibility="public"
  39698. deprecated="not deprecated">
  39699. <doc>
  39700. <![CDATA[MaximumFP Selection.
  39701. <p>
  39702. The idea is to select the bit to reset that will remove the maximum number
  39703. of false positive.]]>
  39704. </doc>
  39705. </field>
  39706. <field name="RATIO" type="short"
  39707. transient="false" volatile="false"
  39708. static="true" final="true" visibility="public"
  39709. deprecated="not deprecated">
  39710. <doc>
  39711. <![CDATA[Ratio Selection.
  39712. <p>
  39713. The idea is to select the bit to reset that will, at the same time, remove
  39714. the maximum number of false positve while minimizing the amount of false
  39715. negative generated.]]>
  39716. </doc>
  39717. </field>
  39718. <doc>
  39719. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  39720. <p>
  39721. Originally created by
  39722. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  39723. </doc>
  39724. </interface>
  39725. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  39726. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  39727. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  39728. abstract="false"
  39729. static="false" final="true" visibility="public"
  39730. deprecated="not deprecated">
  39731. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  39732. <constructor name="RetouchedBloomFilter"
  39733. static="false" final="false" visibility="public"
  39734. deprecated="not deprecated">
  39735. <doc>
  39736. <![CDATA[Default constructor - use with readFields]]>
  39737. </doc>
  39738. </constructor>
  39739. <constructor name="RetouchedBloomFilter" type="int, int, int"
  39740. static="false" final="false" visibility="public"
  39741. deprecated="not deprecated">
  39742. <doc>
  39743. <![CDATA[Constructor
  39744. @param vectorSize The vector size of <i>this</i> filter.
  39745. @param nbHash The number of hash function to consider.
  39746. @param hashType type of the hashing function (see
  39747. {@link org.apache.hadoop.util.hash.Hash}).]]>
  39748. </doc>
  39749. </constructor>
  39750. <method name="add"
  39751. abstract="false" native="false" synchronized="false"
  39752. static="false" final="false" visibility="public"
  39753. deprecated="not deprecated">
  39754. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39755. </method>
  39756. <method name="addFalsePositive"
  39757. abstract="false" native="false" synchronized="false"
  39758. static="false" final="false" visibility="public"
  39759. deprecated="not deprecated">
  39760. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  39761. <doc>
  39762. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  39763. <p>
  39764. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  39765. @param key The false positive key to add.]]>
  39766. </doc>
  39767. </method>
  39768. <method name="addFalsePositive"
  39769. abstract="false" native="false" synchronized="false"
  39770. static="false" final="false" visibility="public"
  39771. deprecated="not deprecated">
  39772. <param name="coll" type="java.util.Collection"/>
  39773. <doc>
  39774. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  39775. @param coll The collection of false positive.]]>
  39776. </doc>
  39777. </method>
  39778. <method name="addFalsePositive"
  39779. abstract="false" native="false" synchronized="false"
  39780. static="false" final="false" visibility="public"
  39781. deprecated="not deprecated">
  39782. <param name="keys" type="java.util.List"/>
  39783. <doc>
  39784. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  39785. @param keys The list of false positive.]]>
  39786. </doc>
  39787. </method>
  39788. <method name="addFalsePositive"
  39789. abstract="false" native="false" synchronized="false"
  39790. static="false" final="false" visibility="public"
  39791. deprecated="not deprecated">
  39792. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  39793. <doc>
  39794. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  39795. @param keys The array of false positive.]]>
  39796. </doc>
  39797. </method>
  39798. <method name="selectiveClearing"
  39799. abstract="false" native="false" synchronized="false"
  39800. static="false" final="false" visibility="public"
  39801. deprecated="not deprecated">
  39802. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  39803. <param name="scheme" type="short"/>
  39804. <doc>
  39805. <![CDATA[Performs the selective clearing for a given key.
  39806. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  39807. @param scheme The selective clearing scheme to apply.]]>
  39808. </doc>
  39809. </method>
  39810. <method name="write"
  39811. abstract="false" native="false" synchronized="false"
  39812. static="false" final="false" visibility="public"
  39813. deprecated="not deprecated">
  39814. <param name="out" type="java.io.DataOutput"/>
  39815. <exception name="IOException" type="java.io.IOException"/>
  39816. </method>
  39817. <method name="readFields"
  39818. abstract="false" native="false" synchronized="false"
  39819. static="false" final="false" visibility="public"
  39820. deprecated="not deprecated">
  39821. <param name="in" type="java.io.DataInput"/>
  39822. <exception name="IOException" type="java.io.IOException"/>
  39823. </method>
  39824. <doc>
  39825. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  39826. <p>
  39827. It allows the removal of selected false positives at the cost of introducing
  39828. random false negatives, and with the benefit of eliminating some random false
  39829. positives at the same time.
  39830. <p>
  39831. Originally created by
  39832. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  39833. @see Filter The general behavior of a filter
  39834. @see BloomFilter A Bloom filter
  39835. @see RemoveScheme The different selective clearing algorithms
  39836. @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>]]>
  39837. </doc>
  39838. </class>
  39839. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  39840. </package>
  39841. <package name="org.apache.hadoop.util.curator">
  39842. </package>
  39843. <package name="org.apache.hadoop.util.hash">
  39844. </package>
  39845. </api>