hadoop-core_0.22.0.xml 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Sun Dec 04 00:57:52 UTC 2011 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop-core 0.22.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet -docletpath /x1/jenkins/jenkins-slave/workspace/Hadoop-22-Build/common/common/build/hadoop-common-0.22.0.jar:/x1/jenkins/jenkins-slave/workspace/Hadoop-22-Build/common/common/build/ivy/lib/Hadoop-Common/jdiff/jdiff-1.0.9.jar -classpath /x1/jenkins/jenkins-slave/workspace/Hadoop-22-Build/common/common/build/classes:/x1/jenkins/jenkins-slave/workspace/Hadoop-22-Build/common/common/conf:/home/jenkins/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/home/jenkins/.ivy2/cache/log4j/log4j/bundles/log4j-1.2.16.jar:/home/jenkins/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/home/jenkins/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/home/jenkins/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/home/jenkins/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.7.1.jar:/home/jenkins/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.1.jar:/home/jenkins/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/home/jenkins/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/home/jenkins/.ivy2/cache/net.sf.kosmosfs/kfs/jars/kfs-0.3.jar:/home/jenkins/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/home/jenkins/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/home/jenkins/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/home/jenkins/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/home/jenkins/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/home/jenkins/.ivy2/cache/org.mortbay.jetty/jsp-2.1-jetty/jars/jsp-2.1-jetty-6.1.26.jar:/home/jenkins/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/home/jenkins/.ivy2/cache/org.mortbay.jetty/jsp-api-2.1-glassfish/jars/jsp-api-2.1-glassfish-2.1.v20091210.jar:/home/jenkins/.ivy2/cache/org.mortbay.jetty/jsp-2.1-glassfish/jars/jsp-2.1-glassfish-2.1.v20091210.jar:/home/jenkins/.ivy2/cache/org.eclipse.jdt.core.compiler/ecj/jars/ecj-3.5.1.jar:/home/jenkins/.ivy2/cache/ant/ant/jars/ant-1.6.5.jar:/home/jenkins/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/home/jenkins/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/home/jenkins/.ivy2/cache/hsqldb/hsqldb/jars/hsqldb-1.8.0.10.jar:/home/jenkins/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.1.jar:/home/jenkins/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.6.1.jar:/home/jenkins/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar:/home/jenkins/.ivy2/cache/org.apache.avro/avro/jars/avro-1.5.3.jar:/home/jenkins/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.7.3.jar:/home/jenkins/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.7.3.jar:/home/jenkins/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.3.jar:/home/jenkins/.ivy2/cache/org.xerial.snappy/snappy-java/bundles/snappy-java-1.0.3.2.jar:/home/jenkins/.ivy2/cache/org.apache.avro/avro-compiler/jars/avro-compiler-1.5.3.jar:/home/jenkins/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.5.jar:/home/jenkins/.ivy2/cache/org.apache.velocity/velocity/jars/velocity-1.6.4.jar:/home/jenkins/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/home/jenkins/.ivy2/cache/org.apache.avro/avro-ipc/jars/avro-ipc-1.5.3.jar:/home/jenkins/.ivy2/cache/com.thoughtworks.paranamer/paranamer-ant/jars/paranamer-ant-2.3.jar:/home/jenkins/.ivy2/cache/com.thoughtworks.paranamer/paranamer-generator/jars/paranamer-generator-2.3.jar:/home/jenkins/.ivy2/cache/com.thoughtworks.qdox/qdox/jars/qdox-1.12.jar:/home/jenkins/.ivy2/cache/asm/asm/jars/asm-3.3.jar:/home/jenkins/.ivy2/cache/org.apache.ant/ant/jars/ant-1.7.1.jar:/home/jenkins/.ivy2/cache/org.apache.ant/ant-launcher/jars/ant-launcher-1.7.1.jar:/home/jenkins/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.5.jar:/home/jenkins/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.5.jar:/home/jenkins/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.5.jar:/home/jenkins/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.42.jar:/home/jenkins/.ivy2/cache/com.google.guava/guava/jars/guava-r09.jar:/home/jenkins/tools/ant/latest/lib/ant-launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-resolver.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-bcel.jar:/home/jenkins/tools/ant/latest/lib/ant-jsch.jar:/home/jenkins/tools/ant/latest/lib/ant-jmf.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-oro.jar:/home/jenkins/tools/ant/latest/lib/ant-netrexx.jar:/home/jenkins/tools/ant/latest/lib/ant-testutil.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-xalan2.jar:/home/jenkins/tools/ant/latest/lib/ant-javamail.jar:/home/jenkins/tools/ant/latest/lib/ant.jar:/home/jenkins/tools/ant/latest/lib/ant-junit.jar:/home/jenkins/tools/ant/latest/lib/ant-swing.jar:/home/jenkins/tools/ant/latest/lib/ant-commons-net.jar:/home/jenkins/tools/ant/latest/lib/ant-jdepend.jar:/home/jenkins/tools/ant/latest/lib/ant-junit4.jar:/home/jenkins/tools/ant/latest/lib/ant-commons-logging.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-bsf.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-log4j.jar:/home/jenkins/tools/ant/latest/lib/ant-jai.jar:/home/jenkins/tools/ant/latest/lib/ant-apache-regexp.jar:/home/jenkins/tools/ant/latest/lib/ant-antlr.jar:/tmp/jdk1.6.0_29/lib/tools.jar -sourcepath /x1/jenkins/jenkins-slave/workspace/Hadoop-22-Build/common/common/src/java -apidir /x1/jenkins/jenkins-slave/workspace/Hadoop-22-Build/common/common/lib/jdiff -apiname hadoop-core 0.22.0 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopIllegalArgumentException -->
  13. <class name="HadoopIllegalArgumentException" extends="java.lang.IllegalArgumentException"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="HadoopIllegalArgumentException" type="java.lang.String"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. <doc>
  21. <![CDATA[Constructs exception with the specified detail message.
  22. @param message detailed message.]]>
  23. </doc>
  24. </constructor>
  25. <doc>
  26. <![CDATA[Indicates that a method has been passed illegal or invalid argument. This
  27. exception is thrown instead of IllegalArgumentException to differentiate the
  28. exception thrown in Hadoop implementation from the one thrown in JDK.]]>
  29. </doc>
  30. </class>
  31. <!-- end class org.apache.hadoop.HadoopIllegalArgumentException -->
  32. </package>
  33. <package name="org.apache.hadoop.classification">
  34. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  35. <class name="InterfaceAudience" extends="java.lang.Object"
  36. abstract="false"
  37. static="false" final="false" visibility="public"
  38. deprecated="not deprecated">
  39. <doc>
  40. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  41. </doc>
  42. </class>
  43. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  44. <!-- start class org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  45. <class name="InterfaceAudience.LimitedPrivate" abstract="true"
  46. static="true" final="false" visibility="public"
  47. deprecated="not deprecated">
  48. <implements name="java.lang.annotation.Annotation"/>
  49. <doc>
  50. <![CDATA[Intended only for the project(s) specified in the annotation.
  51. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  52. </doc>
  53. </class>
  54. <!-- end class org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  55. <!-- start class org.apache.hadoop.classification.InterfaceAudience.Private -->
  56. <class name="InterfaceAudience.Private" abstract="true"
  57. static="true" final="false" visibility="public"
  58. deprecated="not deprecated">
  59. <implements name="java.lang.annotation.Annotation"/>
  60. <doc>
  61. <![CDATA[Intended for use only within Hadoop itself.]]>
  62. </doc>
  63. </class>
  64. <!-- end class org.apache.hadoop.classification.InterfaceAudience.Private -->
  65. <!-- start class org.apache.hadoop.classification.InterfaceAudience.Public -->
  66. <class name="InterfaceAudience.Public" abstract="true"
  67. static="true" final="false" visibility="public"
  68. deprecated="not deprecated">
  69. <implements name="java.lang.annotation.Annotation"/>
  70. <doc>
  71. <![CDATA[Intended for use by any project or application.]]>
  72. </doc>
  73. </class>
  74. <!-- end class org.apache.hadoop.classification.InterfaceAudience.Public -->
  75. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  76. <class name="InterfaceStability" extends="java.lang.Object"
  77. abstract="false"
  78. static="false" final="false" visibility="public"
  79. deprecated="not deprecated">
  80. <constructor name="InterfaceStability"
  81. static="false" final="false" visibility="public"
  82. deprecated="not deprecated">
  83. </constructor>
  84. <doc>
  85. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  86. class or method not changing over time.]]>
  87. </doc>
  88. </class>
  89. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  90. <!-- start class org.apache.hadoop.classification.InterfaceStability.Evolving -->
  91. <class name="InterfaceStability.Evolving" abstract="true"
  92. static="true" final="false" visibility="public"
  93. deprecated="not deprecated">
  94. <implements name="java.lang.annotation.Annotation"/>
  95. <doc>
  96. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  97. </doc>
  98. </class>
  99. <!-- end class org.apache.hadoop.classification.InterfaceStability.Evolving -->
  100. <!-- start class org.apache.hadoop.classification.InterfaceStability.Stable -->
  101. <class name="InterfaceStability.Stable" abstract="true"
  102. static="true" final="false" visibility="public"
  103. deprecated="not deprecated">
  104. <implements name="java.lang.annotation.Annotation"/>
  105. <doc>
  106. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  107. can break compatibility only at major release (ie. at m.0).]]>
  108. </doc>
  109. </class>
  110. <!-- end class org.apache.hadoop.classification.InterfaceStability.Stable -->
  111. <!-- start class org.apache.hadoop.classification.InterfaceStability.Unstable -->
  112. <class name="InterfaceStability.Unstable" abstract="true"
  113. static="true" final="false" visibility="public"
  114. deprecated="not deprecated">
  115. <implements name="java.lang.annotation.Annotation"/>
  116. <doc>
  117. <![CDATA[No guarantee is provided as to reliability or stability across any
  118. level of release granularity.]]>
  119. </doc>
  120. </class>
  121. <!-- end class org.apache.hadoop.classification.InterfaceStability.Unstable -->
  122. </package>
  123. <package name="org.apache.hadoop.conf">
  124. <!-- start interface org.apache.hadoop.conf.Configurable -->
  125. <interface name="Configurable" abstract="true"
  126. static="false" final="false" visibility="public"
  127. deprecated="not deprecated">
  128. <method name="setConf"
  129. abstract="false" native="false" synchronized="false"
  130. static="false" final="false" visibility="public"
  131. deprecated="not deprecated">
  132. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  133. <doc>
  134. <![CDATA[Set the configuration to be used by this object.]]>
  135. </doc>
  136. </method>
  137. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  138. abstract="false" native="false" synchronized="false"
  139. static="false" final="false" visibility="public"
  140. deprecated="not deprecated">
  141. <doc>
  142. <![CDATA[Return the configuration used by this object.]]>
  143. </doc>
  144. </method>
  145. <doc>
  146. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  147. </doc>
  148. </interface>
  149. <!-- end interface org.apache.hadoop.conf.Configurable -->
  150. <!-- start class org.apache.hadoop.conf.Configuration -->
  151. <class name="Configuration" extends="java.lang.Object"
  152. abstract="false"
  153. static="false" final="false" visibility="public"
  154. deprecated="not deprecated">
  155. <implements name="java.lang.Iterable"/>
  156. <implements name="org.apache.hadoop.io.Writable"/>
  157. <constructor name="Configuration"
  158. static="false" final="false" visibility="public"
  159. deprecated="not deprecated">
  160. <doc>
  161. <![CDATA[A new configuration.]]>
  162. </doc>
  163. </constructor>
  164. <constructor name="Configuration" type="boolean"
  165. static="false" final="false" visibility="public"
  166. deprecated="not deprecated">
  167. <doc>
  168. <![CDATA[A new configuration where the behavior of reading from the default
  169. resources can be turned off.
  170. If the parameter {@code loadDefaults} is false, the new instance
  171. will not load resources from the default files.
  172. @param loadDefaults specifies whether to load from the default files]]>
  173. </doc>
  174. </constructor>
  175. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  176. static="false" final="false" visibility="public"
  177. deprecated="not deprecated">
  178. <doc>
  179. <![CDATA[A new configuration with the same settings cloned from another.
  180. @param other the configuration from which to clone settings.]]>
  181. </doc>
  182. </constructor>
  183. <method name="addDeprecation"
  184. abstract="false" native="false" synchronized="true"
  185. static="true" final="false" visibility="public"
  186. deprecated="not deprecated">
  187. <param name="key" type="java.lang.String"/>
  188. <param name="newKeys" type="java.lang.String[]"/>
  189. <param name="customMessage" type="java.lang.String"/>
  190. <doc>
  191. <![CDATA[Adds the deprecated key to the deprecation map.
  192. It does not override any existing entries in the deprecation map.
  193. This is to be used only by the developers in order to add deprecation of
  194. keys, and attempts to call this method after loading resources once,
  195. would lead to <tt>UnsupportedOperationException</tt>
  196. @param key
  197. @param newKeys
  198. @param customMessage]]>
  199. </doc>
  200. </method>
  201. <method name="addDeprecation"
  202. abstract="false" native="false" synchronized="true"
  203. static="true" final="false" visibility="public"
  204. deprecated="not deprecated">
  205. <param name="key" type="java.lang.String"/>
  206. <param name="newKeys" type="java.lang.String[]"/>
  207. <doc>
  208. <![CDATA[Adds the deprecated key to the deprecation map when no custom message
  209. is provided.
  210. It does not override any existing entries in the deprecation map.
  211. This is to be used only by the developers in order to add deprecation of
  212. keys, and attempts to call this method after loading resources once,
  213. would lead to <tt>UnsupportedOperationException</tt>
  214. @param key Key that is to be deprecated
  215. @param newKeys list of keys that take up the values of deprecated key]]>
  216. </doc>
  217. </method>
  218. <method name="addDefaultResource"
  219. abstract="false" native="false" synchronized="true"
  220. static="true" final="false" visibility="public"
  221. deprecated="not deprecated">
  222. <param name="name" type="java.lang.String"/>
  223. <doc>
  224. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  225. added.
  226. @param name file name. File should be present in the classpath.]]>
  227. </doc>
  228. </method>
  229. <method name="addResource"
  230. abstract="false" native="false" synchronized="false"
  231. static="false" final="false" visibility="public"
  232. deprecated="not deprecated">
  233. <param name="name" type="java.lang.String"/>
  234. <doc>
  235. <![CDATA[Add a configuration resource.
  236. The properties of this resource will override properties of previously
  237. added resources, unless they were marked <a href="#Final">final</a>.
  238. @param name resource to be added, the classpath is examined for a file
  239. with that name.]]>
  240. </doc>
  241. </method>
  242. <method name="addResource"
  243. abstract="false" native="false" synchronized="false"
  244. static="false" final="false" visibility="public"
  245. deprecated="not deprecated">
  246. <param name="url" type="java.net.URL"/>
  247. <doc>
  248. <![CDATA[Add a configuration resource.
  249. The properties of this resource will override properties of previously
  250. added resources, unless they were marked <a href="#Final">final</a>.
  251. @param url url of the resource to be added, the local filesystem is
  252. examined directly to find the resource, without referring to
  253. the classpath.]]>
  254. </doc>
  255. </method>
  256. <method name="addResource"
  257. abstract="false" native="false" synchronized="false"
  258. static="false" final="false" visibility="public"
  259. deprecated="not deprecated">
  260. <param name="file" type="org.apache.hadoop.fs.Path"/>
  261. <doc>
  262. <![CDATA[Add a configuration resource.
  263. The properties of this resource will override properties of previously
  264. added resources, unless they were marked <a href="#Final">final</a>.
  265. @param file file-path of resource to be added, the local filesystem is
  266. examined directly to find the resource, without referring to
  267. the classpath.]]>
  268. </doc>
  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="in" type="java.io.InputStream"/>
  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 in InputStream to deserialize the object from.]]>
  280. </doc>
  281. </method>
  282. <method name="reloadConfiguration"
  283. abstract="false" native="false" synchronized="true"
  284. static="false" final="false" visibility="public"
  285. deprecated="not deprecated">
  286. <doc>
  287. <![CDATA[Reload configuration from previously added resources.
  288. This method will clear all the configuration read from the added
  289. resources, and final parameters. This will make the resources to
  290. be read again before accessing the values. Values that are added
  291. via set methods will overlay values read from the resources.]]>
  292. </doc>
  293. </method>
  294. <method name="get" return="java.lang.String"
  295. abstract="false" native="false" synchronized="false"
  296. static="false" final="false" visibility="public"
  297. deprecated="not deprecated">
  298. <param name="name" type="java.lang.String"/>
  299. <doc>
  300. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  301. no such property exists. If the key is deprecated, it returns the value of
  302. the first key which replaces the deprecated key and is not null
  303. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  304. before being returned.
  305. @param name the property name.
  306. @return the value of the <code>name</code> or its replacing property,
  307. or null if no such property exists.]]>
  308. </doc>
  309. </method>
  310. <method name="getTrimmed" return="java.lang.String"
  311. abstract="false" native="false" synchronized="false"
  312. static="false" final="false" visibility="public"
  313. deprecated="not deprecated">
  314. <param name="name" type="java.lang.String"/>
  315. <doc>
  316. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  317. <code>null</code> if no such property exists.
  318. If the key is deprecated, it returns the value of
  319. the first key which replaces the deprecated key and is not null
  320. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  321. before being returned.
  322. @param name the property name.
  323. @return the value of the <code>name</code> or its replacing property,
  324. or null if no such property exists.]]>
  325. </doc>
  326. </method>
  327. <method name="getRaw" return="java.lang.String"
  328. abstract="false" native="false" synchronized="false"
  329. static="false" final="false" visibility="public"
  330. deprecated="not deprecated">
  331. <param name="name" type="java.lang.String"/>
  332. <doc>
  333. <![CDATA[Get the value of the <code>name</code> property, without doing
  334. <a href="#VariableExpansion">variable expansion</a>.If the key is
  335. deprecated, it returns the value of the first key which replaces
  336. the deprecated key and is not null.
  337. @param name the property name.
  338. @return the value of the <code>name</code> property or
  339. its replacing property and null if no such property exists.]]>
  340. </doc>
  341. </method>
  342. <method name="set"
  343. abstract="false" native="false" synchronized="false"
  344. static="false" final="false" visibility="public"
  345. deprecated="not deprecated">
  346. <param name="name" type="java.lang.String"/>
  347. <param name="value" type="java.lang.String"/>
  348. <doc>
  349. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  350. <code>name</code> is deprecated, it sets the <code>value</code> to the keys
  351. that replace the deprecated key.
  352. @param name property name.
  353. @param value property value.]]>
  354. </doc>
  355. </method>
  356. <method name="setIfUnset"
  357. abstract="false" native="false" synchronized="false"
  358. static="false" final="false" visibility="public"
  359. deprecated="not deprecated">
  360. <param name="name" type="java.lang.String"/>
  361. <param name="value" type="java.lang.String"/>
  362. <doc>
  363. <![CDATA[Sets a property if it is currently unset.
  364. @param name the property name
  365. @param value the new value]]>
  366. </doc>
  367. </method>
  368. <method name="get" return="java.lang.String"
  369. abstract="false" native="false" synchronized="false"
  370. static="false" final="false" visibility="public"
  371. deprecated="not deprecated">
  372. <param name="name" type="java.lang.String"/>
  373. <param name="defaultValue" type="java.lang.String"/>
  374. <doc>
  375. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  376. it returns the value of the first key which replaces the deprecated key
  377. and is not null.
  378. If no such property exists,
  379. then <code>defaultValue</code> is returned.
  380. @param name property name.
  381. @param defaultValue default value.
  382. @return property value, or <code>defaultValue</code> if the property
  383. doesn't exist.]]>
  384. </doc>
  385. </method>
  386. <method name="getInt" return="int"
  387. abstract="false" native="false" synchronized="false"
  388. static="false" final="false" visibility="public"
  389. deprecated="not deprecated">
  390. <param name="name" type="java.lang.String"/>
  391. <param name="defaultValue" type="int"/>
  392. <doc>
  393. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  394. If no such property exists, or if the specified value is not a valid
  395. <code>int</code>, then <code>defaultValue</code> is returned.
  396. @param name property name.
  397. @param defaultValue default value.
  398. @return property value as an <code>int</code>,
  399. or <code>defaultValue</code>.]]>
  400. </doc>
  401. </method>
  402. <method name="setInt"
  403. abstract="false" native="false" synchronized="false"
  404. static="false" final="false" visibility="public"
  405. deprecated="not deprecated">
  406. <param name="name" type="java.lang.String"/>
  407. <param name="value" type="int"/>
  408. <doc>
  409. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  410. @param name property name.
  411. @param value <code>int</code> value of the property.]]>
  412. </doc>
  413. </method>
  414. <method name="getLong" return="long"
  415. abstract="false" native="false" synchronized="false"
  416. static="false" final="false" visibility="public"
  417. deprecated="not deprecated">
  418. <param name="name" type="java.lang.String"/>
  419. <param name="defaultValue" type="long"/>
  420. <doc>
  421. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  422. If no such property is specified, or if the specified value is not a valid
  423. <code>long</code>, then <code>defaultValue</code> is returned.
  424. @param name property name.
  425. @param defaultValue default value.
  426. @return property value as a <code>long</code>,
  427. or <code>defaultValue</code>.]]>
  428. </doc>
  429. </method>
  430. <method name="setLong"
  431. abstract="false" native="false" synchronized="false"
  432. static="false" final="false" visibility="public"
  433. deprecated="not deprecated">
  434. <param name="name" type="java.lang.String"/>
  435. <param name="value" type="long"/>
  436. <doc>
  437. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  438. @param name property name.
  439. @param value <code>long</code> value of the property.]]>
  440. </doc>
  441. </method>
  442. <method name="getFloat" return="float"
  443. abstract="false" native="false" synchronized="false"
  444. static="false" final="false" visibility="public"
  445. deprecated="not deprecated">
  446. <param name="name" type="java.lang.String"/>
  447. <param name="defaultValue" type="float"/>
  448. <doc>
  449. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  450. If no such property is specified, or if the specified value is not a valid
  451. <code>float</code>, then <code>defaultValue</code> is returned.
  452. @param name property name.
  453. @param defaultValue default value.
  454. @return property value as a <code>float</code>,
  455. or <code>defaultValue</code>.]]>
  456. </doc>
  457. </method>
  458. <method name="setFloat"
  459. abstract="false" native="false" synchronized="false"
  460. static="false" final="false" visibility="public"
  461. deprecated="not deprecated">
  462. <param name="name" type="java.lang.String"/>
  463. <param name="value" type="float"/>
  464. <doc>
  465. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  466. @param name property name.
  467. @param value property value.]]>
  468. </doc>
  469. </method>
  470. <method name="getBoolean" return="boolean"
  471. abstract="false" native="false" synchronized="false"
  472. static="false" final="false" visibility="public"
  473. deprecated="not deprecated">
  474. <param name="name" type="java.lang.String"/>
  475. <param name="defaultValue" type="boolean"/>
  476. <doc>
  477. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  478. If no such property is specified, or if the specified value is not a valid
  479. <code>boolean</code>, then <code>defaultValue</code> is returned.
  480. @param name property name.
  481. @param defaultValue default value.
  482. @return property value as a <code>boolean</code>,
  483. or <code>defaultValue</code>.]]>
  484. </doc>
  485. </method>
  486. <method name="setBoolean"
  487. abstract="false" native="false" synchronized="false"
  488. static="false" final="false" visibility="public"
  489. deprecated="not deprecated">
  490. <param name="name" type="java.lang.String"/>
  491. <param name="value" type="boolean"/>
  492. <doc>
  493. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  494. @param name property name.
  495. @param value <code>boolean</code> value of the property.]]>
  496. </doc>
  497. </method>
  498. <method name="setBooleanIfUnset"
  499. abstract="false" native="false" synchronized="false"
  500. static="false" final="false" visibility="public"
  501. deprecated="not deprecated">
  502. <param name="name" type="java.lang.String"/>
  503. <param name="value" type="boolean"/>
  504. <doc>
  505. <![CDATA[Set the given property, if it is currently unset.
  506. @param name property name
  507. @param value new value]]>
  508. </doc>
  509. </method>
  510. <method name="setEnum"
  511. abstract="false" native="false" synchronized="false"
  512. static="false" final="false" visibility="public"
  513. deprecated="not deprecated">
  514. <param name="name" type="java.lang.String"/>
  515. <param name="value" type="T"/>
  516. <doc>
  517. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  518. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  519. @param name property name
  520. @param value new value]]>
  521. </doc>
  522. </method>
  523. <method name="getEnum" return="T"
  524. abstract="false" native="false" synchronized="false"
  525. static="false" final="false" visibility="public"
  526. deprecated="not deprecated">
  527. <param name="name" type="java.lang.String"/>
  528. <param name="defaultValue" type="T"/>
  529. <doc>
  530. <![CDATA[Return value matching this enumerated type.
  531. @param name Property name
  532. @param defaultValue Value returned if no mapping exists
  533. @throws IllegalArgumentException If mapping is illegal for the type
  534. provided]]>
  535. </doc>
  536. </method>
  537. <method name="getPattern" return="java.util.regex.Pattern"
  538. abstract="false" native="false" synchronized="false"
  539. static="false" final="false" visibility="public"
  540. deprecated="not deprecated">
  541. <param name="name" type="java.lang.String"/>
  542. <param name="defaultValue" type="java.util.regex.Pattern"/>
  543. <doc>
  544. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  545. If no such property is specified, or if the specified value is not a valid
  546. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  547. @param name property name
  548. @param defaultValue default value
  549. @return property value as a compiled Pattern, or defaultValue]]>
  550. </doc>
  551. </method>
  552. <method name="setPattern"
  553. abstract="false" native="false" synchronized="false"
  554. static="false" final="false" visibility="public"
  555. deprecated="not deprecated">
  556. <param name="name" type="java.lang.String"/>
  557. <param name="pattern" type="java.util.regex.Pattern"/>
  558. <doc>
  559. <![CDATA[Set the given property to <code>Pattern</code>.
  560. If the pattern is passed as null, sets the empty pattern which results in
  561. further calls to getPattern(...) returning the default value.
  562. @param name property name
  563. @param pattern new value]]>
  564. </doc>
  565. </method>
  566. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  567. abstract="false" native="false" synchronized="false"
  568. static="false" final="false" visibility="public"
  569. deprecated="not deprecated">
  570. <param name="name" type="java.lang.String"/>
  571. <param name="defaultValue" type="java.lang.String"/>
  572. <doc>
  573. <![CDATA[Parse the given attribute as a set of integer ranges
  574. @param name the attribute name
  575. @param defaultValue the default value if it is not set
  576. @return a new set of ranges from the configured value]]>
  577. </doc>
  578. </method>
  579. <method name="getStringCollection" return="java.util.Collection"
  580. abstract="false" native="false" synchronized="false"
  581. static="false" final="false" visibility="public"
  582. deprecated="not deprecated">
  583. <param name="name" type="java.lang.String"/>
  584. <doc>
  585. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  586. a collection of <code>String</code>s.
  587. If no such property is specified then empty collection is returned.
  588. <p>
  589. This is an optimized version of {@link #getStrings(String)}
  590. @param name property name.
  591. @return property value as a collection of <code>String</code>s.]]>
  592. </doc>
  593. </method>
  594. <method name="getStrings" return="java.lang.String[]"
  595. abstract="false" native="false" synchronized="false"
  596. static="false" final="false" visibility="public"
  597. deprecated="not deprecated">
  598. <param name="name" type="java.lang.String"/>
  599. <doc>
  600. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  601. an array of <code>String</code>s.
  602. If no such property is specified then <code>null</code> is returned.
  603. @param name property name.
  604. @return property value as an array of <code>String</code>s,
  605. or <code>null</code>.]]>
  606. </doc>
  607. </method>
  608. <method name="getStrings" return="java.lang.String[]"
  609. abstract="false" native="false" synchronized="false"
  610. static="false" final="false" visibility="public"
  611. deprecated="not deprecated">
  612. <param name="name" type="java.lang.String"/>
  613. <param name="defaultValue" type="java.lang.String[]"/>
  614. <doc>
  615. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  616. an array of <code>String</code>s.
  617. If no such property is specified then default value is returned.
  618. @param name property name.
  619. @param defaultValue The default value
  620. @return property value as an array of <code>String</code>s,
  621. or default value.]]>
  622. </doc>
  623. </method>
  624. <method name="getTrimmedStringCollection" return="java.util.Collection"
  625. abstract="false" native="false" synchronized="false"
  626. static="false" final="false" visibility="public"
  627. deprecated="not deprecated">
  628. <param name="name" type="java.lang.String"/>
  629. <doc>
  630. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  631. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  632. If no such property is specified then empty <code>Collection</code> is returned.
  633. @param name property name.
  634. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  635. </doc>
  636. </method>
  637. <method name="getTrimmedStrings" return="java.lang.String[]"
  638. abstract="false" native="false" synchronized="false"
  639. static="false" final="false" visibility="public"
  640. deprecated="not deprecated">
  641. <param name="name" type="java.lang.String"/>
  642. <doc>
  643. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  644. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  645. If no such property is specified then an empty array is returned.
  646. @param name property name.
  647. @return property value as an array of trimmed <code>String</code>s,
  648. or empty array.]]>
  649. </doc>
  650. </method>
  651. <method name="getTrimmedStrings" return="java.lang.String[]"
  652. abstract="false" native="false" synchronized="false"
  653. static="false" final="false" visibility="public"
  654. deprecated="not deprecated">
  655. <param name="name" type="java.lang.String"/>
  656. <param name="defaultValue" type="java.lang.String[]"/>
  657. <doc>
  658. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  659. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  660. If no such property is specified then default value is returned.
  661. @param name property name.
  662. @param defaultValue The default value
  663. @return property value as an array of trimmed <code>String</code>s,
  664. or default value.]]>
  665. </doc>
  666. </method>
  667. <method name="setStrings"
  668. abstract="false" native="false" synchronized="false"
  669. static="false" final="false" visibility="public"
  670. deprecated="not deprecated">
  671. <param name="name" type="java.lang.String"/>
  672. <param name="values" type="java.lang.String[]"/>
  673. <doc>
  674. <![CDATA[Set the array of string values for the <code>name</code> property as
  675. as comma delimited values.
  676. @param name property name.
  677. @param values The values]]>
  678. </doc>
  679. </method>
  680. <method name="getClassByName" return="java.lang.Class"
  681. abstract="false" native="false" synchronized="false"
  682. static="false" final="false" visibility="public"
  683. deprecated="not deprecated">
  684. <param name="name" type="java.lang.String"/>
  685. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  686. <doc>
  687. <![CDATA[Load a class by name.
  688. @param name the class name.
  689. @return the class object.
  690. @throws ClassNotFoundException if the class is not found.]]>
  691. </doc>
  692. </method>
  693. <method name="getClasses" return="java.lang.Class[]"
  694. abstract="false" native="false" synchronized="false"
  695. static="false" final="false" visibility="public"
  696. deprecated="not deprecated">
  697. <param name="name" type="java.lang.String"/>
  698. <param name="defaultValue" type="java.lang.Class[]"/>
  699. <doc>
  700. <![CDATA[Get the value of the <code>name</code> property
  701. as an array of <code>Class</code>.
  702. The value of the property specifies a list of comma separated class names.
  703. If no such property is specified, then <code>defaultValue</code> is
  704. returned.
  705. @param name the property name.
  706. @param defaultValue default value.
  707. @return property value as a <code>Class[]</code>,
  708. or <code>defaultValue</code>.]]>
  709. </doc>
  710. </method>
  711. <method name="getClass" return="java.lang.Class"
  712. abstract="false" native="false" synchronized="false"
  713. static="false" final="false" visibility="public"
  714. deprecated="not deprecated">
  715. <param name="name" type="java.lang.String"/>
  716. <param name="defaultValue" type="java.lang.Class"/>
  717. <doc>
  718. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  719. If no such property is specified, then <code>defaultValue</code> is
  720. returned.
  721. @param name the class name.
  722. @param defaultValue default value.
  723. @return property value as a <code>Class</code>,
  724. or <code>defaultValue</code>.]]>
  725. </doc>
  726. </method>
  727. <method name="getClass" return="java.lang.Class"
  728. abstract="false" native="false" synchronized="false"
  729. static="false" final="false" visibility="public"
  730. deprecated="not deprecated">
  731. <param name="name" type="java.lang.String"/>
  732. <param name="defaultValue" type="java.lang.Class"/>
  733. <param name="xface" type="java.lang.Class"/>
  734. <doc>
  735. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  736. implementing the interface specified by <code>xface</code>.
  737. If no such property is specified, then <code>defaultValue</code> is
  738. returned.
  739. An exception is thrown if the returned class does not implement the named
  740. interface.
  741. @param name the class name.
  742. @param defaultValue default value.
  743. @param xface the interface implemented by the named class.
  744. @return property value as a <code>Class</code>,
  745. or <code>defaultValue</code>.]]>
  746. </doc>
  747. </method>
  748. <method name="getInstances" return="java.util.List"
  749. abstract="false" native="false" synchronized="false"
  750. static="false" final="false" visibility="public"
  751. deprecated="not deprecated">
  752. <param name="name" type="java.lang.String"/>
  753. <param name="xface" type="java.lang.Class"/>
  754. <doc>
  755. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  756. of objects implementing the interface specified by <code>xface</code>.
  757. An exception is thrown if any of the classes does not exist, or if it does
  758. not implement the named interface.
  759. @param name the property name.
  760. @param xface the interface implemented by the classes named by
  761. <code>name</code>.
  762. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  763. </doc>
  764. </method>
  765. <method name="setClass"
  766. abstract="false" native="false" synchronized="false"
  767. static="false" final="false" visibility="public"
  768. deprecated="not deprecated">
  769. <param name="name" type="java.lang.String"/>
  770. <param name="theClass" type="java.lang.Class"/>
  771. <param name="xface" type="java.lang.Class"/>
  772. <doc>
  773. <![CDATA[Set the value of the <code>name</code> property to the name of a
  774. <code>theClass</code> implementing the given interface <code>xface</code>.
  775. An exception is thrown if <code>theClass</code> does not implement the
  776. interface <code>xface</code>.
  777. @param name property name.
  778. @param theClass property value.
  779. @param xface the interface implemented by the named class.]]>
  780. </doc>
  781. </method>
  782. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  783. abstract="false" native="false" synchronized="false"
  784. static="false" final="false" visibility="public"
  785. deprecated="not deprecated">
  786. <param name="dirsProp" type="java.lang.String"/>
  787. <param name="path" type="java.lang.String"/>
  788. <exception name="IOException" type="java.io.IOException"/>
  789. <doc>
  790. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  791. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  792. then one is chosen based on <i>path</i>'s hash code. If the selected
  793. directory does not exist, an attempt is made to create it.
  794. @param dirsProp directory in which to locate the file.
  795. @param path file-path.
  796. @return local file under the directory with the given path.]]>
  797. </doc>
  798. </method>
  799. <method name="getFile" return="java.io.File"
  800. abstract="false" native="false" synchronized="false"
  801. static="false" final="false" visibility="public"
  802. deprecated="not deprecated">
  803. <param name="dirsProp" type="java.lang.String"/>
  804. <param name="path" type="java.lang.String"/>
  805. <exception name="IOException" type="java.io.IOException"/>
  806. <doc>
  807. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  808. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  809. then one is chosen based on <i>path</i>'s hash code. If the selected
  810. directory does not exist, an attempt is made to create it.
  811. @param dirsProp directory in which to locate the file.
  812. @param path file-path.
  813. @return local file under the directory with the given path.]]>
  814. </doc>
  815. </method>
  816. <method name="getResource" return="java.net.URL"
  817. abstract="false" native="false" synchronized="false"
  818. static="false" final="false" visibility="public"
  819. deprecated="not deprecated">
  820. <param name="name" type="java.lang.String"/>
  821. <doc>
  822. <![CDATA[Get the {@link URL} for the named resource.
  823. @param name resource name.
  824. @return the url for the named resource.]]>
  825. </doc>
  826. </method>
  827. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  828. abstract="false" native="false" synchronized="false"
  829. static="false" final="false" visibility="public"
  830. deprecated="not deprecated">
  831. <param name="name" type="java.lang.String"/>
  832. <doc>
  833. <![CDATA[Get an input stream attached to the configuration resource with the
  834. given <code>name</code>.
  835. @param name configuration resource name.
  836. @return an input stream attached to the resource.]]>
  837. </doc>
  838. </method>
  839. <method name="getConfResourceAsReader" return="java.io.Reader"
  840. abstract="false" native="false" synchronized="false"
  841. static="false" final="false" visibility="public"
  842. deprecated="not deprecated">
  843. <param name="name" type="java.lang.String"/>
  844. <doc>
  845. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  846. given <code>name</code>.
  847. @param name configuration resource name.
  848. @return a reader attached to the resource.]]>
  849. </doc>
  850. </method>
  851. <method name="getProps" return="java.util.Properties"
  852. abstract="false" native="false" synchronized="true"
  853. static="false" final="false" visibility="protected"
  854. deprecated="not deprecated">
  855. </method>
  856. <method name="size" return="int"
  857. abstract="false" native="false" synchronized="false"
  858. static="false" final="false" visibility="public"
  859. deprecated="not deprecated">
  860. <doc>
  861. <![CDATA[Return the number of keys in the configuration.
  862. @return number of keys in the configuration.]]>
  863. </doc>
  864. </method>
  865. <method name="clear"
  866. abstract="false" native="false" synchronized="false"
  867. static="false" final="false" visibility="public"
  868. deprecated="not deprecated">
  869. <doc>
  870. <![CDATA[Clears all keys from the configuration.]]>
  871. </doc>
  872. </method>
  873. <method name="iterator" return="java.util.Iterator"
  874. abstract="false" native="false" synchronized="false"
  875. static="false" final="false" visibility="public"
  876. deprecated="not deprecated">
  877. <doc>
  878. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  879. key-value pairs in the configuration.
  880. @return an iterator over the entries.]]>
  881. </doc>
  882. </method>
  883. <method name="writeXml"
  884. abstract="false" native="false" synchronized="false"
  885. static="false" final="false" visibility="public"
  886. deprecated="not deprecated">
  887. <param name="out" type="java.io.OutputStream"/>
  888. <exception name="IOException" type="java.io.IOException"/>
  889. <doc>
  890. <![CDATA[Write out the non-default properties in this configuration to the given
  891. {@link OutputStream}.
  892. @param out the output stream to write to.]]>
  893. </doc>
  894. </method>
  895. <method name="writeXml"
  896. abstract="false" native="false" synchronized="false"
  897. static="false" final="false" visibility="public"
  898. deprecated="not deprecated">
  899. <param name="out" type="java.io.Writer"/>
  900. <exception name="IOException" type="java.io.IOException"/>
  901. <doc>
  902. <![CDATA[Write out the non-default properties in this configuration to the given
  903. {@link Writer}.
  904. @param out the writer to write to.]]>
  905. </doc>
  906. </method>
  907. <method name="dumpConfiguration"
  908. abstract="false" native="false" synchronized="false"
  909. static="true" final="false" visibility="public"
  910. deprecated="not deprecated">
  911. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  912. <param name="out" type="java.io.Writer"/>
  913. <exception name="IOException" type="java.io.IOException"/>
  914. <doc>
  915. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  916. the given {@link Writer}
  917. The format of the output would be
  918. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  919. key2.isFinal,key2.resource}... ] }
  920. It does not output the parameters of the configuration object which is
  921. loaded from an input stream.
  922. @param out the Writer to write to
  923. @throws IOException]]>
  924. </doc>
  925. </method>
  926. <method name="getClassLoader" return="java.lang.ClassLoader"
  927. abstract="false" native="false" synchronized="false"
  928. static="false" final="false" visibility="public"
  929. deprecated="not deprecated">
  930. <doc>
  931. <![CDATA[Get the {@link ClassLoader} for this job.
  932. @return the correct class loader.]]>
  933. </doc>
  934. </method>
  935. <method name="setClassLoader"
  936. abstract="false" native="false" synchronized="false"
  937. static="false" final="false" visibility="public"
  938. deprecated="not deprecated">
  939. <param name="classLoader" type="java.lang.ClassLoader"/>
  940. <doc>
  941. <![CDATA[Set the class loader that will be used to load the various objects.
  942. @param classLoader the new class loader.]]>
  943. </doc>
  944. </method>
  945. <method name="toString" return="java.lang.String"
  946. abstract="false" native="false" synchronized="false"
  947. static="false" final="false" visibility="public"
  948. deprecated="not deprecated">
  949. </method>
  950. <method name="setQuietMode"
  951. abstract="false" native="false" synchronized="true"
  952. static="false" final="false" visibility="public"
  953. deprecated="not deprecated">
  954. <param name="quietmode" type="boolean"/>
  955. <doc>
  956. <![CDATA[Set the quietness-mode.
  957. In the quiet-mode, error and informational messages might not be logged.
  958. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  959. to turn it off.]]>
  960. </doc>
  961. </method>
  962. <method name="main"
  963. abstract="false" native="false" synchronized="false"
  964. static="true" final="false" visibility="public"
  965. deprecated="not deprecated">
  966. <param name="args" type="java.lang.String[]"/>
  967. <exception name="Exception" type="java.lang.Exception"/>
  968. <doc>
  969. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  970. </doc>
  971. </method>
  972. <method name="readFields"
  973. abstract="false" native="false" synchronized="false"
  974. static="false" final="false" visibility="public"
  975. deprecated="not deprecated">
  976. <param name="in" type="java.io.DataInput"/>
  977. <exception name="IOException" type="java.io.IOException"/>
  978. </method>
  979. <method name="write"
  980. abstract="false" native="false" synchronized="false"
  981. static="false" final="false" visibility="public"
  982. deprecated="not deprecated">
  983. <param name="out" type="java.io.DataOutput"/>
  984. <exception name="IOException" type="java.io.IOException"/>
  985. </method>
  986. <method name="getValByRegex" return="java.util.Map"
  987. abstract="false" native="false" synchronized="false"
  988. static="false" final="false" visibility="public"
  989. deprecated="not deprecated">
  990. <param name="regex" type="java.lang.String"/>
  991. <doc>
  992. <![CDATA[get keys matching the the regex
  993. @param regex
  994. @return Map<String,String> with matching keys]]>
  995. </doc>
  996. </method>
  997. <doc>
  998. <![CDATA[Provides access to configuration parameters.
  999. <h4 id="Resources">Resources</h4>
  1000. <p>Configurations are specified by resources. A resource contains a set of
  1001. name/value pairs as XML data. Each resource is named by either a
  1002. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1003. then the classpath is examined for a file with that name. If named by a
  1004. <code>Path</code>, then the local filesystem is examined directly, without
  1005. referring to the classpath.
  1006. <p>Unless explicitly turned off, Hadoop by default specifies two
  1007. resources, loaded in-order from the classpath: <ol>
  1008. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  1009. </tt>: Read-only defaults for hadoop.</li>
  1010. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1011. installation.</li>
  1012. </ol>
  1013. Applications may add additional resources, which are loaded
  1014. subsequent to these resources in the order they are added.
  1015. <h4 id="FinalParams">Final Parameters</h4>
  1016. <p>Configuration parameters may be declared <i>final</i>.
  1017. Once a resource declares a value final, no subsequently-loaded
  1018. resource can alter that value.
  1019. For example, one might define a final parameter with:
  1020. <tt><pre>
  1021. &lt;property&gt;
  1022. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  1023. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  1024. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1025. &lt;/property&gt;</pre></tt>
  1026. Administrators typically define parameters as final in
  1027. <tt>core-site.xml</tt> for values that user applications may not alter.
  1028. <h4 id="VariableExpansion">Variable Expansion</h4>
  1029. <p>Value strings are first processed for <i>variable expansion</i>. The
  1030. available properties are:<ol>
  1031. <li>Other properties defined in this Configuration; and, if a name is
  1032. undefined here,</li>
  1033. <li>Properties in {@link System#getProperties()}.</li>
  1034. </ol>
  1035. <p>For example, if a configuration resource contains the following property
  1036. definitions:
  1037. <tt><pre>
  1038. &lt;property&gt;
  1039. &lt;name&gt;basedir&lt;/name&gt;
  1040. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1041. &lt;/property&gt;
  1042. &lt;property&gt;
  1043. &lt;name&gt;tempdir&lt;/name&gt;
  1044. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1045. &lt;/property&gt;</pre></tt>
  1046. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1047. will be resolved to another property in this Configuration, while
  1048. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1049. of the System property with that name.]]>
  1050. </doc>
  1051. </class>
  1052. <!-- end class org.apache.hadoop.conf.Configuration -->
  1053. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1054. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  1055. abstract="false"
  1056. static="true" final="false" visibility="public"
  1057. deprecated="not deprecated">
  1058. <constructor name="Configuration.IntegerRanges"
  1059. static="false" final="false" visibility="public"
  1060. deprecated="not deprecated">
  1061. </constructor>
  1062. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  1063. static="false" final="false" visibility="public"
  1064. deprecated="not deprecated">
  1065. </constructor>
  1066. <method name="isIncluded" return="boolean"
  1067. abstract="false" native="false" synchronized="false"
  1068. static="false" final="false" visibility="public"
  1069. deprecated="not deprecated">
  1070. <param name="value" type="int"/>
  1071. <doc>
  1072. <![CDATA[Is the given value in the set of ranges
  1073. @param value the value to check
  1074. @return is the value in the ranges?]]>
  1075. </doc>
  1076. </method>
  1077. <method name="toString" return="java.lang.String"
  1078. abstract="false" native="false" synchronized="false"
  1079. static="false" final="false" visibility="public"
  1080. deprecated="not deprecated">
  1081. </method>
  1082. <doc>
  1083. <![CDATA[A class that represents a set of positive integer ranges. It parses
  1084. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  1085. the lower/upper bounds are separated by dash. Either the lower or upper
  1086. bound may be omitted meaning all values up to or over. So the string
  1087. above means 2, 3, 5, and 7, 8, 9, ...]]>
  1088. </doc>
  1089. </class>
  1090. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1091. <!-- start class org.apache.hadoop.conf.Configured -->
  1092. <class name="Configured" extends="java.lang.Object"
  1093. abstract="false"
  1094. static="false" final="false" visibility="public"
  1095. deprecated="not deprecated">
  1096. <implements name="org.apache.hadoop.conf.Configurable"/>
  1097. <constructor name="Configured"
  1098. static="false" final="false" visibility="public"
  1099. deprecated="not deprecated">
  1100. <doc>
  1101. <![CDATA[Construct a Configured.]]>
  1102. </doc>
  1103. </constructor>
  1104. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1105. static="false" final="false" visibility="public"
  1106. deprecated="not deprecated">
  1107. <doc>
  1108. <![CDATA[Construct a Configured.]]>
  1109. </doc>
  1110. </constructor>
  1111. <method name="setConf"
  1112. abstract="false" native="false" synchronized="false"
  1113. static="false" final="false" visibility="public"
  1114. deprecated="not deprecated">
  1115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1116. </method>
  1117. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="false" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. </method>
  1122. <doc>
  1123. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1124. </doc>
  1125. </class>
  1126. <!-- end class org.apache.hadoop.conf.Configured -->
  1127. <!-- start class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1128. <class name="ConfServlet.BadFormatException" extends="java.lang.Exception"
  1129. abstract="false"
  1130. static="true" final="false" visibility="public"
  1131. deprecated="not deprecated">
  1132. <constructor name="ConfServlet.BadFormatException" type="java.lang.String"
  1133. static="false" final="false" visibility="public"
  1134. deprecated="not deprecated">
  1135. </constructor>
  1136. </class>
  1137. <!-- end class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1138. <doc>
  1139. <![CDATA[Configuration of system parameters.]]>
  1140. </doc>
  1141. </package>
  1142. <package name="org.apache.hadoop.fs">
  1143. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  1144. <class name="AbstractFileSystem" extends="java.lang.Object"
  1145. abstract="true"
  1146. static="false" final="false" visibility="public"
  1147. deprecated="not deprecated">
  1148. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  1149. static="false" final="false" visibility="public"
  1150. deprecated="not deprecated">
  1151. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  1152. <doc>
  1153. <![CDATA[Constructor to be called by subclasses.
  1154. @param uri for this file system.
  1155. @param supportedScheme the scheme supported by the implementor
  1156. @param authorityNeeded if true then theURI must have authority, if false
  1157. then the URI must have null authority.
  1158. @throws URISyntaxException <code>uri</code> has syntax error]]>
  1159. </doc>
  1160. </constructor>
  1161. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1162. abstract="false" native="false" synchronized="false"
  1163. static="false" final="false" visibility="public"
  1164. deprecated="not deprecated">
  1165. </method>
  1166. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  1167. abstract="false" native="false" synchronized="false"
  1168. static="true" final="false" visibility="public"
  1169. deprecated="not deprecated">
  1170. <param name="uri" type="java.net.URI"/>
  1171. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1172. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1173. <doc>
  1174. <![CDATA[Create a file system instance for the specified uri using the conf. The
  1175. conf is used to find the class name that implements the file system. The
  1176. conf is also passed to the file system for its configuration.
  1177. @param uri URI of the file system
  1178. @param conf Configuration for the file system
  1179. @return Returns the file system for the given URI
  1180. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  1181. not found]]>
  1182. </doc>
  1183. </method>
  1184. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1185. abstract="false" native="false" synchronized="true"
  1186. static="true" final="false" visibility="public"
  1187. deprecated="not deprecated">
  1188. <param name="scheme" type="java.lang.String"/>
  1189. <param name="cls" type="java.lang.Class"/>
  1190. <doc>
  1191. <![CDATA[Get the statistics for a particular file system.
  1192. @param cls the class to lookup
  1193. @return a statistics object]]>
  1194. </doc>
  1195. </method>
  1196. <method name="clearStatistics"
  1197. abstract="false" native="false" synchronized="true"
  1198. static="true" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. </method>
  1201. <method name="printStatistics"
  1202. abstract="false" native="false" synchronized="true"
  1203. static="true" final="false" visibility="public"
  1204. deprecated="not deprecated">
  1205. </method>
  1206. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  1207. abstract="false" native="false" synchronized="false"
  1208. static="true" final="false" visibility="public"
  1209. deprecated="not deprecated">
  1210. <param name="uri" type="java.net.URI"/>
  1211. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1212. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1213. <doc>
  1214. <![CDATA[The main factory method for creating a file system. Get a file system for
  1215. the URI's scheme and authority. The scheme of the <code>uri</code>
  1216. determines a configuration property name,
  1217. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  1218. AbstractFileSystem class.
  1219. The entire URI and conf is passed to the AbstractFileSystem factory method.
  1220. @param uri for the file system to be created.
  1221. @param conf which is passed to the file system impl.
  1222. @return file system for the given URI.
  1223. @throws UnsupportedFileSystemException if the file system for
  1224. <code>uri</code> is not supported.]]>
  1225. </doc>
  1226. </method>
  1227. <method name="checkScheme"
  1228. abstract="false" native="false" synchronized="false"
  1229. static="false" final="false" visibility="public"
  1230. deprecated="not deprecated">
  1231. <param name="uri" type="java.net.URI"/>
  1232. <param name="supportedScheme" type="java.lang.String"/>
  1233. <doc>
  1234. <![CDATA[Check that the Uri's scheme matches
  1235. @param uri
  1236. @param supportedScheme]]>
  1237. </doc>
  1238. </method>
  1239. <method name="getUriDefaultPort" return="int"
  1240. abstract="true" native="false" synchronized="false"
  1241. static="false" final="false" visibility="public"
  1242. deprecated="not deprecated">
  1243. <doc>
  1244. <![CDATA[The default port of this file system.
  1245. @return default port of this file system's Uri scheme
  1246. A uri with a port of -1 => default port;]]>
  1247. </doc>
  1248. </method>
  1249. <method name="getUri" return="java.net.URI"
  1250. abstract="false" native="false" synchronized="false"
  1251. static="false" final="false" visibility="public"
  1252. deprecated="not deprecated">
  1253. <doc>
  1254. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  1255. @return the uri of this file system.]]>
  1256. </doc>
  1257. </method>
  1258. <method name="checkPath"
  1259. abstract="false" native="false" synchronized="false"
  1260. static="false" final="false" visibility="public"
  1261. deprecated="not deprecated">
  1262. <param name="path" type="org.apache.hadoop.fs.Path"/>
  1263. <doc>
  1264. <![CDATA[Check that a Path belongs to this FileSystem.
  1265. If the path is fully qualified URI, then its scheme and authority
  1266. matches that of this file system. Otherwise the path must be
  1267. slash-relative name.
  1268. @throws InvalidPathException if the path is invalid]]>
  1269. </doc>
  1270. </method>
  1271. <method name="getUriPath" return="java.lang.String"
  1272. abstract="false" native="false" synchronized="false"
  1273. static="false" final="false" visibility="public"
  1274. deprecated="not deprecated">
  1275. <param name="p" type="org.apache.hadoop.fs.Path"/>
  1276. <doc>
  1277. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  1278. and that the path-part is a valid name.
  1279. @param p path
  1280. @return path-part of the Path p]]>
  1281. </doc>
  1282. </method>
  1283. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  1284. abstract="false" native="false" synchronized="false"
  1285. static="false" final="false" visibility="public"
  1286. deprecated="not deprecated">
  1287. <param name="path" type="org.apache.hadoop.fs.Path"/>
  1288. <doc>
  1289. <![CDATA[Make the path fully qualified to this file system
  1290. @param path
  1291. @return the qualified path]]>
  1292. </doc>
  1293. </method>
  1294. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  1295. abstract="false" native="false" synchronized="false"
  1296. static="false" final="false" visibility="public"
  1297. deprecated="not deprecated">
  1298. <doc>
  1299. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  1300. that is used as the starting workingDir. For other file systems
  1301. like HDFS there is no built in notion of an initial workingDir.
  1302. @return the initial workingDir if the file system has such a notion
  1303. otherwise return a null.]]>
  1304. </doc>
  1305. </method>
  1306. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  1307. abstract="false" native="false" synchronized="false"
  1308. static="false" final="false" visibility="public"
  1309. deprecated="not deprecated">
  1310. <doc>
  1311. <![CDATA[Return the current user's home directory in this file system.
  1312. The default implementation returns "/user/$USER/".
  1313. @return current user's home directory.]]>
  1314. </doc>
  1315. </method>
  1316. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  1317. abstract="true" native="false" synchronized="false"
  1318. static="false" final="false" visibility="public"
  1319. deprecated="not deprecated">
  1320. <exception name="IOException" type="java.io.IOException"/>
  1321. <doc>
  1322. <![CDATA[Return a set of server default configuration values.
  1323. @return server default configuration values
  1324. @throws IOException an I/O error occurred]]>
  1325. </doc>
  1326. </method>
  1327. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1328. abstract="false" native="false" synchronized="false"
  1329. static="false" final="true" visibility="public"
  1330. deprecated="not deprecated">
  1331. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1332. <param name="createFlag" type="java.util.EnumSet"/>
  1333. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  1334. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1335. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1336. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1337. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1338. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1339. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1340. <exception name="IOException" type="java.io.IOException"/>
  1341. <doc>
  1342. <![CDATA[The specification of this method matches that of
  1343. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  1344. that the Path f must be fully qualified and the permission is absolute
  1345. (i.e. umask has been applied).]]>
  1346. </doc>
  1347. </method>
  1348. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  1349. abstract="true" native="false" synchronized="false"
  1350. static="false" final="false" visibility="public"
  1351. deprecated="not deprecated">
  1352. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1353. <param name="flag" type="java.util.EnumSet"/>
  1354. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1355. <param name="bufferSize" type="int"/>
  1356. <param name="replication" type="short"/>
  1357. <param name="blockSize" type="long"/>
  1358. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1359. <param name="bytesPerChecksum" type="int"/>
  1360. <param name="createParent" type="boolean"/>
  1361. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1362. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1363. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1364. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1365. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1366. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1367. <exception name="IOException" type="java.io.IOException"/>
  1368. <doc>
  1369. <![CDATA[The specification of this method matches that of
  1370. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  1371. have been declared explicitly.]]>
  1372. </doc>
  1373. </method>
  1374. <method name="mkdir"
  1375. abstract="true" native="false" synchronized="false"
  1376. static="false" final="false" visibility="public"
  1377. deprecated="not deprecated">
  1378. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  1379. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1380. <param name="createParent" type="boolean"/>
  1381. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1382. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1383. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1384. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1385. <exception name="IOException" type="java.io.IOException"/>
  1386. <doc>
  1387. <![CDATA[The specification of this method matches that of
  1388. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  1389. f must be fully qualified and the permission is absolute (i.e.
  1390. umask has been applied).]]>
  1391. </doc>
  1392. </method>
  1393. <method name="delete" return="boolean"
  1394. abstract="true" native="false" synchronized="false"
  1395. static="false" final="false" visibility="public"
  1396. deprecated="not deprecated">
  1397. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1398. <param name="recursive" type="boolean"/>
  1399. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1400. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1401. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1402. <exception name="IOException" type="java.io.IOException"/>
  1403. <doc>
  1404. <![CDATA[The specification of this method matches that of
  1405. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  1406. this file system.]]>
  1407. </doc>
  1408. </method>
  1409. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1410. abstract="false" native="false" synchronized="false"
  1411. static="false" final="false" visibility="public"
  1412. deprecated="not deprecated">
  1413. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1414. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1415. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1416. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1417. <exception name="IOException" type="java.io.IOException"/>
  1418. <doc>
  1419. <![CDATA[The specification of this method matches that of
  1420. {@link FileContext#open(Path)} except that Path f must be for this
  1421. file system.]]>
  1422. </doc>
  1423. </method>
  1424. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1425. abstract="true" native="false" synchronized="false"
  1426. static="false" final="false" visibility="public"
  1427. deprecated="not deprecated">
  1428. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1429. <param name="bufferSize" type="int"/>
  1430. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1431. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1432. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1433. <exception name="IOException" type="java.io.IOException"/>
  1434. <doc>
  1435. <![CDATA[The specification of this method matches that of
  1436. {@link FileContext#open(Path, int)} except that Path f must be for this
  1437. file system.]]>
  1438. </doc>
  1439. </method>
  1440. <method name="setReplication" return="boolean"
  1441. abstract="true" native="false" synchronized="false"
  1442. static="false" final="false" visibility="public"
  1443. deprecated="not deprecated">
  1444. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1445. <param name="replication" type="short"/>
  1446. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1447. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1448. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1449. <exception name="IOException" type="java.io.IOException"/>
  1450. <doc>
  1451. <![CDATA[The specification of this method matches that of
  1452. {@link FileContext#setReplication(Path, short)} except that Path f must be
  1453. for this file system.]]>
  1454. </doc>
  1455. </method>
  1456. <method name="rename"
  1457. abstract="false" native="false" synchronized="false"
  1458. static="false" final="true" visibility="public"
  1459. deprecated="not deprecated">
  1460. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1461. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1462. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  1463. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1464. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1465. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1466. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1467. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1468. <exception name="IOException" type="java.io.IOException"/>
  1469. <doc>
  1470. <![CDATA[The specification of this method matches that of
  1471. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  1472. f must be for this file system.]]>
  1473. </doc>
  1474. </method>
  1475. <method name="renameInternal"
  1476. abstract="true" native="false" synchronized="false"
  1477. static="false" final="false" visibility="public"
  1478. deprecated="not deprecated">
  1479. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1480. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1481. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1482. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1483. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1484. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1485. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1486. <exception name="IOException" type="java.io.IOException"/>
  1487. <doc>
  1488. <![CDATA[The specification of this method matches that of
  1489. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  1490. f must be for this file system and NO OVERWRITE is performed.
  1491. File systems that do not have a built in overwrite need implement only this
  1492. method and can take advantage of the default impl of the other
  1493. {@link #renameInternal(Path, Path, boolean)}]]>
  1494. </doc>
  1495. </method>
  1496. <method name="renameInternal"
  1497. abstract="false" native="false" synchronized="false"
  1498. static="false" final="false" visibility="public"
  1499. deprecated="not deprecated">
  1500. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1501. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1502. <param name="overwrite" type="boolean"/>
  1503. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1504. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1505. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1506. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1507. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1508. <exception name="IOException" type="java.io.IOException"/>
  1509. <doc>
  1510. <![CDATA[The specification of this method matches that of
  1511. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  1512. f must be for this file system.]]>
  1513. </doc>
  1514. </method>
  1515. <method name="supportsSymlinks" return="boolean"
  1516. abstract="false" native="false" synchronized="false"
  1517. static="false" final="false" visibility="public"
  1518. deprecated="not deprecated">
  1519. <doc>
  1520. <![CDATA[Returns true if the file system supports symlinks, false otherwise.]]>
  1521. </doc>
  1522. </method>
  1523. <method name="createSymlink"
  1524. abstract="false" native="false" synchronized="false"
  1525. static="false" final="false" visibility="public"
  1526. deprecated="not deprecated">
  1527. <param name="target" type="org.apache.hadoop.fs.Path"/>
  1528. <param name="link" type="org.apache.hadoop.fs.Path"/>
  1529. <param name="createParent" type="boolean"/>
  1530. <exception name="IOException" type="java.io.IOException"/>
  1531. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1532. <doc>
  1533. <![CDATA[The specification of this method matches that of
  1534. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  1535. </doc>
  1536. </method>
  1537. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  1538. abstract="false" native="false" synchronized="false"
  1539. static="false" final="false" visibility="public"
  1540. deprecated="not deprecated">
  1541. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1542. <exception name="IOException" type="java.io.IOException"/>
  1543. <doc>
  1544. <![CDATA[The specification of this method matches that of
  1545. {@link FileContext#getLinkTarget(Path)};]]>
  1546. </doc>
  1547. </method>
  1548. <method name="setPermission"
  1549. abstract="true" native="false" synchronized="false"
  1550. static="false" final="false" visibility="public"
  1551. deprecated="not deprecated">
  1552. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1553. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1554. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1555. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1556. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1557. <exception name="IOException" type="java.io.IOException"/>
  1558. <doc>
  1559. <![CDATA[The specification of this method matches that of
  1560. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  1561. must be for this file system.]]>
  1562. </doc>
  1563. </method>
  1564. <method name="setOwner"
  1565. abstract="true" native="false" synchronized="false"
  1566. static="false" final="false" visibility="public"
  1567. deprecated="not deprecated">
  1568. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1569. <param name="username" type="java.lang.String"/>
  1570. <param name="groupname" type="java.lang.String"/>
  1571. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1572. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1573. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1574. <exception name="IOException" type="java.io.IOException"/>
  1575. <doc>
  1576. <![CDATA[The specification of this method matches that of
  1577. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  1578. be for this file system.]]>
  1579. </doc>
  1580. </method>
  1581. <method name="setTimes"
  1582. abstract="true" native="false" synchronized="false"
  1583. static="false" final="false" visibility="public"
  1584. deprecated="not deprecated">
  1585. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1586. <param name="mtime" type="long"/>
  1587. <param name="atime" type="long"/>
  1588. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1589. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1590. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1591. <exception name="IOException" type="java.io.IOException"/>
  1592. <doc>
  1593. <![CDATA[The specification of this method matches that of
  1594. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  1595. for this file system.]]>
  1596. </doc>
  1597. </method>
  1598. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  1599. abstract="true" native="false" synchronized="false"
  1600. static="false" final="false" visibility="public"
  1601. deprecated="not deprecated">
  1602. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1603. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1604. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1605. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1606. <exception name="IOException" type="java.io.IOException"/>
  1607. <doc>
  1608. <![CDATA[The specification of this method matches that of
  1609. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  1610. this file system.]]>
  1611. </doc>
  1612. </method>
  1613. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  1614. abstract="true" native="false" synchronized="false"
  1615. static="false" final="false" visibility="public"
  1616. deprecated="not deprecated">
  1617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1618. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1619. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1620. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1621. <exception name="IOException" type="java.io.IOException"/>
  1622. <doc>
  1623. <![CDATA[The specification of this method matches that of
  1624. {@link FileContext#getFileStatus(Path)}
  1625. except that an UnresolvedLinkException may be thrown if a symlink is
  1626. encountered in the path.]]>
  1627. </doc>
  1628. </method>
  1629. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  1630. abstract="false" native="false" synchronized="false"
  1631. static="false" final="false" visibility="public"
  1632. deprecated="not deprecated">
  1633. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1634. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1635. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1636. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1637. <exception name="IOException" type="java.io.IOException"/>
  1638. <doc>
  1639. <![CDATA[The specification of this method matches that of
  1640. {@link FileContext#getFileLinkStatus(Path)}
  1641. except that an UnresolvedLinkException may be thrown if a symlink is
  1642. encountered in the path leading up to the final path component.
  1643. If the file system does not support symlinks then the behavior is
  1644. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  1645. </doc>
  1646. </method>
  1647. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  1648. abstract="true" native="false" synchronized="false"
  1649. static="false" final="false" visibility="public"
  1650. deprecated="not deprecated">
  1651. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1652. <param name="start" type="long"/>
  1653. <param name="len" type="long"/>
  1654. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1655. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1656. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1657. <exception name="IOException" type="java.io.IOException"/>
  1658. <doc>
  1659. <![CDATA[The specification of this method matches that of
  1660. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  1661. Path f must be for this file system.]]>
  1662. </doc>
  1663. </method>
  1664. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  1665. abstract="false" native="false" synchronized="false"
  1666. static="false" final="false" visibility="public"
  1667. deprecated="not deprecated">
  1668. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1669. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1670. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1671. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1672. <exception name="IOException" type="java.io.IOException"/>
  1673. <doc>
  1674. <![CDATA[The specification of this method matches that of
  1675. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  1676. file system.]]>
  1677. </doc>
  1678. </method>
  1679. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  1680. abstract="true" native="false" synchronized="false"
  1681. static="false" final="false" visibility="public"
  1682. deprecated="not deprecated">
  1683. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1684. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1685. <exception name="IOException" type="java.io.IOException"/>
  1686. <doc>
  1687. <![CDATA[The specification of this method matches that of
  1688. {@link FileContext#getFsStatus(Path)}.]]>
  1689. </doc>
  1690. </method>
  1691. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  1692. abstract="false" native="false" synchronized="false"
  1693. static="false" final="false" visibility="public"
  1694. deprecated="not deprecated">
  1695. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1696. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1697. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1698. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1699. <exception name="IOException" type="java.io.IOException"/>
  1700. <doc>
  1701. <![CDATA[The specification of this method matches that of
  1702. {@link FileContext#listStatus(Path)} except that Path f must be for this
  1703. file system.]]>
  1704. </doc>
  1705. </method>
  1706. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  1707. abstract="false" native="false" synchronized="false"
  1708. static="false" final="false" visibility="public"
  1709. deprecated="not deprecated">
  1710. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1711. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1712. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1713. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1714. <exception name="IOException" type="java.io.IOException"/>
  1715. <doc>
  1716. <![CDATA[The specification of this method matches that of
  1717. {@link FileContext#listLocatedStatus(Path)} except that Path f
  1718. must be for this file system.]]>
  1719. </doc>
  1720. </method>
  1721. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1722. abstract="true" native="false" synchronized="false"
  1723. static="false" final="false" visibility="public"
  1724. deprecated="not deprecated">
  1725. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1726. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1727. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1728. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1729. <exception name="IOException" type="java.io.IOException"/>
  1730. <doc>
  1731. <![CDATA[The specification of this method matches that of
  1732. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  1733. for this file system.]]>
  1734. </doc>
  1735. </method>
  1736. <method name="setVerifyChecksum"
  1737. abstract="true" native="false" synchronized="false"
  1738. static="false" final="false" visibility="public"
  1739. deprecated="not deprecated">
  1740. <param name="verifyChecksum" type="boolean"/>
  1741. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1742. <exception name="IOException" type="java.io.IOException"/>
  1743. <doc>
  1744. <![CDATA[The specification of this method matches that of
  1745. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  1746. must be for this file system.]]>
  1747. </doc>
  1748. </method>
  1749. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  1750. transient="false" volatile="false"
  1751. static="false" final="false" visibility="protected"
  1752. deprecated="not deprecated">
  1753. <doc>
  1754. <![CDATA[The statistics for this file system.]]>
  1755. </doc>
  1756. </field>
  1757. <doc>
  1758. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  1759. (analogous to the VFS of Unix). Applications do not access this class;
  1760. instead they access files across all file systems using {@link FileContext}.
  1761. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  1762. matches the "this" file system (ie same scheme and authority)
  1763. or a Slash-relative name that is assumed to be relative
  1764. to the root of the "this" file system .]]>
  1765. </doc>
  1766. </class>
  1767. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  1768. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  1769. <class name="AvroFSInput" extends="java.lang.Object"
  1770. abstract="false"
  1771. static="false" final="false" visibility="public"
  1772. deprecated="not deprecated">
  1773. <implements name="java.io.Closeable"/>
  1774. <implements name="org.apache.avro.file.SeekableInput"/>
  1775. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  1776. static="false" final="false" visibility="public"
  1777. deprecated="not deprecated">
  1778. <doc>
  1779. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  1780. </doc>
  1781. </constructor>
  1782. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  1783. static="false" final="false" visibility="public"
  1784. deprecated="not deprecated">
  1785. <exception name="IOException" type="java.io.IOException"/>
  1786. <doc>
  1787. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  1788. </doc>
  1789. </constructor>
  1790. <method name="length" return="long"
  1791. abstract="false" native="false" synchronized="false"
  1792. static="false" final="false" visibility="public"
  1793. deprecated="not deprecated">
  1794. </method>
  1795. <method name="read" return="int"
  1796. abstract="false" native="false" synchronized="false"
  1797. static="false" final="false" visibility="public"
  1798. deprecated="not deprecated">
  1799. <param name="b" type="byte[]"/>
  1800. <param name="off" type="int"/>
  1801. <param name="len" type="int"/>
  1802. <exception name="IOException" type="java.io.IOException"/>
  1803. </method>
  1804. <method name="seek"
  1805. abstract="false" native="false" synchronized="false"
  1806. static="false" final="false" visibility="public"
  1807. deprecated="not deprecated">
  1808. <param name="p" type="long"/>
  1809. <exception name="IOException" type="java.io.IOException"/>
  1810. </method>
  1811. <method name="tell" return="long"
  1812. abstract="false" native="false" synchronized="false"
  1813. static="false" final="false" visibility="public"
  1814. deprecated="not deprecated">
  1815. <exception name="IOException" type="java.io.IOException"/>
  1816. </method>
  1817. <method name="close"
  1818. abstract="false" native="false" synchronized="false"
  1819. static="false" final="false" visibility="public"
  1820. deprecated="not deprecated">
  1821. <exception name="IOException" type="java.io.IOException"/>
  1822. </method>
  1823. <doc>
  1824. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  1825. </doc>
  1826. </class>
  1827. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  1828. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1829. <class name="BlockLocation" extends="java.lang.Object"
  1830. abstract="false"
  1831. static="false" final="false" visibility="public"
  1832. deprecated="not deprecated">
  1833. <implements name="org.apache.hadoop.io.Writable"/>
  1834. <constructor name="BlockLocation"
  1835. static="false" final="false" visibility="public"
  1836. deprecated="not deprecated">
  1837. <doc>
  1838. <![CDATA[Default Constructor]]>
  1839. </doc>
  1840. </constructor>
  1841. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1842. static="false" final="false" visibility="public"
  1843. deprecated="not deprecated">
  1844. <doc>
  1845. <![CDATA[Constructor with host, name, offset and length]]>
  1846. </doc>
  1847. </constructor>
  1848. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  1849. static="false" final="false" visibility="public"
  1850. deprecated="not deprecated">
  1851. <doc>
  1852. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  1853. </doc>
  1854. </constructor>
  1855. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1856. static="false" final="false" visibility="public"
  1857. deprecated="not deprecated">
  1858. <doc>
  1859. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1860. </doc>
  1861. </constructor>
  1862. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  1863. static="false" final="false" visibility="public"
  1864. deprecated="not deprecated">
  1865. <doc>
  1866. <![CDATA[Constructor with host, name, network topology, offset, length
  1867. and corrupt flag]]>
  1868. </doc>
  1869. </constructor>
  1870. <method name="getHosts" return="java.lang.String[]"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="false" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <exception name="IOException" type="java.io.IOException"/>
  1875. <doc>
  1876. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1877. </doc>
  1878. </method>
  1879. <method name="getNames" return="java.lang.String[]"
  1880. abstract="false" native="false" synchronized="false"
  1881. static="false" final="false" visibility="public"
  1882. deprecated="not deprecated">
  1883. <exception name="IOException" type="java.io.IOException"/>
  1884. <doc>
  1885. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1886. </doc>
  1887. </method>
  1888. <method name="getTopologyPaths" return="java.lang.String[]"
  1889. abstract="false" native="false" synchronized="false"
  1890. static="false" final="false" visibility="public"
  1891. deprecated="not deprecated">
  1892. <exception name="IOException" type="java.io.IOException"/>
  1893. <doc>
  1894. <![CDATA[Get the list of network topology paths for each of the hosts.
  1895. The last component of the path is the host.]]>
  1896. </doc>
  1897. </method>
  1898. <method name="getOffset" return="long"
  1899. abstract="false" native="false" synchronized="false"
  1900. static="false" final="false" visibility="public"
  1901. deprecated="not deprecated">
  1902. <doc>
  1903. <![CDATA[Get the start offset of file associated with this block]]>
  1904. </doc>
  1905. </method>
  1906. <method name="getLength" return="long"
  1907. abstract="false" native="false" synchronized="false"
  1908. static="false" final="false" visibility="public"
  1909. deprecated="not deprecated">
  1910. <doc>
  1911. <![CDATA[Get the length of the block]]>
  1912. </doc>
  1913. </method>
  1914. <method name="isCorrupt" return="boolean"
  1915. abstract="false" native="false" synchronized="false"
  1916. static="false" final="false" visibility="public"
  1917. deprecated="not deprecated">
  1918. <doc>
  1919. <![CDATA[Get the corrupt flag.]]>
  1920. </doc>
  1921. </method>
  1922. <method name="setOffset"
  1923. abstract="false" native="false" synchronized="false"
  1924. static="false" final="false" visibility="public"
  1925. deprecated="not deprecated">
  1926. <param name="offset" type="long"/>
  1927. <doc>
  1928. <![CDATA[Set the start offset of file associated with this block]]>
  1929. </doc>
  1930. </method>
  1931. <method name="setLength"
  1932. abstract="false" native="false" synchronized="false"
  1933. static="false" final="false" visibility="public"
  1934. deprecated="not deprecated">
  1935. <param name="length" type="long"/>
  1936. <doc>
  1937. <![CDATA[Set the length of block]]>
  1938. </doc>
  1939. </method>
  1940. <method name="setCorrupt"
  1941. abstract="false" native="false" synchronized="false"
  1942. static="false" final="false" visibility="public"
  1943. deprecated="not deprecated">
  1944. <param name="corrupt" type="boolean"/>
  1945. <doc>
  1946. <![CDATA[Set the corrupt flag.]]>
  1947. </doc>
  1948. </method>
  1949. <method name="setHosts"
  1950. abstract="false" native="false" synchronized="false"
  1951. static="false" final="false" visibility="public"
  1952. deprecated="not deprecated">
  1953. <param name="hosts" type="java.lang.String[]"/>
  1954. <exception name="IOException" type="java.io.IOException"/>
  1955. <doc>
  1956. <![CDATA[Set the hosts hosting this block]]>
  1957. </doc>
  1958. </method>
  1959. <method name="setNames"
  1960. abstract="false" native="false" synchronized="false"
  1961. static="false" final="false" visibility="public"
  1962. deprecated="not deprecated">
  1963. <param name="names" type="java.lang.String[]"/>
  1964. <exception name="IOException" type="java.io.IOException"/>
  1965. <doc>
  1966. <![CDATA[Set the names (host:port) hosting this block]]>
  1967. </doc>
  1968. </method>
  1969. <method name="setTopologyPaths"
  1970. abstract="false" native="false" synchronized="false"
  1971. static="false" final="false" visibility="public"
  1972. deprecated="not deprecated">
  1973. <param name="topologyPaths" type="java.lang.String[]"/>
  1974. <exception name="IOException" type="java.io.IOException"/>
  1975. <doc>
  1976. <![CDATA[Set the network topology paths of the hosts]]>
  1977. </doc>
  1978. </method>
  1979. <method name="write"
  1980. abstract="false" native="false" synchronized="false"
  1981. static="false" final="false" visibility="public"
  1982. deprecated="not deprecated">
  1983. <param name="out" type="java.io.DataOutput"/>
  1984. <exception name="IOException" type="java.io.IOException"/>
  1985. <doc>
  1986. <![CDATA[Implement write of Writable]]>
  1987. </doc>
  1988. </method>
  1989. <method name="readFields"
  1990. abstract="false" native="false" synchronized="false"
  1991. static="false" final="false" visibility="public"
  1992. deprecated="not deprecated">
  1993. <param name="in" type="java.io.DataInput"/>
  1994. <exception name="IOException" type="java.io.IOException"/>
  1995. <doc>
  1996. <![CDATA[Implement readFields of Writable]]>
  1997. </doc>
  1998. </method>
  1999. <method name="toString" return="java.lang.String"
  2000. abstract="false" native="false" synchronized="false"
  2001. static="false" final="false" visibility="public"
  2002. deprecated="not deprecated">
  2003. </method>
  2004. </class>
  2005. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  2006. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  2007. <class name="ChecksumException" extends="java.io.IOException"
  2008. abstract="false"
  2009. static="false" final="false" visibility="public"
  2010. deprecated="not deprecated">
  2011. <constructor name="ChecksumException" type="java.lang.String, long"
  2012. static="false" final="false" visibility="public"
  2013. deprecated="not deprecated">
  2014. </constructor>
  2015. <method name="getPos" return="long"
  2016. abstract="false" native="false" synchronized="false"
  2017. static="false" final="false" visibility="public"
  2018. deprecated="not deprecated">
  2019. </method>
  2020. <doc>
  2021. <![CDATA[Thrown for checksum errors.]]>
  2022. </doc>
  2023. </class>
  2024. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  2025. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  2026. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  2027. abstract="true"
  2028. static="false" final="false" visibility="public"
  2029. deprecated="not deprecated">
  2030. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  2031. static="false" final="false" visibility="public"
  2032. deprecated="not deprecated">
  2033. </constructor>
  2034. <method name="getApproxChkSumLength" return="double"
  2035. abstract="false" native="false" synchronized="false"
  2036. static="true" final="false" visibility="public"
  2037. deprecated="not deprecated">
  2038. <param name="size" type="long"/>
  2039. </method>
  2040. <method name="setConf"
  2041. abstract="false" native="false" synchronized="false"
  2042. static="false" final="false" visibility="public"
  2043. deprecated="not deprecated">
  2044. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2045. </method>
  2046. <method name="setVerifyChecksum"
  2047. abstract="false" native="false" synchronized="false"
  2048. static="false" final="false" visibility="public"
  2049. deprecated="not deprecated">
  2050. <param name="verifyChecksum" type="boolean"/>
  2051. <doc>
  2052. <![CDATA[Set whether to verify checksum.]]>
  2053. </doc>
  2054. </method>
  2055. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  2056. abstract="false" native="false" synchronized="false"
  2057. static="false" final="false" visibility="public"
  2058. deprecated="not deprecated">
  2059. <doc>
  2060. <![CDATA[get the raw file system]]>
  2061. </doc>
  2062. </method>
  2063. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  2064. abstract="false" native="false" synchronized="false"
  2065. static="false" final="false" visibility="public"
  2066. deprecated="not deprecated">
  2067. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2068. <doc>
  2069. <![CDATA[Return the name of the checksum file associated with a file.]]>
  2070. </doc>
  2071. </method>
  2072. <method name="isChecksumFile" return="boolean"
  2073. abstract="false" native="false" synchronized="false"
  2074. static="true" final="false" visibility="public"
  2075. deprecated="not deprecated">
  2076. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2077. <doc>
  2078. <![CDATA[Return true iff file is a checksum file name.]]>
  2079. </doc>
  2080. </method>
  2081. <method name="getChecksumFileLength" return="long"
  2082. abstract="false" native="false" synchronized="false"
  2083. static="false" final="false" visibility="public"
  2084. deprecated="not deprecated">
  2085. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2086. <param name="fileSize" type="long"/>
  2087. <doc>
  2088. <![CDATA[Return the length of the checksum file given the size of the
  2089. actual file.]]>
  2090. </doc>
  2091. </method>
  2092. <method name="getBytesPerSum" return="int"
  2093. abstract="false" native="false" synchronized="false"
  2094. static="false" final="false" visibility="public"
  2095. deprecated="not deprecated">
  2096. <doc>
  2097. <![CDATA[Return the bytes Per Checksum]]>
  2098. </doc>
  2099. </method>
  2100. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2101. abstract="false" native="false" synchronized="false"
  2102. static="false" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2105. <param name="bufferSize" type="int"/>
  2106. <exception name="IOException" type="java.io.IOException"/>
  2107. <doc>
  2108. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2109. @param f the file name to open
  2110. @param bufferSize the size of the buffer to be used.]]>
  2111. </doc>
  2112. </method>
  2113. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2114. abstract="false" native="false" synchronized="false"
  2115. static="false" final="false" visibility="public"
  2116. deprecated="not deprecated">
  2117. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2118. <param name="bufferSize" type="int"/>
  2119. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2120. <exception name="IOException" type="java.io.IOException"/>
  2121. <doc>
  2122. <![CDATA[{@inheritDoc}]]>
  2123. </doc>
  2124. </method>
  2125. <method name="getChecksumLength" return="long"
  2126. abstract="false" native="false" synchronized="false"
  2127. static="true" final="false" visibility="public"
  2128. deprecated="not deprecated">
  2129. <param name="size" type="long"/>
  2130. <param name="bytesPerSum" type="int"/>
  2131. <doc>
  2132. <![CDATA[Calculated the length of the checksum file in bytes.
  2133. @param size the length of the data file in bytes
  2134. @param bytesPerSum the number of bytes in a checksum block
  2135. @return the number of bytes in the checksum file]]>
  2136. </doc>
  2137. </method>
  2138. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2139. abstract="false" native="false" synchronized="false"
  2140. static="false" final="false" visibility="public"
  2141. deprecated="not deprecated">
  2142. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2143. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2144. <param name="overwrite" type="boolean"/>
  2145. <param name="bufferSize" type="int"/>
  2146. <param name="replication" type="short"/>
  2147. <param name="blockSize" type="long"/>
  2148. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2149. <exception name="IOException" type="java.io.IOException"/>
  2150. <doc>
  2151. <![CDATA[{@inheritDoc}]]>
  2152. </doc>
  2153. </method>
  2154. <method name="setReplication" return="boolean"
  2155. abstract="false" native="false" synchronized="false"
  2156. static="false" final="false" visibility="public"
  2157. deprecated="not deprecated">
  2158. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2159. <param name="replication" type="short"/>
  2160. <exception name="IOException" type="java.io.IOException"/>
  2161. <doc>
  2162. <![CDATA[Set replication for an existing file.
  2163. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  2164. @param src file name
  2165. @param replication new replication
  2166. @throws IOException
  2167. @return true if successful;
  2168. false if file does not exist or is a directory]]>
  2169. </doc>
  2170. </method>
  2171. <method name="rename" 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="org.apache.hadoop.fs.Path"/>
  2176. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2177. <exception name="IOException" type="java.io.IOException"/>
  2178. <doc>
  2179. <![CDATA[Rename files/dirs]]>
  2180. </doc>
  2181. </method>
  2182. <method name="delete" return="boolean"
  2183. abstract="false" native="false" synchronized="false"
  2184. static="false" final="false" visibility="public"
  2185. deprecated="not deprecated">
  2186. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2187. <param name="recursive" type="boolean"/>
  2188. <exception name="IOException" type="java.io.IOException"/>
  2189. <doc>
  2190. <![CDATA[Implement the delete(Path, boolean) in checksum
  2191. file system.]]>
  2192. </doc>
  2193. </method>
  2194. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2195. abstract="false" native="false" synchronized="false"
  2196. static="false" final="false" visibility="public"
  2197. deprecated="not deprecated">
  2198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2199. <exception name="IOException" type="java.io.IOException"/>
  2200. <doc>
  2201. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2202. a directory.
  2203. @param f
  2204. given path
  2205. @return the statuses of the files/directories in the given patch
  2206. @throws IOException]]>
  2207. </doc>
  2208. </method>
  2209. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2210. abstract="false" native="false" synchronized="false"
  2211. static="false" final="false" visibility="public"
  2212. deprecated="not deprecated">
  2213. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2214. <exception name="IOException" type="java.io.IOException"/>
  2215. <doc>
  2216. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2217. a directory.
  2218. @param f
  2219. given path
  2220. @return the statuses of the files/directories in the given patch
  2221. @throws IOException]]>
  2222. </doc>
  2223. </method>
  2224. <method name="mkdirs" return="boolean"
  2225. abstract="false" native="false" synchronized="false"
  2226. static="false" final="false" visibility="public"
  2227. deprecated="not deprecated">
  2228. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2229. <exception name="IOException" type="java.io.IOException"/>
  2230. </method>
  2231. <method name="copyFromLocalFile"
  2232. abstract="false" native="false" synchronized="false"
  2233. static="false" final="false" visibility="public"
  2234. deprecated="not deprecated">
  2235. <param name="delSrc" type="boolean"/>
  2236. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2237. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2238. <exception name="IOException" type="java.io.IOException"/>
  2239. </method>
  2240. <method name="copyToLocalFile"
  2241. abstract="false" native="false" synchronized="false"
  2242. static="false" final="false" visibility="public"
  2243. deprecated="not deprecated">
  2244. <param name="delSrc" type="boolean"/>
  2245. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2246. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2247. <exception name="IOException" type="java.io.IOException"/>
  2248. <doc>
  2249. <![CDATA[The src file is under FS, and the dst is on the local disk.
  2250. Copy it from FS control to the local dst name.]]>
  2251. </doc>
  2252. </method>
  2253. <method name="copyToLocalFile"
  2254. abstract="false" native="false" synchronized="false"
  2255. static="false" final="false" visibility="public"
  2256. deprecated="not deprecated">
  2257. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2258. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2259. <param name="copyCrc" type="boolean"/>
  2260. <exception name="IOException" type="java.io.IOException"/>
  2261. <doc>
  2262. <![CDATA[The src file is under FS, and the dst is on the local disk.
  2263. Copy it from FS control to the local dst name.
  2264. If src and dst are directories, the copyCrc parameter
  2265. determines whether to copy CRC files.]]>
  2266. </doc>
  2267. </method>
  2268. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  2269. abstract="false" native="false" synchronized="false"
  2270. static="false" final="false" visibility="public"
  2271. deprecated="not deprecated">
  2272. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  2273. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  2274. <exception name="IOException" type="java.io.IOException"/>
  2275. </method>
  2276. <method name="completeLocalOutput"
  2277. abstract="false" native="false" synchronized="false"
  2278. static="false" final="false" visibility="public"
  2279. deprecated="not deprecated">
  2280. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  2281. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  2282. <exception name="IOException" type="java.io.IOException"/>
  2283. </method>
  2284. <method name="reportChecksumFailure" return="boolean"
  2285. abstract="false" native="false" synchronized="false"
  2286. static="false" final="false" visibility="public"
  2287. deprecated="not deprecated">
  2288. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2289. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2290. <param name="inPos" type="long"/>
  2291. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2292. <param name="sumsPos" type="long"/>
  2293. <doc>
  2294. <![CDATA[Report a checksum error to the file system.
  2295. @param f the file name containing the error
  2296. @param in the stream open on the file
  2297. @param inPos the position of the beginning of the bad data in the file
  2298. @param sums the stream open on the checksum file
  2299. @param sumsPos the position of the beginning of the bad data in the checksum file
  2300. @return if retry is neccessary]]>
  2301. </doc>
  2302. </method>
  2303. <doc>
  2304. <![CDATA[Abstract Checksumed FileSystem.
  2305. It provide a basice implementation of a Checksumed FileSystem,
  2306. which creates a checksum file for each raw file.
  2307. It generates & verifies checksums at the client side.]]>
  2308. </doc>
  2309. </class>
  2310. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  2311. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  2312. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  2313. abstract="false"
  2314. static="false" final="false" visibility="public"
  2315. deprecated="not deprecated">
  2316. <constructor name="CommonConfigurationKeysPublic"
  2317. static="false" final="false" visibility="public"
  2318. deprecated="not deprecated">
  2319. </constructor>
  2320. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  2321. transient="false" volatile="false"
  2322. static="true" final="true" visibility="public"
  2323. deprecated="not deprecated">
  2324. <doc>
  2325. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2326. </doc>
  2327. </field>
  2328. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  2329. transient="false" volatile="false"
  2330. static="true" final="true" visibility="public"
  2331. deprecated="not deprecated">
  2332. <doc>
  2333. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  2334. </doc>
  2335. </field>
  2336. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  2337. transient="false" volatile="false"
  2338. static="true" final="true" visibility="public"
  2339. deprecated="not deprecated">
  2340. <doc>
  2341. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2342. </doc>
  2343. </field>
  2344. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  2345. transient="false" volatile="false"
  2346. static="true" final="true" visibility="public"
  2347. deprecated="not deprecated">
  2348. <doc>
  2349. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  2350. </doc>
  2351. </field>
  2352. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  2353. transient="false" volatile="false"
  2354. static="true" final="true" visibility="public"
  2355. deprecated="not deprecated">
  2356. <doc>
  2357. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2358. </doc>
  2359. </field>
  2360. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  2361. transient="false" volatile="false"
  2362. static="true" final="true" visibility="public"
  2363. deprecated="not deprecated">
  2364. <doc>
  2365. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  2366. </doc>
  2367. </field>
  2368. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  2369. transient="false" volatile="false"
  2370. static="true" final="true" visibility="public"
  2371. deprecated="not deprecated">
  2372. <doc>
  2373. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2374. </doc>
  2375. </field>
  2376. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  2377. transient="false" volatile="false"
  2378. static="true" final="true" visibility="public"
  2379. deprecated="not deprecated">
  2380. <doc>
  2381. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  2382. </doc>
  2383. </field>
  2384. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  2385. transient="false" volatile="false"
  2386. static="true" final="true" visibility="public"
  2387. deprecated="not deprecated">
  2388. <doc>
  2389. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2390. </doc>
  2391. </field>
  2392. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  2393. transient="false" volatile="false"
  2394. static="true" final="true" visibility="public"
  2395. deprecated="not deprecated">
  2396. <doc>
  2397. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2398. </doc>
  2399. </field>
  2400. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  2401. transient="false" volatile="false"
  2402. static="true" final="true" visibility="public"
  2403. deprecated="not deprecated">
  2404. <doc>
  2405. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2406. </doc>
  2407. </field>
  2408. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  2409. transient="false" volatile="false"
  2410. static="true" final="true" visibility="public"
  2411. deprecated="not deprecated">
  2412. <doc>
  2413. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  2414. </doc>
  2415. </field>
  2416. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  2417. transient="false" volatile="false"
  2418. static="true" final="true" visibility="public"
  2419. deprecated="not deprecated">
  2420. <doc>
  2421. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  2422. </doc>
  2423. </field>
  2424. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  2425. transient="false" volatile="false"
  2426. static="true" final="true" visibility="public"
  2427. deprecated="not deprecated">
  2428. <doc>
  2429. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2430. </doc>
  2431. </field>
  2432. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  2433. transient="false" volatile="false"
  2434. static="true" final="true" visibility="public"
  2435. deprecated="not deprecated">
  2436. <doc>
  2437. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  2438. </doc>
  2439. </field>
  2440. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  2441. transient="false" volatile="false"
  2442. static="true" final="true" visibility="public"
  2443. deprecated="not deprecated">
  2444. <doc>
  2445. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2446. </doc>
  2447. </field>
  2448. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  2449. transient="false" volatile="false"
  2450. static="true" final="true" visibility="public"
  2451. deprecated="not deprecated">
  2452. <doc>
  2453. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2454. </doc>
  2455. </field>
  2456. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  2457. transient="false" volatile="false"
  2458. static="true" final="true" visibility="public"
  2459. deprecated="not deprecated">
  2460. <doc>
  2461. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2462. </doc>
  2463. </field>
  2464. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  2465. transient="false" volatile="false"
  2466. static="true" final="true" visibility="public"
  2467. deprecated="not deprecated">
  2468. <doc>
  2469. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2470. </doc>
  2471. </field>
  2472. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  2473. transient="false" volatile="false"
  2474. static="true" final="true" visibility="public"
  2475. deprecated="not deprecated">
  2476. <doc>
  2477. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  2478. </doc>
  2479. </field>
  2480. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  2481. transient="false" volatile="false"
  2482. static="true" final="true" visibility="public"
  2483. deprecated="not deprecated">
  2484. <doc>
  2485. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2486. </doc>
  2487. </field>
  2488. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  2489. transient="false" volatile="false"
  2490. static="true" final="true" visibility="public"
  2491. deprecated="not deprecated">
  2492. <doc>
  2493. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  2494. </doc>
  2495. </field>
  2496. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  2497. transient="false" volatile="false"
  2498. static="true" final="true" visibility="public"
  2499. deprecated="not deprecated">
  2500. <doc>
  2501. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2502. </doc>
  2503. </field>
  2504. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  2505. transient="false" volatile="false"
  2506. static="true" final="true" visibility="public"
  2507. deprecated="not deprecated">
  2508. <doc>
  2509. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  2510. </doc>
  2511. </field>
  2512. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  2513. transient="false" volatile="false"
  2514. static="true" final="true" visibility="public"
  2515. deprecated="not deprecated">
  2516. <doc>
  2517. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  2518. </doc>
  2519. </field>
  2520. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  2521. transient="false" volatile="false"
  2522. static="true" final="true" visibility="public"
  2523. deprecated="not deprecated">
  2524. <doc>
  2525. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2526. </doc>
  2527. </field>
  2528. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  2529. transient="false" volatile="false"
  2530. static="true" final="true" visibility="public"
  2531. deprecated="not deprecated">
  2532. <doc>
  2533. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  2534. </doc>
  2535. </field>
  2536. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  2537. transient="false" volatile="false"
  2538. static="true" final="true" visibility="public"
  2539. deprecated="not deprecated">
  2540. <doc>
  2541. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2542. </doc>
  2543. </field>
  2544. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  2545. transient="false" volatile="false"
  2546. static="true" final="true" visibility="public"
  2547. deprecated="not deprecated">
  2548. <doc>
  2549. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  2550. </doc>
  2551. </field>
  2552. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  2553. transient="false" volatile="false"
  2554. static="true" final="true" visibility="public"
  2555. deprecated="not deprecated">
  2556. <doc>
  2557. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2558. </doc>
  2559. </field>
  2560. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  2561. transient="false" volatile="false"
  2562. static="true" final="true" visibility="public"
  2563. deprecated="not deprecated">
  2564. <doc>
  2565. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  2566. </doc>
  2567. </field>
  2568. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  2569. transient="false" volatile="false"
  2570. static="true" final="true" visibility="public"
  2571. deprecated="not deprecated">
  2572. <doc>
  2573. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2574. </doc>
  2575. </field>
  2576. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  2577. transient="false" volatile="false"
  2578. static="true" final="true" visibility="public"
  2579. deprecated="not deprecated">
  2580. <doc>
  2581. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  2582. </doc>
  2583. </field>
  2584. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  2585. transient="false" volatile="false"
  2586. static="true" final="true" visibility="public"
  2587. deprecated="not deprecated">
  2588. <doc>
  2589. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2590. </doc>
  2591. </field>
  2592. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  2593. transient="false" volatile="false"
  2594. static="true" final="true" visibility="public"
  2595. deprecated="not deprecated">
  2596. <doc>
  2597. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  2598. </doc>
  2599. </field>
  2600. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  2601. transient="false" volatile="false"
  2602. static="true" final="true" visibility="public"
  2603. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  2604. in mapred-default.xml
  2605. See https://issues.apache.org/jira/browse/HADOOP-6801">
  2606. <doc>
  2607. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  2608. in mapred-default.xml
  2609. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  2610. </doc>
  2611. </field>
  2612. <field name="IO_SORT_MB_DEFAULT" type="int"
  2613. transient="false" volatile="false"
  2614. static="true" final="true" visibility="public"
  2615. deprecated="not deprecated">
  2616. <doc>
  2617. <![CDATA[Default value for IO_SORT_MB_DEFAULT]]>
  2618. </doc>
  2619. </field>
  2620. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  2621. transient="false" volatile="false"
  2622. static="true" final="true" visibility="public"
  2623. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  2624. in mapred-default.xml
  2625. See https://issues.apache.org/jira/browse/HADOOP-6801">
  2626. <doc>
  2627. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  2628. in mapred-default.xml
  2629. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  2630. </doc>
  2631. </field>
  2632. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  2633. transient="false" volatile="false"
  2634. static="true" final="true" visibility="public"
  2635. deprecated="not deprecated">
  2636. <doc>
  2637. <![CDATA[Default value for IO_SORT_FACTOR_DEFAULT]]>
  2638. </doc>
  2639. </field>
  2640. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  2641. transient="false" volatile="false"
  2642. static="true" final="true" visibility="public"
  2643. deprecated="not deprecated">
  2644. <doc>
  2645. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2646. </doc>
  2647. </field>
  2648. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  2649. transient="false" volatile="false"
  2650. static="true" final="true" visibility="public"
  2651. deprecated="not deprecated">
  2652. <doc>
  2653. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2654. </doc>
  2655. </field>
  2656. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  2657. transient="false" volatile="false"
  2658. static="true" final="true" visibility="public"
  2659. deprecated="not deprecated">
  2660. <doc>
  2661. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  2662. </doc>
  2663. </field>
  2664. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  2665. transient="false" volatile="false"
  2666. static="true" final="true" visibility="public"
  2667. deprecated="not deprecated">
  2668. <doc>
  2669. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2670. </doc>
  2671. </field>
  2672. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  2673. transient="false" volatile="false"
  2674. static="true" final="true" visibility="public"
  2675. deprecated="not deprecated">
  2676. <doc>
  2677. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  2678. </doc>
  2679. </field>
  2680. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  2681. transient="false" volatile="false"
  2682. static="true" final="true" visibility="public"
  2683. deprecated="not deprecated">
  2684. <doc>
  2685. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2686. </doc>
  2687. </field>
  2688. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  2689. transient="false" volatile="false"
  2690. static="true" final="true" visibility="public"
  2691. deprecated="not deprecated">
  2692. <doc>
  2693. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  2694. </doc>
  2695. </field>
  2696. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  2697. transient="false" volatile="false"
  2698. static="true" final="true" visibility="public"
  2699. deprecated="not deprecated">
  2700. <doc>
  2701. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2702. </doc>
  2703. </field>
  2704. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  2705. transient="false" volatile="false"
  2706. static="true" final="true" visibility="public"
  2707. deprecated="not deprecated">
  2708. <doc>
  2709. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  2710. </doc>
  2711. </field>
  2712. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  2713. transient="false" volatile="false"
  2714. static="true" final="true" visibility="public"
  2715. deprecated="not deprecated">
  2716. <doc>
  2717. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2718. </doc>
  2719. </field>
  2720. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  2721. transient="false" volatile="false"
  2722. static="true" final="true" visibility="public"
  2723. deprecated="not deprecated">
  2724. <doc>
  2725. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  2726. </doc>
  2727. </field>
  2728. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  2729. transient="false" volatile="false"
  2730. static="true" final="true" visibility="public"
  2731. deprecated="not deprecated">
  2732. <doc>
  2733. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2734. </doc>
  2735. </field>
  2736. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  2737. transient="false" volatile="false"
  2738. static="true" final="true" visibility="public"
  2739. deprecated="not deprecated">
  2740. <doc>
  2741. <![CDATA[Defalt value for IPC_CLIENT_TCPNODELAY_KEY]]>
  2742. </doc>
  2743. </field>
  2744. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  2745. transient="false" volatile="false"
  2746. static="true" final="true" visibility="public"
  2747. deprecated="not deprecated">
  2748. <doc>
  2749. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2750. </doc>
  2751. </field>
  2752. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  2753. transient="false" volatile="false"
  2754. static="true" final="true" visibility="public"
  2755. deprecated="not deprecated">
  2756. <doc>
  2757. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  2758. </doc>
  2759. </field>
  2760. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  2761. transient="false" volatile="false"
  2762. static="true" final="true" visibility="public"
  2763. deprecated="not deprecated">
  2764. <doc>
  2765. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2766. </doc>
  2767. </field>
  2768. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  2769. transient="false" volatile="false"
  2770. static="true" final="true" visibility="public"
  2771. deprecated="not deprecated">
  2772. <doc>
  2773. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  2774. </doc>
  2775. </field>
  2776. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  2777. transient="false" volatile="false"
  2778. static="true" final="true" visibility="public"
  2779. deprecated="not deprecated">
  2780. <doc>
  2781. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2782. </doc>
  2783. </field>
  2784. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  2785. transient="false" volatile="false"
  2786. static="true" final="true" visibility="public"
  2787. deprecated="not deprecated">
  2788. <doc>
  2789. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  2790. </doc>
  2791. </field>
  2792. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  2793. transient="false" volatile="false"
  2794. static="true" final="true" visibility="public"
  2795. deprecated="not deprecated">
  2796. <doc>
  2797. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2798. </doc>
  2799. </field>
  2800. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  2801. transient="false" volatile="false"
  2802. static="true" final="true" visibility="public"
  2803. deprecated="not deprecated">
  2804. <doc>
  2805. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  2806. </doc>
  2807. </field>
  2808. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  2809. transient="false" volatile="false"
  2810. static="true" final="true" visibility="public"
  2811. deprecated="not deprecated">
  2812. <doc>
  2813. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2814. </doc>
  2815. </field>
  2816. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  2817. transient="false" volatile="false"
  2818. static="true" final="true" visibility="public"
  2819. deprecated="not deprecated">
  2820. <doc>
  2821. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2822. </doc>
  2823. </field>
  2824. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  2825. transient="false" volatile="false"
  2826. static="true" final="true" visibility="public"
  2827. deprecated="not deprecated">
  2828. <doc>
  2829. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2830. </doc>
  2831. </field>
  2832. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  2833. transient="false" volatile="false"
  2834. static="true" final="true" visibility="public"
  2835. deprecated="not deprecated">
  2836. <doc>
  2837. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  2838. </doc>
  2839. </field>
  2840. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  2841. transient="false" volatile="false"
  2842. static="true" final="true" visibility="public"
  2843. deprecated="not deprecated">
  2844. <doc>
  2845. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2846. </doc>
  2847. </field>
  2848. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  2849. transient="false" volatile="false"
  2850. static="true" final="true" visibility="public"
  2851. deprecated="not deprecated">
  2852. <doc>
  2853. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2854. </doc>
  2855. </field>
  2856. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  2857. transient="false" volatile="false"
  2858. static="true" final="true" visibility="public"
  2859. deprecated="not deprecated">
  2860. <doc>
  2861. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2862. </doc>
  2863. </field>
  2864. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  2865. transient="false" volatile="false"
  2866. static="true" final="true" visibility="public"
  2867. deprecated="not deprecated">
  2868. <doc>
  2869. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2870. </doc>
  2871. </field>
  2872. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  2873. transient="false" volatile="false"
  2874. static="true" final="true" visibility="public"
  2875. deprecated="not deprecated">
  2876. <doc>
  2877. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  2878. </doc>
  2879. </field>
  2880. <doc>
  2881. <![CDATA[This class contains constants for configuration keys used
  2882. in the common code.
  2883. It includes all publicly documented configuration keys. In general
  2884. this class should not be used directly (use CommonConfigurationKeys
  2885. instead)]]>
  2886. </doc>
  2887. </class>
  2888. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  2889. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  2890. <class name="ContentSummary" extends="java.lang.Object"
  2891. abstract="false"
  2892. static="false" final="false" visibility="public"
  2893. deprecated="not deprecated">
  2894. <implements name="org.apache.hadoop.io.Writable"/>
  2895. <constructor name="ContentSummary"
  2896. static="false" final="false" visibility="public"
  2897. deprecated="not deprecated">
  2898. <doc>
  2899. <![CDATA[Constructor]]>
  2900. </doc>
  2901. </constructor>
  2902. <constructor name="ContentSummary" type="long, long, long"
  2903. static="false" final="false" visibility="public"
  2904. deprecated="not deprecated">
  2905. <doc>
  2906. <![CDATA[Constructor]]>
  2907. </doc>
  2908. </constructor>
  2909. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  2910. static="false" final="false" visibility="public"
  2911. deprecated="not deprecated">
  2912. <doc>
  2913. <![CDATA[Constructor]]>
  2914. </doc>
  2915. </constructor>
  2916. <method name="getLength" return="long"
  2917. abstract="false" native="false" synchronized="false"
  2918. static="false" final="false" visibility="public"
  2919. deprecated="not deprecated">
  2920. <doc>
  2921. <![CDATA[@return the length]]>
  2922. </doc>
  2923. </method>
  2924. <method name="getDirectoryCount" return="long"
  2925. abstract="false" native="false" synchronized="false"
  2926. static="false" final="false" visibility="public"
  2927. deprecated="not deprecated">
  2928. <doc>
  2929. <![CDATA[@return the directory count]]>
  2930. </doc>
  2931. </method>
  2932. <method name="getFileCount" return="long"
  2933. abstract="false" native="false" synchronized="false"
  2934. static="false" final="false" visibility="public"
  2935. deprecated="not deprecated">
  2936. <doc>
  2937. <![CDATA[@return the file count]]>
  2938. </doc>
  2939. </method>
  2940. <method name="getQuota" return="long"
  2941. abstract="false" native="false" synchronized="false"
  2942. static="false" final="false" visibility="public"
  2943. deprecated="not deprecated">
  2944. <doc>
  2945. <![CDATA[Return the directory quota]]>
  2946. </doc>
  2947. </method>
  2948. <method name="getSpaceConsumed" return="long"
  2949. abstract="false" native="false" synchronized="false"
  2950. static="false" final="false" visibility="public"
  2951. deprecated="not deprecated">
  2952. <doc>
  2953. <![CDATA[Retuns (disk) space consumed]]>
  2954. </doc>
  2955. </method>
  2956. <method name="getSpaceQuota" return="long"
  2957. abstract="false" native="false" synchronized="false"
  2958. static="false" final="false" visibility="public"
  2959. deprecated="not deprecated">
  2960. <doc>
  2961. <![CDATA[Returns (disk) space quota]]>
  2962. </doc>
  2963. </method>
  2964. <method name="write"
  2965. abstract="false" native="false" synchronized="false"
  2966. static="false" final="false" visibility="public"
  2967. deprecated="not deprecated">
  2968. <param name="out" type="java.io.DataOutput"/>
  2969. <exception name="IOException" type="java.io.IOException"/>
  2970. <doc>
  2971. <![CDATA[{@inheritDoc}]]>
  2972. </doc>
  2973. </method>
  2974. <method name="readFields"
  2975. abstract="false" native="false" synchronized="false"
  2976. static="false" final="false" visibility="public"
  2977. deprecated="not deprecated">
  2978. <param name="in" type="java.io.DataInput"/>
  2979. <exception name="IOException" type="java.io.IOException"/>
  2980. <doc>
  2981. <![CDATA[{@inheritDoc}]]>
  2982. </doc>
  2983. </method>
  2984. <method name="getHeader" return="java.lang.String"
  2985. abstract="false" native="false" synchronized="false"
  2986. static="true" final="false" visibility="public"
  2987. deprecated="not deprecated">
  2988. <param name="qOption" type="boolean"/>
  2989. <doc>
  2990. <![CDATA[Return the header of the output.
  2991. if qOption is false, output directory count, file count, and content size;
  2992. if qOption is true, output quota and remaining quota as well.
  2993. @param qOption a flag indicating if quota needs to be printed or not
  2994. @return the header of the output]]>
  2995. </doc>
  2996. </method>
  2997. <method name="toString" return="java.lang.String"
  2998. abstract="false" native="false" synchronized="false"
  2999. static="false" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <doc>
  3002. <![CDATA[{@inheritDoc}]]>
  3003. </doc>
  3004. </method>
  3005. <method name="toString" return="java.lang.String"
  3006. abstract="false" native="false" synchronized="false"
  3007. static="false" final="false" visibility="public"
  3008. deprecated="not deprecated">
  3009. <param name="qOption" type="boolean"/>
  3010. <doc>
  3011. <![CDATA[Return the string representation of the object in the output format.
  3012. if qOption is false, output directory count, file count, and content size;
  3013. if qOption is true, output quota and remaining quota as well.
  3014. @param qOption a flag indicating if quota needs to be printed or not
  3015. @return the string representation of the object]]>
  3016. </doc>
  3017. </method>
  3018. <doc>
  3019. <![CDATA[Store the summary of a content (a directory or a file).]]>
  3020. </doc>
  3021. </class>
  3022. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  3023. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  3024. <class name="CreateFlag" extends="java.lang.Enum"
  3025. abstract="false"
  3026. static="false" final="true" visibility="public"
  3027. deprecated="not deprecated">
  3028. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  3029. abstract="false" native="false" synchronized="false"
  3030. static="true" final="false" visibility="public"
  3031. deprecated="not deprecated">
  3032. </method>
  3033. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  3034. abstract="false" native="false" synchronized="false"
  3035. static="true" final="false" visibility="public"
  3036. deprecated="not deprecated">
  3037. <param name="name" type="java.lang.String"/>
  3038. </method>
  3039. <doc>
  3040. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like:<br>
  3041. <code>
  3042. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  3043. <code>
  3044. and pass it to {@link org.apache.hadoop.fs.FileSystem #create(Path f, FsPermission permission,
  3045. EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize,
  3046. Progressable progress)}.
  3047. <p>
  3048. Combine {@link #OVERWRITE} with either {@link #CREATE}
  3049. or {@link #APPEND} does the same as only use
  3050. {@link #OVERWRITE}. <br>
  3051. Combine {@link #CREATE} with {@link #APPEND} has the semantic:
  3052. <ol>
  3053. <li> create the file if it does not exist;
  3054. <li> append the file if it already exists.
  3055. </ol>]]>
  3056. </doc>
  3057. </class>
  3058. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  3059. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  3060. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  3061. abstract="false"
  3062. static="false" final="false" visibility="public"
  3063. deprecated="not deprecated">
  3064. <constructor name="FileAlreadyExistsException"
  3065. static="false" final="false" visibility="public"
  3066. deprecated="not deprecated">
  3067. </constructor>
  3068. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  3069. static="false" final="false" visibility="public"
  3070. deprecated="not deprecated">
  3071. </constructor>
  3072. <doc>
  3073. <![CDATA[Used when target file already exists for any operation and
  3074. is not configured to be overwritten.]]>
  3075. </doc>
  3076. </class>
  3077. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  3078. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  3079. <class name="FileChecksum" extends="java.lang.Object"
  3080. abstract="true"
  3081. static="false" final="false" visibility="public"
  3082. deprecated="not deprecated">
  3083. <implements name="org.apache.hadoop.io.Writable"/>
  3084. <constructor name="FileChecksum"
  3085. static="false" final="false" visibility="public"
  3086. deprecated="not deprecated">
  3087. </constructor>
  3088. <method name="getAlgorithmName" return="java.lang.String"
  3089. abstract="true" native="false" synchronized="false"
  3090. static="false" final="false" visibility="public"
  3091. deprecated="not deprecated">
  3092. <doc>
  3093. <![CDATA[The checksum algorithm name]]>
  3094. </doc>
  3095. </method>
  3096. <method name="getLength" return="int"
  3097. abstract="true" native="false" synchronized="false"
  3098. static="false" final="false" visibility="public"
  3099. deprecated="not deprecated">
  3100. <doc>
  3101. <![CDATA[The length of the checksum in bytes]]>
  3102. </doc>
  3103. </method>
  3104. <method name="getBytes" return="byte[]"
  3105. abstract="true" native="false" synchronized="false"
  3106. static="false" final="false" visibility="public"
  3107. deprecated="not deprecated">
  3108. <doc>
  3109. <![CDATA[The value of the checksum in bytes]]>
  3110. </doc>
  3111. </method>
  3112. <method name="equals" return="boolean"
  3113. abstract="false" native="false" synchronized="false"
  3114. static="false" final="false" visibility="public"
  3115. deprecated="not deprecated">
  3116. <param name="other" type="java.lang.Object"/>
  3117. <doc>
  3118. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  3119. </doc>
  3120. </method>
  3121. <method name="hashCode" return="int"
  3122. abstract="false" native="false" synchronized="false"
  3123. static="false" final="false" visibility="public"
  3124. deprecated="not deprecated">
  3125. <doc>
  3126. <![CDATA[{@inheritDoc}]]>
  3127. </doc>
  3128. </method>
  3129. <doc>
  3130. <![CDATA[An abstract class representing file checksums for files.]]>
  3131. </doc>
  3132. </class>
  3133. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  3134. <!-- start class org.apache.hadoop.fs.FileContext -->
  3135. <class name="FileContext" extends="java.lang.Object"
  3136. abstract="false"
  3137. static="false" final="true" visibility="public"
  3138. deprecated="not deprecated">
  3139. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  3140. abstract="false" native="false" synchronized="false"
  3141. static="true" final="false" visibility="public"
  3142. deprecated="not deprecated">
  3143. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  3144. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  3145. <doc>
  3146. <![CDATA[Create a FileContext with specified FS as default using the specified
  3147. config.
  3148. @param defFS
  3149. @param aConf
  3150. @return new FileContext with specifed FS as default.]]>
  3151. </doc>
  3152. </method>
  3153. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  3154. abstract="false" native="false" synchronized="false"
  3155. static="true" final="false" visibility="protected"
  3156. deprecated="not deprecated">
  3157. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  3158. <doc>
  3159. <![CDATA[Create a FileContext for specified file system using the default config.
  3160. @param defaultFS
  3161. @return a FileContext with the specified AbstractFileSystem
  3162. as the default FS.]]>
  3163. </doc>
  3164. </method>
  3165. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  3166. abstract="false" native="false" synchronized="false"
  3167. static="true" final="false" visibility="public"
  3168. deprecated="not deprecated">
  3169. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3170. <doc>
  3171. <![CDATA[Create a FileContext using the default config read from the
  3172. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  3173. from core-defaults.xml in the release jar.
  3174. @throws UnsupportedFileSystemException If the file system from the default
  3175. configuration is not supported]]>
  3176. </doc>
  3177. </method>
  3178. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  3179. abstract="false" native="false" synchronized="false"
  3180. static="true" final="false" visibility="public"
  3181. deprecated="not deprecated">
  3182. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3183. <doc>
  3184. <![CDATA[@return a FileContext for the local file system using the default config.
  3185. @throws UnsupportedFileSystemException If the file system for
  3186. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  3187. </doc>
  3188. </method>
  3189. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  3190. abstract="false" native="false" synchronized="false"
  3191. static="true" final="false" visibility="public"
  3192. deprecated="not deprecated">
  3193. <param name="defaultFsUri" type="java.net.URI"/>
  3194. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3195. <doc>
  3196. <![CDATA[Create a FileContext for specified URI using the default config.
  3197. @param defaultFsUri
  3198. @return a FileContext with the specified URI as the default FS.
  3199. @throws UnsupportedFileSystemException If the file system for
  3200. <code>defaultFsUri</code> is not supported]]>
  3201. </doc>
  3202. </method>
  3203. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  3204. abstract="false" native="false" synchronized="false"
  3205. static="true" final="false" visibility="public"
  3206. deprecated="not deprecated">
  3207. <param name="defaultFsUri" type="java.net.URI"/>
  3208. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  3209. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3210. <doc>
  3211. <![CDATA[Create a FileContext for specified default URI using the specified config.
  3212. @param defaultFsUri
  3213. @param aConf
  3214. @return new FileContext for specified uri
  3215. @throws UnsupportedFileSystemException If the file system with specified is
  3216. not supported]]>
  3217. </doc>
  3218. </method>
  3219. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  3220. abstract="false" native="false" synchronized="false"
  3221. static="true" final="false" visibility="public"
  3222. deprecated="not deprecated">
  3223. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  3224. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3225. <doc>
  3226. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  3227. {@link #getFileContext(URI, Configuration)} instead of this one.
  3228. @param aConf
  3229. @return new FileContext
  3230. @throws UnsupportedFileSystemException If file system in the config
  3231. is not supported]]>
  3232. </doc>
  3233. </method>
  3234. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  3235. abstract="false" native="false" synchronized="false"
  3236. static="true" final="false" visibility="public"
  3237. deprecated="not deprecated">
  3238. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  3239. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3240. <doc>
  3241. <![CDATA[@param aConf - from which the FileContext is configured
  3242. @return a FileContext for the local file system using the specified config.
  3243. @throws UnsupportedFileSystemException If default file system in the config
  3244. is not supported]]>
  3245. </doc>
  3246. </method>
  3247. <method name="getDefaultFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  3248. abstract="false" native="false" synchronized="false"
  3249. static="false" final="false" visibility="public"
  3250. deprecated="not deprecated">
  3251. </method>
  3252. <method name="setWorkingDirectory"
  3253. abstract="false" native="false" synchronized="false"
  3254. static="false" final="false" visibility="public"
  3255. deprecated="not deprecated">
  3256. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  3257. <exception name="IOException" type="java.io.IOException"/>
  3258. <doc>
  3259. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  3260. directory feature is provided by simply prefixing relative names with the
  3261. working dir. Note this is different from Unix where the wd is actually set
  3262. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  3263. better in a distributed environment that has multiple independent roots.
  3264. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  3265. @param newWDir new working directory
  3266. @throws IOException
  3267. <br>
  3268. NewWdir can be one of:
  3269. <ul>
  3270. <li>relative path: "foo/bar";</li>
  3271. <li>absolute without scheme: "/foo/bar"</li>
  3272. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  3273. </ul>
  3274. <br>
  3275. Illegal WDs:
  3276. <ul>
  3277. <li>relative with scheme: "xx:foo/bar"</li>
  3278. <li>non existent directory</li>
  3279. </ul>]]>
  3280. </doc>
  3281. </method>
  3282. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3283. abstract="false" native="false" synchronized="false"
  3284. static="false" final="false" visibility="public"
  3285. deprecated="not deprecated">
  3286. <doc>
  3287. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  3288. </doc>
  3289. </method>
  3290. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  3291. abstract="false" native="false" synchronized="false"
  3292. static="false" final="false" visibility="public"
  3293. deprecated="not deprecated">
  3294. <doc>
  3295. <![CDATA[@return the umask of this FileContext]]>
  3296. </doc>
  3297. </method>
  3298. <method name="setUMask"
  3299. abstract="false" native="false" synchronized="false"
  3300. static="false" final="false" visibility="public"
  3301. deprecated="not deprecated">
  3302. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3303. <doc>
  3304. <![CDATA[Set umask to the supplied parameter.
  3305. @param newUmask the new umask]]>
  3306. </doc>
  3307. </method>
  3308. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  3309. abstract="false" native="false" synchronized="false"
  3310. static="false" final="false" visibility="public"
  3311. deprecated="not deprecated">
  3312. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3313. <doc>
  3314. <![CDATA[Make the path fully qualified if it is isn't.
  3315. A Fully-qualified path has scheme and authority specified and an absolute
  3316. path.
  3317. Use the default file system and working dir in this FileContext to qualify.
  3318. @param path
  3319. @return qualified path]]>
  3320. </doc>
  3321. </method>
  3322. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3323. abstract="false" native="false" synchronized="false"
  3324. static="false" final="false" visibility="public"
  3325. deprecated="not deprecated">
  3326. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3327. <param name="createFlag" type="java.util.EnumSet"/>
  3328. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  3329. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3330. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3331. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3332. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3333. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3334. <exception name="IOException" type="java.io.IOException"/>
  3335. <doc>
  3336. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  3337. writing into the file.
  3338. @param f the file name to open
  3339. @param createFlag gives the semantics of create: overwrite, append etc.
  3340. @param opts file creation options; see {@link Options.CreateOpts}.
  3341. <ul>
  3342. <li>Progress - to report progress on the operation - default null
  3343. <li>Permission - umask is applied against permisssion: default is
  3344. FsPermissions:getDefault()
  3345. <li>CreateParent - create missing parent path; default is to not
  3346. to create parents
  3347. <li>The defaults for the following are SS defaults of the file
  3348. server implementing the target path. Not all parameters make sense
  3349. for all kinds of file system - eg. localFS ignores Blocksize,
  3350. replication, checksum
  3351. <ul>
  3352. <li>BufferSize - buffersize used in FSDataOutputStream
  3353. <li>Blocksize - block size for file blocks
  3354. <li>ReplicationFactor - replication for blocks
  3355. <li>BytesPerChecksum - bytes per checksum
  3356. </ul>
  3357. </ul>
  3358. @return {@link FSDataOutputStream} for created file
  3359. @throws AccessControlException If access is denied
  3360. @throws FileAlreadyExistsException If file <code>f</code> already exists
  3361. @throws FileNotFoundException If parent of <code>f</code> does not exist
  3362. and <code>createParent</code> is false
  3363. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  3364. directory.
  3365. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3366. not supported
  3367. @throws IOException If an I/O error occurred
  3368. Exceptions applicable to file systems accessed over RPC:
  3369. @throws RpcClientException If an exception occurred in the RPC client
  3370. @throws RpcServerException If an exception occurred in the RPC server
  3371. @throws UnexpectedServerException If server implementation throws
  3372. undeclared exception to RPC server
  3373. RuntimeExceptions:
  3374. @throws InvalidPathException If path <code>f</code> is not valid]]>
  3375. </doc>
  3376. </method>
  3377. <method name="mkdir"
  3378. abstract="false" native="false" synchronized="false"
  3379. static="false" final="false" visibility="public"
  3380. deprecated="not deprecated">
  3381. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3382. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3383. <param name="createParent" type="boolean"/>
  3384. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3385. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3386. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3387. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3388. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3389. <exception name="IOException" type="java.io.IOException"/>
  3390. <doc>
  3391. <![CDATA[Make(create) a directory and all the non-existent parents.
  3392. @param dir - the dir to make
  3393. @param permission - permissions is set permission&~umask
  3394. @param createParent - if true then missing parent dirs are created if false
  3395. then parent must exist
  3396. @throws AccessControlException If access is denied
  3397. @throws FileAlreadyExistsException If directory <code>dir</code> already
  3398. exists
  3399. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  3400. and <code>createParent</code> is false
  3401. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  3402. directory
  3403. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  3404. is not supported
  3405. @throws IOException If an I/O error occurred
  3406. Exceptions applicable to file systems accessed over RPC:
  3407. @throws RpcClientException If an exception occurred in the RPC client
  3408. @throws UnexpectedServerException If server implementation throws
  3409. undeclared exception to RPC server
  3410. RuntimeExceptions:
  3411. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  3412. </doc>
  3413. </method>
  3414. <method name="delete" return="boolean"
  3415. abstract="false" native="false" synchronized="false"
  3416. static="false" final="false" visibility="public"
  3417. deprecated="not deprecated">
  3418. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3419. <param name="recursive" type="boolean"/>
  3420. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3421. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3422. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3423. <exception name="IOException" type="java.io.IOException"/>
  3424. <doc>
  3425. <![CDATA[Delete a file.
  3426. @param f the path to delete.
  3427. @param recursive if path is a directory and set to
  3428. true, the directory is deleted else throws an exception. In
  3429. case of a file the recursive can be set to either true or false.
  3430. @throws AccessControlException If access is denied
  3431. @throws FileNotFoundException If <code>f</code> does not exist
  3432. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3433. not supported
  3434. @throws IOException If an I/O error occurred
  3435. Exceptions applicable to file systems accessed over RPC:
  3436. @throws RpcClientException If an exception occurred in the RPC client
  3437. @throws RpcServerException If an exception occurred in the RPC server
  3438. @throws UnexpectedServerException If server implementation throws
  3439. undeclared exception to RPC server
  3440. RuntimeExceptions:
  3441. @throws InvalidPathException If path <code>f</code> is invalid]]>
  3442. </doc>
  3443. </method>
  3444. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3445. abstract="false" native="false" synchronized="false"
  3446. static="false" final="false" visibility="public"
  3447. deprecated="not deprecated">
  3448. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3449. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3450. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3451. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3452. <exception name="IOException" type="java.io.IOException"/>
  3453. <doc>
  3454. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  3455. default buffersize.
  3456. @param f the file name to open
  3457. @throws AccessControlException If access is denied
  3458. @throws FileNotFoundException If file <code>f</code> does not exist
  3459. @throws UnsupportedFileSystemException If file system for <code>f</code>
  3460. is not supported
  3461. @throws IOException If an I/O error occurred
  3462. Exceptions applicable to file systems accessed over RPC:
  3463. @throws RpcClientException If an exception occurred in the RPC client
  3464. @throws RpcServerException If an exception occurred in the RPC server
  3465. @throws UnexpectedServerException If server implementation throws
  3466. undeclared exception to RPC server]]>
  3467. </doc>
  3468. </method>
  3469. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3470. abstract="false" native="false" synchronized="false"
  3471. static="false" final="false" visibility="public"
  3472. deprecated="not deprecated">
  3473. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3474. <param name="bufferSize" type="int"/>
  3475. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3476. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3477. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3478. <exception name="IOException" type="java.io.IOException"/>
  3479. <doc>
  3480. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3481. @param f the file name to open
  3482. @param bufferSize the size of the buffer to be used.
  3483. @throws AccessControlException If access is denied
  3484. @throws FileNotFoundException If file <code>f</code> does not exist
  3485. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3486. not supported
  3487. @throws IOException If an I/O error occurred
  3488. Exceptions applicable to file systems accessed over RPC:
  3489. @throws RpcClientException If an exception occurred in the RPC client
  3490. @throws RpcServerException If an exception occurred in the RPC server
  3491. @throws UnexpectedServerException If server implementation throws
  3492. undeclared exception to RPC server]]>
  3493. </doc>
  3494. </method>
  3495. <method name="setReplication" return="boolean"
  3496. abstract="false" native="false" synchronized="false"
  3497. static="false" final="false" visibility="public"
  3498. deprecated="not deprecated">
  3499. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3500. <param name="replication" type="short"/>
  3501. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3502. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3503. <exception name="IOException" type="java.io.IOException"/>
  3504. <doc>
  3505. <![CDATA[Set replication for an existing file.
  3506. @param f file name
  3507. @param replication new replication
  3508. @return true if successful
  3509. @throws AccessControlException If access is denied
  3510. @throws FileNotFoundException If file <code>f</code> does not exist
  3511. @throws IOException If an I/O error occurred
  3512. Exceptions applicable to file systems accessed over RPC:
  3513. @throws RpcClientException If an exception occurred in the RPC client
  3514. @throws RpcServerException If an exception occurred in the RPC server
  3515. @throws UnexpectedServerException If server implementation throws
  3516. undeclared exception to RPC server]]>
  3517. </doc>
  3518. </method>
  3519. <method name="rename"
  3520. abstract="false" native="false" synchronized="false"
  3521. static="false" final="false" visibility="public"
  3522. deprecated="not deprecated">
  3523. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3524. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3525. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  3526. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3527. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3528. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3529. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3530. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3531. <exception name="IOException" type="java.io.IOException"/>
  3532. <doc>
  3533. <![CDATA[Renames Path src to Path dst
  3534. <ul>
  3535. <li
  3536. <li>Fails if src is a file and dst is a directory.
  3537. <li>Fails if src is a directory and dst is a file.
  3538. <li>Fails if the parent of dst does not exist or is a file.
  3539. </ul>
  3540. <p>
  3541. If OVERWRITE option is not passed as an argument, rename fails if the dst
  3542. already exists.
  3543. <p>
  3544. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  3545. it is a file or an empty directory. Rename fails if dst is a non-empty
  3546. directory.
  3547. <p>
  3548. Note that atomicity of rename is dependent on the file system
  3549. implementation. Please refer to the file system documentation for details
  3550. <p>
  3551. @param src path to be renamed
  3552. @param dst new path after rename
  3553. @throws AccessControlException If access is denied
  3554. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  3555. <code>options</options> has {@link Rename#OVERWRITE} option
  3556. false.
  3557. @throws FileNotFoundException If <code>src</code> does not exist
  3558. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  3559. directory
  3560. @throws UnsupportedFileSystemException If file system for <code>src</code>
  3561. and <code>dst</code> is not supported
  3562. @throws IOException If an I/O error occurred
  3563. Exceptions applicable to file systems accessed over RPC:
  3564. @throws RpcClientException If an exception occurred in the RPC client
  3565. @throws RpcServerException If an exception occurred in the RPC server
  3566. @throws UnexpectedServerException If server implementation throws
  3567. undeclared exception to RPC server]]>
  3568. </doc>
  3569. </method>
  3570. <method name="setPermission"
  3571. abstract="false" native="false" synchronized="false"
  3572. static="false" final="false" visibility="public"
  3573. deprecated="not deprecated">
  3574. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3575. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3576. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3577. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3578. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3579. <exception name="IOException" type="java.io.IOException"/>
  3580. <doc>
  3581. <![CDATA[Set permission of a path.
  3582. @param f
  3583. @param permission - the new absolute permission (umask is not applied)
  3584. @throws AccessControlException If access is denied
  3585. @throws FileNotFoundException If <code>f</code> does not exist
  3586. @throws UnsupportedFileSystemException If file system for <code>f</code>
  3587. is not supported
  3588. @throws IOException If an I/O error occurred
  3589. Exceptions applicable to file systems accessed over RPC:
  3590. @throws RpcClientException If an exception occurred in the RPC client
  3591. @throws RpcServerException If an exception occurred in the RPC server
  3592. @throws UnexpectedServerException If server implementation throws
  3593. undeclared exception to RPC server]]>
  3594. </doc>
  3595. </method>
  3596. <method name="setOwner"
  3597. abstract="false" native="false" synchronized="false"
  3598. static="false" final="false" visibility="public"
  3599. deprecated="not deprecated">
  3600. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3601. <param name="username" type="java.lang.String"/>
  3602. <param name="groupname" type="java.lang.String"/>
  3603. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3604. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3605. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3606. <exception name="IOException" type="java.io.IOException"/>
  3607. <doc>
  3608. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  3609. and groupname cannot both be null.
  3610. @param f The path
  3611. @param username If it is null, the original username remains unchanged.
  3612. @param groupname If it is null, the original groupname remains unchanged.
  3613. @throws AccessControlException If access is denied
  3614. @throws FileNotFoundException If <code>f</code> does not exist
  3615. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3616. not supported
  3617. @throws IOException If an I/O error occurred
  3618. Exceptions applicable to file systems accessed over RPC:
  3619. @throws RpcClientException If an exception occurred in the RPC client
  3620. @throws RpcServerException If an exception occurred in the RPC server
  3621. @throws UnexpectedServerException If server implementation throws
  3622. undeclared exception to RPC server
  3623. RuntimeExceptions:
  3624. @throws HadoopIllegalArgumentException If <code>username</code> or
  3625. <code>groupname</code> is invalid.]]>
  3626. </doc>
  3627. </method>
  3628. <method name="setTimes"
  3629. abstract="false" native="false" synchronized="false"
  3630. static="false" final="false" visibility="public"
  3631. deprecated="not deprecated">
  3632. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3633. <param name="mtime" type="long"/>
  3634. <param name="atime" type="long"/>
  3635. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3636. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3637. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3638. <exception name="IOException" type="java.io.IOException"/>
  3639. <doc>
  3640. <![CDATA[Set access time of a file.
  3641. @param f The path
  3642. @param mtime Set the modification time of this file.
  3643. The number of milliseconds since epoch (Jan 1, 1970).
  3644. A value of -1 means that this call should not set modification time.
  3645. @param atime Set the access time of this file.
  3646. The number of milliseconds since Jan 1, 1970.
  3647. A value of -1 means that this call should not set access time.
  3648. @throws AccessControlException If access is denied
  3649. @throws FileNotFoundException If <code>f</code> does not exist
  3650. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3651. not supported
  3652. @throws IOException If an I/O error occurred
  3653. Exceptions applicable to file systems accessed over RPC:
  3654. @throws RpcClientException If an exception occurred in the RPC client
  3655. @throws RpcServerException If an exception occurred in the RPC server
  3656. @throws UnexpectedServerException If server implementation throws
  3657. undeclared exception to RPC server]]>
  3658. </doc>
  3659. </method>
  3660. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3661. abstract="false" native="false" synchronized="false"
  3662. static="false" final="false" visibility="public"
  3663. deprecated="not deprecated">
  3664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3665. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3666. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3667. <exception name="IOException" type="java.io.IOException"/>
  3668. <doc>
  3669. <![CDATA[Get the checksum of a file.
  3670. @param f file path
  3671. @return The file checksum. The default return value is null,
  3672. which indicates that no checksum algorithm is implemented
  3673. in the corresponding FileSystem.
  3674. @throws AccessControlException If access is denied
  3675. @throws FileNotFoundException If <code>f</code> does not exist
  3676. @throws IOException If an I/O error occurred
  3677. Exceptions applicable to file systems accessed over RPC:
  3678. @throws RpcClientException If an exception occurred in the RPC client
  3679. @throws RpcServerException If an exception occurred in the RPC server
  3680. @throws UnexpectedServerException If server implementation throws
  3681. undeclared exception to RPC server]]>
  3682. </doc>
  3683. </method>
  3684. <method name="setVerifyChecksum"
  3685. abstract="false" native="false" synchronized="false"
  3686. static="false" final="false" visibility="public"
  3687. deprecated="not deprecated">
  3688. <param name="verifyChecksum" type="boolean"/>
  3689. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3690. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3691. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3692. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3693. <exception name="IOException" type="java.io.IOException"/>
  3694. <doc>
  3695. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  3696. This is only applicable if the
  3697. corresponding FileSystem supports checksum. By default doesn't do anything.
  3698. @param verifyChecksum
  3699. @param f set the verifyChecksum for the Filesystem containing this path
  3700. @throws AccessControlException If access is denied
  3701. @throws FileNotFoundException If <code>f</code> does not exist
  3702. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3703. not supported
  3704. @throws IOException If an I/O error occurred
  3705. Exceptions applicable to file systems accessed over RPC:
  3706. @throws RpcClientException If an exception occurred in the RPC client
  3707. @throws RpcServerException If an exception occurred in the RPC server
  3708. @throws UnexpectedServerException If server implementation throws
  3709. undeclared exception to RPC server]]>
  3710. </doc>
  3711. </method>
  3712. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3713. abstract="false" native="false" synchronized="false"
  3714. static="false" final="false" visibility="public"
  3715. deprecated="not deprecated">
  3716. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3717. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3718. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3719. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3720. <exception name="IOException" type="java.io.IOException"/>
  3721. <doc>
  3722. <![CDATA[Return a file status object that represents the path.
  3723. @param f The path we want information from
  3724. @return a FileStatus object
  3725. @throws AccessControlException If access is denied
  3726. @throws FileNotFoundException If <code>f</code> does not exist
  3727. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3728. not supported
  3729. @throws IOException If an I/O error occurred
  3730. Exceptions applicable to file systems accessed over RPC:
  3731. @throws RpcClientException If an exception occurred in the RPC client
  3732. @throws RpcServerException If an exception occurred in the RPC server
  3733. @throws UnexpectedServerException If server implementation throws
  3734. undeclared exception to RPC server]]>
  3735. </doc>
  3736. </method>
  3737. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  3738. abstract="false" native="false" synchronized="false"
  3739. static="false" final="false" visibility="public"
  3740. deprecated="not deprecated">
  3741. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3742. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3743. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3744. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3745. <exception name="IOException" type="java.io.IOException"/>
  3746. <doc>
  3747. <![CDATA[Return a file status object that represents the path. If the path
  3748. refers to a symlink then the FileStatus of the symlink is returned.
  3749. The behavior is equivalent to #getFileStatus() if the underlying
  3750. file system does not support symbolic links.
  3751. @param f The path we want information from.
  3752. @return A FileStatus object
  3753. @throws AccessControlException If access is denied
  3754. @throws FileNotFoundException If <code>f</code> does not exist
  3755. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3756. not supported
  3757. @throws IOException If an I/O error occurred]]>
  3758. </doc>
  3759. </method>
  3760. <method name="getLinkTarget" 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="f" type="org.apache.hadoop.fs.Path"/>
  3765. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3766. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3767. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3768. <exception name="IOException" type="java.io.IOException"/>
  3769. <doc>
  3770. <![CDATA[Returns the target of the given symbolic link as it was specified
  3771. when the link was created. Links in the path leading up to the
  3772. final path component are resolved transparently.
  3773. @param f the path to return the target of
  3774. @return The un-interpreted target of the symbolic link.
  3775. @throws AccessControlException If access is denied
  3776. @throws FileNotFoundException If path <code>f</code> does not exist
  3777. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3778. not supported
  3779. @throws IOException If the given path does not refer to a symlink
  3780. or an I/O error occurred]]>
  3781. </doc>
  3782. </method>
  3783. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3784. abstract="false" native="false" synchronized="false"
  3785. static="false" final="false" visibility="public"
  3786. deprecated="not deprecated">
  3787. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3788. <param name="start" type="long"/>
  3789. <param name="len" type="long"/>
  3790. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3791. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3792. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3793. <exception name="IOException" type="java.io.IOException"/>
  3794. <doc>
  3795. <![CDATA[Return blockLocation of the given file for the given offset and len.
  3796. For a nonexistent file or regions, null will be returned.
  3797. This call is most helpful with DFS, where it returns
  3798. hostnames of machines that contain the given file.
  3799. @param f - get blocklocations of this file
  3800. @param start position (byte offset)
  3801. @param len (in bytes)
  3802. @return block locations for given file at specified offset of len
  3803. @throws AccessControlException If access is denied
  3804. @throws FileNotFoundException If <code>f</code> does not exist
  3805. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3806. not supported
  3807. @throws IOException If an I/O error occurred
  3808. Exceptions applicable to file systems accessed over RPC:
  3809. @throws RpcClientException If an exception occurred in the RPC client
  3810. @throws RpcServerException If an exception occurred in the RPC server
  3811. @throws UnexpectedServerException If server implementation throws
  3812. undeclared exception to RPC server
  3813. RuntimeExceptions:
  3814. @throws InvalidPathException If path <code>f</code> is invalid]]>
  3815. </doc>
  3816. </method>
  3817. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3818. abstract="false" native="false" synchronized="false"
  3819. static="false" final="false" visibility="public"
  3820. deprecated="not deprecated">
  3821. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3822. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3823. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3824. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3825. <exception name="IOException" type="java.io.IOException"/>
  3826. <doc>
  3827. <![CDATA[Returns a status object describing the use and capacity of the
  3828. file system denoted by the Parh argument p.
  3829. If the file system has multiple partitions, the
  3830. use and capacity of the partition pointed to by the specified
  3831. path is reflected.
  3832. @param f Path for which status should be obtained. null means the
  3833. root partition of the default file system.
  3834. @return a FsStatus object
  3835. @throws AccessControlException If access is denied
  3836. @throws FileNotFoundException If <code>f</code> does not exist
  3837. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3838. not supported
  3839. @throws IOException If an I/O error occurred
  3840. Exceptions applicable to file systems accessed over RPC:
  3841. @throws RpcClientException If an exception occurred in the RPC client
  3842. @throws RpcServerException If an exception occurred in the RPC server
  3843. @throws UnexpectedServerException If server implementation throws
  3844. undeclared exception to RPC server]]>
  3845. </doc>
  3846. </method>
  3847. <method name="createSymlink"
  3848. abstract="false" native="false" synchronized="false"
  3849. static="false" final="false" visibility="public"
  3850. deprecated="not deprecated">
  3851. <param name="target" type="org.apache.hadoop.fs.Path"/>
  3852. <param name="link" type="org.apache.hadoop.fs.Path"/>
  3853. <param name="createParent" type="boolean"/>
  3854. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3855. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3856. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3857. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3858. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3859. <exception name="IOException" type="java.io.IOException"/>
  3860. <doc>
  3861. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  3862. the symlink exits, the user does not have permission to create symlink,
  3863. or the underlying file system does not support symlinks.
  3864. Symlink permissions are ignored, access to a symlink is determined by
  3865. the permissions of the symlink target.
  3866. Symlinks in paths leading up to the final path component are resolved
  3867. transparently. If the final path component refers to a symlink some
  3868. functions operate on the symlink itself, these are:
  3869. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  3870. - rename(src, dst) - If src refers to a symlink, the symlink is
  3871. renamed. If dst refers to a symlink, the symlink is over-written.
  3872. - getLinkTarget(f) - Returns the target of the symlink.
  3873. - getFileLinkStatus(f) - Returns a FileStatus object describing
  3874. the symlink.
  3875. Some functions, create() and mkdir(), expect the final path component
  3876. does not exist. If they are given a path that refers to a symlink that
  3877. does exist they behave as if the path referred to an existing file or
  3878. directory. All other functions fully resolve, ie follow, the symlink.
  3879. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  3880. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  3881. getFsStatus, getFileStatus, exists, and listStatus.
  3882. Symlink targets are stored as given to createSymlink, assuming the
  3883. underlying file system is capable of storing a fully qualified URI.
  3884. Dangling symlinks are permitted. FileContext supports four types of
  3885. symlink targets, and resolves them as follows
  3886. <pre>
  3887. Given a path referring to a symlink of form:
  3888. <---X--->
  3889. fs://host/A/B/link
  3890. <-----Y----->
  3891. In this path X is the scheme and authority that identify the file system,
  3892. and Y is the path leading up to the final path component "link". If Y is
  3893. a symlink itself then let Y' be the target of Y and X' be the scheme and
  3894. authority of Y'. Symlink targets may:
  3895. 1. Fully qualified URIs
  3896. fs://hostX/A/B/file Resolved according to the target file system.
  3897. 2. Partially qualified URIs (eg scheme but no host)
  3898. fs:///A/B/file Resolved according to the target file sytem. Eg resolving
  3899. a symlink to hdfs:///A results in an exception because
  3900. HDFS URIs must be fully qualified, while a symlink to
  3901. file:///A will not since Hadoop's local file systems
  3902. require partially qualified URIs.
  3903. 3. Relative paths
  3904. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  3905. is "../B/file" then [Y'][path] is hdfs://host/B/file
  3906. 4. Absolute paths
  3907. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  3908. is "/file" then [X][path] is hdfs://host/file
  3909. </pre>
  3910. @param target the target of the symbolic link
  3911. @param link the path to be created that points to target
  3912. @param createParent if true then missing parent dirs are created if
  3913. false then parent must exist
  3914. @throws AccessControlException If access is denied
  3915. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  3916. @throws FileNotFoundException If <code>target</code> does not exist
  3917. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  3918. directory.
  3919. @throws UnsupportedFileSystemException If file system for
  3920. <code>target</code> or <code>link</code> is not supported
  3921. @throws IOException If an I/O error occurred]]>
  3922. </doc>
  3923. </method>
  3924. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3925. abstract="false" native="false" synchronized="false"
  3926. static="false" final="false" visibility="public"
  3927. deprecated="not deprecated">
  3928. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3929. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3930. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3931. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3932. <exception name="IOException" type="java.io.IOException"/>
  3933. <doc>
  3934. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3935. a directory.
  3936. @param f is the path
  3937. @return an iterator that traverses statuses of the files/directories
  3938. in the given path
  3939. @throws AccessControlException If access is denied
  3940. @throws FileNotFoundException If <code>f</code> does not exist
  3941. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3942. not supported
  3943. @throws IOException If an I/O error occurred
  3944. Exceptions applicable to file systems accessed over RPC:
  3945. @throws RpcClientException If an exception occurred in the RPC client
  3946. @throws RpcServerException If an exception occurred in the RPC server
  3947. @throws UnexpectedServerException If server implementation throws
  3948. undeclared exception to RPC server]]>
  3949. </doc>
  3950. </method>
  3951. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3952. abstract="false" native="false" synchronized="false"
  3953. static="false" final="false" visibility="public"
  3954. deprecated="not deprecated">
  3955. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3956. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3957. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3958. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3959. <exception name="IOException" type="java.io.IOException"/>
  3960. <doc>
  3961. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3962. a directory.
  3963. Return the file's status and block locations If the path is a file.
  3964. If a returned status is a file, it contains the file's block locations.
  3965. @param f is the path
  3966. @return an iterator that traverses statuses of the files/directories
  3967. in the given path
  3968. If any IO exception (for example the input directory gets deleted while
  3969. listing is being executed), next() or hasNext() of the returned iterator
  3970. may throw a RuntimeException with the io exception as the cause.
  3971. @throws AccessControlException If access is denied
  3972. @throws FileNotFoundException If <code>f</code> does not exist
  3973. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3974. not supported
  3975. @throws IOException If an I/O error occurred
  3976. Exceptions applicable to file systems accessed over RPC:
  3977. @throws RpcClientException If an exception occurred in the RPC client
  3978. @throws RpcServerException If an exception occurred in the RPC server
  3979. @throws UnexpectedServerException If server implementation throws
  3980. undeclared exception to RPC server]]>
  3981. </doc>
  3982. </method>
  3983. <method name="deleteOnExit" return="boolean"
  3984. abstract="false" native="false" synchronized="false"
  3985. static="false" final="false" visibility="public"
  3986. deprecated="not deprecated">
  3987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3988. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3989. <exception name="IOException" type="java.io.IOException"/>
  3990. <doc>
  3991. <![CDATA[Mark a path to be deleted on JVM shutdown.
  3992. @param f the existing path to delete.
  3993. @return true if deleteOnExit is successful, otherwise false.
  3994. @throws AccessControlException If access is denied
  3995. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3996. not supported
  3997. @throws IOException If an I/O error occurred
  3998. Exceptions applicable to file systems accessed over RPC:
  3999. @throws RpcClientException If an exception occurred in the RPC client
  4000. @throws RpcServerException If an exception occurred in the RPC server
  4001. @throws UnexpectedServerException If server implementation throws
  4002. undeclared exception to RPC server]]>
  4003. </doc>
  4004. </method>
  4005. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  4006. abstract="false" native="false" synchronized="false"
  4007. static="false" final="false" visibility="public"
  4008. deprecated="not deprecated">
  4009. </method>
  4010. <method name="resolve" return="org.apache.hadoop.fs.Path"
  4011. abstract="false" native="false" synchronized="false"
  4012. static="false" final="false" visibility="protected"
  4013. deprecated="not deprecated">
  4014. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4015. <exception name="IOException" type="java.io.IOException"/>
  4016. <doc>
  4017. <![CDATA[Resolves all symbolic links in the specified path.
  4018. Returns the new path object.]]>
  4019. </doc>
  4020. </method>
  4021. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  4022. abstract="false" native="false" synchronized="false"
  4023. static="false" final="false" visibility="protected"
  4024. deprecated="not deprecated">
  4025. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4026. <exception name="IOException" type="java.io.IOException"/>
  4027. <doc>
  4028. <![CDATA[Resolves all symbolic links in the specified path leading up
  4029. to, but not including the final path component.
  4030. @param f path to resolve
  4031. @return the new path object.]]>
  4032. </doc>
  4033. </method>
  4034. <field name="LOG" type="org.apache.commons.logging.Log"
  4035. transient="false" volatile="false"
  4036. static="true" final="true" visibility="public"
  4037. deprecated="not deprecated">
  4038. </field>
  4039. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  4040. transient="false" volatile="false"
  4041. static="true" final="true" visibility="public"
  4042. deprecated="not deprecated">
  4043. </field>
  4044. <doc>
  4045. <![CDATA[The FileContext class provides an interface to the application writer for
  4046. using the Hadoop file system.
  4047. It provides a set of methods for the usual operation: create, open,
  4048. list, etc
  4049. <p>
  4050. <b> *** Path Names *** </b>
  4051. <p>
  4052. The Hadoop file system supports a URI name space and URI names.
  4053. It offers a forest of file systems that can be referenced using fully
  4054. qualified URIs.
  4055. Two common Hadoop file systems implementations are
  4056. <ul>
  4057. <li> the local file system: file:///path
  4058. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  4059. </ul>
  4060. While URI names are very flexible, it requires knowing the name or address
  4061. of the server. For convenience one often wants to access the default system
  4062. in one's environment without knowing its name/address. This has an
  4063. additional benefit that it allows one to change one's default fs
  4064. (e.g. admin moves application from cluster1 to cluster2).
  4065. <p>
  4066. To facilitate this, Hadoop supports a notion of a default file system.
  4067. The user can set his default file system, although this is
  4068. typically set up for you in your environment via your default config.
  4069. A default file system implies a default scheme and authority; slash-relative
  4070. names (such as /for/bar) are resolved relative to that default FS.
  4071. Similarly a user can also have working-directory-relative names (i.e. names
  4072. not starting with a slash). While the working directory is generally in the
  4073. same default FS, the wd can be in a different FS.
  4074. <p>
  4075. Hence Hadoop path names can be one of:
  4076. <ul>
  4077. <li> fully qualified URI: scheme://authority/path
  4078. <li> slash relative names: /path relative to the default file system
  4079. <li> wd-relative names: path relative to the working dir
  4080. </ul>
  4081. Relative paths with scheme (scheme:foo/bar) are illegal.
  4082. <p>
  4083. <b>****The Role of the FileContext and configuration defaults****</b>
  4084. <p>
  4085. The FileContext provides file namespace context for resolving file names;
  4086. it also contains the umask for permissions, In that sense it is like the
  4087. per-process file-related state in Unix system.
  4088. These two properties
  4089. <ul>
  4090. <li> default file system i.e your slash)
  4091. <li> umask
  4092. </ul>
  4093. in general, are obtained from the default configuration file
  4094. in your environment, (@see {@link Configuration}).
  4095. No other configuration parameters are obtained from the default config as
  4096. far as the file context layer is concerned. All file system instances
  4097. (i.e. deployments of file systems) have default properties; we call these
  4098. server side (SS) defaults. Operation like create allow one to select many
  4099. properties: either pass them in as explicit parameters or use
  4100. the SS properties.
  4101. <p>
  4102. The file system related SS defaults are
  4103. <ul>
  4104. <li> the home directory (default is "/user/userName")
  4105. <li> the initial wd (only for local fs)
  4106. <li> replication factor
  4107. <li> block size
  4108. <li> buffer size
  4109. <li> bytesPerChecksum (if used).
  4110. </ul>
  4111. <p>
  4112. <b> *** Usage Model for the FileContext class *** </b>
  4113. <p>
  4114. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  4115. Unspecified values come from core-defaults.xml in the release jar.
  4116. <ul>
  4117. <li> myFContext = FileContext.getFileContext(); // uses the default config
  4118. // which has your default FS
  4119. <li> myFContext.create(path, ...);
  4120. <li> myFContext.setWorkingDir(path)
  4121. <li> myFContext.open (path, ...);
  4122. </ul>
  4123. Example 2: Get a FileContext with a specific URI as the default FS
  4124. <ul>
  4125. <li> myFContext = FileContext.getFileContext(URI)
  4126. <li> myFContext.create(path, ...);
  4127. ...
  4128. </ul>
  4129. Example 3: FileContext with local file system as the default
  4130. <ul>
  4131. <li> myFContext = FileContext.getLocalFSFileContext()
  4132. <li> myFContext.create(path, ...);
  4133. <li> ...
  4134. </ul>
  4135. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  4136. Generally you should not need use a config unless you are doing
  4137. <ul>
  4138. <li> configX = someConfigSomeOnePassedToYou.
  4139. <li> myFContext = getFileContext(configX); // configX is not changed,
  4140. // is passed down
  4141. <li> myFContext.create(path, ...);
  4142. <li>...
  4143. </ul>]]>
  4144. </doc>
  4145. </class>
  4146. <!-- end class org.apache.hadoop.fs.FileContext -->
  4147. <!-- start class org.apache.hadoop.fs.FileContext.FSLinkResolver -->
  4148. <class name="FileContext.FSLinkResolver" extends="java.lang.Object"
  4149. abstract="true"
  4150. static="false" final="false" visibility="protected"
  4151. deprecated="not deprecated">
  4152. <constructor name="FileContext.FSLinkResolver"
  4153. static="false" final="false" visibility="protected"
  4154. deprecated="not deprecated">
  4155. </constructor>
  4156. <method name="next" return="T"
  4157. abstract="true" native="false" synchronized="false"
  4158. static="false" final="false" visibility="public"
  4159. deprecated="not deprecated">
  4160. <param name="fs" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  4161. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4162. <exception name="IOException" type="java.io.IOException"/>
  4163. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  4164. <doc>
  4165. <![CDATA[Generic helper function overridden on instantiation to perform a
  4166. specific operation on the given file system using the given path
  4167. which may result in an UnresolvedLinkException.
  4168. @param fs AbstractFileSystem to perform the operation on.
  4169. @param p Path given the file system.
  4170. @return Generic type determined by the specific implementation.
  4171. @throws UnresolvedLinkException If symbolic link <code>path</code> could
  4172. not be resolved
  4173. @throws IOException an I/O error occured]]>
  4174. </doc>
  4175. </method>
  4176. <method name="resolve" return="T"
  4177. abstract="false" native="false" synchronized="false"
  4178. static="false" final="false" visibility="public"
  4179. deprecated="not deprecated">
  4180. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  4181. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4182. <exception name="IOException" type="java.io.IOException"/>
  4183. <doc>
  4184. <![CDATA[Performs the operation specified by the next function, calling it
  4185. repeatedly until all symlinks in the given path are resolved.
  4186. @param fc FileContext used to access file systems.
  4187. @param p The path to resolve symlinks in.
  4188. @return Generic type determined by the implementation of next.
  4189. @throws IOException]]>
  4190. </doc>
  4191. </method>
  4192. <doc>
  4193. <![CDATA[Class used to perform an operation on and resolve symlinks in a
  4194. path. The operation may potentially span multiple file systems.]]>
  4195. </doc>
  4196. </class>
  4197. <!-- end class org.apache.hadoop.fs.FileContext.FSLinkResolver -->
  4198. <!-- start class org.apache.hadoop.fs.FileContext.Util -->
  4199. <class name="FileContext.Util" extends="java.lang.Object"
  4200. abstract="false"
  4201. static="false" final="false" visibility="public"
  4202. deprecated="not deprecated">
  4203. <constructor name="FileContext.Util"
  4204. static="false" final="false" visibility="public"
  4205. deprecated="not deprecated">
  4206. </constructor>
  4207. <method name="exists" return="boolean"
  4208. abstract="false" native="false" synchronized="false"
  4209. static="false" final="false" visibility="public"
  4210. deprecated="not deprecated">
  4211. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4212. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4213. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4214. <exception name="IOException" type="java.io.IOException"/>
  4215. <doc>
  4216. <![CDATA[Does the file exist?
  4217. Note: Avoid using this method if you already have FileStatus in hand.
  4218. Instead reuse the FileStatus
  4219. @param f the file or dir to be checked
  4220. @throws AccessControlException If access is denied
  4221. @throws IOException If an I/O error occurred
  4222. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  4223. not supported
  4224. Exceptions applicable to file systems accessed over RPC:
  4225. @throws RpcClientException If an exception occurred in the RPC client
  4226. @throws RpcServerException If an exception occurred in the RPC server
  4227. @throws UnexpectedServerException If server implementation throws
  4228. undeclared exception to RPC server]]>
  4229. </doc>
  4230. </method>
  4231. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  4232. abstract="false" native="false" synchronized="false"
  4233. static="false" final="false" visibility="public"
  4234. deprecated="not deprecated">
  4235. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4236. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4237. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4238. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4239. <exception name="IOException" type="java.io.IOException"/>
  4240. <doc>
  4241. <![CDATA[Return the {@link ContentSummary} of path f.
  4242. @param f path
  4243. @return the {@link ContentSummary} of path f.
  4244. @throws AccessControlException If access is denied
  4245. @throws FileNotFoundException If <code>f</code> does not exist
  4246. @throws UnsupportedFileSystemException If file system for
  4247. <code>f</code> is not supported
  4248. @throws IOException If an I/O error occurred
  4249. Exceptions applicable to file systems accessed over RPC:
  4250. @throws RpcClientException If an exception occurred in the RPC client
  4251. @throws RpcServerException If an exception occurred in the RPC server
  4252. @throws UnexpectedServerException If server implementation throws
  4253. undeclared exception to RPC server]]>
  4254. </doc>
  4255. </method>
  4256. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4257. abstract="false" native="false" synchronized="false"
  4258. static="false" final="false" visibility="public"
  4259. deprecated="not deprecated">
  4260. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  4261. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4262. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4263. <exception name="IOException" type="java.io.IOException"/>
  4264. <doc>
  4265. <![CDATA[See {@link #listStatus(Path[], PathFilter)}]]>
  4266. </doc>
  4267. </method>
  4268. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4269. abstract="false" native="false" synchronized="false"
  4270. static="false" final="false" visibility="public"
  4271. deprecated="not deprecated">
  4272. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4273. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4274. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4275. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4276. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4277. <exception name="IOException" type="java.io.IOException"/>
  4278. <doc>
  4279. <![CDATA[Filter files/directories in the given path using the user-supplied path
  4280. filter.
  4281. @param f is the path name
  4282. @param filter is the user-supplied path filter
  4283. @return an array of FileStatus objects for the files under the given path
  4284. after applying the filter
  4285. @throws AccessControlException If access is denied
  4286. @throws FileNotFoundException If <code>f</code> does not exist
  4287. @throws UnsupportedFileSystemException If file system for
  4288. <code>pathPattern</code> is not supported
  4289. @throws IOException If an I/O error occurred
  4290. Exceptions applicable to file systems accessed over RPC:
  4291. @throws RpcClientException If an exception occurred in the RPC client
  4292. @throws RpcServerException If an exception occurred in the RPC server
  4293. @throws UnexpectedServerException If server implementation throws
  4294. undeclared exception to RPC server]]>
  4295. </doc>
  4296. </method>
  4297. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4298. abstract="false" native="false" synchronized="false"
  4299. static="false" final="false" visibility="public"
  4300. deprecated="not deprecated">
  4301. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  4302. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4303. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4304. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4305. <exception name="IOException" type="java.io.IOException"/>
  4306. <doc>
  4307. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  4308. path filter.
  4309. @param files is a list of paths
  4310. @param filter is the filter
  4311. @return a list of statuses for the files under the given paths after
  4312. applying the filter
  4313. @throws AccessControlException If access is denied
  4314. @throws FileNotFoundException If a file in <code>files</code> does not
  4315. exist
  4316. @throws IOException If an I/O error occurred
  4317. Exceptions applicable to file systems accessed over RPC:
  4318. @throws RpcClientException If an exception occurred in the RPC client
  4319. @throws RpcServerException If an exception occurred in the RPC server
  4320. @throws UnexpectedServerException If server implementation throws
  4321. undeclared exception to RPC server]]>
  4322. </doc>
  4323. </method>
  4324. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4325. abstract="false" native="false" synchronized="false"
  4326. static="false" final="false" visibility="public"
  4327. deprecated="not deprecated">
  4328. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4329. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4330. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4331. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4332. <exception name="IOException" type="java.io.IOException"/>
  4333. <doc>
  4334. <![CDATA[List the statuses of the files/directories in the given path
  4335. if the path is a directory.
  4336. @param f is the path
  4337. @return an array that contains statuses of the files/directories
  4338. in the given path
  4339. @throws AccessControlException If access is denied
  4340. @throws FileNotFoundException If <code>f</code> does not exist
  4341. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  4342. not supported
  4343. @throws IOException If an I/O error occurred
  4344. Exceptions applicable to file systems accessed over RPC:
  4345. @throws RpcClientException If an exception occurred in the RPC client
  4346. @throws RpcServerException If an exception occurred in the RPC server
  4347. @throws UnexpectedServerException If server implementation throws
  4348. undeclared exception to RPC server]]>
  4349. </doc>
  4350. </method>
  4351. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  4352. abstract="false" native="false" synchronized="false"
  4353. static="false" final="false" visibility="public"
  4354. deprecated="not deprecated">
  4355. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4356. <param name="recursive" type="boolean"/>
  4357. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4358. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4359. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4360. <exception name="IOException" type="java.io.IOException"/>
  4361. <doc>
  4362. <![CDATA[List the statuses and block locations of the files in the given path.
  4363. If the path is a directory,
  4364. if recursive is false, returns files in the directory;
  4365. if recursive is true, return files in the subtree rooted at the path.
  4366. The subtree is traversed in the depth-first order.
  4367. If the path is a file, return the file's status and block locations.
  4368. Files across symbolic links are also returned.
  4369. @param f is the path
  4370. @param recursive if the subdirectories need to be traversed recursively
  4371. @return an iterator that traverses statuses of the files
  4372. If any IO exception (for example a sub-directory gets deleted while
  4373. listing is being executed), next() or hasNext() of the returned iterator
  4374. may throw a RuntimeException with the IO exception as the cause.
  4375. @throws AccessControlException If access is denied
  4376. @throws FileNotFoundException If <code>f</code> does not exist
  4377. @throws UnsupportedFileSystemException If file system for <code>f</code>
  4378. is not supported
  4379. @throws IOException If an I/O error occurred
  4380. Exceptions applicable to file systems accessed over RPC:
  4381. @throws RpcClientException If an exception occurred in the RPC client
  4382. @throws RpcServerException If an exception occurred in the RPC server
  4383. @throws UnexpectedServerException If server implementation throws
  4384. undeclared exception to RPC server]]>
  4385. </doc>
  4386. </method>
  4387. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4388. abstract="false" native="false" synchronized="false"
  4389. static="false" final="false" visibility="public"
  4390. deprecated="not deprecated">
  4391. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  4392. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4393. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4394. <exception name="IOException" type="java.io.IOException"/>
  4395. <doc>
  4396. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  4397. files. Results are sorted by their names.
  4398. <p>
  4399. A filename pattern is composed of <i>regular</i> characters and
  4400. <i>special pattern matching</i> characters, which are:
  4401. <dl>
  4402. <dd>
  4403. <dl>
  4404. <p>
  4405. <dt> <tt> ? </tt>
  4406. <dd> Matches any single character.
  4407. <p>
  4408. <dt> <tt> * </tt>
  4409. <dd> Matches zero or more characters.
  4410. <p>
  4411. <dt> <tt> [<i>abc</i>] </tt>
  4412. <dd> Matches a single character from character set
  4413. <tt>{<i>a,b,c</i>}</tt>.
  4414. <p>
  4415. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  4416. <dd> Matches a single character from the character range
  4417. <tt>{<i>a...b</i>}</tt>. Note: character <tt><i>a</i></tt> must be
  4418. lexicographically less than or equal to character <tt><i>b</i></tt>.
  4419. <p>
  4420. <dt> <tt> [^<i>a</i>] </tt>
  4421. <dd> Matches a single char that is not from character set or range
  4422. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  4423. immediately to the right of the opening bracket.
  4424. <p>
  4425. <dt> <tt> \<i>c</i> </tt>
  4426. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  4427. <p>
  4428. <dt> <tt> {ab,cd} </tt>
  4429. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  4430. <p>
  4431. <dt> <tt> {ab,c{de,fh}} </tt>
  4432. <dd> Matches a string from string set <tt>{<i>ab, cde, cfh</i>}</tt>
  4433. </dl>
  4434. </dd>
  4435. </dl>
  4436. @param pathPattern a regular expression specifying a pth pattern
  4437. @return an array of paths that match the path pattern
  4438. @throws AccessControlException If access is denied
  4439. @throws UnsupportedFileSystemException If file system for
  4440. <code>pathPattern</code> is not supported
  4441. @throws IOException If an I/O error occurred
  4442. Exceptions applicable to file systems accessed over RPC:
  4443. @throws RpcClientException If an exception occurred in the RPC client
  4444. @throws RpcServerException If an exception occurred in the RPC server
  4445. @throws UnexpectedServerException If server implementation throws
  4446. undeclared exception to RPC server]]>
  4447. </doc>
  4448. </method>
  4449. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4450. abstract="false" native="false" synchronized="false"
  4451. static="false" final="false" visibility="public"
  4452. deprecated="not deprecated">
  4453. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  4454. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4455. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4456. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4457. <exception name="IOException" type="java.io.IOException"/>
  4458. <doc>
  4459. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  4460. and is accepted by the user-supplied path filter. Results are sorted by
  4461. their path names.
  4462. Return null if pathPattern has no glob and the path does not exist.
  4463. Return an empty array if pathPattern has a glob and no path matches it.
  4464. @param pathPattern regular expression specifying the path pattern
  4465. @param filter user-supplied path filter
  4466. @return an array of FileStatus objects
  4467. @throws AccessControlException If access is denied
  4468. @throws UnsupportedFileSystemException If file system for
  4469. <code>pathPattern</code> is not supported
  4470. @throws IOException If an I/O error occurred
  4471. Exceptions applicable to file systems accessed over RPC:
  4472. @throws RpcClientException If an exception occurred in the RPC client
  4473. @throws RpcServerException If an exception occurred in the RPC server
  4474. @throws UnexpectedServerException If server implementation throws
  4475. undeclared exception to RPC server]]>
  4476. </doc>
  4477. </method>
  4478. <method name="copy" return="boolean"
  4479. abstract="false" native="false" synchronized="false"
  4480. static="false" final="false" visibility="public"
  4481. deprecated="not deprecated">
  4482. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4483. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4484. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4485. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  4486. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4487. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  4488. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4489. <exception name="IOException" type="java.io.IOException"/>
  4490. <doc>
  4491. <![CDATA[Copy file from src to dest. See
  4492. {@link #copy(Path, Path, boolean, boolean)}]]>
  4493. </doc>
  4494. </method>
  4495. <method name="copy" return="boolean"
  4496. abstract="false" native="false" synchronized="false"
  4497. static="false" final="false" visibility="public"
  4498. deprecated="not deprecated">
  4499. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4500. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4501. <param name="deleteSource" type="boolean"/>
  4502. <param name="overwrite" type="boolean"/>
  4503. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4504. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  4505. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4506. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  4507. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4508. <exception name="IOException" type="java.io.IOException"/>
  4509. <doc>
  4510. <![CDATA[Copy from src to dst, optionally deleting src and overwriting dst.
  4511. @param src
  4512. @param dst
  4513. @param deleteSource - delete src if true
  4514. @param overwrite overwrite dst if true; throw IOException if dst exists
  4515. and overwrite is false.
  4516. @return true if copy is successful
  4517. @throws AccessControlException If access is denied
  4518. @throws FileAlreadyExistsException If <code>dst</code> already exists
  4519. @throws FileNotFoundException If <code>src</code> does not exist
  4520. @throws ParentNotDirectoryException If parent of <code>dst</code> is not
  4521. a directory
  4522. @throws UnsupportedFileSystemException If file system for
  4523. <code>src</code> or <code>dst</code> is not supported
  4524. @throws IOException If an I/O error occurred
  4525. Exceptions applicable to file systems accessed over RPC:
  4526. @throws RpcClientException If an exception occurred in the RPC client
  4527. @throws RpcServerException If an exception occurred in the RPC server
  4528. @throws UnexpectedServerException If server implementation throws
  4529. undeclared exception to RPC server
  4530. RuntimeExceptions:
  4531. @throws InvalidPathException If path <code>dst</code> is invalid]]>
  4532. </doc>
  4533. </method>
  4534. <doc>
  4535. <![CDATA[Utility/library methods built over the basic FileContext methods.
  4536. Since this are library functions, the oprtation are not atomic
  4537. and some of them may partially complete if other threads are making
  4538. changes to the same part of the name space.]]>
  4539. </doc>
  4540. </class>
  4541. <!-- end class org.apache.hadoop.fs.FileContext.Util -->
  4542. <!-- start class org.apache.hadoop.fs.FileStatus -->
  4543. <class name="FileStatus" extends="java.lang.Object"
  4544. abstract="false"
  4545. static="false" final="false" visibility="public"
  4546. deprecated="not deprecated">
  4547. <implements name="org.apache.hadoop.io.Writable"/>
  4548. <implements name="java.lang.Comparable"/>
  4549. <constructor name="FileStatus"
  4550. static="false" final="false" visibility="public"
  4551. deprecated="not deprecated">
  4552. </constructor>
  4553. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  4554. static="false" final="false" visibility="public"
  4555. deprecated="not deprecated">
  4556. </constructor>
  4557. <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"
  4558. static="false" final="false" visibility="public"
  4559. deprecated="not deprecated">
  4560. <doc>
  4561. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  4562. </doc>
  4563. </constructor>
  4564. <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"
  4565. static="false" final="false" visibility="public"
  4566. deprecated="not deprecated">
  4567. </constructor>
  4568. <method name="getLen" return="long"
  4569. abstract="false" native="false" synchronized="false"
  4570. static="false" final="false" visibility="public"
  4571. deprecated="not deprecated">
  4572. <doc>
  4573. <![CDATA[Get the length of this file, in bytes.
  4574. @return the length of this file, in bytes.]]>
  4575. </doc>
  4576. </method>
  4577. <method name="isFile" return="boolean"
  4578. abstract="false" native="false" synchronized="false"
  4579. static="false" final="false" visibility="public"
  4580. deprecated="not deprecated">
  4581. <doc>
  4582. <![CDATA[Is this a file?
  4583. @return true if this is a file]]>
  4584. </doc>
  4585. </method>
  4586. <method name="isDirectory" return="boolean"
  4587. abstract="false" native="false" synchronized="false"
  4588. static="false" final="false" visibility="public"
  4589. deprecated="not deprecated">
  4590. <doc>
  4591. <![CDATA[Is this a directory?
  4592. @return true if this is a directory]]>
  4593. </doc>
  4594. </method>
  4595. <method name="isDir" return="boolean"
  4596. abstract="false" native="false" synchronized="false"
  4597. static="false" final="false" visibility="public"
  4598. deprecated="Use {@link FileStatus#isFile()},
  4599. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  4600. instead.">
  4601. <doc>
  4602. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  4603. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  4604. @return true if this is a directory.
  4605. @deprecated Use {@link FileStatus#isFile()},
  4606. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  4607. instead.]]>
  4608. </doc>
  4609. </method>
  4610. <method name="isSymlink" return="boolean"
  4611. abstract="false" native="false" synchronized="false"
  4612. static="false" final="false" visibility="public"
  4613. deprecated="not deprecated">
  4614. <doc>
  4615. <![CDATA[Is this a symbolic link?
  4616. @return true if this is a symbolic link]]>
  4617. </doc>
  4618. </method>
  4619. <method name="getBlockSize" return="long"
  4620. abstract="false" native="false" synchronized="false"
  4621. static="false" final="false" visibility="public"
  4622. deprecated="not deprecated">
  4623. <doc>
  4624. <![CDATA[Get the block size of the file.
  4625. @return the number of bytes]]>
  4626. </doc>
  4627. </method>
  4628. <method name="getReplication" return="short"
  4629. abstract="false" native="false" synchronized="false"
  4630. static="false" final="false" visibility="public"
  4631. deprecated="not deprecated">
  4632. <doc>
  4633. <![CDATA[Get the replication factor of a file.
  4634. @return the replication factor of a file.]]>
  4635. </doc>
  4636. </method>
  4637. <method name="getModificationTime" return="long"
  4638. abstract="false" native="false" synchronized="false"
  4639. static="false" final="false" visibility="public"
  4640. deprecated="not deprecated">
  4641. <doc>
  4642. <![CDATA[Get the modification time of the file.
  4643. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  4644. </doc>
  4645. </method>
  4646. <method name="getAccessTime" return="long"
  4647. abstract="false" native="false" synchronized="false"
  4648. static="false" final="false" visibility="public"
  4649. deprecated="not deprecated">
  4650. <doc>
  4651. <![CDATA[Get the access time of the file.
  4652. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  4653. </doc>
  4654. </method>
  4655. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  4656. abstract="false" native="false" synchronized="false"
  4657. static="false" final="false" visibility="public"
  4658. deprecated="not deprecated">
  4659. <doc>
  4660. <![CDATA[Get FsPermission associated with the file.
  4661. @return permssion. If a filesystem does not have a notion of permissions
  4662. or if permissions could not be determined, then default
  4663. permissions equivalent of "rwxrwxrwx" is returned.]]>
  4664. </doc>
  4665. </method>
  4666. <method name="getOwner" return="java.lang.String"
  4667. abstract="false" native="false" synchronized="false"
  4668. static="false" final="false" visibility="public"
  4669. deprecated="not deprecated">
  4670. <doc>
  4671. <![CDATA[Get the owner of the file.
  4672. @return owner of the file. The string could be empty if there is no
  4673. notion of owner of a file in a filesystem or if it could not
  4674. be determined (rare).]]>
  4675. </doc>
  4676. </method>
  4677. <method name="getGroup" return="java.lang.String"
  4678. abstract="false" native="false" synchronized="false"
  4679. static="false" final="false" visibility="public"
  4680. deprecated="not deprecated">
  4681. <doc>
  4682. <![CDATA[Get the group associated with the file.
  4683. @return group for the file. The string could be empty if there is no
  4684. notion of group of a file in a filesystem or if it could not
  4685. be determined (rare).]]>
  4686. </doc>
  4687. </method>
  4688. <method name="getPath" return="org.apache.hadoop.fs.Path"
  4689. abstract="false" native="false" synchronized="false"
  4690. static="false" final="false" visibility="public"
  4691. deprecated="not deprecated">
  4692. </method>
  4693. <method name="setPath"
  4694. abstract="false" native="false" synchronized="false"
  4695. static="false" final="false" visibility="public"
  4696. deprecated="not deprecated">
  4697. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4698. </method>
  4699. <method name="setPermission"
  4700. abstract="false" native="false" synchronized="false"
  4701. static="false" final="false" visibility="protected"
  4702. deprecated="not deprecated">
  4703. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4704. <doc>
  4705. <![CDATA[Sets permission.
  4706. @param permission if permission is null, default value is set]]>
  4707. </doc>
  4708. </method>
  4709. <method name="setOwner"
  4710. abstract="false" native="false" synchronized="false"
  4711. static="false" final="false" visibility="protected"
  4712. deprecated="not deprecated">
  4713. <param name="owner" type="java.lang.String"/>
  4714. <doc>
  4715. <![CDATA[Sets owner.
  4716. @param owner if it is null, default value is set]]>
  4717. </doc>
  4718. </method>
  4719. <method name="setGroup"
  4720. abstract="false" native="false" synchronized="false"
  4721. static="false" final="false" visibility="protected"
  4722. deprecated="not deprecated">
  4723. <param name="group" type="java.lang.String"/>
  4724. <doc>
  4725. <![CDATA[Sets group.
  4726. @param group if it is null, default value is set]]>
  4727. </doc>
  4728. </method>
  4729. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  4730. abstract="false" native="false" synchronized="false"
  4731. static="false" final="false" visibility="public"
  4732. deprecated="not deprecated">
  4733. <exception name="IOException" type="java.io.IOException"/>
  4734. <doc>
  4735. <![CDATA[@return The contents of the symbolic link.]]>
  4736. </doc>
  4737. </method>
  4738. <method name="setSymlink"
  4739. abstract="false" native="false" synchronized="false"
  4740. static="false" final="false" visibility="public"
  4741. deprecated="not deprecated">
  4742. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4743. </method>
  4744. <method name="write"
  4745. abstract="false" native="false" synchronized="false"
  4746. static="false" final="false" visibility="public"
  4747. deprecated="not deprecated">
  4748. <param name="out" type="java.io.DataOutput"/>
  4749. <exception name="IOException" type="java.io.IOException"/>
  4750. </method>
  4751. <method name="readFields"
  4752. abstract="false" native="false" synchronized="false"
  4753. static="false" final="false" visibility="public"
  4754. deprecated="not deprecated">
  4755. <param name="in" type="java.io.DataInput"/>
  4756. <exception name="IOException" type="java.io.IOException"/>
  4757. </method>
  4758. <method name="compareTo" return="int"
  4759. abstract="false" native="false" synchronized="false"
  4760. static="false" final="false" visibility="public"
  4761. deprecated="not deprecated">
  4762. <param name="o" type="java.lang.Object"/>
  4763. <doc>
  4764. <![CDATA[Compare this object to another object
  4765. @param o the object to be compared.
  4766. @return a negative integer, zero, or a positive integer as this object
  4767. is less than, equal to, or greater than the specified object.
  4768. @throws ClassCastException if the specified object's is not of
  4769. type FileStatus]]>
  4770. </doc>
  4771. </method>
  4772. <method name="equals" return="boolean"
  4773. abstract="false" native="false" synchronized="false"
  4774. static="false" final="false" visibility="public"
  4775. deprecated="not deprecated">
  4776. <param name="o" type="java.lang.Object"/>
  4777. <doc>
  4778. <![CDATA[Compare if this object is equal to another object
  4779. @param o the object to be compared.
  4780. @return true if two file status has the same path name; false if not.]]>
  4781. </doc>
  4782. </method>
  4783. <method name="hashCode" return="int"
  4784. abstract="false" native="false" synchronized="false"
  4785. static="false" final="false" visibility="public"
  4786. deprecated="not deprecated">
  4787. <doc>
  4788. <![CDATA[Returns a hash code value for the object, which is defined as
  4789. the hash code of the path name.
  4790. @return a hash code value for the path name.]]>
  4791. </doc>
  4792. </method>
  4793. <doc>
  4794. <![CDATA[Interface that represents the client side information for a file.]]>
  4795. </doc>
  4796. </class>
  4797. <!-- end class org.apache.hadoop.fs.FileStatus -->
  4798. <!-- start class org.apache.hadoop.fs.FileSystem -->
  4799. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  4800. abstract="true"
  4801. static="false" final="false" visibility="public"
  4802. deprecated="not deprecated">
  4803. <implements name="java.io.Closeable"/>
  4804. <constructor name="FileSystem"
  4805. static="false" final="false" visibility="protected"
  4806. deprecated="not deprecated">
  4807. </constructor>
  4808. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  4809. abstract="false" native="false" synchronized="false"
  4810. static="true" final="false" visibility="public"
  4811. deprecated="not deprecated">
  4812. <param name="uri" type="java.net.URI"/>
  4813. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4814. <param name="user" type="java.lang.String"/>
  4815. <exception name="IOException" type="java.io.IOException"/>
  4816. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4817. <doc>
  4818. <![CDATA[Get a filesystem instance based on the uri, the passed
  4819. configuration and the user
  4820. @param uri
  4821. @param conf
  4822. @param user
  4823. @return the filesystem instance
  4824. @throws IOException
  4825. @throws InterruptedException]]>
  4826. </doc>
  4827. </method>
  4828. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  4829. abstract="false" native="false" synchronized="false"
  4830. static="true" final="false" visibility="public"
  4831. deprecated="not deprecated">
  4832. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4833. <exception name="IOException" type="java.io.IOException"/>
  4834. <doc>
  4835. <![CDATA[Returns the configured filesystem implementation.]]>
  4836. </doc>
  4837. </method>
  4838. <method name="getDefaultUri" return="java.net.URI"
  4839. abstract="false" native="false" synchronized="false"
  4840. static="true" final="false" visibility="public"
  4841. deprecated="not deprecated">
  4842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4843. <doc>
  4844. <![CDATA[Get the default filesystem URI from a configuration.
  4845. @param conf the configuration to access
  4846. @return the uri of the default filesystem]]>
  4847. </doc>
  4848. </method>
  4849. <method name="setDefaultUri"
  4850. abstract="false" native="false" synchronized="false"
  4851. static="true" final="false" visibility="public"
  4852. deprecated="not deprecated">
  4853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4854. <param name="uri" type="java.net.URI"/>
  4855. <doc>
  4856. <![CDATA[Set the default filesystem URI in a configuration.
  4857. @param conf the configuration to alter
  4858. @param uri the new default filesystem uri]]>
  4859. </doc>
  4860. </method>
  4861. <method name="setDefaultUri"
  4862. abstract="false" native="false" synchronized="false"
  4863. static="true" final="false" visibility="public"
  4864. deprecated="not deprecated">
  4865. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4866. <param name="uri" type="java.lang.String"/>
  4867. <doc>
  4868. <![CDATA[Set the default filesystem URI in a configuration.
  4869. @param conf the configuration to alter
  4870. @param uri the new default filesystem uri]]>
  4871. </doc>
  4872. </method>
  4873. <method name="initialize"
  4874. abstract="false" native="false" synchronized="false"
  4875. static="false" final="false" visibility="public"
  4876. deprecated="not deprecated">
  4877. <param name="name" type="java.net.URI"/>
  4878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4879. <exception name="IOException" type="java.io.IOException"/>
  4880. <doc>
  4881. <![CDATA[Called after a new FileSystem instance is constructed.
  4882. @param name a uri whose authority section names the host, port, etc.
  4883. for this FileSystem
  4884. @param conf the configuration]]>
  4885. </doc>
  4886. </method>
  4887. <method name="getUri" return="java.net.URI"
  4888. abstract="true" native="false" synchronized="false"
  4889. static="false" final="false" visibility="public"
  4890. deprecated="not deprecated">
  4891. <doc>
  4892. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4893. </doc>
  4894. </method>
  4895. <method name="getDefaultPort" return="int"
  4896. abstract="false" native="false" synchronized="false"
  4897. static="false" final="false" visibility="protected"
  4898. deprecated="not deprecated">
  4899. <doc>
  4900. <![CDATA[Get the default port for this file system.
  4901. @return the default port or 0 if there isn't one]]>
  4902. </doc>
  4903. </method>
  4904. <method name="getCanonicalServiceName" return="java.lang.String"
  4905. abstract="false" native="false" synchronized="false"
  4906. static="false" final="false" visibility="public"
  4907. deprecated="not deprecated">
  4908. <doc>
  4909. <![CDATA[Get a canonical name for this file system.
  4910. @return a URI string that uniquely identifies this file system]]>
  4911. </doc>
  4912. </method>
  4913. <method name="getName" return="java.lang.String"
  4914. abstract="false" native="false" synchronized="false"
  4915. static="false" final="false" visibility="public"
  4916. deprecated="call #getUri() instead.">
  4917. <doc>
  4918. <![CDATA[@deprecated call #getUri() instead.]]>
  4919. </doc>
  4920. </method>
  4921. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  4922. abstract="false" native="false" synchronized="false"
  4923. static="true" final="false" visibility="public"
  4924. deprecated="call #get(URI,Configuration) instead.">
  4925. <param name="name" type="java.lang.String"/>
  4926. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4927. <exception name="IOException" type="java.io.IOException"/>
  4928. <doc>
  4929. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  4930. </doc>
  4931. </method>
  4932. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  4933. abstract="false" native="false" synchronized="false"
  4934. static="true" final="false" visibility="public"
  4935. deprecated="not deprecated">
  4936. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4937. <exception name="IOException" type="java.io.IOException"/>
  4938. <doc>
  4939. <![CDATA[Get the local file system.
  4940. @param conf the configuration to configure the file system with
  4941. @return a LocalFileSystem]]>
  4942. </doc>
  4943. </method>
  4944. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  4945. abstract="false" native="false" synchronized="false"
  4946. static="true" final="false" visibility="public"
  4947. deprecated="not deprecated">
  4948. <param name="uri" type="java.net.URI"/>
  4949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4950. <exception name="IOException" type="java.io.IOException"/>
  4951. <doc>
  4952. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  4953. of the URI determines a configuration property name,
  4954. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  4955. The entire URI is passed to the FileSystem instance's initialize method.]]>
  4956. </doc>
  4957. </method>
  4958. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  4959. abstract="false" native="false" synchronized="false"
  4960. static="true" final="false" visibility="public"
  4961. deprecated="not deprecated">
  4962. <param name="uri" type="java.net.URI"/>
  4963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4964. <param name="user" type="java.lang.String"/>
  4965. <exception name="IOException" type="java.io.IOException"/>
  4966. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4967. <doc>
  4968. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  4969. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  4970. @param uri
  4971. @param conf
  4972. @param user
  4973. @return filesystem instance
  4974. @throws IOException
  4975. @throws InterruptedException]]>
  4976. </doc>
  4977. </method>
  4978. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  4979. abstract="false" native="false" synchronized="false"
  4980. static="true" final="false" visibility="public"
  4981. deprecated="not deprecated">
  4982. <param name="uri" type="java.net.URI"/>
  4983. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4984. <exception name="IOException" type="java.io.IOException"/>
  4985. <doc>
  4986. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  4987. of the URI determines a configuration property name,
  4988. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  4989. The entire URI is passed to the FileSystem instance's initialize method.
  4990. This always returns a new FileSystem object.]]>
  4991. </doc>
  4992. </method>
  4993. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  4994. abstract="false" native="false" synchronized="false"
  4995. static="true" final="false" visibility="public"
  4996. deprecated="not deprecated">
  4997. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4998. <exception name="IOException" type="java.io.IOException"/>
  4999. <doc>
  5000. <![CDATA[Returns a unique configured filesystem implementation.
  5001. This always returns a new FileSystem object.]]>
  5002. </doc>
  5003. </method>
  5004. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  5005. abstract="false" native="false" synchronized="false"
  5006. static="true" final="false" visibility="public"
  5007. deprecated="not deprecated">
  5008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5009. <exception name="IOException" type="java.io.IOException"/>
  5010. <doc>
  5011. <![CDATA[Get a unique local file system object
  5012. @param conf the configuration to configure the file system with
  5013. @return a LocalFileSystem
  5014. This always returns a new FileSystem object.]]>
  5015. </doc>
  5016. </method>
  5017. <method name="closeAll"
  5018. abstract="false" native="false" synchronized="false"
  5019. static="true" final="false" visibility="public"
  5020. deprecated="not deprecated">
  5021. <exception name="IOException" type="java.io.IOException"/>
  5022. <doc>
  5023. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  5024. used anymore.
  5025. @throws IOException]]>
  5026. </doc>
  5027. </method>
  5028. <method name="closeAllForUGI"
  5029. abstract="false" native="false" synchronized="false"
  5030. static="true" final="false" visibility="public"
  5031. deprecated="not deprecated">
  5032. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  5033. <exception name="IOException" type="java.io.IOException"/>
  5034. <doc>
  5035. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  5036. are not used anymore.
  5037. @param ugi
  5038. @throws IOException]]>
  5039. </doc>
  5040. </method>
  5041. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5042. abstract="false" native="false" synchronized="false"
  5043. static="false" final="false" visibility="public"
  5044. deprecated="not deprecated">
  5045. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5046. <doc>
  5047. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  5048. </doc>
  5049. </method>
  5050. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  5051. abstract="false" native="false" synchronized="false"
  5052. static="false" final="false" visibility="public"
  5053. deprecated="not deprecated">
  5054. <param name="renewer" type="java.lang.String"/>
  5055. <exception name="IOException" type="java.io.IOException"/>
  5056. <doc>
  5057. <![CDATA[Get a new delegation token for this file system.
  5058. @param renewer the account name that is allowed to renew the token.
  5059. @return a new delegation token
  5060. @throws IOException]]>
  5061. </doc>
  5062. </method>
  5063. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5064. abstract="false" native="false" synchronized="false"
  5065. static="true" final="false" visibility="public"
  5066. deprecated="not deprecated">
  5067. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5068. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5069. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5070. <exception name="IOException" type="java.io.IOException"/>
  5071. <doc>
  5072. <![CDATA[create a file with the provided permission
  5073. The permission of the file is set to be the provided permission as in
  5074. setPermission, not permission&~umask
  5075. It is implemented using two RPCs. It is understood that it is inefficient,
  5076. but the implementation is thread-safe. The other option is to change the
  5077. value of umask in configuration to be 0, but it is not thread-safe.
  5078. @param fs file system handle
  5079. @param file the name of the file to be created
  5080. @param permission the permission of the file
  5081. @return an output stream
  5082. @throws IOException]]>
  5083. </doc>
  5084. </method>
  5085. <method name="mkdirs" return="boolean"
  5086. abstract="false" native="false" synchronized="false"
  5087. static="true" final="false" visibility="public"
  5088. deprecated="not deprecated">
  5089. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5090. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  5091. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5092. <exception name="IOException" type="java.io.IOException"/>
  5093. <doc>
  5094. <![CDATA[create a directory with the provided permission
  5095. The permission of the directory is set to be the provided permission as in
  5096. setPermission, not permission&~umask
  5097. @see #create(FileSystem, Path, FsPermission)
  5098. @param fs file system handle
  5099. @param dir the name of the directory to be created
  5100. @param permission the permission of the directory
  5101. @return true if the directory creation succeeds; false otherwise
  5102. @throws IOException]]>
  5103. </doc>
  5104. </method>
  5105. <method name="checkPath"
  5106. abstract="false" native="false" synchronized="false"
  5107. static="false" final="false" visibility="protected"
  5108. deprecated="not deprecated">
  5109. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5110. <doc>
  5111. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  5112. </doc>
  5113. </method>
  5114. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5115. abstract="false" native="false" synchronized="false"
  5116. static="false" final="false" visibility="public"
  5117. deprecated="not deprecated">
  5118. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5119. <param name="start" type="long"/>
  5120. <param name="len" type="long"/>
  5121. <exception name="IOException" type="java.io.IOException"/>
  5122. <doc>
  5123. <![CDATA[Return an array containing hostnames, offset and size of
  5124. portions of the given file. For a nonexistent
  5125. file or regions, null will be returned.
  5126. This call is most helpful with DFS, where it returns
  5127. hostnames of machines that contain the given file.
  5128. The FileSystem will simply return an elt containing 'localhost'.]]>
  5129. </doc>
  5130. </method>
  5131. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5132. abstract="false" native="false" synchronized="false"
  5133. static="false" final="false" visibility="public"
  5134. deprecated="not deprecated">
  5135. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5136. <param name="start" type="long"/>
  5137. <param name="len" type="long"/>
  5138. <exception name="IOException" type="java.io.IOException"/>
  5139. <doc>
  5140. <![CDATA[Return an array containing hostnames, offset and size of
  5141. portions of the given file. For a nonexistent
  5142. file or regions, null will be returned.
  5143. This call is most helpful with DFS, where it returns
  5144. hostnames of machines that contain the given file.
  5145. The FileSystem will simply return an elt containing 'localhost'.]]>
  5146. </doc>
  5147. </method>
  5148. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  5149. abstract="false" native="false" synchronized="false"
  5150. static="false" final="false" visibility="public"
  5151. deprecated="not deprecated">
  5152. <exception name="IOException" type="java.io.IOException"/>
  5153. <doc>
  5154. <![CDATA[Return a set of server default configuration values
  5155. @return server default configuration values
  5156. @throws IOException]]>
  5157. </doc>
  5158. </method>
  5159. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5160. abstract="true" native="false" synchronized="false"
  5161. static="false" final="false" visibility="public"
  5162. deprecated="not deprecated">
  5163. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5164. <param name="bufferSize" type="int"/>
  5165. <exception name="IOException" type="java.io.IOException"/>
  5166. <doc>
  5167. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  5168. @param f the file name to open
  5169. @param bufferSize the size of the buffer to be used.]]>
  5170. </doc>
  5171. </method>
  5172. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5173. abstract="false" native="false" synchronized="false"
  5174. static="false" final="false" visibility="public"
  5175. deprecated="not deprecated">
  5176. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5177. <exception name="IOException" type="java.io.IOException"/>
  5178. <doc>
  5179. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  5180. @param f the file to open]]>
  5181. </doc>
  5182. </method>
  5183. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5184. abstract="false" native="false" synchronized="false"
  5185. static="false" final="false" visibility="public"
  5186. deprecated="not deprecated">
  5187. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5188. <exception name="IOException" type="java.io.IOException"/>
  5189. <doc>
  5190. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  5191. Files are overwritten by default.]]>
  5192. </doc>
  5193. </method>
  5194. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5195. abstract="false" native="false" synchronized="false"
  5196. static="false" final="false" visibility="public"
  5197. deprecated="not deprecated">
  5198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5199. <param name="overwrite" type="boolean"/>
  5200. <exception name="IOException" type="java.io.IOException"/>
  5201. <doc>
  5202. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  5203. </doc>
  5204. </method>
  5205. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5206. abstract="false" native="false" synchronized="false"
  5207. static="false" final="false" visibility="public"
  5208. deprecated="not deprecated">
  5209. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5210. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5211. <exception name="IOException" type="java.io.IOException"/>
  5212. <doc>
  5213. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  5214. reporting.
  5215. Files are overwritten by default.]]>
  5216. </doc>
  5217. </method>
  5218. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5219. abstract="false" native="false" synchronized="false"
  5220. static="false" final="false" visibility="public"
  5221. deprecated="not deprecated">
  5222. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5223. <param name="replication" type="short"/>
  5224. <exception name="IOException" type="java.io.IOException"/>
  5225. <doc>
  5226. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  5227. Files are overwritten by default.]]>
  5228. </doc>
  5229. </method>
  5230. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5231. abstract="false" native="false" synchronized="false"
  5232. static="false" final="false" visibility="public"
  5233. deprecated="not deprecated">
  5234. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5235. <param name="replication" type="short"/>
  5236. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5237. <exception name="IOException" type="java.io.IOException"/>
  5238. <doc>
  5239. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  5240. reporting.
  5241. Files are overwritten by default.]]>
  5242. </doc>
  5243. </method>
  5244. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5245. abstract="false" native="false" synchronized="false"
  5246. static="false" final="false" visibility="public"
  5247. deprecated="not deprecated">
  5248. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5249. <param name="overwrite" type="boolean"/>
  5250. <param name="bufferSize" type="int"/>
  5251. <exception name="IOException" type="java.io.IOException"/>
  5252. <doc>
  5253. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  5254. @param f the file name to open
  5255. @param overwrite if a file with this name already exists, then if true,
  5256. the file will be overwritten, and if false an error will be thrown.
  5257. @param bufferSize the size of the buffer to be used.]]>
  5258. </doc>
  5259. </method>
  5260. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5261. abstract="false" native="false" synchronized="false"
  5262. static="false" final="false" visibility="public"
  5263. deprecated="not deprecated">
  5264. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5265. <param name="overwrite" type="boolean"/>
  5266. <param name="bufferSize" type="int"/>
  5267. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5268. <exception name="IOException" type="java.io.IOException"/>
  5269. <doc>
  5270. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  5271. reporting.
  5272. @param f the file name to open
  5273. @param overwrite if a file with this name already exists, then if true,
  5274. the file will be overwritten, and if false an error will be thrown.
  5275. @param bufferSize the size of the buffer to be used.]]>
  5276. </doc>
  5277. </method>
  5278. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5279. abstract="false" native="false" synchronized="false"
  5280. static="false" final="false" visibility="public"
  5281. deprecated="not deprecated">
  5282. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5283. <param name="overwrite" type="boolean"/>
  5284. <param name="bufferSize" type="int"/>
  5285. <param name="replication" type="short"/>
  5286. <param name="blockSize" type="long"/>
  5287. <exception name="IOException" type="java.io.IOException"/>
  5288. <doc>
  5289. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  5290. @param f the file name to open
  5291. @param overwrite if a file with this name already exists, then if true,
  5292. the file will be overwritten, and if false an error will be thrown.
  5293. @param bufferSize the size of the buffer to be used.
  5294. @param replication required block replication for the file.]]>
  5295. </doc>
  5296. </method>
  5297. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5298. abstract="false" native="false" synchronized="false"
  5299. static="false" final="false" visibility="public"
  5300. deprecated="not deprecated">
  5301. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5302. <param name="overwrite" type="boolean"/>
  5303. <param name="bufferSize" type="int"/>
  5304. <param name="replication" type="short"/>
  5305. <param name="blockSize" type="long"/>
  5306. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5307. <exception name="IOException" type="java.io.IOException"/>
  5308. <doc>
  5309. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  5310. reporting.
  5311. @param f the file name to open
  5312. @param overwrite if a file with this name already exists, then if true,
  5313. the file will be overwritten, and if false an error will be thrown.
  5314. @param bufferSize the size of the buffer to be used.
  5315. @param replication required block replication for the file.]]>
  5316. </doc>
  5317. </method>
  5318. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5319. abstract="true" native="false" synchronized="false"
  5320. static="false" final="false" visibility="public"
  5321. deprecated="not deprecated">
  5322. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5323. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5324. <param name="overwrite" type="boolean"/>
  5325. <param name="bufferSize" type="int"/>
  5326. <param name="replication" type="short"/>
  5327. <param name="blockSize" type="long"/>
  5328. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5329. <exception name="IOException" type="java.io.IOException"/>
  5330. <doc>
  5331. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  5332. reporting.
  5333. @param f the file name to open
  5334. @param permission
  5335. @param overwrite if a file with this name already exists, then if true,
  5336. the file will be overwritten, and if false an error will be thrown.
  5337. @param bufferSize the size of the buffer to be used.
  5338. @param replication required block replication for the file.
  5339. @param blockSize
  5340. @param progress
  5341. @throws IOException
  5342. @see #setPermission(Path, FsPermission)]]>
  5343. </doc>
  5344. </method>
  5345. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  5346. abstract="false" native="false" synchronized="false"
  5347. static="false" final="false" visibility="protected"
  5348. deprecated="not deprecated">
  5349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5350. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5351. <param name="flag" type="java.util.EnumSet"/>
  5352. <param name="bufferSize" type="int"/>
  5353. <param name="replication" type="short"/>
  5354. <param name="blockSize" type="long"/>
  5355. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5356. <param name="bytesPerChecksum" type="int"/>
  5357. <exception name="IOException" type="java.io.IOException"/>
  5358. </method>
  5359. <method name="primitiveMkdir" return="boolean"
  5360. abstract="false" native="false" synchronized="false"
  5361. static="false" final="false" visibility="protected"
  5362. deprecated="not deprecated">
  5363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5364. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5365. <exception name="IOException" type="java.io.IOException"/>
  5366. <doc>
  5367. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  5368. It has been added to support the FileContext that processes the permission
  5369. with umask before calling this method.
  5370. This a temporary method added to support the transition from FileSystem
  5371. to FileContext for user applications.]]>
  5372. </doc>
  5373. </method>
  5374. <method name="primitiveMkdir"
  5375. abstract="false" native="false" synchronized="false"
  5376. static="false" final="false" visibility="protected"
  5377. deprecated="not deprecated">
  5378. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5379. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5380. <param name="createParent" type="boolean"/>
  5381. <exception name="IOException" type="java.io.IOException"/>
  5382. <doc>
  5383. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  5384. It has been added to support the FileContext that processes the permission
  5385. with umask before calling this method.
  5386. This a temporary method added to support the transition from FileSystem
  5387. to FileContext for user applications.]]>
  5388. </doc>
  5389. </method>
  5390. <method name="createNewFile" return="boolean"
  5391. abstract="false" native="false" synchronized="false"
  5392. static="false" final="false" visibility="public"
  5393. deprecated="not deprecated">
  5394. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5395. <exception name="IOException" type="java.io.IOException"/>
  5396. <doc>
  5397. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  5398. create fails, or if it already existed, return false.]]>
  5399. </doc>
  5400. </method>
  5401. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5402. abstract="false" native="false" synchronized="false"
  5403. static="false" final="false" visibility="public"
  5404. deprecated="not deprecated">
  5405. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5406. <exception name="IOException" type="java.io.IOException"/>
  5407. <doc>
  5408. <![CDATA[Append to an existing file (optional operation).
  5409. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  5410. @param f the existing file to be appended.
  5411. @throws IOException]]>
  5412. </doc>
  5413. </method>
  5414. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5415. abstract="false" native="false" synchronized="false"
  5416. static="false" final="false" visibility="public"
  5417. deprecated="not deprecated">
  5418. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5419. <param name="bufferSize" type="int"/>
  5420. <exception name="IOException" type="java.io.IOException"/>
  5421. <doc>
  5422. <![CDATA[Append to an existing file (optional operation).
  5423. Same as append(f, bufferSize, null).
  5424. @param f the existing file to be appended.
  5425. @param bufferSize the size of the buffer to be used.
  5426. @throws IOException]]>
  5427. </doc>
  5428. </method>
  5429. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5430. abstract="true" native="false" synchronized="false"
  5431. static="false" final="false" visibility="public"
  5432. deprecated="not deprecated">
  5433. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5434. <param name="bufferSize" type="int"/>
  5435. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5436. <exception name="IOException" type="java.io.IOException"/>
  5437. <doc>
  5438. <![CDATA[Append to an existing file (optional operation).
  5439. @param f the existing file to be appended.
  5440. @param bufferSize the size of the buffer to be used.
  5441. @param progress for reporting progress if it is not null.
  5442. @throws IOException]]>
  5443. </doc>
  5444. </method>
  5445. <method name="getReplication" return="short"
  5446. abstract="false" native="false" synchronized="false"
  5447. static="false" final="false" visibility="public"
  5448. deprecated="Use getFileStatus() instead">
  5449. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5450. <exception name="IOException" type="java.io.IOException"/>
  5451. <doc>
  5452. <![CDATA[Get replication.
  5453. @deprecated Use getFileStatus() instead
  5454. @param src file name
  5455. @return file replication
  5456. @throws IOException]]>
  5457. </doc>
  5458. </method>
  5459. <method name="setReplication" return="boolean"
  5460. abstract="false" native="false" synchronized="false"
  5461. static="false" final="false" visibility="public"
  5462. deprecated="not deprecated">
  5463. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5464. <param name="replication" type="short"/>
  5465. <exception name="IOException" type="java.io.IOException"/>
  5466. <doc>
  5467. <![CDATA[Set replication for an existing file.
  5468. @param src file name
  5469. @param replication new replication
  5470. @throws IOException
  5471. @return true if successful;
  5472. false if file does not exist or is a directory]]>
  5473. </doc>
  5474. </method>
  5475. <method name="rename" return="boolean"
  5476. abstract="true" native="false" synchronized="false"
  5477. static="false" final="false" visibility="public"
  5478. deprecated="not deprecated">
  5479. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5480. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5481. <exception name="IOException" type="java.io.IOException"/>
  5482. <doc>
  5483. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  5484. or remote DFS.
  5485. @throws IOException on failure
  5486. @return true if rename is successful]]>
  5487. </doc>
  5488. </method>
  5489. <method name="rename"
  5490. abstract="false" native="false" synchronized="false"
  5491. static="false" final="false" visibility="protected"
  5492. deprecated="not deprecated">
  5493. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5494. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5495. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  5496. <exception name="IOException" type="java.io.IOException"/>
  5497. <doc>
  5498. <![CDATA[Renames Path src to Path dst
  5499. <ul>
  5500. <li
  5501. <li>Fails if src is a file and dst is a directory.
  5502. <li>Fails if src is a directory and dst is a file.
  5503. <li>Fails if the parent of dst does not exist or is a file.
  5504. </ul>
  5505. <p>
  5506. If OVERWRITE option is not passed as an argument, rename fails
  5507. if the dst already exists.
  5508. <p>
  5509. If OVERWRITE option is passed as an argument, rename overwrites
  5510. the dst if it is a file or an empty directory. Rename fails if dst is
  5511. a non-empty directory.
  5512. <p>
  5513. Note that atomicity of rename is dependent on the file system
  5514. implementation. Please refer to the file system documentation for
  5515. details. This default implementation is non atomic.
  5516. <p>
  5517. This method is deprecated since it is a temporary method added to
  5518. support the transition from FileSystem to FileContext for user
  5519. applications.
  5520. @param src path to be renamed
  5521. @param dst new path after rename
  5522. @throws IOException on failure]]>
  5523. </doc>
  5524. </method>
  5525. <method name="delete" return="boolean"
  5526. abstract="false" native="false" synchronized="false"
  5527. static="false" final="false" visibility="public"
  5528. deprecated="Use {@link #delete(Path, boolean)} instead.">
  5529. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5530. <exception name="IOException" type="java.io.IOException"/>
  5531. <doc>
  5532. <![CDATA[Delete a file
  5533. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  5534. </doc>
  5535. </method>
  5536. <method name="delete" return="boolean"
  5537. abstract="true" native="false" synchronized="false"
  5538. static="false" final="false" visibility="public"
  5539. deprecated="not deprecated">
  5540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5541. <param name="recursive" type="boolean"/>
  5542. <exception name="IOException" type="java.io.IOException"/>
  5543. <doc>
  5544. <![CDATA[Delete a file.
  5545. @param f the path to delete.
  5546. @param recursive if path is a directory and set to
  5547. true, the directory is deleted else throws an exception. In
  5548. case of a file the recursive can be set to either true or false.
  5549. @return true if delete is successful else false.
  5550. @throws IOException]]>
  5551. </doc>
  5552. </method>
  5553. <method name="deleteOnExit" return="boolean"
  5554. abstract="false" native="false" synchronized="false"
  5555. static="false" final="false" visibility="public"
  5556. deprecated="not deprecated">
  5557. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5558. <exception name="IOException" type="java.io.IOException"/>
  5559. <doc>
  5560. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  5561. When the JVM shuts down,
  5562. all FileSystem objects will be closed automatically.
  5563. Then,
  5564. the marked path will be deleted as a result of closing the FileSystem.
  5565. The path has to exist in the file system.
  5566. @param f the path to delete.
  5567. @return true if deleteOnExit is successful, otherwise false.
  5568. @throws IOException]]>
  5569. </doc>
  5570. </method>
  5571. <method name="processDeleteOnExit"
  5572. abstract="false" native="false" synchronized="false"
  5573. static="false" final="false" visibility="protected"
  5574. deprecated="not deprecated">
  5575. <doc>
  5576. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  5577. deletes all files in the specified paths.]]>
  5578. </doc>
  5579. </method>
  5580. <method name="exists" return="boolean"
  5581. abstract="false" native="false" synchronized="false"
  5582. static="false" final="false" visibility="public"
  5583. deprecated="not deprecated">
  5584. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5585. <exception name="IOException" type="java.io.IOException"/>
  5586. <doc>
  5587. <![CDATA[Check if exists.
  5588. @param f source file]]>
  5589. </doc>
  5590. </method>
  5591. <method name="isDirectory" return="boolean"
  5592. abstract="false" native="false" synchronized="false"
  5593. static="false" final="false" visibility="public"
  5594. deprecated="not deprecated">
  5595. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5596. <exception name="IOException" type="java.io.IOException"/>
  5597. <doc>
  5598. <![CDATA[True iff the named path is a directory.
  5599. Note: Avoid using this method. Instead reuse the FileStatus
  5600. returned by getFileStatus() or listStatus() methods.]]>
  5601. </doc>
  5602. </method>
  5603. <method name="isFile" return="boolean"
  5604. abstract="false" native="false" synchronized="false"
  5605. static="false" final="false" visibility="public"
  5606. deprecated="not deprecated">
  5607. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5608. <exception name="IOException" type="java.io.IOException"/>
  5609. <doc>
  5610. <![CDATA[True iff the named path is a regular file.
  5611. Note: Avoid using this method. Instead reuse the FileStatus
  5612. returned by getFileStatus() or listStatus() methods.]]>
  5613. </doc>
  5614. </method>
  5615. <method name="getLength" return="long"
  5616. abstract="false" native="false" synchronized="false"
  5617. static="false" final="false" visibility="public"
  5618. deprecated="Use getFileStatus() instead">
  5619. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5620. <exception name="IOException" type="java.io.IOException"/>
  5621. <doc>
  5622. <![CDATA[@deprecated Use getFileStatus() instead]]>
  5623. </doc>
  5624. </method>
  5625. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  5626. abstract="false" native="false" synchronized="false"
  5627. static="false" final="false" visibility="public"
  5628. deprecated="not deprecated">
  5629. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5630. <exception name="IOException" type="java.io.IOException"/>
  5631. <doc>
  5632. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  5633. </doc>
  5634. </method>
  5635. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5636. abstract="true" native="false" synchronized="false"
  5637. static="false" final="false" visibility="public"
  5638. deprecated="not deprecated">
  5639. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5640. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5641. <exception name="IOException" type="java.io.IOException"/>
  5642. <doc>
  5643. <![CDATA[List the statuses of the files/directories in the given path if the path is
  5644. a directory.
  5645. @param f given path
  5646. @return the statuses of the files/directories in the given patch
  5647. @throws FileNotFoundException when the path does not exist;
  5648. IOException see specific implementation]]>
  5649. </doc>
  5650. </method>
  5651. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5652. abstract="false" native="false" synchronized="false"
  5653. static="false" final="false" visibility="public"
  5654. deprecated="not deprecated">
  5655. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5656. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5657. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5658. <exception name="IOException" type="java.io.IOException"/>
  5659. <doc>
  5660. <![CDATA[Filter files/directories in the given path using the user-supplied path
  5661. filter.
  5662. @param f
  5663. a path name
  5664. @param filter
  5665. the user-supplied path filter
  5666. @return an array of FileStatus objects for the files under the given path
  5667. after applying the filter
  5668. @throws FileNotFoundException when the path does not exist;
  5669. IOException see specific implementation]]>
  5670. </doc>
  5671. </method>
  5672. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5673. abstract="false" native="false" synchronized="false"
  5674. static="false" final="false" visibility="public"
  5675. deprecated="not deprecated">
  5676. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  5677. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5678. <exception name="IOException" type="java.io.IOException"/>
  5679. <doc>
  5680. <![CDATA[Filter files/directories in the given list of paths using default
  5681. path filter.
  5682. @param files
  5683. a list of paths
  5684. @return a list of statuses for the files under the given paths after
  5685. applying the filter default Path filter
  5686. @throws FileNotFoundException when the path does not exist;
  5687. IOException see specific implementation]]>
  5688. </doc>
  5689. </method>
  5690. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5691. abstract="false" native="false" synchronized="false"
  5692. static="false" final="false" visibility="public"
  5693. deprecated="not deprecated">
  5694. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  5695. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5696. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5697. <exception name="IOException" type="java.io.IOException"/>
  5698. <doc>
  5699. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  5700. path filter.
  5701. @param files
  5702. a list of paths
  5703. @param filter
  5704. the user-supplied path filter
  5705. @return a list of statuses for the files under the given paths after
  5706. applying the filter
  5707. @throws FileNotFoundException when the path does not exist;
  5708. IOException see specific implementation]]>
  5709. </doc>
  5710. </method>
  5711. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5712. abstract="false" native="false" synchronized="false"
  5713. static="false" final="false" visibility="public"
  5714. deprecated="not deprecated">
  5715. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  5716. <exception name="IOException" type="java.io.IOException"/>
  5717. <doc>
  5718. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  5719. files. Results are sorted by their names.
  5720. <p>
  5721. A filename pattern is composed of <i>regular</i> characters and
  5722. <i>special pattern matching</i> characters, which are:
  5723. <dl>
  5724. <dd>
  5725. <dl>
  5726. <p>
  5727. <dt> <tt> ? </tt>
  5728. <dd> Matches any single character.
  5729. <p>
  5730. <dt> <tt> * </tt>
  5731. <dd> Matches zero or more characters.
  5732. <p>
  5733. <dt> <tt> [<i>abc</i>] </tt>
  5734. <dd> Matches a single character from character set
  5735. <tt>{<i>a,b,c</i>}</tt>.
  5736. <p>
  5737. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  5738. <dd> Matches a single character from the character range
  5739. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  5740. lexicographically less than or equal to character <tt><i>b</i></tt>.
  5741. <p>
  5742. <dt> <tt> [^<i>a</i>] </tt>
  5743. <dd> Matches a single character that is not from character set or range
  5744. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  5745. immediately to the right of the opening bracket.
  5746. <p>
  5747. <dt> <tt> \<i>c</i> </tt>
  5748. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  5749. <p>
  5750. <dt> <tt> {ab,cd} </tt>
  5751. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  5752. <p>
  5753. <dt> <tt> {ab,c{de,fh}} </tt>
  5754. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  5755. </dl>
  5756. </dd>
  5757. </dl>
  5758. @param pathPattern a regular expression specifying a pth pattern
  5759. @return an array of paths that match the path pattern
  5760. @throws IOException]]>
  5761. </doc>
  5762. </method>
  5763. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5764. abstract="false" native="false" synchronized="false"
  5765. static="false" final="false" visibility="public"
  5766. deprecated="not deprecated">
  5767. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  5768. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5769. <exception name="IOException" type="java.io.IOException"/>
  5770. <doc>
  5771. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  5772. and is accepted by the user-supplied path filter. Results are sorted by
  5773. their path names.
  5774. Return null if pathPattern has no glob and the path does not exist.
  5775. Return an empty array if pathPattern has a glob and no path matches it.
  5776. @param pathPattern
  5777. a regular expression specifying the path pattern
  5778. @param filter
  5779. a user-supplied path filter
  5780. @return an array of FileStatus objects
  5781. @throws IOException if any I/O error occurs when fetching file status]]>
  5782. </doc>
  5783. </method>
  5784. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  5785. abstract="false" native="false" synchronized="false"
  5786. static="false" final="false" visibility="public"
  5787. deprecated="not deprecated">
  5788. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5789. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5790. <exception name="IOException" type="java.io.IOException"/>
  5791. <doc>
  5792. <![CDATA[List the statuses of the files/directories in the given path if the path is
  5793. a directory.
  5794. Return the file's status and block locations If the path is a file.
  5795. If a returned status is a file, it contains the file's block locations.
  5796. @param f is the path
  5797. @return an iterator that traverses statuses of the files/directories
  5798. in the given path
  5799. @throws FileNotFoundException If <code>f</code> does not exist
  5800. @throws IOException If an I/O error occurred]]>
  5801. </doc>
  5802. </method>
  5803. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  5804. abstract="false" native="false" synchronized="false"
  5805. static="false" final="false" visibility="protected"
  5806. deprecated="not deprecated">
  5807. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5808. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5809. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5810. <exception name="IOException" type="java.io.IOException"/>
  5811. <doc>
  5812. <![CDATA[Listing a directory
  5813. The returned results include its block location if it is a file
  5814. The results are filtered by the given path filter
  5815. @param f a path
  5816. @param filter a path filter
  5817. @return an iterator that traverses statuses of the files/directories
  5818. in the given path
  5819. @throws FileNotFoundException if <code>f</code> does not exist
  5820. @throws IOException if any I/O error occurred]]>
  5821. </doc>
  5822. </method>
  5823. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  5824. abstract="false" native="false" synchronized="false"
  5825. static="false" final="false" visibility="public"
  5826. deprecated="not deprecated">
  5827. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5828. <param name="recursive" type="boolean"/>
  5829. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5830. <exception name="IOException" type="java.io.IOException"/>
  5831. <doc>
  5832. <![CDATA[List the statuses and block locations of the files in the given path.
  5833. If the path is a directory,
  5834. if recursive is false, returns files in the directory;
  5835. if recursive is true, return files in the subtree rooted at the path.
  5836. If the path is a file, return the file's status and block locations.
  5837. @param f is the path
  5838. @param recursive if the subdirectories need to be traversed recursively
  5839. @return an iterator that traverses statuses of the files
  5840. @throws FileNotFoundException when the path does not exist;
  5841. IOException see specific implementation]]>
  5842. </doc>
  5843. </method>
  5844. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5845. abstract="false" native="false" synchronized="false"
  5846. static="false" final="false" visibility="public"
  5847. deprecated="not deprecated">
  5848. <doc>
  5849. <![CDATA[Return the current user's home directory in this filesystem.
  5850. The default implementation returns "/user/$USER/".]]>
  5851. </doc>
  5852. </method>
  5853. <method name="setWorkingDirectory"
  5854. abstract="true" native="false" synchronized="false"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  5858. <doc>
  5859. <![CDATA[Set the current working directory for the given file system. All relative
  5860. paths will be resolved relative to it.
  5861. @param new_dir]]>
  5862. </doc>
  5863. </method>
  5864. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5865. abstract="true" native="false" synchronized="false"
  5866. static="false" final="false" visibility="public"
  5867. deprecated="not deprecated">
  5868. <doc>
  5869. <![CDATA[Get the current working directory for the given file system
  5870. @return the directory pathname]]>
  5871. </doc>
  5872. </method>
  5873. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5874. abstract="false" native="false" synchronized="false"
  5875. static="false" final="false" visibility="protected"
  5876. deprecated="not deprecated">
  5877. <doc>
  5878. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  5879. will be removed.
  5880. The working directory is implemented in FilesContext.
  5881. Some file systems like LocalFileSystem have an initial workingDir
  5882. that we use as the starting workingDir. For other file systems
  5883. like HDFS there is no built in notion of an inital workingDir.
  5884. @return if there is built in notion of workingDir then it
  5885. is returned; else a null is returned.]]>
  5886. </doc>
  5887. </method>
  5888. <method name="mkdirs" return="boolean"
  5889. abstract="false" native="false" synchronized="false"
  5890. static="false" final="false" visibility="public"
  5891. deprecated="not deprecated">
  5892. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5893. <exception name="IOException" type="java.io.IOException"/>
  5894. <doc>
  5895. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  5896. </doc>
  5897. </method>
  5898. <method name="mkdirs" return="boolean"
  5899. abstract="true" native="false" synchronized="false"
  5900. static="false" final="false" visibility="public"
  5901. deprecated="not deprecated">
  5902. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5903. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5904. <exception name="IOException" type="java.io.IOException"/>
  5905. <doc>
  5906. <![CDATA[Make the given file and all non-existent parents into
  5907. directories. Has the semantics of Unix 'mkdir -p'.
  5908. Existence of the directory hierarchy is not an error.]]>
  5909. </doc>
  5910. </method>
  5911. <method name="copyFromLocalFile"
  5912. abstract="false" native="false" synchronized="false"
  5913. static="false" final="false" visibility="public"
  5914. deprecated="not deprecated">
  5915. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5916. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5917. <exception name="IOException" type="java.io.IOException"/>
  5918. <doc>
  5919. <![CDATA[The src file is on the local disk. Add it to FS at
  5920. the given dst name and the source is kept intact afterwards]]>
  5921. </doc>
  5922. </method>
  5923. <method name="moveFromLocalFile"
  5924. abstract="false" native="false" synchronized="false"
  5925. static="false" final="false" visibility="public"
  5926. deprecated="not deprecated">
  5927. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  5928. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5929. <exception name="IOException" type="java.io.IOException"/>
  5930. <doc>
  5931. <![CDATA[The src files is on the local disk. Add it to FS at
  5932. the given dst name, removing the source afterwards.]]>
  5933. </doc>
  5934. </method>
  5935. <method name="moveFromLocalFile"
  5936. abstract="false" native="false" synchronized="false"
  5937. static="false" final="false" visibility="public"
  5938. deprecated="not deprecated">
  5939. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5940. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5941. <exception name="IOException" type="java.io.IOException"/>
  5942. <doc>
  5943. <![CDATA[The src file is on the local disk. Add it to FS at
  5944. the given dst name, removing the source afterwards.]]>
  5945. </doc>
  5946. </method>
  5947. <method name="copyFromLocalFile"
  5948. abstract="false" native="false" synchronized="false"
  5949. static="false" final="false" visibility="public"
  5950. deprecated="not deprecated">
  5951. <param name="delSrc" type="boolean"/>
  5952. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5953. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5954. <exception name="IOException" type="java.io.IOException"/>
  5955. <doc>
  5956. <![CDATA[The src file is on the local disk. Add it to FS at
  5957. the given dst name.
  5958. delSrc indicates if the source should be removed]]>
  5959. </doc>
  5960. </method>
  5961. <method name="copyFromLocalFile"
  5962. abstract="false" native="false" synchronized="false"
  5963. static="false" final="false" visibility="public"
  5964. deprecated="not deprecated">
  5965. <param name="delSrc" type="boolean"/>
  5966. <param name="overwrite" type="boolean"/>
  5967. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  5968. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5969. <exception name="IOException" type="java.io.IOException"/>
  5970. <doc>
  5971. <![CDATA[The src files are on the local disk. Add it to FS at
  5972. the given dst name.
  5973. delSrc indicates if the source should be removed]]>
  5974. </doc>
  5975. </method>
  5976. <method name="copyFromLocalFile"
  5977. abstract="false" native="false" synchronized="false"
  5978. static="false" final="false" visibility="public"
  5979. deprecated="not deprecated">
  5980. <param name="delSrc" type="boolean"/>
  5981. <param name="overwrite" type="boolean"/>
  5982. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5983. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5984. <exception name="IOException" type="java.io.IOException"/>
  5985. <doc>
  5986. <![CDATA[The src file is on the local disk. Add it to FS at
  5987. the given dst name.
  5988. delSrc indicates if the source should be removed]]>
  5989. </doc>
  5990. </method>
  5991. <method name="copyToLocalFile"
  5992. abstract="false" native="false" synchronized="false"
  5993. static="false" final="false" visibility="public"
  5994. deprecated="not deprecated">
  5995. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5996. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5997. <exception name="IOException" type="java.io.IOException"/>
  5998. <doc>
  5999. <![CDATA[The src file is under FS, and the dst is on the local disk.
  6000. Copy it from FS control to the local dst name.]]>
  6001. </doc>
  6002. </method>
  6003. <method name="moveToLocalFile"
  6004. abstract="false" native="false" synchronized="false"
  6005. static="false" final="false" visibility="public"
  6006. deprecated="not deprecated">
  6007. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6008. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6009. <exception name="IOException" type="java.io.IOException"/>
  6010. <doc>
  6011. <![CDATA[The src file is under FS, and the dst is on the local disk.
  6012. Copy it from FS control to the local dst name.
  6013. Remove the source afterwards]]>
  6014. </doc>
  6015. </method>
  6016. <method name="copyToLocalFile"
  6017. abstract="false" native="false" synchronized="false"
  6018. static="false" final="false" visibility="public"
  6019. deprecated="not deprecated">
  6020. <param name="delSrc" type="boolean"/>
  6021. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6022. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6023. <exception name="IOException" type="java.io.IOException"/>
  6024. <doc>
  6025. <![CDATA[The src file is under FS, and the dst is on the local disk.
  6026. Copy it from FS control to the local dst name.
  6027. delSrc indicates if the src will be removed or not.]]>
  6028. </doc>
  6029. </method>
  6030. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6031. abstract="false" native="false" synchronized="false"
  6032. static="false" final="false" visibility="public"
  6033. deprecated="not deprecated">
  6034. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6035. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6036. <exception name="IOException" type="java.io.IOException"/>
  6037. <doc>
  6038. <![CDATA[Returns a local File that the user can write output to. The caller
  6039. provides both the eventual FS target name and the local working
  6040. file. If the FS is local, we write directly into the target. If
  6041. the FS is remote, we write into the tmp local area.]]>
  6042. </doc>
  6043. </method>
  6044. <method name="completeLocalOutput"
  6045. abstract="false" native="false" synchronized="false"
  6046. static="false" final="false" visibility="public"
  6047. deprecated="not deprecated">
  6048. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6049. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6050. <exception name="IOException" type="java.io.IOException"/>
  6051. <doc>
  6052. <![CDATA[Called when we're all done writing to the target. A local FS will
  6053. do nothing, because we've written to exactly the right place. A remote
  6054. FS will copy the contents of tmpLocalFile to the correct target at
  6055. fsOutputFile.]]>
  6056. </doc>
  6057. </method>
  6058. <method name="close"
  6059. abstract="false" native="false" synchronized="false"
  6060. static="false" final="false" visibility="public"
  6061. deprecated="not deprecated">
  6062. <exception name="IOException" type="java.io.IOException"/>
  6063. <doc>
  6064. <![CDATA[No more filesystem operations are needed. Will
  6065. release any held locks.]]>
  6066. </doc>
  6067. </method>
  6068. <method name="getUsed" return="long"
  6069. abstract="false" native="false" synchronized="false"
  6070. static="false" final="false" visibility="public"
  6071. deprecated="not deprecated">
  6072. <exception name="IOException" type="java.io.IOException"/>
  6073. <doc>
  6074. <![CDATA[Return the total size of all files in the filesystem.]]>
  6075. </doc>
  6076. </method>
  6077. <method name="getBlockSize" return="long"
  6078. abstract="false" native="false" synchronized="false"
  6079. static="false" final="false" visibility="public"
  6080. deprecated="Use getFileStatus() instead">
  6081. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6082. <exception name="IOException" type="java.io.IOException"/>
  6083. <doc>
  6084. <![CDATA[@deprecated Use getFileStatus() instead]]>
  6085. </doc>
  6086. </method>
  6087. <method name="getDefaultBlockSize" return="long"
  6088. abstract="false" native="false" synchronized="false"
  6089. static="false" final="false" visibility="public"
  6090. deprecated="not deprecated">
  6091. <doc>
  6092. <![CDATA[Return the number of bytes that large input files should be optimally
  6093. be split into to minimize i/o time.]]>
  6094. </doc>
  6095. </method>
  6096. <method name="getDefaultReplication" return="short"
  6097. abstract="false" native="false" synchronized="false"
  6098. static="false" final="false" visibility="public"
  6099. deprecated="not deprecated">
  6100. <doc>
  6101. <![CDATA[Get the default replication.]]>
  6102. </doc>
  6103. </method>
  6104. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6105. abstract="true" native="false" synchronized="false"
  6106. static="false" final="false" visibility="public"
  6107. deprecated="not deprecated">
  6108. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6109. <exception name="IOException" type="java.io.IOException"/>
  6110. <doc>
  6111. <![CDATA[Return a file status object that represents the path.
  6112. @param f The path we want information from
  6113. @return a FileStatus object
  6114. @throws FileNotFoundException when the path does not exist;
  6115. IOException see specific implementation]]>
  6116. </doc>
  6117. </method>
  6118. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6119. abstract="false" native="false" synchronized="false"
  6120. static="false" final="false" visibility="public"
  6121. deprecated="not deprecated">
  6122. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6123. <exception name="IOException" type="java.io.IOException"/>
  6124. <doc>
  6125. <![CDATA[Get the checksum of a file.
  6126. @param f The file path
  6127. @return The file checksum. The default return value is null,
  6128. which indicates that no checksum algorithm is implemented
  6129. in the corresponding FileSystem.]]>
  6130. </doc>
  6131. </method>
  6132. <method name="setVerifyChecksum"
  6133. abstract="false" native="false" synchronized="false"
  6134. static="false" final="false" visibility="public"
  6135. deprecated="not deprecated">
  6136. <param name="verifyChecksum" type="boolean"/>
  6137. <doc>
  6138. <![CDATA[Set the verify checksum flag. This is only applicable if the
  6139. corresponding FileSystem supports checksum. By default doesn't do anything.
  6140. @param verifyChecksum]]>
  6141. </doc>
  6142. </method>
  6143. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  6144. abstract="false" native="false" synchronized="false"
  6145. static="false" final="false" visibility="public"
  6146. deprecated="not deprecated">
  6147. <exception name="IOException" type="java.io.IOException"/>
  6148. <doc>
  6149. <![CDATA[Returns a status object describing the use and capacity of the
  6150. file system. If the file system has multiple partitions, the
  6151. use and capacity of the root partition is reflected.
  6152. @return a FsStatus object
  6153. @throws IOException
  6154. see specific implementation]]>
  6155. </doc>
  6156. </method>
  6157. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  6158. abstract="false" native="false" synchronized="false"
  6159. static="false" final="false" visibility="public"
  6160. deprecated="not deprecated">
  6161. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6162. <exception name="IOException" type="java.io.IOException"/>
  6163. <doc>
  6164. <![CDATA[Returns a status object describing the use and capacity of the
  6165. file system. If the file system has multiple partitions, the
  6166. use and capacity of the partition pointed to by the specified
  6167. path is reflected.
  6168. @param p Path for which status should be obtained. null means
  6169. the default partition.
  6170. @return a FsStatus object
  6171. @throws IOException
  6172. see specific implementation]]>
  6173. </doc>
  6174. </method>
  6175. <method name="setPermission"
  6176. abstract="false" native="false" synchronized="false"
  6177. static="false" final="false" visibility="public"
  6178. deprecated="not deprecated">
  6179. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6180. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6181. <exception name="IOException" type="java.io.IOException"/>
  6182. <doc>
  6183. <![CDATA[Set permission of a path.
  6184. @param p
  6185. @param permission]]>
  6186. </doc>
  6187. </method>
  6188. <method name="setOwner"
  6189. abstract="false" native="false" synchronized="false"
  6190. static="false" final="false" visibility="public"
  6191. deprecated="not deprecated">
  6192. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6193. <param name="username" type="java.lang.String"/>
  6194. <param name="groupname" type="java.lang.String"/>
  6195. <exception name="IOException" type="java.io.IOException"/>
  6196. <doc>
  6197. <![CDATA[Set owner of a path (i.e. a file or a directory).
  6198. The parameters username and groupname cannot both be null.
  6199. @param p The path
  6200. @param username If it is null, the original username remains unchanged.
  6201. @param groupname If it is null, the original groupname remains unchanged.]]>
  6202. </doc>
  6203. </method>
  6204. <method name="setTimes"
  6205. abstract="false" native="false" synchronized="false"
  6206. static="false" final="false" visibility="public"
  6207. deprecated="not deprecated">
  6208. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6209. <param name="mtime" type="long"/>
  6210. <param name="atime" type="long"/>
  6211. <exception name="IOException" type="java.io.IOException"/>
  6212. <doc>
  6213. <![CDATA[Set access time of a file
  6214. @param p The path
  6215. @param mtime Set the modification time of this file.
  6216. The number of milliseconds since Jan 1, 1970.
  6217. A value of -1 means that this call should not set modification time.
  6218. @param atime Set the access time of this file.
  6219. The number of milliseconds since Jan 1, 1970.
  6220. A value of -1 means that this call should not set access time.]]>
  6221. </doc>
  6222. </method>
  6223. <method name="getStatistics" return="java.util.Map"
  6224. abstract="false" native="false" synchronized="true"
  6225. static="true" final="false" visibility="public"
  6226. deprecated="use {@link #getAllStatistics} instead">
  6227. <doc>
  6228. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  6229. @return a Map having a key as URI scheme and value as Statistics object
  6230. @deprecated use {@link #getAllStatistics} instead]]>
  6231. </doc>
  6232. </method>
  6233. <method name="getAllStatistics" return="java.util.List"
  6234. abstract="false" native="false" synchronized="true"
  6235. static="true" final="false" visibility="public"
  6236. deprecated="not deprecated">
  6237. <doc>
  6238. <![CDATA[Return the FileSystem classes that have Statistics]]>
  6239. </doc>
  6240. </method>
  6241. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  6242. abstract="false" native="false" synchronized="true"
  6243. static="true" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <param name="scheme" type="java.lang.String"/>
  6246. <param name="cls" type="java.lang.Class"/>
  6247. <doc>
  6248. <![CDATA[Get the statistics for a particular file system
  6249. @param cls the class to lookup
  6250. @return a statistics object]]>
  6251. </doc>
  6252. </method>
  6253. <method name="clearStatistics"
  6254. abstract="false" native="false" synchronized="true"
  6255. static="true" final="false" visibility="public"
  6256. deprecated="not deprecated">
  6257. </method>
  6258. <method name="printStatistics"
  6259. abstract="false" native="false" synchronized="true"
  6260. static="true" final="false" visibility="public"
  6261. deprecated="not deprecated">
  6262. <exception name="IOException" type="java.io.IOException"/>
  6263. </method>
  6264. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  6265. transient="false" volatile="false"
  6266. static="true" final="true" visibility="public"
  6267. deprecated="not deprecated">
  6268. </field>
  6269. <field name="DEFAULT_FS" type="java.lang.String"
  6270. transient="false" volatile="false"
  6271. static="true" final="true" visibility="public"
  6272. deprecated="not deprecated">
  6273. </field>
  6274. <field name="LOG" type="org.apache.commons.logging.Log"
  6275. transient="false" volatile="false"
  6276. static="true" final="true" visibility="public"
  6277. deprecated="not deprecated">
  6278. </field>
  6279. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  6280. transient="false" volatile="false"
  6281. static="false" final="false" visibility="protected"
  6282. deprecated="not deprecated">
  6283. <doc>
  6284. <![CDATA[The statistics for this file system.]]>
  6285. </doc>
  6286. </field>
  6287. <doc>
  6288. <![CDATA[An abstract base class for a fairly generic filesystem. It
  6289. may be implemented as a distributed filesystem, or as a "local"
  6290. one that reflects the locally-connected disk. The local version
  6291. exists for small Hadoop instances and for testing.
  6292. <p>
  6293. All user code that may potentially use the Hadoop Distributed
  6294. File System should be written to use a FileSystem object. The
  6295. Hadoop DFS is a multi-machine system that appears as a single
  6296. disk. It's useful because of its fault tolerance and potentially
  6297. very large capacity.
  6298. <p>
  6299. The local implementation is {@link LocalFileSystem} and distributed
  6300. implementation is DistributedFileSystem.]]>
  6301. </doc>
  6302. </class>
  6303. <!-- end class org.apache.hadoop.fs.FileSystem -->
  6304. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  6305. <class name="FileSystem.Statistics" extends="java.lang.Object"
  6306. abstract="false"
  6307. static="true" final="true" visibility="public"
  6308. deprecated="not deprecated">
  6309. <constructor name="FileSystem.Statistics" type="java.lang.String"
  6310. static="false" final="false" visibility="public"
  6311. deprecated="not deprecated">
  6312. </constructor>
  6313. <method name="incrementBytesRead"
  6314. abstract="false" native="false" synchronized="false"
  6315. static="false" final="false" visibility="public"
  6316. deprecated="not deprecated">
  6317. <param name="newBytes" type="long"/>
  6318. <doc>
  6319. <![CDATA[Increment the bytes read in the statistics
  6320. @param newBytes the additional bytes read]]>
  6321. </doc>
  6322. </method>
  6323. <method name="incrementBytesWritten"
  6324. abstract="false" native="false" synchronized="false"
  6325. static="false" final="false" visibility="public"
  6326. deprecated="not deprecated">
  6327. <param name="newBytes" type="long"/>
  6328. <doc>
  6329. <![CDATA[Increment the bytes written in the statistics
  6330. @param newBytes the additional bytes written]]>
  6331. </doc>
  6332. </method>
  6333. <method name="incrementReadOps"
  6334. abstract="false" native="false" synchronized="false"
  6335. static="false" final="false" visibility="public"
  6336. deprecated="not deprecated">
  6337. <param name="count" type="int"/>
  6338. <doc>
  6339. <![CDATA[Increment the number of read operations
  6340. @param count number of read operations]]>
  6341. </doc>
  6342. </method>
  6343. <method name="incrementLargeReadOps"
  6344. abstract="false" native="false" synchronized="false"
  6345. static="false" final="false" visibility="public"
  6346. deprecated="not deprecated">
  6347. <param name="count" type="int"/>
  6348. <doc>
  6349. <![CDATA[Increment the number of large read operations
  6350. @param count number of large read operations]]>
  6351. </doc>
  6352. </method>
  6353. <method name="incrementWriteOps"
  6354. abstract="false" native="false" synchronized="false"
  6355. static="false" final="false" visibility="public"
  6356. deprecated="not deprecated">
  6357. <param name="count" type="int"/>
  6358. <doc>
  6359. <![CDATA[Increment the number of write operations
  6360. @param count number of write operations]]>
  6361. </doc>
  6362. </method>
  6363. <method name="getBytesRead" return="long"
  6364. abstract="false" native="false" synchronized="false"
  6365. static="false" final="false" visibility="public"
  6366. deprecated="not deprecated">
  6367. <doc>
  6368. <![CDATA[Get the total number of bytes read
  6369. @return the number of bytes]]>
  6370. </doc>
  6371. </method>
  6372. <method name="getBytesWritten" return="long"
  6373. abstract="false" native="false" synchronized="false"
  6374. static="false" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <doc>
  6377. <![CDATA[Get the total number of bytes written
  6378. @return the number of bytes]]>
  6379. </doc>
  6380. </method>
  6381. <method name="getReadOps" return="int"
  6382. abstract="false" native="false" synchronized="false"
  6383. static="false" final="false" visibility="public"
  6384. deprecated="not deprecated">
  6385. <doc>
  6386. <![CDATA[Get the number of file system read operations such as list files
  6387. @return number of read operations]]>
  6388. </doc>
  6389. </method>
  6390. <method name="getLargeReadOps" return="int"
  6391. abstract="false" native="false" synchronized="false"
  6392. static="false" final="false" visibility="public"
  6393. deprecated="not deprecated">
  6394. <doc>
  6395. <![CDATA[Get the number of large file system read operations such as list files
  6396. under a large directory
  6397. @return number of large read operations]]>
  6398. </doc>
  6399. </method>
  6400. <method name="getWriteOps" return="int"
  6401. abstract="false" native="false" synchronized="false"
  6402. static="false" final="false" visibility="public"
  6403. deprecated="not deprecated">
  6404. <doc>
  6405. <![CDATA[Get the number of file system write operations such as create, append
  6406. rename etc.
  6407. @return number of write operations]]>
  6408. </doc>
  6409. </method>
  6410. <method name="toString" return="java.lang.String"
  6411. abstract="false" native="false" synchronized="false"
  6412. static="false" final="false" visibility="public"
  6413. deprecated="not deprecated">
  6414. </method>
  6415. <method name="reset"
  6416. abstract="false" native="false" synchronized="false"
  6417. static="false" final="false" visibility="public"
  6418. deprecated="not deprecated">
  6419. <doc>
  6420. <![CDATA[Reset the counts of bytes to 0.]]>
  6421. </doc>
  6422. </method>
  6423. <method name="getScheme" return="java.lang.String"
  6424. abstract="false" native="false" synchronized="false"
  6425. static="false" final="false" visibility="public"
  6426. deprecated="not deprecated">
  6427. <doc>
  6428. <![CDATA[Get the uri scheme associated with this statistics object.
  6429. @return the schema associated with this set of statistics]]>
  6430. </doc>
  6431. </method>
  6432. </class>
  6433. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  6434. <!-- start class org.apache.hadoop.fs.FileUtil -->
  6435. <class name="FileUtil" extends="java.lang.Object"
  6436. abstract="false"
  6437. static="false" final="false" visibility="public"
  6438. deprecated="not deprecated">
  6439. <constructor name="FileUtil"
  6440. static="false" final="false" visibility="public"
  6441. deprecated="not deprecated">
  6442. </constructor>
  6443. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  6444. abstract="false" native="false" synchronized="false"
  6445. static="true" final="false" visibility="public"
  6446. deprecated="not deprecated">
  6447. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  6448. <doc>
  6449. <![CDATA[convert an array of FileStatus to an array of Path
  6450. @param stats
  6451. an array of FileStatus objects
  6452. @return an array of paths corresponding to the input]]>
  6453. </doc>
  6454. </method>
  6455. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  6456. abstract="false" native="false" synchronized="false"
  6457. static="true" final="false" visibility="public"
  6458. deprecated="not deprecated">
  6459. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  6460. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6461. <doc>
  6462. <![CDATA[convert an array of FileStatus to an array of Path.
  6463. If stats if null, return path
  6464. @param stats
  6465. an array of FileStatus objects
  6466. @param path
  6467. default path to return in stats is null
  6468. @return an array of paths corresponding to the input]]>
  6469. </doc>
  6470. </method>
  6471. <method name="fullyDelete" return="boolean"
  6472. abstract="false" native="false" synchronized="false"
  6473. static="true" final="false" visibility="public"
  6474. deprecated="not deprecated">
  6475. <param name="dir" type="java.io.File"/>
  6476. <exception name="IOException" type="java.io.IOException"/>
  6477. <doc>
  6478. <![CDATA[Delete a directory and all its contents. If
  6479. we return false, the directory may be partially-deleted.
  6480. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  6481. to by the symlink is not deleted.
  6482. (2) If dir is symlink to a directory, symlink is deleted. The directory
  6483. pointed to by symlink is not deleted.
  6484. (3) If dir is a normal file, it is deleted.
  6485. (4) If dir is a normal directory, then dir and all its contents recursively
  6486. are deleted.]]>
  6487. </doc>
  6488. </method>
  6489. <method name="fullyDeleteContents" return="boolean"
  6490. abstract="false" native="false" synchronized="false"
  6491. static="true" final="false" visibility="public"
  6492. deprecated="not deprecated">
  6493. <param name="dir" type="java.io.File"/>
  6494. <exception name="IOException" type="java.io.IOException"/>
  6495. <doc>
  6496. <![CDATA[Delete the contents of a directory, not the directory itself. If
  6497. we return false, the directory may be partially-deleted.
  6498. If dir is a symlink to a directory, all the contents of the actual
  6499. directory pointed to by dir will be deleted.]]>
  6500. </doc>
  6501. </method>
  6502. <method name="fullyDelete"
  6503. abstract="false" native="false" synchronized="false"
  6504. static="true" final="false" visibility="public"
  6505. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  6506. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6507. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6508. <exception name="IOException" type="java.io.IOException"/>
  6509. <doc>
  6510. <![CDATA[Recursively delete a directory.
  6511. @param fs {@link FileSystem} on which the path is present
  6512. @param dir directory to recursively delete
  6513. @throws IOException
  6514. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  6515. </doc>
  6516. </method>
  6517. <method name="copy" return="boolean"
  6518. abstract="false" native="false" synchronized="false"
  6519. static="true" final="false" visibility="public"
  6520. deprecated="not deprecated">
  6521. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  6522. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6523. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  6524. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6525. <param name="deleteSource" type="boolean"/>
  6526. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6527. <exception name="IOException" type="java.io.IOException"/>
  6528. <doc>
  6529. <![CDATA[Copy files between FileSystems.]]>
  6530. </doc>
  6531. </method>
  6532. <method name="copy" return="boolean"
  6533. abstract="false" native="false" synchronized="false"
  6534. static="true" final="false" visibility="public"
  6535. deprecated="not deprecated">
  6536. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  6537. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  6538. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  6539. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6540. <param name="deleteSource" type="boolean"/>
  6541. <param name="overwrite" type="boolean"/>
  6542. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6543. <exception name="IOException" type="java.io.IOException"/>
  6544. </method>
  6545. <method name="copy" return="boolean"
  6546. abstract="false" native="false" synchronized="false"
  6547. static="true" final="false" visibility="public"
  6548. deprecated="not deprecated">
  6549. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  6550. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6551. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  6552. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6553. <param name="deleteSource" type="boolean"/>
  6554. <param name="overwrite" type="boolean"/>
  6555. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6556. <exception name="IOException" type="java.io.IOException"/>
  6557. <doc>
  6558. <![CDATA[Copy files between FileSystems.]]>
  6559. </doc>
  6560. </method>
  6561. <method name="copyMerge" return="boolean"
  6562. abstract="false" native="false" synchronized="false"
  6563. static="true" final="false" visibility="public"
  6564. deprecated="not deprecated">
  6565. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  6566. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  6567. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  6568. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  6569. <param name="deleteSource" type="boolean"/>
  6570. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6571. <param name="addString" type="java.lang.String"/>
  6572. <exception name="IOException" type="java.io.IOException"/>
  6573. <doc>
  6574. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  6575. </doc>
  6576. </method>
  6577. <method name="copy" return="boolean"
  6578. abstract="false" native="false" synchronized="false"
  6579. static="true" final="false" visibility="public"
  6580. deprecated="not deprecated">
  6581. <param name="src" type="java.io.File"/>
  6582. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  6583. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6584. <param name="deleteSource" type="boolean"/>
  6585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6586. <exception name="IOException" type="java.io.IOException"/>
  6587. <doc>
  6588. <![CDATA[Copy local files to a FileSystem.]]>
  6589. </doc>
  6590. </method>
  6591. <method name="copy" return="boolean"
  6592. abstract="false" native="false" synchronized="false"
  6593. static="true" final="false" visibility="public"
  6594. deprecated="not deprecated">
  6595. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  6596. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6597. <param name="dst" type="java.io.File"/>
  6598. <param name="deleteSource" type="boolean"/>
  6599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6600. <exception name="IOException" type="java.io.IOException"/>
  6601. <doc>
  6602. <![CDATA[Copy FileSystem files to local files.]]>
  6603. </doc>
  6604. </method>
  6605. <method name="makeShellPath" return="java.lang.String"
  6606. abstract="false" native="false" synchronized="false"
  6607. static="true" final="false" visibility="public"
  6608. deprecated="not deprecated">
  6609. <param name="filename" type="java.lang.String"/>
  6610. <exception name="IOException" type="java.io.IOException"/>
  6611. <doc>
  6612. <![CDATA[Convert a os-native filename to a path that works for the shell.
  6613. @param filename The filename to convert
  6614. @return The unix pathname
  6615. @throws IOException on windows, there can be problems with the subprocess]]>
  6616. </doc>
  6617. </method>
  6618. <method name="makeShellPath" return="java.lang.String"
  6619. abstract="false" native="false" synchronized="false"
  6620. static="true" final="false" visibility="public"
  6621. deprecated="not deprecated">
  6622. <param name="file" type="java.io.File"/>
  6623. <exception name="IOException" type="java.io.IOException"/>
  6624. <doc>
  6625. <![CDATA[Convert a os-native filename to a path that works for the shell.
  6626. @param file The filename to convert
  6627. @return The unix pathname
  6628. @throws IOException on windows, there can be problems with the subprocess]]>
  6629. </doc>
  6630. </method>
  6631. <method name="makeShellPath" return="java.lang.String"
  6632. abstract="false" native="false" synchronized="false"
  6633. static="true" final="false" visibility="public"
  6634. deprecated="not deprecated">
  6635. <param name="file" type="java.io.File"/>
  6636. <param name="makeCanonicalPath" type="boolean"/>
  6637. <exception name="IOException" type="java.io.IOException"/>
  6638. <doc>
  6639. <![CDATA[Convert a os-native filename to a path that works for the shell.
  6640. @param file The filename to convert
  6641. @param makeCanonicalPath
  6642. Whether to make canonical path for the file passed
  6643. @return The unix pathname
  6644. @throws IOException on windows, there can be problems with the subprocess]]>
  6645. </doc>
  6646. </method>
  6647. <method name="getDU" return="long"
  6648. abstract="false" native="false" synchronized="false"
  6649. static="true" final="false" visibility="public"
  6650. deprecated="not deprecated">
  6651. <param name="dir" type="java.io.File"/>
  6652. <doc>
  6653. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  6654. implementation.
  6655. @param dir
  6656. The input dir to get the disk space of this local dir
  6657. @return The total disk space of the input local directory]]>
  6658. </doc>
  6659. </method>
  6660. <method name="unZip"
  6661. abstract="false" native="false" synchronized="false"
  6662. static="true" final="false" visibility="public"
  6663. deprecated="not deprecated">
  6664. <param name="inFile" type="java.io.File"/>
  6665. <param name="unzipDir" type="java.io.File"/>
  6666. <exception name="IOException" type="java.io.IOException"/>
  6667. <doc>
  6668. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  6669. passed as the second parameter
  6670. @param inFile The zip file as input
  6671. @param unzipDir The unzip directory where to unzip the zip file.
  6672. @throws IOException]]>
  6673. </doc>
  6674. </method>
  6675. <method name="unTar"
  6676. abstract="false" native="false" synchronized="false"
  6677. static="true" final="false" visibility="public"
  6678. deprecated="not deprecated">
  6679. <param name="inFile" type="java.io.File"/>
  6680. <param name="untarDir" type="java.io.File"/>
  6681. <exception name="IOException" type="java.io.IOException"/>
  6682. <doc>
  6683. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  6684. passed as the second parameter
  6685. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  6686. @param inFile The tar file as input.
  6687. @param untarDir The untar directory where to untar the tar file.
  6688. @throws IOException]]>
  6689. </doc>
  6690. </method>
  6691. <method name="symLink" return="int"
  6692. abstract="false" native="false" synchronized="false"
  6693. static="true" final="false" visibility="public"
  6694. deprecated="not deprecated">
  6695. <param name="target" type="java.lang.String"/>
  6696. <param name="linkname" type="java.lang.String"/>
  6697. <exception name="IOException" type="java.io.IOException"/>
  6698. <doc>
  6699. <![CDATA[Create a soft link between a src and destination
  6700. only on a local disk. HDFS does not support this
  6701. @param target the target for symlink
  6702. @param linkname the symlink
  6703. @return value returned by the command]]>
  6704. </doc>
  6705. </method>
  6706. <method name="chmod" return="int"
  6707. abstract="false" native="false" synchronized="false"
  6708. static="true" final="false" visibility="public"
  6709. deprecated="not deprecated">
  6710. <param name="filename" type="java.lang.String"/>
  6711. <param name="perm" type="java.lang.String"/>
  6712. <exception name="IOException" type="java.io.IOException"/>
  6713. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  6714. <doc>
  6715. <![CDATA[Change the permissions on a filename.
  6716. @param filename the name of the file to change
  6717. @param perm the permission string
  6718. @return the exit code from the command
  6719. @throws IOException
  6720. @throws InterruptedException]]>
  6721. </doc>
  6722. </method>
  6723. <method name="chmod" return="int"
  6724. abstract="false" native="false" synchronized="false"
  6725. static="true" final="false" visibility="public"
  6726. deprecated="not deprecated">
  6727. <param name="filename" type="java.lang.String"/>
  6728. <param name="perm" type="java.lang.String"/>
  6729. <param name="recursive" type="boolean"/>
  6730. <exception name="IOException" type="java.io.IOException"/>
  6731. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  6732. <doc>
  6733. <![CDATA[Change the permissions on a file / directory, recursively, if
  6734. needed.
  6735. @param filename name of the file whose permissions are to change
  6736. @param perm permission string
  6737. @param recursive true, if permissions should be changed recursively
  6738. @return the exit code from the command.
  6739. @throws IOException
  6740. @throws InterruptedException]]>
  6741. </doc>
  6742. </method>
  6743. <method name="createLocalTempFile" return="java.io.File"
  6744. abstract="false" native="false" synchronized="false"
  6745. static="true" final="true" visibility="public"
  6746. deprecated="not deprecated">
  6747. <param name="basefile" type="java.io.File"/>
  6748. <param name="prefix" type="java.lang.String"/>
  6749. <param name="isDeleteOnExit" type="boolean"/>
  6750. <exception name="IOException" type="java.io.IOException"/>
  6751. <doc>
  6752. <![CDATA[Create a tmp file for a base file.
  6753. @param basefile the base file of the tmp
  6754. @param prefix file name prefix of tmp
  6755. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  6756. @return a newly created tmp file
  6757. @exception IOException If a tmp file cannot created
  6758. @see java.io.File#createTempFile(String, String, File)
  6759. @see java.io.File#deleteOnExit()]]>
  6760. </doc>
  6761. </method>
  6762. <method name="replaceFile"
  6763. abstract="false" native="false" synchronized="false"
  6764. static="true" final="false" visibility="public"
  6765. deprecated="not deprecated">
  6766. <param name="src" type="java.io.File"/>
  6767. <param name="target" type="java.io.File"/>
  6768. <exception name="IOException" type="java.io.IOException"/>
  6769. <doc>
  6770. <![CDATA[Move the src file to the name specified by target.
  6771. @param src the source file
  6772. @param target the target file
  6773. @exception IOException If this operation fails]]>
  6774. </doc>
  6775. </method>
  6776. <doc>
  6777. <![CDATA[A collection of file-processing util methods]]>
  6778. </doc>
  6779. </class>
  6780. <!-- end class org.apache.hadoop.fs.FileUtil -->
  6781. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  6782. <class name="FileUtil.HardLink" extends="java.lang.Object"
  6783. abstract="false"
  6784. static="true" final="false" visibility="public"
  6785. deprecated="not deprecated">
  6786. <constructor name="FileUtil.HardLink"
  6787. static="false" final="false" visibility="public"
  6788. deprecated="not deprecated">
  6789. </constructor>
  6790. <method name="createHardLink"
  6791. abstract="false" native="false" synchronized="false"
  6792. static="true" final="false" visibility="public"
  6793. deprecated="not deprecated">
  6794. <param name="target" type="java.io.File"/>
  6795. <param name="linkName" type="java.io.File"/>
  6796. <exception name="IOException" type="java.io.IOException"/>
  6797. <doc>
  6798. <![CDATA[Creates a hardlink]]>
  6799. </doc>
  6800. </method>
  6801. <method name="getLinkCount" return="int"
  6802. abstract="false" native="false" synchronized="false"
  6803. static="true" final="false" visibility="public"
  6804. deprecated="not deprecated">
  6805. <param name="fileName" type="java.io.File"/>
  6806. <exception name="IOException" type="java.io.IOException"/>
  6807. <doc>
  6808. <![CDATA[Retrieves the number of links to the specified file.]]>
  6809. </doc>
  6810. </method>
  6811. <doc>
  6812. <![CDATA[Class for creating hardlinks.
  6813. Supports Unix, Cygwin, WindXP.]]>
  6814. </doc>
  6815. </class>
  6816. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  6817. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  6818. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6819. abstract="false"
  6820. static="false" final="false" visibility="public"
  6821. deprecated="not deprecated">
  6822. <constructor name="FilterFileSystem"
  6823. static="false" final="false" visibility="public"
  6824. deprecated="not deprecated">
  6825. </constructor>
  6826. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6827. static="false" final="false" visibility="public"
  6828. deprecated="not deprecated">
  6829. </constructor>
  6830. <method name="initialize"
  6831. abstract="false" native="false" synchronized="false"
  6832. static="false" final="false" visibility="public"
  6833. deprecated="not deprecated">
  6834. <param name="name" type="java.net.URI"/>
  6835. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6836. <exception name="IOException" type="java.io.IOException"/>
  6837. <doc>
  6838. <![CDATA[Called after a new FileSystem instance is constructed.
  6839. @param name a uri whose authority section names the host, port, etc.
  6840. for this FileSystem
  6841. @param conf the configuration]]>
  6842. </doc>
  6843. </method>
  6844. <method name="getUri" return="java.net.URI"
  6845. abstract="false" native="false" synchronized="false"
  6846. static="false" final="false" visibility="public"
  6847. deprecated="not deprecated">
  6848. <doc>
  6849. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  6850. </doc>
  6851. </method>
  6852. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6853. abstract="false" native="false" synchronized="false"
  6854. static="false" final="false" visibility="public"
  6855. deprecated="not deprecated">
  6856. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6857. <doc>
  6858. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  6859. </doc>
  6860. </method>
  6861. <method name="checkPath"
  6862. abstract="false" native="false" synchronized="false"
  6863. static="false" final="false" visibility="protected"
  6864. deprecated="not deprecated">
  6865. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6866. <doc>
  6867. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  6868. </doc>
  6869. </method>
  6870. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6871. abstract="false" native="false" synchronized="false"
  6872. static="false" final="false" visibility="public"
  6873. deprecated="not deprecated">
  6874. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  6875. <param name="start" type="long"/>
  6876. <param name="len" type="long"/>
  6877. <exception name="IOException" type="java.io.IOException"/>
  6878. </method>
  6879. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6880. abstract="false" native="false" synchronized="false"
  6881. static="false" final="false" visibility="public"
  6882. deprecated="not deprecated">
  6883. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6884. <param name="bufferSize" type="int"/>
  6885. <exception name="IOException" type="java.io.IOException"/>
  6886. <doc>
  6887. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6888. @param f the file name to open
  6889. @param bufferSize the size of the buffer to be used.]]>
  6890. </doc>
  6891. </method>
  6892. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6893. abstract="false" native="false" synchronized="false"
  6894. static="false" final="false" visibility="public"
  6895. deprecated="not deprecated">
  6896. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6897. <param name="bufferSize" type="int"/>
  6898. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6899. <exception name="IOException" type="java.io.IOException"/>
  6900. <doc>
  6901. <![CDATA[{@inheritDoc}]]>
  6902. </doc>
  6903. </method>
  6904. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6905. abstract="false" native="false" synchronized="false"
  6906. static="false" final="false" visibility="public"
  6907. deprecated="not deprecated">
  6908. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6909. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6910. <param name="overwrite" type="boolean"/>
  6911. <param name="bufferSize" type="int"/>
  6912. <param name="replication" type="short"/>
  6913. <param name="blockSize" type="long"/>
  6914. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6915. <exception name="IOException" type="java.io.IOException"/>
  6916. <doc>
  6917. <![CDATA[{@inheritDoc}]]>
  6918. </doc>
  6919. </method>
  6920. <method name="setReplication" return="boolean"
  6921. abstract="false" native="false" synchronized="false"
  6922. static="false" final="false" visibility="public"
  6923. deprecated="not deprecated">
  6924. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6925. <param name="replication" type="short"/>
  6926. <exception name="IOException" type="java.io.IOException"/>
  6927. <doc>
  6928. <![CDATA[Set replication for an existing file.
  6929. @param src file name
  6930. @param replication new replication
  6931. @throws IOException
  6932. @return true if successful;
  6933. false if file does not exist or is a directory]]>
  6934. </doc>
  6935. </method>
  6936. <method name="rename" return="boolean"
  6937. abstract="false" native="false" synchronized="false"
  6938. static="false" final="false" visibility="public"
  6939. deprecated="not deprecated">
  6940. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6941. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6942. <exception name="IOException" type="java.io.IOException"/>
  6943. <doc>
  6944. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  6945. or remote DFS.]]>
  6946. </doc>
  6947. </method>
  6948. <method name="delete" return="boolean"
  6949. abstract="false" native="false" synchronized="false"
  6950. static="false" final="false" visibility="public"
  6951. deprecated="not deprecated">
  6952. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6953. <param name="recursive" type="boolean"/>
  6954. <exception name="IOException" type="java.io.IOException"/>
  6955. <doc>
  6956. <![CDATA[Delete a file]]>
  6957. </doc>
  6958. </method>
  6959. <method name="deleteOnExit" return="boolean"
  6960. abstract="false" native="false" synchronized="false"
  6961. static="false" final="false" visibility="public"
  6962. deprecated="not deprecated">
  6963. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6964. <exception name="IOException" type="java.io.IOException"/>
  6965. <doc>
  6966. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  6967. When the JVM shuts down,
  6968. all FileSystem objects will be closed automatically.
  6969. Then,
  6970. the marked path will be deleted as a result of closing the FileSystem.
  6971. The path has to exist in the file system.
  6972. @param f the path to delete.
  6973. @return true if deleteOnExit is successful, otherwise false.
  6974. @throws IOException]]>
  6975. </doc>
  6976. </method>
  6977. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6978. abstract="false" native="false" synchronized="false"
  6979. static="false" final="false" visibility="public"
  6980. deprecated="not deprecated">
  6981. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6982. <exception name="IOException" type="java.io.IOException"/>
  6983. <doc>
  6984. <![CDATA[List files in a directory.]]>
  6985. </doc>
  6986. </method>
  6987. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  6988. abstract="false" native="false" synchronized="false"
  6989. static="false" final="false" visibility="public"
  6990. deprecated="not deprecated">
  6991. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6992. <exception name="IOException" type="java.io.IOException"/>
  6993. <doc>
  6994. <![CDATA[List files and its block locations in a directory.]]>
  6995. </doc>
  6996. </method>
  6997. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6998. abstract="false" native="false" synchronized="false"
  6999. static="false" final="false" visibility="public"
  7000. deprecated="not deprecated">
  7001. </method>
  7002. <method name="setWorkingDirectory"
  7003. abstract="false" native="false" synchronized="false"
  7004. static="false" final="false" visibility="public"
  7005. deprecated="not deprecated">
  7006. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7007. <doc>
  7008. <![CDATA[Set the current working directory for the given file system. All relative
  7009. paths will be resolved relative to it.
  7010. @param newDir]]>
  7011. </doc>
  7012. </method>
  7013. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7014. abstract="false" native="false" synchronized="false"
  7015. static="false" final="false" visibility="public"
  7016. deprecated="not deprecated">
  7017. <doc>
  7018. <![CDATA[Get the current working directory for the given file system
  7019. @return the directory pathname]]>
  7020. </doc>
  7021. </method>
  7022. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7023. abstract="false" native="false" synchronized="false"
  7024. static="false" final="false" visibility="protected"
  7025. deprecated="not deprecated">
  7026. </method>
  7027. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  7028. abstract="false" native="false" synchronized="false"
  7029. static="false" final="false" visibility="public"
  7030. deprecated="not deprecated">
  7031. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7032. <exception name="IOException" type="java.io.IOException"/>
  7033. <doc>
  7034. <![CDATA[{@inheritDoc}]]>
  7035. </doc>
  7036. </method>
  7037. <method name="mkdirs" return="boolean"
  7038. abstract="false" native="false" synchronized="false"
  7039. static="false" final="false" visibility="public"
  7040. deprecated="not deprecated">
  7041. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7042. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7043. <exception name="IOException" type="java.io.IOException"/>
  7044. <doc>
  7045. <![CDATA[{@inheritDoc}]]>
  7046. </doc>
  7047. </method>
  7048. <method name="copyFromLocalFile"
  7049. abstract="false" native="false" synchronized="false"
  7050. static="false" final="false" visibility="public"
  7051. deprecated="not deprecated">
  7052. <param name="delSrc" type="boolean"/>
  7053. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7054. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7055. <exception name="IOException" type="java.io.IOException"/>
  7056. <doc>
  7057. <![CDATA[The src file is on the local disk. Add it to FS at
  7058. the given dst name.
  7059. delSrc indicates if the source should be removed]]>
  7060. </doc>
  7061. </method>
  7062. <method name="copyFromLocalFile"
  7063. abstract="false" native="false" synchronized="false"
  7064. static="false" final="false" visibility="public"
  7065. deprecated="not deprecated">
  7066. <param name="delSrc" type="boolean"/>
  7067. <param name="overwrite" type="boolean"/>
  7068. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  7069. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7070. <exception name="IOException" type="java.io.IOException"/>
  7071. <doc>
  7072. <![CDATA[The src files are on the local disk. Add it to FS at
  7073. the given dst name.
  7074. delSrc indicates if the source should be removed]]>
  7075. </doc>
  7076. </method>
  7077. <method name="copyFromLocalFile"
  7078. abstract="false" native="false" synchronized="false"
  7079. static="false" final="false" visibility="public"
  7080. deprecated="not deprecated">
  7081. <param name="delSrc" type="boolean"/>
  7082. <param name="overwrite" type="boolean"/>
  7083. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7084. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7085. <exception name="IOException" type="java.io.IOException"/>
  7086. <doc>
  7087. <![CDATA[The src file is on the local disk. Add it to FS at
  7088. the given dst name.
  7089. delSrc indicates if the source should be removed]]>
  7090. </doc>
  7091. </method>
  7092. <method name="copyToLocalFile"
  7093. abstract="false" native="false" synchronized="false"
  7094. static="false" final="false" visibility="public"
  7095. deprecated="not deprecated">
  7096. <param name="delSrc" type="boolean"/>
  7097. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7098. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7099. <exception name="IOException" type="java.io.IOException"/>
  7100. <doc>
  7101. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7102. Copy it from FS control to the local dst name.
  7103. delSrc indicates if the src will be removed or not.]]>
  7104. </doc>
  7105. </method>
  7106. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7107. abstract="false" native="false" synchronized="false"
  7108. static="false" final="false" visibility="public"
  7109. deprecated="not deprecated">
  7110. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7111. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7112. <exception name="IOException" type="java.io.IOException"/>
  7113. <doc>
  7114. <![CDATA[Returns a local File that the user can write output to. The caller
  7115. provides both the eventual FS target name and the local working
  7116. file. If the FS is local, we write directly into the target. If
  7117. the FS is remote, we write into the tmp local area.]]>
  7118. </doc>
  7119. </method>
  7120. <method name="completeLocalOutput"
  7121. abstract="false" native="false" synchronized="false"
  7122. static="false" final="false" visibility="public"
  7123. deprecated="not deprecated">
  7124. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7125. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7126. <exception name="IOException" type="java.io.IOException"/>
  7127. <doc>
  7128. <![CDATA[Called when we're all done writing to the target. A local FS will
  7129. do nothing, because we've written to exactly the right place. A remote
  7130. FS will copy the contents of tmpLocalFile to the correct target at
  7131. fsOutputFile.]]>
  7132. </doc>
  7133. </method>
  7134. <method name="getUsed" return="long"
  7135. abstract="false" native="false" synchronized="false"
  7136. static="false" final="false" visibility="public"
  7137. deprecated="not deprecated">
  7138. <exception name="IOException" type="java.io.IOException"/>
  7139. <doc>
  7140. <![CDATA[Return the total size of all files in the filesystem.]]>
  7141. </doc>
  7142. </method>
  7143. <method name="getDefaultBlockSize" return="long"
  7144. abstract="false" native="false" synchronized="false"
  7145. static="false" final="false" visibility="public"
  7146. deprecated="not deprecated">
  7147. <doc>
  7148. <![CDATA[Return the number of bytes that large input files should be optimally
  7149. be split into to minimize i/o time.]]>
  7150. </doc>
  7151. </method>
  7152. <method name="getDefaultReplication" return="short"
  7153. abstract="false" native="false" synchronized="false"
  7154. static="false" final="false" visibility="public"
  7155. deprecated="not deprecated">
  7156. <doc>
  7157. <![CDATA[Get the default replication.]]>
  7158. </doc>
  7159. </method>
  7160. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7161. abstract="false" native="false" synchronized="false"
  7162. static="false" final="false" visibility="public"
  7163. deprecated="not deprecated">
  7164. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7165. <exception name="IOException" type="java.io.IOException"/>
  7166. <doc>
  7167. <![CDATA[Get file status.]]>
  7168. </doc>
  7169. </method>
  7170. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  7171. abstract="false" native="false" synchronized="false"
  7172. static="false" final="false" visibility="public"
  7173. deprecated="not deprecated">
  7174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7175. <exception name="IOException" type="java.io.IOException"/>
  7176. <doc>
  7177. <![CDATA[{@inheritDoc}]]>
  7178. </doc>
  7179. </method>
  7180. <method name="setVerifyChecksum"
  7181. abstract="false" native="false" synchronized="false"
  7182. static="false" final="false" visibility="public"
  7183. deprecated="not deprecated">
  7184. <param name="verifyChecksum" type="boolean"/>
  7185. <doc>
  7186. <![CDATA[{@inheritDoc}]]>
  7187. </doc>
  7188. </method>
  7189. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  7190. abstract="false" native="false" synchronized="false"
  7191. static="false" final="false" visibility="public"
  7192. deprecated="not deprecated">
  7193. </method>
  7194. <method name="close"
  7195. abstract="false" native="false" synchronized="false"
  7196. static="false" final="false" visibility="public"
  7197. deprecated="not deprecated">
  7198. <exception name="IOException" type="java.io.IOException"/>
  7199. </method>
  7200. <method name="setOwner"
  7201. abstract="false" native="false" synchronized="false"
  7202. static="false" final="false" visibility="public"
  7203. deprecated="not deprecated">
  7204. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7205. <param name="username" type="java.lang.String"/>
  7206. <param name="groupname" type="java.lang.String"/>
  7207. <exception name="IOException" type="java.io.IOException"/>
  7208. <doc>
  7209. <![CDATA[{@inheritDoc}]]>
  7210. </doc>
  7211. </method>
  7212. <method name="setTimes"
  7213. abstract="false" native="false" synchronized="false"
  7214. static="false" final="false" visibility="public"
  7215. deprecated="not deprecated">
  7216. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7217. <param name="mtime" type="long"/>
  7218. <param name="atime" type="long"/>
  7219. <exception name="IOException" type="java.io.IOException"/>
  7220. <doc>
  7221. <![CDATA[{@inheritDoc}]]>
  7222. </doc>
  7223. </method>
  7224. <method name="setPermission"
  7225. abstract="false" native="false" synchronized="false"
  7226. static="false" final="false" visibility="public"
  7227. deprecated="not deprecated">
  7228. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7229. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7230. <exception name="IOException" type="java.io.IOException"/>
  7231. <doc>
  7232. <![CDATA[{@inheritDoc}]]>
  7233. </doc>
  7234. </method>
  7235. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  7236. abstract="false" native="false" synchronized="false"
  7237. static="false" final="false" visibility="protected"
  7238. deprecated="not deprecated">
  7239. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7240. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7241. <param name="flag" type="java.util.EnumSet"/>
  7242. <param name="bufferSize" type="int"/>
  7243. <param name="replication" type="short"/>
  7244. <param name="blockSize" type="long"/>
  7245. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7246. <param name="bytesPerChecksum" type="int"/>
  7247. <exception name="IOException" type="java.io.IOException"/>
  7248. </method>
  7249. <method name="primitiveMkdir" return="boolean"
  7250. abstract="false" native="false" synchronized="false"
  7251. static="false" final="false" visibility="protected"
  7252. deprecated="not deprecated">
  7253. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7254. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7255. <exception name="IOException" type="java.io.IOException"/>
  7256. </method>
  7257. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  7258. transient="false" volatile="false"
  7259. static="false" final="false" visibility="protected"
  7260. deprecated="not deprecated">
  7261. </field>
  7262. <doc>
  7263. <![CDATA[A <code>FilterFileSystem</code> contains
  7264. some other file system, which it uses as
  7265. its basic file system, possibly transforming
  7266. the data along the way or providing additional
  7267. functionality. The class <code>FilterFileSystem</code>
  7268. itself simply overrides all methods of
  7269. <code>FileSystem</code> with versions that
  7270. pass all requests to the contained file
  7271. system. Subclasses of <code>FilterFileSystem</code>
  7272. may further override some of these methods
  7273. and may also provide additional methods
  7274. and fields.]]>
  7275. </doc>
  7276. </class>
  7277. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  7278. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  7279. <interface name="FsConstants" abstract="true"
  7280. static="false" final="false" visibility="public"
  7281. deprecated="not deprecated">
  7282. <field name="LOCAL_FS_URI" type="java.net.URI"
  7283. transient="false" volatile="false"
  7284. static="true" final="true" visibility="public"
  7285. deprecated="not deprecated">
  7286. </field>
  7287. <field name="FTP_SCHEME" type="java.lang.String"
  7288. transient="false" volatile="false"
  7289. static="true" final="true" visibility="public"
  7290. deprecated="not deprecated">
  7291. </field>
  7292. <field name="VIEWFS_URI" type="java.net.URI"
  7293. transient="false" volatile="false"
  7294. static="true" final="true" visibility="public"
  7295. deprecated="not deprecated">
  7296. <doc>
  7297. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  7298. </doc>
  7299. </field>
  7300. <field name="VIEWFS_SCHEME" type="java.lang.String"
  7301. transient="false" volatile="false"
  7302. static="true" final="true" visibility="public"
  7303. deprecated="not deprecated">
  7304. </field>
  7305. <doc>
  7306. <![CDATA[FileSystem related constants.]]>
  7307. </doc>
  7308. </interface>
  7309. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  7310. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  7311. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  7312. abstract="false"
  7313. static="false" final="false" visibility="public"
  7314. deprecated="not deprecated">
  7315. <implements name="org.apache.hadoop.fs.Seekable"/>
  7316. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  7317. <implements name="java.io.Closeable"/>
  7318. <constructor name="FSDataInputStream" type="java.io.InputStream"
  7319. static="false" final="false" visibility="public"
  7320. deprecated="not deprecated">
  7321. <exception name="IOException" type="java.io.IOException"/>
  7322. </constructor>
  7323. <method name="seek"
  7324. abstract="false" native="false" synchronized="true"
  7325. static="false" final="false" visibility="public"
  7326. deprecated="not deprecated">
  7327. <param name="desired" type="long"/>
  7328. <exception name="IOException" type="java.io.IOException"/>
  7329. </method>
  7330. <method name="getPos" return="long"
  7331. abstract="false" native="false" synchronized="false"
  7332. static="false" final="false" visibility="public"
  7333. deprecated="not deprecated">
  7334. <exception name="IOException" type="java.io.IOException"/>
  7335. </method>
  7336. <method name="read" return="int"
  7337. abstract="false" native="false" synchronized="false"
  7338. static="false" final="false" visibility="public"
  7339. deprecated="not deprecated">
  7340. <param name="position" type="long"/>
  7341. <param name="buffer" type="byte[]"/>
  7342. <param name="offset" type="int"/>
  7343. <param name="length" type="int"/>
  7344. <exception name="IOException" type="java.io.IOException"/>
  7345. </method>
  7346. <method name="readFully"
  7347. abstract="false" native="false" synchronized="false"
  7348. static="false" final="false" visibility="public"
  7349. deprecated="not deprecated">
  7350. <param name="position" type="long"/>
  7351. <param name="buffer" type="byte[]"/>
  7352. <param name="offset" type="int"/>
  7353. <param name="length" type="int"/>
  7354. <exception name="IOException" type="java.io.IOException"/>
  7355. </method>
  7356. <method name="readFully"
  7357. abstract="false" native="false" synchronized="false"
  7358. static="false" final="false" visibility="public"
  7359. deprecated="not deprecated">
  7360. <param name="position" type="long"/>
  7361. <param name="buffer" type="byte[]"/>
  7362. <exception name="IOException" type="java.io.IOException"/>
  7363. </method>
  7364. <method name="seekToNewSource" return="boolean"
  7365. abstract="false" native="false" synchronized="false"
  7366. static="false" final="false" visibility="public"
  7367. deprecated="not deprecated">
  7368. <param name="targetPos" type="long"/>
  7369. <exception name="IOException" type="java.io.IOException"/>
  7370. </method>
  7371. <doc>
  7372. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  7373. and buffers input through a {@link BufferedInputStream}.]]>
  7374. </doc>
  7375. </class>
  7376. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  7377. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  7378. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  7379. abstract="false"
  7380. static="false" final="false" visibility="public"
  7381. deprecated="not deprecated">
  7382. <implements name="org.apache.hadoop.fs.Syncable"/>
  7383. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  7384. static="false" final="false" visibility="public"
  7385. deprecated="not deprecated">
  7386. <exception name="IOException" type="java.io.IOException"/>
  7387. </constructor>
  7388. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  7389. static="false" final="false" visibility="public"
  7390. deprecated="not deprecated">
  7391. <exception name="IOException" type="java.io.IOException"/>
  7392. </constructor>
  7393. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  7394. static="false" final="false" visibility="public"
  7395. deprecated="not deprecated">
  7396. <exception name="IOException" type="java.io.IOException"/>
  7397. </constructor>
  7398. <method name="getPos" return="long"
  7399. abstract="false" native="false" synchronized="false"
  7400. static="false" final="false" visibility="public"
  7401. deprecated="not deprecated">
  7402. <exception name="IOException" type="java.io.IOException"/>
  7403. </method>
  7404. <method name="close"
  7405. abstract="false" native="false" synchronized="false"
  7406. static="false" final="false" visibility="public"
  7407. deprecated="not deprecated">
  7408. <exception name="IOException" type="java.io.IOException"/>
  7409. </method>
  7410. <method name="getWrappedStream" return="java.io.OutputStream"
  7411. abstract="false" native="false" synchronized="false"
  7412. static="false" final="false" visibility="public"
  7413. deprecated="not deprecated">
  7414. </method>
  7415. <method name="sync"
  7416. abstract="false" native="false" synchronized="false"
  7417. static="false" final="false" visibility="public"
  7418. deprecated="not deprecated">
  7419. <exception name="IOException" type="java.io.IOException"/>
  7420. </method>
  7421. <method name="hflush"
  7422. abstract="false" native="false" synchronized="false"
  7423. static="false" final="false" visibility="public"
  7424. deprecated="not deprecated">
  7425. <exception name="IOException" type="java.io.IOException"/>
  7426. </method>
  7427. <method name="hsync"
  7428. abstract="false" native="false" synchronized="false"
  7429. static="false" final="false" visibility="public"
  7430. deprecated="not deprecated">
  7431. <exception name="IOException" type="java.io.IOException"/>
  7432. </method>
  7433. <doc>
  7434. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  7435. buffers output through a {@link BufferedOutputStream} and creates a checksum
  7436. file.]]>
  7437. </doc>
  7438. </class>
  7439. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  7440. <!-- start class org.apache.hadoop.fs.FSError -->
  7441. <class name="FSError" extends="java.lang.Error"
  7442. abstract="false"
  7443. static="false" final="false" visibility="public"
  7444. deprecated="not deprecated">
  7445. <doc>
  7446. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  7447. in the native filesystem.]]>
  7448. </doc>
  7449. </class>
  7450. <!-- end class org.apache.hadoop.fs.FSError -->
  7451. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  7452. <class name="FsServerDefaults" extends="java.lang.Object"
  7453. abstract="false"
  7454. static="false" final="false" visibility="public"
  7455. deprecated="not deprecated">
  7456. <implements name="org.apache.hadoop.io.Writable"/>
  7457. <constructor name="FsServerDefaults"
  7458. static="false" final="false" visibility="public"
  7459. deprecated="not deprecated">
  7460. </constructor>
  7461. <constructor name="FsServerDefaults" type="long, int, int, short, int"
  7462. static="false" final="false" visibility="public"
  7463. deprecated="not deprecated">
  7464. </constructor>
  7465. <method name="getBlockSize" return="long"
  7466. abstract="false" native="false" synchronized="false"
  7467. static="false" final="false" visibility="public"
  7468. deprecated="not deprecated">
  7469. </method>
  7470. <method name="getBytesPerChecksum" return="int"
  7471. abstract="false" native="false" synchronized="false"
  7472. static="false" final="false" visibility="public"
  7473. deprecated="not deprecated">
  7474. </method>
  7475. <method name="getWritePacketSize" return="int"
  7476. abstract="false" native="false" synchronized="false"
  7477. static="false" final="false" visibility="public"
  7478. deprecated="not deprecated">
  7479. </method>
  7480. <method name="getReplication" return="short"
  7481. abstract="false" native="false" synchronized="false"
  7482. static="false" final="false" visibility="public"
  7483. deprecated="not deprecated">
  7484. </method>
  7485. <method name="getFileBufferSize" return="int"
  7486. abstract="false" native="false" synchronized="false"
  7487. static="false" final="false" visibility="public"
  7488. deprecated="not deprecated">
  7489. </method>
  7490. <method name="write"
  7491. abstract="false" native="false" synchronized="false"
  7492. static="false" final="false" visibility="public"
  7493. deprecated="not deprecated">
  7494. <param name="out" type="java.io.DataOutput"/>
  7495. <exception name="IOException" type="java.io.IOException"/>
  7496. </method>
  7497. <method name="readFields"
  7498. abstract="false" native="false" synchronized="false"
  7499. static="false" final="false" visibility="public"
  7500. deprecated="not deprecated">
  7501. <param name="in" type="java.io.DataInput"/>
  7502. <exception name="IOException" type="java.io.IOException"/>
  7503. </method>
  7504. <doc>
  7505. <![CDATA[Provides server default configuration values to clients.]]>
  7506. </doc>
  7507. </class>
  7508. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  7509. <!-- start class org.apache.hadoop.fs.FsStatus -->
  7510. <class name="FsStatus" extends="java.lang.Object"
  7511. abstract="false"
  7512. static="false" final="false" visibility="public"
  7513. deprecated="not deprecated">
  7514. <implements name="org.apache.hadoop.io.Writable"/>
  7515. <constructor name="FsStatus" type="long, long, long"
  7516. static="false" final="false" visibility="public"
  7517. deprecated="not deprecated">
  7518. <doc>
  7519. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  7520. </doc>
  7521. </constructor>
  7522. <method name="getCapacity" return="long"
  7523. abstract="false" native="false" synchronized="false"
  7524. static="false" final="false" visibility="public"
  7525. deprecated="not deprecated">
  7526. <doc>
  7527. <![CDATA[Return the capacity in bytes of the file system]]>
  7528. </doc>
  7529. </method>
  7530. <method name="getUsed" return="long"
  7531. abstract="false" native="false" synchronized="false"
  7532. static="false" final="false" visibility="public"
  7533. deprecated="not deprecated">
  7534. <doc>
  7535. <![CDATA[Return the number of bytes used on the file system]]>
  7536. </doc>
  7537. </method>
  7538. <method name="getRemaining" return="long"
  7539. abstract="false" native="false" synchronized="false"
  7540. static="false" final="false" visibility="public"
  7541. deprecated="not deprecated">
  7542. <doc>
  7543. <![CDATA[Return the number of remaining bytes on the file system]]>
  7544. </doc>
  7545. </method>
  7546. <method name="write"
  7547. abstract="false" native="false" synchronized="false"
  7548. static="false" final="false" visibility="public"
  7549. deprecated="not deprecated">
  7550. <param name="out" type="java.io.DataOutput"/>
  7551. <exception name="IOException" type="java.io.IOException"/>
  7552. </method>
  7553. <method name="readFields"
  7554. abstract="false" native="false" synchronized="false"
  7555. static="false" final="false" visibility="public"
  7556. deprecated="not deprecated">
  7557. <param name="in" type="java.io.DataInput"/>
  7558. <exception name="IOException" type="java.io.IOException"/>
  7559. </method>
  7560. <doc>
  7561. <![CDATA[This class is used to represent the capacity, free and used space on a
  7562. {@link FileSystem}.]]>
  7563. </doc>
  7564. </class>
  7565. <!-- end class org.apache.hadoop.fs.FsStatus -->
  7566. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  7567. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  7568. abstract="false"
  7569. static="false" final="false" visibility="public"
  7570. deprecated="not deprecated">
  7571. <constructor name="InvalidPathException" type="java.lang.String"
  7572. static="false" final="false" visibility="public"
  7573. deprecated="not deprecated">
  7574. <doc>
  7575. <![CDATA[Constructs exception with the specified detail message.
  7576. @param path invalid path.]]>
  7577. </doc>
  7578. </constructor>
  7579. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  7580. static="false" final="false" visibility="public"
  7581. deprecated="not deprecated">
  7582. <doc>
  7583. <![CDATA[Constructs exception with the specified detail message.
  7584. @param path invalid path.
  7585. @param reason Reason <code>path</code> is invalid]]>
  7586. </doc>
  7587. </constructor>
  7588. <doc>
  7589. <![CDATA[Path string is invalid either because it has invalid characters or due to
  7590. other file system specific reasons.]]>
  7591. </doc>
  7592. </class>
  7593. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  7594. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  7595. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  7596. abstract="false"
  7597. static="false" final="false" visibility="public"
  7598. deprecated="not deprecated">
  7599. <constructor name="LocalFileSystem"
  7600. static="false" final="false" visibility="public"
  7601. deprecated="not deprecated">
  7602. </constructor>
  7603. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  7604. static="false" final="false" visibility="public"
  7605. deprecated="not deprecated">
  7606. </constructor>
  7607. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  7608. abstract="false" native="false" synchronized="false"
  7609. static="false" final="false" visibility="public"
  7610. deprecated="not deprecated">
  7611. </method>
  7612. <method name="pathToFile" return="java.io.File"
  7613. abstract="false" native="false" synchronized="false"
  7614. static="false" final="false" visibility="public"
  7615. deprecated="not deprecated">
  7616. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7617. <doc>
  7618. <![CDATA[Convert a path to a File.]]>
  7619. </doc>
  7620. </method>
  7621. <method name="copyFromLocalFile"
  7622. abstract="false" native="false" synchronized="false"
  7623. static="false" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. <param name="delSrc" type="boolean"/>
  7626. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7627. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7628. <exception name="IOException" type="java.io.IOException"/>
  7629. </method>
  7630. <method name="copyToLocalFile"
  7631. abstract="false" native="false" synchronized="false"
  7632. static="false" final="false" visibility="public"
  7633. deprecated="not deprecated">
  7634. <param name="delSrc" type="boolean"/>
  7635. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7636. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7637. <exception name="IOException" type="java.io.IOException"/>
  7638. </method>
  7639. <method name="reportChecksumFailure" return="boolean"
  7640. abstract="false" native="false" synchronized="false"
  7641. static="false" final="false" visibility="public"
  7642. deprecated="not deprecated">
  7643. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7644. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  7645. <param name="inPos" type="long"/>
  7646. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  7647. <param name="sumsPos" type="long"/>
  7648. <doc>
  7649. <![CDATA[Moves files to a bad file directory on the same device, so that their
  7650. storage will not be reused.]]>
  7651. </doc>
  7652. </method>
  7653. <doc>
  7654. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  7655. </doc>
  7656. </class>
  7657. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  7658. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  7659. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  7660. abstract="false"
  7661. static="false" final="false" visibility="public"
  7662. deprecated="not deprecated">
  7663. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  7664. static="false" final="false" visibility="public"
  7665. deprecated="not deprecated">
  7666. <exception name="IOException" type="java.io.IOException"/>
  7667. <doc>
  7668. <![CDATA[Constructor
  7669. @param stat a file status
  7670. @param locations a file's block locations]]>
  7671. </doc>
  7672. </constructor>
  7673. <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[]"
  7674. static="false" final="false" visibility="public"
  7675. deprecated="not deprecated">
  7676. <doc>
  7677. <![CDATA[Constructor
  7678. @param length a file's length
  7679. @param isdir if the path is a directory
  7680. @param block_replication the file's replication factor
  7681. @param blocksize a file's block size
  7682. @param modification_time a file's modification time
  7683. @param access_time a file's access time
  7684. @param permission a file's permission
  7685. @param owner a file's owner
  7686. @param group a file's group
  7687. @param symlink symlink if the path is a symbolic link
  7688. @param path the path's qualified name
  7689. @param locations a file's block locations]]>
  7690. </doc>
  7691. </constructor>
  7692. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7693. abstract="false" native="false" synchronized="false"
  7694. static="false" final="false" visibility="public"
  7695. deprecated="not deprecated">
  7696. <doc>
  7697. <![CDATA[Get the file's block locations
  7698. @return the file's block locations]]>
  7699. </doc>
  7700. </method>
  7701. <method name="compareTo" return="int"
  7702. abstract="false" native="false" synchronized="false"
  7703. static="false" final="false" visibility="public"
  7704. deprecated="not deprecated">
  7705. <param name="o" type="java.lang.Object"/>
  7706. <doc>
  7707. <![CDATA[Compare this object to another object
  7708. @param o the object to be compared.
  7709. @return a negative integer, zero, or a positive integer as this object
  7710. is less than, equal to, or greater than the specified object.
  7711. @throws ClassCastException if the specified object's is not of
  7712. type FileStatus]]>
  7713. </doc>
  7714. </method>
  7715. <method name="equals" return="boolean"
  7716. abstract="false" native="false" synchronized="false"
  7717. static="false" final="false" visibility="public"
  7718. deprecated="not deprecated">
  7719. <param name="o" type="java.lang.Object"/>
  7720. <doc>
  7721. <![CDATA[Compare if this object is equal to another object
  7722. @param o the object to be compared.
  7723. @return true if two file status has the same path name; false if not.]]>
  7724. </doc>
  7725. </method>
  7726. <method name="hashCode" return="int"
  7727. abstract="false" native="false" synchronized="false"
  7728. static="false" final="false" visibility="public"
  7729. deprecated="not deprecated">
  7730. <doc>
  7731. <![CDATA[Returns a hash code value for the object, which is defined as
  7732. the hash code of the path name.
  7733. @return a hash code value for the path name.]]>
  7734. </doc>
  7735. </method>
  7736. <doc>
  7737. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  7738. </doc>
  7739. </class>
  7740. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  7741. <!-- start class org.apache.hadoop.fs.Options -->
  7742. <class name="Options" extends="java.lang.Object"
  7743. abstract="false"
  7744. static="false" final="true" visibility="public"
  7745. deprecated="not deprecated">
  7746. <constructor name="Options"
  7747. static="false" final="false" visibility="public"
  7748. deprecated="not deprecated">
  7749. </constructor>
  7750. <doc>
  7751. <![CDATA[This class contains options related to file system operations.]]>
  7752. </doc>
  7753. </class>
  7754. <!-- end class org.apache.hadoop.fs.Options -->
  7755. <!-- start class org.apache.hadoop.fs.Options.CreateOpts -->
  7756. <class name="Options.CreateOpts" extends="java.lang.Object"
  7757. abstract="false"
  7758. static="true" final="false" visibility="public"
  7759. deprecated="not deprecated">
  7760. <method name="blockSize" return="org.apache.hadoop.fs.Options.CreateOpts.BlockSize"
  7761. abstract="false" native="false" synchronized="false"
  7762. static="true" final="false" visibility="public"
  7763. deprecated="not deprecated">
  7764. <param name="bs" type="long"/>
  7765. </method>
  7766. <method name="bufferSize" return="org.apache.hadoop.fs.Options.CreateOpts.BufferSize"
  7767. abstract="false" native="false" synchronized="false"
  7768. static="true" final="false" visibility="public"
  7769. deprecated="not deprecated">
  7770. <param name="bs" type="int"/>
  7771. </method>
  7772. <method name="repFac" return="org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor"
  7773. abstract="false" native="false" synchronized="false"
  7774. static="true" final="false" visibility="public"
  7775. deprecated="not deprecated">
  7776. <param name="rf" type="short"/>
  7777. </method>
  7778. <method name="bytesPerChecksum" return="org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum"
  7779. abstract="false" native="false" synchronized="false"
  7780. static="true" final="false" visibility="public"
  7781. deprecated="not deprecated">
  7782. <param name="crc" type="short"/>
  7783. </method>
  7784. <method name="perms" return="org.apache.hadoop.fs.Options.CreateOpts.Perms"
  7785. abstract="false" native="false" synchronized="false"
  7786. static="true" final="false" visibility="public"
  7787. deprecated="not deprecated">
  7788. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7789. </method>
  7790. <method name="createParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  7791. abstract="false" native="false" synchronized="false"
  7792. static="true" final="false" visibility="public"
  7793. deprecated="not deprecated">
  7794. </method>
  7795. <method name="donotCreateParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  7796. abstract="false" native="false" synchronized="false"
  7797. static="true" final="false" visibility="public"
  7798. deprecated="not deprecated">
  7799. </method>
  7800. <method name="getOpt" return="org.apache.hadoop.fs.Options.CreateOpts"
  7801. abstract="false" native="false" synchronized="false"
  7802. static="true" final="false" visibility="protected"
  7803. deprecated="not deprecated">
  7804. <param name="theClass" type="java.lang.Class"/>
  7805. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  7806. <doc>
  7807. <![CDATA[Get an option of desired type
  7808. @param theClass is the desired class of the opt
  7809. @param opts - not null - at least one opt must be passed
  7810. @return an opt from one of the opts of type theClass.
  7811. returns null if there isn't any]]>
  7812. </doc>
  7813. </method>
  7814. <method name="setOpt" return="org.apache.hadoop.fs.Options.CreateOpts[]"
  7815. abstract="false" native="false" synchronized="false"
  7816. static="true" final="false" visibility="protected"
  7817. deprecated="not deprecated">
  7818. <param name="newValue" type="T"/>
  7819. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  7820. <doc>
  7821. <![CDATA[set an option
  7822. @param newValue the option to be set
  7823. @param opts - the option is set into this array of opts
  7824. @return updated CreateOpts[] == opts + newValue]]>
  7825. </doc>
  7826. </method>
  7827. <doc>
  7828. <![CDATA[Class to support the varargs for create() options.]]>
  7829. </doc>
  7830. </class>
  7831. <!-- end class org.apache.hadoop.fs.Options.CreateOpts -->
  7832. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  7833. <class name="Options.CreateOpts.BlockSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7834. abstract="false"
  7835. static="true" final="false" visibility="public"
  7836. deprecated="not deprecated">
  7837. <constructor name="Options.CreateOpts.BlockSize" type="long"
  7838. static="false" final="false" visibility="protected"
  7839. deprecated="not deprecated">
  7840. </constructor>
  7841. <method name="getValue" return="long"
  7842. abstract="false" native="false" synchronized="false"
  7843. static="false" final="false" visibility="public"
  7844. deprecated="not deprecated">
  7845. </method>
  7846. </class>
  7847. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  7848. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  7849. <class name="Options.CreateOpts.BufferSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7850. abstract="false"
  7851. static="true" final="false" visibility="public"
  7852. deprecated="not deprecated">
  7853. <constructor name="Options.CreateOpts.BufferSize" type="int"
  7854. static="false" final="false" visibility="protected"
  7855. deprecated="not deprecated">
  7856. </constructor>
  7857. <method name="getValue" return="int"
  7858. abstract="false" native="false" synchronized="false"
  7859. static="false" final="false" visibility="public"
  7860. deprecated="not deprecated">
  7861. </method>
  7862. </class>
  7863. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  7864. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  7865. <class name="Options.CreateOpts.BytesPerChecksum" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7866. abstract="false"
  7867. static="true" final="false" visibility="public"
  7868. deprecated="not deprecated">
  7869. <constructor name="Options.CreateOpts.BytesPerChecksum" type="short"
  7870. static="false" final="false" visibility="protected"
  7871. deprecated="not deprecated">
  7872. </constructor>
  7873. <method name="getValue" return="int"
  7874. abstract="false" native="false" synchronized="false"
  7875. static="false" final="false" visibility="public"
  7876. deprecated="not deprecated">
  7877. </method>
  7878. </class>
  7879. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  7880. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  7881. <class name="Options.CreateOpts.CreateParent" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7882. abstract="false"
  7883. static="true" final="false" visibility="public"
  7884. deprecated="not deprecated">
  7885. <constructor name="Options.CreateOpts.CreateParent" type="boolean"
  7886. static="false" final="false" visibility="protected"
  7887. deprecated="not deprecated">
  7888. </constructor>
  7889. <method name="getValue" return="boolean"
  7890. abstract="false" native="false" synchronized="false"
  7891. static="false" final="false" visibility="public"
  7892. deprecated="not deprecated">
  7893. </method>
  7894. </class>
  7895. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  7896. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  7897. <class name="Options.CreateOpts.Perms" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7898. abstract="false"
  7899. static="true" final="false" visibility="public"
  7900. deprecated="not deprecated">
  7901. <constructor name="Options.CreateOpts.Perms" type="org.apache.hadoop.fs.permission.FsPermission"
  7902. static="false" final="false" visibility="protected"
  7903. deprecated="not deprecated">
  7904. </constructor>
  7905. <method name="getValue" return="org.apache.hadoop.fs.permission.FsPermission"
  7906. abstract="false" native="false" synchronized="false"
  7907. static="false" final="false" visibility="public"
  7908. deprecated="not deprecated">
  7909. </method>
  7910. </class>
  7911. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  7912. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  7913. <class name="Options.CreateOpts.Progress" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7914. abstract="false"
  7915. static="true" final="false" visibility="public"
  7916. deprecated="not deprecated">
  7917. <constructor name="Options.CreateOpts.Progress" type="org.apache.hadoop.util.Progressable"
  7918. static="false" final="false" visibility="protected"
  7919. deprecated="not deprecated">
  7920. </constructor>
  7921. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  7922. abstract="false" native="false" synchronized="false"
  7923. static="false" final="false" visibility="public"
  7924. deprecated="not deprecated">
  7925. </method>
  7926. </class>
  7927. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  7928. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  7929. <class name="Options.CreateOpts.ReplicationFactor" extends="org.apache.hadoop.fs.Options.CreateOpts"
  7930. abstract="false"
  7931. static="true" final="false" visibility="public"
  7932. deprecated="not deprecated">
  7933. <constructor name="Options.CreateOpts.ReplicationFactor" type="short"
  7934. static="false" final="false" visibility="protected"
  7935. deprecated="not deprecated">
  7936. </constructor>
  7937. <method name="getValue" return="short"
  7938. abstract="false" native="false" synchronized="false"
  7939. static="false" final="false" visibility="public"
  7940. deprecated="not deprecated">
  7941. </method>
  7942. </class>
  7943. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  7944. <!-- start class org.apache.hadoop.fs.Options.Rename -->
  7945. <class name="Options.Rename" extends="java.lang.Enum"
  7946. abstract="false"
  7947. static="true" final="true" visibility="public"
  7948. deprecated="not deprecated">
  7949. <method name="values" return="org.apache.hadoop.fs.Options.Rename[]"
  7950. abstract="false" native="false" synchronized="false"
  7951. static="true" final="false" visibility="public"
  7952. deprecated="not deprecated">
  7953. </method>
  7954. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  7955. abstract="false" native="false" synchronized="false"
  7956. static="true" final="false" visibility="public"
  7957. deprecated="not deprecated">
  7958. <param name="name" type="java.lang.String"/>
  7959. </method>
  7960. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  7961. abstract="false" native="false" synchronized="false"
  7962. static="true" final="false" visibility="public"
  7963. deprecated="not deprecated">
  7964. <param name="code" type="byte"/>
  7965. </method>
  7966. <method name="value" return="byte"
  7967. abstract="false" native="false" synchronized="false"
  7968. static="false" final="false" visibility="public"
  7969. deprecated="not deprecated">
  7970. </method>
  7971. <doc>
  7972. <![CDATA[Enum to support the varargs for rename() options]]>
  7973. </doc>
  7974. </class>
  7975. <!-- end class org.apache.hadoop.fs.Options.Rename -->
  7976. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  7977. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  7978. abstract="false"
  7979. static="false" final="false" visibility="public"
  7980. deprecated="not deprecated">
  7981. <constructor name="ParentNotDirectoryException"
  7982. static="false" final="false" visibility="public"
  7983. deprecated="not deprecated">
  7984. </constructor>
  7985. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  7986. static="false" final="false" visibility="public"
  7987. deprecated="not deprecated">
  7988. </constructor>
  7989. <doc>
  7990. <![CDATA[Indicates that the parent of specified Path is not a directory
  7991. as expected.]]>
  7992. </doc>
  7993. </class>
  7994. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  7995. <!-- start class org.apache.hadoop.fs.Path -->
  7996. <class name="Path" extends="java.lang.Object"
  7997. abstract="false"
  7998. static="false" final="false" visibility="public"
  7999. deprecated="not deprecated">
  8000. <implements name="java.lang.Comparable"/>
  8001. <constructor name="Path" type="java.lang.String, java.lang.String"
  8002. static="false" final="false" visibility="public"
  8003. deprecated="not deprecated">
  8004. <doc>
  8005. <![CDATA[Resolve a child path against a parent path.]]>
  8006. </doc>
  8007. </constructor>
  8008. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  8009. static="false" final="false" visibility="public"
  8010. deprecated="not deprecated">
  8011. <doc>
  8012. <![CDATA[Resolve a child path against a parent path.]]>
  8013. </doc>
  8014. </constructor>
  8015. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  8016. static="false" final="false" visibility="public"
  8017. deprecated="not deprecated">
  8018. <doc>
  8019. <![CDATA[Resolve a child path against a parent path.]]>
  8020. </doc>
  8021. </constructor>
  8022. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  8023. static="false" final="false" visibility="public"
  8024. deprecated="not deprecated">
  8025. <doc>
  8026. <![CDATA[Resolve a child path against a parent path.]]>
  8027. </doc>
  8028. </constructor>
  8029. <constructor name="Path" type="java.lang.String"
  8030. static="false" final="false" visibility="public"
  8031. deprecated="not deprecated">
  8032. <doc>
  8033. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  8034. unescaped elements and some additional normalization.]]>
  8035. </doc>
  8036. </constructor>
  8037. <constructor name="Path" type="java.net.URI"
  8038. static="false" final="false" visibility="public"
  8039. deprecated="not deprecated">
  8040. <doc>
  8041. <![CDATA[Construct a path from a URI]]>
  8042. </doc>
  8043. </constructor>
  8044. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  8045. static="false" final="false" visibility="public"
  8046. deprecated="not deprecated">
  8047. <doc>
  8048. <![CDATA[Construct a Path from components.]]>
  8049. </doc>
  8050. </constructor>
  8051. <method name="toUri" return="java.net.URI"
  8052. abstract="false" native="false" synchronized="false"
  8053. static="false" final="false" visibility="public"
  8054. deprecated="not deprecated">
  8055. <doc>
  8056. <![CDATA[Convert this to a URI.]]>
  8057. </doc>
  8058. </method>
  8059. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  8060. abstract="false" native="false" synchronized="false"
  8061. static="false" final="false" visibility="public"
  8062. deprecated="not deprecated">
  8063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8064. <exception name="IOException" type="java.io.IOException"/>
  8065. <doc>
  8066. <![CDATA[Return the FileSystem that owns this Path.]]>
  8067. </doc>
  8068. </method>
  8069. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  8070. abstract="false" native="false" synchronized="false"
  8071. static="false" final="false" visibility="public"
  8072. deprecated="not deprecated">
  8073. <doc>
  8074. <![CDATA[Is an absolute path (ie a slash relative path part)
  8075. AND a scheme is null AND authority is null.]]>
  8076. </doc>
  8077. </method>
  8078. <method name="isUriPathAbsolute" return="boolean"
  8079. abstract="false" native="false" synchronized="false"
  8080. static="false" final="false" visibility="public"
  8081. deprecated="not deprecated">
  8082. <doc>
  8083. <![CDATA[True if the path component (i.e. directory) of this URI is absolute.]]>
  8084. </doc>
  8085. </method>
  8086. <method name="isAbsolute" return="boolean"
  8087. abstract="false" native="false" synchronized="false"
  8088. static="false" final="false" visibility="public"
  8089. deprecated="not deprecated">
  8090. <doc>
  8091. <![CDATA[There is some ambiguity here. An absolute path is a slash
  8092. relative name without a scheme or an authority.
  8093. So either this method was incorrectly named or its
  8094. implementation is incorrect. This method returns true
  8095. even if there is a scheme and authority.]]>
  8096. </doc>
  8097. </method>
  8098. <method name="getName" return="java.lang.String"
  8099. abstract="false" native="false" synchronized="false"
  8100. static="false" final="false" visibility="public"
  8101. deprecated="not deprecated">
  8102. <doc>
  8103. <![CDATA[Returns the final component of this path.]]>
  8104. </doc>
  8105. </method>
  8106. <method name="getParent" return="org.apache.hadoop.fs.Path"
  8107. abstract="false" native="false" synchronized="false"
  8108. static="false" final="false" visibility="public"
  8109. deprecated="not deprecated">
  8110. <doc>
  8111. <![CDATA[Returns the parent of a path or null if at root.]]>
  8112. </doc>
  8113. </method>
  8114. <method name="suffix" return="org.apache.hadoop.fs.Path"
  8115. abstract="false" native="false" synchronized="false"
  8116. static="false" final="false" visibility="public"
  8117. deprecated="not deprecated">
  8118. <param name="suffix" type="java.lang.String"/>
  8119. <doc>
  8120. <![CDATA[Adds a suffix to the final name in the path.]]>
  8121. </doc>
  8122. </method>
  8123. <method name="toString" return="java.lang.String"
  8124. abstract="false" native="false" synchronized="false"
  8125. static="false" final="false" visibility="public"
  8126. deprecated="not deprecated">
  8127. </method>
  8128. <method name="equals" return="boolean"
  8129. abstract="false" native="false" synchronized="false"
  8130. static="false" final="false" visibility="public"
  8131. deprecated="not deprecated">
  8132. <param name="o" type="java.lang.Object"/>
  8133. </method>
  8134. <method name="hashCode" return="int"
  8135. abstract="false" native="false" synchronized="false"
  8136. static="false" final="false" visibility="public"
  8137. deprecated="not deprecated">
  8138. </method>
  8139. <method name="compareTo" return="int"
  8140. abstract="false" native="false" synchronized="false"
  8141. static="false" final="false" visibility="public"
  8142. deprecated="not deprecated">
  8143. <param name="o" type="java.lang.Object"/>
  8144. </method>
  8145. <method name="depth" return="int"
  8146. abstract="false" native="false" synchronized="false"
  8147. static="false" final="false" visibility="public"
  8148. deprecated="not deprecated">
  8149. <doc>
  8150. <![CDATA[Return the number of elements in this path.]]>
  8151. </doc>
  8152. </method>
  8153. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8154. abstract="false" native="false" synchronized="false"
  8155. static="false" final="false" visibility="public"
  8156. deprecated="not deprecated">
  8157. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8158. <doc>
  8159. <![CDATA[Returns a qualified path object.
  8160. Deprecated - use {@link #makeQualified(URI, Path)}]]>
  8161. </doc>
  8162. </method>
  8163. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8164. abstract="false" native="false" synchronized="false"
  8165. static="false" final="false" visibility="public"
  8166. deprecated="not deprecated">
  8167. <param name="defaultUri" type="java.net.URI"/>
  8168. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  8169. <doc>
  8170. <![CDATA[Returns a qualified path object.]]>
  8171. </doc>
  8172. </method>
  8173. <field name="SEPARATOR" type="java.lang.String"
  8174. transient="false" volatile="false"
  8175. static="true" final="true" visibility="public"
  8176. deprecated="not deprecated">
  8177. <doc>
  8178. <![CDATA[The directory separator, a slash.]]>
  8179. </doc>
  8180. </field>
  8181. <field name="SEPARATOR_CHAR" type="char"
  8182. transient="false" volatile="false"
  8183. static="true" final="true" visibility="public"
  8184. deprecated="not deprecated">
  8185. </field>
  8186. <field name="CUR_DIR" type="java.lang.String"
  8187. transient="false" volatile="false"
  8188. static="true" final="true" visibility="public"
  8189. deprecated="not deprecated">
  8190. </field>
  8191. <doc>
  8192. <![CDATA[Names a file or directory in a {@link FileSystem}.
  8193. Path strings use slash as the directory separator. A path string is
  8194. absolute if it begins with a slash.]]>
  8195. </doc>
  8196. </class>
  8197. <!-- end class org.apache.hadoop.fs.Path -->
  8198. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  8199. <interface name="PathFilter" abstract="true"
  8200. static="false" final="false" visibility="public"
  8201. deprecated="not deprecated">
  8202. <method name="accept" return="boolean"
  8203. abstract="false" native="false" synchronized="false"
  8204. static="false" final="false" visibility="public"
  8205. deprecated="not deprecated">
  8206. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8207. <doc>
  8208. <![CDATA[Tests whether or not the specified abstract pathname should be
  8209. included in a pathname list.
  8210. @param path The abstract pathname to be tested
  8211. @return <code>true</code> if and only if <code>pathname</code>
  8212. should be included]]>
  8213. </doc>
  8214. </method>
  8215. </interface>
  8216. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  8217. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  8218. <interface name="PositionedReadable" abstract="true"
  8219. static="false" final="false" visibility="public"
  8220. deprecated="not deprecated">
  8221. <method name="read" return="int"
  8222. abstract="false" native="false" synchronized="false"
  8223. static="false" final="false" visibility="public"
  8224. deprecated="not deprecated">
  8225. <param name="position" type="long"/>
  8226. <param name="buffer" type="byte[]"/>
  8227. <param name="offset" type="int"/>
  8228. <param name="length" type="int"/>
  8229. <exception name="IOException" type="java.io.IOException"/>
  8230. <doc>
  8231. <![CDATA[Read upto the specified number of bytes, from a given
  8232. position within a file, and return the number of bytes read. This does not
  8233. change the current offset of a file, and is thread-safe.]]>
  8234. </doc>
  8235. </method>
  8236. <method name="readFully"
  8237. abstract="false" native="false" synchronized="false"
  8238. static="false" final="false" visibility="public"
  8239. deprecated="not deprecated">
  8240. <param name="position" type="long"/>
  8241. <param name="buffer" type="byte[]"/>
  8242. <param name="offset" type="int"/>
  8243. <param name="length" type="int"/>
  8244. <exception name="IOException" type="java.io.IOException"/>
  8245. <doc>
  8246. <![CDATA[Read the specified number of bytes, from a given
  8247. position within a file. This does not
  8248. change the current offset of a file, and is thread-safe.]]>
  8249. </doc>
  8250. </method>
  8251. <method name="readFully"
  8252. abstract="false" native="false" synchronized="false"
  8253. static="false" final="false" visibility="public"
  8254. deprecated="not deprecated">
  8255. <param name="position" type="long"/>
  8256. <param name="buffer" type="byte[]"/>
  8257. <exception name="IOException" type="java.io.IOException"/>
  8258. <doc>
  8259. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  8260. position within a file. This does not
  8261. change the current offset of a file, and is thread-safe.]]>
  8262. </doc>
  8263. </method>
  8264. <doc>
  8265. <![CDATA[Stream that permits positional reading.]]>
  8266. </doc>
  8267. </interface>
  8268. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  8269. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  8270. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8271. abstract="false"
  8272. static="false" final="false" visibility="public"
  8273. deprecated="not deprecated">
  8274. <constructor name="RawLocalFileSystem"
  8275. static="false" final="false" visibility="public"
  8276. deprecated="not deprecated">
  8277. </constructor>
  8278. <method name="pathToFile" return="java.io.File"
  8279. abstract="false" native="false" synchronized="false"
  8280. static="false" final="false" visibility="public"
  8281. deprecated="not deprecated">
  8282. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8283. <doc>
  8284. <![CDATA[Convert a path to a File.]]>
  8285. </doc>
  8286. </method>
  8287. <method name="getUri" return="java.net.URI"
  8288. abstract="false" native="false" synchronized="false"
  8289. static="false" final="false" visibility="public"
  8290. deprecated="not deprecated">
  8291. </method>
  8292. <method name="initialize"
  8293. abstract="false" native="false" synchronized="false"
  8294. static="false" final="false" visibility="public"
  8295. deprecated="not deprecated">
  8296. <param name="uri" type="java.net.URI"/>
  8297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8298. <exception name="IOException" type="java.io.IOException"/>
  8299. </method>
  8300. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8301. abstract="false" native="false" synchronized="false"
  8302. static="false" final="false" visibility="public"
  8303. deprecated="not deprecated">
  8304. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8305. <param name="bufferSize" type="int"/>
  8306. <exception name="IOException" type="java.io.IOException"/>
  8307. </method>
  8308. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8309. abstract="false" native="false" synchronized="false"
  8310. static="false" final="false" visibility="public"
  8311. deprecated="not deprecated">
  8312. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8313. <param name="bufferSize" type="int"/>
  8314. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8315. <exception name="IOException" type="java.io.IOException"/>
  8316. <doc>
  8317. <![CDATA[{@inheritDoc}]]>
  8318. </doc>
  8319. </method>
  8320. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8321. abstract="false" native="false" synchronized="false"
  8322. static="false" final="false" visibility="public"
  8323. deprecated="not deprecated">
  8324. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8325. <param name="overwrite" type="boolean"/>
  8326. <param name="bufferSize" type="int"/>
  8327. <param name="replication" type="short"/>
  8328. <param name="blockSize" type="long"/>
  8329. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8330. <exception name="IOException" type="java.io.IOException"/>
  8331. <doc>
  8332. <![CDATA[{@inheritDoc}]]>
  8333. </doc>
  8334. </method>
  8335. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8336. abstract="false" native="false" synchronized="false"
  8337. static="false" final="false" visibility="public"
  8338. deprecated="not deprecated">
  8339. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8340. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8341. <param name="overwrite" type="boolean"/>
  8342. <param name="bufferSize" type="int"/>
  8343. <param name="replication" type="short"/>
  8344. <param name="blockSize" type="long"/>
  8345. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8346. <exception name="IOException" type="java.io.IOException"/>
  8347. <doc>
  8348. <![CDATA[{@inheritDoc}]]>
  8349. </doc>
  8350. </method>
  8351. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  8352. abstract="false" native="false" synchronized="false"
  8353. static="false" final="false" visibility="protected"
  8354. deprecated="not deprecated">
  8355. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8356. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8357. <param name="flag" type="java.util.EnumSet"/>
  8358. <param name="bufferSize" type="int"/>
  8359. <param name="replication" type="short"/>
  8360. <param name="blockSize" type="long"/>
  8361. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8362. <param name="bytesPerChecksum" type="int"/>
  8363. <exception name="IOException" type="java.io.IOException"/>
  8364. </method>
  8365. <method name="rename" return="boolean"
  8366. abstract="false" native="false" synchronized="false"
  8367. static="false" final="false" visibility="public"
  8368. deprecated="not deprecated">
  8369. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8370. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8371. <exception name="IOException" type="java.io.IOException"/>
  8372. </method>
  8373. <method name="delete" return="boolean"
  8374. abstract="false" native="false" synchronized="false"
  8375. static="false" final="false" visibility="public"
  8376. deprecated="not deprecated">
  8377. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8378. <param name="recursive" type="boolean"/>
  8379. <exception name="IOException" type="java.io.IOException"/>
  8380. </method>
  8381. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8382. abstract="false" native="false" synchronized="false"
  8383. static="false" final="false" visibility="public"
  8384. deprecated="not deprecated">
  8385. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8386. <exception name="IOException" type="java.io.IOException"/>
  8387. </method>
  8388. <method name="mkdirs" return="boolean"
  8389. abstract="false" native="false" synchronized="false"
  8390. static="false" final="false" visibility="public"
  8391. deprecated="not deprecated">
  8392. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8393. <exception name="IOException" type="java.io.IOException"/>
  8394. <doc>
  8395. <![CDATA[Creates the specified directory hierarchy. Does not
  8396. treat existence as an error.]]>
  8397. </doc>
  8398. </method>
  8399. <method name="mkdirs" return="boolean"
  8400. abstract="false" native="false" synchronized="false"
  8401. static="false" final="false" visibility="public"
  8402. deprecated="not deprecated">
  8403. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8404. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8405. <exception name="IOException" type="java.io.IOException"/>
  8406. <doc>
  8407. <![CDATA[{@inheritDoc}]]>
  8408. </doc>
  8409. </method>
  8410. <method name="primitiveMkdir" return="boolean"
  8411. abstract="false" native="false" synchronized="false"
  8412. static="false" final="false" visibility="protected"
  8413. deprecated="not deprecated">
  8414. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8415. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8416. <exception name="IOException" type="java.io.IOException"/>
  8417. </method>
  8418. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. </method>
  8423. <method name="setWorkingDirectory"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8428. <doc>
  8429. <![CDATA[Set the working directory to the given directory.]]>
  8430. </doc>
  8431. </method>
  8432. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8433. abstract="false" native="false" synchronized="false"
  8434. static="false" final="false" visibility="public"
  8435. deprecated="not deprecated">
  8436. </method>
  8437. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8438. abstract="false" native="false" synchronized="false"
  8439. static="false" final="false" visibility="protected"
  8440. deprecated="not deprecated">
  8441. </method>
  8442. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  8443. abstract="false" native="false" synchronized="false"
  8444. static="false" final="false" visibility="public"
  8445. deprecated="not deprecated">
  8446. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8447. <exception name="IOException" type="java.io.IOException"/>
  8448. <doc>
  8449. <![CDATA[{@inheritDoc}]]>
  8450. </doc>
  8451. </method>
  8452. <method name="moveFromLocalFile"
  8453. abstract="false" native="false" synchronized="false"
  8454. static="false" final="false" visibility="public"
  8455. deprecated="not deprecated">
  8456. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8457. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8458. <exception name="IOException" type="java.io.IOException"/>
  8459. </method>
  8460. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  8461. abstract="false" native="false" synchronized="false"
  8462. static="false" final="false" visibility="public"
  8463. deprecated="not deprecated">
  8464. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8465. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8466. <exception name="IOException" type="java.io.IOException"/>
  8467. </method>
  8468. <method name="completeLocalOutput"
  8469. abstract="false" native="false" synchronized="false"
  8470. static="false" final="false" visibility="public"
  8471. deprecated="not deprecated">
  8472. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  8473. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8474. <exception name="IOException" type="java.io.IOException"/>
  8475. </method>
  8476. <method name="close"
  8477. abstract="false" native="false" synchronized="false"
  8478. static="false" final="false" visibility="public"
  8479. deprecated="not deprecated">
  8480. <exception name="IOException" type="java.io.IOException"/>
  8481. </method>
  8482. <method name="toString" return="java.lang.String"
  8483. abstract="false" native="false" synchronized="false"
  8484. static="false" final="false" visibility="public"
  8485. deprecated="not deprecated">
  8486. </method>
  8487. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8488. abstract="false" native="false" synchronized="false"
  8489. static="false" final="false" visibility="public"
  8490. deprecated="not deprecated">
  8491. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8492. <exception name="IOException" type="java.io.IOException"/>
  8493. </method>
  8494. <method name="setOwner"
  8495. abstract="false" native="false" synchronized="false"
  8496. static="false" final="false" visibility="public"
  8497. deprecated="not deprecated">
  8498. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8499. <param name="username" type="java.lang.String"/>
  8500. <param name="groupname" type="java.lang.String"/>
  8501. <exception name="IOException" type="java.io.IOException"/>
  8502. <doc>
  8503. <![CDATA[Use the command chown to set owner.]]>
  8504. </doc>
  8505. </method>
  8506. <method name="setPermission"
  8507. abstract="false" native="false" synchronized="false"
  8508. static="false" final="false" visibility="public"
  8509. deprecated="not deprecated">
  8510. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8511. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8512. <exception name="IOException" type="java.io.IOException"/>
  8513. <doc>
  8514. <![CDATA[Use the command chmod to set permission.]]>
  8515. </doc>
  8516. </method>
  8517. <doc>
  8518. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  8519. </doc>
  8520. </class>
  8521. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  8522. <!-- start interface org.apache.hadoop.fs.RemoteIterator -->
  8523. <interface name="RemoteIterator" abstract="true"
  8524. static="false" final="false" visibility="public"
  8525. deprecated="not deprecated">
  8526. <method name="hasNext" return="boolean"
  8527. abstract="false" native="false" synchronized="false"
  8528. static="false" final="false" visibility="public"
  8529. deprecated="not deprecated">
  8530. <exception name="IOException" type="java.io.IOException"/>
  8531. <doc>
  8532. <![CDATA[Returns <tt>true</tt> if the iteration has more elements.
  8533. @return <tt>true</tt> if the iterator has more elements.
  8534. @throws IOException if any IO error occurs]]>
  8535. </doc>
  8536. </method>
  8537. <method name="next" return="E"
  8538. abstract="false" native="false" synchronized="false"
  8539. static="false" final="false" visibility="public"
  8540. deprecated="not deprecated">
  8541. <exception name="IOException" type="java.io.IOException"/>
  8542. <doc>
  8543. <![CDATA[Returns the next element in the iteration.
  8544. @return the next element in the iteration.
  8545. @throws NoSuchElementException iteration has no more elements.
  8546. @throws IOException if any IO error occurs]]>
  8547. </doc>
  8548. </method>
  8549. <doc>
  8550. <![CDATA[An iterator over a collection whose elements need to be fetched remotely]]>
  8551. </doc>
  8552. </interface>
  8553. <!-- end interface org.apache.hadoop.fs.RemoteIterator -->
  8554. <!-- start interface org.apache.hadoop.fs.Seekable -->
  8555. <interface name="Seekable" abstract="true"
  8556. static="false" final="false" visibility="public"
  8557. deprecated="not deprecated">
  8558. <method name="seek"
  8559. abstract="false" native="false" synchronized="false"
  8560. static="false" final="false" visibility="public"
  8561. deprecated="not deprecated">
  8562. <param name="pos" type="long"/>
  8563. <exception name="IOException" type="java.io.IOException"/>
  8564. <doc>
  8565. <![CDATA[Seek to the given offset from the start of the file.
  8566. The next read() will be from that location. Can't
  8567. seek past the end of the file.]]>
  8568. </doc>
  8569. </method>
  8570. <method name="getPos" return="long"
  8571. abstract="false" native="false" synchronized="false"
  8572. static="false" final="false" visibility="public"
  8573. deprecated="not deprecated">
  8574. <exception name="IOException" type="java.io.IOException"/>
  8575. <doc>
  8576. <![CDATA[Return the current offset from the start of the file]]>
  8577. </doc>
  8578. </method>
  8579. <method name="seekToNewSource" return="boolean"
  8580. abstract="false" native="false" synchronized="false"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. <param name="targetPos" type="long"/>
  8584. <exception name="IOException" type="java.io.IOException"/>
  8585. <doc>
  8586. <![CDATA[Seeks a different copy of the data. Returns true if
  8587. found a new source, false otherwise.]]>
  8588. </doc>
  8589. </method>
  8590. <doc>
  8591. <![CDATA[Stream that permits seeking.]]>
  8592. </doc>
  8593. </interface>
  8594. <!-- end interface org.apache.hadoop.fs.Seekable -->
  8595. <!-- start interface org.apache.hadoop.fs.Syncable -->
  8596. <interface name="Syncable" abstract="true"
  8597. static="false" final="false" visibility="public"
  8598. deprecated="not deprecated">
  8599. <method name="sync"
  8600. abstract="false" native="false" synchronized="false"
  8601. static="false" final="false" visibility="public"
  8602. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  8603. <exception name="IOException" type="java.io.IOException"/>
  8604. <doc>
  8605. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  8606. @see #hflush()]]>
  8607. </doc>
  8608. </method>
  8609. <method name="hflush"
  8610. abstract="false" native="false" synchronized="false"
  8611. static="false" final="false" visibility="public"
  8612. deprecated="not deprecated">
  8613. <exception name="IOException" type="java.io.IOException"/>
  8614. <doc>
  8615. <![CDATA[Flush out the data in client's user buffer. After the return of
  8616. this call, new readers will see the data.
  8617. @throws IOException if any error occurs]]>
  8618. </doc>
  8619. </method>
  8620. <method name="hsync"
  8621. abstract="false" native="false" synchronized="false"
  8622. static="false" final="false" visibility="public"
  8623. deprecated="not deprecated">
  8624. <exception name="IOException" type="java.io.IOException"/>
  8625. <doc>
  8626. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  8627. all the way to the disk device (but the disk may have it in its cache).
  8628. @throws IOException if error occurs]]>
  8629. </doc>
  8630. </method>
  8631. <doc>
  8632. <![CDATA[This interface for flush/sync operation.]]>
  8633. </doc>
  8634. </interface>
  8635. <!-- end interface org.apache.hadoop.fs.Syncable -->
  8636. <!-- start class org.apache.hadoop.fs.Trash -->
  8637. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  8638. abstract="false"
  8639. static="false" final="false" visibility="public"
  8640. deprecated="not deprecated">
  8641. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  8642. static="false" final="false" visibility="public"
  8643. deprecated="not deprecated">
  8644. <exception name="IOException" type="java.io.IOException"/>
  8645. <doc>
  8646. <![CDATA[Construct a trash can accessor.
  8647. @param conf a Configuration]]>
  8648. </doc>
  8649. </constructor>
  8650. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  8651. static="false" final="false" visibility="public"
  8652. deprecated="not deprecated">
  8653. <exception name="IOException" type="java.io.IOException"/>
  8654. <doc>
  8655. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  8656. </doc>
  8657. </constructor>
  8658. <method name="moveToTrash" return="boolean"
  8659. abstract="false" native="false" synchronized="false"
  8660. static="false" final="false" visibility="public"
  8661. deprecated="not deprecated">
  8662. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8663. <exception name="IOException" type="java.io.IOException"/>
  8664. <doc>
  8665. <![CDATA[Move a file or directory to the current trash directory.
  8666. @return false if the item is already in the trash or trash is disabled]]>
  8667. </doc>
  8668. </method>
  8669. <method name="checkpoint"
  8670. abstract="false" native="false" synchronized="false"
  8671. static="false" final="false" visibility="public"
  8672. deprecated="not deprecated">
  8673. <exception name="IOException" type="java.io.IOException"/>
  8674. <doc>
  8675. <![CDATA[Create a trash checkpoint.]]>
  8676. </doc>
  8677. </method>
  8678. <method name="expunge"
  8679. abstract="false" native="false" synchronized="false"
  8680. static="false" final="false" visibility="public"
  8681. deprecated="not deprecated">
  8682. <exception name="IOException" type="java.io.IOException"/>
  8683. <doc>
  8684. <![CDATA[Delete old checkpoints.]]>
  8685. </doc>
  8686. </method>
  8687. <method name="getEmptier" return="java.lang.Runnable"
  8688. abstract="false" native="false" synchronized="false"
  8689. static="false" final="false" visibility="public"
  8690. deprecated="not deprecated">
  8691. <exception name="IOException" type="java.io.IOException"/>
  8692. <doc>
  8693. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  8694. users, intended to be run by the superuser. Only one checkpoint is kept
  8695. at a time.]]>
  8696. </doc>
  8697. </method>
  8698. <method name="main"
  8699. abstract="false" native="false" synchronized="false"
  8700. static="true" final="false" visibility="public"
  8701. deprecated="not deprecated">
  8702. <param name="args" type="java.lang.String[]"/>
  8703. <exception name="Exception" type="java.lang.Exception"/>
  8704. <doc>
  8705. <![CDATA[Run an emptier.]]>
  8706. </doc>
  8707. </method>
  8708. <doc>
  8709. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  8710. directory, a subdirectory of their home directory named ".Trash". Files are
  8711. initially moved to a <i>current</i> sub-directory of the trash directory.
  8712. Within that sub-directory their original path is preserved. Periodically
  8713. one may checkpoint the current trash and remove older checkpoints. (This
  8714. design permits trash management without enumeration of the full trash
  8715. content, without date support in the filesystem, and without clock
  8716. synchronization.)]]>
  8717. </doc>
  8718. </class>
  8719. <!-- end class org.apache.hadoop.fs.Trash -->
  8720. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  8721. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  8722. abstract="false"
  8723. static="false" final="false" visibility="public"
  8724. deprecated="not deprecated">
  8725. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  8726. static="false" final="false" visibility="public"
  8727. deprecated="not deprecated">
  8728. <doc>
  8729. <![CDATA[Constructs exception with the specified detail message.
  8730. @param message exception message.]]>
  8731. </doc>
  8732. </constructor>
  8733. <doc>
  8734. <![CDATA[File system for a given file system name/scheme is not supported]]>
  8735. </doc>
  8736. </class>
  8737. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  8738. <doc>
  8739. <![CDATA[An abstract file system API.]]>
  8740. </doc>
  8741. </package>
  8742. <package name="org.apache.hadoop.fs.ftp">
  8743. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  8744. <class name="FTPException" extends="java.lang.RuntimeException"
  8745. abstract="false"
  8746. static="false" final="false" visibility="public"
  8747. deprecated="not deprecated">
  8748. <constructor name="FTPException" type="java.lang.String"
  8749. static="false" final="false" visibility="public"
  8750. deprecated="not deprecated">
  8751. </constructor>
  8752. <constructor name="FTPException" type="java.lang.Throwable"
  8753. static="false" final="false" visibility="public"
  8754. deprecated="not deprecated">
  8755. </constructor>
  8756. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  8757. static="false" final="false" visibility="public"
  8758. deprecated="not deprecated">
  8759. </constructor>
  8760. <doc>
  8761. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  8762. </doc>
  8763. </class>
  8764. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  8765. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  8766. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8767. abstract="false"
  8768. static="false" final="false" visibility="public"
  8769. deprecated="not deprecated">
  8770. <constructor name="FTPFileSystem"
  8771. static="false" final="false" visibility="public"
  8772. deprecated="not deprecated">
  8773. </constructor>
  8774. <method name="initialize"
  8775. abstract="false" native="false" synchronized="false"
  8776. static="false" final="false" visibility="public"
  8777. deprecated="not deprecated">
  8778. <param name="uri" type="java.net.URI"/>
  8779. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8780. <exception name="IOException" type="java.io.IOException"/>
  8781. </method>
  8782. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8783. abstract="false" native="false" synchronized="false"
  8784. static="false" final="false" visibility="public"
  8785. deprecated="not deprecated">
  8786. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8787. <param name="bufferSize" type="int"/>
  8788. <exception name="IOException" type="java.io.IOException"/>
  8789. </method>
  8790. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8791. abstract="false" native="false" synchronized="false"
  8792. static="false" final="false" visibility="public"
  8793. deprecated="not deprecated">
  8794. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8795. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8796. <param name="overwrite" type="boolean"/>
  8797. <param name="bufferSize" type="int"/>
  8798. <param name="replication" type="short"/>
  8799. <param name="blockSize" type="long"/>
  8800. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8801. <exception name="IOException" type="java.io.IOException"/>
  8802. <doc>
  8803. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  8804. this class or else the invocation will block.]]>
  8805. </doc>
  8806. </method>
  8807. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8808. abstract="false" native="false" synchronized="false"
  8809. static="false" final="false" visibility="public"
  8810. deprecated="not deprecated">
  8811. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8812. <param name="bufferSize" type="int"/>
  8813. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8814. <exception name="IOException" type="java.io.IOException"/>
  8815. <doc>
  8816. <![CDATA[This optional operation is not yet supported.]]>
  8817. </doc>
  8818. </method>
  8819. <method name="delete" return="boolean"
  8820. abstract="false" native="false" synchronized="false"
  8821. static="false" final="false" visibility="public"
  8822. deprecated="not deprecated">
  8823. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8824. <param name="recursive" type="boolean"/>
  8825. <exception name="IOException" type="java.io.IOException"/>
  8826. </method>
  8827. <method name="getUri" return="java.net.URI"
  8828. abstract="false" native="false" synchronized="false"
  8829. static="false" final="false" visibility="public"
  8830. deprecated="not deprecated">
  8831. </method>
  8832. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8833. abstract="false" native="false" synchronized="false"
  8834. static="false" final="false" visibility="public"
  8835. deprecated="not deprecated">
  8836. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8837. <exception name="IOException" type="java.io.IOException"/>
  8838. </method>
  8839. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8840. abstract="false" native="false" synchronized="false"
  8841. static="false" final="false" visibility="public"
  8842. deprecated="not deprecated">
  8843. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8844. <exception name="IOException" type="java.io.IOException"/>
  8845. </method>
  8846. <method name="mkdirs" return="boolean"
  8847. abstract="false" native="false" synchronized="false"
  8848. static="false" final="false" visibility="public"
  8849. deprecated="not deprecated">
  8850. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8851. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8852. <exception name="IOException" type="java.io.IOException"/>
  8853. </method>
  8854. <method name="rename" return="boolean"
  8855. abstract="false" native="false" synchronized="false"
  8856. static="false" final="false" visibility="public"
  8857. deprecated="not deprecated">
  8858. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8859. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8860. <exception name="IOException" type="java.io.IOException"/>
  8861. </method>
  8862. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8863. abstract="false" native="false" synchronized="false"
  8864. static="false" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. </method>
  8867. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  8868. abstract="false" native="false" synchronized="false"
  8869. static="false" final="false" visibility="public"
  8870. deprecated="not deprecated">
  8871. </method>
  8872. <method name="setWorkingDirectory"
  8873. abstract="false" native="false" synchronized="false"
  8874. static="false" final="false" visibility="public"
  8875. deprecated="not deprecated">
  8876. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8877. </method>
  8878. <field name="LOG" type="org.apache.commons.logging.Log"
  8879. transient="false" volatile="false"
  8880. static="true" final="true" visibility="public"
  8881. deprecated="not deprecated">
  8882. </field>
  8883. <field name="DEFAULT_BUFFER_SIZE" type="int"
  8884. transient="false" volatile="false"
  8885. static="true" final="true" visibility="public"
  8886. deprecated="not deprecated">
  8887. </field>
  8888. <field name="DEFAULT_BLOCK_SIZE" type="int"
  8889. transient="false" volatile="false"
  8890. static="true" final="true" visibility="public"
  8891. deprecated="not deprecated">
  8892. </field>
  8893. <doc>
  8894. <![CDATA[<p>
  8895. A {@link FileSystem} backed by an FTP client provided by <a
  8896. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  8897. </p>]]>
  8898. </doc>
  8899. </class>
  8900. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  8901. </package>
  8902. <package name="org.apache.hadoop.fs.kfs">
  8903. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  8904. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8905. abstract="false"
  8906. static="false" final="false" visibility="public"
  8907. deprecated="not deprecated">
  8908. <constructor name="KosmosFileSystem"
  8909. static="false" final="false" visibility="public"
  8910. deprecated="not deprecated">
  8911. </constructor>
  8912. <method name="getUri" return="java.net.URI"
  8913. abstract="false" native="false" synchronized="false"
  8914. static="false" final="false" visibility="public"
  8915. deprecated="not deprecated">
  8916. </method>
  8917. <method name="initialize"
  8918. abstract="false" native="false" synchronized="false"
  8919. static="false" final="false" visibility="public"
  8920. deprecated="not deprecated">
  8921. <param name="uri" type="java.net.URI"/>
  8922. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8923. <exception name="IOException" type="java.io.IOException"/>
  8924. </method>
  8925. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8926. abstract="false" native="false" synchronized="false"
  8927. static="false" final="false" visibility="public"
  8928. deprecated="not deprecated">
  8929. </method>
  8930. <method name="setWorkingDirectory"
  8931. abstract="false" native="false" synchronized="false"
  8932. static="false" final="false" visibility="public"
  8933. deprecated="not deprecated">
  8934. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8935. </method>
  8936. <method name="mkdirs" return="boolean"
  8937. abstract="false" native="false" synchronized="false"
  8938. static="false" final="false" visibility="public"
  8939. deprecated="not deprecated">
  8940. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8941. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8942. <exception name="IOException" type="java.io.IOException"/>
  8943. </method>
  8944. <method name="isDirectory" return="boolean"
  8945. abstract="false" native="false" synchronized="false"
  8946. static="false" final="false" visibility="public"
  8947. deprecated="not deprecated">
  8948. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8949. <exception name="IOException" type="java.io.IOException"/>
  8950. </method>
  8951. <method name="isFile" return="boolean"
  8952. abstract="false" native="false" synchronized="false"
  8953. static="false" final="false" visibility="public"
  8954. deprecated="not deprecated">
  8955. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8956. <exception name="IOException" type="java.io.IOException"/>
  8957. </method>
  8958. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8959. abstract="false" native="false" synchronized="false"
  8960. static="false" final="false" visibility="public"
  8961. deprecated="not deprecated">
  8962. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8963. <exception name="IOException" type="java.io.IOException"/>
  8964. </method>
  8965. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8966. abstract="false" native="false" synchronized="false"
  8967. static="false" final="false" visibility="public"
  8968. deprecated="not deprecated">
  8969. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8970. <exception name="IOException" type="java.io.IOException"/>
  8971. </method>
  8972. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8973. abstract="false" native="false" synchronized="false"
  8974. static="false" final="false" visibility="public"
  8975. deprecated="not deprecated">
  8976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8977. <param name="bufferSize" type="int"/>
  8978. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8979. <exception name="IOException" type="java.io.IOException"/>
  8980. </method>
  8981. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8982. abstract="false" native="false" synchronized="false"
  8983. static="false" final="false" visibility="public"
  8984. deprecated="not deprecated">
  8985. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8986. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8987. <param name="overwrite" type="boolean"/>
  8988. <param name="bufferSize" type="int"/>
  8989. <param name="replication" type="short"/>
  8990. <param name="blockSize" type="long"/>
  8991. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8992. <exception name="IOException" type="java.io.IOException"/>
  8993. </method>
  8994. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8995. abstract="false" native="false" synchronized="false"
  8996. static="false" final="false" visibility="public"
  8997. deprecated="not deprecated">
  8998. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8999. <param name="bufferSize" type="int"/>
  9000. <exception name="IOException" type="java.io.IOException"/>
  9001. </method>
  9002. <method name="rename" return="boolean"
  9003. abstract="false" native="false" synchronized="false"
  9004. static="false" final="false" visibility="public"
  9005. deprecated="not deprecated">
  9006. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9007. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9008. <exception name="IOException" type="java.io.IOException"/>
  9009. </method>
  9010. <method name="delete" return="boolean"
  9011. abstract="false" native="false" synchronized="false"
  9012. static="false" final="false" visibility="public"
  9013. deprecated="not deprecated">
  9014. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9015. <param name="recursive" type="boolean"/>
  9016. <exception name="IOException" type="java.io.IOException"/>
  9017. </method>
  9018. <method name="getDefaultReplication" return="short"
  9019. abstract="false" native="false" synchronized="false"
  9020. static="false" final="false" visibility="public"
  9021. deprecated="not deprecated">
  9022. </method>
  9023. <method name="setReplication" return="boolean"
  9024. abstract="false" native="false" synchronized="false"
  9025. static="false" final="false" visibility="public"
  9026. deprecated="not deprecated">
  9027. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9028. <param name="replication" type="short"/>
  9029. <exception name="IOException" type="java.io.IOException"/>
  9030. </method>
  9031. <method name="getDefaultBlockSize" return="long"
  9032. abstract="false" native="false" synchronized="false"
  9033. static="false" final="false" visibility="public"
  9034. deprecated="not deprecated">
  9035. </method>
  9036. <method name="lock"
  9037. abstract="false" native="false" synchronized="false"
  9038. static="false" final="false" visibility="public"
  9039. deprecated="not deprecated">
  9040. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9041. <param name="shared" type="boolean"/>
  9042. <exception name="IOException" type="java.io.IOException"/>
  9043. </method>
  9044. <method name="release"
  9045. abstract="false" native="false" synchronized="false"
  9046. static="false" final="false" visibility="public"
  9047. deprecated="not deprecated">
  9048. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9049. <exception name="IOException" type="java.io.IOException"/>
  9050. </method>
  9051. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9052. abstract="false" native="false" synchronized="false"
  9053. static="false" final="false" visibility="public"
  9054. deprecated="not deprecated">
  9055. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  9056. <param name="start" type="long"/>
  9057. <param name="len" type="long"/>
  9058. <exception name="IOException" type="java.io.IOException"/>
  9059. <doc>
  9060. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  9061. locations of the various chunks of the file file from KFS.]]>
  9062. </doc>
  9063. </method>
  9064. <method name="copyFromLocalFile"
  9065. abstract="false" native="false" synchronized="false"
  9066. static="false" final="false" visibility="public"
  9067. deprecated="not deprecated">
  9068. <param name="delSrc" type="boolean"/>
  9069. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9070. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9071. <exception name="IOException" type="java.io.IOException"/>
  9072. </method>
  9073. <method name="copyToLocalFile"
  9074. abstract="false" native="false" synchronized="false"
  9075. static="false" final="false" visibility="public"
  9076. deprecated="not deprecated">
  9077. <param name="delSrc" type="boolean"/>
  9078. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9079. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9080. <exception name="IOException" type="java.io.IOException"/>
  9081. </method>
  9082. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9083. abstract="false" native="false" synchronized="false"
  9084. static="false" final="false" visibility="public"
  9085. deprecated="not deprecated">
  9086. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9087. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9088. <exception name="IOException" type="java.io.IOException"/>
  9089. </method>
  9090. <method name="completeLocalOutput"
  9091. abstract="false" native="false" synchronized="false"
  9092. static="false" final="false" visibility="public"
  9093. deprecated="not deprecated">
  9094. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9095. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9096. <exception name="IOException" type="java.io.IOException"/>
  9097. </method>
  9098. <doc>
  9099. <![CDATA[A FileSystem backed by KFS.]]>
  9100. </doc>
  9101. </class>
  9102. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  9103. <doc>
  9104. <![CDATA[<h1>A client for the Kosmos filesystem (KFS)</h1>
  9105. <h3>Introduction</h3>
  9106. This pages describes how to use Kosmos Filesystem
  9107. (<a href="http://kosmosfs.sourceforge.net"> KFS </a>) as a backing
  9108. store with Hadoop. This page assumes that you have downloaded the
  9109. KFS software and installed necessary binaries as outlined in the KFS
  9110. documentation.
  9111. <h3>Steps</h3>
  9112. <ul>
  9113. <li>In the Hadoop conf directory edit core-site.xml,
  9114. add the following:
  9115. <pre>
  9116. &lt;property&gt;
  9117. &lt;name&gt;fs.kfs.impl&lt;/name&gt;
  9118. &lt;value&gt;org.apache.hadoop.fs.kfs.KosmosFileSystem&lt;/value&gt;
  9119. &lt;description&gt;The FileSystem for kfs: uris.&lt;/description&gt;
  9120. &lt;/property&gt;
  9121. </pre>
  9122. <li>In the Hadoop conf directory edit core-site.xml,
  9123. adding the following (with appropriate values for
  9124. &lt;server&gt; and &lt;port&gt;):
  9125. <pre>
  9126. &lt;property&gt;
  9127. &lt;name&gt;fs.default.name&lt;/name&gt;
  9128. &lt;value&gt;kfs://&lt;server:port&gt;&lt;/value&gt;
  9129. &lt;/property&gt;
  9130. &lt;property&gt;
  9131. &lt;name&gt;fs.kfs.metaServerHost&lt;/name&gt;
  9132. &lt;value&gt;&lt;server&gt;&lt;/value&gt;
  9133. &lt;description&gt;The location of the KFS meta server.&lt;/description&gt;
  9134. &lt;/property&gt;
  9135. &lt;property&gt;
  9136. &lt;name&gt;fs.kfs.metaServerPort&lt;/name&gt;
  9137. &lt;value&gt;&lt;port&gt;&lt;/value&gt;
  9138. &lt;description&gt;The location of the meta server's port.&lt;/description&gt;
  9139. &lt;/property&gt;
  9140. </pre>
  9141. </li>
  9142. <li>Copy KFS's <i> kfs-0.1.jar </i> to Hadoop's lib directory. This step
  9143. enables Hadoop's to load the KFS specific modules. Note
  9144. that, kfs-0.1.jar was built when you compiled KFS source
  9145. code. This jar file contains code that calls KFS's client
  9146. library code via JNI; the native code is in KFS's <i>
  9147. libkfsClient.so </i> library.
  9148. </li>
  9149. <li> When the Hadoop map/reduce trackers start up, those
  9150. processes (on local as well as remote nodes) will now need to load
  9151. KFS's <i> libkfsClient.so </i> library. To simplify this process, it is advisable to
  9152. store libkfsClient.so in an NFS accessible directory (similar to where
  9153. Hadoop binaries/scripts are stored); then, modify Hadoop's
  9154. conf/hadoop-env.sh adding the following line and providing suitable
  9155. value for &lt;path&gt;:
  9156. <pre>
  9157. export LD_LIBRARY_PATH=&lt;path&gt;
  9158. </pre>
  9159. <li>Start only the map/reduce trackers
  9160. <br />
  9161. example: execute Hadoop's bin/start-mapred.sh</li>
  9162. </ul>
  9163. <br/>
  9164. If the map/reduce job trackers start up, all file-I/O is done to KFS.]]>
  9165. </doc>
  9166. </package>
  9167. <package name="org.apache.hadoop.fs.permission">
  9168. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  9169. <class name="AccessControlException" extends="java.io.IOException"
  9170. abstract="false"
  9171. static="false" final="false" visibility="public"
  9172. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  9173. instead.">
  9174. <constructor name="AccessControlException"
  9175. static="false" final="false" visibility="public"
  9176. deprecated="not deprecated">
  9177. <doc>
  9178. <![CDATA[Default constructor is needed for unwrapping from
  9179. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  9180. </doc>
  9181. </constructor>
  9182. <constructor name="AccessControlException" type="java.lang.String"
  9183. static="false" final="false" visibility="public"
  9184. deprecated="not deprecated">
  9185. <doc>
  9186. <![CDATA[Constructs an {@link AccessControlException}
  9187. with the specified detail message.
  9188. @param s the detail message.]]>
  9189. </doc>
  9190. </constructor>
  9191. <constructor name="AccessControlException" type="java.lang.Throwable"
  9192. static="false" final="false" visibility="public"
  9193. deprecated="not deprecated">
  9194. <doc>
  9195. <![CDATA[Constructs a new exception with the specified cause and a detail
  9196. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  9197. typically contains the class and detail message of <tt>cause</tt>).
  9198. @param cause the cause (which is saved for later retrieval by the
  9199. {@link #getCause()} method). (A <tt>null</tt> value is
  9200. permitted, and indicates that the cause is nonexistent or
  9201. unknown.)]]>
  9202. </doc>
  9203. </constructor>
  9204. <doc>
  9205. <![CDATA[An exception class for access control related issues.
  9206. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  9207. instead.]]>
  9208. </doc>
  9209. </class>
  9210. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  9211. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  9212. <class name="FsPermission" extends="java.lang.Object"
  9213. abstract="false"
  9214. static="false" final="false" visibility="public"
  9215. deprecated="not deprecated">
  9216. <implements name="org.apache.hadoop.io.Writable"/>
  9217. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  9218. static="false" final="false" visibility="public"
  9219. deprecated="not deprecated">
  9220. <doc>
  9221. <![CDATA[Construct by the given {@link FsAction}.
  9222. @param u user action
  9223. @param g group action
  9224. @param o other action]]>
  9225. </doc>
  9226. </constructor>
  9227. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  9228. static="false" final="false" visibility="public"
  9229. deprecated="not deprecated">
  9230. </constructor>
  9231. <constructor name="FsPermission" type="short"
  9232. static="false" final="false" visibility="public"
  9233. deprecated="not deprecated">
  9234. <doc>
  9235. <![CDATA[Construct by the given mode.
  9236. @param mode
  9237. @see #toShort()]]>
  9238. </doc>
  9239. </constructor>
  9240. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  9241. static="false" final="false" visibility="public"
  9242. deprecated="not deprecated">
  9243. <doc>
  9244. <![CDATA[Copy constructor
  9245. @param other other permission]]>
  9246. </doc>
  9247. </constructor>
  9248. <constructor name="FsPermission" type="java.lang.String"
  9249. static="false" final="false" visibility="public"
  9250. deprecated="not deprecated">
  9251. <doc>
  9252. <![CDATA[Construct by given mode, either in octal or symbolic format.
  9253. @param mode mode as a string, either in octal or symbolic format
  9254. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  9255. </doc>
  9256. </constructor>
  9257. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  9258. abstract="false" native="false" synchronized="false"
  9259. static="true" final="false" visibility="public"
  9260. deprecated="not deprecated">
  9261. <param name="permission" type="short"/>
  9262. <doc>
  9263. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  9264. </doc>
  9265. </method>
  9266. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  9267. abstract="false" native="false" synchronized="false"
  9268. static="false" final="false" visibility="public"
  9269. deprecated="not deprecated">
  9270. <doc>
  9271. <![CDATA[Return user {@link FsAction}.]]>
  9272. </doc>
  9273. </method>
  9274. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  9275. abstract="false" native="false" synchronized="false"
  9276. static="false" final="false" visibility="public"
  9277. deprecated="not deprecated">
  9278. <doc>
  9279. <![CDATA[Return group {@link FsAction}.]]>
  9280. </doc>
  9281. </method>
  9282. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  9283. abstract="false" native="false" synchronized="false"
  9284. static="false" final="false" visibility="public"
  9285. deprecated="not deprecated">
  9286. <doc>
  9287. <![CDATA[Return other {@link FsAction}.]]>
  9288. </doc>
  9289. </method>
  9290. <method name="fromShort"
  9291. abstract="false" native="false" synchronized="false"
  9292. static="false" final="false" visibility="public"
  9293. deprecated="not deprecated">
  9294. <param name="n" type="short"/>
  9295. </method>
  9296. <method name="write"
  9297. abstract="false" native="false" synchronized="false"
  9298. static="false" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <param name="out" type="java.io.DataOutput"/>
  9301. <exception name="IOException" type="java.io.IOException"/>
  9302. <doc>
  9303. <![CDATA[{@inheritDoc}]]>
  9304. </doc>
  9305. </method>
  9306. <method name="readFields"
  9307. abstract="false" native="false" synchronized="false"
  9308. static="false" final="false" visibility="public"
  9309. deprecated="not deprecated">
  9310. <param name="in" type="java.io.DataInput"/>
  9311. <exception name="IOException" type="java.io.IOException"/>
  9312. <doc>
  9313. <![CDATA[{@inheritDoc}]]>
  9314. </doc>
  9315. </method>
  9316. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  9317. abstract="false" native="false" synchronized="false"
  9318. static="true" final="false" visibility="public"
  9319. deprecated="not deprecated">
  9320. <param name="in" type="java.io.DataInput"/>
  9321. <exception name="IOException" type="java.io.IOException"/>
  9322. <doc>
  9323. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  9324. </doc>
  9325. </method>
  9326. <method name="toShort" return="short"
  9327. abstract="false" native="false" synchronized="false"
  9328. static="false" final="false" visibility="public"
  9329. deprecated="not deprecated">
  9330. <doc>
  9331. <![CDATA[Encode the object to a short.]]>
  9332. </doc>
  9333. </method>
  9334. <method name="equals" return="boolean"
  9335. abstract="false" native="false" synchronized="false"
  9336. static="false" final="false" visibility="public"
  9337. deprecated="not deprecated">
  9338. <param name="obj" type="java.lang.Object"/>
  9339. <doc>
  9340. <![CDATA[{@inheritDoc}]]>
  9341. </doc>
  9342. </method>
  9343. <method name="hashCode" return="int"
  9344. abstract="false" native="false" synchronized="false"
  9345. static="false" final="false" visibility="public"
  9346. deprecated="not deprecated">
  9347. <doc>
  9348. <![CDATA[{@inheritDoc}]]>
  9349. </doc>
  9350. </method>
  9351. <method name="toString" return="java.lang.String"
  9352. abstract="false" native="false" synchronized="false"
  9353. static="false" final="false" visibility="public"
  9354. deprecated="not deprecated">
  9355. <doc>
  9356. <![CDATA[{@inheritDoc}]]>
  9357. </doc>
  9358. </method>
  9359. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  9360. abstract="false" native="false" synchronized="false"
  9361. static="false" final="false" visibility="public"
  9362. deprecated="not deprecated">
  9363. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9364. <doc>
  9365. <![CDATA[Apply a umask to this permission and return a new one]]>
  9366. </doc>
  9367. </method>
  9368. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  9369. abstract="false" native="false" synchronized="false"
  9370. static="true" final="false" visibility="public"
  9371. deprecated="not deprecated">
  9372. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9373. <doc>
  9374. <![CDATA[Get the user file creation mask (umask)
  9375. {@code UMASK_LABEL} config param has umask value that is either symbolic
  9376. or octal.
  9377. Symbolic umask is applied relative to file mode creation mask;
  9378. the permission op characters '+' clears the corresponding bit in the mask,
  9379. '-' sets bits in the mask.
  9380. Octal umask, the specified bits are set in the file mode creation mask.
  9381. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  9382. </doc>
  9383. </method>
  9384. <method name="getStickyBit" return="boolean"
  9385. abstract="false" native="false" synchronized="false"
  9386. static="false" final="false" visibility="public"
  9387. deprecated="not deprecated">
  9388. </method>
  9389. <method name="setUMask"
  9390. abstract="false" native="false" synchronized="false"
  9391. static="true" final="false" visibility="public"
  9392. deprecated="not deprecated">
  9393. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9394. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9395. <doc>
  9396. <![CDATA[Set the user file creation mask (umask)]]>
  9397. </doc>
  9398. </method>
  9399. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  9400. abstract="false" native="false" synchronized="false"
  9401. static="true" final="false" visibility="public"
  9402. deprecated="not deprecated">
  9403. <doc>
  9404. <![CDATA[Get the default permission.]]>
  9405. </doc>
  9406. </method>
  9407. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  9408. abstract="false" native="false" synchronized="false"
  9409. static="true" final="false" visibility="public"
  9410. deprecated="not deprecated">
  9411. <param name="unixSymbolicPermission" type="java.lang.String"/>
  9412. <doc>
  9413. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  9414. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  9415. </doc>
  9416. </method>
  9417. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  9418. transient="false" volatile="false"
  9419. static="true" final="true" visibility="public"
  9420. deprecated="not deprecated">
  9421. <doc>
  9422. <![CDATA[umask property label deprecated key and code in getUMask method
  9423. to accommodate it may be removed in version .23]]>
  9424. </doc>
  9425. </field>
  9426. <field name="UMASK_LABEL" type="java.lang.String"
  9427. transient="false" volatile="false"
  9428. static="true" final="true" visibility="public"
  9429. deprecated="not deprecated">
  9430. </field>
  9431. <field name="DEFAULT_UMASK" type="int"
  9432. transient="false" volatile="false"
  9433. static="true" final="true" visibility="public"
  9434. deprecated="not deprecated">
  9435. </field>
  9436. <doc>
  9437. <![CDATA[A class for file/directory permissions.]]>
  9438. </doc>
  9439. </class>
  9440. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  9441. </package>
  9442. <package name="org.apache.hadoop.fs.s3">
  9443. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  9444. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  9445. abstract="false"
  9446. static="false" final="false" visibility="public"
  9447. deprecated="not deprecated">
  9448. <implements name="org.apache.hadoop.util.Tool"/>
  9449. <constructor name="MigrationTool"
  9450. static="false" final="false" visibility="public"
  9451. deprecated="not deprecated">
  9452. </constructor>
  9453. <method name="main"
  9454. abstract="false" native="false" synchronized="false"
  9455. static="true" final="false" visibility="public"
  9456. deprecated="not deprecated">
  9457. <param name="args" type="java.lang.String[]"/>
  9458. <exception name="Exception" type="java.lang.Exception"/>
  9459. </method>
  9460. <method name="run" return="int"
  9461. abstract="false" native="false" synchronized="false"
  9462. static="false" final="false" visibility="public"
  9463. deprecated="not deprecated">
  9464. <param name="args" type="java.lang.String[]"/>
  9465. <exception name="Exception" type="java.lang.Exception"/>
  9466. </method>
  9467. <method name="initialize"
  9468. abstract="false" native="false" synchronized="false"
  9469. static="false" final="false" visibility="public"
  9470. deprecated="not deprecated">
  9471. <param name="uri" type="java.net.URI"/>
  9472. <exception name="IOException" type="java.io.IOException"/>
  9473. </method>
  9474. <doc>
  9475. <![CDATA[<p>
  9476. This class is a tool for migrating data from an older to a newer version
  9477. of an S3 filesystem.
  9478. </p>
  9479. <p>
  9480. All files in the filesystem are migrated by re-writing the block metadata
  9481. - no datafiles are touched.
  9482. </p>]]>
  9483. </doc>
  9484. </class>
  9485. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  9486. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  9487. <class name="S3Exception" extends="java.io.IOException"
  9488. abstract="false"
  9489. static="false" final="false" visibility="public"
  9490. deprecated="not deprecated">
  9491. <constructor name="S3Exception" type="java.lang.Throwable"
  9492. static="false" final="false" visibility="public"
  9493. deprecated="not deprecated">
  9494. </constructor>
  9495. <doc>
  9496. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  9497. </doc>
  9498. </class>
  9499. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  9500. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  9501. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  9502. abstract="false"
  9503. static="false" final="false" visibility="public"
  9504. deprecated="not deprecated">
  9505. <constructor name="S3FileSystem"
  9506. static="false" final="false" visibility="public"
  9507. deprecated="not deprecated">
  9508. </constructor>
  9509. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  9510. static="false" final="false" visibility="public"
  9511. deprecated="not deprecated">
  9512. </constructor>
  9513. <method name="getUri" return="java.net.URI"
  9514. abstract="false" native="false" synchronized="false"
  9515. static="false" final="false" visibility="public"
  9516. deprecated="not deprecated">
  9517. </method>
  9518. <method name="initialize"
  9519. abstract="false" native="false" synchronized="false"
  9520. static="false" final="false" visibility="public"
  9521. deprecated="not deprecated">
  9522. <param name="uri" type="java.net.URI"/>
  9523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9524. <exception name="IOException" type="java.io.IOException"/>
  9525. </method>
  9526. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9527. abstract="false" native="false" synchronized="false"
  9528. static="false" final="false" visibility="public"
  9529. deprecated="not deprecated">
  9530. </method>
  9531. <method name="setWorkingDirectory"
  9532. abstract="false" native="false" synchronized="false"
  9533. static="false" final="false" visibility="public"
  9534. deprecated="not deprecated">
  9535. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9536. </method>
  9537. <method name="mkdirs" return="boolean"
  9538. abstract="false" native="false" synchronized="false"
  9539. static="false" final="false" visibility="public"
  9540. deprecated="not deprecated">
  9541. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9542. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9543. <exception name="IOException" type="java.io.IOException"/>
  9544. <doc>
  9545. <![CDATA[@param permission Currently ignored.]]>
  9546. </doc>
  9547. </method>
  9548. <method name="isFile" return="boolean"
  9549. abstract="false" native="false" synchronized="false"
  9550. static="false" final="false" visibility="public"
  9551. deprecated="not deprecated">
  9552. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9553. <exception name="IOException" type="java.io.IOException"/>
  9554. </method>
  9555. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9556. abstract="false" native="false" synchronized="false"
  9557. static="false" final="false" visibility="public"
  9558. deprecated="not deprecated">
  9559. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9560. <exception name="IOException" type="java.io.IOException"/>
  9561. </method>
  9562. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9563. abstract="false" native="false" synchronized="false"
  9564. static="false" final="false" visibility="public"
  9565. deprecated="not deprecated">
  9566. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9567. <param name="bufferSize" type="int"/>
  9568. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9569. <exception name="IOException" type="java.io.IOException"/>
  9570. <doc>
  9571. <![CDATA[This optional operation is not yet supported.]]>
  9572. </doc>
  9573. </method>
  9574. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9575. abstract="false" native="false" synchronized="false"
  9576. static="false" final="false" visibility="public"
  9577. deprecated="not deprecated">
  9578. <param name="file" type="org.apache.hadoop.fs.Path"/>
  9579. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9580. <param name="overwrite" type="boolean"/>
  9581. <param name="bufferSize" type="int"/>
  9582. <param name="replication" type="short"/>
  9583. <param name="blockSize" type="long"/>
  9584. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9585. <exception name="IOException" type="java.io.IOException"/>
  9586. <doc>
  9587. <![CDATA[@param permission Currently ignored.]]>
  9588. </doc>
  9589. </method>
  9590. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9591. abstract="false" native="false" synchronized="false"
  9592. static="false" final="false" visibility="public"
  9593. deprecated="not deprecated">
  9594. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9595. <param name="bufferSize" type="int"/>
  9596. <exception name="IOException" type="java.io.IOException"/>
  9597. </method>
  9598. <method name="rename" return="boolean"
  9599. abstract="false" native="false" synchronized="false"
  9600. static="false" final="false" visibility="public"
  9601. deprecated="not deprecated">
  9602. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9603. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9604. <exception name="IOException" type="java.io.IOException"/>
  9605. </method>
  9606. <method name="delete" return="boolean"
  9607. abstract="false" native="false" synchronized="false"
  9608. static="false" final="false" visibility="public"
  9609. deprecated="not deprecated">
  9610. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9611. <param name="recursive" type="boolean"/>
  9612. <exception name="IOException" type="java.io.IOException"/>
  9613. </method>
  9614. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9615. abstract="false" native="false" synchronized="false"
  9616. static="false" final="false" visibility="public"
  9617. deprecated="not deprecated">
  9618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9619. <exception name="IOException" type="java.io.IOException"/>
  9620. <doc>
  9621. <![CDATA[FileStatus for S3 file systems.]]>
  9622. </doc>
  9623. </method>
  9624. <method name="getDefaultBlockSize" return="long"
  9625. abstract="false" native="false" synchronized="false"
  9626. static="false" final="false" visibility="public"
  9627. deprecated="not deprecated">
  9628. </method>
  9629. <doc>
  9630. <![CDATA[<p>
  9631. A block-based {@link FileSystem} backed by
  9632. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  9633. </p>
  9634. @see NativeS3FileSystem]]>
  9635. </doc>
  9636. </class>
  9637. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  9638. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  9639. <class name="S3FileSystemException" extends="java.io.IOException"
  9640. abstract="false"
  9641. static="false" final="false" visibility="public"
  9642. deprecated="not deprecated">
  9643. <constructor name="S3FileSystemException" type="java.lang.String"
  9644. static="false" final="false" visibility="public"
  9645. deprecated="not deprecated">
  9646. </constructor>
  9647. <doc>
  9648. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  9649. </doc>
  9650. </class>
  9651. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  9652. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  9653. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  9654. abstract="false"
  9655. static="false" final="false" visibility="public"
  9656. deprecated="not deprecated">
  9657. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  9658. static="false" final="false" visibility="public"
  9659. deprecated="not deprecated">
  9660. </constructor>
  9661. <doc>
  9662. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  9663. in {@link S3FileSystem}.]]>
  9664. </doc>
  9665. </class>
  9666. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  9667. <doc>
  9668. <![CDATA[<p>A distributed, block-based implementation of {@link
  9669. org.apache.hadoop.fs.FileSystem} that uses <a href="http://aws.amazon.com/s3">Amazon S3</a>
  9670. as a backing store.</p>
  9671. <p>
  9672. Files are stored in S3 as blocks (represented by
  9673. {@link org.apache.hadoop.fs.s3.Block}), which have an ID and a length.
  9674. Block metadata is stored in S3 as a small record (represented by
  9675. {@link org.apache.hadoop.fs.s3.INode}) using the URL-encoded
  9676. path string as a key. Inodes record the file type (regular file or directory) and the list of blocks.
  9677. This design makes it easy to seek to any given position in a file by reading the inode data to compute
  9678. which block to access, then using S3's support for
  9679. <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2">HTTP Range</a> headers
  9680. to start streaming from the correct position.
  9681. Renames are also efficient since only the inode is moved (by a DELETE followed by a PUT since
  9682. S3 does not support renames).
  9683. </p>
  9684. <p>
  9685. For a single file <i>/dir1/file1</i> which takes two blocks of storage, the file structure in S3
  9686. would be something like this:
  9687. </p>
  9688. <pre>
  9689. /
  9690. /dir1
  9691. /dir1/file1
  9692. block-6415776850131549260
  9693. block-3026438247347758425
  9694. </pre>
  9695. <p>
  9696. Inodes start with a leading <code>/</code>, while blocks are prefixed with <code>block-</code>.
  9697. </p>]]>
  9698. </doc>
  9699. </package>
  9700. <package name="org.apache.hadoop.fs.s3native">
  9701. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  9702. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  9703. abstract="false"
  9704. static="false" final="false" visibility="public"
  9705. deprecated="not deprecated">
  9706. <constructor name="NativeS3FileSystem"
  9707. static="false" final="false" visibility="public"
  9708. deprecated="not deprecated">
  9709. </constructor>
  9710. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  9711. static="false" final="false" visibility="public"
  9712. deprecated="not deprecated">
  9713. </constructor>
  9714. <method name="initialize"
  9715. abstract="false" native="false" synchronized="false"
  9716. static="false" final="false" visibility="public"
  9717. deprecated="not deprecated">
  9718. <param name="uri" type="java.net.URI"/>
  9719. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9720. <exception name="IOException" type="java.io.IOException"/>
  9721. </method>
  9722. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9723. abstract="false" native="false" synchronized="false"
  9724. static="false" final="false" visibility="public"
  9725. deprecated="not deprecated">
  9726. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9727. <param name="bufferSize" type="int"/>
  9728. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9729. <exception name="IOException" type="java.io.IOException"/>
  9730. <doc>
  9731. <![CDATA[This optional operation is not yet supported.]]>
  9732. </doc>
  9733. </method>
  9734. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9735. abstract="false" native="false" synchronized="false"
  9736. static="false" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9739. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9740. <param name="overwrite" type="boolean"/>
  9741. <param name="bufferSize" type="int"/>
  9742. <param name="replication" type="short"/>
  9743. <param name="blockSize" type="long"/>
  9744. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9745. <exception name="IOException" type="java.io.IOException"/>
  9746. </method>
  9747. <method name="delete" return="boolean"
  9748. abstract="false" native="false" synchronized="false"
  9749. static="false" final="false" visibility="public"
  9750. deprecated="not deprecated">
  9751. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9752. <param name="recurse" type="boolean"/>
  9753. <exception name="IOException" type="java.io.IOException"/>
  9754. </method>
  9755. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9756. abstract="false" native="false" synchronized="false"
  9757. static="false" final="false" visibility="public"
  9758. deprecated="not deprecated">
  9759. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9760. <exception name="IOException" type="java.io.IOException"/>
  9761. </method>
  9762. <method name="getUri" return="java.net.URI"
  9763. abstract="false" native="false" synchronized="false"
  9764. static="false" final="false" visibility="public"
  9765. deprecated="not deprecated">
  9766. </method>
  9767. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9768. abstract="false" native="false" synchronized="false"
  9769. static="false" final="false" visibility="public"
  9770. deprecated="not deprecated">
  9771. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9772. <exception name="IOException" type="java.io.IOException"/>
  9773. <doc>
  9774. <![CDATA[<p>
  9775. If <code>f</code> is a file, this method will make a single call to S3.
  9776. If <code>f</code> is a directory, this method will make a maximum of
  9777. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  9778. files and directories contained directly in <code>f</code>.
  9779. </p>]]>
  9780. </doc>
  9781. </method>
  9782. <method name="mkdirs" return="boolean"
  9783. abstract="false" native="false" synchronized="false"
  9784. static="false" final="false" visibility="public"
  9785. deprecated="not deprecated">
  9786. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9787. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9788. <exception name="IOException" type="java.io.IOException"/>
  9789. </method>
  9790. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9791. abstract="false" native="false" synchronized="false"
  9792. static="false" final="false" visibility="public"
  9793. deprecated="not deprecated">
  9794. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9795. <param name="bufferSize" type="int"/>
  9796. <exception name="IOException" type="java.io.IOException"/>
  9797. </method>
  9798. <method name="rename" return="boolean"
  9799. abstract="false" native="false" synchronized="false"
  9800. static="false" final="false" visibility="public"
  9801. deprecated="not deprecated">
  9802. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9803. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9804. <exception name="IOException" type="java.io.IOException"/>
  9805. </method>
  9806. <method name="getDefaultBlockSize" return="long"
  9807. abstract="false" native="false" synchronized="false"
  9808. static="false" final="false" visibility="public"
  9809. deprecated="not deprecated">
  9810. </method>
  9811. <method name="setWorkingDirectory"
  9812. abstract="false" native="false" synchronized="false"
  9813. static="false" final="false" visibility="public"
  9814. deprecated="not deprecated">
  9815. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  9816. <doc>
  9817. <![CDATA[Set the working directory to the given directory.]]>
  9818. </doc>
  9819. </method>
  9820. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9821. abstract="false" native="false" synchronized="false"
  9822. static="false" final="false" visibility="public"
  9823. deprecated="not deprecated">
  9824. </method>
  9825. <field name="LOG" type="org.apache.commons.logging.Log"
  9826. transient="false" volatile="false"
  9827. static="true" final="true" visibility="public"
  9828. deprecated="not deprecated">
  9829. </field>
  9830. <doc>
  9831. <![CDATA[<p>
  9832. A {@link FileSystem} for reading and writing files stored on
  9833. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  9834. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  9835. stores files on S3 in their
  9836. native form so they can be read by other S3 tools.
  9837. A note about directories. S3 of course has no "native" support for them.
  9838. The idiom we choose then is: for any directory created by this class,
  9839. we use an empty object "#{dirpath}_$folder$" as a marker.
  9840. Further, to interoperate with other S3 tools, we also accept the following:
  9841. - an object "#{dirpath}/' denoting a directory marker
  9842. - if there exists any objects with the prefix "#{dirpath}/", then the
  9843. directory is said to exist
  9844. - if both a file with the name of a directory and a marker for that
  9845. directory exists, then the *file masks the directory*, and the directory
  9846. is never returned.
  9847. </p>
  9848. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  9849. </doc>
  9850. </class>
  9851. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  9852. <doc>
  9853. <![CDATA[<p>
  9854. A distributed implementation of {@link
  9855. org.apache.hadoop.fs.FileSystem} for reading and writing files on
  9856. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  9857. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem}, which is block-based,
  9858. this implementation stores
  9859. files on S3 in their native form for interoperability with other S3 tools.
  9860. </p>]]>
  9861. </doc>
  9862. </package>
  9863. <package name="org.apache.hadoop.io">
  9864. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9865. <class name="AbstractMapWritable" extends="java.lang.Object"
  9866. abstract="true"
  9867. static="false" final="false" visibility="public"
  9868. deprecated="not deprecated">
  9869. <implements name="org.apache.hadoop.io.Writable"/>
  9870. <implements name="org.apache.hadoop.conf.Configurable"/>
  9871. <constructor name="AbstractMapWritable"
  9872. static="false" final="false" visibility="protected"
  9873. deprecated="not deprecated">
  9874. <doc>
  9875. <![CDATA[constructor.]]>
  9876. </doc>
  9877. </constructor>
  9878. <method name="addToMap"
  9879. abstract="false" native="false" synchronized="true"
  9880. static="false" final="false" visibility="protected"
  9881. deprecated="not deprecated">
  9882. <param name="clazz" type="java.lang.Class"/>
  9883. <doc>
  9884. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9885. </doc>
  9886. </method>
  9887. <method name="getClass" return="java.lang.Class"
  9888. abstract="false" native="false" synchronized="false"
  9889. static="false" final="false" visibility="protected"
  9890. deprecated="not deprecated">
  9891. <param name="id" type="byte"/>
  9892. <doc>
  9893. <![CDATA[@return the Class class for the specified id]]>
  9894. </doc>
  9895. </method>
  9896. <method name="getId" return="byte"
  9897. abstract="false" native="false" synchronized="false"
  9898. static="false" final="false" visibility="protected"
  9899. deprecated="not deprecated">
  9900. <param name="clazz" type="java.lang.Class"/>
  9901. <doc>
  9902. <![CDATA[@return the id for the specified Class]]>
  9903. </doc>
  9904. </method>
  9905. <method name="copy"
  9906. abstract="false" native="false" synchronized="true"
  9907. static="false" final="false" visibility="protected"
  9908. deprecated="not deprecated">
  9909. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9910. <doc>
  9911. <![CDATA[Used by child copy constructors.]]>
  9912. </doc>
  9913. </method>
  9914. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9915. abstract="false" native="false" synchronized="false"
  9916. static="false" final="false" visibility="public"
  9917. deprecated="not deprecated">
  9918. <doc>
  9919. <![CDATA[@return the conf]]>
  9920. </doc>
  9921. </method>
  9922. <method name="setConf"
  9923. abstract="false" native="false" synchronized="false"
  9924. static="false" final="false" visibility="public"
  9925. deprecated="not deprecated">
  9926. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9927. <doc>
  9928. <![CDATA[@param conf the conf to set]]>
  9929. </doc>
  9930. </method>
  9931. <method name="write"
  9932. abstract="false" native="false" synchronized="false"
  9933. static="false" final="false" visibility="public"
  9934. deprecated="not deprecated">
  9935. <param name="out" type="java.io.DataOutput"/>
  9936. <exception name="IOException" type="java.io.IOException"/>
  9937. <doc>
  9938. <![CDATA[{@inheritDoc}]]>
  9939. </doc>
  9940. </method>
  9941. <method name="readFields"
  9942. abstract="false" native="false" synchronized="false"
  9943. static="false" final="false" visibility="public"
  9944. deprecated="not deprecated">
  9945. <param name="in" type="java.io.DataInput"/>
  9946. <exception name="IOException" type="java.io.IOException"/>
  9947. <doc>
  9948. <![CDATA[{@inheritDoc}]]>
  9949. </doc>
  9950. </method>
  9951. <doc>
  9952. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9953. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9954. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9955. maps travel with the class instead of being static.
  9956. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9957. in any specific map instance.]]>
  9958. </doc>
  9959. </class>
  9960. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9961. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9962. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9963. abstract="false"
  9964. static="false" final="false" visibility="public"
  9965. deprecated="not deprecated">
  9966. <constructor name="ArrayFile"
  9967. static="false" final="false" visibility="protected"
  9968. deprecated="not deprecated">
  9969. </constructor>
  9970. <doc>
  9971. <![CDATA[A dense file-based mapping from integers to values.]]>
  9972. </doc>
  9973. </class>
  9974. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9975. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9976. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9977. abstract="false"
  9978. static="true" final="false" visibility="public"
  9979. deprecated="not deprecated">
  9980. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9981. static="false" final="false" visibility="public"
  9982. deprecated="not deprecated">
  9983. <exception name="IOException" type="java.io.IOException"/>
  9984. <doc>
  9985. <![CDATA[Construct an array reader for the named file.]]>
  9986. </doc>
  9987. </constructor>
  9988. <method name="seek"
  9989. abstract="false" native="false" synchronized="true"
  9990. static="false" final="false" visibility="public"
  9991. deprecated="not deprecated">
  9992. <param name="n" type="long"/>
  9993. <exception name="IOException" type="java.io.IOException"/>
  9994. <doc>
  9995. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9996. </doc>
  9997. </method>
  9998. <method name="next" return="org.apache.hadoop.io.Writable"
  9999. abstract="false" native="false" synchronized="true"
  10000. static="false" final="false" visibility="public"
  10001. deprecated="not deprecated">
  10002. <param name="value" type="org.apache.hadoop.io.Writable"/>
  10003. <exception name="IOException" type="java.io.IOException"/>
  10004. <doc>
  10005. <![CDATA[Read and return the next value in the file.]]>
  10006. </doc>
  10007. </method>
  10008. <method name="key" return="long"
  10009. abstract="false" native="false" synchronized="true"
  10010. static="false" final="false" visibility="public"
  10011. deprecated="not deprecated">
  10012. <exception name="IOException" type="java.io.IOException"/>
  10013. <doc>
  10014. <![CDATA[Returns the key associated with the most recent call to {@link
  10015. #seek(long)}, {@link #next(Writable)}, or {@link
  10016. #get(long,Writable)}.]]>
  10017. </doc>
  10018. </method>
  10019. <method name="get" return="org.apache.hadoop.io.Writable"
  10020. abstract="false" native="false" synchronized="true"
  10021. static="false" final="false" visibility="public"
  10022. deprecated="not deprecated">
  10023. <param name="n" type="long"/>
  10024. <param name="value" type="org.apache.hadoop.io.Writable"/>
  10025. <exception name="IOException" type="java.io.IOException"/>
  10026. <doc>
  10027. <![CDATA[Return the <code>n</code>th value in the file.]]>
  10028. </doc>
  10029. </method>
  10030. <doc>
  10031. <![CDATA[Provide access to an existing array file.]]>
  10032. </doc>
  10033. </class>
  10034. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  10035. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  10036. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  10037. abstract="false"
  10038. static="true" final="false" visibility="public"
  10039. deprecated="not deprecated">
  10040. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  10041. static="false" final="false" visibility="public"
  10042. deprecated="not deprecated">
  10043. <exception name="IOException" type="java.io.IOException"/>
  10044. <doc>
  10045. <![CDATA[Create the named file for values of the named class.]]>
  10046. </doc>
  10047. </constructor>
  10048. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  10049. static="false" final="false" visibility="public"
  10050. deprecated="not deprecated">
  10051. <exception name="IOException" type="java.io.IOException"/>
  10052. <doc>
  10053. <![CDATA[Create the named file for values of the named class.]]>
  10054. </doc>
  10055. </constructor>
  10056. <method name="append"
  10057. abstract="false" native="false" synchronized="true"
  10058. static="false" final="false" visibility="public"
  10059. deprecated="not deprecated">
  10060. <param name="value" type="org.apache.hadoop.io.Writable"/>
  10061. <exception name="IOException" type="java.io.IOException"/>
  10062. <doc>
  10063. <![CDATA[Append a value to the file.]]>
  10064. </doc>
  10065. </method>
  10066. <doc>
  10067. <![CDATA[Write a new array file.]]>
  10068. </doc>
  10069. </class>
  10070. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  10071. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  10072. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  10073. abstract="false"
  10074. static="false" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <implements name="org.apache.hadoop.io.Writable"/>
  10077. <constructor name="ArrayPrimitiveWritable"
  10078. static="false" final="false" visibility="public"
  10079. deprecated="not deprecated">
  10080. <doc>
  10081. <![CDATA[Construct an empty instance, for use during Writable read]]>
  10082. </doc>
  10083. </constructor>
  10084. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  10085. static="false" final="false" visibility="public"
  10086. deprecated="not deprecated">
  10087. <doc>
  10088. <![CDATA[Construct an instance of known type but no value yet
  10089. for use with type-specific wrapper classes]]>
  10090. </doc>
  10091. </constructor>
  10092. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  10093. static="false" final="false" visibility="public"
  10094. deprecated="not deprecated">
  10095. <doc>
  10096. <![CDATA[Wrap an existing array of primitives
  10097. @param value - array of primitives]]>
  10098. </doc>
  10099. </constructor>
  10100. <method name="get" return="java.lang.Object"
  10101. abstract="false" native="false" synchronized="false"
  10102. static="false" final="false" visibility="public"
  10103. deprecated="not deprecated">
  10104. <doc>
  10105. <![CDATA[Get the original array.
  10106. Client must cast it back to type componentType[]
  10107. (or may use type-specific wrapper classes).
  10108. @return - original array as Object]]>
  10109. </doc>
  10110. </method>
  10111. <method name="getComponentType" return="java.lang.Class"
  10112. abstract="false" native="false" synchronized="false"
  10113. static="false" final="false" visibility="public"
  10114. deprecated="not deprecated">
  10115. </method>
  10116. <method name="getDeclaredComponentType" return="java.lang.Class"
  10117. abstract="false" native="false" synchronized="false"
  10118. static="false" final="false" visibility="public"
  10119. deprecated="not deprecated">
  10120. </method>
  10121. <method name="isDeclaredComponentType" return="boolean"
  10122. abstract="false" native="false" synchronized="false"
  10123. static="false" final="false" visibility="public"
  10124. deprecated="not deprecated">
  10125. <param name="componentType" type="java.lang.Class"/>
  10126. </method>
  10127. <method name="set"
  10128. abstract="false" native="false" synchronized="false"
  10129. static="false" final="false" visibility="public"
  10130. deprecated="not deprecated">
  10131. <param name="value" type="java.lang.Object"/>
  10132. </method>
  10133. <method name="write"
  10134. abstract="false" native="false" synchronized="false"
  10135. static="false" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. <param name="out" type="java.io.DataOutput"/>
  10138. <exception name="IOException" type="java.io.IOException"/>
  10139. </method>
  10140. <method name="readFields"
  10141. abstract="false" native="false" synchronized="false"
  10142. static="false" final="false" visibility="public"
  10143. deprecated="not deprecated">
  10144. <param name="in" type="java.io.DataInput"/>
  10145. <exception name="IOException" type="java.io.IOException"/>
  10146. </method>
  10147. <doc>
  10148. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  10149. an array of primitives (e.g., int[], long[], etc.), with optimized
  10150. wire format, and without creating new objects per element.
  10151. This is a wrapper class only; it does not make a copy of the
  10152. underlying array.]]>
  10153. </doc>
  10154. </class>
  10155. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  10156. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  10157. <class name="ArrayWritable" extends="java.lang.Object"
  10158. abstract="false"
  10159. static="false" final="false" visibility="public"
  10160. deprecated="not deprecated">
  10161. <implements name="org.apache.hadoop.io.Writable"/>
  10162. <constructor name="ArrayWritable" type="java.lang.Class"
  10163. static="false" final="false" visibility="public"
  10164. deprecated="not deprecated">
  10165. </constructor>
  10166. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  10167. static="false" final="false" visibility="public"
  10168. deprecated="not deprecated">
  10169. </constructor>
  10170. <constructor name="ArrayWritable" type="java.lang.String[]"
  10171. static="false" final="false" visibility="public"
  10172. deprecated="not deprecated">
  10173. </constructor>
  10174. <method name="getValueClass" return="java.lang.Class"
  10175. abstract="false" native="false" synchronized="false"
  10176. static="false" final="false" visibility="public"
  10177. deprecated="not deprecated">
  10178. </method>
  10179. <method name="toStrings" return="java.lang.String[]"
  10180. abstract="false" native="false" synchronized="false"
  10181. static="false" final="false" visibility="public"
  10182. deprecated="not deprecated">
  10183. </method>
  10184. <method name="toArray" return="java.lang.Object"
  10185. abstract="false" native="false" synchronized="false"
  10186. static="false" final="false" visibility="public"
  10187. deprecated="not deprecated">
  10188. </method>
  10189. <method name="set"
  10190. abstract="false" native="false" synchronized="false"
  10191. static="false" final="false" visibility="public"
  10192. deprecated="not deprecated">
  10193. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  10194. </method>
  10195. <method name="get" return="org.apache.hadoop.io.Writable[]"
  10196. abstract="false" native="false" synchronized="false"
  10197. static="false" final="false" visibility="public"
  10198. deprecated="not deprecated">
  10199. </method>
  10200. <method name="readFields"
  10201. abstract="false" native="false" synchronized="false"
  10202. static="false" final="false" visibility="public"
  10203. deprecated="not deprecated">
  10204. <param name="in" type="java.io.DataInput"/>
  10205. <exception name="IOException" type="java.io.IOException"/>
  10206. </method>
  10207. <method name="write"
  10208. abstract="false" native="false" synchronized="false"
  10209. static="false" final="false" visibility="public"
  10210. deprecated="not deprecated">
  10211. <param name="out" type="java.io.DataOutput"/>
  10212. <exception name="IOException" type="java.io.IOException"/>
  10213. </method>
  10214. <doc>
  10215. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  10216. writable must all be instances of the same class. If this writable will be
  10217. the input for a Reducer, you will need to create a subclass that sets the
  10218. value to be of the proper type.
  10219. For example:
  10220. <code>
  10221. public class IntArrayWritable extends ArrayWritable {
  10222. public IntArrayWritable() {
  10223. super(IntWritable.class);
  10224. }
  10225. }
  10226. </code>]]>
  10227. </doc>
  10228. </class>
  10229. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  10230. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  10231. <class name="BinaryComparable" extends="java.lang.Object"
  10232. abstract="true"
  10233. static="false" final="false" visibility="public"
  10234. deprecated="not deprecated">
  10235. <implements name="java.lang.Comparable"/>
  10236. <constructor name="BinaryComparable"
  10237. static="false" final="false" visibility="public"
  10238. deprecated="not deprecated">
  10239. </constructor>
  10240. <method name="getLength" return="int"
  10241. abstract="true" native="false" synchronized="false"
  10242. static="false" final="false" visibility="public"
  10243. deprecated="not deprecated">
  10244. <doc>
  10245. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  10246. </doc>
  10247. </method>
  10248. <method name="getBytes" return="byte[]"
  10249. abstract="true" native="false" synchronized="false"
  10250. static="false" final="false" visibility="public"
  10251. deprecated="not deprecated">
  10252. <doc>
  10253. <![CDATA[Return representative byte array for this instance.]]>
  10254. </doc>
  10255. </method>
  10256. <method name="compareTo" return="int"
  10257. abstract="false" native="false" synchronized="false"
  10258. static="false" final="false" visibility="public"
  10259. deprecated="not deprecated">
  10260. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  10261. <doc>
  10262. <![CDATA[Compare bytes from {#getBytes()}.
  10263. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  10264. </doc>
  10265. </method>
  10266. <method name="compareTo" return="int"
  10267. abstract="false" native="false" synchronized="false"
  10268. static="false" final="false" visibility="public"
  10269. deprecated="not deprecated">
  10270. <param name="other" type="byte[]"/>
  10271. <param name="off" type="int"/>
  10272. <param name="len" type="int"/>
  10273. <doc>
  10274. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  10275. </doc>
  10276. </method>
  10277. <method name="equals" return="boolean"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="false" final="false" visibility="public"
  10280. deprecated="not deprecated">
  10281. <param name="other" type="java.lang.Object"/>
  10282. <doc>
  10283. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  10284. </doc>
  10285. </method>
  10286. <method name="hashCode" return="int"
  10287. abstract="false" native="false" synchronized="false"
  10288. static="false" final="false" visibility="public"
  10289. deprecated="not deprecated">
  10290. <doc>
  10291. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  10292. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  10293. </doc>
  10294. </method>
  10295. <doc>
  10296. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  10297. types supporting ordering/permutation by a representative set of bytes.]]>
  10298. </doc>
  10299. </class>
  10300. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  10301. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  10302. <class name="BloomMapFile" extends="java.lang.Object"
  10303. abstract="false"
  10304. static="false" final="false" visibility="public"
  10305. deprecated="not deprecated">
  10306. <constructor name="BloomMapFile"
  10307. static="false" final="false" visibility="public"
  10308. deprecated="not deprecated">
  10309. </constructor>
  10310. <method name="delete"
  10311. abstract="false" native="false" synchronized="false"
  10312. static="true" final="false" visibility="public"
  10313. deprecated="not deprecated">
  10314. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10315. <param name="name" type="java.lang.String"/>
  10316. <exception name="IOException" type="java.io.IOException"/>
  10317. </method>
  10318. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  10319. transient="false" volatile="false"
  10320. static="true" final="true" visibility="public"
  10321. deprecated="not deprecated">
  10322. </field>
  10323. <field name="HASH_COUNT" type="int"
  10324. transient="false" volatile="false"
  10325. static="true" final="true" visibility="public"
  10326. deprecated="not deprecated">
  10327. </field>
  10328. <doc>
  10329. <![CDATA[This class extends {@link MapFile} and provides very much the same
  10330. functionality. However, it uses dynamic Bloom filters to provide
  10331. quick membership test for keys, and it offers a fast version of
  10332. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  10333. case of sparsely populated MapFile-s.]]>
  10334. </doc>
  10335. </class>
  10336. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  10337. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  10338. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  10339. abstract="false"
  10340. static="true" final="false" visibility="public"
  10341. deprecated="not deprecated">
  10342. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  10343. static="false" final="false" visibility="public"
  10344. deprecated="not deprecated">
  10345. <exception name="IOException" type="java.io.IOException"/>
  10346. </constructor>
  10347. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  10348. static="false" final="false" visibility="public"
  10349. deprecated="not deprecated">
  10350. <exception name="IOException" type="java.io.IOException"/>
  10351. </constructor>
  10352. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10353. static="false" final="false" visibility="public"
  10354. deprecated="not deprecated">
  10355. <exception name="IOException" type="java.io.IOException"/>
  10356. </constructor>
  10357. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10358. static="false" final="false" visibility="public"
  10359. deprecated="not deprecated">
  10360. <exception name="IOException" type="java.io.IOException"/>
  10361. </constructor>
  10362. <method name="probablyHasKey" return="boolean"
  10363. abstract="false" native="false" synchronized="false"
  10364. static="false" final="false" visibility="public"
  10365. deprecated="not deprecated">
  10366. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10367. <exception name="IOException" type="java.io.IOException"/>
  10368. <doc>
  10369. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  10370. performed using a Bloom filter, so the result has always non-zero
  10371. probability of false positives.
  10372. @param key key to check
  10373. @return false iff key doesn't exist, true if key probably exists.
  10374. @throws IOException]]>
  10375. </doc>
  10376. </method>
  10377. <method name="get" return="org.apache.hadoop.io.Writable"
  10378. abstract="false" native="false" synchronized="true"
  10379. static="false" final="false" visibility="public"
  10380. deprecated="not deprecated">
  10381. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10382. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10383. <exception name="IOException" type="java.io.IOException"/>
  10384. <doc>
  10385. <![CDATA[Fast version of the
  10386. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  10387. it checks the Bloom filter for the existence of the key, and only if
  10388. present it performs the real get operation. This yields significant
  10389. performance improvements for get operations on sparsely populated files.]]>
  10390. </doc>
  10391. </method>
  10392. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  10393. abstract="false" native="false" synchronized="false"
  10394. static="false" final="false" visibility="public"
  10395. deprecated="not deprecated">
  10396. <doc>
  10397. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  10398. @return a Bloom filter (see {@link Filter})]]>
  10399. </doc>
  10400. </method>
  10401. </class>
  10402. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  10403. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  10404. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  10405. abstract="false"
  10406. static="true" final="false" visibility="public"
  10407. deprecated="not deprecated">
  10408. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  10409. static="false" final="false" visibility="public"
  10410. deprecated="not deprecated">
  10411. <exception name="IOException" type="java.io.IOException"/>
  10412. </constructor>
  10413. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  10414. static="false" final="false" visibility="public"
  10415. deprecated="not deprecated">
  10416. <exception name="IOException" type="java.io.IOException"/>
  10417. </constructor>
  10418. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  10419. static="false" final="false" visibility="public"
  10420. deprecated="not deprecated">
  10421. <exception name="IOException" type="java.io.IOException"/>
  10422. </constructor>
  10423. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  10424. static="false" final="false" visibility="public"
  10425. deprecated="not deprecated">
  10426. <exception name="IOException" type="java.io.IOException"/>
  10427. </constructor>
  10428. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  10429. static="false" final="false" visibility="public"
  10430. deprecated="not deprecated">
  10431. <exception name="IOException" type="java.io.IOException"/>
  10432. </constructor>
  10433. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  10434. static="false" final="false" visibility="public"
  10435. deprecated="not deprecated">
  10436. <exception name="IOException" type="java.io.IOException"/>
  10437. </constructor>
  10438. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  10439. static="false" final="false" visibility="public"
  10440. deprecated="not deprecated">
  10441. <exception name="IOException" type="java.io.IOException"/>
  10442. </constructor>
  10443. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  10444. static="false" final="false" visibility="public"
  10445. deprecated="not deprecated">
  10446. <exception name="IOException" type="java.io.IOException"/>
  10447. </constructor>
  10448. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, org.apache.hadoop.io.SequenceFile.Writer.Option[]"
  10449. static="false" final="false" visibility="public"
  10450. deprecated="not deprecated">
  10451. <exception name="IOException" type="java.io.IOException"/>
  10452. </constructor>
  10453. <method name="append"
  10454. abstract="false" native="false" synchronized="true"
  10455. static="false" final="false" visibility="public"
  10456. deprecated="not deprecated">
  10457. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10458. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10459. <exception name="IOException" type="java.io.IOException"/>
  10460. </method>
  10461. <method name="close"
  10462. abstract="false" native="false" synchronized="true"
  10463. static="false" final="false" visibility="public"
  10464. deprecated="not deprecated">
  10465. <exception name="IOException" type="java.io.IOException"/>
  10466. </method>
  10467. </class>
  10468. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  10469. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  10470. <class name="BooleanWritable" extends="java.lang.Object"
  10471. abstract="false"
  10472. static="false" final="false" visibility="public"
  10473. deprecated="not deprecated">
  10474. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10475. <constructor name="BooleanWritable"
  10476. static="false" final="false" visibility="public"
  10477. deprecated="not deprecated">
  10478. </constructor>
  10479. <constructor name="BooleanWritable" type="boolean"
  10480. static="false" final="false" visibility="public"
  10481. deprecated="not deprecated">
  10482. </constructor>
  10483. <method name="set"
  10484. abstract="false" native="false" synchronized="false"
  10485. static="false" final="false" visibility="public"
  10486. deprecated="not deprecated">
  10487. <param name="value" type="boolean"/>
  10488. <doc>
  10489. <![CDATA[Set the value of the BooleanWritable]]>
  10490. </doc>
  10491. </method>
  10492. <method name="get" return="boolean"
  10493. abstract="false" native="false" synchronized="false"
  10494. static="false" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. <doc>
  10497. <![CDATA[Returns the value of the BooleanWritable]]>
  10498. </doc>
  10499. </method>
  10500. <method name="readFields"
  10501. abstract="false" native="false" synchronized="false"
  10502. static="false" final="false" visibility="public"
  10503. deprecated="not deprecated">
  10504. <param name="in" type="java.io.DataInput"/>
  10505. <exception name="IOException" type="java.io.IOException"/>
  10506. </method>
  10507. <method name="write"
  10508. abstract="false" native="false" synchronized="false"
  10509. static="false" final="false" visibility="public"
  10510. deprecated="not deprecated">
  10511. <param name="out" type="java.io.DataOutput"/>
  10512. <exception name="IOException" type="java.io.IOException"/>
  10513. </method>
  10514. <method name="equals" return="boolean"
  10515. abstract="false" native="false" synchronized="false"
  10516. static="false" final="false" visibility="public"
  10517. deprecated="not deprecated">
  10518. <param name="o" type="java.lang.Object"/>
  10519. </method>
  10520. <method name="hashCode" return="int"
  10521. abstract="false" native="false" synchronized="false"
  10522. static="false" final="false" visibility="public"
  10523. deprecated="not deprecated">
  10524. </method>
  10525. <method name="compareTo" return="int"
  10526. abstract="false" native="false" synchronized="false"
  10527. static="false" final="false" visibility="public"
  10528. deprecated="not deprecated">
  10529. <param name="o" type="java.lang.Object"/>
  10530. </method>
  10531. <method name="toString" return="java.lang.String"
  10532. abstract="false" native="false" synchronized="false"
  10533. static="false" final="false" visibility="public"
  10534. deprecated="not deprecated">
  10535. </method>
  10536. <doc>
  10537. <![CDATA[A WritableComparable for booleans.]]>
  10538. </doc>
  10539. </class>
  10540. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  10541. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10542. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10543. abstract="false"
  10544. static="true" final="false" visibility="public"
  10545. deprecated="not deprecated">
  10546. <constructor name="BooleanWritable.Comparator"
  10547. static="false" final="false" visibility="public"
  10548. deprecated="not deprecated">
  10549. </constructor>
  10550. <method name="compare" return="int"
  10551. abstract="false" native="false" synchronized="false"
  10552. static="false" final="false" visibility="public"
  10553. deprecated="not deprecated">
  10554. <param name="b1" type="byte[]"/>
  10555. <param name="s1" type="int"/>
  10556. <param name="l1" type="int"/>
  10557. <param name="b2" type="byte[]"/>
  10558. <param name="s2" type="int"/>
  10559. <param name="l2" type="int"/>
  10560. </method>
  10561. <doc>
  10562. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  10563. </doc>
  10564. </class>
  10565. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10566. <!-- start class org.apache.hadoop.io.BytesWritable -->
  10567. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  10568. abstract="false"
  10569. static="false" final="false" visibility="public"
  10570. deprecated="not deprecated">
  10571. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10572. <constructor name="BytesWritable"
  10573. static="false" final="false" visibility="public"
  10574. deprecated="not deprecated">
  10575. <doc>
  10576. <![CDATA[Create a zero-size sequence.]]>
  10577. </doc>
  10578. </constructor>
  10579. <constructor name="BytesWritable" type="byte[]"
  10580. static="false" final="false" visibility="public"
  10581. deprecated="not deprecated">
  10582. <doc>
  10583. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  10584. @param bytes This array becomes the backing storage for the object.]]>
  10585. </doc>
  10586. </constructor>
  10587. <method name="copyBytes" return="byte[]"
  10588. abstract="false" native="false" synchronized="false"
  10589. static="false" final="false" visibility="public"
  10590. deprecated="not deprecated">
  10591. <doc>
  10592. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  10593. See {@link #getBytes()} for faster access to the underlying array.]]>
  10594. </doc>
  10595. </method>
  10596. <method name="getBytes" return="byte[]"
  10597. abstract="false" native="false" synchronized="false"
  10598. static="false" final="false" visibility="public"
  10599. deprecated="not deprecated">
  10600. <doc>
  10601. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  10602. if you need the returned array to be precisely the length of the data.
  10603. @return The data is only valid between 0 and getLength() - 1.]]>
  10604. </doc>
  10605. </method>
  10606. <method name="get" return="byte[]"
  10607. abstract="false" native="false" synchronized="false"
  10608. static="false" final="false" visibility="public"
  10609. deprecated="Use {@link #getBytes()} instead.">
  10610. <doc>
  10611. <![CDATA[Get the data from the BytesWritable.
  10612. @deprecated Use {@link #getBytes()} instead.]]>
  10613. </doc>
  10614. </method>
  10615. <method name="getLength" return="int"
  10616. abstract="false" native="false" synchronized="false"
  10617. static="false" final="false" visibility="public"
  10618. deprecated="not deprecated">
  10619. <doc>
  10620. <![CDATA[Get the current size of the buffer.]]>
  10621. </doc>
  10622. </method>
  10623. <method name="getSize" return="int"
  10624. abstract="false" native="false" synchronized="false"
  10625. static="false" final="false" visibility="public"
  10626. deprecated="Use {@link #getLength()} instead.">
  10627. <doc>
  10628. <![CDATA[Get the current size of the buffer.
  10629. @deprecated Use {@link #getLength()} instead.]]>
  10630. </doc>
  10631. </method>
  10632. <method name="setSize"
  10633. abstract="false" native="false" synchronized="false"
  10634. static="false" final="false" visibility="public"
  10635. deprecated="not deprecated">
  10636. <param name="size" type="int"/>
  10637. <doc>
  10638. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10639. and any new values are undefined. The capacity is changed if it is
  10640. necessary.
  10641. @param size The new number of bytes]]>
  10642. </doc>
  10643. </method>
  10644. <method name="getCapacity" return="int"
  10645. abstract="false" native="false" synchronized="false"
  10646. static="false" final="false" visibility="public"
  10647. deprecated="not deprecated">
  10648. <doc>
  10649. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10650. resizing the backing storage.
  10651. @return The number of bytes]]>
  10652. </doc>
  10653. </method>
  10654. <method name="setCapacity"
  10655. abstract="false" native="false" synchronized="false"
  10656. static="false" final="false" visibility="public"
  10657. deprecated="not deprecated">
  10658. <param name="new_cap" type="int"/>
  10659. <doc>
  10660. <![CDATA[Change the capacity of the backing storage.
  10661. The data is preserved.
  10662. @param new_cap The new capacity in bytes.]]>
  10663. </doc>
  10664. </method>
  10665. <method name="set"
  10666. abstract="false" native="false" synchronized="false"
  10667. static="false" final="false" visibility="public"
  10668. deprecated="not deprecated">
  10669. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10670. <doc>
  10671. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10672. @param newData the value to set this BytesWritable to.]]>
  10673. </doc>
  10674. </method>
  10675. <method name="set"
  10676. abstract="false" native="false" synchronized="false"
  10677. static="false" final="false" visibility="public"
  10678. deprecated="not deprecated">
  10679. <param name="newData" type="byte[]"/>
  10680. <param name="offset" type="int"/>
  10681. <param name="length" type="int"/>
  10682. <doc>
  10683. <![CDATA[Set the value to a copy of the given byte range
  10684. @param newData the new values to copy in
  10685. @param offset the offset in newData to start at
  10686. @param length the number of bytes to copy]]>
  10687. </doc>
  10688. </method>
  10689. <method name="readFields"
  10690. abstract="false" native="false" synchronized="false"
  10691. static="false" final="false" visibility="public"
  10692. deprecated="not deprecated">
  10693. <param name="in" type="java.io.DataInput"/>
  10694. <exception name="IOException" type="java.io.IOException"/>
  10695. </method>
  10696. <method name="write"
  10697. abstract="false" native="false" synchronized="false"
  10698. static="false" final="false" visibility="public"
  10699. deprecated="not deprecated">
  10700. <param name="out" type="java.io.DataOutput"/>
  10701. <exception name="IOException" type="java.io.IOException"/>
  10702. </method>
  10703. <method name="hashCode" return="int"
  10704. abstract="false" native="false" synchronized="false"
  10705. static="false" final="false" visibility="public"
  10706. deprecated="not deprecated">
  10707. </method>
  10708. <method name="equals" return="boolean"
  10709. abstract="false" native="false" synchronized="false"
  10710. static="false" final="false" visibility="public"
  10711. deprecated="not deprecated">
  10712. <param name="right_obj" type="java.lang.Object"/>
  10713. <doc>
  10714. <![CDATA[Are the two byte sequences equal?]]>
  10715. </doc>
  10716. </method>
  10717. <method name="toString" return="java.lang.String"
  10718. abstract="false" native="false" synchronized="false"
  10719. static="false" final="false" visibility="public"
  10720. deprecated="not deprecated">
  10721. <doc>
  10722. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10723. </doc>
  10724. </method>
  10725. <doc>
  10726. <![CDATA[A byte sequence that is usable as a key or value.
  10727. It is resizable and distinguishes between the size of the seqeunce and
  10728. the current capacity. The hash function is the front of the md5 of the
  10729. buffer. The sort order is the same as memcmp.]]>
  10730. </doc>
  10731. </class>
  10732. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10733. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10734. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10735. abstract="false"
  10736. static="true" final="false" visibility="public"
  10737. deprecated="not deprecated">
  10738. <constructor name="BytesWritable.Comparator"
  10739. static="false" final="false" visibility="public"
  10740. deprecated="not deprecated">
  10741. </constructor>
  10742. <method name="compare" return="int"
  10743. abstract="false" native="false" synchronized="false"
  10744. static="false" final="false" visibility="public"
  10745. deprecated="not deprecated">
  10746. <param name="b1" type="byte[]"/>
  10747. <param name="s1" type="int"/>
  10748. <param name="l1" type="int"/>
  10749. <param name="b2" type="byte[]"/>
  10750. <param name="s2" type="int"/>
  10751. <param name="l2" type="int"/>
  10752. <doc>
  10753. <![CDATA[Compare the buffers in serialized form.]]>
  10754. </doc>
  10755. </method>
  10756. <doc>
  10757. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10758. </doc>
  10759. </class>
  10760. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10761. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10762. <class name="ByteWritable" extends="java.lang.Object"
  10763. abstract="false"
  10764. static="false" final="false" visibility="public"
  10765. deprecated="not deprecated">
  10766. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10767. <constructor name="ByteWritable"
  10768. static="false" final="false" visibility="public"
  10769. deprecated="not deprecated">
  10770. </constructor>
  10771. <constructor name="ByteWritable" type="byte"
  10772. static="false" final="false" visibility="public"
  10773. deprecated="not deprecated">
  10774. </constructor>
  10775. <method name="set"
  10776. abstract="false" native="false" synchronized="false"
  10777. static="false" final="false" visibility="public"
  10778. deprecated="not deprecated">
  10779. <param name="value" type="byte"/>
  10780. <doc>
  10781. <![CDATA[Set the value of this ByteWritable.]]>
  10782. </doc>
  10783. </method>
  10784. <method name="get" return="byte"
  10785. abstract="false" native="false" synchronized="false"
  10786. static="false" final="false" visibility="public"
  10787. deprecated="not deprecated">
  10788. <doc>
  10789. <![CDATA[Return the value of this ByteWritable.]]>
  10790. </doc>
  10791. </method>
  10792. <method name="readFields"
  10793. abstract="false" native="false" synchronized="false"
  10794. static="false" final="false" visibility="public"
  10795. deprecated="not deprecated">
  10796. <param name="in" type="java.io.DataInput"/>
  10797. <exception name="IOException" type="java.io.IOException"/>
  10798. </method>
  10799. <method name="write"
  10800. abstract="false" native="false" synchronized="false"
  10801. static="false" final="false" visibility="public"
  10802. deprecated="not deprecated">
  10803. <param name="out" type="java.io.DataOutput"/>
  10804. <exception name="IOException" type="java.io.IOException"/>
  10805. </method>
  10806. <method name="equals" return="boolean"
  10807. abstract="false" native="false" synchronized="false"
  10808. static="false" final="false" visibility="public"
  10809. deprecated="not deprecated">
  10810. <param name="o" type="java.lang.Object"/>
  10811. <doc>
  10812. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10813. </doc>
  10814. </method>
  10815. <method name="hashCode" return="int"
  10816. abstract="false" native="false" synchronized="false"
  10817. static="false" final="false" visibility="public"
  10818. deprecated="not deprecated">
  10819. </method>
  10820. <method name="compareTo" return="int"
  10821. abstract="false" native="false" synchronized="false"
  10822. static="false" final="false" visibility="public"
  10823. deprecated="not deprecated">
  10824. <param name="o" type="java.lang.Object"/>
  10825. <doc>
  10826. <![CDATA[Compares two ByteWritables.]]>
  10827. </doc>
  10828. </method>
  10829. <method name="toString" return="java.lang.String"
  10830. abstract="false" native="false" synchronized="false"
  10831. static="false" final="false" visibility="public"
  10832. deprecated="not deprecated">
  10833. </method>
  10834. <doc>
  10835. <![CDATA[A WritableComparable for a single byte.]]>
  10836. </doc>
  10837. </class>
  10838. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10839. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10840. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10841. abstract="false"
  10842. static="true" final="false" visibility="public"
  10843. deprecated="not deprecated">
  10844. <constructor name="ByteWritable.Comparator"
  10845. static="false" final="false" visibility="public"
  10846. deprecated="not deprecated">
  10847. </constructor>
  10848. <method name="compare" return="int"
  10849. abstract="false" native="false" synchronized="false"
  10850. static="false" final="false" visibility="public"
  10851. deprecated="not deprecated">
  10852. <param name="b1" type="byte[]"/>
  10853. <param name="s1" type="int"/>
  10854. <param name="l1" type="int"/>
  10855. <param name="b2" type="byte[]"/>
  10856. <param name="s2" type="int"/>
  10857. <param name="l2" type="int"/>
  10858. </method>
  10859. <doc>
  10860. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10861. </doc>
  10862. </class>
  10863. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10864. <!-- start interface org.apache.hadoop.io.Closeable -->
  10865. <interface name="Closeable" abstract="true"
  10866. static="false" final="false" visibility="public"
  10867. deprecated="use java.io.Closeable">
  10868. <implements name="java.io.Closeable"/>
  10869. <doc>
  10870. <![CDATA[@deprecated use java.io.Closeable]]>
  10871. </doc>
  10872. </interface>
  10873. <!-- end interface org.apache.hadoop.io.Closeable -->
  10874. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10875. <class name="CompressedWritable" extends="java.lang.Object"
  10876. abstract="true"
  10877. static="false" final="false" visibility="public"
  10878. deprecated="not deprecated">
  10879. <implements name="org.apache.hadoop.io.Writable"/>
  10880. <constructor name="CompressedWritable"
  10881. static="false" final="false" visibility="public"
  10882. deprecated="not deprecated">
  10883. </constructor>
  10884. <method name="readFields"
  10885. abstract="false" native="false" synchronized="false"
  10886. static="false" final="true" visibility="public"
  10887. deprecated="not deprecated">
  10888. <param name="in" type="java.io.DataInput"/>
  10889. <exception name="IOException" type="java.io.IOException"/>
  10890. </method>
  10891. <method name="ensureInflated"
  10892. abstract="false" native="false" synchronized="false"
  10893. static="false" final="false" visibility="protected"
  10894. deprecated="not deprecated">
  10895. <doc>
  10896. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10897. has been uncompressed.]]>
  10898. </doc>
  10899. </method>
  10900. <method name="readFieldsCompressed"
  10901. abstract="true" native="false" synchronized="false"
  10902. static="false" final="false" visibility="protected"
  10903. deprecated="not deprecated">
  10904. <param name="in" type="java.io.DataInput"/>
  10905. <exception name="IOException" type="java.io.IOException"/>
  10906. <doc>
  10907. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10908. </doc>
  10909. </method>
  10910. <method name="write"
  10911. abstract="false" native="false" synchronized="false"
  10912. static="false" final="true" visibility="public"
  10913. deprecated="not deprecated">
  10914. <param name="out" type="java.io.DataOutput"/>
  10915. <exception name="IOException" type="java.io.IOException"/>
  10916. </method>
  10917. <method name="writeCompressed"
  10918. abstract="true" native="false" synchronized="false"
  10919. static="false" final="false" visibility="protected"
  10920. deprecated="not deprecated">
  10921. <param name="out" type="java.io.DataOutput"/>
  10922. <exception name="IOException" type="java.io.IOException"/>
  10923. <doc>
  10924. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10925. </doc>
  10926. </method>
  10927. <doc>
  10928. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10929. inflate on field access. This is useful for large objects whose fields are
  10930. not be altered during a map or reduce operation: leaving the field data
  10931. compressed makes copying the instance from one file to another much
  10932. faster.]]>
  10933. </doc>
  10934. </class>
  10935. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10936. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10937. <class name="DefaultStringifier" extends="java.lang.Object"
  10938. abstract="false"
  10939. static="false" final="false" visibility="public"
  10940. deprecated="not deprecated">
  10941. <implements name="org.apache.hadoop.io.Stringifier"/>
  10942. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10943. static="false" final="false" visibility="public"
  10944. deprecated="not deprecated">
  10945. </constructor>
  10946. <method name="fromString" return="T"
  10947. abstract="false" native="false" synchronized="false"
  10948. static="false" final="false" visibility="public"
  10949. deprecated="not deprecated">
  10950. <param name="str" type="java.lang.String"/>
  10951. <exception name="IOException" type="java.io.IOException"/>
  10952. </method>
  10953. <method name="toString" return="java.lang.String"
  10954. abstract="false" native="false" synchronized="false"
  10955. static="false" final="false" visibility="public"
  10956. deprecated="not deprecated">
  10957. <param name="obj" type="T"/>
  10958. <exception name="IOException" type="java.io.IOException"/>
  10959. </method>
  10960. <method name="close"
  10961. abstract="false" native="false" synchronized="false"
  10962. static="false" final="false" visibility="public"
  10963. deprecated="not deprecated">
  10964. <exception name="IOException" type="java.io.IOException"/>
  10965. </method>
  10966. <method name="store"
  10967. abstract="false" native="false" synchronized="false"
  10968. static="true" final="false" visibility="public"
  10969. deprecated="not deprecated">
  10970. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10971. <param name="item" type="K"/>
  10972. <param name="keyName" type="java.lang.String"/>
  10973. <exception name="IOException" type="java.io.IOException"/>
  10974. <doc>
  10975. <![CDATA[Stores the item in the configuration with the given keyName.
  10976. @param <K> the class of the item
  10977. @param conf the configuration to store
  10978. @param item the object to be stored
  10979. @param keyName the name of the key to use
  10980. @throws IOException : forwards Exceptions from the underlying
  10981. {@link Serialization} classes.]]>
  10982. </doc>
  10983. </method>
  10984. <method name="load" return="K"
  10985. abstract="false" native="false" synchronized="false"
  10986. static="true" final="false" visibility="public"
  10987. deprecated="not deprecated">
  10988. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10989. <param name="keyName" type="java.lang.String"/>
  10990. <param name="itemClass" type="java.lang.Class"/>
  10991. <exception name="IOException" type="java.io.IOException"/>
  10992. <doc>
  10993. <![CDATA[Restores the object from the configuration.
  10994. @param <K> the class of the item
  10995. @param conf the configuration to use
  10996. @param keyName the name of the key to use
  10997. @param itemClass the class of the item
  10998. @return restored object
  10999. @throws IOException : forwards Exceptions from the underlying
  11000. {@link Serialization} classes.]]>
  11001. </doc>
  11002. </method>
  11003. <method name="storeArray"
  11004. abstract="false" native="false" synchronized="false"
  11005. static="true" final="false" visibility="public"
  11006. deprecated="not deprecated">
  11007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11008. <param name="items" type="K[]"/>
  11009. <param name="keyName" type="java.lang.String"/>
  11010. <exception name="IOException" type="java.io.IOException"/>
  11011. <doc>
  11012. <![CDATA[Stores the array of items in the configuration with the given keyName.
  11013. @param <K> the class of the item
  11014. @param conf the configuration to use
  11015. @param items the objects to be stored
  11016. @param keyName the name of the key to use
  11017. @throws IndexOutOfBoundsException if the items array is empty
  11018. @throws IOException : forwards Exceptions from the underlying
  11019. {@link Serialization} classes.]]>
  11020. </doc>
  11021. </method>
  11022. <method name="loadArray" return="K[]"
  11023. abstract="false" native="false" synchronized="false"
  11024. static="true" final="false" visibility="public"
  11025. deprecated="not deprecated">
  11026. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11027. <param name="keyName" type="java.lang.String"/>
  11028. <param name="itemClass" type="java.lang.Class"/>
  11029. <exception name="IOException" type="java.io.IOException"/>
  11030. <doc>
  11031. <![CDATA[Restores the array of objects from the configuration.
  11032. @param <K> the class of the item
  11033. @param conf the configuration to use
  11034. @param keyName the name of the key to use
  11035. @param itemClass the class of the item
  11036. @return restored object
  11037. @throws IOException : forwards Exceptions from the underlying
  11038. {@link Serialization} classes.]]>
  11039. </doc>
  11040. </method>
  11041. <doc>
  11042. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  11043. interface which stringifies the objects using base64 encoding of the
  11044. serialized version of the objects. The {@link Serializer} and
  11045. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  11046. <br>
  11047. DefaultStringifier offers convenience methods to store/load objects to/from
  11048. the configuration.
  11049. @param <T> the class of the objects to stringify]]>
  11050. </doc>
  11051. </class>
  11052. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  11053. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  11054. <class name="DoubleWritable" extends="java.lang.Object"
  11055. abstract="false"
  11056. static="false" final="false" visibility="public"
  11057. deprecated="not deprecated">
  11058. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11059. <constructor name="DoubleWritable"
  11060. static="false" final="false" visibility="public"
  11061. deprecated="not deprecated">
  11062. </constructor>
  11063. <constructor name="DoubleWritable" type="double"
  11064. static="false" final="false" visibility="public"
  11065. deprecated="not deprecated">
  11066. </constructor>
  11067. <method name="readFields"
  11068. abstract="false" native="false" synchronized="false"
  11069. static="false" final="false" visibility="public"
  11070. deprecated="not deprecated">
  11071. <param name="in" type="java.io.DataInput"/>
  11072. <exception name="IOException" type="java.io.IOException"/>
  11073. </method>
  11074. <method name="write"
  11075. abstract="false" native="false" synchronized="false"
  11076. static="false" final="false" visibility="public"
  11077. deprecated="not deprecated">
  11078. <param name="out" type="java.io.DataOutput"/>
  11079. <exception name="IOException" type="java.io.IOException"/>
  11080. </method>
  11081. <method name="set"
  11082. abstract="false" native="false" synchronized="false"
  11083. static="false" final="false" visibility="public"
  11084. deprecated="not deprecated">
  11085. <param name="value" type="double"/>
  11086. </method>
  11087. <method name="get" return="double"
  11088. abstract="false" native="false" synchronized="false"
  11089. static="false" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. </method>
  11092. <method name="equals" return="boolean"
  11093. abstract="false" native="false" synchronized="false"
  11094. static="false" final="false" visibility="public"
  11095. deprecated="not deprecated">
  11096. <param name="o" type="java.lang.Object"/>
  11097. <doc>
  11098. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  11099. </doc>
  11100. </method>
  11101. <method name="hashCode" return="int"
  11102. abstract="false" native="false" synchronized="false"
  11103. static="false" final="false" visibility="public"
  11104. deprecated="not deprecated">
  11105. </method>
  11106. <method name="compareTo" return="int"
  11107. abstract="false" native="false" synchronized="false"
  11108. static="false" final="false" visibility="public"
  11109. deprecated="not deprecated">
  11110. <param name="o" type="java.lang.Object"/>
  11111. </method>
  11112. <method name="toString" return="java.lang.String"
  11113. abstract="false" native="false" synchronized="false"
  11114. static="false" final="false" visibility="public"
  11115. deprecated="not deprecated">
  11116. </method>
  11117. <doc>
  11118. <![CDATA[Writable for Double values.]]>
  11119. </doc>
  11120. </class>
  11121. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  11122. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  11123. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11124. abstract="false"
  11125. static="true" final="false" visibility="public"
  11126. deprecated="not deprecated">
  11127. <constructor name="DoubleWritable.Comparator"
  11128. static="false" final="false" visibility="public"
  11129. deprecated="not deprecated">
  11130. </constructor>
  11131. <method name="compare" return="int"
  11132. abstract="false" native="false" synchronized="false"
  11133. static="false" final="false" visibility="public"
  11134. deprecated="not deprecated">
  11135. <param name="b1" type="byte[]"/>
  11136. <param name="s1" type="int"/>
  11137. <param name="l1" type="int"/>
  11138. <param name="b2" type="byte[]"/>
  11139. <param name="s2" type="int"/>
  11140. <param name="l2" type="int"/>
  11141. </method>
  11142. <doc>
  11143. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  11144. </doc>
  11145. </class>
  11146. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  11147. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  11148. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  11149. abstract="false"
  11150. static="false" final="false" visibility="public"
  11151. deprecated="not deprecated">
  11152. <implements name="org.apache.hadoop.io.Writable"/>
  11153. <implements name="org.apache.hadoop.conf.Configurable"/>
  11154. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  11155. static="false" final="false" visibility="public"
  11156. deprecated="not deprecated">
  11157. <doc>
  11158. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  11159. its size is zero, the <tt>elementType</tt> argument must not be null. If
  11160. the argument <tt>value</tt>'s size is bigger than zero, the argument
  11161. <tt>elementType</tt> is not be used.
  11162. @param value
  11163. @param elementType]]>
  11164. </doc>
  11165. </constructor>
  11166. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  11167. static="false" final="false" visibility="public"
  11168. deprecated="not deprecated">
  11169. <doc>
  11170. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  11171. or empty.
  11172. @param value]]>
  11173. </doc>
  11174. </constructor>
  11175. <method name="iterator" return="java.util.Iterator"
  11176. abstract="false" native="false" synchronized="false"
  11177. static="false" final="false" visibility="public"
  11178. deprecated="not deprecated">
  11179. </method>
  11180. <method name="size" return="int"
  11181. abstract="false" native="false" synchronized="false"
  11182. static="false" final="false" visibility="public"
  11183. deprecated="not deprecated">
  11184. </method>
  11185. <method name="add" return="boolean"
  11186. abstract="false" native="false" synchronized="false"
  11187. static="false" final="false" visibility="public"
  11188. deprecated="not deprecated">
  11189. <param name="e" type="E"/>
  11190. </method>
  11191. <method name="set"
  11192. abstract="false" native="false" synchronized="false"
  11193. static="false" final="false" visibility="public"
  11194. deprecated="not deprecated">
  11195. <param name="value" type="java.util.EnumSet"/>
  11196. <param name="elementType" type="java.lang.Class"/>
  11197. <doc>
  11198. <![CDATA[reset the EnumSetWritable with specified
  11199. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  11200. is null or its size is zero, the <tt>elementType</tt> argument must not be
  11201. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  11202. argument <tt>elementType</tt> is not be used.
  11203. @param value
  11204. @param elementType]]>
  11205. </doc>
  11206. </method>
  11207. <method name="get" return="java.util.EnumSet"
  11208. abstract="false" native="false" synchronized="false"
  11209. static="false" final="false" visibility="public"
  11210. deprecated="not deprecated">
  11211. <doc>
  11212. <![CDATA[Return the value of this EnumSetWritable.]]>
  11213. </doc>
  11214. </method>
  11215. <method name="readFields"
  11216. abstract="false" native="false" synchronized="false"
  11217. static="false" final="false" visibility="public"
  11218. deprecated="not deprecated">
  11219. <param name="in" type="java.io.DataInput"/>
  11220. <exception name="IOException" type="java.io.IOException"/>
  11221. <doc>
  11222. <![CDATA[{@inheritDoc}]]>
  11223. </doc>
  11224. </method>
  11225. <method name="write"
  11226. abstract="false" native="false" synchronized="false"
  11227. static="false" final="false" visibility="public"
  11228. deprecated="not deprecated">
  11229. <param name="out" type="java.io.DataOutput"/>
  11230. <exception name="IOException" type="java.io.IOException"/>
  11231. <doc>
  11232. <![CDATA[{@inheritDoc}]]>
  11233. </doc>
  11234. </method>
  11235. <method name="equals" return="boolean"
  11236. abstract="false" native="false" synchronized="false"
  11237. static="false" final="false" visibility="public"
  11238. deprecated="not deprecated">
  11239. <param name="o" type="java.lang.Object"/>
  11240. <doc>
  11241. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  11242. or both are null.]]>
  11243. </doc>
  11244. </method>
  11245. <method name="getElementType" return="java.lang.Class"
  11246. abstract="false" native="false" synchronized="false"
  11247. static="false" final="false" visibility="public"
  11248. deprecated="not deprecated">
  11249. <doc>
  11250. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  11251. may return null.
  11252. @return the element class]]>
  11253. </doc>
  11254. </method>
  11255. <method name="hashCode" return="int"
  11256. abstract="false" native="false" synchronized="false"
  11257. static="false" final="false" visibility="public"
  11258. deprecated="not deprecated">
  11259. <doc>
  11260. <![CDATA[{@inheritDoc}]]>
  11261. </doc>
  11262. </method>
  11263. <method name="toString" return="java.lang.String"
  11264. abstract="false" native="false" synchronized="false"
  11265. static="false" final="false" visibility="public"
  11266. deprecated="not deprecated">
  11267. <doc>
  11268. <![CDATA[{@inheritDoc}]]>
  11269. </doc>
  11270. </method>
  11271. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11272. abstract="false" native="false" synchronized="false"
  11273. static="false" final="false" visibility="public"
  11274. deprecated="not deprecated">
  11275. <doc>
  11276. <![CDATA[{@inheritDoc}]]>
  11277. </doc>
  11278. </method>
  11279. <method name="setConf"
  11280. abstract="false" native="false" synchronized="false"
  11281. static="false" final="false" visibility="public"
  11282. deprecated="not deprecated">
  11283. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11284. <doc>
  11285. <![CDATA[{@inheritDoc}]]>
  11286. </doc>
  11287. </method>
  11288. <doc>
  11289. <![CDATA[A Writable wrapper for EnumSet.]]>
  11290. </doc>
  11291. </class>
  11292. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  11293. <!-- start class org.apache.hadoop.io.FloatWritable -->
  11294. <class name="FloatWritable" extends="java.lang.Object"
  11295. abstract="false"
  11296. static="false" final="false" visibility="public"
  11297. deprecated="not deprecated">
  11298. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11299. <constructor name="FloatWritable"
  11300. static="false" final="false" visibility="public"
  11301. deprecated="not deprecated">
  11302. </constructor>
  11303. <constructor name="FloatWritable" type="float"
  11304. static="false" final="false" visibility="public"
  11305. deprecated="not deprecated">
  11306. </constructor>
  11307. <method name="set"
  11308. abstract="false" native="false" synchronized="false"
  11309. static="false" final="false" visibility="public"
  11310. deprecated="not deprecated">
  11311. <param name="value" type="float"/>
  11312. <doc>
  11313. <![CDATA[Set the value of this FloatWritable.]]>
  11314. </doc>
  11315. </method>
  11316. <method name="get" return="float"
  11317. abstract="false" native="false" synchronized="false"
  11318. static="false" final="false" visibility="public"
  11319. deprecated="not deprecated">
  11320. <doc>
  11321. <![CDATA[Return the value of this FloatWritable.]]>
  11322. </doc>
  11323. </method>
  11324. <method name="readFields"
  11325. abstract="false" native="false" synchronized="false"
  11326. static="false" final="false" visibility="public"
  11327. deprecated="not deprecated">
  11328. <param name="in" type="java.io.DataInput"/>
  11329. <exception name="IOException" type="java.io.IOException"/>
  11330. </method>
  11331. <method name="write"
  11332. abstract="false" native="false" synchronized="false"
  11333. static="false" final="false" visibility="public"
  11334. deprecated="not deprecated">
  11335. <param name="out" type="java.io.DataOutput"/>
  11336. <exception name="IOException" type="java.io.IOException"/>
  11337. </method>
  11338. <method name="equals" return="boolean"
  11339. abstract="false" native="false" synchronized="false"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. <param name="o" type="java.lang.Object"/>
  11343. <doc>
  11344. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  11345. </doc>
  11346. </method>
  11347. <method name="hashCode" return="int"
  11348. abstract="false" native="false" synchronized="false"
  11349. static="false" final="false" visibility="public"
  11350. deprecated="not deprecated">
  11351. </method>
  11352. <method name="compareTo" return="int"
  11353. abstract="false" native="false" synchronized="false"
  11354. static="false" final="false" visibility="public"
  11355. deprecated="not deprecated">
  11356. <param name="o" type="java.lang.Object"/>
  11357. <doc>
  11358. <![CDATA[Compares two FloatWritables.]]>
  11359. </doc>
  11360. </method>
  11361. <method name="toString" return="java.lang.String"
  11362. abstract="false" native="false" synchronized="false"
  11363. static="false" final="false" visibility="public"
  11364. deprecated="not deprecated">
  11365. </method>
  11366. <doc>
  11367. <![CDATA[A WritableComparable for floats.]]>
  11368. </doc>
  11369. </class>
  11370. <!-- end class org.apache.hadoop.io.FloatWritable -->
  11371. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  11372. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11373. abstract="false"
  11374. static="true" final="false" visibility="public"
  11375. deprecated="not deprecated">
  11376. <constructor name="FloatWritable.Comparator"
  11377. static="false" final="false" visibility="public"
  11378. deprecated="not deprecated">
  11379. </constructor>
  11380. <method name="compare" return="int"
  11381. abstract="false" native="false" synchronized="false"
  11382. static="false" final="false" visibility="public"
  11383. deprecated="not deprecated">
  11384. <param name="b1" type="byte[]"/>
  11385. <param name="s1" type="int"/>
  11386. <param name="l1" type="int"/>
  11387. <param name="b2" type="byte[]"/>
  11388. <param name="s2" type="int"/>
  11389. <param name="l2" type="int"/>
  11390. </method>
  11391. <doc>
  11392. <![CDATA[A Comparator optimized for FloatWritable.]]>
  11393. </doc>
  11394. </class>
  11395. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  11396. <!-- start class org.apache.hadoop.io.GenericWritable -->
  11397. <class name="GenericWritable" extends="java.lang.Object"
  11398. abstract="true"
  11399. static="false" final="false" visibility="public"
  11400. deprecated="not deprecated">
  11401. <implements name="org.apache.hadoop.io.Writable"/>
  11402. <implements name="org.apache.hadoop.conf.Configurable"/>
  11403. <constructor name="GenericWritable"
  11404. static="false" final="false" visibility="public"
  11405. deprecated="not deprecated">
  11406. </constructor>
  11407. <method name="set"
  11408. abstract="false" native="false" synchronized="false"
  11409. static="false" final="false" visibility="public"
  11410. deprecated="not deprecated">
  11411. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  11412. <doc>
  11413. <![CDATA[Set the instance that is wrapped.
  11414. @param obj]]>
  11415. </doc>
  11416. </method>
  11417. <method name="get" return="org.apache.hadoop.io.Writable"
  11418. abstract="false" native="false" synchronized="false"
  11419. static="false" final="false" visibility="public"
  11420. deprecated="not deprecated">
  11421. <doc>
  11422. <![CDATA[Return the wrapped instance.]]>
  11423. </doc>
  11424. </method>
  11425. <method name="toString" return="java.lang.String"
  11426. abstract="false" native="false" synchronized="false"
  11427. static="false" final="false" visibility="public"
  11428. deprecated="not deprecated">
  11429. </method>
  11430. <method name="readFields"
  11431. abstract="false" native="false" synchronized="false"
  11432. static="false" final="false" visibility="public"
  11433. deprecated="not deprecated">
  11434. <param name="in" type="java.io.DataInput"/>
  11435. <exception name="IOException" type="java.io.IOException"/>
  11436. </method>
  11437. <method name="write"
  11438. abstract="false" native="false" synchronized="false"
  11439. static="false" final="false" visibility="public"
  11440. deprecated="not deprecated">
  11441. <param name="out" type="java.io.DataOutput"/>
  11442. <exception name="IOException" type="java.io.IOException"/>
  11443. </method>
  11444. <method name="getTypes" return="java.lang.Class[]"
  11445. abstract="true" native="false" synchronized="false"
  11446. static="false" final="false" visibility="protected"
  11447. deprecated="not deprecated">
  11448. <doc>
  11449. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  11450. to return a constant array of classes.]]>
  11451. </doc>
  11452. </method>
  11453. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11454. abstract="false" native="false" synchronized="false"
  11455. static="false" final="false" visibility="public"
  11456. deprecated="not deprecated">
  11457. </method>
  11458. <method name="setConf"
  11459. abstract="false" native="false" synchronized="false"
  11460. static="false" final="false" visibility="public"
  11461. deprecated="not deprecated">
  11462. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11463. </method>
  11464. <doc>
  11465. <![CDATA[A wrapper for Writable instances.
  11466. <p>
  11467. When two sequence files, which have same Key type but different Value
  11468. types, are mapped out to reduce, multiple Value types is not allowed.
  11469. In this case, this class can help you wrap instances with different types.
  11470. </p>
  11471. <p>
  11472. Compared with <code>ObjectWritable</code>, this class is much more effective,
  11473. because <code>ObjectWritable</code> will append the class declaration as a String
  11474. into the output file in every Key-Value pair.
  11475. </p>
  11476. <p>
  11477. Generic Writable implements {@link Configurable} interface, so that it will be
  11478. configured by the framework. The configuration is passed to the wrapped objects
  11479. implementing {@link Configurable} interface <i>before deserialization</i>.
  11480. </p>
  11481. how to use it: <br>
  11482. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  11483. 2. Implements the abstract method <code>getTypes()</code>, defines
  11484. the classes which will be wrapped in GenericObject in application.
  11485. Attention: this classes defined in <code>getTypes()</code> method, must
  11486. implement <code>Writable</code> interface.
  11487. <br><br>
  11488. The code looks like this:
  11489. <blockquote><pre>
  11490. public class GenericObject extends GenericWritable {
  11491. private static Class[] CLASSES = {
  11492. ClassType1.class,
  11493. ClassType2.class,
  11494. ClassType3.class,
  11495. };
  11496. protected Class[] getTypes() {
  11497. return CLASSES;
  11498. }
  11499. }
  11500. </pre></blockquote>
  11501. @since Nov 8, 2006]]>
  11502. </doc>
  11503. </class>
  11504. <!-- end class org.apache.hadoop.io.GenericWritable -->
  11505. <!-- start class org.apache.hadoop.io.IntWritable -->
  11506. <class name="IntWritable" extends="java.lang.Object"
  11507. abstract="false"
  11508. static="false" final="false" visibility="public"
  11509. deprecated="not deprecated">
  11510. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11511. <constructor name="IntWritable"
  11512. static="false" final="false" visibility="public"
  11513. deprecated="not deprecated">
  11514. </constructor>
  11515. <constructor name="IntWritable" type="int"
  11516. static="false" final="false" visibility="public"
  11517. deprecated="not deprecated">
  11518. </constructor>
  11519. <method name="set"
  11520. abstract="false" native="false" synchronized="false"
  11521. static="false" final="false" visibility="public"
  11522. deprecated="not deprecated">
  11523. <param name="value" type="int"/>
  11524. <doc>
  11525. <![CDATA[Set the value of this IntWritable.]]>
  11526. </doc>
  11527. </method>
  11528. <method name="get" return="int"
  11529. abstract="false" native="false" synchronized="false"
  11530. static="false" final="false" visibility="public"
  11531. deprecated="not deprecated">
  11532. <doc>
  11533. <![CDATA[Return the value of this IntWritable.]]>
  11534. </doc>
  11535. </method>
  11536. <method name="readFields"
  11537. abstract="false" native="false" synchronized="false"
  11538. static="false" final="false" visibility="public"
  11539. deprecated="not deprecated">
  11540. <param name="in" type="java.io.DataInput"/>
  11541. <exception name="IOException" type="java.io.IOException"/>
  11542. </method>
  11543. <method name="write"
  11544. abstract="false" native="false" synchronized="false"
  11545. static="false" final="false" visibility="public"
  11546. deprecated="not deprecated">
  11547. <param name="out" type="java.io.DataOutput"/>
  11548. <exception name="IOException" type="java.io.IOException"/>
  11549. </method>
  11550. <method name="equals" return="boolean"
  11551. abstract="false" native="false" synchronized="false"
  11552. static="false" final="false" visibility="public"
  11553. deprecated="not deprecated">
  11554. <param name="o" type="java.lang.Object"/>
  11555. <doc>
  11556. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11557. </doc>
  11558. </method>
  11559. <method name="hashCode" return="int"
  11560. abstract="false" native="false" synchronized="false"
  11561. static="false" final="false" visibility="public"
  11562. deprecated="not deprecated">
  11563. </method>
  11564. <method name="compareTo" return="int"
  11565. abstract="false" native="false" synchronized="false"
  11566. static="false" final="false" visibility="public"
  11567. deprecated="not deprecated">
  11568. <param name="o" type="java.lang.Object"/>
  11569. <doc>
  11570. <![CDATA[Compares two IntWritables.]]>
  11571. </doc>
  11572. </method>
  11573. <method name="toString" return="java.lang.String"
  11574. abstract="false" native="false" synchronized="false"
  11575. static="false" final="false" visibility="public"
  11576. deprecated="not deprecated">
  11577. </method>
  11578. <doc>
  11579. <![CDATA[A WritableComparable for ints.]]>
  11580. </doc>
  11581. </class>
  11582. <!-- end class org.apache.hadoop.io.IntWritable -->
  11583. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11584. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11585. abstract="false"
  11586. static="true" final="false" visibility="public"
  11587. deprecated="not deprecated">
  11588. <constructor name="IntWritable.Comparator"
  11589. static="false" final="false" visibility="public"
  11590. deprecated="not deprecated">
  11591. </constructor>
  11592. <method name="compare" return="int"
  11593. abstract="false" native="false" synchronized="false"
  11594. static="false" final="false" visibility="public"
  11595. deprecated="not deprecated">
  11596. <param name="b1" type="byte[]"/>
  11597. <param name="s1" type="int"/>
  11598. <param name="l1" type="int"/>
  11599. <param name="b2" type="byte[]"/>
  11600. <param name="s2" type="int"/>
  11601. <param name="l2" type="int"/>
  11602. </method>
  11603. <doc>
  11604. <![CDATA[A Comparator optimized for IntWritable.]]>
  11605. </doc>
  11606. </class>
  11607. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11608. <!-- start class org.apache.hadoop.io.IOUtils -->
  11609. <class name="IOUtils" extends="java.lang.Object"
  11610. abstract="false"
  11611. static="false" final="false" visibility="public"
  11612. deprecated="not deprecated">
  11613. <constructor name="IOUtils"
  11614. static="false" final="false" visibility="public"
  11615. deprecated="not deprecated">
  11616. </constructor>
  11617. <method name="copyBytes"
  11618. abstract="false" native="false" synchronized="false"
  11619. static="true" final="false" visibility="public"
  11620. deprecated="not deprecated">
  11621. <param name="in" type="java.io.InputStream"/>
  11622. <param name="out" type="java.io.OutputStream"/>
  11623. <param name="buffSize" type="int"/>
  11624. <param name="close" type="boolean"/>
  11625. <exception name="IOException" type="java.io.IOException"/>
  11626. <doc>
  11627. <![CDATA[Copies from one stream to another.
  11628. @param in InputStrem to read from
  11629. @param out OutputStream to write to
  11630. @param buffSize the size of the buffer
  11631. @param close whether or not close the InputStream and
  11632. OutputStream at the end. The streams are closed in the finally clause.]]>
  11633. </doc>
  11634. </method>
  11635. <method name="copyBytes"
  11636. abstract="false" native="false" synchronized="false"
  11637. static="true" final="false" visibility="public"
  11638. deprecated="not deprecated">
  11639. <param name="in" type="java.io.InputStream"/>
  11640. <param name="out" type="java.io.OutputStream"/>
  11641. <param name="buffSize" type="int"/>
  11642. <exception name="IOException" type="java.io.IOException"/>
  11643. <doc>
  11644. <![CDATA[Copies from one stream to another.
  11645. @param in InputStrem to read from
  11646. @param out OutputStream to write to
  11647. @param buffSize the size of the buffer]]>
  11648. </doc>
  11649. </method>
  11650. <method name="copyBytes"
  11651. abstract="false" native="false" synchronized="false"
  11652. static="true" final="false" visibility="public"
  11653. deprecated="not deprecated">
  11654. <param name="in" type="java.io.InputStream"/>
  11655. <param name="out" type="java.io.OutputStream"/>
  11656. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11657. <exception name="IOException" type="java.io.IOException"/>
  11658. <doc>
  11659. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11660. at the end</strong>.
  11661. @param in InputStrem to read from
  11662. @param out OutputStream to write to
  11663. @param conf the Configuration object]]>
  11664. </doc>
  11665. </method>
  11666. <method name="copyBytes"
  11667. abstract="false" native="false" synchronized="false"
  11668. static="true" final="false" visibility="public"
  11669. deprecated="not deprecated">
  11670. <param name="in" type="java.io.InputStream"/>
  11671. <param name="out" type="java.io.OutputStream"/>
  11672. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11673. <param name="close" type="boolean"/>
  11674. <exception name="IOException" type="java.io.IOException"/>
  11675. <doc>
  11676. <![CDATA[Copies from one stream to another.
  11677. @param in InputStrem to read from
  11678. @param out OutputStream to write to
  11679. @param conf the Configuration object
  11680. @param close whether or not close the InputStream and
  11681. OutputStream at the end. The streams are closed in the finally clause.]]>
  11682. </doc>
  11683. </method>
  11684. <method name="readFully"
  11685. abstract="false" native="false" synchronized="false"
  11686. static="true" final="false" visibility="public"
  11687. deprecated="not deprecated">
  11688. <param name="in" type="java.io.InputStream"/>
  11689. <param name="buf" type="byte[]"/>
  11690. <param name="off" type="int"/>
  11691. <param name="len" type="int"/>
  11692. <exception name="IOException" type="java.io.IOException"/>
  11693. <doc>
  11694. <![CDATA[Reads len bytes in a loop.
  11695. @param in The InputStream to read from
  11696. @param buf The buffer to fill
  11697. @param off offset from the buffer
  11698. @param len the length of bytes to read
  11699. @throws IOException if it could not read requested number of bytes
  11700. for any reason (including EOF)]]>
  11701. </doc>
  11702. </method>
  11703. <method name="skipFully"
  11704. abstract="false" native="false" synchronized="false"
  11705. static="true" final="false" visibility="public"
  11706. deprecated="not deprecated">
  11707. <param name="in" type="java.io.InputStream"/>
  11708. <param name="len" type="long"/>
  11709. <exception name="IOException" type="java.io.IOException"/>
  11710. <doc>
  11711. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11712. @param in The InputStream to skip bytes from
  11713. @param len number of bytes to skip.
  11714. @throws IOException if it could not skip requested number of bytes
  11715. for any reason (including EOF)]]>
  11716. </doc>
  11717. </method>
  11718. <method name="cleanup"
  11719. abstract="false" native="false" synchronized="false"
  11720. static="true" final="false" visibility="public"
  11721. deprecated="not deprecated">
  11722. <param name="log" type="org.apache.commons.logging.Log"/>
  11723. <param name="closeables" type="java.io.Closeable[]"/>
  11724. <doc>
  11725. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11726. null pointers. Must only be used for cleanup in exception handlers.
  11727. @param log the log to record problems to at debug level. Can be null.
  11728. @param closeables the objects to close]]>
  11729. </doc>
  11730. </method>
  11731. <method name="closeStream"
  11732. abstract="false" native="false" synchronized="false"
  11733. static="true" final="false" visibility="public"
  11734. deprecated="not deprecated">
  11735. <param name="stream" type="java.io.Closeable"/>
  11736. <doc>
  11737. <![CDATA[Closes the stream ignoring {@link IOException}.
  11738. Must only be called in cleaning up from exception handlers.
  11739. @param stream the Stream to close]]>
  11740. </doc>
  11741. </method>
  11742. <method name="closeSocket"
  11743. abstract="false" native="false" synchronized="false"
  11744. static="true" final="false" visibility="public"
  11745. deprecated="not deprecated">
  11746. <param name="sock" type="java.net.Socket"/>
  11747. <doc>
  11748. <![CDATA[Closes the socket ignoring {@link IOException}
  11749. @param sock the Socket to close]]>
  11750. </doc>
  11751. </method>
  11752. <doc>
  11753. <![CDATA[An utility class for I/O related functionality.]]>
  11754. </doc>
  11755. </class>
  11756. <!-- end class org.apache.hadoop.io.IOUtils -->
  11757. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11758. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11759. abstract="false"
  11760. static="true" final="false" visibility="public"
  11761. deprecated="not deprecated">
  11762. <constructor name="IOUtils.NullOutputStream"
  11763. static="false" final="false" visibility="public"
  11764. deprecated="not deprecated">
  11765. </constructor>
  11766. <method name="write"
  11767. abstract="false" native="false" synchronized="false"
  11768. static="false" final="false" visibility="public"
  11769. deprecated="not deprecated">
  11770. <param name="b" type="byte[]"/>
  11771. <param name="off" type="int"/>
  11772. <param name="len" type="int"/>
  11773. <exception name="IOException" type="java.io.IOException"/>
  11774. </method>
  11775. <method name="write"
  11776. abstract="false" native="false" synchronized="false"
  11777. static="false" final="false" visibility="public"
  11778. deprecated="not deprecated">
  11779. <param name="b" type="int"/>
  11780. <exception name="IOException" type="java.io.IOException"/>
  11781. </method>
  11782. <doc>
  11783. <![CDATA[/dev/null of OutputStreams.]]>
  11784. </doc>
  11785. </class>
  11786. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11787. <!-- start class org.apache.hadoop.io.LongWritable -->
  11788. <class name="LongWritable" extends="java.lang.Object"
  11789. abstract="false"
  11790. static="false" final="false" visibility="public"
  11791. deprecated="not deprecated">
  11792. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11793. <constructor name="LongWritable"
  11794. static="false" final="false" visibility="public"
  11795. deprecated="not deprecated">
  11796. </constructor>
  11797. <constructor name="LongWritable" type="long"
  11798. static="false" final="false" visibility="public"
  11799. deprecated="not deprecated">
  11800. </constructor>
  11801. <method name="set"
  11802. abstract="false" native="false" synchronized="false"
  11803. static="false" final="false" visibility="public"
  11804. deprecated="not deprecated">
  11805. <param name="value" type="long"/>
  11806. <doc>
  11807. <![CDATA[Set the value of this LongWritable.]]>
  11808. </doc>
  11809. </method>
  11810. <method name="get" return="long"
  11811. abstract="false" native="false" synchronized="false"
  11812. static="false" final="false" visibility="public"
  11813. deprecated="not deprecated">
  11814. <doc>
  11815. <![CDATA[Return the value of this LongWritable.]]>
  11816. </doc>
  11817. </method>
  11818. <method name="readFields"
  11819. abstract="false" native="false" synchronized="false"
  11820. static="false" final="false" visibility="public"
  11821. deprecated="not deprecated">
  11822. <param name="in" type="java.io.DataInput"/>
  11823. <exception name="IOException" type="java.io.IOException"/>
  11824. </method>
  11825. <method name="write"
  11826. abstract="false" native="false" synchronized="false"
  11827. static="false" final="false" visibility="public"
  11828. deprecated="not deprecated">
  11829. <param name="out" type="java.io.DataOutput"/>
  11830. <exception name="IOException" type="java.io.IOException"/>
  11831. </method>
  11832. <method name="equals" return="boolean"
  11833. abstract="false" native="false" synchronized="false"
  11834. static="false" final="false" visibility="public"
  11835. deprecated="not deprecated">
  11836. <param name="o" type="java.lang.Object"/>
  11837. <doc>
  11838. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11839. </doc>
  11840. </method>
  11841. <method name="hashCode" return="int"
  11842. abstract="false" native="false" synchronized="false"
  11843. static="false" final="false" visibility="public"
  11844. deprecated="not deprecated">
  11845. </method>
  11846. <method name="compareTo" return="int"
  11847. abstract="false" native="false" synchronized="false"
  11848. static="false" final="false" visibility="public"
  11849. deprecated="not deprecated">
  11850. <param name="o" type="java.lang.Object"/>
  11851. <doc>
  11852. <![CDATA[Compares two LongWritables.]]>
  11853. </doc>
  11854. </method>
  11855. <method name="toString" return="java.lang.String"
  11856. abstract="false" native="false" synchronized="false"
  11857. static="false" final="false" visibility="public"
  11858. deprecated="not deprecated">
  11859. </method>
  11860. <doc>
  11861. <![CDATA[A WritableComparable for longs.]]>
  11862. </doc>
  11863. </class>
  11864. <!-- end class org.apache.hadoop.io.LongWritable -->
  11865. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11866. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11867. abstract="false"
  11868. static="true" final="false" visibility="public"
  11869. deprecated="not deprecated">
  11870. <constructor name="LongWritable.Comparator"
  11871. static="false" final="false" visibility="public"
  11872. deprecated="not deprecated">
  11873. </constructor>
  11874. <method name="compare" return="int"
  11875. abstract="false" native="false" synchronized="false"
  11876. static="false" final="false" visibility="public"
  11877. deprecated="not deprecated">
  11878. <param name="b1" type="byte[]"/>
  11879. <param name="s1" type="int"/>
  11880. <param name="l1" type="int"/>
  11881. <param name="b2" type="byte[]"/>
  11882. <param name="s2" type="int"/>
  11883. <param name="l2" type="int"/>
  11884. </method>
  11885. <doc>
  11886. <![CDATA[A Comparator optimized for LongWritable.]]>
  11887. </doc>
  11888. </class>
  11889. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11890. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11891. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11892. abstract="false"
  11893. static="true" final="false" visibility="public"
  11894. deprecated="not deprecated">
  11895. <constructor name="LongWritable.DecreasingComparator"
  11896. static="false" final="false" visibility="public"
  11897. deprecated="not deprecated">
  11898. </constructor>
  11899. <method name="compare" return="int"
  11900. abstract="false" native="false" synchronized="false"
  11901. static="false" final="false" visibility="public"
  11902. deprecated="not deprecated">
  11903. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11904. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11905. </method>
  11906. <method name="compare" return="int"
  11907. abstract="false" native="false" synchronized="false"
  11908. static="false" final="false" visibility="public"
  11909. deprecated="not deprecated">
  11910. <param name="b1" type="byte[]"/>
  11911. <param name="s1" type="int"/>
  11912. <param name="l1" type="int"/>
  11913. <param name="b2" type="byte[]"/>
  11914. <param name="s2" type="int"/>
  11915. <param name="l2" type="int"/>
  11916. </method>
  11917. <doc>
  11918. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11919. </doc>
  11920. </class>
  11921. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11922. <!-- start class org.apache.hadoop.io.MapFile -->
  11923. <class name="MapFile" extends="java.lang.Object"
  11924. abstract="false"
  11925. static="false" final="false" visibility="public"
  11926. deprecated="not deprecated">
  11927. <constructor name="MapFile"
  11928. static="false" final="false" visibility="protected"
  11929. deprecated="not deprecated">
  11930. </constructor>
  11931. <method name="rename"
  11932. abstract="false" native="false" synchronized="false"
  11933. static="true" final="false" visibility="public"
  11934. deprecated="not deprecated">
  11935. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11936. <param name="oldName" type="java.lang.String"/>
  11937. <param name="newName" type="java.lang.String"/>
  11938. <exception name="IOException" type="java.io.IOException"/>
  11939. <doc>
  11940. <![CDATA[Renames an existing map directory.]]>
  11941. </doc>
  11942. </method>
  11943. <method name="delete"
  11944. abstract="false" native="false" synchronized="false"
  11945. static="true" final="false" visibility="public"
  11946. deprecated="not deprecated">
  11947. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11948. <param name="name" type="java.lang.String"/>
  11949. <exception name="IOException" type="java.io.IOException"/>
  11950. <doc>
  11951. <![CDATA[Deletes the named map file.]]>
  11952. </doc>
  11953. </method>
  11954. <method name="fix" return="long"
  11955. abstract="false" native="false" synchronized="false"
  11956. static="true" final="false" visibility="public"
  11957. deprecated="not deprecated">
  11958. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11959. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11960. <param name="keyClass" type="java.lang.Class"/>
  11961. <param name="valueClass" type="java.lang.Class"/>
  11962. <param name="dryrun" type="boolean"/>
  11963. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11964. <exception name="Exception" type="java.lang.Exception"/>
  11965. <doc>
  11966. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11967. @param fs filesystem
  11968. @param dir directory containing the MapFile data and index
  11969. @param keyClass key class (has to be a subclass of Writable)
  11970. @param valueClass value class (has to be a subclass of Writable)
  11971. @param dryrun do not perform any changes, just report what needs to be done
  11972. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11973. @throws Exception]]>
  11974. </doc>
  11975. </method>
  11976. <method name="main"
  11977. abstract="false" native="false" synchronized="false"
  11978. static="true" final="false" visibility="public"
  11979. deprecated="not deprecated">
  11980. <param name="args" type="java.lang.String[]"/>
  11981. <exception name="Exception" type="java.lang.Exception"/>
  11982. </method>
  11983. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11984. transient="false" volatile="false"
  11985. static="true" final="true" visibility="public"
  11986. deprecated="not deprecated">
  11987. <doc>
  11988. <![CDATA[The name of the index file.]]>
  11989. </doc>
  11990. </field>
  11991. <field name="DATA_FILE_NAME" type="java.lang.String"
  11992. transient="false" volatile="false"
  11993. static="true" final="true" visibility="public"
  11994. deprecated="not deprecated">
  11995. <doc>
  11996. <![CDATA[The name of the data file.]]>
  11997. </doc>
  11998. </field>
  11999. <doc>
  12000. <![CDATA[A file-based map from keys to values.
  12001. <p>A map is a directory containing two files, the <code>data</code> file,
  12002. containing all keys and values in the map, and a smaller <code>index</code>
  12003. file, containing a fraction of the keys. The fraction is determined by
  12004. {@link Writer#getIndexInterval()}.
  12005. <p>The index file is read entirely into memory. Thus key implementations
  12006. should try to keep themselves small.
  12007. <p>Map files are created by adding entries in-order. To maintain a large
  12008. database, perform updates by copying the previous version of a database and
  12009. merging in a sorted change list, to create a new version of the database in
  12010. a new file. Sorting large change lists can be done with {@link
  12011. SequenceFile.Sorter}.]]>
  12012. </doc>
  12013. </class>
  12014. <!-- end class org.apache.hadoop.io.MapFile -->
  12015. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  12016. <class name="MapFile.Reader" extends="java.lang.Object"
  12017. abstract="false"
  12018. static="true" final="false" visibility="public"
  12019. deprecated="not deprecated">
  12020. <implements name="java.io.Closeable"/>
  12021. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  12022. static="false" final="false" visibility="public"
  12023. deprecated="not deprecated">
  12024. <exception name="IOException" type="java.io.IOException"/>
  12025. </constructor>
  12026. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  12027. static="false" final="false" visibility="public"
  12028. deprecated="deprecated, no comment">
  12029. <exception name="IOException" type="java.io.IOException"/>
  12030. <doc>
  12031. <![CDATA[Construct a map reader for the named map.
  12032. @deprecated]]>
  12033. </doc>
  12034. </constructor>
  12035. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  12036. static="false" final="false" visibility="public"
  12037. deprecated="deprecated, no comment">
  12038. <exception name="IOException" type="java.io.IOException"/>
  12039. <doc>
  12040. <![CDATA[Construct a map reader for the named map using the named comparator.
  12041. @deprecated]]>
  12042. </doc>
  12043. </constructor>
  12044. <method name="getKeyClass" return="java.lang.Class"
  12045. abstract="false" native="false" synchronized="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <doc>
  12049. <![CDATA[Returns the class of keys in this file.]]>
  12050. </doc>
  12051. </method>
  12052. <method name="getValueClass" return="java.lang.Class"
  12053. abstract="false" native="false" synchronized="false"
  12054. static="false" final="false" visibility="public"
  12055. deprecated="not deprecated">
  12056. <doc>
  12057. <![CDATA[Returns the class of values in this file.]]>
  12058. </doc>
  12059. </method>
  12060. <method name="comparator" return="org.apache.hadoop.io.MapFile.Reader.Option"
  12061. abstract="false" native="false" synchronized="false"
  12062. static="true" final="false" visibility="public"
  12063. deprecated="not deprecated">
  12064. <param name="value" type="org.apache.hadoop.io.WritableComparator"/>
  12065. </method>
  12066. <method name="open"
  12067. abstract="false" native="false" synchronized="true"
  12068. static="false" final="false" visibility="protected"
  12069. deprecated="not deprecated">
  12070. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  12071. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  12072. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12073. <param name="options" type="org.apache.hadoop.io.SequenceFile.Reader.Option[]"/>
  12074. <exception name="IOException" type="java.io.IOException"/>
  12075. </method>
  12076. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  12077. abstract="false" native="false" synchronized="false"
  12078. static="false" final="false" visibility="protected"
  12079. deprecated="not deprecated">
  12080. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  12081. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12082. <param name="options" type="org.apache.hadoop.io.SequenceFile.Reader.Option[]"/>
  12083. <exception name="IOException" type="java.io.IOException"/>
  12084. <doc>
  12085. <![CDATA[Override this method to specialize the type of
  12086. {@link SequenceFile.Reader} returned.]]>
  12087. </doc>
  12088. </method>
  12089. <method name="reset"
  12090. abstract="false" native="false" synchronized="true"
  12091. static="false" final="false" visibility="public"
  12092. deprecated="not deprecated">
  12093. <exception name="IOException" type="java.io.IOException"/>
  12094. <doc>
  12095. <![CDATA[Re-positions the reader before its first key.]]>
  12096. </doc>
  12097. </method>
  12098. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  12099. abstract="false" native="false" synchronized="true"
  12100. static="false" final="false" visibility="public"
  12101. deprecated="not deprecated">
  12102. <exception name="IOException" type="java.io.IOException"/>
  12103. <doc>
  12104. <![CDATA[Get the key at approximately the middle of the file. Or null if the
  12105. file is empty.]]>
  12106. </doc>
  12107. </method>
  12108. <method name="finalKey"
  12109. abstract="false" native="false" synchronized="true"
  12110. static="false" final="false" visibility="public"
  12111. deprecated="not deprecated">
  12112. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12113. <exception name="IOException" type="java.io.IOException"/>
  12114. <doc>
  12115. <![CDATA[Reads the final key from the file.
  12116. @param key key to read into]]>
  12117. </doc>
  12118. </method>
  12119. <method name="seek" return="boolean"
  12120. abstract="false" native="false" synchronized="true"
  12121. static="false" final="false" visibility="public"
  12122. deprecated="not deprecated">
  12123. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12124. <exception name="IOException" type="java.io.IOException"/>
  12125. <doc>
  12126. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  12127. first entry after the named key. Returns true iff the named key exists
  12128. in this map.]]>
  12129. </doc>
  12130. </method>
  12131. <method name="next" return="boolean"
  12132. abstract="false" native="false" synchronized="true"
  12133. static="false" final="false" visibility="public"
  12134. deprecated="not deprecated">
  12135. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12136. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12137. <exception name="IOException" type="java.io.IOException"/>
  12138. <doc>
  12139. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  12140. <code>val</code>. Returns true if such a pair exists and false when at
  12141. the end of the map]]>
  12142. </doc>
  12143. </method>
  12144. <method name="get" return="org.apache.hadoop.io.Writable"
  12145. abstract="false" native="false" synchronized="true"
  12146. static="false" final="false" visibility="public"
  12147. deprecated="not deprecated">
  12148. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12149. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12150. <exception name="IOException" type="java.io.IOException"/>
  12151. <doc>
  12152. <![CDATA[Return the value for the named key, or null if none exists.]]>
  12153. </doc>
  12154. </method>
  12155. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  12156. abstract="false" native="false" synchronized="true"
  12157. static="false" final="false" visibility="public"
  12158. deprecated="not deprecated">
  12159. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12160. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12161. <exception name="IOException" type="java.io.IOException"/>
  12162. <doc>
  12163. <![CDATA[Finds the record that is the closest match to the specified key.
  12164. Returns <code>key</code> or if it does not exist, at the first entry
  12165. after the named key.
  12166. - * @param key - key that we're trying to find
  12167. - * @param val - data value if key is found
  12168. - * @return - the key that was the closest match or null if eof.]]>
  12169. </doc>
  12170. </method>
  12171. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  12172. abstract="false" native="false" synchronized="true"
  12173. static="false" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12176. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12177. <param name="before" type="boolean"/>
  12178. <exception name="IOException" type="java.io.IOException"/>
  12179. <doc>
  12180. <![CDATA[Finds the record that is the closest match to the specified key.
  12181. @param key - key that we're trying to find
  12182. @param val - data value if key is found
  12183. @param before - IF true, and <code>key</code> does not exist, return
  12184. the first entry that falls just before the <code>key</code>. Otherwise,
  12185. return the record that sorts just after.
  12186. @return - the key that was the closest match or null if eof.]]>
  12187. </doc>
  12188. </method>
  12189. <method name="close"
  12190. abstract="false" native="false" synchronized="true"
  12191. static="false" final="false" visibility="public"
  12192. deprecated="not deprecated">
  12193. <exception name="IOException" type="java.io.IOException"/>
  12194. <doc>
  12195. <![CDATA[Close the map.]]>
  12196. </doc>
  12197. </method>
  12198. <doc>
  12199. <![CDATA[Provide access to an existing map.]]>
  12200. </doc>
  12201. </class>
  12202. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  12203. <!-- start interface org.apache.hadoop.io.MapFile.Reader.Option -->
  12204. <interface name="MapFile.Reader.Option" abstract="true"
  12205. static="true" final="false" visibility="public"
  12206. deprecated="not deprecated">
  12207. <implements name="org.apache.hadoop.io.SequenceFile.Reader.Option"/>
  12208. </interface>
  12209. <!-- end interface org.apache.hadoop.io.MapFile.Reader.Option -->
  12210. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  12211. <class name="MapFile.Writer" extends="java.lang.Object"
  12212. abstract="false"
  12213. static="true" final="false" visibility="public"
  12214. deprecated="not deprecated">
  12215. <implements name="java.io.Closeable"/>
  12216. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12219. <exception name="IOException" type="java.io.IOException"/>
  12220. <doc>
  12221. <![CDATA[Create the named map for keys of the named class.
  12222. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12223. </doc>
  12224. </constructor>
  12225. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  12226. static="false" final="false" visibility="public"
  12227. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12228. <exception name="IOException" type="java.io.IOException"/>
  12229. <doc>
  12230. <![CDATA[Create the named map for keys of the named class.
  12231. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12232. </doc>
  12233. </constructor>
  12234. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  12235. static="false" final="false" visibility="public"
  12236. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12237. <exception name="IOException" type="java.io.IOException"/>
  12238. <doc>
  12239. <![CDATA[Create the named map for keys of the named class.
  12240. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12241. </doc>
  12242. </constructor>
  12243. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  12244. static="false" final="false" visibility="public"
  12245. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12246. <exception name="IOException" type="java.io.IOException"/>
  12247. <doc>
  12248. <![CDATA[Create the named map for keys of the named class.
  12249. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12250. </doc>
  12251. </constructor>
  12252. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  12253. static="false" final="false" visibility="public"
  12254. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12255. <exception name="IOException" type="java.io.IOException"/>
  12256. <doc>
  12257. <![CDATA[Create the named map using the named key comparator.
  12258. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12259. </doc>
  12260. </constructor>
  12261. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  12262. static="false" final="false" visibility="public"
  12263. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12264. <exception name="IOException" type="java.io.IOException"/>
  12265. <doc>
  12266. <![CDATA[Create the named map using the named key comparator.
  12267. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12268. </doc>
  12269. </constructor>
  12270. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  12271. static="false" final="false" visibility="public"
  12272. deprecated="Use Writer(Configuration, Path, Option...)} instead.">
  12273. <exception name="IOException" type="java.io.IOException"/>
  12274. <doc>
  12275. <![CDATA[Create the named map using the named key comparator.
  12276. @deprecated Use Writer(Configuration, Path, Option...)} instead.]]>
  12277. </doc>
  12278. </constructor>
  12279. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  12280. static="false" final="false" visibility="public"
  12281. deprecated="Use Writer(Configuration, Path, Option...) instead.">
  12282. <exception name="IOException" type="java.io.IOException"/>
  12283. <doc>
  12284. <![CDATA[Create the named map using the named key comparator.
  12285. @deprecated Use Writer(Configuration, Path, Option...) instead.]]>
  12286. </doc>
  12287. </constructor>
  12288. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, org.apache.hadoop.io.SequenceFile.Writer.Option[]"
  12289. static="false" final="false" visibility="public"
  12290. deprecated="not deprecated">
  12291. <exception name="IOException" type="java.io.IOException"/>
  12292. </constructor>
  12293. <method name="keyClass" return="org.apache.hadoop.io.MapFile.Writer.Option"
  12294. abstract="false" native="false" synchronized="false"
  12295. static="true" final="false" visibility="public"
  12296. deprecated="not deprecated">
  12297. <param name="value" type="java.lang.Class"/>
  12298. </method>
  12299. <method name="comparator" return="org.apache.hadoop.io.MapFile.Writer.Option"
  12300. abstract="false" native="false" synchronized="false"
  12301. static="true" final="false" visibility="public"
  12302. deprecated="not deprecated">
  12303. <param name="value" type="org.apache.hadoop.io.WritableComparator"/>
  12304. </method>
  12305. <method name="valueClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  12306. abstract="false" native="false" synchronized="false"
  12307. static="true" final="false" visibility="public"
  12308. deprecated="not deprecated">
  12309. <param name="value" type="java.lang.Class"/>
  12310. </method>
  12311. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  12312. abstract="false" native="false" synchronized="false"
  12313. static="true" final="false" visibility="public"
  12314. deprecated="not deprecated">
  12315. <param name="type" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12316. </method>
  12317. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  12318. abstract="false" native="false" synchronized="false"
  12319. static="true" final="false" visibility="public"
  12320. deprecated="not deprecated">
  12321. <param name="type" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12322. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12323. </method>
  12324. <method name="progressable" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  12325. abstract="false" native="false" synchronized="false"
  12326. static="true" final="false" visibility="public"
  12327. deprecated="not deprecated">
  12328. <param name="value" type="org.apache.hadoop.util.Progressable"/>
  12329. </method>
  12330. <method name="getIndexInterval" return="int"
  12331. abstract="false" native="false" synchronized="false"
  12332. static="false" final="false" visibility="public"
  12333. deprecated="not deprecated">
  12334. <doc>
  12335. <![CDATA[The number of entries that are added before an index entry is added.]]>
  12336. </doc>
  12337. </method>
  12338. <method name="setIndexInterval"
  12339. abstract="false" native="false" synchronized="false"
  12340. static="false" final="false" visibility="public"
  12341. deprecated="not deprecated">
  12342. <param name="interval" type="int"/>
  12343. <doc>
  12344. <![CDATA[Sets the index interval.
  12345. @see #getIndexInterval()]]>
  12346. </doc>
  12347. </method>
  12348. <method name="setIndexInterval"
  12349. abstract="false" native="false" synchronized="false"
  12350. static="true" final="false" visibility="public"
  12351. deprecated="not deprecated">
  12352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12353. <param name="interval" type="int"/>
  12354. <doc>
  12355. <![CDATA[Sets the index interval and stores it in conf
  12356. @see #getIndexInterval()]]>
  12357. </doc>
  12358. </method>
  12359. <method name="close"
  12360. abstract="false" native="false" synchronized="true"
  12361. static="false" final="false" visibility="public"
  12362. deprecated="not deprecated">
  12363. <exception name="IOException" type="java.io.IOException"/>
  12364. <doc>
  12365. <![CDATA[Close the map.]]>
  12366. </doc>
  12367. </method>
  12368. <method name="append"
  12369. abstract="false" native="false" synchronized="true"
  12370. static="false" final="false" visibility="public"
  12371. deprecated="not deprecated">
  12372. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12373. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12374. <exception name="IOException" type="java.io.IOException"/>
  12375. <doc>
  12376. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  12377. to the previous key added to the map.]]>
  12378. </doc>
  12379. </method>
  12380. <doc>
  12381. <![CDATA[Writes a new map.]]>
  12382. </doc>
  12383. </class>
  12384. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  12385. <!-- start interface org.apache.hadoop.io.MapFile.Writer.Option -->
  12386. <interface name="MapFile.Writer.Option" abstract="true"
  12387. static="true" final="false" visibility="public"
  12388. deprecated="not deprecated">
  12389. <implements name="org.apache.hadoop.io.SequenceFile.Writer.Option"/>
  12390. </interface>
  12391. <!-- end interface org.apache.hadoop.io.MapFile.Writer.Option -->
  12392. <!-- start class org.apache.hadoop.io.MapWritable -->
  12393. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  12394. abstract="false"
  12395. static="false" final="false" visibility="public"
  12396. deprecated="not deprecated">
  12397. <implements name="java.util.Map"/>
  12398. <constructor name="MapWritable"
  12399. static="false" final="false" visibility="public"
  12400. deprecated="not deprecated">
  12401. <doc>
  12402. <![CDATA[Default constructor.]]>
  12403. </doc>
  12404. </constructor>
  12405. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  12406. static="false" final="false" visibility="public"
  12407. deprecated="not deprecated">
  12408. <doc>
  12409. <![CDATA[Copy constructor.
  12410. @param other the map to copy from]]>
  12411. </doc>
  12412. </constructor>
  12413. <method name="clear"
  12414. abstract="false" native="false" synchronized="false"
  12415. static="false" final="false" visibility="public"
  12416. deprecated="not deprecated">
  12417. <doc>
  12418. <![CDATA[{@inheritDoc}]]>
  12419. </doc>
  12420. </method>
  12421. <method name="containsKey" return="boolean"
  12422. abstract="false" native="false" synchronized="false"
  12423. static="false" final="false" visibility="public"
  12424. deprecated="not deprecated">
  12425. <param name="key" type="java.lang.Object"/>
  12426. <doc>
  12427. <![CDATA[{@inheritDoc}]]>
  12428. </doc>
  12429. </method>
  12430. <method name="containsValue" return="boolean"
  12431. abstract="false" native="false" synchronized="false"
  12432. static="false" final="false" visibility="public"
  12433. deprecated="not deprecated">
  12434. <param name="value" type="java.lang.Object"/>
  12435. <doc>
  12436. <![CDATA[{@inheritDoc}]]>
  12437. </doc>
  12438. </method>
  12439. <method name="entrySet" return="java.util.Set"
  12440. abstract="false" native="false" synchronized="false"
  12441. static="false" final="false" visibility="public"
  12442. deprecated="not deprecated">
  12443. <doc>
  12444. <![CDATA[{@inheritDoc}]]>
  12445. </doc>
  12446. </method>
  12447. <method name="get" return="org.apache.hadoop.io.Writable"
  12448. abstract="false" native="false" synchronized="false"
  12449. static="false" final="false" visibility="public"
  12450. deprecated="not deprecated">
  12451. <param name="key" type="java.lang.Object"/>
  12452. <doc>
  12453. <![CDATA[{@inheritDoc}]]>
  12454. </doc>
  12455. </method>
  12456. <method name="isEmpty" return="boolean"
  12457. abstract="false" native="false" synchronized="false"
  12458. static="false" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. <doc>
  12461. <![CDATA[{@inheritDoc}]]>
  12462. </doc>
  12463. </method>
  12464. <method name="keySet" return="java.util.Set"
  12465. abstract="false" native="false" synchronized="false"
  12466. static="false" final="false" visibility="public"
  12467. deprecated="not deprecated">
  12468. <doc>
  12469. <![CDATA[{@inheritDoc}]]>
  12470. </doc>
  12471. </method>
  12472. <method name="put" return="org.apache.hadoop.io.Writable"
  12473. abstract="false" native="false" synchronized="false"
  12474. static="false" final="false" visibility="public"
  12475. deprecated="not deprecated">
  12476. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12477. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12478. <doc>
  12479. <![CDATA[{@inheritDoc}]]>
  12480. </doc>
  12481. </method>
  12482. <method name="putAll"
  12483. abstract="false" native="false" synchronized="false"
  12484. static="false" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. <param name="t" type="java.util.Map"/>
  12487. <doc>
  12488. <![CDATA[{@inheritDoc}]]>
  12489. </doc>
  12490. </method>
  12491. <method name="remove" return="org.apache.hadoop.io.Writable"
  12492. abstract="false" native="false" synchronized="false"
  12493. static="false" final="false" visibility="public"
  12494. deprecated="not deprecated">
  12495. <param name="key" type="java.lang.Object"/>
  12496. <doc>
  12497. <![CDATA[{@inheritDoc}]]>
  12498. </doc>
  12499. </method>
  12500. <method name="size" return="int"
  12501. abstract="false" native="false" synchronized="false"
  12502. static="false" final="false" visibility="public"
  12503. deprecated="not deprecated">
  12504. <doc>
  12505. <![CDATA[{@inheritDoc}]]>
  12506. </doc>
  12507. </method>
  12508. <method name="values" return="java.util.Collection"
  12509. abstract="false" native="false" synchronized="false"
  12510. static="false" final="false" visibility="public"
  12511. deprecated="not deprecated">
  12512. <doc>
  12513. <![CDATA[{@inheritDoc}]]>
  12514. </doc>
  12515. </method>
  12516. <method name="write"
  12517. abstract="false" native="false" synchronized="false"
  12518. static="false" final="false" visibility="public"
  12519. deprecated="not deprecated">
  12520. <param name="out" type="java.io.DataOutput"/>
  12521. <exception name="IOException" type="java.io.IOException"/>
  12522. <doc>
  12523. <![CDATA[{@inheritDoc}]]>
  12524. </doc>
  12525. </method>
  12526. <method name="readFields"
  12527. abstract="false" native="false" synchronized="false"
  12528. static="false" final="false" visibility="public"
  12529. deprecated="not deprecated">
  12530. <param name="in" type="java.io.DataInput"/>
  12531. <exception name="IOException" type="java.io.IOException"/>
  12532. <doc>
  12533. <![CDATA[{@inheritDoc}]]>
  12534. </doc>
  12535. </method>
  12536. <doc>
  12537. <![CDATA[A Writable Map.]]>
  12538. </doc>
  12539. </class>
  12540. <!-- end class org.apache.hadoop.io.MapWritable -->
  12541. <!-- start class org.apache.hadoop.io.MD5Hash -->
  12542. <class name="MD5Hash" extends="java.lang.Object"
  12543. abstract="false"
  12544. static="false" final="false" visibility="public"
  12545. deprecated="not deprecated">
  12546. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12547. <constructor name="MD5Hash"
  12548. static="false" final="false" visibility="public"
  12549. deprecated="not deprecated">
  12550. <doc>
  12551. <![CDATA[Constructs an MD5Hash.]]>
  12552. </doc>
  12553. </constructor>
  12554. <constructor name="MD5Hash" type="java.lang.String"
  12555. static="false" final="false" visibility="public"
  12556. deprecated="not deprecated">
  12557. <doc>
  12558. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  12559. </doc>
  12560. </constructor>
  12561. <constructor name="MD5Hash" type="byte[]"
  12562. static="false" final="false" visibility="public"
  12563. deprecated="not deprecated">
  12564. <doc>
  12565. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  12566. </doc>
  12567. </constructor>
  12568. <method name="readFields"
  12569. abstract="false" native="false" synchronized="false"
  12570. static="false" final="false" visibility="public"
  12571. deprecated="not deprecated">
  12572. <param name="in" type="java.io.DataInput"/>
  12573. <exception name="IOException" type="java.io.IOException"/>
  12574. </method>
  12575. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12576. abstract="false" native="false" synchronized="false"
  12577. static="true" final="false" visibility="public"
  12578. deprecated="not deprecated">
  12579. <param name="in" type="java.io.DataInput"/>
  12580. <exception name="IOException" type="java.io.IOException"/>
  12581. <doc>
  12582. <![CDATA[Constructs, reads and returns an instance.]]>
  12583. </doc>
  12584. </method>
  12585. <method name="write"
  12586. abstract="false" native="false" synchronized="false"
  12587. static="false" final="false" visibility="public"
  12588. deprecated="not deprecated">
  12589. <param name="out" type="java.io.DataOutput"/>
  12590. <exception name="IOException" type="java.io.IOException"/>
  12591. </method>
  12592. <method name="set"
  12593. abstract="false" native="false" synchronized="false"
  12594. static="false" final="false" visibility="public"
  12595. deprecated="not deprecated">
  12596. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12597. <doc>
  12598. <![CDATA[Copy the contents of another instance into this instance.]]>
  12599. </doc>
  12600. </method>
  12601. <method name="getDigest" return="byte[]"
  12602. abstract="false" native="false" synchronized="false"
  12603. static="false" final="false" visibility="public"
  12604. deprecated="not deprecated">
  12605. <doc>
  12606. <![CDATA[Returns the digest bytes.]]>
  12607. </doc>
  12608. </method>
  12609. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12610. abstract="false" native="false" synchronized="false"
  12611. static="true" final="false" visibility="public"
  12612. deprecated="not deprecated">
  12613. <param name="data" type="byte[]"/>
  12614. <doc>
  12615. <![CDATA[Construct a hash value for a byte array.]]>
  12616. </doc>
  12617. </method>
  12618. <method name="getDigester" return="java.security.MessageDigest"
  12619. abstract="false" native="false" synchronized="false"
  12620. static="true" final="false" visibility="public"
  12621. deprecated="not deprecated">
  12622. <doc>
  12623. <![CDATA[Create a thread local MD5 digester]]>
  12624. </doc>
  12625. </method>
  12626. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12627. abstract="false" native="false" synchronized="false"
  12628. static="true" final="false" visibility="public"
  12629. deprecated="not deprecated">
  12630. <param name="in" type="java.io.InputStream"/>
  12631. <exception name="IOException" type="java.io.IOException"/>
  12632. <doc>
  12633. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12634. </doc>
  12635. </method>
  12636. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12637. abstract="false" native="false" synchronized="false"
  12638. static="true" final="false" visibility="public"
  12639. deprecated="not deprecated">
  12640. <param name="data" type="byte[]"/>
  12641. <param name="start" type="int"/>
  12642. <param name="len" type="int"/>
  12643. <doc>
  12644. <![CDATA[Construct a hash value for a byte array.]]>
  12645. </doc>
  12646. </method>
  12647. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12648. abstract="false" native="false" synchronized="false"
  12649. static="true" final="false" visibility="public"
  12650. deprecated="not deprecated">
  12651. <param name="string" type="java.lang.String"/>
  12652. <doc>
  12653. <![CDATA[Construct a hash value for a String.]]>
  12654. </doc>
  12655. </method>
  12656. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12657. abstract="false" native="false" synchronized="false"
  12658. static="true" final="false" visibility="public"
  12659. deprecated="not deprecated">
  12660. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12661. <doc>
  12662. <![CDATA[Construct a hash value for a String.]]>
  12663. </doc>
  12664. </method>
  12665. <method name="halfDigest" return="long"
  12666. abstract="false" native="false" synchronized="false"
  12667. static="false" final="false" visibility="public"
  12668. deprecated="not deprecated">
  12669. <doc>
  12670. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12671. </doc>
  12672. </method>
  12673. <method name="quarterDigest" return="int"
  12674. abstract="false" native="false" synchronized="false"
  12675. static="false" final="false" visibility="public"
  12676. deprecated="not deprecated">
  12677. <doc>
  12678. <![CDATA[Return a 32-bit digest of the MD5.
  12679. @return the first 4 bytes of the md5]]>
  12680. </doc>
  12681. </method>
  12682. <method name="equals" return="boolean"
  12683. abstract="false" native="false" synchronized="false"
  12684. static="false" final="false" visibility="public"
  12685. deprecated="not deprecated">
  12686. <param name="o" type="java.lang.Object"/>
  12687. <doc>
  12688. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12689. same values.]]>
  12690. </doc>
  12691. </method>
  12692. <method name="hashCode" return="int"
  12693. abstract="false" native="false" synchronized="false"
  12694. static="false" final="false" visibility="public"
  12695. deprecated="not deprecated">
  12696. <doc>
  12697. <![CDATA[Returns a hash code value for this object.
  12698. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12699. </doc>
  12700. </method>
  12701. <method name="compareTo" return="int"
  12702. abstract="false" native="false" synchronized="false"
  12703. static="false" final="false" visibility="public"
  12704. deprecated="not deprecated">
  12705. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12706. <doc>
  12707. <![CDATA[Compares this object with the specified object for order.]]>
  12708. </doc>
  12709. </method>
  12710. <method name="toString" return="java.lang.String"
  12711. abstract="false" native="false" synchronized="false"
  12712. static="false" final="false" visibility="public"
  12713. deprecated="not deprecated">
  12714. <doc>
  12715. <![CDATA[Returns a string representation of this object.]]>
  12716. </doc>
  12717. </method>
  12718. <method name="setDigest"
  12719. abstract="false" native="false" synchronized="false"
  12720. static="false" final="false" visibility="public"
  12721. deprecated="not deprecated">
  12722. <param name="hex" type="java.lang.String"/>
  12723. <doc>
  12724. <![CDATA[Sets the digest value from a hex string.]]>
  12725. </doc>
  12726. </method>
  12727. <field name="MD5_LEN" type="int"
  12728. transient="false" volatile="false"
  12729. static="true" final="true" visibility="public"
  12730. deprecated="not deprecated">
  12731. </field>
  12732. <doc>
  12733. <![CDATA[A Writable for MD5 hash values.]]>
  12734. </doc>
  12735. </class>
  12736. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12737. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12738. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12739. abstract="false"
  12740. static="true" final="false" visibility="public"
  12741. deprecated="not deprecated">
  12742. <constructor name="MD5Hash.Comparator"
  12743. static="false" final="false" visibility="public"
  12744. deprecated="not deprecated">
  12745. </constructor>
  12746. <method name="compare" return="int"
  12747. abstract="false" native="false" synchronized="false"
  12748. static="false" final="false" visibility="public"
  12749. deprecated="not deprecated">
  12750. <param name="b1" type="byte[]"/>
  12751. <param name="s1" type="int"/>
  12752. <param name="l1" type="int"/>
  12753. <param name="b2" type="byte[]"/>
  12754. <param name="s2" type="int"/>
  12755. <param name="l2" type="int"/>
  12756. </method>
  12757. <doc>
  12758. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12759. </doc>
  12760. </class>
  12761. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12762. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12763. <class name="MultipleIOException" extends="java.io.IOException"
  12764. abstract="false"
  12765. static="false" final="false" visibility="public"
  12766. deprecated="not deprecated">
  12767. <method name="getExceptions" return="java.util.List"
  12768. abstract="false" native="false" synchronized="false"
  12769. static="false" final="false" visibility="public"
  12770. deprecated="not deprecated">
  12771. <doc>
  12772. <![CDATA[@return the underlying exceptions]]>
  12773. </doc>
  12774. </method>
  12775. <method name="createIOException" return="java.io.IOException"
  12776. abstract="false" native="false" synchronized="false"
  12777. static="true" final="false" visibility="public"
  12778. deprecated="not deprecated">
  12779. <param name="exceptions" type="java.util.List"/>
  12780. <doc>
  12781. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12782. </doc>
  12783. </method>
  12784. <doc>
  12785. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12786. </doc>
  12787. </class>
  12788. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12789. <!-- start class org.apache.hadoop.io.NullWritable -->
  12790. <class name="NullWritable" extends="java.lang.Object"
  12791. abstract="false"
  12792. static="false" final="false" visibility="public"
  12793. deprecated="not deprecated">
  12794. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12795. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12796. abstract="false" native="false" synchronized="false"
  12797. static="true" final="false" visibility="public"
  12798. deprecated="not deprecated">
  12799. <doc>
  12800. <![CDATA[Returns the single instance of this class.]]>
  12801. </doc>
  12802. </method>
  12803. <method name="toString" return="java.lang.String"
  12804. abstract="false" native="false" synchronized="false"
  12805. static="false" final="false" visibility="public"
  12806. deprecated="not deprecated">
  12807. </method>
  12808. <method name="hashCode" return="int"
  12809. abstract="false" native="false" synchronized="false"
  12810. static="false" final="false" visibility="public"
  12811. deprecated="not deprecated">
  12812. </method>
  12813. <method name="compareTo" return="int"
  12814. abstract="false" native="false" synchronized="false"
  12815. static="false" final="false" visibility="public"
  12816. deprecated="not deprecated">
  12817. <param name="other" type="java.lang.Object"/>
  12818. </method>
  12819. <method name="equals" return="boolean"
  12820. abstract="false" native="false" synchronized="false"
  12821. static="false" final="false" visibility="public"
  12822. deprecated="not deprecated">
  12823. <param name="other" type="java.lang.Object"/>
  12824. </method>
  12825. <method name="readFields"
  12826. abstract="false" native="false" synchronized="false"
  12827. static="false" final="false" visibility="public"
  12828. deprecated="not deprecated">
  12829. <param name="in" type="java.io.DataInput"/>
  12830. <exception name="IOException" type="java.io.IOException"/>
  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. <doc>
  12840. <![CDATA[Singleton Writable with no data.]]>
  12841. </doc>
  12842. </class>
  12843. <!-- end class org.apache.hadoop.io.NullWritable -->
  12844. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12845. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12846. abstract="false"
  12847. static="true" final="false" visibility="public"
  12848. deprecated="not deprecated">
  12849. <constructor name="NullWritable.Comparator"
  12850. static="false" final="false" visibility="public"
  12851. deprecated="not deprecated">
  12852. </constructor>
  12853. <method name="compare" return="int"
  12854. abstract="false" native="false" synchronized="false"
  12855. static="false" final="false" visibility="public"
  12856. deprecated="not deprecated">
  12857. <param name="b1" type="byte[]"/>
  12858. <param name="s1" type="int"/>
  12859. <param name="l1" type="int"/>
  12860. <param name="b2" type="byte[]"/>
  12861. <param name="s2" type="int"/>
  12862. <param name="l2" type="int"/>
  12863. <doc>
  12864. <![CDATA[Compare the buffers in serialized form.]]>
  12865. </doc>
  12866. </method>
  12867. <doc>
  12868. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12869. </doc>
  12870. </class>
  12871. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12872. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12873. <class name="ObjectWritable" extends="java.lang.Object"
  12874. abstract="false"
  12875. static="false" final="false" visibility="public"
  12876. deprecated="not deprecated">
  12877. <implements name="org.apache.hadoop.io.Writable"/>
  12878. <implements name="org.apache.hadoop.conf.Configurable"/>
  12879. <constructor name="ObjectWritable"
  12880. static="false" final="false" visibility="public"
  12881. deprecated="not deprecated">
  12882. </constructor>
  12883. <constructor name="ObjectWritable" type="java.lang.Object"
  12884. static="false" final="false" visibility="public"
  12885. deprecated="not deprecated">
  12886. </constructor>
  12887. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12888. static="false" final="false" visibility="public"
  12889. deprecated="not deprecated">
  12890. </constructor>
  12891. <method name="get" return="java.lang.Object"
  12892. abstract="false" native="false" synchronized="false"
  12893. static="false" final="false" visibility="public"
  12894. deprecated="not deprecated">
  12895. <doc>
  12896. <![CDATA[Return the instance, or null if none.]]>
  12897. </doc>
  12898. </method>
  12899. <method name="getDeclaredClass" return="java.lang.Class"
  12900. abstract="false" native="false" synchronized="false"
  12901. static="false" final="false" visibility="public"
  12902. deprecated="not deprecated">
  12903. <doc>
  12904. <![CDATA[Return the class this is meant to be.]]>
  12905. </doc>
  12906. </method>
  12907. <method name="set"
  12908. abstract="false" native="false" synchronized="false"
  12909. static="false" final="false" visibility="public"
  12910. deprecated="not deprecated">
  12911. <param name="instance" type="java.lang.Object"/>
  12912. <doc>
  12913. <![CDATA[Reset the instance.]]>
  12914. </doc>
  12915. </method>
  12916. <method name="toString" return="java.lang.String"
  12917. abstract="false" native="false" synchronized="false"
  12918. static="false" final="false" visibility="public"
  12919. deprecated="not deprecated">
  12920. </method>
  12921. <method name="readFields"
  12922. abstract="false" native="false" synchronized="false"
  12923. static="false" final="false" visibility="public"
  12924. deprecated="not deprecated">
  12925. <param name="in" type="java.io.DataInput"/>
  12926. <exception name="IOException" type="java.io.IOException"/>
  12927. </method>
  12928. <method name="write"
  12929. abstract="false" native="false" synchronized="false"
  12930. static="false" final="false" visibility="public"
  12931. deprecated="not deprecated">
  12932. <param name="out" type="java.io.DataOutput"/>
  12933. <exception name="IOException" type="java.io.IOException"/>
  12934. </method>
  12935. <method name="writeObject"
  12936. abstract="false" native="false" synchronized="false"
  12937. static="true" final="false" visibility="public"
  12938. deprecated="not deprecated">
  12939. <param name="out" type="java.io.DataOutput"/>
  12940. <param name="instance" type="java.lang.Object"/>
  12941. <param name="declaredClass" type="java.lang.Class"/>
  12942. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12943. <exception name="IOException" type="java.io.IOException"/>
  12944. <doc>
  12945. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12946. the preceding.]]>
  12947. </doc>
  12948. </method>
  12949. <method name="writeObject"
  12950. abstract="false" native="false" synchronized="false"
  12951. static="true" final="false" visibility="public"
  12952. deprecated="not deprecated">
  12953. <param name="out" type="java.io.DataOutput"/>
  12954. <param name="instance" type="java.lang.Object"/>
  12955. <param name="declaredClass" type="java.lang.Class"/>
  12956. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12957. <param name="allowCompactArrays" type="boolean"/>
  12958. <exception name="IOException" type="java.io.IOException"/>
  12959. <doc>
  12960. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12961. the preceding.
  12962. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  12963. usages. Set false for inter-cluster, File, and other persisted output
  12964. usages, to preserve the ability to interchange files with other clusters
  12965. that may not be running the same version of software. Sometime in ~2013
  12966. we can consider removing this parameter and always using the compact format.]]>
  12967. </doc>
  12968. </method>
  12969. <method name="readObject" return="java.lang.Object"
  12970. abstract="false" native="false" synchronized="false"
  12971. static="true" final="false" visibility="public"
  12972. deprecated="not deprecated">
  12973. <param name="in" type="java.io.DataInput"/>
  12974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12975. <exception name="IOException" type="java.io.IOException"/>
  12976. <doc>
  12977. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12978. the preceding.]]>
  12979. </doc>
  12980. </method>
  12981. <method name="readObject" return="java.lang.Object"
  12982. abstract="false" native="false" synchronized="false"
  12983. static="true" final="false" visibility="public"
  12984. deprecated="not deprecated">
  12985. <param name="in" type="java.io.DataInput"/>
  12986. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12987. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12988. <exception name="IOException" type="java.io.IOException"/>
  12989. <doc>
  12990. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12991. the preceding.]]>
  12992. </doc>
  12993. </method>
  12994. <method name="loadClass" return="java.lang.Class"
  12995. abstract="false" native="false" synchronized="false"
  12996. static="true" final="false" visibility="public"
  12997. deprecated="not deprecated">
  12998. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12999. <param name="className" type="java.lang.String"/>
  13000. <doc>
  13001. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  13002. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  13003. try load it directly.]]>
  13004. </doc>
  13005. </method>
  13006. <method name="setConf"
  13007. abstract="false" native="false" synchronized="false"
  13008. static="false" final="false" visibility="public"
  13009. deprecated="not deprecated">
  13010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13011. </method>
  13012. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13013. abstract="false" native="false" synchronized="false"
  13014. static="false" final="false" visibility="public"
  13015. deprecated="not deprecated">
  13016. </method>
  13017. <doc>
  13018. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  13019. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  13020. </doc>
  13021. </class>
  13022. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  13023. <!-- start interface org.apache.hadoop.io.RawComparator -->
  13024. <interface name="RawComparator" abstract="true"
  13025. static="false" final="false" visibility="public"
  13026. deprecated="not deprecated">
  13027. <implements name="java.util.Comparator"/>
  13028. <method name="compare" return="int"
  13029. abstract="false" native="false" synchronized="false"
  13030. static="false" final="false" visibility="public"
  13031. deprecated="not deprecated">
  13032. <param name="b1" type="byte[]"/>
  13033. <param name="s1" type="int"/>
  13034. <param name="l1" type="int"/>
  13035. <param name="b2" type="byte[]"/>
  13036. <param name="s2" type="int"/>
  13037. <param name="l2" type="int"/>
  13038. </method>
  13039. <doc>
  13040. <![CDATA[<p>
  13041. A {@link Comparator} that operates directly on byte representations of
  13042. objects.
  13043. </p>
  13044. @param <T>
  13045. @see DeserializerComparator]]>
  13046. </doc>
  13047. </interface>
  13048. <!-- end interface org.apache.hadoop.io.RawComparator -->
  13049. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  13050. <class name="SecureIOUtils" extends="java.lang.Object"
  13051. abstract="false"
  13052. static="false" final="false" visibility="public"
  13053. deprecated="not deprecated">
  13054. <constructor name="SecureIOUtils"
  13055. static="false" final="false" visibility="public"
  13056. deprecated="not deprecated">
  13057. </constructor>
  13058. <method name="openForRead" return="java.io.FileInputStream"
  13059. abstract="false" native="false" synchronized="false"
  13060. static="true" final="false" visibility="public"
  13061. deprecated="not deprecated">
  13062. <param name="f" type="java.io.File"/>
  13063. <param name="expectedOwner" type="java.lang.String"/>
  13064. <param name="expectedGroup" type="java.lang.String"/>
  13065. <exception name="IOException" type="java.io.IOException"/>
  13066. <doc>
  13067. <![CDATA[Open the given File for read access, verifying the expected user/group
  13068. constraints if security is enabled.
  13069. Note that this function provides no additional checks if Hadoop
  13070. security is disabled, since doing the checks would be too expensive
  13071. when native libraries are not available.
  13072. @param f the file that we are trying to open
  13073. @param expectedOwner the expected user owner for the file
  13074. @param expectedGroup the expected group owner for the file
  13075. @throws IOException if an IO Error occurred, or security is enabled and
  13076. the user/group does not match]]>
  13077. </doc>
  13078. </method>
  13079. <method name="createForWrite" return="java.io.FileOutputStream"
  13080. abstract="false" native="false" synchronized="false"
  13081. static="true" final="false" visibility="public"
  13082. deprecated="not deprecated">
  13083. <param name="f" type="java.io.File"/>
  13084. <param name="permissions" type="int"/>
  13085. <exception name="IOException" type="java.io.IOException"/>
  13086. <doc>
  13087. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  13088. @param f the file that we want to create
  13089. @param permissions we want to have on the file (if security is enabled)
  13090. @throws AlreadyExistsException if the file already exists
  13091. @throws IOException if any other error occurred]]>
  13092. </doc>
  13093. </method>
  13094. <doc>
  13095. <![CDATA[This class provides secure APIs for opening and creating files on the local
  13096. disk. The main issue this class tries to handle is that of symlink traversal.
  13097. <br/>
  13098. An example of such an attack is:
  13099. <ol>
  13100. <li> Malicious user removes his task's syslog file, and puts a link to the
  13101. jobToken file of a target user.</li>
  13102. <li> Malicious user tries to open the syslog file via the servlet on the
  13103. tasktracker.</li>
  13104. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  13105. of the jobToken file. The malicious user can now access potentially sensitive
  13106. map outputs, etc. of the target user's job.</li>
  13107. </ol>
  13108. A similar attack is possible involving task log truncation, but in that case
  13109. due to an insecure write to a file.
  13110. <br/>]]>
  13111. </doc>
  13112. </class>
  13113. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  13114. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  13115. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  13116. abstract="false"
  13117. static="true" final="false" visibility="public"
  13118. deprecated="not deprecated">
  13119. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  13120. static="false" final="false" visibility="public"
  13121. deprecated="not deprecated">
  13122. </constructor>
  13123. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  13124. static="false" final="false" visibility="public"
  13125. deprecated="not deprecated">
  13126. </constructor>
  13127. <doc>
  13128. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  13129. because another file already existed at that path.]]>
  13130. </doc>
  13131. </class>
  13132. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  13133. <!-- start class org.apache.hadoop.io.SequenceFile -->
  13134. <class name="SequenceFile" extends="java.lang.Object"
  13135. abstract="false"
  13136. static="false" final="false" visibility="public"
  13137. deprecated="not deprecated">
  13138. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13139. abstract="false" native="false" synchronized="false"
  13140. static="true" final="false" visibility="public"
  13141. deprecated="not deprecated">
  13142. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  13143. <doc>
  13144. <![CDATA[Get the compression type for the reduce outputs
  13145. @param job the job config to look in
  13146. @return the kind of compression to use]]>
  13147. </doc>
  13148. </method>
  13149. <method name="setDefaultCompressionType"
  13150. abstract="false" native="false" synchronized="false"
  13151. static="true" final="false" visibility="public"
  13152. deprecated="not deprecated">
  13153. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  13154. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13155. <doc>
  13156. <![CDATA[Set the default compression type for sequence files.
  13157. @param job the configuration to modify
  13158. @param val the new compression type (none, block, record)]]>
  13159. </doc>
  13160. </method>
  13161. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13162. abstract="false" native="false" synchronized="false"
  13163. static="true" final="false" visibility="public"
  13164. deprecated="not deprecated">
  13165. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13166. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  13167. <exception name="IOException" type="java.io.IOException"/>
  13168. <doc>
  13169. <![CDATA[Create a new Writer with the given options.
  13170. @param conf the configuration to use
  13171. @param opts the options to create the file with
  13172. @return a new Writer
  13173. @throws IOException]]>
  13174. </doc>
  13175. </method>
  13176. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13177. abstract="false" native="false" synchronized="false"
  13178. static="true" final="false" visibility="public"
  13179. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13180. instead.">
  13181. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13182. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13183. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13184. <param name="keyClass" type="java.lang.Class"/>
  13185. <param name="valClass" type="java.lang.Class"/>
  13186. <exception name="IOException" type="java.io.IOException"/>
  13187. <doc>
  13188. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13189. @param fs The configured filesystem.
  13190. @param conf The configuration.
  13191. @param name The name of the file.
  13192. @param keyClass The 'key' type.
  13193. @param valClass The 'value' type.
  13194. @return Returns the handle to the constructed SequenceFile Writer.
  13195. @throws IOException
  13196. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13197. instead.]]>
  13198. </doc>
  13199. </method>
  13200. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13201. abstract="false" native="false" synchronized="false"
  13202. static="true" final="false" visibility="public"
  13203. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13204. instead.">
  13205. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13207. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13208. <param name="keyClass" type="java.lang.Class"/>
  13209. <param name="valClass" type="java.lang.Class"/>
  13210. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13211. <exception name="IOException" type="java.io.IOException"/>
  13212. <doc>
  13213. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13214. @param fs The configured filesystem.
  13215. @param conf The configuration.
  13216. @param name The name of the file.
  13217. @param keyClass The 'key' type.
  13218. @param valClass The 'value' type.
  13219. @param compressionType The compression type.
  13220. @return Returns the handle to the constructed SequenceFile Writer.
  13221. @throws IOException
  13222. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13223. instead.]]>
  13224. </doc>
  13225. </method>
  13226. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13227. abstract="false" native="false" synchronized="false"
  13228. static="true" final="false" visibility="public"
  13229. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13230. instead.">
  13231. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13233. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13234. <param name="keyClass" type="java.lang.Class"/>
  13235. <param name="valClass" type="java.lang.Class"/>
  13236. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13237. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13238. <exception name="IOException" type="java.io.IOException"/>
  13239. <doc>
  13240. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13241. @param fs The configured filesystem.
  13242. @param conf The configuration.
  13243. @param name The name of the file.
  13244. @param keyClass The 'key' type.
  13245. @param valClass The 'value' type.
  13246. @param compressionType The compression type.
  13247. @param progress The Progressable object to track progress.
  13248. @return Returns the handle to the constructed SequenceFile Writer.
  13249. @throws IOException
  13250. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13251. instead.]]>
  13252. </doc>
  13253. </method>
  13254. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13255. abstract="false" native="false" synchronized="false"
  13256. static="true" final="false" visibility="public"
  13257. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13258. instead.">
  13259. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13260. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13261. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13262. <param name="keyClass" type="java.lang.Class"/>
  13263. <param name="valClass" type="java.lang.Class"/>
  13264. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13265. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13266. <exception name="IOException" type="java.io.IOException"/>
  13267. <doc>
  13268. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13269. @param fs The configured filesystem.
  13270. @param conf The configuration.
  13271. @param name The name of the file.
  13272. @param keyClass The 'key' type.
  13273. @param valClass The 'value' type.
  13274. @param compressionType The compression type.
  13275. @param codec The compression codec.
  13276. @return Returns the handle to the constructed SequenceFile Writer.
  13277. @throws IOException
  13278. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13279. instead.]]>
  13280. </doc>
  13281. </method>
  13282. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13283. abstract="false" native="false" synchronized="false"
  13284. static="true" final="false" visibility="public"
  13285. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13286. instead.">
  13287. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13288. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13289. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13290. <param name="keyClass" type="java.lang.Class"/>
  13291. <param name="valClass" type="java.lang.Class"/>
  13292. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13293. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13294. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13295. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13296. <exception name="IOException" type="java.io.IOException"/>
  13297. <doc>
  13298. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13299. @param fs The configured filesystem.
  13300. @param conf The configuration.
  13301. @param name The name of the file.
  13302. @param keyClass The 'key' type.
  13303. @param valClass The 'value' type.
  13304. @param compressionType The compression type.
  13305. @param codec The compression codec.
  13306. @param progress The Progressable object to track progress.
  13307. @param metadata The metadata of the file.
  13308. @return Returns the handle to the constructed SequenceFile Writer.
  13309. @throws IOException
  13310. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13311. instead.]]>
  13312. </doc>
  13313. </method>
  13314. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13315. abstract="false" native="false" synchronized="false"
  13316. static="true" final="false" visibility="public"
  13317. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13318. instead.">
  13319. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13320. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13321. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13322. <param name="keyClass" type="java.lang.Class"/>
  13323. <param name="valClass" type="java.lang.Class"/>
  13324. <param name="bufferSize" type="int"/>
  13325. <param name="replication" type="short"/>
  13326. <param name="blockSize" type="long"/>
  13327. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13328. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13329. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13330. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13331. <exception name="IOException" type="java.io.IOException"/>
  13332. <doc>
  13333. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13334. @param fs The configured filesystem.
  13335. @param conf The configuration.
  13336. @param name The name of the file.
  13337. @param keyClass The 'key' type.
  13338. @param valClass The 'value' type.
  13339. @param bufferSize buffer size for the underlaying outputstream.
  13340. @param replication replication factor for the file.
  13341. @param blockSize block size for the file.
  13342. @param compressionType The compression type.
  13343. @param codec The compression codec.
  13344. @param progress The Progressable object to track progress.
  13345. @param metadata The metadata of the file.
  13346. @return Returns the handle to the constructed SequenceFile Writer.
  13347. @throws IOException
  13348. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13349. instead.]]>
  13350. </doc>
  13351. </method>
  13352. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13353. abstract="false" native="false" synchronized="false"
  13354. static="true" final="false" visibility="public"
  13355. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13356. instead.">
  13357. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13358. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13359. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13360. <param name="keyClass" type="java.lang.Class"/>
  13361. <param name="valClass" type="java.lang.Class"/>
  13362. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13363. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13364. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13365. <exception name="IOException" type="java.io.IOException"/>
  13366. <doc>
  13367. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13368. @param fs The configured filesystem.
  13369. @param conf The configuration.
  13370. @param name The name of the file.
  13371. @param keyClass The 'key' type.
  13372. @param valClass The 'value' type.
  13373. @param compressionType The compression type.
  13374. @param codec The compression codec.
  13375. @param progress The Progressable object to track progress.
  13376. @return Returns the handle to the constructed SequenceFile Writer.
  13377. @throws IOException
  13378. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13379. instead.]]>
  13380. </doc>
  13381. </method>
  13382. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13383. abstract="false" native="false" synchronized="false"
  13384. static="true" final="false" visibility="public"
  13385. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13386. instead.">
  13387. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13388. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13389. <param name="keyClass" type="java.lang.Class"/>
  13390. <param name="valClass" type="java.lang.Class"/>
  13391. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13392. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13393. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13394. <exception name="IOException" type="java.io.IOException"/>
  13395. <doc>
  13396. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13397. @param conf The configuration.
  13398. @param out The stream on top which the writer is to be constructed.
  13399. @param keyClass The 'key' type.
  13400. @param valClass The 'value' type.
  13401. @param compressionType The compression type.
  13402. @param codec The compression codec.
  13403. @param metadata The metadata of the file.
  13404. @return Returns the handle to the constructed SequenceFile Writer.
  13405. @throws IOException
  13406. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13407. instead.]]>
  13408. </doc>
  13409. </method>
  13410. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13411. abstract="false" native="false" synchronized="false"
  13412. static="true" final="false" visibility="public"
  13413. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  13414. instead.">
  13415. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13416. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13417. <param name="keyClass" type="java.lang.Class"/>
  13418. <param name="valClass" type="java.lang.Class"/>
  13419. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13420. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13421. <exception name="IOException" type="java.io.IOException"/>
  13422. <doc>
  13423. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13424. @param conf The configuration.
  13425. @param out The stream on top which the writer is to be constructed.
  13426. @param keyClass The 'key' type.
  13427. @param valClass The 'value' type.
  13428. @param compressionType The compression type.
  13429. @param codec The compression codec.
  13430. @return Returns the handle to the constructed SequenceFile Writer.
  13431. @throws IOException
  13432. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  13433. instead.]]>
  13434. </doc>
  13435. </method>
  13436. <field name="SYNC_INTERVAL" type="int"
  13437. transient="false" volatile="false"
  13438. static="true" final="true" visibility="public"
  13439. deprecated="not deprecated">
  13440. <doc>
  13441. <![CDATA[The number of bytes between sync points.]]>
  13442. </doc>
  13443. </field>
  13444. <doc>
  13445. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  13446. pairs.
  13447. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  13448. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  13449. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  13450. {@link CompressionType} used to compress key/value pairs:
  13451. <ol>
  13452. <li>
  13453. <code>Writer</code> : Uncompressed records.
  13454. </li>
  13455. <li>
  13456. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  13457. values.
  13458. </li>
  13459. <li>
  13460. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  13461. values are collected in 'blocks'
  13462. separately and compressed. The size of
  13463. the 'block' is configurable.
  13464. </ol>
  13465. <p>The actual compression algorithm used to compress key and/or values can be
  13466. specified by using the appropriate {@link CompressionCodec}.</p>
  13467. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  13468. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  13469. <p>The {@link Reader} acts as the bridge and can read any of the above
  13470. <code>SequenceFile</code> formats.</p>
  13471. <h4 id="Formats">SequenceFile Formats</h4>
  13472. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  13473. depending on the <code>CompressionType</code> specified. All of them share a
  13474. <a href="#Header">common header</a> described below.
  13475. <h5 id="Header">SequenceFile Header</h5>
  13476. <ul>
  13477. <li>
  13478. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  13479. version number (e.g. SEQ4 or SEQ6)
  13480. </li>
  13481. <li>
  13482. keyClassName -key class
  13483. </li>
  13484. <li>
  13485. valueClassName - value class
  13486. </li>
  13487. <li>
  13488. compression - A boolean which specifies if compression is turned on for
  13489. keys/values in this file.
  13490. </li>
  13491. <li>
  13492. blockCompression - A boolean which specifies if block-compression is
  13493. turned on for keys/values in this file.
  13494. </li>
  13495. <li>
  13496. compression codec - <code>CompressionCodec</code> class which is used for
  13497. compression of keys and/or values (if compression is
  13498. enabled).
  13499. </li>
  13500. <li>
  13501. metadata - {@link Metadata} for this file.
  13502. </li>
  13503. <li>
  13504. sync - A sync marker to denote end of the header.
  13505. </li>
  13506. </ul>
  13507. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  13508. <ul>
  13509. <li>
  13510. <a href="#Header">Header</a>
  13511. </li>
  13512. <li>
  13513. Record
  13514. <ul>
  13515. <li>Record length</li>
  13516. <li>Key length</li>
  13517. <li>Key</li>
  13518. <li>Value</li>
  13519. </ul>
  13520. </li>
  13521. <li>
  13522. A sync-marker every few <code>100</code> bytes or so.
  13523. </li>
  13524. </ul>
  13525. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  13526. <ul>
  13527. <li>
  13528. <a href="#Header">Header</a>
  13529. </li>
  13530. <li>
  13531. Record
  13532. <ul>
  13533. <li>Record length</li>
  13534. <li>Key length</li>
  13535. <li>Key</li>
  13536. <li><i>Compressed</i> Value</li>
  13537. </ul>
  13538. </li>
  13539. <li>
  13540. A sync-marker every few <code>100</code> bytes or so.
  13541. </li>
  13542. </ul>
  13543. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13544. <ul>
  13545. <li>
  13546. <a href="#Header">Header</a>
  13547. </li>
  13548. <li>
  13549. Record <i>Block</i>
  13550. <ul>
  13551. <li>Compressed key-lengths block-size</li>
  13552. <li>Compressed key-lengths block</li>
  13553. <li>Compressed keys block-size</li>
  13554. <li>Compressed keys block</li>
  13555. <li>Compressed value-lengths block-size</li>
  13556. <li>Compressed value-lengths block</li>
  13557. <li>Compressed values block-size</li>
  13558. <li>Compressed values block</li>
  13559. </ul>
  13560. </li>
  13561. <li>
  13562. A sync-marker every few <code>100</code> bytes or so.
  13563. </li>
  13564. </ul>
  13565. <p>The compressed blocks of key lengths and value lengths consist of the
  13566. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13567. format.</p>
  13568. @see CompressionCodec]]>
  13569. </doc>
  13570. </class>
  13571. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13572. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13573. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13574. abstract="false"
  13575. static="true" final="true" visibility="public"
  13576. deprecated="not deprecated">
  13577. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13578. abstract="false" native="false" synchronized="false"
  13579. static="true" final="false" visibility="public"
  13580. deprecated="not deprecated">
  13581. </method>
  13582. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13583. abstract="false" native="false" synchronized="false"
  13584. static="true" final="false" visibility="public"
  13585. deprecated="not deprecated">
  13586. <param name="name" type="java.lang.String"/>
  13587. </method>
  13588. <doc>
  13589. <![CDATA[The compression type used to compress key/value pairs in the
  13590. {@link SequenceFile}.
  13591. @see SequenceFile.Writer]]>
  13592. </doc>
  13593. </class>
  13594. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13595. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13596. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13597. abstract="false"
  13598. static="true" final="false" visibility="public"
  13599. deprecated="not deprecated">
  13600. <implements name="org.apache.hadoop.io.Writable"/>
  13601. <constructor name="SequenceFile.Metadata"
  13602. static="false" final="false" visibility="public"
  13603. deprecated="not deprecated">
  13604. </constructor>
  13605. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13606. static="false" final="false" visibility="public"
  13607. deprecated="not deprecated">
  13608. </constructor>
  13609. <method name="get" return="org.apache.hadoop.io.Text"
  13610. abstract="false" native="false" synchronized="false"
  13611. static="false" final="false" visibility="public"
  13612. deprecated="not deprecated">
  13613. <param name="name" type="org.apache.hadoop.io.Text"/>
  13614. </method>
  13615. <method name="set"
  13616. abstract="false" native="false" synchronized="false"
  13617. static="false" final="false" visibility="public"
  13618. deprecated="not deprecated">
  13619. <param name="name" type="org.apache.hadoop.io.Text"/>
  13620. <param name="value" type="org.apache.hadoop.io.Text"/>
  13621. </method>
  13622. <method name="getMetadata" return="java.util.TreeMap"
  13623. abstract="false" native="false" synchronized="false"
  13624. static="false" final="false" visibility="public"
  13625. deprecated="not deprecated">
  13626. </method>
  13627. <method name="write"
  13628. abstract="false" native="false" synchronized="false"
  13629. static="false" final="false" visibility="public"
  13630. deprecated="not deprecated">
  13631. <param name="out" type="java.io.DataOutput"/>
  13632. <exception name="IOException" type="java.io.IOException"/>
  13633. </method>
  13634. <method name="readFields"
  13635. abstract="false" native="false" synchronized="false"
  13636. static="false" final="false" visibility="public"
  13637. deprecated="not deprecated">
  13638. <param name="in" type="java.io.DataInput"/>
  13639. <exception name="IOException" type="java.io.IOException"/>
  13640. </method>
  13641. <method name="equals" return="boolean"
  13642. abstract="false" native="false" synchronized="false"
  13643. static="false" final="false" visibility="public"
  13644. deprecated="not deprecated">
  13645. <param name="other" type="java.lang.Object"/>
  13646. </method>
  13647. <method name="equals" return="boolean"
  13648. abstract="false" native="false" synchronized="false"
  13649. static="false" final="false" visibility="public"
  13650. deprecated="not deprecated">
  13651. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13652. </method>
  13653. <method name="hashCode" return="int"
  13654. abstract="false" native="false" synchronized="false"
  13655. static="false" final="false" visibility="public"
  13656. deprecated="not deprecated">
  13657. </method>
  13658. <method name="toString" return="java.lang.String"
  13659. abstract="false" native="false" synchronized="false"
  13660. static="false" final="false" visibility="public"
  13661. deprecated="not deprecated">
  13662. </method>
  13663. <doc>
  13664. <![CDATA[The class encapsulating with the metadata of a file.
  13665. The metadata of a file is a list of attribute name/value
  13666. pairs of Text type.]]>
  13667. </doc>
  13668. </class>
  13669. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13670. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13671. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13672. abstract="false"
  13673. static="true" final="false" visibility="public"
  13674. deprecated="not deprecated">
  13675. <implements name="java.io.Closeable"/>
  13676. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Reader.Option[]"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <exception name="IOException" type="java.io.IOException"/>
  13680. </constructor>
  13681. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13682. static="false" final="false" visibility="public"
  13683. deprecated="Use Reader(Configuration, Option...) instead.">
  13684. <exception name="IOException" type="java.io.IOException"/>
  13685. <doc>
  13686. <![CDATA[Construct a reader by opening a file from the given file system.
  13687. @param fs The file system used to open the file.
  13688. @param file The file being read.
  13689. @param conf Configuration
  13690. @throws IOException
  13691. @deprecated Use Reader(Configuration, Option...) instead.]]>
  13692. </doc>
  13693. </constructor>
  13694. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, int, long, long, org.apache.hadoop.conf.Configuration"
  13695. static="false" final="false" visibility="public"
  13696. deprecated="Use Reader(Configuration, Reader.Option...) instead.">
  13697. <exception name="IOException" type="java.io.IOException"/>
  13698. <doc>
  13699. <![CDATA[Construct a reader by the given input stream.
  13700. @param in An input stream.
  13701. @param buffersize unused
  13702. @param start The starting position.
  13703. @param length The length being read.
  13704. @param conf Configuration
  13705. @throws IOException
  13706. @deprecated Use Reader(Configuration, Reader.Option...) instead.]]>
  13707. </doc>
  13708. </constructor>
  13709. <method name="file" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  13710. abstract="false" native="false" synchronized="false"
  13711. static="true" final="false" visibility="public"
  13712. deprecated="not deprecated">
  13713. <param name="value" type="org.apache.hadoop.fs.Path"/>
  13714. <doc>
  13715. <![CDATA[Create an option to specify the path name of the sequence file.
  13716. @param value the path to read
  13717. @return a new option]]>
  13718. </doc>
  13719. </method>
  13720. <method name="stream" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  13721. abstract="false" native="false" synchronized="false"
  13722. static="true" final="false" visibility="public"
  13723. deprecated="not deprecated">
  13724. <param name="value" type="org.apache.hadoop.fs.FSDataInputStream"/>
  13725. <doc>
  13726. <![CDATA[Create an option to specify the stream with the sequence file.
  13727. @param value the stream to read.
  13728. @return a new option]]>
  13729. </doc>
  13730. </method>
  13731. <method name="start" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  13732. abstract="false" native="false" synchronized="false"
  13733. static="true" final="false" visibility="public"
  13734. deprecated="not deprecated">
  13735. <param name="value" type="long"/>
  13736. <doc>
  13737. <![CDATA[Create an option to specify the starting byte to read.
  13738. @param value the number of bytes to skip over
  13739. @return a new option]]>
  13740. </doc>
  13741. </method>
  13742. <method name="length" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  13743. abstract="false" native="false" synchronized="false"
  13744. static="true" final="false" visibility="public"
  13745. deprecated="not deprecated">
  13746. <param name="value" type="long"/>
  13747. <doc>
  13748. <![CDATA[Create an option to specify the number of bytes to read.
  13749. @param value the number of bytes to read
  13750. @return a new option]]>
  13751. </doc>
  13752. </method>
  13753. <method name="bufferSize" return="org.apache.hadoop.io.SequenceFile.Reader.Option"
  13754. abstract="false" native="false" synchronized="false"
  13755. static="true" final="false" visibility="public"
  13756. deprecated="not deprecated">
  13757. <param name="value" type="int"/>
  13758. <doc>
  13759. <![CDATA[Create an option with the buffer size for reading the given pathname.
  13760. @param value the number of bytes to buffer
  13761. @return a new option]]>
  13762. </doc>
  13763. </method>
  13764. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13765. abstract="false" native="false" synchronized="false"
  13766. static="false" final="false" visibility="protected"
  13767. deprecated="not deprecated">
  13768. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13769. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13770. <param name="bufferSize" type="int"/>
  13771. <param name="length" type="long"/>
  13772. <exception name="IOException" type="java.io.IOException"/>
  13773. <doc>
  13774. <![CDATA[Override this method to specialize the type of
  13775. {@link FSDataInputStream} returned.
  13776. @param fs The file system used to open the file.
  13777. @param file The file being read.
  13778. @param bufferSize The buffer size used to read the file.
  13779. @param length The length being read if it is >= 0. Otherwise,
  13780. the length is not available.
  13781. @return The opened stream.
  13782. @throws IOException]]>
  13783. </doc>
  13784. </method>
  13785. <method name="close"
  13786. abstract="false" native="false" synchronized="true"
  13787. static="false" final="false" visibility="public"
  13788. deprecated="not deprecated">
  13789. <exception name="IOException" type="java.io.IOException"/>
  13790. <doc>
  13791. <![CDATA[Close the file.]]>
  13792. </doc>
  13793. </method>
  13794. <method name="getKeyClassName" return="java.lang.String"
  13795. abstract="false" native="false" synchronized="false"
  13796. static="false" final="false" visibility="public"
  13797. deprecated="not deprecated">
  13798. <doc>
  13799. <![CDATA[Returns the name of the key class.]]>
  13800. </doc>
  13801. </method>
  13802. <method name="getKeyClass" return="java.lang.Class"
  13803. abstract="false" native="false" synchronized="true"
  13804. static="false" final="false" visibility="public"
  13805. deprecated="not deprecated">
  13806. <doc>
  13807. <![CDATA[Returns the class of keys in this file.]]>
  13808. </doc>
  13809. </method>
  13810. <method name="getValueClassName" return="java.lang.String"
  13811. abstract="false" native="false" synchronized="false"
  13812. static="false" final="false" visibility="public"
  13813. deprecated="not deprecated">
  13814. <doc>
  13815. <![CDATA[Returns the name of the value class.]]>
  13816. </doc>
  13817. </method>
  13818. <method name="getValueClass" return="java.lang.Class"
  13819. abstract="false" native="false" synchronized="true"
  13820. static="false" final="false" visibility="public"
  13821. deprecated="not deprecated">
  13822. <doc>
  13823. <![CDATA[Returns the class of values in this file.]]>
  13824. </doc>
  13825. </method>
  13826. <method name="isCompressed" return="boolean"
  13827. abstract="false" native="false" synchronized="false"
  13828. static="false" final="false" visibility="public"
  13829. deprecated="not deprecated">
  13830. <doc>
  13831. <![CDATA[Returns true if values are compressed.]]>
  13832. </doc>
  13833. </method>
  13834. <method name="isBlockCompressed" return="boolean"
  13835. abstract="false" native="false" synchronized="false"
  13836. static="false" final="false" visibility="public"
  13837. deprecated="not deprecated">
  13838. <doc>
  13839. <![CDATA[Returns true if records are block-compressed.]]>
  13840. </doc>
  13841. </method>
  13842. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13843. abstract="false" native="false" synchronized="false"
  13844. static="false" final="false" visibility="public"
  13845. deprecated="not deprecated">
  13846. <doc>
  13847. <![CDATA[Returns the compression codec of data in this file.]]>
  13848. </doc>
  13849. </method>
  13850. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13851. abstract="false" native="false" synchronized="false"
  13852. static="false" final="false" visibility="public"
  13853. deprecated="not deprecated">
  13854. <doc>
  13855. <![CDATA[Get the compression type for this file.
  13856. @return the compression type]]>
  13857. </doc>
  13858. </method>
  13859. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13860. abstract="false" native="false" synchronized="false"
  13861. static="false" final="false" visibility="public"
  13862. deprecated="not deprecated">
  13863. <doc>
  13864. <![CDATA[Returns the metadata object of the file]]>
  13865. </doc>
  13866. </method>
  13867. <method name="getCurrentValue"
  13868. abstract="false" native="false" synchronized="true"
  13869. static="false" final="false" visibility="public"
  13870. deprecated="not deprecated">
  13871. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13872. <exception name="IOException" type="java.io.IOException"/>
  13873. <doc>
  13874. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13875. @param val : The 'value' to be read.
  13876. @throws IOException]]>
  13877. </doc>
  13878. </method>
  13879. <method name="getCurrentValue" return="java.lang.Object"
  13880. abstract="false" native="false" synchronized="true"
  13881. static="false" final="false" visibility="public"
  13882. deprecated="not deprecated">
  13883. <param name="val" type="java.lang.Object"/>
  13884. <exception name="IOException" type="java.io.IOException"/>
  13885. <doc>
  13886. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13887. @param val : The 'value' to be read.
  13888. @throws IOException]]>
  13889. </doc>
  13890. </method>
  13891. <method name="next" return="boolean"
  13892. abstract="false" native="false" synchronized="true"
  13893. static="false" final="false" visibility="public"
  13894. deprecated="not deprecated">
  13895. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13896. <exception name="IOException" type="java.io.IOException"/>
  13897. <doc>
  13898. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13899. value. True if another entry exists, and false at end of file.]]>
  13900. </doc>
  13901. </method>
  13902. <method name="next" return="boolean"
  13903. abstract="false" native="false" synchronized="true"
  13904. static="false" final="false" visibility="public"
  13905. deprecated="not deprecated">
  13906. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13907. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13908. <exception name="IOException" type="java.io.IOException"/>
  13909. <doc>
  13910. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13911. <code>val</code>. Returns true if such a pair exists and false when at
  13912. end of file]]>
  13913. </doc>
  13914. </method>
  13915. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13916. abstract="false" native="false" synchronized="false"
  13917. static="false" final="false" visibility="public"
  13918. deprecated="not deprecated">
  13919. </method>
  13920. <method name="nextRaw" return="int"
  13921. abstract="false" native="false" synchronized="true"
  13922. static="false" final="false" visibility="public"
  13923. deprecated="not deprecated">
  13924. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13925. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13926. <exception name="IOException" type="java.io.IOException"/>
  13927. <doc>
  13928. <![CDATA[Read 'raw' records.
  13929. @param key - The buffer into which the key is read
  13930. @param val - The 'raw' value
  13931. @return Returns the total record length or -1 for end of file
  13932. @throws IOException]]>
  13933. </doc>
  13934. </method>
  13935. <method name="nextRawKey" return="int"
  13936. abstract="false" native="false" synchronized="true"
  13937. static="false" final="false" visibility="public"
  13938. deprecated="not deprecated">
  13939. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13940. <exception name="IOException" type="java.io.IOException"/>
  13941. <doc>
  13942. <![CDATA[Read 'raw' keys.
  13943. @param key - The buffer into which the key is read
  13944. @return Returns the key length or -1 for end of file
  13945. @throws IOException]]>
  13946. </doc>
  13947. </method>
  13948. <method name="next" return="java.lang.Object"
  13949. abstract="false" native="false" synchronized="true"
  13950. static="false" final="false" visibility="public"
  13951. deprecated="not deprecated">
  13952. <param name="key" type="java.lang.Object"/>
  13953. <exception name="IOException" type="java.io.IOException"/>
  13954. <doc>
  13955. <![CDATA[Read the next key in the file, skipping its
  13956. value. Return null at end of file.]]>
  13957. </doc>
  13958. </method>
  13959. <method name="nextRawValue" return="int"
  13960. abstract="false" native="false" synchronized="true"
  13961. static="false" final="false" visibility="public"
  13962. deprecated="not deprecated">
  13963. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13964. <exception name="IOException" type="java.io.IOException"/>
  13965. <doc>
  13966. <![CDATA[Read 'raw' values.
  13967. @param val - The 'raw' value
  13968. @return Returns the value length
  13969. @throws IOException]]>
  13970. </doc>
  13971. </method>
  13972. <method name="seek"
  13973. abstract="false" native="false" synchronized="true"
  13974. static="false" final="false" visibility="public"
  13975. deprecated="not deprecated">
  13976. <param name="position" type="long"/>
  13977. <exception name="IOException" type="java.io.IOException"/>
  13978. <doc>
  13979. <![CDATA[Set the current byte position in the input file.
  13980. <p>The position passed must be a position returned by {@link
  13981. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13982. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13983. </doc>
  13984. </method>
  13985. <method name="sync"
  13986. abstract="false" native="false" synchronized="true"
  13987. static="false" final="false" visibility="public"
  13988. deprecated="not deprecated">
  13989. <param name="position" type="long"/>
  13990. <exception name="IOException" type="java.io.IOException"/>
  13991. <doc>
  13992. <![CDATA[Seek to the next sync mark past a given position.]]>
  13993. </doc>
  13994. </method>
  13995. <method name="syncSeen" return="boolean"
  13996. abstract="false" native="false" synchronized="true"
  13997. static="false" final="false" visibility="public"
  13998. deprecated="not deprecated">
  13999. <doc>
  14000. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  14001. </doc>
  14002. </method>
  14003. <method name="getPosition" return="long"
  14004. abstract="false" native="false" synchronized="true"
  14005. static="false" final="false" visibility="public"
  14006. deprecated="not deprecated">
  14007. <exception name="IOException" type="java.io.IOException"/>
  14008. <doc>
  14009. <![CDATA[Return the current byte position in the input file.]]>
  14010. </doc>
  14011. </method>
  14012. <method name="toString" return="java.lang.String"
  14013. abstract="false" native="false" synchronized="false"
  14014. static="false" final="false" visibility="public"
  14015. deprecated="not deprecated">
  14016. <doc>
  14017. <![CDATA[Returns the name of the file.]]>
  14018. </doc>
  14019. </method>
  14020. <doc>
  14021. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  14022. </doc>
  14023. </class>
  14024. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  14025. <!-- start interface org.apache.hadoop.io.SequenceFile.Reader.Option -->
  14026. <interface name="SequenceFile.Reader.Option" abstract="true"
  14027. static="true" final="false" visibility="public"
  14028. deprecated="not deprecated">
  14029. <doc>
  14030. <![CDATA[A tag interface for all of the Reader options]]>
  14031. </doc>
  14032. </interface>
  14033. <!-- end interface org.apache.hadoop.io.SequenceFile.Reader.Option -->
  14034. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  14035. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  14036. abstract="false"
  14037. static="true" final="false" visibility="public"
  14038. deprecated="not deprecated">
  14039. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  14040. static="false" final="false" visibility="public"
  14041. deprecated="not deprecated">
  14042. <doc>
  14043. <![CDATA[Sort and merge files containing the named classes.]]>
  14044. </doc>
  14045. </constructor>
  14046. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  14047. static="false" final="false" visibility="public"
  14048. deprecated="not deprecated">
  14049. <doc>
  14050. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  14051. </doc>
  14052. </constructor>
  14053. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration, org.apache.hadoop.io.SequenceFile.Metadata"
  14054. static="false" final="false" visibility="public"
  14055. deprecated="not deprecated">
  14056. <doc>
  14057. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  14058. </doc>
  14059. </constructor>
  14060. <method name="setFactor"
  14061. abstract="false" native="false" synchronized="false"
  14062. static="false" final="false" visibility="public"
  14063. deprecated="not deprecated">
  14064. <param name="factor" type="int"/>
  14065. <doc>
  14066. <![CDATA[Set the number of streams to merge at once.]]>
  14067. </doc>
  14068. </method>
  14069. <method name="getFactor" return="int"
  14070. abstract="false" native="false" synchronized="false"
  14071. static="false" final="false" visibility="public"
  14072. deprecated="not deprecated">
  14073. <doc>
  14074. <![CDATA[Get the number of streams to merge at once.]]>
  14075. </doc>
  14076. </method>
  14077. <method name="setMemory"
  14078. abstract="false" native="false" synchronized="false"
  14079. static="false" final="false" visibility="public"
  14080. deprecated="not deprecated">
  14081. <param name="memory" type="int"/>
  14082. <doc>
  14083. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  14084. </doc>
  14085. </method>
  14086. <method name="getMemory" return="int"
  14087. abstract="false" native="false" synchronized="false"
  14088. static="false" final="false" visibility="public"
  14089. deprecated="not deprecated">
  14090. <doc>
  14091. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  14092. </doc>
  14093. </method>
  14094. <method name="setProgressable"
  14095. abstract="false" native="false" synchronized="false"
  14096. static="false" final="false" visibility="public"
  14097. deprecated="not deprecated">
  14098. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  14099. <doc>
  14100. <![CDATA[Set the progressable object in order to report progress.]]>
  14101. </doc>
  14102. </method>
  14103. <method name="sort"
  14104. abstract="false" native="false" synchronized="false"
  14105. static="false" final="false" visibility="public"
  14106. deprecated="not deprecated">
  14107. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  14108. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  14109. <param name="deleteInput" type="boolean"/>
  14110. <exception name="IOException" type="java.io.IOException"/>
  14111. <doc>
  14112. <![CDATA[Perform a file sort from a set of input files into an output file.
  14113. @param inFiles the files to be sorted
  14114. @param outFile the sorted output file
  14115. @param deleteInput should the input files be deleted as they are read?]]>
  14116. </doc>
  14117. </method>
  14118. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  14119. abstract="false" native="false" synchronized="false"
  14120. static="false" final="false" visibility="public"
  14121. deprecated="not deprecated">
  14122. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  14123. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  14124. <param name="deleteInput" type="boolean"/>
  14125. <exception name="IOException" type="java.io.IOException"/>
  14126. <doc>
  14127. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  14128. @param inFiles the files to be sorted
  14129. @param tempDir the directory where temp files are created during sort
  14130. @param deleteInput should the input files be deleted as they are read?
  14131. @return iterator the RawKeyValueIterator]]>
  14132. </doc>
  14133. </method>
  14134. <method name="sort"
  14135. abstract="false" native="false" synchronized="false"
  14136. static="false" final="false" visibility="public"
  14137. deprecated="not deprecated">
  14138. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  14139. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  14140. <exception name="IOException" type="java.io.IOException"/>
  14141. <doc>
  14142. <![CDATA[The backwards compatible interface to sort.
  14143. @param inFile the input file to sort
  14144. @param outFile the sorted output file]]>
  14145. </doc>
  14146. </method>
  14147. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  14148. abstract="false" native="false" synchronized="false"
  14149. static="false" final="false" visibility="public"
  14150. deprecated="not deprecated">
  14151. <param name="segments" type="java.util.List"/>
  14152. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  14153. <exception name="IOException" type="java.io.IOException"/>
  14154. <doc>
  14155. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  14156. @param segments the list of SegmentDescriptors
  14157. @param tmpDir the directory to write temporary files into
  14158. @return RawKeyValueIterator
  14159. @throws IOException]]>
  14160. </doc>
  14161. </method>
  14162. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  14163. abstract="false" native="false" synchronized="false"
  14164. static="false" final="false" visibility="public"
  14165. deprecated="not deprecated">
  14166. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  14167. <param name="deleteInputs" type="boolean"/>
  14168. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  14169. <exception name="IOException" type="java.io.IOException"/>
  14170. <doc>
  14171. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  14172. that is already set
  14173. @param inNames the array of path names
  14174. @param deleteInputs true if the input files should be deleted when
  14175. unnecessary
  14176. @param tmpDir the directory to write temporary files into
  14177. @return RawKeyValueIteratorMergeQueue
  14178. @throws IOException]]>
  14179. </doc>
  14180. </method>
  14181. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  14182. abstract="false" native="false" synchronized="false"
  14183. static="false" final="false" visibility="public"
  14184. deprecated="not deprecated">
  14185. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  14186. <param name="deleteInputs" type="boolean"/>
  14187. <param name="factor" type="int"/>
  14188. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  14189. <exception name="IOException" type="java.io.IOException"/>
  14190. <doc>
  14191. <![CDATA[Merges the contents of files passed in Path[]
  14192. @param inNames the array of path names
  14193. @param deleteInputs true if the input files should be deleted when
  14194. unnecessary
  14195. @param factor the factor that will be used as the maximum merge fan-in
  14196. @param tmpDir the directory to write temporary files into
  14197. @return RawKeyValueIteratorMergeQueue
  14198. @throws IOException]]>
  14199. </doc>
  14200. </method>
  14201. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  14202. abstract="false" native="false" synchronized="false"
  14203. static="false" final="false" visibility="public"
  14204. deprecated="not deprecated">
  14205. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  14206. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  14207. <param name="deleteInputs" type="boolean"/>
  14208. <exception name="IOException" type="java.io.IOException"/>
  14209. <doc>
  14210. <![CDATA[Merges the contents of files passed in Path[]
  14211. @param inNames the array of path names
  14212. @param tempDir the directory for creating temp files during merge
  14213. @param deleteInputs true if the input files should be deleted when
  14214. unnecessary
  14215. @return RawKeyValueIteratorMergeQueue
  14216. @throws IOException]]>
  14217. </doc>
  14218. </method>
  14219. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  14220. abstract="false" native="false" synchronized="false"
  14221. static="false" final="false" visibility="public"
  14222. deprecated="not deprecated">
  14223. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  14224. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  14225. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  14226. <exception name="IOException" type="java.io.IOException"/>
  14227. <doc>
  14228. <![CDATA[Clones the attributes (like compression of the input file and creates a
  14229. corresponding Writer
  14230. @param inputFile the path of the input file whose attributes should be
  14231. cloned
  14232. @param outputFile the path of the output file
  14233. @param prog the Progressable to report status during the file write
  14234. @return Writer
  14235. @throws IOException]]>
  14236. </doc>
  14237. </method>
  14238. <method name="writeFile"
  14239. abstract="false" native="false" synchronized="false"
  14240. static="false" final="false" visibility="public"
  14241. deprecated="not deprecated">
  14242. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  14243. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  14244. <exception name="IOException" type="java.io.IOException"/>
  14245. <doc>
  14246. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  14247. passed writer
  14248. @param records the RawKeyValueIterator
  14249. @param writer the Writer created earlier
  14250. @throws IOException]]>
  14251. </doc>
  14252. </method>
  14253. <method name="merge"
  14254. abstract="false" native="false" synchronized="false"
  14255. static="false" final="false" visibility="public"
  14256. deprecated="not deprecated">
  14257. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  14258. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  14259. <exception name="IOException" type="java.io.IOException"/>
  14260. <doc>
  14261. <![CDATA[Merge the provided files.
  14262. @param inFiles the array of input path names
  14263. @param outFile the final output file
  14264. @throws IOException]]>
  14265. </doc>
  14266. </method>
  14267. <doc>
  14268. <![CDATA[Sorts key/value pairs in a sequence-format file.
  14269. <p>For best performance, applications should make sure that the {@link
  14270. Writable#readFields(DataInput)} implementation of their keys is
  14271. very efficient. In particular, it should avoid allocating memory.]]>
  14272. </doc>
  14273. </class>
  14274. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  14275. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  14276. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  14277. static="true" final="false" visibility="public"
  14278. deprecated="not deprecated">
  14279. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14280. abstract="false" native="false" synchronized="false"
  14281. static="false" final="false" visibility="public"
  14282. deprecated="not deprecated">
  14283. <exception name="IOException" type="java.io.IOException"/>
  14284. <doc>
  14285. <![CDATA[Gets the current raw key
  14286. @return DataOutputBuffer
  14287. @throws IOException]]>
  14288. </doc>
  14289. </method>
  14290. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  14291. abstract="false" native="false" synchronized="false"
  14292. static="false" final="false" visibility="public"
  14293. deprecated="not deprecated">
  14294. <exception name="IOException" type="java.io.IOException"/>
  14295. <doc>
  14296. <![CDATA[Gets the current raw value
  14297. @return ValueBytes
  14298. @throws IOException]]>
  14299. </doc>
  14300. </method>
  14301. <method name="next" return="boolean"
  14302. abstract="false" native="false" synchronized="false"
  14303. static="false" final="false" visibility="public"
  14304. deprecated="not deprecated">
  14305. <exception name="IOException" type="java.io.IOException"/>
  14306. <doc>
  14307. <![CDATA[Sets up the current key and value (for getKey and getValue)
  14308. @return true if there exists a key/value, false otherwise
  14309. @throws IOException]]>
  14310. </doc>
  14311. </method>
  14312. <method name="close"
  14313. abstract="false" native="false" synchronized="false"
  14314. static="false" final="false" visibility="public"
  14315. deprecated="not deprecated">
  14316. <exception name="IOException" type="java.io.IOException"/>
  14317. <doc>
  14318. <![CDATA[closes the iterator so that the underlying streams can be closed
  14319. @throws IOException]]>
  14320. </doc>
  14321. </method>
  14322. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  14323. abstract="false" native="false" synchronized="false"
  14324. static="false" final="false" visibility="public"
  14325. deprecated="not deprecated">
  14326. <doc>
  14327. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  14328. indicating the bytes processed by the iterator so far]]>
  14329. </doc>
  14330. </method>
  14331. <doc>
  14332. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  14333. </doc>
  14334. </interface>
  14335. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  14336. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14337. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  14338. abstract="false"
  14339. static="false" final="false" visibility="public"
  14340. deprecated="not deprecated">
  14341. <implements name="java.lang.Comparable"/>
  14342. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  14343. static="false" final="false" visibility="public"
  14344. deprecated="not deprecated">
  14345. <doc>
  14346. <![CDATA[Constructs a segment
  14347. @param segmentOffset the offset of the segment in the file
  14348. @param segmentLength the length of the segment
  14349. @param segmentPathName the path name of the file containing the segment]]>
  14350. </doc>
  14351. </constructor>
  14352. <method name="doSync"
  14353. abstract="false" native="false" synchronized="false"
  14354. static="false" final="false" visibility="public"
  14355. deprecated="not deprecated">
  14356. <doc>
  14357. <![CDATA[Do the sync checks]]>
  14358. </doc>
  14359. </method>
  14360. <method name="preserveInput"
  14361. abstract="false" native="false" synchronized="false"
  14362. static="false" final="false" visibility="public"
  14363. deprecated="not deprecated">
  14364. <param name="preserve" type="boolean"/>
  14365. <doc>
  14366. <![CDATA[Whether to delete the files when no longer needed]]>
  14367. </doc>
  14368. </method>
  14369. <method name="shouldPreserveInput" return="boolean"
  14370. abstract="false" native="false" synchronized="false"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. </method>
  14374. <method name="compareTo" return="int"
  14375. abstract="false" native="false" synchronized="false"
  14376. static="false" final="false" visibility="public"
  14377. deprecated="not deprecated">
  14378. <param name="o" type="java.lang.Object"/>
  14379. </method>
  14380. <method name="equals" return="boolean"
  14381. abstract="false" native="false" synchronized="false"
  14382. static="false" final="false" visibility="public"
  14383. deprecated="not deprecated">
  14384. <param name="o" type="java.lang.Object"/>
  14385. </method>
  14386. <method name="hashCode" return="int"
  14387. abstract="false" native="false" synchronized="false"
  14388. static="false" final="false" visibility="public"
  14389. deprecated="not deprecated">
  14390. </method>
  14391. <method name="nextRawKey" return="boolean"
  14392. abstract="false" native="false" synchronized="false"
  14393. static="false" final="false" visibility="public"
  14394. deprecated="not deprecated">
  14395. <exception name="IOException" type="java.io.IOException"/>
  14396. <doc>
  14397. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  14398. @return true if there is a key returned; false, otherwise
  14399. @throws IOException]]>
  14400. </doc>
  14401. </method>
  14402. <method name="nextRawValue" return="int"
  14403. abstract="false" native="false" synchronized="false"
  14404. static="false" final="false" visibility="public"
  14405. deprecated="not deprecated">
  14406. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14407. <exception name="IOException" type="java.io.IOException"/>
  14408. <doc>
  14409. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  14410. read earlier
  14411. @param rawValue
  14412. @return the length of the value
  14413. @throws IOException]]>
  14414. </doc>
  14415. </method>
  14416. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14417. abstract="false" native="false" synchronized="false"
  14418. static="false" final="false" visibility="public"
  14419. deprecated="not deprecated">
  14420. <doc>
  14421. <![CDATA[Returns the stored rawKey]]>
  14422. </doc>
  14423. </method>
  14424. <method name="cleanup"
  14425. abstract="false" native="false" synchronized="false"
  14426. static="false" final="false" visibility="public"
  14427. deprecated="not deprecated">
  14428. <exception name="IOException" type="java.io.IOException"/>
  14429. <doc>
  14430. <![CDATA[The default cleanup. Subclasses can override this with a custom
  14431. cleanup]]>
  14432. </doc>
  14433. </method>
  14434. <doc>
  14435. <![CDATA[This class defines a merge segment. This class can be subclassed to
  14436. provide a customized cleanup method implementation. In this
  14437. implementation, cleanup closes the file handle and deletes the file]]>
  14438. </doc>
  14439. </class>
  14440. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14441. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14442. <interface name="SequenceFile.ValueBytes" abstract="true"
  14443. static="true" final="false" visibility="public"
  14444. deprecated="not deprecated">
  14445. <method name="writeUncompressedBytes"
  14446. abstract="false" native="false" synchronized="false"
  14447. static="false" final="false" visibility="public"
  14448. deprecated="not deprecated">
  14449. <param name="outStream" type="java.io.DataOutputStream"/>
  14450. <exception name="IOException" type="java.io.IOException"/>
  14451. <doc>
  14452. <![CDATA[Writes the uncompressed bytes to the outStream.
  14453. @param outStream : Stream to write uncompressed bytes into.
  14454. @throws IOException]]>
  14455. </doc>
  14456. </method>
  14457. <method name="writeCompressedBytes"
  14458. abstract="false" native="false" synchronized="false"
  14459. static="false" final="false" visibility="public"
  14460. deprecated="not deprecated">
  14461. <param name="outStream" type="java.io.DataOutputStream"/>
  14462. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14463. <exception name="IOException" type="java.io.IOException"/>
  14464. <doc>
  14465. <![CDATA[Write compressed bytes to outStream.
  14466. Note: that it will NOT compress the bytes if they are not compressed.
  14467. @param outStream : Stream to write compressed bytes into.]]>
  14468. </doc>
  14469. </method>
  14470. <method name="getSize" return="int"
  14471. abstract="false" native="false" synchronized="false"
  14472. static="false" final="false" visibility="public"
  14473. deprecated="not deprecated">
  14474. <doc>
  14475. <![CDATA[Size of stored data.]]>
  14476. </doc>
  14477. </method>
  14478. <doc>
  14479. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  14480. </doc>
  14481. </interface>
  14482. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14483. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  14484. <class name="SequenceFile.Writer" extends="java.lang.Object"
  14485. abstract="false"
  14486. static="true" final="false" visibility="public"
  14487. deprecated="not deprecated">
  14488. <implements name="java.io.Closeable"/>
  14489. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class"
  14490. static="false" final="false" visibility="public"
  14491. deprecated="Use
  14492. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  14493. instead.">
  14494. <exception name="IOException" type="java.io.IOException"/>
  14495. <doc>
  14496. <![CDATA[Create the named file.
  14497. @deprecated Use
  14498. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  14499. instead.]]>
  14500. </doc>
  14501. </constructor>
  14502. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  14503. static="false" final="false" visibility="public"
  14504. deprecated="Use
  14505. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  14506. instead.">
  14507. <exception name="IOException" type="java.io.IOException"/>
  14508. <doc>
  14509. <![CDATA[Create the named file with write-progress reporter.
  14510. @deprecated Use
  14511. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  14512. instead.]]>
  14513. </doc>
  14514. </constructor>
  14515. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  14516. static="false" final="false" visibility="public"
  14517. deprecated="Use
  14518. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  14519. instead.">
  14520. <exception name="IOException" type="java.io.IOException"/>
  14521. <doc>
  14522. <![CDATA[Create the named file with write-progress reporter.
  14523. @deprecated Use
  14524. {@link SequenceFile#createWriter(Configuration, Writer.Option...)}
  14525. instead.]]>
  14526. </doc>
  14527. </constructor>
  14528. <method name="file" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14529. abstract="false" native="false" synchronized="false"
  14530. static="true" final="false" visibility="public"
  14531. deprecated="not deprecated">
  14532. <param name="value" type="org.apache.hadoop.fs.Path"/>
  14533. </method>
  14534. <method name="bufferSize" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14535. abstract="false" native="false" synchronized="false"
  14536. static="true" final="false" visibility="public"
  14537. deprecated="not deprecated">
  14538. <param name="value" type="int"/>
  14539. </method>
  14540. <method name="stream" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14541. abstract="false" native="false" synchronized="false"
  14542. static="true" final="false" visibility="public"
  14543. deprecated="not deprecated">
  14544. <param name="value" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  14545. </method>
  14546. <method name="replication" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14547. abstract="false" native="false" synchronized="false"
  14548. static="true" final="false" visibility="public"
  14549. deprecated="not deprecated">
  14550. <param name="value" type="short"/>
  14551. </method>
  14552. <method name="blockSize" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14553. abstract="false" native="false" synchronized="false"
  14554. static="true" final="false" visibility="public"
  14555. deprecated="not deprecated">
  14556. <param name="value" type="long"/>
  14557. </method>
  14558. <method name="progressable" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14559. abstract="false" native="false" synchronized="false"
  14560. static="true" final="false" visibility="public"
  14561. deprecated="not deprecated">
  14562. <param name="value" type="org.apache.hadoop.util.Progressable"/>
  14563. </method>
  14564. <method name="keyClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14565. abstract="false" native="false" synchronized="false"
  14566. static="true" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <param name="value" type="java.lang.Class"/>
  14569. </method>
  14570. <method name="valueClass" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14571. abstract="false" native="false" synchronized="false"
  14572. static="true" final="false" visibility="public"
  14573. deprecated="not deprecated">
  14574. <param name="value" type="java.lang.Class"/>
  14575. </method>
  14576. <method name="metadata" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14577. abstract="false" native="false" synchronized="false"
  14578. static="true" final="false" visibility="public"
  14579. deprecated="not deprecated">
  14580. <param name="value" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  14581. </method>
  14582. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14583. abstract="false" native="false" synchronized="false"
  14584. static="true" final="false" visibility="public"
  14585. deprecated="not deprecated">
  14586. <param name="value" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14587. </method>
  14588. <method name="compression" return="org.apache.hadoop.io.SequenceFile.Writer.Option"
  14589. abstract="false" native="false" synchronized="false"
  14590. static="true" final="false" visibility="public"
  14591. deprecated="not deprecated">
  14592. <param name="value" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14593. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14594. </method>
  14595. <method name="getKeyClass" return="java.lang.Class"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="false" final="false" visibility="public"
  14598. deprecated="not deprecated">
  14599. <doc>
  14600. <![CDATA[Returns the class of keys in this file.]]>
  14601. </doc>
  14602. </method>
  14603. <method name="getValueClass" return="java.lang.Class"
  14604. abstract="false" native="false" synchronized="false"
  14605. static="false" final="false" visibility="public"
  14606. deprecated="not deprecated">
  14607. <doc>
  14608. <![CDATA[Returns the class of values in this file.]]>
  14609. </doc>
  14610. </method>
  14611. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14612. abstract="false" native="false" synchronized="false"
  14613. static="false" final="false" visibility="public"
  14614. deprecated="not deprecated">
  14615. <doc>
  14616. <![CDATA[Returns the compression codec of data in this file.]]>
  14617. </doc>
  14618. </method>
  14619. <method name="sync"
  14620. abstract="false" native="false" synchronized="false"
  14621. static="false" final="false" visibility="public"
  14622. deprecated="not deprecated">
  14623. <exception name="IOException" type="java.io.IOException"/>
  14624. <doc>
  14625. <![CDATA[create a sync point]]>
  14626. </doc>
  14627. </method>
  14628. <method name="close"
  14629. abstract="false" native="false" synchronized="true"
  14630. static="false" final="false" visibility="public"
  14631. deprecated="not deprecated">
  14632. <exception name="IOException" type="java.io.IOException"/>
  14633. <doc>
  14634. <![CDATA[Close the file.]]>
  14635. </doc>
  14636. </method>
  14637. <method name="append"
  14638. abstract="false" native="false" synchronized="false"
  14639. static="false" final="false" visibility="public"
  14640. deprecated="not deprecated">
  14641. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14642. <param name="val" type="org.apache.hadoop.io.Writable"/>
  14643. <exception name="IOException" type="java.io.IOException"/>
  14644. <doc>
  14645. <![CDATA[Append a key/value pair.]]>
  14646. </doc>
  14647. </method>
  14648. <method name="append"
  14649. abstract="false" native="false" synchronized="true"
  14650. static="false" final="false" visibility="public"
  14651. deprecated="not deprecated">
  14652. <param name="key" type="java.lang.Object"/>
  14653. <param name="val" type="java.lang.Object"/>
  14654. <exception name="IOException" type="java.io.IOException"/>
  14655. <doc>
  14656. <![CDATA[Append a key/value pair.]]>
  14657. </doc>
  14658. </method>
  14659. <method name="appendRaw"
  14660. abstract="false" native="false" synchronized="true"
  14661. static="false" final="false" visibility="public"
  14662. deprecated="not deprecated">
  14663. <param name="keyData" type="byte[]"/>
  14664. <param name="keyOffset" type="int"/>
  14665. <param name="keyLength" type="int"/>
  14666. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14667. <exception name="IOException" type="java.io.IOException"/>
  14668. </method>
  14669. <method name="getLength" return="long"
  14670. abstract="false" native="false" synchronized="true"
  14671. static="false" final="false" visibility="public"
  14672. deprecated="not deprecated">
  14673. <exception name="IOException" type="java.io.IOException"/>
  14674. <doc>
  14675. <![CDATA[Returns the current length of the output file.
  14676. <p>This always returns a synchronized position. In other words,
  14677. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  14678. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  14679. the key may be earlier in the file than key last written when this
  14680. method was called (e.g., with block-compression, it may be the first key
  14681. in the block that was being written when this method was called).]]>
  14682. </doc>
  14683. </method>
  14684. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14685. transient="false" volatile="false"
  14686. static="false" final="false" visibility="protected"
  14687. deprecated="not deprecated">
  14688. </field>
  14689. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14690. transient="false" volatile="false"
  14691. static="false" final="false" visibility="protected"
  14692. deprecated="not deprecated">
  14693. </field>
  14694. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14695. transient="false" volatile="false"
  14696. static="false" final="false" visibility="protected"
  14697. deprecated="not deprecated">
  14698. </field>
  14699. <doc>
  14700. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14701. </doc>
  14702. </class>
  14703. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14704. <!-- start interface org.apache.hadoop.io.SequenceFile.Writer.Option -->
  14705. <interface name="SequenceFile.Writer.Option" abstract="true"
  14706. static="true" final="false" visibility="public"
  14707. deprecated="not deprecated">
  14708. </interface>
  14709. <!-- end interface org.apache.hadoop.io.SequenceFile.Writer.Option -->
  14710. <!-- start class org.apache.hadoop.io.SetFile -->
  14711. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14712. abstract="false"
  14713. static="false" final="false" visibility="public"
  14714. deprecated="not deprecated">
  14715. <constructor name="SetFile"
  14716. static="false" final="false" visibility="protected"
  14717. deprecated="not deprecated">
  14718. </constructor>
  14719. <doc>
  14720. <![CDATA[A file-based set of keys.]]>
  14721. </doc>
  14722. </class>
  14723. <!-- end class org.apache.hadoop.io.SetFile -->
  14724. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14725. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14726. abstract="false"
  14727. static="true" final="false" visibility="public"
  14728. deprecated="not deprecated">
  14729. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14730. static="false" final="false" visibility="public"
  14731. deprecated="not deprecated">
  14732. <exception name="IOException" type="java.io.IOException"/>
  14733. <doc>
  14734. <![CDATA[Construct a set reader for the named set.]]>
  14735. </doc>
  14736. </constructor>
  14737. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14738. static="false" final="false" visibility="public"
  14739. deprecated="not deprecated">
  14740. <exception name="IOException" type="java.io.IOException"/>
  14741. <doc>
  14742. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14743. </doc>
  14744. </constructor>
  14745. <method name="seek" return="boolean"
  14746. abstract="false" native="false" synchronized="false"
  14747. static="false" final="false" visibility="public"
  14748. deprecated="not deprecated">
  14749. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14750. <exception name="IOException" type="java.io.IOException"/>
  14751. </method>
  14752. <method name="next" return="boolean"
  14753. abstract="false" native="false" synchronized="false"
  14754. static="false" final="false" visibility="public"
  14755. deprecated="not deprecated">
  14756. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14757. <exception name="IOException" type="java.io.IOException"/>
  14758. <doc>
  14759. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14760. true if such a key exists and false when at the end of the set.]]>
  14761. </doc>
  14762. </method>
  14763. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14764. abstract="false" native="false" synchronized="false"
  14765. static="false" final="false" visibility="public"
  14766. deprecated="not deprecated">
  14767. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14768. <exception name="IOException" type="java.io.IOException"/>
  14769. <doc>
  14770. <![CDATA[Read the matching key from a set into <code>key</code>.
  14771. Returns <code>key</code>, or null if no match exists.]]>
  14772. </doc>
  14773. </method>
  14774. <doc>
  14775. <![CDATA[Provide access to an existing set file.]]>
  14776. </doc>
  14777. </class>
  14778. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14779. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14780. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14781. abstract="false"
  14782. static="true" final="false" visibility="public"
  14783. deprecated="not deprecated">
  14784. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14785. static="false" final="false" visibility="public"
  14786. deprecated="pass a Configuration too">
  14787. <exception name="IOException" type="java.io.IOException"/>
  14788. <doc>
  14789. <![CDATA[Create the named set for keys of the named class.
  14790. @deprecated pass a Configuration too]]>
  14791. </doc>
  14792. </constructor>
  14793. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  14794. static="false" final="false" visibility="public"
  14795. deprecated="not deprecated">
  14796. <exception name="IOException" type="java.io.IOException"/>
  14797. <doc>
  14798. <![CDATA[Create a set naming the element class and compression type.]]>
  14799. </doc>
  14800. </constructor>
  14801. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.io.SequenceFile.CompressionType"
  14802. static="false" final="false" visibility="public"
  14803. deprecated="not deprecated">
  14804. <exception name="IOException" type="java.io.IOException"/>
  14805. <doc>
  14806. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14807. </doc>
  14808. </constructor>
  14809. <method name="append"
  14810. abstract="false" native="false" synchronized="false"
  14811. static="false" final="false" visibility="public"
  14812. deprecated="not deprecated">
  14813. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14814. <exception name="IOException" type="java.io.IOException"/>
  14815. <doc>
  14816. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14817. previous key added to the set.]]>
  14818. </doc>
  14819. </method>
  14820. <doc>
  14821. <![CDATA[Write a new set file.]]>
  14822. </doc>
  14823. </class>
  14824. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14825. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14826. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14827. abstract="false"
  14828. static="false" final="false" visibility="public"
  14829. deprecated="not deprecated">
  14830. <implements name="java.util.SortedMap"/>
  14831. <constructor name="SortedMapWritable"
  14832. static="false" final="false" visibility="public"
  14833. deprecated="not deprecated">
  14834. <doc>
  14835. <![CDATA[default constructor.]]>
  14836. </doc>
  14837. </constructor>
  14838. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14839. static="false" final="false" visibility="public"
  14840. deprecated="not deprecated">
  14841. <doc>
  14842. <![CDATA[Copy constructor.
  14843. @param other the map to copy from]]>
  14844. </doc>
  14845. </constructor>
  14846. <method name="comparator" return="java.util.Comparator"
  14847. abstract="false" native="false" synchronized="false"
  14848. static="false" final="false" visibility="public"
  14849. deprecated="not deprecated">
  14850. <doc>
  14851. <![CDATA[{@inheritDoc}]]>
  14852. </doc>
  14853. </method>
  14854. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <doc>
  14859. <![CDATA[{@inheritDoc}]]>
  14860. </doc>
  14861. </method>
  14862. <method name="headMap" return="java.util.SortedMap"
  14863. abstract="false" native="false" synchronized="false"
  14864. static="false" final="false" visibility="public"
  14865. deprecated="not deprecated">
  14866. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14867. <doc>
  14868. <![CDATA[{@inheritDoc}]]>
  14869. </doc>
  14870. </method>
  14871. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14872. abstract="false" native="false" synchronized="false"
  14873. static="false" final="false" visibility="public"
  14874. deprecated="not deprecated">
  14875. <doc>
  14876. <![CDATA[{@inheritDoc}]]>
  14877. </doc>
  14878. </method>
  14879. <method name="subMap" return="java.util.SortedMap"
  14880. abstract="false" native="false" synchronized="false"
  14881. static="false" final="false" visibility="public"
  14882. deprecated="not deprecated">
  14883. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14884. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14885. <doc>
  14886. <![CDATA[{@inheritDoc}]]>
  14887. </doc>
  14888. </method>
  14889. <method name="tailMap" return="java.util.SortedMap"
  14890. abstract="false" native="false" synchronized="false"
  14891. static="false" final="false" visibility="public"
  14892. deprecated="not deprecated">
  14893. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14894. <doc>
  14895. <![CDATA[{@inheritDoc}]]>
  14896. </doc>
  14897. </method>
  14898. <method name="clear"
  14899. abstract="false" native="false" synchronized="false"
  14900. static="false" final="false" visibility="public"
  14901. deprecated="not deprecated">
  14902. <doc>
  14903. <![CDATA[{@inheritDoc}]]>
  14904. </doc>
  14905. </method>
  14906. <method name="containsKey" return="boolean"
  14907. abstract="false" native="false" synchronized="false"
  14908. static="false" final="false" visibility="public"
  14909. deprecated="not deprecated">
  14910. <param name="key" type="java.lang.Object"/>
  14911. <doc>
  14912. <![CDATA[{@inheritDoc}]]>
  14913. </doc>
  14914. </method>
  14915. <method name="containsValue" return="boolean"
  14916. abstract="false" native="false" synchronized="false"
  14917. static="false" final="false" visibility="public"
  14918. deprecated="not deprecated">
  14919. <param name="value" type="java.lang.Object"/>
  14920. <doc>
  14921. <![CDATA[{@inheritDoc}]]>
  14922. </doc>
  14923. </method>
  14924. <method name="entrySet" return="java.util.Set"
  14925. abstract="false" native="false" synchronized="false"
  14926. static="false" final="false" visibility="public"
  14927. deprecated="not deprecated">
  14928. <doc>
  14929. <![CDATA[{@inheritDoc}]]>
  14930. </doc>
  14931. </method>
  14932. <method name="get" return="org.apache.hadoop.io.Writable"
  14933. abstract="false" native="false" synchronized="false"
  14934. static="false" final="false" visibility="public"
  14935. deprecated="not deprecated">
  14936. <param name="key" type="java.lang.Object"/>
  14937. <doc>
  14938. <![CDATA[{@inheritDoc}]]>
  14939. </doc>
  14940. </method>
  14941. <method name="isEmpty" return="boolean"
  14942. abstract="false" native="false" synchronized="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <doc>
  14946. <![CDATA[{@inheritDoc}]]>
  14947. </doc>
  14948. </method>
  14949. <method name="keySet" return="java.util.Set"
  14950. abstract="false" native="false" synchronized="false"
  14951. static="false" final="false" visibility="public"
  14952. deprecated="not deprecated">
  14953. <doc>
  14954. <![CDATA[{@inheritDoc}]]>
  14955. </doc>
  14956. </method>
  14957. <method name="put" return="org.apache.hadoop.io.Writable"
  14958. abstract="false" native="false" synchronized="false"
  14959. static="false" final="false" visibility="public"
  14960. deprecated="not deprecated">
  14961. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14962. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14963. <doc>
  14964. <![CDATA[{@inheritDoc}]]>
  14965. </doc>
  14966. </method>
  14967. <method name="putAll"
  14968. abstract="false" native="false" synchronized="false"
  14969. static="false" final="false" visibility="public"
  14970. deprecated="not deprecated">
  14971. <param name="t" type="java.util.Map"/>
  14972. <doc>
  14973. <![CDATA[{@inheritDoc}]]>
  14974. </doc>
  14975. </method>
  14976. <method name="remove" return="org.apache.hadoop.io.Writable"
  14977. abstract="false" native="false" synchronized="false"
  14978. static="false" final="false" visibility="public"
  14979. deprecated="not deprecated">
  14980. <param name="key" type="java.lang.Object"/>
  14981. <doc>
  14982. <![CDATA[{@inheritDoc}]]>
  14983. </doc>
  14984. </method>
  14985. <method name="size" return="int"
  14986. abstract="false" native="false" synchronized="false"
  14987. static="false" final="false" visibility="public"
  14988. deprecated="not deprecated">
  14989. <doc>
  14990. <![CDATA[{@inheritDoc}]]>
  14991. </doc>
  14992. </method>
  14993. <method name="values" return="java.util.Collection"
  14994. abstract="false" native="false" synchronized="false"
  14995. static="false" final="false" visibility="public"
  14996. deprecated="not deprecated">
  14997. <doc>
  14998. <![CDATA[{@inheritDoc}]]>
  14999. </doc>
  15000. </method>
  15001. <method name="readFields"
  15002. abstract="false" native="false" synchronized="false"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. <param name="in" type="java.io.DataInput"/>
  15006. <exception name="IOException" type="java.io.IOException"/>
  15007. <doc>
  15008. <![CDATA[{@inheritDoc}]]>
  15009. </doc>
  15010. </method>
  15011. <method name="write"
  15012. abstract="false" native="false" synchronized="false"
  15013. static="false" final="false" visibility="public"
  15014. deprecated="not deprecated">
  15015. <param name="out" type="java.io.DataOutput"/>
  15016. <exception name="IOException" type="java.io.IOException"/>
  15017. <doc>
  15018. <![CDATA[{@inheritDoc}]]>
  15019. </doc>
  15020. </method>
  15021. <doc>
  15022. <![CDATA[A Writable SortedMap.]]>
  15023. </doc>
  15024. </class>
  15025. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  15026. <!-- start interface org.apache.hadoop.io.Stringifier -->
  15027. <interface name="Stringifier" abstract="true"
  15028. static="false" final="false" visibility="public"
  15029. deprecated="not deprecated">
  15030. <implements name="java.io.Closeable"/>
  15031. <method name="toString" return="java.lang.String"
  15032. abstract="false" native="false" synchronized="false"
  15033. static="false" final="false" visibility="public"
  15034. deprecated="not deprecated">
  15035. <param name="obj" type="T"/>
  15036. <exception name="IOException" type="java.io.IOException"/>
  15037. <doc>
  15038. <![CDATA[Converts the object to a string representation
  15039. @param obj the object to convert
  15040. @return the string representation of the object
  15041. @throws IOException if the object cannot be converted]]>
  15042. </doc>
  15043. </method>
  15044. <method name="fromString" return="T"
  15045. abstract="false" native="false" synchronized="false"
  15046. static="false" final="false" visibility="public"
  15047. deprecated="not deprecated">
  15048. <param name="str" type="java.lang.String"/>
  15049. <exception name="IOException" type="java.io.IOException"/>
  15050. <doc>
  15051. <![CDATA[Restores the object from its string representation.
  15052. @param str the string representation of the object
  15053. @return restored object
  15054. @throws IOException if the object cannot be restored]]>
  15055. </doc>
  15056. </method>
  15057. <method name="close"
  15058. abstract="false" native="false" synchronized="false"
  15059. static="false" final="false" visibility="public"
  15060. deprecated="not deprecated">
  15061. <exception name="IOException" type="java.io.IOException"/>
  15062. <doc>
  15063. <![CDATA[Closes this object.
  15064. @throws IOException if an I/O error occurs]]>
  15065. </doc>
  15066. </method>
  15067. <doc>
  15068. <![CDATA[Stringifier interface offers two methods to convert an object
  15069. to a string representation and restore the object given its
  15070. string representation.
  15071. @param <T> the class of the objects to stringify]]>
  15072. </doc>
  15073. </interface>
  15074. <!-- end interface org.apache.hadoop.io.Stringifier -->
  15075. <!-- start class org.apache.hadoop.io.Text -->
  15076. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  15077. abstract="false"
  15078. static="false" final="false" visibility="public"
  15079. deprecated="not deprecated">
  15080. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15081. <constructor name="Text"
  15082. static="false" final="false" visibility="public"
  15083. deprecated="not deprecated">
  15084. </constructor>
  15085. <constructor name="Text" type="java.lang.String"
  15086. static="false" final="false" visibility="public"
  15087. deprecated="not deprecated">
  15088. <doc>
  15089. <![CDATA[Construct from a string.]]>
  15090. </doc>
  15091. </constructor>
  15092. <constructor name="Text" type="org.apache.hadoop.io.Text"
  15093. static="false" final="false" visibility="public"
  15094. deprecated="not deprecated">
  15095. <doc>
  15096. <![CDATA[Construct from another text.]]>
  15097. </doc>
  15098. </constructor>
  15099. <constructor name="Text" type="byte[]"
  15100. static="false" final="false" visibility="public"
  15101. deprecated="not deprecated">
  15102. <doc>
  15103. <![CDATA[Construct from a byte array.]]>
  15104. </doc>
  15105. </constructor>
  15106. <method name="copyBytes" return="byte[]"
  15107. abstract="false" native="false" synchronized="false"
  15108. static="false" final="false" visibility="public"
  15109. deprecated="not deprecated">
  15110. <doc>
  15111. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  15112. See {@link #getBytes()} for faster access to the underlying array.]]>
  15113. </doc>
  15114. </method>
  15115. <method name="getBytes" return="byte[]"
  15116. abstract="false" native="false" synchronized="false"
  15117. static="false" final="false" visibility="public"
  15118. deprecated="not deprecated">
  15119. <doc>
  15120. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  15121. valid. Please use {@link #copyBytes()} if you
  15122. need the returned array to be precisely the length of the data.]]>
  15123. </doc>
  15124. </method>
  15125. <method name="getLength" return="int"
  15126. abstract="false" native="false" synchronized="false"
  15127. static="false" final="false" visibility="public"
  15128. deprecated="not deprecated">
  15129. <doc>
  15130. <![CDATA[Returns the number of bytes in the byte array]]>
  15131. </doc>
  15132. </method>
  15133. <method name="charAt" return="int"
  15134. abstract="false" native="false" synchronized="false"
  15135. static="false" final="false" visibility="public"
  15136. deprecated="not deprecated">
  15137. <param name="position" type="int"/>
  15138. <doc>
  15139. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  15140. for the character at <code>position</code>. Note that this
  15141. method avoids using the converter or doing String instatiation
  15142. @return the Unicode scalar value at position or -1
  15143. if the position is invalid or points to a
  15144. trailing byte]]>
  15145. </doc>
  15146. </method>
  15147. <method name="find" return="int"
  15148. abstract="false" native="false" synchronized="false"
  15149. static="false" final="false" visibility="public"
  15150. deprecated="not deprecated">
  15151. <param name="what" type="java.lang.String"/>
  15152. </method>
  15153. <method name="find" return="int"
  15154. abstract="false" native="false" synchronized="false"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. <param name="what" type="java.lang.String"/>
  15158. <param name="start" type="int"/>
  15159. <doc>
  15160. <![CDATA[Finds any occurence of <code>what</code> in the backing
  15161. buffer, starting as position <code>start</code>. The starting
  15162. position is measured in bytes and the return value is in
  15163. terms of byte position in the buffer. The backing buffer is
  15164. not converted to a string for this operation.
  15165. @return byte position of the first occurence of the search
  15166. string in the UTF-8 buffer or -1 if not found]]>
  15167. </doc>
  15168. </method>
  15169. <method name="set"
  15170. abstract="false" native="false" synchronized="false"
  15171. static="false" final="false" visibility="public"
  15172. deprecated="not deprecated">
  15173. <param name="string" type="java.lang.String"/>
  15174. <doc>
  15175. <![CDATA[Set to contain the contents of a string.]]>
  15176. </doc>
  15177. </method>
  15178. <method name="set"
  15179. abstract="false" native="false" synchronized="false"
  15180. static="false" final="false" visibility="public"
  15181. deprecated="not deprecated">
  15182. <param name="utf8" type="byte[]"/>
  15183. <doc>
  15184. <![CDATA[Set to a utf8 byte array]]>
  15185. </doc>
  15186. </method>
  15187. <method name="set"
  15188. abstract="false" native="false" synchronized="false"
  15189. static="false" final="false" visibility="public"
  15190. deprecated="not deprecated">
  15191. <param name="other" type="org.apache.hadoop.io.Text"/>
  15192. <doc>
  15193. <![CDATA[copy a text.]]>
  15194. </doc>
  15195. </method>
  15196. <method name="set"
  15197. abstract="false" native="false" synchronized="false"
  15198. static="false" final="false" visibility="public"
  15199. deprecated="not deprecated">
  15200. <param name="utf8" type="byte[]"/>
  15201. <param name="start" type="int"/>
  15202. <param name="len" type="int"/>
  15203. <doc>
  15204. <![CDATA[Set the Text to range of bytes
  15205. @param utf8 the data to copy from
  15206. @param start the first position of the new string
  15207. @param len the number of bytes of the new string]]>
  15208. </doc>
  15209. </method>
  15210. <method name="append"
  15211. abstract="false" native="false" synchronized="false"
  15212. static="false" final="false" visibility="public"
  15213. deprecated="not deprecated">
  15214. <param name="utf8" type="byte[]"/>
  15215. <param name="start" type="int"/>
  15216. <param name="len" type="int"/>
  15217. <doc>
  15218. <![CDATA[Append a range of bytes to the end of the given text
  15219. @param utf8 the data to copy from
  15220. @param start the first position to append from utf8
  15221. @param len the number of bytes to append]]>
  15222. </doc>
  15223. </method>
  15224. <method name="clear"
  15225. abstract="false" native="false" synchronized="false"
  15226. static="false" final="false" visibility="public"
  15227. deprecated="not deprecated">
  15228. <doc>
  15229. <![CDATA[Clear the string to empty.]]>
  15230. </doc>
  15231. </method>
  15232. <method name="toString" return="java.lang.String"
  15233. abstract="false" native="false" synchronized="false"
  15234. static="false" final="false" visibility="public"
  15235. deprecated="not deprecated">
  15236. <doc>
  15237. <![CDATA[Convert text back to string
  15238. @see java.lang.Object#toString()]]>
  15239. </doc>
  15240. </method>
  15241. <method name="readFields"
  15242. abstract="false" native="false" synchronized="false"
  15243. static="false" final="false" visibility="public"
  15244. deprecated="not deprecated">
  15245. <param name="in" type="java.io.DataInput"/>
  15246. <exception name="IOException" type="java.io.IOException"/>
  15247. <doc>
  15248. <![CDATA[deserialize]]>
  15249. </doc>
  15250. </method>
  15251. <method name="skip"
  15252. abstract="false" native="false" synchronized="false"
  15253. static="true" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <param name="in" type="java.io.DataInput"/>
  15256. <exception name="IOException" type="java.io.IOException"/>
  15257. <doc>
  15258. <![CDATA[Skips over one Text in the input.]]>
  15259. </doc>
  15260. </method>
  15261. <method name="write"
  15262. abstract="false" native="false" synchronized="false"
  15263. static="false" final="false" visibility="public"
  15264. deprecated="not deprecated">
  15265. <param name="out" type="java.io.DataOutput"/>
  15266. <exception name="IOException" type="java.io.IOException"/>
  15267. <doc>
  15268. <![CDATA[serialize
  15269. write this object to out
  15270. length uses zero-compressed encoding
  15271. @see Writable#write(DataOutput)]]>
  15272. </doc>
  15273. </method>
  15274. <method name="equals" return="boolean"
  15275. abstract="false" native="false" synchronized="false"
  15276. static="false" final="false" visibility="public"
  15277. deprecated="not deprecated">
  15278. <param name="o" type="java.lang.Object"/>
  15279. <doc>
  15280. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  15281. </doc>
  15282. </method>
  15283. <method name="hashCode" return="int"
  15284. abstract="false" native="false" synchronized="false"
  15285. static="false" final="false" visibility="public"
  15286. deprecated="not deprecated">
  15287. </method>
  15288. <method name="decode" return="java.lang.String"
  15289. abstract="false" native="false" synchronized="false"
  15290. static="true" final="false" visibility="public"
  15291. deprecated="not deprecated">
  15292. <param name="utf8" type="byte[]"/>
  15293. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15294. <doc>
  15295. <![CDATA[Converts the provided byte array to a String using the
  15296. UTF-8 encoding. If the input is malformed,
  15297. replace by a default value.]]>
  15298. </doc>
  15299. </method>
  15300. <method name="decode" return="java.lang.String"
  15301. abstract="false" native="false" synchronized="false"
  15302. static="true" final="false" visibility="public"
  15303. deprecated="not deprecated">
  15304. <param name="utf8" type="byte[]"/>
  15305. <param name="start" type="int"/>
  15306. <param name="length" type="int"/>
  15307. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15308. </method>
  15309. <method name="decode" return="java.lang.String"
  15310. abstract="false" native="false" synchronized="false"
  15311. static="true" final="false" visibility="public"
  15312. deprecated="not deprecated">
  15313. <param name="utf8" type="byte[]"/>
  15314. <param name="start" type="int"/>
  15315. <param name="length" type="int"/>
  15316. <param name="replace" type="boolean"/>
  15317. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15318. <doc>
  15319. <![CDATA[Converts the provided byte array to a String using the
  15320. UTF-8 encoding. If <code>replace</code> is true, then
  15321. malformed input is replaced with the
  15322. substitution character, which is U+FFFD. Otherwise the
  15323. method throws a MalformedInputException.]]>
  15324. </doc>
  15325. </method>
  15326. <method name="encode" return="java.nio.ByteBuffer"
  15327. abstract="false" native="false" synchronized="false"
  15328. static="true" final="false" visibility="public"
  15329. deprecated="not deprecated">
  15330. <param name="string" type="java.lang.String"/>
  15331. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15332. <doc>
  15333. <![CDATA[Converts the provided String to bytes using the
  15334. UTF-8 encoding. If the input is malformed,
  15335. invalid chars are replaced by a default value.
  15336. @return ByteBuffer: bytes stores at ByteBuffer.array()
  15337. and length is ByteBuffer.limit()]]>
  15338. </doc>
  15339. </method>
  15340. <method name="encode" return="java.nio.ByteBuffer"
  15341. abstract="false" native="false" synchronized="false"
  15342. static="true" final="false" visibility="public"
  15343. deprecated="not deprecated">
  15344. <param name="string" type="java.lang.String"/>
  15345. <param name="replace" type="boolean"/>
  15346. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15347. <doc>
  15348. <![CDATA[Converts the provided String to bytes using the
  15349. UTF-8 encoding. If <code>replace</code> is true, then
  15350. malformed input is replaced with the
  15351. substitution character, which is U+FFFD. Otherwise the
  15352. method throws a MalformedInputException.
  15353. @return ByteBuffer: bytes stores at ByteBuffer.array()
  15354. and length is ByteBuffer.limit()]]>
  15355. </doc>
  15356. </method>
  15357. <method name="readString" return="java.lang.String"
  15358. abstract="false" native="false" synchronized="false"
  15359. static="true" final="false" visibility="public"
  15360. deprecated="not deprecated">
  15361. <param name="in" type="java.io.DataInput"/>
  15362. <exception name="IOException" type="java.io.IOException"/>
  15363. <doc>
  15364. <![CDATA[Read a UTF8 encoded string from in]]>
  15365. </doc>
  15366. </method>
  15367. <method name="writeString" return="int"
  15368. abstract="false" native="false" synchronized="false"
  15369. static="true" final="false" visibility="public"
  15370. deprecated="not deprecated">
  15371. <param name="out" type="java.io.DataOutput"/>
  15372. <param name="s" type="java.lang.String"/>
  15373. <exception name="IOException" type="java.io.IOException"/>
  15374. <doc>
  15375. <![CDATA[Write a UTF8 encoded string to out]]>
  15376. </doc>
  15377. </method>
  15378. <method name="validateUTF8"
  15379. abstract="false" native="false" synchronized="false"
  15380. static="true" final="false" visibility="public"
  15381. deprecated="not deprecated">
  15382. <param name="utf8" type="byte[]"/>
  15383. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  15384. <doc>
  15385. <![CDATA[Check if a byte array contains valid utf-8
  15386. @param utf8 byte array
  15387. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  15388. </doc>
  15389. </method>
  15390. <method name="validateUTF8"
  15391. abstract="false" native="false" synchronized="false"
  15392. static="true" final="false" visibility="public"
  15393. deprecated="not deprecated">
  15394. <param name="utf8" type="byte[]"/>
  15395. <param name="start" type="int"/>
  15396. <param name="len" type="int"/>
  15397. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  15398. <doc>
  15399. <![CDATA[Check to see if a byte array is valid utf-8
  15400. @param utf8 the array of bytes
  15401. @param start the offset of the first byte in the array
  15402. @param len the length of the byte sequence
  15403. @throws MalformedInputException if the byte array contains invalid bytes]]>
  15404. </doc>
  15405. </method>
  15406. <method name="bytesToCodePoint" return="int"
  15407. abstract="false" native="false" synchronized="false"
  15408. static="true" final="false" visibility="public"
  15409. deprecated="not deprecated">
  15410. <param name="bytes" type="java.nio.ByteBuffer"/>
  15411. <doc>
  15412. <![CDATA[Returns the next code point at the current position in
  15413. the buffer. The buffer's position will be incremented.
  15414. Any mark set on this buffer will be changed by this method!]]>
  15415. </doc>
  15416. </method>
  15417. <method name="utf8Length" return="int"
  15418. abstract="false" native="false" synchronized="false"
  15419. static="true" final="false" visibility="public"
  15420. deprecated="not deprecated">
  15421. <param name="string" type="java.lang.String"/>
  15422. <doc>
  15423. <![CDATA[For the given string, returns the number of UTF-8 bytes
  15424. required to encode the string.
  15425. @param string text to encode
  15426. @return number of UTF-8 bytes required to encode]]>
  15427. </doc>
  15428. </method>
  15429. <doc>
  15430. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  15431. to serialize, deserialize, and compare texts at byte level. The type of
  15432. length is integer and is serialized using zero-compressed format. <p>In
  15433. addition, it provides methods for string traversal without converting the
  15434. byte array to a string. <p>Also includes utilities for
  15435. serializing/deserialing a string, coding/decoding a string, checking if a
  15436. byte array contains valid UTF8 code, calculating the length of an encoded
  15437. string.]]>
  15438. </doc>
  15439. </class>
  15440. <!-- end class org.apache.hadoop.io.Text -->
  15441. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  15442. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15443. abstract="false"
  15444. static="true" final="false" visibility="public"
  15445. deprecated="not deprecated">
  15446. <constructor name="Text.Comparator"
  15447. static="false" final="false" visibility="public"
  15448. deprecated="not deprecated">
  15449. </constructor>
  15450. <method name="compare" return="int"
  15451. abstract="false" native="false" synchronized="false"
  15452. static="false" final="false" visibility="public"
  15453. deprecated="not deprecated">
  15454. <param name="b1" type="byte[]"/>
  15455. <param name="s1" type="int"/>
  15456. <param name="l1" type="int"/>
  15457. <param name="b2" type="byte[]"/>
  15458. <param name="s2" type="int"/>
  15459. <param name="l2" type="int"/>
  15460. </method>
  15461. <doc>
  15462. <![CDATA[A WritableComparator optimized for Text keys.]]>
  15463. </doc>
  15464. </class>
  15465. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  15466. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  15467. <class name="TwoDArrayWritable" extends="java.lang.Object"
  15468. abstract="false"
  15469. static="false" final="false" visibility="public"
  15470. deprecated="not deprecated">
  15471. <implements name="org.apache.hadoop.io.Writable"/>
  15472. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  15473. static="false" final="false" visibility="public"
  15474. deprecated="not deprecated">
  15475. </constructor>
  15476. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  15477. static="false" final="false" visibility="public"
  15478. deprecated="not deprecated">
  15479. </constructor>
  15480. <method name="toArray" return="java.lang.Object"
  15481. abstract="false" native="false" synchronized="false"
  15482. static="false" final="false" visibility="public"
  15483. deprecated="not deprecated">
  15484. </method>
  15485. <method name="set"
  15486. abstract="false" native="false" synchronized="false"
  15487. static="false" final="false" visibility="public"
  15488. deprecated="not deprecated">
  15489. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  15490. </method>
  15491. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  15492. abstract="false" native="false" synchronized="false"
  15493. static="false" final="false" visibility="public"
  15494. deprecated="not deprecated">
  15495. </method>
  15496. <method name="readFields"
  15497. abstract="false" native="false" synchronized="false"
  15498. static="false" final="false" visibility="public"
  15499. deprecated="not deprecated">
  15500. <param name="in" type="java.io.DataInput"/>
  15501. <exception name="IOException" type="java.io.IOException"/>
  15502. </method>
  15503. <method name="write"
  15504. abstract="false" native="false" synchronized="false"
  15505. static="false" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. <param name="out" type="java.io.DataOutput"/>
  15508. <exception name="IOException" type="java.io.IOException"/>
  15509. </method>
  15510. <doc>
  15511. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  15512. </doc>
  15513. </class>
  15514. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  15515. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  15516. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15517. abstract="false"
  15518. static="true" final="false" visibility="public"
  15519. deprecated="not deprecated">
  15520. <constructor name="UTF8.Comparator"
  15521. static="false" final="false" visibility="public"
  15522. deprecated="not deprecated">
  15523. </constructor>
  15524. <method name="compare" return="int"
  15525. abstract="false" native="false" synchronized="false"
  15526. static="false" final="false" visibility="public"
  15527. deprecated="not deprecated">
  15528. <param name="b1" type="byte[]"/>
  15529. <param name="s1" type="int"/>
  15530. <param name="l1" type="int"/>
  15531. <param name="b2" type="byte[]"/>
  15532. <param name="s2" type="int"/>
  15533. <param name="l2" type="int"/>
  15534. </method>
  15535. <doc>
  15536. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  15537. </doc>
  15538. </class>
  15539. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  15540. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  15541. <class name="VersionedWritable" extends="java.lang.Object"
  15542. abstract="true"
  15543. static="false" final="false" visibility="public"
  15544. deprecated="not deprecated">
  15545. <implements name="org.apache.hadoop.io.Writable"/>
  15546. <constructor name="VersionedWritable"
  15547. static="false" final="false" visibility="public"
  15548. deprecated="not deprecated">
  15549. </constructor>
  15550. <method name="getVersion" return="byte"
  15551. abstract="true" native="false" synchronized="false"
  15552. static="false" final="false" visibility="public"
  15553. deprecated="not deprecated">
  15554. <doc>
  15555. <![CDATA[Return the version number of the current implementation.]]>
  15556. </doc>
  15557. </method>
  15558. <method name="write"
  15559. abstract="false" native="false" synchronized="false"
  15560. static="false" final="false" visibility="public"
  15561. deprecated="not deprecated">
  15562. <param name="out" type="java.io.DataOutput"/>
  15563. <exception name="IOException" type="java.io.IOException"/>
  15564. </method>
  15565. <method name="readFields"
  15566. abstract="false" native="false" synchronized="false"
  15567. static="false" final="false" visibility="public"
  15568. deprecated="not deprecated">
  15569. <param name="in" type="java.io.DataInput"/>
  15570. <exception name="IOException" type="java.io.IOException"/>
  15571. </method>
  15572. <doc>
  15573. <![CDATA[A base class for Writables that provides version checking.
  15574. <p>This is useful when a class may evolve, so that instances written by the
  15575. old version of the class may still be processed by the new version. To
  15576. handle this situation, {@link #readFields(DataInput)}
  15577. implementations should catch {@link VersionMismatchException}.]]>
  15578. </doc>
  15579. </class>
  15580. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15581. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15582. <class name="VersionMismatchException" extends="java.io.IOException"
  15583. abstract="false"
  15584. static="false" final="false" visibility="public"
  15585. deprecated="not deprecated">
  15586. <constructor name="VersionMismatchException" type="byte, byte"
  15587. static="false" final="false" visibility="public"
  15588. deprecated="not deprecated">
  15589. </constructor>
  15590. <method name="toString" return="java.lang.String"
  15591. abstract="false" native="false" synchronized="false"
  15592. static="false" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <doc>
  15595. <![CDATA[Returns a string representation of this object.]]>
  15596. </doc>
  15597. </method>
  15598. <doc>
  15599. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15600. version of an object being read does not match the current implementation
  15601. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15602. </doc>
  15603. </class>
  15604. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15605. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15606. <class name="VIntWritable" extends="java.lang.Object"
  15607. abstract="false"
  15608. static="false" final="false" visibility="public"
  15609. deprecated="not deprecated">
  15610. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15611. <constructor name="VIntWritable"
  15612. static="false" final="false" visibility="public"
  15613. deprecated="not deprecated">
  15614. </constructor>
  15615. <constructor name="VIntWritable" type="int"
  15616. static="false" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. </constructor>
  15619. <method name="set"
  15620. abstract="false" native="false" synchronized="false"
  15621. static="false" final="false" visibility="public"
  15622. deprecated="not deprecated">
  15623. <param name="value" type="int"/>
  15624. <doc>
  15625. <![CDATA[Set the value of this VIntWritable.]]>
  15626. </doc>
  15627. </method>
  15628. <method name="get" return="int"
  15629. abstract="false" native="false" synchronized="false"
  15630. static="false" final="false" visibility="public"
  15631. deprecated="not deprecated">
  15632. <doc>
  15633. <![CDATA[Return the value of this VIntWritable.]]>
  15634. </doc>
  15635. </method>
  15636. <method name="readFields"
  15637. abstract="false" native="false" synchronized="false"
  15638. static="false" final="false" visibility="public"
  15639. deprecated="not deprecated">
  15640. <param name="in" type="java.io.DataInput"/>
  15641. <exception name="IOException" type="java.io.IOException"/>
  15642. </method>
  15643. <method name="write"
  15644. abstract="false" native="false" synchronized="false"
  15645. static="false" final="false" visibility="public"
  15646. deprecated="not deprecated">
  15647. <param name="out" type="java.io.DataOutput"/>
  15648. <exception name="IOException" type="java.io.IOException"/>
  15649. </method>
  15650. <method name="equals" return="boolean"
  15651. abstract="false" native="false" synchronized="false"
  15652. static="false" final="false" visibility="public"
  15653. deprecated="not deprecated">
  15654. <param name="o" type="java.lang.Object"/>
  15655. <doc>
  15656. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15657. </doc>
  15658. </method>
  15659. <method name="hashCode" return="int"
  15660. abstract="false" native="false" synchronized="false"
  15661. static="false" final="false" visibility="public"
  15662. deprecated="not deprecated">
  15663. </method>
  15664. <method name="compareTo" return="int"
  15665. abstract="false" native="false" synchronized="false"
  15666. static="false" final="false" visibility="public"
  15667. deprecated="not deprecated">
  15668. <param name="o" type="java.lang.Object"/>
  15669. <doc>
  15670. <![CDATA[Compares two VIntWritables.]]>
  15671. </doc>
  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. <doc>
  15679. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15680. Such values take between one and five bytes. Smaller values take fewer bytes.
  15681. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15682. </doc>
  15683. </class>
  15684. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15685. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15686. <class name="VLongWritable" extends="java.lang.Object"
  15687. abstract="false"
  15688. static="false" final="false" visibility="public"
  15689. deprecated="not deprecated">
  15690. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15691. <constructor name="VLongWritable"
  15692. static="false" final="false" visibility="public"
  15693. deprecated="not deprecated">
  15694. </constructor>
  15695. <constructor name="VLongWritable" type="long"
  15696. static="false" final="false" visibility="public"
  15697. deprecated="not deprecated">
  15698. </constructor>
  15699. <method name="set"
  15700. abstract="false" native="false" synchronized="false"
  15701. static="false" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. <param name="value" type="long"/>
  15704. <doc>
  15705. <![CDATA[Set the value of this LongWritable.]]>
  15706. </doc>
  15707. </method>
  15708. <method name="get" return="long"
  15709. abstract="false" native="false" synchronized="false"
  15710. static="false" final="false" visibility="public"
  15711. deprecated="not deprecated">
  15712. <doc>
  15713. <![CDATA[Return the value of this LongWritable.]]>
  15714. </doc>
  15715. </method>
  15716. <method name="readFields"
  15717. abstract="false" native="false" synchronized="false"
  15718. static="false" final="false" visibility="public"
  15719. deprecated="not deprecated">
  15720. <param name="in" type="java.io.DataInput"/>
  15721. <exception name="IOException" type="java.io.IOException"/>
  15722. </method>
  15723. <method name="write"
  15724. abstract="false" native="false" synchronized="false"
  15725. static="false" final="false" visibility="public"
  15726. deprecated="not deprecated">
  15727. <param name="out" type="java.io.DataOutput"/>
  15728. <exception name="IOException" type="java.io.IOException"/>
  15729. </method>
  15730. <method name="equals" return="boolean"
  15731. abstract="false" native="false" synchronized="false"
  15732. static="false" final="false" visibility="public"
  15733. deprecated="not deprecated">
  15734. <param name="o" type="java.lang.Object"/>
  15735. <doc>
  15736. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15737. </doc>
  15738. </method>
  15739. <method name="hashCode" return="int"
  15740. abstract="false" native="false" synchronized="false"
  15741. static="false" final="false" visibility="public"
  15742. deprecated="not deprecated">
  15743. </method>
  15744. <method name="compareTo" return="int"
  15745. abstract="false" native="false" synchronized="false"
  15746. static="false" final="false" visibility="public"
  15747. deprecated="not deprecated">
  15748. <param name="o" type="java.lang.Object"/>
  15749. <doc>
  15750. <![CDATA[Compares two VLongWritables.]]>
  15751. </doc>
  15752. </method>
  15753. <method name="toString" return="java.lang.String"
  15754. abstract="false" native="false" synchronized="false"
  15755. static="false" final="false" visibility="public"
  15756. deprecated="not deprecated">
  15757. </method>
  15758. <doc>
  15759. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15760. between one and five bytes. Smaller values take fewer bytes.
  15761. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15762. </doc>
  15763. </class>
  15764. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15765. <!-- start interface org.apache.hadoop.io.Writable -->
  15766. <interface name="Writable" abstract="true"
  15767. static="false" final="false" visibility="public"
  15768. deprecated="not deprecated">
  15769. <method name="write"
  15770. abstract="false" native="false" synchronized="false"
  15771. static="false" final="false" visibility="public"
  15772. deprecated="not deprecated">
  15773. <param name="out" type="java.io.DataOutput"/>
  15774. <exception name="IOException" type="java.io.IOException"/>
  15775. <doc>
  15776. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15777. @param out <code>DataOuput</code> to serialize this object into.
  15778. @throws IOException]]>
  15779. </doc>
  15780. </method>
  15781. <method name="readFields"
  15782. abstract="false" native="false" synchronized="false"
  15783. static="false" final="false" visibility="public"
  15784. deprecated="not deprecated">
  15785. <param name="in" type="java.io.DataInput"/>
  15786. <exception name="IOException" type="java.io.IOException"/>
  15787. <doc>
  15788. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15789. <p>For efficiency, implementations should attempt to re-use storage in the
  15790. existing object where possible.</p>
  15791. @param in <code>DataInput</code> to deseriablize this object from.
  15792. @throws IOException]]>
  15793. </doc>
  15794. </method>
  15795. <doc>
  15796. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15797. protocol, based on {@link DataInput} and {@link DataOutput}.
  15798. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15799. framework implements this interface.</p>
  15800. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15801. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15802. and returns the instance.</p>
  15803. <p>Example:</p>
  15804. <p><blockquote><pre>
  15805. public class MyWritable implements Writable {
  15806. // Some data
  15807. private int counter;
  15808. private long timestamp;
  15809. public void write(DataOutput out) throws IOException {
  15810. out.writeInt(counter);
  15811. out.writeLong(timestamp);
  15812. }
  15813. public void readFields(DataInput in) throws IOException {
  15814. counter = in.readInt();
  15815. timestamp = in.readLong();
  15816. }
  15817. public static MyWritable read(DataInput in) throws IOException {
  15818. MyWritable w = new MyWritable();
  15819. w.readFields(in);
  15820. return w;
  15821. }
  15822. }
  15823. </pre></blockquote></p>]]>
  15824. </doc>
  15825. </interface>
  15826. <!-- end interface org.apache.hadoop.io.Writable -->
  15827. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15828. <interface name="WritableComparable" abstract="true"
  15829. static="false" final="false" visibility="public"
  15830. deprecated="not deprecated">
  15831. <implements name="org.apache.hadoop.io.Writable"/>
  15832. <implements name="java.lang.Comparable"/>
  15833. <doc>
  15834. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15835. <p><code>WritableComparable</code>s can be compared to each other, typically
  15836. via <code>Comparator</code>s. Any type which is to be used as a
  15837. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15838. interface.</p>
  15839. <p>Example:</p>
  15840. <p><blockquote><pre>
  15841. public class MyWritableComparable implements
  15842. WritableComparable&lt;MyWritableComparable&gt; {
  15843. // Some data
  15844. private int counter;
  15845. private long timestamp;
  15846. public void write(DataOutput out) throws IOException {
  15847. out.writeInt(counter);
  15848. out.writeLong(timestamp);
  15849. }
  15850. public void readFields(DataInput in) throws IOException {
  15851. counter = in.readInt();
  15852. timestamp = in.readLong();
  15853. }
  15854. public int compareTo(MyWritableComparable other) {
  15855. int thisValue = this.counter;
  15856. int thatValue = other.counter;
  15857. return (thisValue &lt; thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
  15858. }
  15859. }
  15860. </pre></blockquote></p>]]>
  15861. </doc>
  15862. </interface>
  15863. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15864. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15865. <class name="WritableComparator" extends="java.lang.Object"
  15866. abstract="false"
  15867. static="false" final="false" visibility="public"
  15868. deprecated="not deprecated">
  15869. <implements name="org.apache.hadoop.io.RawComparator"/>
  15870. <constructor name="WritableComparator" type="java.lang.Class"
  15871. static="false" final="false" visibility="protected"
  15872. deprecated="not deprecated">
  15873. <doc>
  15874. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15875. </doc>
  15876. </constructor>
  15877. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15878. static="false" final="false" visibility="protected"
  15879. deprecated="not deprecated">
  15880. </constructor>
  15881. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15882. abstract="false" native="false" synchronized="true"
  15883. static="true" final="false" visibility="public"
  15884. deprecated="not deprecated">
  15885. <param name="c" type="java.lang.Class"/>
  15886. <doc>
  15887. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15888. </doc>
  15889. </method>
  15890. <method name="define"
  15891. abstract="false" native="false" synchronized="true"
  15892. static="true" final="false" visibility="public"
  15893. deprecated="not deprecated">
  15894. <param name="c" type="java.lang.Class"/>
  15895. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15896. <doc>
  15897. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15898. implementation. Comparators registered with this method must be
  15899. thread-safe.]]>
  15900. </doc>
  15901. </method>
  15902. <method name="getKeyClass" return="java.lang.Class"
  15903. abstract="false" native="false" synchronized="false"
  15904. static="false" final="false" visibility="public"
  15905. deprecated="not deprecated">
  15906. <doc>
  15907. <![CDATA[Returns the WritableComparable implementation class.]]>
  15908. </doc>
  15909. </method>
  15910. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15911. abstract="false" native="false" synchronized="false"
  15912. static="false" final="false" visibility="public"
  15913. deprecated="not deprecated">
  15914. <doc>
  15915. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15916. </doc>
  15917. </method>
  15918. <method name="compare" return="int"
  15919. abstract="false" native="false" synchronized="false"
  15920. static="false" final="false" visibility="public"
  15921. deprecated="not deprecated">
  15922. <param name="b1" type="byte[]"/>
  15923. <param name="s1" type="int"/>
  15924. <param name="l1" type="int"/>
  15925. <param name="b2" type="byte[]"/>
  15926. <param name="s2" type="int"/>
  15927. <param name="l2" type="int"/>
  15928. <doc>
  15929. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15930. <p>The default implementation reads the data into two {@link
  15931. WritableComparable}s (using {@link
  15932. Writable#readFields(DataInput)}, then calls {@link
  15933. #compare(WritableComparable,WritableComparable)}.]]>
  15934. </doc>
  15935. </method>
  15936. <method name="compare" return="int"
  15937. abstract="false" native="false" synchronized="false"
  15938. static="false" final="false" visibility="public"
  15939. deprecated="not deprecated">
  15940. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15941. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15942. <doc>
  15943. <![CDATA[Compare two WritableComparables.
  15944. <p> The default implementation uses the natural ordering, calling {@link
  15945. Comparable#compareTo(Object)}.]]>
  15946. </doc>
  15947. </method>
  15948. <method name="compare" return="int"
  15949. abstract="false" native="false" synchronized="false"
  15950. static="false" final="false" visibility="public"
  15951. deprecated="not deprecated">
  15952. <param name="a" type="java.lang.Object"/>
  15953. <param name="b" type="java.lang.Object"/>
  15954. </method>
  15955. <method name="compareBytes" return="int"
  15956. abstract="false" native="false" synchronized="false"
  15957. static="true" final="false" visibility="public"
  15958. deprecated="not deprecated">
  15959. <param name="b1" type="byte[]"/>
  15960. <param name="s1" type="int"/>
  15961. <param name="l1" type="int"/>
  15962. <param name="b2" type="byte[]"/>
  15963. <param name="s2" type="int"/>
  15964. <param name="l2" type="int"/>
  15965. <doc>
  15966. <![CDATA[Lexicographic order of binary data.]]>
  15967. </doc>
  15968. </method>
  15969. <method name="hashBytes" return="int"
  15970. abstract="false" native="false" synchronized="false"
  15971. static="true" final="false" visibility="public"
  15972. deprecated="not deprecated">
  15973. <param name="bytes" type="byte[]"/>
  15974. <param name="offset" type="int"/>
  15975. <param name="length" type="int"/>
  15976. <doc>
  15977. <![CDATA[Compute hash for binary data.]]>
  15978. </doc>
  15979. </method>
  15980. <method name="hashBytes" return="int"
  15981. abstract="false" native="false" synchronized="false"
  15982. static="true" final="false" visibility="public"
  15983. deprecated="not deprecated">
  15984. <param name="bytes" type="byte[]"/>
  15985. <param name="length" type="int"/>
  15986. <doc>
  15987. <![CDATA[Compute hash for binary data.]]>
  15988. </doc>
  15989. </method>
  15990. <method name="readUnsignedShort" return="int"
  15991. abstract="false" native="false" synchronized="false"
  15992. static="true" final="false" visibility="public"
  15993. deprecated="not deprecated">
  15994. <param name="bytes" type="byte[]"/>
  15995. <param name="start" type="int"/>
  15996. <doc>
  15997. <![CDATA[Parse an unsigned short from a byte array.]]>
  15998. </doc>
  15999. </method>
  16000. <method name="readInt" return="int"
  16001. abstract="false" native="false" synchronized="false"
  16002. static="true" final="false" visibility="public"
  16003. deprecated="not deprecated">
  16004. <param name="bytes" type="byte[]"/>
  16005. <param name="start" type="int"/>
  16006. <doc>
  16007. <![CDATA[Parse an integer from a byte array.]]>
  16008. </doc>
  16009. </method>
  16010. <method name="readFloat" return="float"
  16011. abstract="false" native="false" synchronized="false"
  16012. static="true" final="false" visibility="public"
  16013. deprecated="not deprecated">
  16014. <param name="bytes" type="byte[]"/>
  16015. <param name="start" type="int"/>
  16016. <doc>
  16017. <![CDATA[Parse a float from a byte array.]]>
  16018. </doc>
  16019. </method>
  16020. <method name="readLong" return="long"
  16021. abstract="false" native="false" synchronized="false"
  16022. static="true" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <param name="bytes" type="byte[]"/>
  16025. <param name="start" type="int"/>
  16026. <doc>
  16027. <![CDATA[Parse a long from a byte array.]]>
  16028. </doc>
  16029. </method>
  16030. <method name="readDouble" return="double"
  16031. abstract="false" native="false" synchronized="false"
  16032. static="true" final="false" visibility="public"
  16033. deprecated="not deprecated">
  16034. <param name="bytes" type="byte[]"/>
  16035. <param name="start" type="int"/>
  16036. <doc>
  16037. <![CDATA[Parse a double from a byte array.]]>
  16038. </doc>
  16039. </method>
  16040. <method name="readVLong" return="long"
  16041. abstract="false" native="false" synchronized="false"
  16042. static="true" final="false" visibility="public"
  16043. deprecated="not deprecated">
  16044. <param name="bytes" type="byte[]"/>
  16045. <param name="start" type="int"/>
  16046. <exception name="IOException" type="java.io.IOException"/>
  16047. <doc>
  16048. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  16049. @param bytes byte array with decode long
  16050. @param start starting index
  16051. @throws java.io.IOException
  16052. @return deserialized long]]>
  16053. </doc>
  16054. </method>
  16055. <method name="readVInt" return="int"
  16056. abstract="false" native="false" synchronized="false"
  16057. static="true" final="false" visibility="public"
  16058. deprecated="not deprecated">
  16059. <param name="bytes" type="byte[]"/>
  16060. <param name="start" type="int"/>
  16061. <exception name="IOException" type="java.io.IOException"/>
  16062. <doc>
  16063. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  16064. @param bytes byte array with the encoded integer
  16065. @param start start index
  16066. @throws java.io.IOException
  16067. @return deserialized integer]]>
  16068. </doc>
  16069. </method>
  16070. <doc>
  16071. <![CDATA[A Comparator for {@link WritableComparable}s.
  16072. <p>This base implemenation uses the natural ordering. To define alternate
  16073. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  16074. <p>One may optimize compare-intensive operations by overriding
  16075. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  16076. provided to assist in optimized implementations of this method.]]>
  16077. </doc>
  16078. </class>
  16079. <!-- end class org.apache.hadoop.io.WritableComparator -->
  16080. <!-- start class org.apache.hadoop.io.WritableFactories -->
  16081. <class name="WritableFactories" extends="java.lang.Object"
  16082. abstract="false"
  16083. static="false" final="false" visibility="public"
  16084. deprecated="not deprecated">
  16085. <method name="setFactory"
  16086. abstract="false" native="false" synchronized="true"
  16087. static="true" final="false" visibility="public"
  16088. deprecated="not deprecated">
  16089. <param name="c" type="java.lang.Class"/>
  16090. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  16091. <doc>
  16092. <![CDATA[Define a factory for a class.]]>
  16093. </doc>
  16094. </method>
  16095. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  16096. abstract="false" native="false" synchronized="true"
  16097. static="true" final="false" visibility="public"
  16098. deprecated="not deprecated">
  16099. <param name="c" type="java.lang.Class"/>
  16100. <doc>
  16101. <![CDATA[Define a factory for a class.]]>
  16102. </doc>
  16103. </method>
  16104. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  16105. abstract="false" native="false" synchronized="false"
  16106. static="true" final="false" visibility="public"
  16107. deprecated="not deprecated">
  16108. <param name="c" type="java.lang.Class"/>
  16109. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16110. <doc>
  16111. <![CDATA[Create a new instance of a class with a defined factory.]]>
  16112. </doc>
  16113. </method>
  16114. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  16115. abstract="false" native="false" synchronized="false"
  16116. static="true" final="false" visibility="public"
  16117. deprecated="not deprecated">
  16118. <param name="c" type="java.lang.Class"/>
  16119. <doc>
  16120. <![CDATA[Create a new instance of a class with a defined factory.]]>
  16121. </doc>
  16122. </method>
  16123. <doc>
  16124. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  16125. ObjectWritable} to be able to construct instances of non-public classes.]]>
  16126. </doc>
  16127. </class>
  16128. <!-- end class org.apache.hadoop.io.WritableFactories -->
  16129. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  16130. <interface name="WritableFactory" abstract="true"
  16131. static="false" final="false" visibility="public"
  16132. deprecated="not deprecated">
  16133. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  16134. abstract="false" native="false" synchronized="false"
  16135. static="false" final="false" visibility="public"
  16136. deprecated="not deprecated">
  16137. <doc>
  16138. <![CDATA[Return a new instance.]]>
  16139. </doc>
  16140. </method>
  16141. <doc>
  16142. <![CDATA[A factory for a class of Writable.
  16143. @see WritableFactories]]>
  16144. </doc>
  16145. </interface>
  16146. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  16147. <!-- start class org.apache.hadoop.io.WritableUtils -->
  16148. <class name="WritableUtils" extends="java.lang.Object"
  16149. abstract="false"
  16150. static="false" final="true" visibility="public"
  16151. deprecated="not deprecated">
  16152. <constructor name="WritableUtils"
  16153. static="false" final="false" visibility="public"
  16154. deprecated="not deprecated">
  16155. </constructor>
  16156. <method name="readCompressedByteArray" return="byte[]"
  16157. abstract="false" native="false" synchronized="false"
  16158. static="true" final="false" visibility="public"
  16159. deprecated="not deprecated">
  16160. <param name="in" type="java.io.DataInput"/>
  16161. <exception name="IOException" type="java.io.IOException"/>
  16162. </method>
  16163. <method name="skipCompressedByteArray"
  16164. abstract="false" native="false" synchronized="false"
  16165. static="true" final="false" visibility="public"
  16166. deprecated="not deprecated">
  16167. <param name="in" type="java.io.DataInput"/>
  16168. <exception name="IOException" type="java.io.IOException"/>
  16169. </method>
  16170. <method name="writeCompressedByteArray" return="int"
  16171. abstract="false" native="false" synchronized="false"
  16172. static="true" final="false" visibility="public"
  16173. deprecated="not deprecated">
  16174. <param name="out" type="java.io.DataOutput"/>
  16175. <param name="bytes" type="byte[]"/>
  16176. <exception name="IOException" type="java.io.IOException"/>
  16177. </method>
  16178. <method name="readCompressedString" return="java.lang.String"
  16179. abstract="false" native="false" synchronized="false"
  16180. static="true" final="false" visibility="public"
  16181. deprecated="not deprecated">
  16182. <param name="in" type="java.io.DataInput"/>
  16183. <exception name="IOException" type="java.io.IOException"/>
  16184. </method>
  16185. <method name="writeCompressedString" return="int"
  16186. abstract="false" native="false" synchronized="false"
  16187. static="true" final="false" visibility="public"
  16188. deprecated="not deprecated">
  16189. <param name="out" type="java.io.DataOutput"/>
  16190. <param name="s" type="java.lang.String"/>
  16191. <exception name="IOException" type="java.io.IOException"/>
  16192. </method>
  16193. <method name="writeString"
  16194. abstract="false" native="false" synchronized="false"
  16195. static="true" final="false" visibility="public"
  16196. deprecated="not deprecated">
  16197. <param name="out" type="java.io.DataOutput"/>
  16198. <param name="s" type="java.lang.String"/>
  16199. <exception name="IOException" type="java.io.IOException"/>
  16200. </method>
  16201. <method name="readString" return="java.lang.String"
  16202. abstract="false" native="false" synchronized="false"
  16203. static="true" final="false" visibility="public"
  16204. deprecated="not deprecated">
  16205. <param name="in" type="java.io.DataInput"/>
  16206. <exception name="IOException" type="java.io.IOException"/>
  16207. </method>
  16208. <method name="writeStringArray"
  16209. abstract="false" native="false" synchronized="false"
  16210. static="true" final="false" visibility="public"
  16211. deprecated="not deprecated">
  16212. <param name="out" type="java.io.DataOutput"/>
  16213. <param name="s" type="java.lang.String[]"/>
  16214. <exception name="IOException" type="java.io.IOException"/>
  16215. </method>
  16216. <method name="writeCompressedStringArray"
  16217. abstract="false" native="false" synchronized="false"
  16218. static="true" final="false" visibility="public"
  16219. deprecated="not deprecated">
  16220. <param name="out" type="java.io.DataOutput"/>
  16221. <param name="s" type="java.lang.String[]"/>
  16222. <exception name="IOException" type="java.io.IOException"/>
  16223. </method>
  16224. <method name="readStringArray" return="java.lang.String[]"
  16225. abstract="false" native="false" synchronized="false"
  16226. static="true" final="false" visibility="public"
  16227. deprecated="not deprecated">
  16228. <param name="in" type="java.io.DataInput"/>
  16229. <exception name="IOException" type="java.io.IOException"/>
  16230. </method>
  16231. <method name="readCompressedStringArray" return="java.lang.String[]"
  16232. abstract="false" native="false" synchronized="false"
  16233. static="true" final="false" visibility="public"
  16234. deprecated="not deprecated">
  16235. <param name="in" type="java.io.DataInput"/>
  16236. <exception name="IOException" type="java.io.IOException"/>
  16237. </method>
  16238. <method name="displayByteArray"
  16239. abstract="false" native="false" synchronized="false"
  16240. static="true" final="false" visibility="public"
  16241. deprecated="not deprecated">
  16242. <param name="record" type="byte[]"/>
  16243. </method>
  16244. <method name="clone" return="T"
  16245. abstract="false" native="false" synchronized="false"
  16246. static="true" final="false" visibility="public"
  16247. deprecated="not deprecated">
  16248. <param name="orig" type="T"/>
  16249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16250. <doc>
  16251. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  16252. @param orig The object to copy
  16253. @return The copied object]]>
  16254. </doc>
  16255. </method>
  16256. <method name="cloneInto"
  16257. abstract="false" native="false" synchronized="false"
  16258. static="true" final="false" visibility="public"
  16259. deprecated="use ReflectionUtils.cloneInto instead.">
  16260. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  16261. <param name="src" type="org.apache.hadoop.io.Writable"/>
  16262. <exception name="IOException" type="java.io.IOException"/>
  16263. <doc>
  16264. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  16265. @param dst the object to copy from
  16266. @param src the object to copy into, which is destroyed
  16267. @throws IOException
  16268. @deprecated use ReflectionUtils.cloneInto instead.]]>
  16269. </doc>
  16270. </method>
  16271. <method name="writeVInt"
  16272. abstract="false" native="false" synchronized="false"
  16273. static="true" final="false" visibility="public"
  16274. deprecated="not deprecated">
  16275. <param name="stream" type="java.io.DataOutput"/>
  16276. <param name="i" type="int"/>
  16277. <exception name="IOException" type="java.io.IOException"/>
  16278. <doc>
  16279. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  16280. For -120 <= i <= 127, only one byte is used with the actual value.
  16281. For other values of i, the first byte value indicates whether the
  16282. integer is positive or negative, and the number of bytes that follow.
  16283. If the first byte value v is between -121 and -124, the following integer
  16284. is positive, with number of bytes that follow are -(v+120).
  16285. If the first byte value v is between -125 and -128, the following integer
  16286. is negative, with number of bytes that follow are -(v+124). Bytes are
  16287. stored in the high-non-zero-byte-first order.
  16288. @param stream Binary output stream
  16289. @param i Integer to be serialized
  16290. @throws java.io.IOException]]>
  16291. </doc>
  16292. </method>
  16293. <method name="writeVLong"
  16294. abstract="false" native="false" synchronized="false"
  16295. static="true" final="false" visibility="public"
  16296. deprecated="not deprecated">
  16297. <param name="stream" type="java.io.DataOutput"/>
  16298. <param name="i" type="long"/>
  16299. <exception name="IOException" type="java.io.IOException"/>
  16300. <doc>
  16301. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  16302. For -112 <= i <= 127, only one byte is used with the actual value.
  16303. For other values of i, the first byte value indicates whether the
  16304. long is positive or negative, and the number of bytes that follow.
  16305. If the first byte value v is between -113 and -120, the following long
  16306. is positive, with number of bytes that follow are -(v+112).
  16307. If the first byte value v is between -121 and -128, the following long
  16308. is negative, with number of bytes that follow are -(v+120). Bytes are
  16309. stored in the high-non-zero-byte-first order.
  16310. @param stream Binary output stream
  16311. @param i Long to be serialized
  16312. @throws java.io.IOException]]>
  16313. </doc>
  16314. </method>
  16315. <method name="readVLong" return="long"
  16316. abstract="false" native="false" synchronized="false"
  16317. static="true" final="false" visibility="public"
  16318. deprecated="not deprecated">
  16319. <param name="stream" type="java.io.DataInput"/>
  16320. <exception name="IOException" type="java.io.IOException"/>
  16321. <doc>
  16322. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  16323. @param stream Binary input stream
  16324. @throws java.io.IOException
  16325. @return deserialized long from stream.]]>
  16326. </doc>
  16327. </method>
  16328. <method name="readVInt" return="int"
  16329. abstract="false" native="false" synchronized="false"
  16330. static="true" final="false" visibility="public"
  16331. deprecated="not deprecated">
  16332. <param name="stream" type="java.io.DataInput"/>
  16333. <exception name="IOException" type="java.io.IOException"/>
  16334. <doc>
  16335. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  16336. @param stream Binary input stream
  16337. @throws java.io.IOException
  16338. @return deserialized integer from stream.]]>
  16339. </doc>
  16340. </method>
  16341. <method name="isNegativeVInt" return="boolean"
  16342. abstract="false" native="false" synchronized="false"
  16343. static="true" final="false" visibility="public"
  16344. deprecated="not deprecated">
  16345. <param name="value" type="byte"/>
  16346. <doc>
  16347. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  16348. @param value the first byte
  16349. @return is the value negative]]>
  16350. </doc>
  16351. </method>
  16352. <method name="decodeVIntSize" return="int"
  16353. abstract="false" native="false" synchronized="false"
  16354. static="true" final="false" visibility="public"
  16355. deprecated="not deprecated">
  16356. <param name="value" type="byte"/>
  16357. <doc>
  16358. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  16359. @param value the first byte of the vint/vlong
  16360. @return the total number of bytes (1 to 9)]]>
  16361. </doc>
  16362. </method>
  16363. <method name="getVIntSize" return="int"
  16364. abstract="false" native="false" synchronized="false"
  16365. static="true" final="false" visibility="public"
  16366. deprecated="not deprecated">
  16367. <param name="i" type="long"/>
  16368. <doc>
  16369. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  16370. @return the encoded length]]>
  16371. </doc>
  16372. </method>
  16373. <method name="readEnum" return="T"
  16374. abstract="false" native="false" synchronized="false"
  16375. static="true" final="false" visibility="public"
  16376. deprecated="not deprecated">
  16377. <param name="in" type="java.io.DataInput"/>
  16378. <param name="enumType" type="java.lang.Class"/>
  16379. <exception name="IOException" type="java.io.IOException"/>
  16380. <doc>
  16381. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  16382. using String values.
  16383. @param <T> Enum type
  16384. @param in DataInput to read from
  16385. @param enumType Class type of Enum
  16386. @return Enum represented by String read from DataInput
  16387. @throws IOException]]>
  16388. </doc>
  16389. </method>
  16390. <method name="writeEnum"
  16391. abstract="false" native="false" synchronized="false"
  16392. static="true" final="false" visibility="public"
  16393. deprecated="not deprecated">
  16394. <param name="out" type="java.io.DataOutput"/>
  16395. <param name="enumVal" type="java.lang.Enum"/>
  16396. <exception name="IOException" type="java.io.IOException"/>
  16397. <doc>
  16398. <![CDATA[writes String value of enum to DataOutput.
  16399. @param out Dataoutput stream
  16400. @param enumVal enum value
  16401. @throws IOException]]>
  16402. </doc>
  16403. </method>
  16404. <method name="skipFully"
  16405. abstract="false" native="false" synchronized="false"
  16406. static="true" final="false" visibility="public"
  16407. deprecated="not deprecated">
  16408. <param name="in" type="java.io.DataInput"/>
  16409. <param name="len" type="int"/>
  16410. <exception name="IOException" type="java.io.IOException"/>
  16411. <doc>
  16412. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  16413. @param in input stream
  16414. @param len number of bytes to skip
  16415. @throws IOException when skipped less number of bytes]]>
  16416. </doc>
  16417. </method>
  16418. <method name="toByteArray" return="byte[]"
  16419. abstract="false" native="false" synchronized="false"
  16420. static="true" final="false" visibility="public"
  16421. deprecated="not deprecated">
  16422. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  16423. <doc>
  16424. <![CDATA[Convert writables to a byte array]]>
  16425. </doc>
  16426. </method>
  16427. <method name="readStringSafely" return="java.lang.String"
  16428. abstract="false" native="false" synchronized="false"
  16429. static="true" final="false" visibility="public"
  16430. deprecated="not deprecated">
  16431. <param name="in" type="java.io.DataInput"/>
  16432. <param name="maxLength" type="int"/>
  16433. <exception name="IOException" type="java.io.IOException"/>
  16434. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  16435. <doc>
  16436. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  16437. followed by the given number of bytes.
  16438. @param in the stream to read from
  16439. @param maxLength the largest acceptable length of the encoded string
  16440. @return the bytes as a string
  16441. @throws IOException if reading from the DataInput fails
  16442. @throws IllegalArgumentException if the encoded byte size for string
  16443. is negative or larger than maxSize. Only the vint is read.]]>
  16444. </doc>
  16445. </method>
  16446. </class>
  16447. <!-- end class org.apache.hadoop.io.WritableUtils -->
  16448. <doc>
  16449. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  16450. to databases, and to files.]]>
  16451. </doc>
  16452. </package>
  16453. <package name="org.apache.hadoop.io.compress">
  16454. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16455. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16456. abstract="false"
  16457. static="false" final="false" visibility="public"
  16458. deprecated="not deprecated">
  16459. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  16460. static="false" final="false" visibility="public"
  16461. deprecated="not deprecated">
  16462. <doc>
  16463. <![CDATA[Create a {@link BlockCompressorStream}.
  16464. @param out stream
  16465. @param compressor compressor to be used
  16466. @param bufferSize size of buffer
  16467. @param compressionOverhead maximum 'overhead' of the compression
  16468. algorithm with given bufferSize]]>
  16469. </doc>
  16470. </constructor>
  16471. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16472. static="false" final="false" visibility="public"
  16473. deprecated="not deprecated">
  16474. <doc>
  16475. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  16476. compressor.
  16477. Use default of 512 as bufferSize and compressionOverhead of
  16478. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  16479. @param out stream
  16480. @param compressor compressor to be used]]>
  16481. </doc>
  16482. </constructor>
  16483. <method name="write"
  16484. abstract="false" native="false" synchronized="false"
  16485. static="false" final="false" visibility="public"
  16486. deprecated="not deprecated">
  16487. <param name="b" type="byte[]"/>
  16488. <param name="off" type="int"/>
  16489. <param name="len" type="int"/>
  16490. <exception name="IOException" type="java.io.IOException"/>
  16491. <doc>
  16492. <![CDATA[Write the data provided to the compression codec, compressing no more
  16493. than the buffer size less the compression overhead as specified during
  16494. construction for each block.
  16495. Each block contains the uncompressed length for the block, followed by
  16496. one or more length-prefixed blocks of compressed data.]]>
  16497. </doc>
  16498. </method>
  16499. <method name="finish"
  16500. abstract="false" native="false" synchronized="false"
  16501. static="false" final="false" visibility="public"
  16502. deprecated="not deprecated">
  16503. <exception name="IOException" type="java.io.IOException"/>
  16504. </method>
  16505. <method name="compress"
  16506. abstract="false" native="false" synchronized="false"
  16507. static="false" final="false" visibility="protected"
  16508. deprecated="not deprecated">
  16509. <exception name="IOException" type="java.io.IOException"/>
  16510. </method>
  16511. <doc>
  16512. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  16513. with 'block-based' based compression algorithms, as opposed to
  16514. 'stream-based' compression algorithms.
  16515. It should be noted that this wrapper does not guarantee that blocks will
  16516. be sized for the compressor. If the
  16517. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  16518. effect meaningful compression, it is responsible for it.]]>
  16519. </doc>
  16520. </class>
  16521. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16522. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16523. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16524. abstract="false"
  16525. static="false" final="false" visibility="public"
  16526. deprecated="not deprecated">
  16527. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16528. static="false" final="false" visibility="public"
  16529. deprecated="not deprecated">
  16530. <exception name="IOException" type="java.io.IOException"/>
  16531. <doc>
  16532. <![CDATA[Create a {@link BlockDecompressorStream}.
  16533. @param in input stream
  16534. @param decompressor decompressor to use
  16535. @param bufferSize size of buffer
  16536. @throws IOException]]>
  16537. </doc>
  16538. </constructor>
  16539. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16540. static="false" final="false" visibility="public"
  16541. deprecated="not deprecated">
  16542. <exception name="IOException" type="java.io.IOException"/>
  16543. <doc>
  16544. <![CDATA[Create a {@link BlockDecompressorStream}.
  16545. @param in input stream
  16546. @param decompressor decompressor to use
  16547. @throws IOException]]>
  16548. </doc>
  16549. </constructor>
  16550. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16551. static="false" final="false" visibility="protected"
  16552. deprecated="not deprecated">
  16553. <exception name="IOException" type="java.io.IOException"/>
  16554. </constructor>
  16555. <method name="decompress" return="int"
  16556. abstract="false" native="false" synchronized="false"
  16557. static="false" final="false" visibility="protected"
  16558. deprecated="not deprecated">
  16559. <param name="b" type="byte[]"/>
  16560. <param name="off" type="int"/>
  16561. <param name="len" type="int"/>
  16562. <exception name="IOException" type="java.io.IOException"/>
  16563. </method>
  16564. <method name="getCompressedData" return="int"
  16565. abstract="false" native="false" synchronized="false"
  16566. static="false" final="false" visibility="protected"
  16567. deprecated="not deprecated">
  16568. <exception name="IOException" type="java.io.IOException"/>
  16569. </method>
  16570. <method name="resetState"
  16571. abstract="false" native="false" synchronized="false"
  16572. static="false" final="false" visibility="public"
  16573. deprecated="not deprecated">
  16574. <exception name="IOException" type="java.io.IOException"/>
  16575. </method>
  16576. <doc>
  16577. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16578. with 'block-based' based compression algorithms, as opposed to
  16579. 'stream-based' compression algorithms.]]>
  16580. </doc>
  16581. </class>
  16582. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16583. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16584. <class name="BZip2Codec" extends="java.lang.Object"
  16585. abstract="false"
  16586. static="false" final="false" visibility="public"
  16587. deprecated="not deprecated">
  16588. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  16589. <constructor name="BZip2Codec"
  16590. static="false" final="false" visibility="public"
  16591. deprecated="not deprecated">
  16592. <doc>
  16593. <![CDATA[Creates a new instance of BZip2Codec]]>
  16594. </doc>
  16595. </constructor>
  16596. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16597. abstract="false" native="false" synchronized="false"
  16598. static="false" final="false" visibility="public"
  16599. deprecated="not deprecated">
  16600. <param name="out" type="java.io.OutputStream"/>
  16601. <exception name="IOException" type="java.io.IOException"/>
  16602. <doc>
  16603. <![CDATA[Creates CompressionOutputStream for BZip2
  16604. @param out
  16605. The output Stream
  16606. @return The BZip2 CompressionOutputStream
  16607. @throws java.io.IOException
  16608. Throws IO exception]]>
  16609. </doc>
  16610. </method>
  16611. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16612. abstract="false" native="false" synchronized="false"
  16613. static="false" final="false" visibility="public"
  16614. deprecated="not deprecated">
  16615. <param name="out" type="java.io.OutputStream"/>
  16616. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16617. <exception name="IOException" type="java.io.IOException"/>
  16618. <doc>
  16619. <![CDATA[Creates a compressor using given OutputStream.
  16620. @return CompressionOutputStream
  16621. @throws java.io.IOException]]>
  16622. </doc>
  16623. </method>
  16624. <method name="getCompressorType" return="java.lang.Class"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="false" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <doc>
  16629. <![CDATA[This functionality is currently not supported.
  16630. @return BZip2DummyCompressor.class]]>
  16631. </doc>
  16632. </method>
  16633. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16634. abstract="false" native="false" synchronized="false"
  16635. static="false" final="false" visibility="public"
  16636. deprecated="not deprecated">
  16637. <doc>
  16638. <![CDATA[This functionality is currently not supported.
  16639. @return Compressor]]>
  16640. </doc>
  16641. </method>
  16642. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16643. abstract="false" native="false" synchronized="false"
  16644. static="false" final="false" visibility="public"
  16645. deprecated="not deprecated">
  16646. <param name="in" type="java.io.InputStream"/>
  16647. <exception name="IOException" type="java.io.IOException"/>
  16648. <doc>
  16649. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16650. @param in
  16651. The InputStream
  16652. @return Returns CompressionInputStream for BZip2
  16653. @throws java.io.IOException
  16654. Throws IOException]]>
  16655. </doc>
  16656. </method>
  16657. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16658. abstract="false" native="false" synchronized="false"
  16659. static="false" final="false" visibility="public"
  16660. deprecated="not deprecated">
  16661. <param name="in" type="java.io.InputStream"/>
  16662. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16663. <exception name="IOException" type="java.io.IOException"/>
  16664. <doc>
  16665. <![CDATA[This functionality is currently not supported.
  16666. @return CompressionInputStream]]>
  16667. </doc>
  16668. </method>
  16669. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16670. abstract="false" native="false" synchronized="false"
  16671. static="false" final="false" visibility="public"
  16672. deprecated="not deprecated">
  16673. <param name="seekableIn" type="java.io.InputStream"/>
  16674. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16675. <param name="start" type="long"/>
  16676. <param name="end" type="long"/>
  16677. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16678. <exception name="IOException" type="java.io.IOException"/>
  16679. <doc>
  16680. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  16681. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  16682. @param seekableIn The InputStream
  16683. @param start The start offset into the compressed stream
  16684. @param end The end offset into the compressed stream
  16685. @param readMode Controls whether progress is reported continuously or
  16686. only at block boundaries.
  16687. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  16688. </doc>
  16689. </method>
  16690. <method name="getDecompressorType" return="java.lang.Class"
  16691. abstract="false" native="false" synchronized="false"
  16692. static="false" final="false" visibility="public"
  16693. deprecated="not deprecated">
  16694. <doc>
  16695. <![CDATA[This functionality is currently not supported.
  16696. @return BZip2DummyDecompressor.class]]>
  16697. </doc>
  16698. </method>
  16699. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16700. abstract="false" native="false" synchronized="false"
  16701. static="false" final="false" visibility="public"
  16702. deprecated="not deprecated">
  16703. <doc>
  16704. <![CDATA[This functionality is currently not supported.
  16705. @return Decompressor]]>
  16706. </doc>
  16707. </method>
  16708. <method name="getDefaultExtension" return="java.lang.String"
  16709. abstract="false" native="false" synchronized="false"
  16710. static="false" final="false" visibility="public"
  16711. deprecated="not deprecated">
  16712. <doc>
  16713. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16714. @return A String telling the default bzip2 file extension]]>
  16715. </doc>
  16716. </method>
  16717. <doc>
  16718. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16719. compression and decompression. Currently we dont have an implementation of
  16720. the Compressor and Decompressor interfaces, so those methods of
  16721. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16722. UnsupportedOperationException.]]>
  16723. </doc>
  16724. </class>
  16725. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16726. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16727. <class name="CodecPool" extends="java.lang.Object"
  16728. abstract="false"
  16729. static="false" final="false" visibility="public"
  16730. deprecated="not deprecated">
  16731. <constructor name="CodecPool"
  16732. static="false" final="false" visibility="public"
  16733. deprecated="not deprecated">
  16734. </constructor>
  16735. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16736. abstract="false" native="false" synchronized="false"
  16737. static="true" final="false" visibility="public"
  16738. deprecated="not deprecated">
  16739. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16740. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16741. <doc>
  16742. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16743. pool or a new one.
  16744. @param codec the <code>CompressionCodec</code> for which to get the
  16745. <code>Compressor</code>
  16746. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16747. @return <code>Compressor</code> for the given
  16748. <code>CompressionCodec</code> from the pool or a new one]]>
  16749. </doc>
  16750. </method>
  16751. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16752. abstract="false" native="false" synchronized="false"
  16753. static="true" final="false" visibility="public"
  16754. deprecated="not deprecated">
  16755. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16756. </method>
  16757. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16758. abstract="false" native="false" synchronized="false"
  16759. static="true" final="false" visibility="public"
  16760. deprecated="not deprecated">
  16761. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16762. <doc>
  16763. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16764. pool or a new one.
  16765. @param codec the <code>CompressionCodec</code> for which to get the
  16766. <code>Decompressor</code>
  16767. @return <code>Decompressor</code> for the given
  16768. <code>CompressionCodec</code> the pool or a new one]]>
  16769. </doc>
  16770. </method>
  16771. <method name="returnCompressor"
  16772. abstract="false" native="false" synchronized="false"
  16773. static="true" final="false" visibility="public"
  16774. deprecated="not deprecated">
  16775. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16776. <doc>
  16777. <![CDATA[Return the {@link Compressor} to the pool.
  16778. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16779. </doc>
  16780. </method>
  16781. <method name="returnDecompressor"
  16782. abstract="false" native="false" synchronized="false"
  16783. static="true" final="false" visibility="public"
  16784. deprecated="not deprecated">
  16785. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16786. <doc>
  16787. <![CDATA[Return the {@link Decompressor} to the pool.
  16788. @param decompressor the <code>Decompressor</code> to be returned to the
  16789. pool]]>
  16790. </doc>
  16791. </method>
  16792. <doc>
  16793. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16794. (possibly native) compression/decompression codecs.]]>
  16795. </doc>
  16796. </class>
  16797. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16798. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16799. <interface name="CompressionCodec" abstract="true"
  16800. static="false" final="false" visibility="public"
  16801. deprecated="not deprecated">
  16802. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16803. abstract="false" native="false" synchronized="false"
  16804. static="false" final="false" visibility="public"
  16805. deprecated="not deprecated">
  16806. <param name="out" type="java.io.OutputStream"/>
  16807. <exception name="IOException" type="java.io.IOException"/>
  16808. <doc>
  16809. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16810. {@link OutputStream}.
  16811. @param out the location for the final output stream
  16812. @return a stream the user can write uncompressed data to have it compressed
  16813. @throws IOException]]>
  16814. </doc>
  16815. </method>
  16816. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16817. abstract="false" native="false" synchronized="false"
  16818. static="false" final="false" visibility="public"
  16819. deprecated="not deprecated">
  16820. <param name="out" type="java.io.OutputStream"/>
  16821. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16822. <exception name="IOException" type="java.io.IOException"/>
  16823. <doc>
  16824. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16825. {@link OutputStream} with the given {@link Compressor}.
  16826. @param out the location for the final output stream
  16827. @param compressor compressor to use
  16828. @return a stream the user can write uncompressed data to have it compressed
  16829. @throws IOException]]>
  16830. </doc>
  16831. </method>
  16832. <method name="getCompressorType" return="java.lang.Class"
  16833. abstract="false" native="false" synchronized="false"
  16834. static="false" final="false" visibility="public"
  16835. deprecated="not deprecated">
  16836. <doc>
  16837. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16838. @return the type of compressor needed by this codec.]]>
  16839. </doc>
  16840. </method>
  16841. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16842. abstract="false" native="false" synchronized="false"
  16843. static="false" final="false" visibility="public"
  16844. deprecated="not deprecated">
  16845. <doc>
  16846. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16847. @return a new compressor for use by this codec]]>
  16848. </doc>
  16849. </method>
  16850. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16851. abstract="false" native="false" synchronized="false"
  16852. static="false" final="false" visibility="public"
  16853. deprecated="not deprecated">
  16854. <param name="in" type="java.io.InputStream"/>
  16855. <exception name="IOException" type="java.io.IOException"/>
  16856. <doc>
  16857. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16858. @param in the stream to read compressed bytes from
  16859. @return a stream to read uncompressed bytes from
  16860. @throws IOException]]>
  16861. </doc>
  16862. </method>
  16863. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16864. abstract="false" native="false" synchronized="false"
  16865. static="false" final="false" visibility="public"
  16866. deprecated="not deprecated">
  16867. <param name="in" type="java.io.InputStream"/>
  16868. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16869. <exception name="IOException" type="java.io.IOException"/>
  16870. <doc>
  16871. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16872. {@link InputStream} with the given {@link Decompressor}.
  16873. @param in the stream to read compressed bytes from
  16874. @param decompressor decompressor to use
  16875. @return a stream to read uncompressed bytes from
  16876. @throws IOException]]>
  16877. </doc>
  16878. </method>
  16879. <method name="getDecompressorType" return="java.lang.Class"
  16880. abstract="false" native="false" synchronized="false"
  16881. static="false" final="false" visibility="public"
  16882. deprecated="not deprecated">
  16883. <doc>
  16884. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16885. @return the type of decompressor needed by this codec.]]>
  16886. </doc>
  16887. </method>
  16888. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16889. abstract="false" native="false" synchronized="false"
  16890. static="false" final="false" visibility="public"
  16891. deprecated="not deprecated">
  16892. <doc>
  16893. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16894. @return a new decompressor for use by this codec]]>
  16895. </doc>
  16896. </method>
  16897. <method name="getDefaultExtension" return="java.lang.String"
  16898. abstract="false" native="false" synchronized="false"
  16899. static="false" final="false" visibility="public"
  16900. deprecated="not deprecated">
  16901. <doc>
  16902. <![CDATA[Get the default filename extension for this kind of compression.
  16903. @return the extension including the '.']]>
  16904. </doc>
  16905. </method>
  16906. <doc>
  16907. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16908. </doc>
  16909. </interface>
  16910. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16911. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16912. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16913. abstract="false"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16917. static="false" final="false" visibility="public"
  16918. deprecated="not deprecated">
  16919. <doc>
  16920. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16921. and register them. Defaults to gzip and zip.]]>
  16922. </doc>
  16923. </constructor>
  16924. <method name="toString" return="java.lang.String"
  16925. abstract="false" native="false" synchronized="false"
  16926. static="false" final="false" visibility="public"
  16927. deprecated="not deprecated">
  16928. <doc>
  16929. <![CDATA[Print the extension map out as a string.]]>
  16930. </doc>
  16931. </method>
  16932. <method name="getCodecClasses" return="java.util.List"
  16933. abstract="false" native="false" synchronized="false"
  16934. static="true" final="false" visibility="public"
  16935. deprecated="not deprecated">
  16936. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16937. <doc>
  16938. <![CDATA[Get the list of codecs listed in the configuration
  16939. @param conf the configuration to look in
  16940. @return a list of the Configuration classes or null if the attribute
  16941. was not set]]>
  16942. </doc>
  16943. </method>
  16944. <method name="setCodecClasses"
  16945. abstract="false" native="false" synchronized="false"
  16946. static="true" final="false" visibility="public"
  16947. deprecated="not deprecated">
  16948. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16949. <param name="classes" type="java.util.List"/>
  16950. <doc>
  16951. <![CDATA[Sets a list of codec classes in the configuration.
  16952. @param conf the configuration to modify
  16953. @param classes the list of classes to set]]>
  16954. </doc>
  16955. </method>
  16956. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16957. abstract="false" native="false" synchronized="false"
  16958. static="false" final="false" visibility="public"
  16959. deprecated="not deprecated">
  16960. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16961. <doc>
  16962. <![CDATA[Find the relevant compression codec for the given file based on its
  16963. filename suffix.
  16964. @param file the filename to check
  16965. @return the codec object]]>
  16966. </doc>
  16967. </method>
  16968. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  16969. abstract="false" native="false" synchronized="false"
  16970. static="false" final="false" visibility="public"
  16971. deprecated="not deprecated">
  16972. <param name="classname" type="java.lang.String"/>
  16973. <doc>
  16974. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  16975. @param classname the canonical class name of the codec
  16976. @return the codec object]]>
  16977. </doc>
  16978. </method>
  16979. <method name="removeSuffix" return="java.lang.String"
  16980. abstract="false" native="false" synchronized="false"
  16981. static="true" final="false" visibility="public"
  16982. deprecated="not deprecated">
  16983. <param name="filename" type="java.lang.String"/>
  16984. <param name="suffix" type="java.lang.String"/>
  16985. <doc>
  16986. <![CDATA[Removes a suffix from a filename, if it has it.
  16987. @param filename the filename to strip
  16988. @param suffix the suffix to remove
  16989. @return the shortened filename]]>
  16990. </doc>
  16991. </method>
  16992. <method name="main"
  16993. abstract="false" native="false" synchronized="false"
  16994. static="true" final="false" visibility="public"
  16995. deprecated="not deprecated">
  16996. <param name="args" type="java.lang.String[]"/>
  16997. <exception name="Exception" type="java.lang.Exception"/>
  16998. <doc>
  16999. <![CDATA[A little test program.
  17000. @param args]]>
  17001. </doc>
  17002. </method>
  17003. <field name="LOG" type="org.apache.commons.logging.Log"
  17004. transient="false" volatile="false"
  17005. static="true" final="true" visibility="public"
  17006. deprecated="not deprecated">
  17007. </field>
  17008. <doc>
  17009. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  17010. </doc>
  17011. </class>
  17012. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  17013. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  17014. <class name="CompressionInputStream" extends="java.io.InputStream"
  17015. abstract="true"
  17016. static="false" final="false" visibility="public"
  17017. deprecated="not deprecated">
  17018. <implements name="org.apache.hadoop.fs.Seekable"/>
  17019. <constructor name="CompressionInputStream" type="java.io.InputStream"
  17020. static="false" final="false" visibility="protected"
  17021. deprecated="not deprecated">
  17022. <exception name="IOException" type="java.io.IOException"/>
  17023. <doc>
  17024. <![CDATA[Create a compression input stream that reads
  17025. the decompressed bytes from the given stream.
  17026. @param in The input stream to be compressed.
  17027. @throws IOException]]>
  17028. </doc>
  17029. </constructor>
  17030. <method name="close"
  17031. abstract="false" native="false" synchronized="false"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. <exception name="IOException" type="java.io.IOException"/>
  17035. </method>
  17036. <method name="read" return="int"
  17037. abstract="true" native="false" synchronized="false"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. <param name="b" type="byte[]"/>
  17041. <param name="off" type="int"/>
  17042. <param name="len" type="int"/>
  17043. <exception name="IOException" type="java.io.IOException"/>
  17044. <doc>
  17045. <![CDATA[Read bytes from the stream.
  17046. Made abstract to prevent leakage to underlying stream.]]>
  17047. </doc>
  17048. </method>
  17049. <method name="resetState"
  17050. abstract="true" native="false" synchronized="false"
  17051. static="false" final="false" visibility="public"
  17052. deprecated="not deprecated">
  17053. <exception name="IOException" type="java.io.IOException"/>
  17054. <doc>
  17055. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  17056. as the underlying stream may have been repositioned.]]>
  17057. </doc>
  17058. </method>
  17059. <method name="getPos" return="long"
  17060. abstract="false" native="false" synchronized="false"
  17061. static="false" final="false" visibility="public"
  17062. deprecated="not deprecated">
  17063. <exception name="IOException" type="java.io.IOException"/>
  17064. <doc>
  17065. <![CDATA[This method returns the current position in the stream.
  17066. @return Current position in stream as a long]]>
  17067. </doc>
  17068. </method>
  17069. <method name="seek"
  17070. abstract="false" native="false" synchronized="false"
  17071. static="false" final="false" visibility="public"
  17072. deprecated="not deprecated">
  17073. <param name="pos" type="long"/>
  17074. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  17075. <doc>
  17076. <![CDATA[This method is current not supported.
  17077. @throws UnsupportedOperationException]]>
  17078. </doc>
  17079. </method>
  17080. <method name="seekToNewSource" return="boolean"
  17081. abstract="false" native="false" synchronized="false"
  17082. static="false" final="false" visibility="public"
  17083. deprecated="not deprecated">
  17084. <param name="targetPos" type="long"/>
  17085. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  17086. <doc>
  17087. <![CDATA[This method is current not supported.
  17088. @throws UnsupportedOperationException]]>
  17089. </doc>
  17090. </method>
  17091. <field name="in" type="java.io.InputStream"
  17092. transient="false" volatile="false"
  17093. static="false" final="true" visibility="protected"
  17094. deprecated="not deprecated">
  17095. <doc>
  17096. <![CDATA[The input stream to be compressed.]]>
  17097. </doc>
  17098. </field>
  17099. <field name="maxAvailableData" type="long"
  17100. transient="false" volatile="false"
  17101. static="false" final="false" visibility="protected"
  17102. deprecated="not deprecated">
  17103. </field>
  17104. <doc>
  17105. <![CDATA[A compression input stream.
  17106. <p>Implementations are assumed to be buffered. This permits clients to
  17107. reposition the underlying input stream then call {@link #resetState()},
  17108. without having to also synchronize client buffers.]]>
  17109. </doc>
  17110. </class>
  17111. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  17112. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  17113. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  17114. abstract="true"
  17115. static="false" final="false" visibility="public"
  17116. deprecated="not deprecated">
  17117. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  17118. static="false" final="false" visibility="protected"
  17119. deprecated="not deprecated">
  17120. <doc>
  17121. <![CDATA[Create a compression output stream that writes
  17122. the compressed bytes to the given stream.
  17123. @param out]]>
  17124. </doc>
  17125. </constructor>
  17126. <method name="close"
  17127. abstract="false" native="false" synchronized="false"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. <exception name="IOException" type="java.io.IOException"/>
  17131. </method>
  17132. <method name="flush"
  17133. abstract="false" native="false" synchronized="false"
  17134. static="false" final="false" visibility="public"
  17135. deprecated="not deprecated">
  17136. <exception name="IOException" type="java.io.IOException"/>
  17137. </method>
  17138. <method name="write"
  17139. abstract="true" native="false" synchronized="false"
  17140. static="false" final="false" visibility="public"
  17141. deprecated="not deprecated">
  17142. <param name="b" type="byte[]"/>
  17143. <param name="off" type="int"/>
  17144. <param name="len" type="int"/>
  17145. <exception name="IOException" type="java.io.IOException"/>
  17146. <doc>
  17147. <![CDATA[Write compressed bytes to the stream.
  17148. Made abstract to prevent leakage to underlying stream.]]>
  17149. </doc>
  17150. </method>
  17151. <method name="finish"
  17152. abstract="true" native="false" synchronized="false"
  17153. static="false" final="false" visibility="public"
  17154. deprecated="not deprecated">
  17155. <exception name="IOException" type="java.io.IOException"/>
  17156. <doc>
  17157. <![CDATA[Finishes writing compressed data to the output stream
  17158. without closing the underlying stream.]]>
  17159. </doc>
  17160. </method>
  17161. <method name="resetState"
  17162. abstract="true" native="false" synchronized="false"
  17163. static="false" final="false" visibility="public"
  17164. deprecated="not deprecated">
  17165. <exception name="IOException" type="java.io.IOException"/>
  17166. <doc>
  17167. <![CDATA[Reset the compression to the initial state.
  17168. Does not reset the underlying stream.]]>
  17169. </doc>
  17170. </method>
  17171. <field name="out" type="java.io.OutputStream"
  17172. transient="false" volatile="false"
  17173. static="false" final="true" visibility="protected"
  17174. deprecated="not deprecated">
  17175. <doc>
  17176. <![CDATA[The output stream to be compressed.]]>
  17177. </doc>
  17178. </field>
  17179. <doc>
  17180. <![CDATA[A compression output stream.]]>
  17181. </doc>
  17182. </class>
  17183. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  17184. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  17185. <interface name="Compressor" abstract="true"
  17186. static="false" final="false" visibility="public"
  17187. deprecated="not deprecated">
  17188. <method name="setInput"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <param name="b" type="byte[]"/>
  17193. <param name="off" type="int"/>
  17194. <param name="len" type="int"/>
  17195. <doc>
  17196. <![CDATA[Sets input data for compression.
  17197. This should be called whenever #needsInput() returns
  17198. <code>true</code> indicating that more input data is required.
  17199. @param b Input data
  17200. @param off Start offset
  17201. @param len Length]]>
  17202. </doc>
  17203. </method>
  17204. <method name="needsInput" return="boolean"
  17205. abstract="false" native="false" synchronized="false"
  17206. static="false" final="false" visibility="public"
  17207. deprecated="not deprecated">
  17208. <doc>
  17209. <![CDATA[Returns true if the input data buffer is empty and
  17210. #setInput() should be called to provide more input.
  17211. @return <code>true</code> if the input data buffer is empty and
  17212. #setInput() should be called in order to provide more input.]]>
  17213. </doc>
  17214. </method>
  17215. <method name="setDictionary"
  17216. abstract="false" native="false" synchronized="false"
  17217. static="false" final="false" visibility="public"
  17218. deprecated="not deprecated">
  17219. <param name="b" type="byte[]"/>
  17220. <param name="off" type="int"/>
  17221. <param name="len" type="int"/>
  17222. <doc>
  17223. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17224. is used when the history buffer can be predetermined.
  17225. @param b Dictionary data bytes
  17226. @param off Start offset
  17227. @param len Length]]>
  17228. </doc>
  17229. </method>
  17230. <method name="getBytesRead" return="long"
  17231. abstract="false" native="false" synchronized="false"
  17232. static="false" final="false" visibility="public"
  17233. deprecated="not deprecated">
  17234. <doc>
  17235. <![CDATA[Return number of uncompressed bytes input so far.]]>
  17236. </doc>
  17237. </method>
  17238. <method name="getBytesWritten" return="long"
  17239. abstract="false" native="false" synchronized="false"
  17240. static="false" final="false" visibility="public"
  17241. deprecated="not deprecated">
  17242. <doc>
  17243. <![CDATA[Return number of compressed bytes output so far.]]>
  17244. </doc>
  17245. </method>
  17246. <method name="finish"
  17247. abstract="false" native="false" synchronized="false"
  17248. static="false" final="false" visibility="public"
  17249. deprecated="not deprecated">
  17250. <doc>
  17251. <![CDATA[When called, indicates that compression should end
  17252. with the current contents of the input buffer.]]>
  17253. </doc>
  17254. </method>
  17255. <method name="finished" return="boolean"
  17256. abstract="false" native="false" synchronized="false"
  17257. static="false" final="false" visibility="public"
  17258. deprecated="not deprecated">
  17259. <doc>
  17260. <![CDATA[Returns true if the end of the compressed
  17261. data output stream has been reached.
  17262. @return <code>true</code> if the end of the compressed
  17263. data output stream has been reached.]]>
  17264. </doc>
  17265. </method>
  17266. <method name="compress" return="int"
  17267. abstract="false" native="false" synchronized="false"
  17268. static="false" final="false" visibility="public"
  17269. deprecated="not deprecated">
  17270. <param name="b" type="byte[]"/>
  17271. <param name="off" type="int"/>
  17272. <param name="len" type="int"/>
  17273. <exception name="IOException" type="java.io.IOException"/>
  17274. <doc>
  17275. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  17276. of bytes of compressed data. A return value of 0 indicates that
  17277. needsInput() should be called in order to determine if more input
  17278. data is required.
  17279. @param b Buffer for the compressed data
  17280. @param off Start offset of the data
  17281. @param len Size of the buffer
  17282. @return The actual number of bytes of compressed data.]]>
  17283. </doc>
  17284. </method>
  17285. <method name="reset"
  17286. abstract="false" native="false" synchronized="false"
  17287. static="false" final="false" visibility="public"
  17288. deprecated="not deprecated">
  17289. <doc>
  17290. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  17291. </doc>
  17292. </method>
  17293. <method name="end"
  17294. abstract="false" native="false" synchronized="false"
  17295. static="false" final="false" visibility="public"
  17296. deprecated="not deprecated">
  17297. <doc>
  17298. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  17299. </doc>
  17300. </method>
  17301. <method name="reinit"
  17302. abstract="false" native="false" synchronized="false"
  17303. static="false" final="false" visibility="public"
  17304. deprecated="not deprecated">
  17305. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17306. <doc>
  17307. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  17308. the given Configuration
  17309. @param conf Configuration from which new setting are fetched]]>
  17310. </doc>
  17311. </method>
  17312. <doc>
  17313. <![CDATA[Specification of a stream-based 'compressor' which can be
  17314. plugged into a {@link CompressionOutputStream} to compress data.
  17315. This is modelled after {@link java.util.zip.Deflater}]]>
  17316. </doc>
  17317. </interface>
  17318. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  17319. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  17320. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  17321. abstract="false"
  17322. static="false" final="false" visibility="public"
  17323. deprecated="not deprecated">
  17324. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  17325. static="false" final="false" visibility="public"
  17326. deprecated="not deprecated">
  17327. </constructor>
  17328. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  17329. static="false" final="false" visibility="public"
  17330. deprecated="not deprecated">
  17331. </constructor>
  17332. <constructor name="CompressorStream" type="java.io.OutputStream"
  17333. static="false" final="false" visibility="protected"
  17334. deprecated="not deprecated">
  17335. <doc>
  17336. <![CDATA[Allow derived classes to directly set the underlying stream.
  17337. @param out Underlying output stream.]]>
  17338. </doc>
  17339. </constructor>
  17340. <method name="write"
  17341. abstract="false" native="false" synchronized="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <param name="b" type="byte[]"/>
  17345. <param name="off" type="int"/>
  17346. <param name="len" type="int"/>
  17347. <exception name="IOException" type="java.io.IOException"/>
  17348. </method>
  17349. <method name="compress"
  17350. abstract="false" native="false" synchronized="false"
  17351. static="false" final="false" visibility="protected"
  17352. deprecated="not deprecated">
  17353. <exception name="IOException" type="java.io.IOException"/>
  17354. </method>
  17355. <method name="finish"
  17356. abstract="false" native="false" synchronized="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. <exception name="IOException" type="java.io.IOException"/>
  17360. </method>
  17361. <method name="resetState"
  17362. abstract="false" native="false" synchronized="false"
  17363. static="false" final="false" visibility="public"
  17364. deprecated="not deprecated">
  17365. <exception name="IOException" type="java.io.IOException"/>
  17366. </method>
  17367. <method name="close"
  17368. abstract="false" native="false" synchronized="false"
  17369. static="false" final="false" visibility="public"
  17370. deprecated="not deprecated">
  17371. <exception name="IOException" type="java.io.IOException"/>
  17372. </method>
  17373. <method name="write"
  17374. abstract="false" native="false" synchronized="false"
  17375. static="false" final="false" visibility="public"
  17376. deprecated="not deprecated">
  17377. <param name="b" type="int"/>
  17378. <exception name="IOException" type="java.io.IOException"/>
  17379. </method>
  17380. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  17381. transient="false" volatile="false"
  17382. static="false" final="false" visibility="protected"
  17383. deprecated="not deprecated">
  17384. </field>
  17385. <field name="buffer" type="byte[]"
  17386. transient="false" volatile="false"
  17387. static="false" final="false" visibility="protected"
  17388. deprecated="not deprecated">
  17389. </field>
  17390. <field name="closed" type="boolean"
  17391. transient="false" volatile="false"
  17392. static="false" final="false" visibility="protected"
  17393. deprecated="not deprecated">
  17394. </field>
  17395. </class>
  17396. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  17397. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  17398. <interface name="Decompressor" abstract="true"
  17399. static="false" final="false" visibility="public"
  17400. deprecated="not deprecated">
  17401. <method name="setInput"
  17402. abstract="false" native="false" synchronized="false"
  17403. static="false" final="false" visibility="public"
  17404. deprecated="not deprecated">
  17405. <param name="b" type="byte[]"/>
  17406. <param name="off" type="int"/>
  17407. <param name="len" type="int"/>
  17408. <doc>
  17409. <![CDATA[Sets input data for decompression.
  17410. This should be called if and only if {@link #needsInput()} returns
  17411. <code>true</code> indicating that more input data is required.
  17412. (Both native and non-native versions of various Decompressors require
  17413. that the data passed in via <code>b[]</code> remain unmodified until
  17414. the caller is explicitly notified--via {@link #needsInput()}--that the
  17415. buffer may be safely modified. With this requirement, an extra
  17416. buffer-copy can be avoided.)
  17417. @param b Input data
  17418. @param off Start offset
  17419. @param len Length]]>
  17420. </doc>
  17421. </method>
  17422. <method name="needsInput" return="boolean"
  17423. abstract="false" native="false" synchronized="false"
  17424. static="false" final="false" visibility="public"
  17425. deprecated="not deprecated">
  17426. <doc>
  17427. <![CDATA[Returns true if the input data buffer is empty and
  17428. {@link #setInput(byte[], int, int)} should be called to
  17429. provide more input.
  17430. @return <code>true</code> if the input data buffer is empty and
  17431. {@link #setInput(byte[], int, int)} should be called in
  17432. order to provide more input.]]>
  17433. </doc>
  17434. </method>
  17435. <method name="setDictionary"
  17436. abstract="false" native="false" synchronized="false"
  17437. static="false" final="false" visibility="public"
  17438. deprecated="not deprecated">
  17439. <param name="b" type="byte[]"/>
  17440. <param name="off" type="int"/>
  17441. <param name="len" type="int"/>
  17442. <doc>
  17443. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17444. is used when the history buffer can be predetermined.
  17445. @param b Dictionary data bytes
  17446. @param off Start offset
  17447. @param len Length]]>
  17448. </doc>
  17449. </method>
  17450. <method name="needsDictionary" return="boolean"
  17451. abstract="false" native="false" synchronized="false"
  17452. static="false" final="false" visibility="public"
  17453. deprecated="not deprecated">
  17454. <doc>
  17455. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  17456. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  17457. </doc>
  17458. </method>
  17459. <method name="finished" return="boolean"
  17460. abstract="false" native="false" synchronized="false"
  17461. static="false" final="false" visibility="public"
  17462. deprecated="not deprecated">
  17463. <doc>
  17464. <![CDATA[Returns true if the end of the decompressed
  17465. data output stream has been reached.
  17466. @return <code>true</code> if the end of the decompressed
  17467. data output stream has been reached.]]>
  17468. </doc>
  17469. </method>
  17470. <method name="decompress" return="int"
  17471. abstract="false" native="false" synchronized="false"
  17472. static="false" final="false" visibility="public"
  17473. deprecated="not deprecated">
  17474. <param name="b" type="byte[]"/>
  17475. <param name="off" type="int"/>
  17476. <param name="len" type="int"/>
  17477. <exception name="IOException" type="java.io.IOException"/>
  17478. <doc>
  17479. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  17480. of bytes of uncompressed data. A return value of 0 indicates that
  17481. {@link #needsInput()} should be called in order to determine if more
  17482. input data is required.
  17483. @param b Buffer for the compressed data
  17484. @param off Start offset of the data
  17485. @param len Size of the buffer
  17486. @return The actual number of bytes of compressed data.
  17487. @throws IOException]]>
  17488. </doc>
  17489. </method>
  17490. <method name="getRemaining" return="int"
  17491. abstract="false" native="false" synchronized="false"
  17492. static="false" final="false" visibility="public"
  17493. deprecated="not deprecated">
  17494. <doc>
  17495. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  17496. typically called after the decompressor has finished decompressing
  17497. the current gzip stream (a.k.a. "member").]]>
  17498. </doc>
  17499. </method>
  17500. <method name="reset"
  17501. abstract="false" native="false" synchronized="false"
  17502. static="false" final="false" visibility="public"
  17503. deprecated="not deprecated">
  17504. <doc>
  17505. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  17506. input data can be processed.]]>
  17507. </doc>
  17508. </method>
  17509. <method name="end"
  17510. abstract="false" native="false" synchronized="false"
  17511. static="false" final="false" visibility="public"
  17512. deprecated="not deprecated">
  17513. <doc>
  17514. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  17515. </doc>
  17516. </method>
  17517. <doc>
  17518. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  17519. plugged into a {@link CompressionInputStream} to compress data.
  17520. This is modelled after {@link java.util.zip.Inflater}]]>
  17521. </doc>
  17522. </interface>
  17523. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  17524. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  17525. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17526. abstract="false"
  17527. static="false" final="false" visibility="public"
  17528. deprecated="not deprecated">
  17529. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  17530. static="false" final="false" visibility="public"
  17531. deprecated="not deprecated">
  17532. <exception name="IOException" type="java.io.IOException"/>
  17533. </constructor>
  17534. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  17535. static="false" final="false" visibility="public"
  17536. deprecated="not deprecated">
  17537. <exception name="IOException" type="java.io.IOException"/>
  17538. </constructor>
  17539. <constructor name="DecompressorStream" type="java.io.InputStream"
  17540. static="false" final="false" visibility="protected"
  17541. deprecated="not deprecated">
  17542. <exception name="IOException" type="java.io.IOException"/>
  17543. <doc>
  17544. <![CDATA[Allow derived classes to directly set the underlying stream.
  17545. @param in Underlying input stream.
  17546. @throws IOException]]>
  17547. </doc>
  17548. </constructor>
  17549. <method name="read" return="int"
  17550. abstract="false" native="false" synchronized="false"
  17551. static="false" final="false" visibility="public"
  17552. deprecated="not deprecated">
  17553. <exception name="IOException" type="java.io.IOException"/>
  17554. </method>
  17555. <method name="read" return="int"
  17556. abstract="false" native="false" synchronized="false"
  17557. static="false" final="false" visibility="public"
  17558. deprecated="not deprecated">
  17559. <param name="b" type="byte[]"/>
  17560. <param name="off" type="int"/>
  17561. <param name="len" type="int"/>
  17562. <exception name="IOException" type="java.io.IOException"/>
  17563. </method>
  17564. <method name="decompress" return="int"
  17565. abstract="false" native="false" synchronized="false"
  17566. static="false" final="false" visibility="protected"
  17567. deprecated="not deprecated">
  17568. <param name="b" type="byte[]"/>
  17569. <param name="off" type="int"/>
  17570. <param name="len" type="int"/>
  17571. <exception name="IOException" type="java.io.IOException"/>
  17572. </method>
  17573. <method name="getCompressedData" return="int"
  17574. abstract="false" native="false" synchronized="false"
  17575. static="false" final="false" visibility="protected"
  17576. deprecated="not deprecated">
  17577. <exception name="IOException" type="java.io.IOException"/>
  17578. </method>
  17579. <method name="checkStream"
  17580. abstract="false" native="false" synchronized="false"
  17581. static="false" final="false" visibility="protected"
  17582. deprecated="not deprecated">
  17583. <exception name="IOException" type="java.io.IOException"/>
  17584. </method>
  17585. <method name="resetState"
  17586. abstract="false" native="false" synchronized="false"
  17587. static="false" final="false" visibility="public"
  17588. deprecated="not deprecated">
  17589. <exception name="IOException" type="java.io.IOException"/>
  17590. </method>
  17591. <method name="skip" return="long"
  17592. abstract="false" native="false" synchronized="false"
  17593. static="false" final="false" visibility="public"
  17594. deprecated="not deprecated">
  17595. <param name="n" type="long"/>
  17596. <exception name="IOException" type="java.io.IOException"/>
  17597. </method>
  17598. <method name="available" return="int"
  17599. abstract="false" native="false" synchronized="false"
  17600. static="false" final="false" visibility="public"
  17601. deprecated="not deprecated">
  17602. <exception name="IOException" type="java.io.IOException"/>
  17603. </method>
  17604. <method name="close"
  17605. abstract="false" native="false" synchronized="false"
  17606. static="false" final="false" visibility="public"
  17607. deprecated="not deprecated">
  17608. <exception name="IOException" type="java.io.IOException"/>
  17609. </method>
  17610. <method name="markSupported" return="boolean"
  17611. abstract="false" native="false" synchronized="false"
  17612. static="false" final="false" visibility="public"
  17613. deprecated="not deprecated">
  17614. </method>
  17615. <method name="mark"
  17616. abstract="false" native="false" synchronized="true"
  17617. static="false" final="false" visibility="public"
  17618. deprecated="not deprecated">
  17619. <param name="readlimit" type="int"/>
  17620. </method>
  17621. <method name="reset"
  17622. abstract="false" native="false" synchronized="true"
  17623. static="false" final="false" visibility="public"
  17624. deprecated="not deprecated">
  17625. <exception name="IOException" type="java.io.IOException"/>
  17626. </method>
  17627. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17628. transient="false" volatile="false"
  17629. static="false" final="false" visibility="protected"
  17630. deprecated="not deprecated">
  17631. </field>
  17632. <field name="buffer" type="byte[]"
  17633. transient="false" volatile="false"
  17634. static="false" final="false" visibility="protected"
  17635. deprecated="not deprecated">
  17636. </field>
  17637. <field name="eof" type="boolean"
  17638. transient="false" volatile="false"
  17639. static="false" final="false" visibility="protected"
  17640. deprecated="not deprecated">
  17641. </field>
  17642. <field name="closed" type="boolean"
  17643. transient="false" volatile="false"
  17644. static="false" final="false" visibility="protected"
  17645. deprecated="not deprecated">
  17646. </field>
  17647. </class>
  17648. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17649. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17650. <class name="DefaultCodec" extends="java.lang.Object"
  17651. abstract="false"
  17652. static="false" final="false" visibility="public"
  17653. deprecated="not deprecated">
  17654. <implements name="org.apache.hadoop.conf.Configurable"/>
  17655. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17656. <constructor name="DefaultCodec"
  17657. static="false" final="false" visibility="public"
  17658. deprecated="not deprecated">
  17659. </constructor>
  17660. <method name="setConf"
  17661. abstract="false" native="false" synchronized="false"
  17662. static="false" final="false" visibility="public"
  17663. deprecated="not deprecated">
  17664. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17665. </method>
  17666. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17667. abstract="false" native="false" synchronized="false"
  17668. static="false" final="false" visibility="public"
  17669. deprecated="not deprecated">
  17670. </method>
  17671. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17672. abstract="false" native="false" synchronized="false"
  17673. static="false" final="false" visibility="public"
  17674. deprecated="not deprecated">
  17675. <param name="out" type="java.io.OutputStream"/>
  17676. <exception name="IOException" type="java.io.IOException"/>
  17677. </method>
  17678. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <param name="out" type="java.io.OutputStream"/>
  17683. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17684. <exception name="IOException" type="java.io.IOException"/>
  17685. </method>
  17686. <method name="getCompressorType" return="java.lang.Class"
  17687. abstract="false" native="false" synchronized="false"
  17688. static="false" final="false" visibility="public"
  17689. deprecated="not deprecated">
  17690. </method>
  17691. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17692. abstract="false" native="false" synchronized="false"
  17693. static="false" final="false" visibility="public"
  17694. deprecated="not deprecated">
  17695. </method>
  17696. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17697. abstract="false" native="false" synchronized="false"
  17698. static="false" final="false" visibility="public"
  17699. deprecated="not deprecated">
  17700. <param name="in" type="java.io.InputStream"/>
  17701. <exception name="IOException" type="java.io.IOException"/>
  17702. </method>
  17703. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17704. abstract="false" native="false" synchronized="false"
  17705. static="false" final="false" visibility="public"
  17706. deprecated="not deprecated">
  17707. <param name="in" type="java.io.InputStream"/>
  17708. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17709. <exception name="IOException" type="java.io.IOException"/>
  17710. </method>
  17711. <method name="getDecompressorType" return="java.lang.Class"
  17712. abstract="false" native="false" synchronized="false"
  17713. static="false" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. </method>
  17716. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17717. abstract="false" native="false" synchronized="false"
  17718. static="false" final="false" visibility="public"
  17719. deprecated="not deprecated">
  17720. </method>
  17721. <method name="getDefaultExtension" return="java.lang.String"
  17722. abstract="false" native="false" synchronized="false"
  17723. static="false" final="false" visibility="public"
  17724. deprecated="not deprecated">
  17725. </method>
  17726. </class>
  17727. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17728. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17729. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17730. abstract="false"
  17731. static="false" final="false" visibility="public"
  17732. deprecated="not deprecated">
  17733. <constructor name="GzipCodec"
  17734. static="false" final="false" visibility="public"
  17735. deprecated="not deprecated">
  17736. </constructor>
  17737. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17738. abstract="false" native="false" synchronized="false"
  17739. static="false" final="false" visibility="public"
  17740. deprecated="not deprecated">
  17741. <param name="out" type="java.io.OutputStream"/>
  17742. <exception name="IOException" type="java.io.IOException"/>
  17743. </method>
  17744. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17745. abstract="false" native="false" synchronized="false"
  17746. static="false" final="false" visibility="public"
  17747. deprecated="not deprecated">
  17748. <param name="out" type="java.io.OutputStream"/>
  17749. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17750. <exception name="IOException" type="java.io.IOException"/>
  17751. </method>
  17752. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17753. abstract="false" native="false" synchronized="false"
  17754. static="false" final="false" visibility="public"
  17755. deprecated="not deprecated">
  17756. </method>
  17757. <method name="getCompressorType" return="java.lang.Class"
  17758. abstract="false" native="false" synchronized="false"
  17759. static="false" final="false" visibility="public"
  17760. deprecated="not deprecated">
  17761. </method>
  17762. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17763. abstract="false" native="false" synchronized="false"
  17764. static="false" final="false" visibility="public"
  17765. deprecated="not deprecated">
  17766. <param name="in" type="java.io.InputStream"/>
  17767. <exception name="IOException" type="java.io.IOException"/>
  17768. </method>
  17769. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17770. abstract="false" native="false" synchronized="false"
  17771. static="false" final="false" visibility="public"
  17772. deprecated="not deprecated">
  17773. <param name="in" type="java.io.InputStream"/>
  17774. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17775. <exception name="IOException" type="java.io.IOException"/>
  17776. </method>
  17777. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17778. abstract="false" native="false" synchronized="false"
  17779. static="false" final="false" visibility="public"
  17780. deprecated="not deprecated">
  17781. </method>
  17782. <method name="getDecompressorType" return="java.lang.Class"
  17783. abstract="false" native="false" synchronized="false"
  17784. static="false" final="false" visibility="public"
  17785. deprecated="not deprecated">
  17786. </method>
  17787. <method name="getDefaultExtension" return="java.lang.String"
  17788. abstract="false" native="false" synchronized="false"
  17789. static="false" final="false" visibility="public"
  17790. deprecated="not deprecated">
  17791. </method>
  17792. <doc>
  17793. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17794. </doc>
  17795. </class>
  17796. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17797. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17798. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17799. abstract="false"
  17800. static="true" final="false" visibility="protected"
  17801. deprecated="not deprecated">
  17802. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17803. static="false" final="false" visibility="public"
  17804. deprecated="not deprecated">
  17805. <exception name="IOException" type="java.io.IOException"/>
  17806. </constructor>
  17807. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17808. static="false" final="false" visibility="protected"
  17809. deprecated="not deprecated">
  17810. <doc>
  17811. <![CDATA[Allow children types to put a different type in here.
  17812. @param out the Deflater stream to use]]>
  17813. </doc>
  17814. </constructor>
  17815. <method name="close"
  17816. abstract="false" native="false" synchronized="false"
  17817. static="false" final="false" visibility="public"
  17818. deprecated="not deprecated">
  17819. <exception name="IOException" type="java.io.IOException"/>
  17820. </method>
  17821. <method name="flush"
  17822. abstract="false" native="false" synchronized="false"
  17823. static="false" final="false" visibility="public"
  17824. deprecated="not deprecated">
  17825. <exception name="IOException" type="java.io.IOException"/>
  17826. </method>
  17827. <method name="write"
  17828. abstract="false" native="false" synchronized="false"
  17829. static="false" final="false" visibility="public"
  17830. deprecated="not deprecated">
  17831. <param name="b" type="int"/>
  17832. <exception name="IOException" type="java.io.IOException"/>
  17833. </method>
  17834. <method name="write"
  17835. abstract="false" native="false" synchronized="false"
  17836. static="false" final="false" visibility="public"
  17837. deprecated="not deprecated">
  17838. <param name="data" type="byte[]"/>
  17839. <param name="offset" type="int"/>
  17840. <param name="length" type="int"/>
  17841. <exception name="IOException" type="java.io.IOException"/>
  17842. </method>
  17843. <method name="finish"
  17844. abstract="false" native="false" synchronized="false"
  17845. static="false" final="false" visibility="public"
  17846. deprecated="not deprecated">
  17847. <exception name="IOException" type="java.io.IOException"/>
  17848. </method>
  17849. <method name="resetState"
  17850. abstract="false" native="false" synchronized="false"
  17851. static="false" final="false" visibility="public"
  17852. deprecated="not deprecated">
  17853. <exception name="IOException" type="java.io.IOException"/>
  17854. </method>
  17855. <doc>
  17856. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17857. a CompressionOutputStream.]]>
  17858. </doc>
  17859. </class>
  17860. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17861. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17862. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17863. abstract="true"
  17864. static="false" final="false" visibility="public"
  17865. deprecated="not deprecated">
  17866. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  17867. static="false" final="false" visibility="public"
  17868. deprecated="not deprecated">
  17869. <exception name="IOException" type="java.io.IOException"/>
  17870. </constructor>
  17871. <method name="setStart"
  17872. abstract="false" native="false" synchronized="false"
  17873. static="false" final="false" visibility="protected"
  17874. deprecated="not deprecated">
  17875. <param name="start" type="long"/>
  17876. </method>
  17877. <method name="setEnd"
  17878. abstract="false" native="false" synchronized="false"
  17879. static="false" final="false" visibility="protected"
  17880. deprecated="not deprecated">
  17881. <param name="end" type="long"/>
  17882. </method>
  17883. <method name="getAdjustedStart" return="long"
  17884. abstract="false" native="false" synchronized="false"
  17885. static="false" final="false" visibility="public"
  17886. deprecated="not deprecated">
  17887. <doc>
  17888. <![CDATA[After calling createInputStream, the values of start or end
  17889. might change. So this method can be used to get the new value of start.
  17890. @return The changed value of start]]>
  17891. </doc>
  17892. </method>
  17893. <method name="getAdjustedEnd" return="long"
  17894. abstract="false" native="false" synchronized="false"
  17895. static="false" final="false" visibility="public"
  17896. deprecated="not deprecated">
  17897. <doc>
  17898. <![CDATA[After calling createInputStream, the values of start or end
  17899. might change. So this method can be used to get the new value of end.
  17900. @return The changed value of end]]>
  17901. </doc>
  17902. </method>
  17903. <doc>
  17904. <![CDATA[An InputStream covering a range of compressed data. The start and end
  17905. offsets requested by a client may be modified by the codec to fit block
  17906. boundaries or other algorithm-dependent requirements.]]>
  17907. </doc>
  17908. </class>
  17909. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17910. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17911. <interface name="SplittableCompressionCodec" abstract="true"
  17912. static="false" final="false" visibility="public"
  17913. deprecated="not deprecated">
  17914. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17915. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  17916. abstract="false" native="false" synchronized="false"
  17917. static="false" final="false" visibility="public"
  17918. deprecated="not deprecated">
  17919. <param name="seekableIn" type="java.io.InputStream"/>
  17920. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17921. <param name="start" type="long"/>
  17922. <param name="end" type="long"/>
  17923. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  17924. <exception name="IOException" type="java.io.IOException"/>
  17925. <doc>
  17926. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  17927. the codecs wants the ability to work with the underlying stream positions.
  17928. @param seekableIn The seekable input stream (seeks in compressed data)
  17929. @param start The start offset into the compressed stream. May be changed
  17930. by the underlying codec.
  17931. @param end The end offset into the compressed stream. May be changed by
  17932. the underlying codec.
  17933. @param readMode Controls whether stream position is reported continuously
  17934. from the compressed stream only only at block boundaries.
  17935. @return a stream to read uncompressed bytes from]]>
  17936. </doc>
  17937. </method>
  17938. <doc>
  17939. <![CDATA[This interface is meant to be implemented by those compression codecs
  17940. which are capable to compress / de-compress a stream starting at any
  17941. arbitrary position.
  17942. Especially the process of de-compressing a stream starting at some arbitrary
  17943. position is challenging. Most of the codecs are only able to successfully
  17944. de-compress a stream, if they start from the very beginning till the end.
  17945. One of the reasons is the stored state at the beginning of the stream which
  17946. is crucial for de-compression.
  17947. Yet there are few codecs which do not save the whole state at the beginning
  17948. of the stream and hence can be used to de-compress stream starting at any
  17949. arbitrary points. This interface is meant to be used by such codecs. Such
  17950. codecs are highly valuable, especially in the context of Hadoop, because
  17951. an input compressed file can be split and hence can be worked on by multiple
  17952. machines in parallel.]]>
  17953. </doc>
  17954. </interface>
  17955. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  17956. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17957. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  17958. abstract="false"
  17959. static="true" final="true" visibility="public"
  17960. deprecated="not deprecated">
  17961. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  17962. abstract="false" native="false" synchronized="false"
  17963. static="true" final="false" visibility="public"
  17964. deprecated="not deprecated">
  17965. </method>
  17966. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  17967. abstract="false" native="false" synchronized="false"
  17968. static="true" final="false" visibility="public"
  17969. deprecated="not deprecated">
  17970. <param name="name" type="java.lang.String"/>
  17971. </method>
  17972. <doc>
  17973. <![CDATA[During decompression, data can be read off from the decompressor in two
  17974. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  17975. of compressing data in blocks and then decompressing the blocks. In
  17976. Blocked reading mode codecs inform 'end of block' events to its caller.
  17977. While in continuous mode, the caller of codecs is unaware about the blocks
  17978. and uncompressed data is spilled out like a continuous stream.]]>
  17979. </doc>
  17980. </class>
  17981. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  17982. </package>
  17983. <package name="org.apache.hadoop.io.file.tfile">
  17984. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  17985. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  17986. abstract="false"
  17987. static="false" final="false" visibility="public"
  17988. deprecated="not deprecated">
  17989. <doc>
  17990. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  17991. </doc>
  17992. </class>
  17993. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  17994. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  17995. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  17996. abstract="false"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. <doc>
  18000. <![CDATA[Exception - No such Meta Block with the given name.]]>
  18001. </doc>
  18002. </class>
  18003. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18004. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18005. <interface name="RawComparable" abstract="true"
  18006. static="false" final="false" visibility="public"
  18007. deprecated="not deprecated">
  18008. <method name="buffer" return="byte[]"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. <doc>
  18013. <![CDATA[Get the underlying byte array.
  18014. @return The underlying byte array.]]>
  18015. </doc>
  18016. </method>
  18017. <method name="offset" return="int"
  18018. abstract="false" native="false" synchronized="false"
  18019. static="false" final="false" visibility="public"
  18020. deprecated="not deprecated">
  18021. <doc>
  18022. <![CDATA[Get the offset of the first byte in the byte array.
  18023. @return The offset of the first byte in the byte array.]]>
  18024. </doc>
  18025. </method>
  18026. <method name="size" return="int"
  18027. abstract="false" native="false" synchronized="false"
  18028. static="false" final="false" visibility="public"
  18029. deprecated="not deprecated">
  18030. <doc>
  18031. <![CDATA[Get the size of the byte range in the byte array.
  18032. @return The size of the byte range in the byte array.]]>
  18033. </doc>
  18034. </method>
  18035. <doc>
  18036. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  18037. This is useful in places where we need a single object reference to specify a
  18038. range of bytes in a byte array, such as {@link Comparable} or
  18039. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  18040. The actual comparison among RawComparable's requires an external
  18041. RawComparator and it is applications' responsibility to ensure two
  18042. RawComparable are supposed to be semantically comparable with the same
  18043. RawComparator.]]>
  18044. </doc>
  18045. </interface>
  18046. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18047. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  18048. <class name="TFile" extends="java.lang.Object"
  18049. abstract="false"
  18050. static="false" final="false" visibility="public"
  18051. deprecated="not deprecated">
  18052. <method name="makeComparator" return="java.util.Comparator"
  18053. abstract="false" native="false" synchronized="false"
  18054. static="true" final="false" visibility="public"
  18055. deprecated="not deprecated">
  18056. <param name="name" type="java.lang.String"/>
  18057. <doc>
  18058. <![CDATA[Make a raw comparator from a string name.
  18059. @param name
  18060. Comparator name
  18061. @return A RawComparable comparator.]]>
  18062. </doc>
  18063. </method>
  18064. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  18065. abstract="false" native="false" synchronized="false"
  18066. static="true" final="false" visibility="public"
  18067. deprecated="not deprecated">
  18068. <doc>
  18069. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  18070. TFile.Writer.
  18071. @return Array of strings, each represents a supported compression
  18072. algorithm. Currently, the following compression algorithms are
  18073. supported.
  18074. <ul>
  18075. <li>"none" - No compression.
  18076. <li>"lzo" - LZO compression.
  18077. <li>"gz" - GZIP compression.
  18078. </ul>]]>
  18079. </doc>
  18080. </method>
  18081. <method name="main"
  18082. abstract="false" native="false" synchronized="false"
  18083. static="true" final="false" visibility="public"
  18084. deprecated="not deprecated">
  18085. <param name="args" type="java.lang.String[]"/>
  18086. <doc>
  18087. <![CDATA[Dumping the TFile information.
  18088. @param args
  18089. A list of TFile paths.]]>
  18090. </doc>
  18091. </method>
  18092. <field name="COMPRESSION_GZ" type="java.lang.String"
  18093. transient="false" volatile="false"
  18094. static="true" final="true" visibility="public"
  18095. deprecated="not deprecated">
  18096. <doc>
  18097. <![CDATA[compression: gzip]]>
  18098. </doc>
  18099. </field>
  18100. <field name="COMPRESSION_LZO" type="java.lang.String"
  18101. transient="false" volatile="false"
  18102. static="true" final="true" visibility="public"
  18103. deprecated="not deprecated">
  18104. <doc>
  18105. <![CDATA[compression: lzo]]>
  18106. </doc>
  18107. </field>
  18108. <field name="COMPRESSION_NONE" type="java.lang.String"
  18109. transient="false" volatile="false"
  18110. static="true" final="true" visibility="public"
  18111. deprecated="not deprecated">
  18112. <doc>
  18113. <![CDATA[compression: none]]>
  18114. </doc>
  18115. </field>
  18116. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  18117. transient="false" volatile="false"
  18118. static="true" final="true" visibility="public"
  18119. deprecated="not deprecated">
  18120. <doc>
  18121. <![CDATA[comparator: memcmp]]>
  18122. </doc>
  18123. </field>
  18124. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  18125. transient="false" volatile="false"
  18126. static="true" final="true" visibility="public"
  18127. deprecated="not deprecated">
  18128. <doc>
  18129. <![CDATA[comparator prefix: java class]]>
  18130. </doc>
  18131. </field>
  18132. <doc>
  18133. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  18134. bytes. Keys are restricted to 64KB, value length is not restricted
  18135. (practically limited to the available disk storage). TFile further provides
  18136. the following features:
  18137. <ul>
  18138. <li>Block Compression.
  18139. <li>Named meta data blocks.
  18140. <li>Sorted or unsorted keys.
  18141. <li>Seek by key or by file offset.
  18142. </ul>
  18143. The memory footprint of a TFile includes the following:
  18144. <ul>
  18145. <li>Some constant overhead of reading or writing a compressed block.
  18146. <ul>
  18147. <li>Each compressed block requires one compression/decompression codec for
  18148. I/O.
  18149. <li>Temporary space to buffer the key.
  18150. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  18151. chunk encoded, so that we buffer at most one chunk of user data. By default,
  18152. the chunk buffer is 1MB. Reading chunked value does not require additional
  18153. memory.
  18154. </ul>
  18155. <li>TFile index, which is proportional to the total number of Data Blocks.
  18156. The total amount of memory needed to hold the index can be estimated as
  18157. (56+AvgKeySize)*NumBlocks.
  18158. <li>MetaBlock index, which is proportional to the total number of Meta
  18159. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  18160. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  18161. </ul>
  18162. <p>
  18163. The behavior of TFile can be customized by the following variables through
  18164. Configuration:
  18165. <ul>
  18166. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  18167. to 1MB. Values of the length less than the chunk size is guaranteed to have
  18168. known value length in read time (See
  18169. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  18170. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  18171. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  18172. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  18173. FSDataInputStream. Integer (in bytes). Default to 256KB.
  18174. </ul>
  18175. <p>
  18176. Suggestions on performance optimization.
  18177. <ul>
  18178. <li>Minimum block size. We recommend a setting of minimum block size between
  18179. 256KB to 1MB for general usage. Larger block size is preferred if files are
  18180. primarily for sequential access. However, it would lead to inefficient random
  18181. access (because there are more data to decompress). Smaller blocks are good
  18182. for random access, but require more memory to hold the block index, and may
  18183. be slower to create (because we must flush the compressor stream at the
  18184. conclusion of each data block, which leads to an FS I/O flush). Further, due
  18185. to the internal caching in Compression codec, the smallest possible block
  18186. size would be around 20KB-30KB.
  18187. <li>The current implementation does not offer true multi-threading for
  18188. reading. The implementation uses FSDataInputStream seek()+read(), which is
  18189. shown to be much faster than positioned-read call in single thread mode.
  18190. However, it also means that if multiple threads attempt to access the same
  18191. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  18192. sequentially even if they access different DFS blocks.
  18193. <li>Compression codec. Use "none" if the data is not very compressable (by
  18194. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  18195. as the starting point for experimenting. "gz" overs slightly better
  18196. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  18197. decompress, comparing to "lzo".
  18198. <li>File system buffering, if the underlying FSDataInputStream and
  18199. FSDataOutputStream is already adequately buffered; or if applications
  18200. reads/writes keys and values in large buffers, we can reduce the sizes of
  18201. input/output buffering in TFile layer by setting the configuration parameters
  18202. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  18203. </ul>
  18204. Some design rationale behind TFile can be found at <a
  18205. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  18206. </doc>
  18207. </class>
  18208. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  18209. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  18210. <class name="TFile.Reader" extends="java.lang.Object"
  18211. abstract="false"
  18212. static="true" final="false" visibility="public"
  18213. deprecated="not deprecated">
  18214. <implements name="java.io.Closeable"/>
  18215. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  18216. static="false" final="false" visibility="public"
  18217. deprecated="not deprecated">
  18218. <exception name="IOException" type="java.io.IOException"/>
  18219. <doc>
  18220. <![CDATA[Constructor
  18221. @param fsdis
  18222. FS input stream of the TFile.
  18223. @param fileLength
  18224. The length of TFile. This is required because we have no easy
  18225. way of knowing the actual size of the input file through the
  18226. File input stream.
  18227. @param conf
  18228. @throws IOException]]>
  18229. </doc>
  18230. </constructor>
  18231. <method name="close"
  18232. abstract="false" native="false" synchronized="false"
  18233. static="false" final="false" visibility="public"
  18234. deprecated="not deprecated">
  18235. <exception name="IOException" type="java.io.IOException"/>
  18236. <doc>
  18237. <![CDATA[Close the reader. The state of the Reader object is undefined after
  18238. close. Calling close() for multiple times has no effect.]]>
  18239. </doc>
  18240. </method>
  18241. <method name="getComparatorName" return="java.lang.String"
  18242. abstract="false" native="false" synchronized="false"
  18243. static="false" final="false" visibility="public"
  18244. deprecated="not deprecated">
  18245. <doc>
  18246. <![CDATA[Get the string representation of the comparator.
  18247. @return If the TFile is not sorted by keys, an empty string will be
  18248. returned. Otherwise, the actual comparator string that is
  18249. provided during the TFile creation time will be returned.]]>
  18250. </doc>
  18251. </method>
  18252. <method name="isSorted" return="boolean"
  18253. abstract="false" native="false" synchronized="false"
  18254. static="false" final="false" visibility="public"
  18255. deprecated="not deprecated">
  18256. <doc>
  18257. <![CDATA[Is the TFile sorted?
  18258. @return true if TFile is sorted.]]>
  18259. </doc>
  18260. </method>
  18261. <method name="getEntryCount" return="long"
  18262. abstract="false" native="false" synchronized="false"
  18263. static="false" final="false" visibility="public"
  18264. deprecated="not deprecated">
  18265. <doc>
  18266. <![CDATA[Get the number of key-value pair entries in TFile.
  18267. @return the number of key-value pairs in TFile]]>
  18268. </doc>
  18269. </method>
  18270. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18271. abstract="false" native="false" synchronized="false"
  18272. static="false" final="false" visibility="public"
  18273. deprecated="not deprecated">
  18274. <exception name="IOException" type="java.io.IOException"/>
  18275. <doc>
  18276. <![CDATA[Get the first key in the TFile.
  18277. @return The first key in the TFile.
  18278. @throws IOException]]>
  18279. </doc>
  18280. </method>
  18281. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18282. abstract="false" native="false" synchronized="false"
  18283. static="false" final="false" visibility="public"
  18284. deprecated="not deprecated">
  18285. <exception name="IOException" type="java.io.IOException"/>
  18286. <doc>
  18287. <![CDATA[Get the last key in the TFile.
  18288. @return The last key in the TFile.
  18289. @throws IOException]]>
  18290. </doc>
  18291. </method>
  18292. <method name="getEntryComparator" return="java.util.Comparator"
  18293. abstract="false" native="false" synchronized="false"
  18294. static="false" final="false" visibility="public"
  18295. deprecated="not deprecated">
  18296. <doc>
  18297. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  18298. stores the entries in a collection (such as PriorityQueue) and perform
  18299. sorting or comparison among entries based on the keys without copying out
  18300. the key.
  18301. @return An Entry Comparator..]]>
  18302. </doc>
  18303. </method>
  18304. <method name="getComparator" return="java.util.Comparator"
  18305. abstract="false" native="false" synchronized="false"
  18306. static="false" final="false" visibility="public"
  18307. deprecated="not deprecated">
  18308. <doc>
  18309. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  18310. string comparator representation.
  18311. @return a Comparator that can compare RawComparable's.]]>
  18312. </doc>
  18313. </method>
  18314. <method name="getMetaBlock" return="java.io.DataInputStream"
  18315. abstract="false" native="false" synchronized="false"
  18316. static="false" final="false" visibility="public"
  18317. deprecated="not deprecated">
  18318. <param name="name" type="java.lang.String"/>
  18319. <exception name="IOException" type="java.io.IOException"/>
  18320. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  18321. <doc>
  18322. <![CDATA[Stream access to a meta block.``
  18323. @param name
  18324. The name of the meta block.
  18325. @return The input stream.
  18326. @throws IOException
  18327. on I/O error.
  18328. @throws MetaBlockDoesNotExist
  18329. If the meta block with the name does not exist.]]>
  18330. </doc>
  18331. </method>
  18332. <method name="getRecordNumNear" return="long"
  18333. abstract="false" native="false" synchronized="false"
  18334. static="false" final="false" visibility="public"
  18335. deprecated="not deprecated">
  18336. <param name="offset" type="long"/>
  18337. <exception name="IOException" type="java.io.IOException"/>
  18338. <doc>
  18339. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  18340. whose byte offset in the TFile is greater than or equal to the specified
  18341. offset.
  18342. @param offset
  18343. the user supplied offset.
  18344. @return the RecordNum to the corresponding entry. If no such entry
  18345. exists, it returns the total entry count.
  18346. @throws IOException]]>
  18347. </doc>
  18348. </method>
  18349. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18350. abstract="false" native="false" synchronized="false"
  18351. static="false" final="false" visibility="public"
  18352. deprecated="not deprecated">
  18353. <param name="offset" type="long"/>
  18354. <exception name="IOException" type="java.io.IOException"/>
  18355. <doc>
  18356. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  18357. than or equal to the specified offset.
  18358. @param offset
  18359. The file offset.
  18360. @return the key that fits the requirement; or null if no such key exists
  18361. (which could happen if the offset is close to the end of the
  18362. TFile).
  18363. @throws IOException]]>
  18364. </doc>
  18365. </method>
  18366. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18367. abstract="false" native="false" synchronized="false"
  18368. static="false" final="false" visibility="public"
  18369. deprecated="not deprecated">
  18370. <exception name="IOException" type="java.io.IOException"/>
  18371. <doc>
  18372. <![CDATA[Get a scanner than can scan the whole TFile.
  18373. @return The scanner object. A valid Scanner is always returned even if
  18374. the TFile is empty.
  18375. @throws IOException]]>
  18376. </doc>
  18377. </method>
  18378. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18379. abstract="false" native="false" synchronized="false"
  18380. static="false" final="false" visibility="public"
  18381. deprecated="not deprecated">
  18382. <param name="offset" type="long"/>
  18383. <param name="length" type="long"/>
  18384. <exception name="IOException" type="java.io.IOException"/>
  18385. <doc>
  18386. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  18387. @param offset
  18388. The beginning byte offset in the TFile.
  18389. @param length
  18390. The length of the region.
  18391. @return The actual coverage of the returned scanner tries to match the
  18392. specified byte-region but always round up to the compression
  18393. block boundaries. It is possible that the returned scanner
  18394. contains zero key-value pairs even if length is positive.
  18395. @throws IOException]]>
  18396. </doc>
  18397. </method>
  18398. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18399. abstract="false" native="false" synchronized="false"
  18400. static="false" final="false" visibility="public"
  18401. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  18402. <param name="beginKey" type="byte[]"/>
  18403. <param name="endKey" type="byte[]"/>
  18404. <exception name="IOException" type="java.io.IOException"/>
  18405. <doc>
  18406. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  18407. @param beginKey
  18408. Begin key of the scan (inclusive). If null, scan from the first
  18409. key-value entry of the TFile.
  18410. @param endKey
  18411. End key of the scan (exclusive). If null, scan up to the last
  18412. key-value entry of the TFile.
  18413. @return The actual coverage of the returned scanner will cover all keys
  18414. greater than or equal to the beginKey and less than the endKey.
  18415. @throws IOException
  18416. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  18417. </doc>
  18418. </method>
  18419. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18420. abstract="false" native="false" synchronized="false"
  18421. static="false" final="false" visibility="public"
  18422. deprecated="not deprecated">
  18423. <param name="beginKey" type="byte[]"/>
  18424. <param name="endKey" type="byte[]"/>
  18425. <exception name="IOException" type="java.io.IOException"/>
  18426. <doc>
  18427. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  18428. @param beginKey
  18429. Begin key of the scan (inclusive). If null, scan from the first
  18430. key-value entry of the TFile.
  18431. @param endKey
  18432. End key of the scan (exclusive). If null, scan up to the last
  18433. key-value entry of the TFile.
  18434. @return The actual coverage of the returned scanner will cover all keys
  18435. greater than or equal to the beginKey and less than the endKey.
  18436. @throws IOException]]>
  18437. </doc>
  18438. </method>
  18439. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18440. abstract="false" native="false" synchronized="false"
  18441. static="false" final="false" visibility="public"
  18442. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  18443. instead.">
  18444. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18445. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18446. <exception name="IOException" type="java.io.IOException"/>
  18447. <doc>
  18448. <![CDATA[Get a scanner that covers a specific key range.
  18449. @param beginKey
  18450. Begin key of the scan (inclusive). If null, scan from the first
  18451. key-value entry of the TFile.
  18452. @param endKey
  18453. End key of the scan (exclusive). If null, scan up to the last
  18454. key-value entry of the TFile.
  18455. @return The actual coverage of the returned scanner will cover all keys
  18456. greater than or equal to the beginKey and less than the endKey.
  18457. @throws IOException
  18458. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  18459. instead.]]>
  18460. </doc>
  18461. </method>
  18462. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18463. abstract="false" native="false" synchronized="false"
  18464. static="false" final="false" visibility="public"
  18465. deprecated="not deprecated">
  18466. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18467. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18468. <exception name="IOException" type="java.io.IOException"/>
  18469. <doc>
  18470. <![CDATA[Get a scanner that covers a specific key range.
  18471. @param beginKey
  18472. Begin key of the scan (inclusive). If null, scan from the first
  18473. key-value entry of the TFile.
  18474. @param endKey
  18475. End key of the scan (exclusive). If null, scan up to the last
  18476. key-value entry of the TFile.
  18477. @return The actual coverage of the returned scanner will cover all keys
  18478. greater than or equal to the beginKey and less than the endKey.
  18479. @throws IOException]]>
  18480. </doc>
  18481. </method>
  18482. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  18483. abstract="false" native="false" synchronized="false"
  18484. static="false" final="false" visibility="public"
  18485. deprecated="not deprecated">
  18486. <param name="beginRecNum" type="long"/>
  18487. <param name="endRecNum" type="long"/>
  18488. <exception name="IOException" type="java.io.IOException"/>
  18489. <doc>
  18490. <![CDATA[Create a scanner that covers a range of records.
  18491. @param beginRecNum
  18492. The RecordNum for the first record (inclusive).
  18493. @param endRecNum
  18494. The RecordNum for the last record (exclusive). To scan the whole
  18495. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  18496. @return The TFile scanner that covers the specified range of records.
  18497. @throws IOException]]>
  18498. </doc>
  18499. </method>
  18500. <doc>
  18501. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  18502. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  18503. ) , a portion of TFile based on byte offsets (
  18504. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  18505. fall in a certain key range (for sorted TFile only,
  18506. {@link Reader#createScannerByKey(byte[], byte[])} or
  18507. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  18508. </doc>
  18509. </class>
  18510. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  18511. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  18512. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  18513. abstract="false"
  18514. static="true" final="false" visibility="public"
  18515. deprecated="not deprecated">
  18516. <implements name="java.io.Closeable"/>
  18517. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  18518. static="false" final="false" visibility="protected"
  18519. deprecated="not deprecated">
  18520. <exception name="IOException" type="java.io.IOException"/>
  18521. <doc>
  18522. <![CDATA[Constructor
  18523. @param reader
  18524. The TFile reader object.
  18525. @param offBegin
  18526. Begin byte-offset of the scan.
  18527. @param offEnd
  18528. End byte-offset of the scan.
  18529. @throws IOException
  18530. The offsets will be rounded to the beginning of a compressed
  18531. block whose offset is greater than or equal to the specified
  18532. offset.]]>
  18533. </doc>
  18534. </constructor>
  18535. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, org.apache.hadoop.io.file.tfile.RawComparable, org.apache.hadoop.io.file.tfile.RawComparable"
  18536. static="false" final="false" visibility="protected"
  18537. deprecated="not deprecated">
  18538. <exception name="IOException" type="java.io.IOException"/>
  18539. <doc>
  18540. <![CDATA[Constructor
  18541. @param reader
  18542. The TFile reader object.
  18543. @param beginKey
  18544. Begin key of the scan. If null, scan from the first <K,V>
  18545. entry of the TFile.
  18546. @param endKey
  18547. End key of the scan. If null, scan up to the last <K, V> entry
  18548. of the TFile.
  18549. @throws IOException]]>
  18550. </doc>
  18551. </constructor>
  18552. <method name="seekTo" return="boolean"
  18553. abstract="false" native="false" synchronized="false"
  18554. static="false" final="false" visibility="public"
  18555. deprecated="not deprecated">
  18556. <param name="key" type="byte[]"/>
  18557. <exception name="IOException" type="java.io.IOException"/>
  18558. <doc>
  18559. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  18560. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  18561. returned by the previous entry() call will be invalid.
  18562. @param key
  18563. The input key
  18564. @return true if we find an equal key.
  18565. @throws IOException]]>
  18566. </doc>
  18567. </method>
  18568. <method name="seekTo" return="boolean"
  18569. abstract="false" native="false" synchronized="false"
  18570. static="false" final="false" visibility="public"
  18571. deprecated="not deprecated">
  18572. <param name="key" type="byte[]"/>
  18573. <param name="keyOffset" type="int"/>
  18574. <param name="keyLen" type="int"/>
  18575. <exception name="IOException" type="java.io.IOException"/>
  18576. <doc>
  18577. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  18578. to the input key. The entry returned by the previous entry() call will
  18579. be invalid.
  18580. @param key
  18581. The input key
  18582. @param keyOffset
  18583. offset in the key buffer.
  18584. @param keyLen
  18585. key buffer length.
  18586. @return true if we find an equal key; false otherwise.
  18587. @throws IOException]]>
  18588. </doc>
  18589. </method>
  18590. <method name="rewind"
  18591. abstract="false" native="false" synchronized="false"
  18592. static="false" final="false" visibility="public"
  18593. deprecated="not deprecated">
  18594. <exception name="IOException" type="java.io.IOException"/>
  18595. <doc>
  18596. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  18597. previous entry() call will be invalid.
  18598. @throws IOException]]>
  18599. </doc>
  18600. </method>
  18601. <method name="seekToEnd"
  18602. abstract="false" native="false" synchronized="false"
  18603. static="false" final="false" visibility="public"
  18604. deprecated="not deprecated">
  18605. <exception name="IOException" type="java.io.IOException"/>
  18606. <doc>
  18607. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  18608. entry() call will be invalid.
  18609. @throws IOException]]>
  18610. </doc>
  18611. </method>
  18612. <method name="lowerBound"
  18613. abstract="false" native="false" synchronized="false"
  18614. static="false" final="false" visibility="public"
  18615. deprecated="not deprecated">
  18616. <param name="key" type="byte[]"/>
  18617. <exception name="IOException" type="java.io.IOException"/>
  18618. <doc>
  18619. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  18620. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  18621. entry returned by the previous entry() call will be invalid.
  18622. @param key
  18623. The input key
  18624. @throws IOException]]>
  18625. </doc>
  18626. </method>
  18627. <method name="lowerBound"
  18628. abstract="false" native="false" synchronized="false"
  18629. static="false" final="false" visibility="public"
  18630. deprecated="not deprecated">
  18631. <param name="key" type="byte[]"/>
  18632. <param name="keyOffset" type="int"/>
  18633. <param name="keyLen" type="int"/>
  18634. <exception name="IOException" type="java.io.IOException"/>
  18635. <doc>
  18636. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  18637. to the input key. The entry returned by the previous entry() call will
  18638. be invalid.
  18639. @param key
  18640. The input key
  18641. @param keyOffset
  18642. offset in the key buffer.
  18643. @param keyLen
  18644. key buffer length.
  18645. @throws IOException]]>
  18646. </doc>
  18647. </method>
  18648. <method name="upperBound"
  18649. abstract="false" native="false" synchronized="false"
  18650. static="false" final="false" visibility="public"
  18651. deprecated="not deprecated">
  18652. <param name="key" type="byte[]"/>
  18653. <exception name="IOException" type="java.io.IOException"/>
  18654. <doc>
  18655. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  18656. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  18657. returned by the previous entry() call will be invalid.
  18658. @param key
  18659. The input key
  18660. @throws IOException]]>
  18661. </doc>
  18662. </method>
  18663. <method name="upperBound"
  18664. abstract="false" native="false" synchronized="false"
  18665. static="false" final="false" visibility="public"
  18666. deprecated="not deprecated">
  18667. <param name="key" type="byte[]"/>
  18668. <param name="keyOffset" type="int"/>
  18669. <param name="keyLen" type="int"/>
  18670. <exception name="IOException" type="java.io.IOException"/>
  18671. <doc>
  18672. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  18673. the input key. The entry returned by the previous entry() call will be
  18674. invalid.
  18675. @param key
  18676. The input key
  18677. @param keyOffset
  18678. offset in the key buffer.
  18679. @param keyLen
  18680. key buffer length.
  18681. @throws IOException]]>
  18682. </doc>
  18683. </method>
  18684. <method name="advance" return="boolean"
  18685. abstract="false" native="false" synchronized="false"
  18686. static="false" final="false" visibility="public"
  18687. deprecated="not deprecated">
  18688. <exception name="IOException" type="java.io.IOException"/>
  18689. <doc>
  18690. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  18691. previous entry() call will be invalid.
  18692. @return true if the cursor successfully moves. False when cursor is
  18693. already at the end location and cannot be advanced.
  18694. @throws IOException]]>
  18695. </doc>
  18696. </method>
  18697. <method name="close"
  18698. abstract="false" native="false" synchronized="false"
  18699. static="false" final="false" visibility="public"
  18700. deprecated="not deprecated">
  18701. <exception name="IOException" type="java.io.IOException"/>
  18702. <doc>
  18703. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  18704. scanner after calling close is not defined. The entry returned by the
  18705. previous entry() call will be invalid.]]>
  18706. </doc>
  18707. </method>
  18708. <method name="atEnd" return="boolean"
  18709. abstract="false" native="false" synchronized="false"
  18710. static="false" final="false" visibility="public"
  18711. deprecated="not deprecated">
  18712. <doc>
  18713. <![CDATA[Is cursor at the end location?
  18714. @return true if the cursor is at the end location.]]>
  18715. </doc>
  18716. </method>
  18717. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  18718. abstract="false" native="false" synchronized="false"
  18719. static="false" final="false" visibility="public"
  18720. deprecated="not deprecated">
  18721. <exception name="IOException" type="java.io.IOException"/>
  18722. <doc>
  18723. <![CDATA[Get an entry to access the key and value.
  18724. @return The Entry object to access the key and value.
  18725. @throws IOException]]>
  18726. </doc>
  18727. </method>
  18728. <method name="getRecordNum" return="long"
  18729. abstract="false" native="false" synchronized="false"
  18730. static="false" final="false" visibility="public"
  18731. deprecated="not deprecated">
  18732. <exception name="IOException" type="java.io.IOException"/>
  18733. <doc>
  18734. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  18735. @return The RecordNum corresponding to the entry pointed by the cursor.
  18736. @throws IOException]]>
  18737. </doc>
  18738. </method>
  18739. <doc>
  18740. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  18741. creation, points to the first key-value pair in the scan range. If the
  18742. scan range is empty, the cursor will point to the end of the scan range.
  18743. <p>
  18744. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  18745. location of the scanner.
  18746. <p>
  18747. Use {@link Scanner#advance()} to move the cursor to the next key-value
  18748. pair (or end if none exists). Use seekTo methods (
  18749. {@link Scanner#seekTo(byte[])} or
  18750. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  18751. location in the covered range (including backward seeking). Use
  18752. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  18753. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  18754. <p>
  18755. Actual keys and values may be obtained through {@link Scanner.Entry}
  18756. object, which is obtained through {@link Scanner#entry()}.]]>
  18757. </doc>
  18758. </class>
  18759. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  18760. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  18761. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  18762. abstract="false"
  18763. static="false" final="false" visibility="public"
  18764. deprecated="not deprecated">
  18765. <implements name="java.lang.Comparable"/>
  18766. <constructor name="TFile.Reader.Scanner.Entry"
  18767. static="false" final="false" visibility="public"
  18768. deprecated="not deprecated">
  18769. </constructor>
  18770. <method name="getKeyLength" return="int"
  18771. abstract="false" native="false" synchronized="false"
  18772. static="false" final="false" visibility="public"
  18773. deprecated="not deprecated">
  18774. <doc>
  18775. <![CDATA[Get the length of the key.
  18776. @return the length of the key.]]>
  18777. </doc>
  18778. </method>
  18779. <method name="get"
  18780. abstract="false" native="false" synchronized="false"
  18781. static="false" final="false" visibility="public"
  18782. deprecated="not deprecated">
  18783. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  18784. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  18785. <exception name="IOException" type="java.io.IOException"/>
  18786. <doc>
  18787. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  18788. equivalent to getKey(key); getValue(value);
  18789. @param key
  18790. BytesWritable to hold key.
  18791. @param value
  18792. BytesWritable to hold value
  18793. @throws IOException]]>
  18794. </doc>
  18795. </method>
  18796. <method name="getKey" return="int"
  18797. abstract="false" native="false" synchronized="false"
  18798. static="false" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  18801. <exception name="IOException" type="java.io.IOException"/>
  18802. <doc>
  18803. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  18804. automatically resized to the actual key size.
  18805. @param key
  18806. BytesWritable to hold the key.
  18807. @throws IOException]]>
  18808. </doc>
  18809. </method>
  18810. <method name="getValue" return="long"
  18811. abstract="false" native="false" synchronized="false"
  18812. static="false" final="false" visibility="public"
  18813. deprecated="not deprecated">
  18814. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  18815. <exception name="IOException" type="java.io.IOException"/>
  18816. <doc>
  18817. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  18818. automatically resized to the actual value size. The implementation
  18819. directly uses the buffer inside BytesWritable for storing the value.
  18820. The call does not require the value length to be known.
  18821. @param value
  18822. @throws IOException]]>
  18823. </doc>
  18824. </method>
  18825. <method name="writeKey" return="int"
  18826. abstract="false" native="false" synchronized="false"
  18827. static="false" final="false" visibility="public"
  18828. deprecated="not deprecated">
  18829. <param name="out" type="java.io.OutputStream"/>
  18830. <exception name="IOException" type="java.io.IOException"/>
  18831. <doc>
  18832. <![CDATA[Writing the key to the output stream. This method avoids copying key
  18833. buffer from Scanner into user buffer, then writing to the output
  18834. stream.
  18835. @param out
  18836. The output stream
  18837. @return the length of the key.
  18838. @throws IOException]]>
  18839. </doc>
  18840. </method>
  18841. <method name="writeValue" return="long"
  18842. abstract="false" native="false" synchronized="false"
  18843. static="false" final="false" visibility="public"
  18844. deprecated="not deprecated">
  18845. <param name="out" type="java.io.OutputStream"/>
  18846. <exception name="IOException" type="java.io.IOException"/>
  18847. <doc>
  18848. <![CDATA[Writing the value to the output stream. This method avoids copying
  18849. value data from Scanner into user buffer, then writing to the output
  18850. stream. It does not require the value length to be known.
  18851. @param out
  18852. The output stream
  18853. @return the length of the value
  18854. @throws IOException]]>
  18855. </doc>
  18856. </method>
  18857. <method name="getKey" return="int"
  18858. abstract="false" native="false" synchronized="false"
  18859. static="false" final="false" visibility="public"
  18860. deprecated="not deprecated">
  18861. <param name="buf" type="byte[]"/>
  18862. <exception name="IOException" type="java.io.IOException"/>
  18863. <doc>
  18864. <![CDATA[Copy the key into user supplied buffer.
  18865. @param buf
  18866. The buffer supplied by user. The length of the buffer must
  18867. not be shorter than the key length.
  18868. @return The length of the key.
  18869. @throws IOException]]>
  18870. </doc>
  18871. </method>
  18872. <method name="getKey" return="int"
  18873. abstract="false" native="false" synchronized="false"
  18874. static="false" final="false" visibility="public"
  18875. deprecated="not deprecated">
  18876. <param name="buf" type="byte[]"/>
  18877. <param name="offset" type="int"/>
  18878. <exception name="IOException" type="java.io.IOException"/>
  18879. <doc>
  18880. <![CDATA[Copy the key into user supplied buffer.
  18881. @param buf
  18882. The buffer supplied by user.
  18883. @param offset
  18884. The starting offset of the user buffer where we should copy
  18885. the key into. Requiring the key-length + offset no greater
  18886. than the buffer length.
  18887. @return The length of the key.
  18888. @throws IOException]]>
  18889. </doc>
  18890. </method>
  18891. <method name="getKeyStream" return="java.io.DataInputStream"
  18892. abstract="false" native="false" synchronized="false"
  18893. static="false" final="false" visibility="public"
  18894. deprecated="not deprecated">
  18895. <doc>
  18896. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  18897. user objects.
  18898. @return The input stream.]]>
  18899. </doc>
  18900. </method>
  18901. <method name="getValueLength" return="int"
  18902. abstract="false" native="false" synchronized="false"
  18903. static="false" final="false" visibility="public"
  18904. deprecated="not deprecated">
  18905. <doc>
  18906. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  18907. true.
  18908. @return the length of the value.]]>
  18909. </doc>
  18910. </method>
  18911. <method name="getValue" return="int"
  18912. abstract="false" native="false" synchronized="false"
  18913. static="false" final="false" visibility="public"
  18914. deprecated="not deprecated">
  18915. <param name="buf" type="byte[]"/>
  18916. <exception name="IOException" type="java.io.IOException"/>
  18917. <doc>
  18918. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  18919. large enough to hold the whole value. The value part of the key-value
  18920. pair pointed by the current cursor is not cached and can only be
  18921. examined once. Calling any of the following functions more than once
  18922. without moving the cursor will result in exception:
  18923. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  18924. {@link #getValueStream}.
  18925. @return the length of the value. Does not require
  18926. isValueLengthKnown() to be true.
  18927. @throws IOException]]>
  18928. </doc>
  18929. </method>
  18930. <method name="getValue" return="int"
  18931. abstract="false" native="false" synchronized="false"
  18932. static="false" final="false" visibility="public"
  18933. deprecated="not deprecated">
  18934. <param name="buf" type="byte[]"/>
  18935. <param name="offset" type="int"/>
  18936. <exception name="IOException" type="java.io.IOException"/>
  18937. <doc>
  18938. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  18939. large enough to hold the whole value (starting from the offset). The
  18940. value part of the key-value pair pointed by the current cursor is not
  18941. cached and can only be examined once. Calling any of the following
  18942. functions more than once without moving the cursor will result in
  18943. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  18944. {@link #getValueStream}.
  18945. @return the length of the value. Does not require
  18946. isValueLengthKnown() to be true.
  18947. @throws IOException]]>
  18948. </doc>
  18949. </method>
  18950. <method name="getValueStream" return="java.io.DataInputStream"
  18951. abstract="false" native="false" synchronized="false"
  18952. static="false" final="false" visibility="public"
  18953. deprecated="not deprecated">
  18954. <exception name="IOException" type="java.io.IOException"/>
  18955. <doc>
  18956. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  18957. by the current cursor is not cached and can only be examined once.
  18958. Calling any of the following functions more than once without moving
  18959. the cursor will result in exception: {@link #getValue(byte[])},
  18960. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  18961. @return The input stream for reading the value.
  18962. @throws IOException]]>
  18963. </doc>
  18964. </method>
  18965. <method name="isValueLengthKnown" return="boolean"
  18966. abstract="false" native="false" synchronized="false"
  18967. static="false" final="false" visibility="public"
  18968. deprecated="not deprecated">
  18969. <doc>
  18970. <![CDATA[Check whether it is safe to call getValueLength().
  18971. @return true if value length is known before hand. Values less than
  18972. the chunk size will always have their lengths known before
  18973. hand. Values that are written out as a whole (with advertised
  18974. length up-front) will always have their lengths known in
  18975. read.]]>
  18976. </doc>
  18977. </method>
  18978. <method name="compareTo" return="int"
  18979. abstract="false" native="false" synchronized="false"
  18980. static="false" final="false" visibility="public"
  18981. deprecated="not deprecated">
  18982. <param name="buf" type="byte[]"/>
  18983. <doc>
  18984. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  18985. key.length).
  18986. @param buf
  18987. The key buffer.
  18988. @return comparison result between the entry key with the input key.]]>
  18989. </doc>
  18990. </method>
  18991. <method name="compareTo" return="int"
  18992. abstract="false" native="false" synchronized="false"
  18993. static="false" final="false" visibility="public"
  18994. deprecated="not deprecated">
  18995. <param name="buf" type="byte[]"/>
  18996. <param name="offset" type="int"/>
  18997. <param name="length" type="int"/>
  18998. <doc>
  18999. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  19000. ByteArray(buf, offset, length)
  19001. @param buf
  19002. The key buffer
  19003. @param offset
  19004. offset into the key buffer.
  19005. @param length
  19006. the length of the key.
  19007. @return comparison result between the entry key with the input key.]]>
  19008. </doc>
  19009. </method>
  19010. <method name="compareTo" return="int"
  19011. abstract="false" native="false" synchronized="false"
  19012. static="false" final="false" visibility="public"
  19013. deprecated="not deprecated">
  19014. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19015. <doc>
  19016. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  19017. Entries are stored in a collection, and we want to compare a user
  19018. supplied key.]]>
  19019. </doc>
  19020. </method>
  19021. <method name="equals" return="boolean"
  19022. abstract="false" native="false" synchronized="false"
  19023. static="false" final="false" visibility="public"
  19024. deprecated="not deprecated">
  19025. <param name="other" type="java.lang.Object"/>
  19026. <doc>
  19027. <![CDATA[Compare whether this and other points to the same key value.]]>
  19028. </doc>
  19029. </method>
  19030. <method name="hashCode" return="int"
  19031. abstract="false" native="false" synchronized="false"
  19032. static="false" final="false" visibility="public"
  19033. deprecated="not deprecated">
  19034. </method>
  19035. <doc>
  19036. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  19037. </doc>
  19038. </class>
  19039. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19040. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19041. <class name="TFile.Writer" extends="java.lang.Object"
  19042. abstract="false"
  19043. static="true" final="false" visibility="public"
  19044. deprecated="not deprecated">
  19045. <implements name="java.io.Closeable"/>
  19046. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  19047. static="false" final="false" visibility="public"
  19048. deprecated="not deprecated">
  19049. <exception name="IOException" type="java.io.IOException"/>
  19050. <doc>
  19051. <![CDATA[Constructor
  19052. @param fsdos
  19053. output stream for writing. Must be at position 0.
  19054. @param minBlockSize
  19055. Minimum compressed block size in bytes. A compression block will
  19056. not be closed until it reaches this size except for the last
  19057. block.
  19058. @param compressName
  19059. Name of the compression algorithm. Must be one of the strings
  19060. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  19061. @param comparator
  19062. Leave comparator as null or empty string if TFile is not sorted.
  19063. Otherwise, provide the string name for the comparison algorithm
  19064. for keys. Two kinds of comparators are supported.
  19065. <ul>
  19066. <li>Algorithmic comparator: binary comparators that is language
  19067. independent. Currently, only "memcmp" is supported.
  19068. <li>Language-specific comparator: binary comparators that can
  19069. only be constructed in specific language. For Java, the syntax
  19070. is "jclass:", followed by the class name of the RawComparator.
  19071. Currently, we only support RawComparators that can be
  19072. constructed through the default constructor (with no
  19073. parameters). Parameterized RawComparators such as
  19074. {@link WritableComparator} or
  19075. {@link JavaSerializationComparator} may not be directly used.
  19076. One should write a wrapper class that inherits from such classes
  19077. and use its default constructor to perform proper
  19078. initialization.
  19079. </ul>
  19080. @param conf
  19081. The configuration object.
  19082. @throws IOException]]>
  19083. </doc>
  19084. </constructor>
  19085. <method name="close"
  19086. abstract="false" native="false" synchronized="false"
  19087. static="false" final="false" visibility="public"
  19088. deprecated="not deprecated">
  19089. <exception name="IOException" type="java.io.IOException"/>
  19090. <doc>
  19091. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  19092. being thrown. Future close calls will have no effect.
  19093. The underlying FSDataOutputStream is not closed.]]>
  19094. </doc>
  19095. </method>
  19096. <method name="append"
  19097. abstract="false" native="false" synchronized="false"
  19098. static="false" final="false" visibility="public"
  19099. deprecated="not deprecated">
  19100. <param name="key" type="byte[]"/>
  19101. <param name="value" type="byte[]"/>
  19102. <exception name="IOException" type="java.io.IOException"/>
  19103. <doc>
  19104. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  19105. append(key, 0, key.length, value, 0, value.length)
  19106. @param key
  19107. Buffer for key.
  19108. @param value
  19109. Buffer for value.
  19110. @throws IOException]]>
  19111. </doc>
  19112. </method>
  19113. <method name="append"
  19114. abstract="false" native="false" synchronized="false"
  19115. static="false" final="false" visibility="public"
  19116. deprecated="not deprecated">
  19117. <param name="key" type="byte[]"/>
  19118. <param name="koff" type="int"/>
  19119. <param name="klen" type="int"/>
  19120. <param name="value" type="byte[]"/>
  19121. <param name="voff" type="int"/>
  19122. <param name="vlen" type="int"/>
  19123. <exception name="IOException" type="java.io.IOException"/>
  19124. <doc>
  19125. <![CDATA[Adding a new key-value pair to TFile.
  19126. @param key
  19127. buffer for key.
  19128. @param koff
  19129. offset in key buffer.
  19130. @param klen
  19131. length of key.
  19132. @param value
  19133. buffer for value.
  19134. @param voff
  19135. offset in value buffer.
  19136. @param vlen
  19137. length of value.
  19138. @throws IOException
  19139. Upon IO errors.
  19140. <p>
  19141. If an exception is thrown, the TFile will be in an inconsistent
  19142. state. The only legitimate call after that would be close]]>
  19143. </doc>
  19144. </method>
  19145. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  19146. abstract="false" native="false" synchronized="false"
  19147. static="false" final="false" visibility="public"
  19148. deprecated="not deprecated">
  19149. <param name="length" type="int"/>
  19150. <exception name="IOException" type="java.io.IOException"/>
  19151. <doc>
  19152. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  19153. called when there is no active Key appending stream or value appending
  19154. stream.
  19155. @param length
  19156. The expected length of the key. If length of the key is not
  19157. known, set length = -1. Otherwise, the application must write
  19158. exactly as many bytes as specified here before calling close on
  19159. the returned output stream.
  19160. @return The key appending output stream.
  19161. @throws IOException]]>
  19162. </doc>
  19163. </method>
  19164. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  19165. abstract="false" native="false" synchronized="false"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <param name="length" type="int"/>
  19169. <exception name="IOException" type="java.io.IOException"/>
  19170. <doc>
  19171. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  19172. called right after a key appending operation (the key append stream must
  19173. be closed).
  19174. @param length
  19175. The expected length of the value. If length of the value is not
  19176. known, set length = -1. Otherwise, the application must write
  19177. exactly as many bytes as specified here before calling close on
  19178. the returned output stream. Advertising the value size up-front
  19179. guarantees that the value is encoded in one chunk, and avoids
  19180. intermediate chunk buffering.
  19181. @throws IOException]]>
  19182. </doc>
  19183. </method>
  19184. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19185. abstract="false" native="false" synchronized="false"
  19186. static="false" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. <param name="name" type="java.lang.String"/>
  19189. <param name="compressName" type="java.lang.String"/>
  19190. <exception name="IOException" type="java.io.IOException"/>
  19191. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19192. <doc>
  19193. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19194. be called when there is a key append stream or value append stream
  19195. active. No more key-value insertion is allowed after a meta data block
  19196. has been added to TFile.
  19197. @param name
  19198. Name of the meta block.
  19199. @param compressName
  19200. Name of the compression algorithm to be used. Must be one of the
  19201. strings returned by
  19202. {@link TFile#getSupportedCompressionAlgorithms()}.
  19203. @return A DataOutputStream that can be used to write Meta Block data.
  19204. Closing the stream would signal the ending of the block.
  19205. @throws IOException
  19206. @throws MetaBlockAlreadyExists
  19207. the Meta Block with the same name already exists.]]>
  19208. </doc>
  19209. </method>
  19210. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19211. abstract="false" native="false" synchronized="false"
  19212. static="false" final="false" visibility="public"
  19213. deprecated="not deprecated">
  19214. <param name="name" type="java.lang.String"/>
  19215. <exception name="IOException" type="java.io.IOException"/>
  19216. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19217. <doc>
  19218. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19219. be called when there is a key append stream or value append stream
  19220. active. No more key-value insertion is allowed after a meta data block
  19221. has been added to TFile. Data will be compressed using the default
  19222. compressor as defined in Writer's constructor.
  19223. @param name
  19224. Name of the meta block.
  19225. @return A DataOutputStream that can be used to write Meta Block data.
  19226. Closing the stream would signal the ending of the block.
  19227. @throws IOException
  19228. @throws MetaBlockAlreadyExists
  19229. the Meta Block with the same name already exists.]]>
  19230. </doc>
  19231. </method>
  19232. <doc>
  19233. <![CDATA[TFile Writer.]]>
  19234. </doc>
  19235. </class>
  19236. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19237. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  19238. <class name="Utils" extends="java.lang.Object"
  19239. abstract="false"
  19240. static="false" final="true" visibility="public"
  19241. deprecated="not deprecated">
  19242. <method name="writeVInt"
  19243. abstract="false" native="false" synchronized="false"
  19244. static="true" final="false" visibility="public"
  19245. deprecated="not deprecated">
  19246. <param name="out" type="java.io.DataOutput"/>
  19247. <param name="n" type="int"/>
  19248. <exception name="IOException" type="java.io.IOException"/>
  19249. <doc>
  19250. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  19251. <code>Utils#writeVLong(out, n)</code>.
  19252. @param out
  19253. output stream
  19254. @param n
  19255. The integer to be encoded
  19256. @throws IOException
  19257. @see Utils#writeVLong(DataOutput, long)]]>
  19258. </doc>
  19259. </method>
  19260. <method name="writeVLong"
  19261. abstract="false" native="false" synchronized="false"
  19262. static="true" final="false" visibility="public"
  19263. deprecated="not deprecated">
  19264. <param name="out" type="java.io.DataOutput"/>
  19265. <param name="n" type="long"/>
  19266. <exception name="IOException" type="java.io.IOException"/>
  19267. <doc>
  19268. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  19269. <ul>
  19270. <li>if n in [-32, 127): encode in one byte with the actual value.
  19271. Otherwise,
  19272. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  19273. byte[1]=n&0xff. Otherwise,
  19274. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  19275. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  19276. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  19277. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  19278. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  19279. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  19280. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  19281. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  19282. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  19283. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  19284. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  19285. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  19286. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  19287. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  19288. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  19289. byte[7]=n&0xff;
  19290. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  19291. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  19292. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  19293. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  19294. </ul>
  19295. @param out
  19296. output stream
  19297. @param n
  19298. the integer number
  19299. @throws IOException]]>
  19300. </doc>
  19301. </method>
  19302. <method name="readVInt" return="int"
  19303. abstract="false" native="false" synchronized="false"
  19304. static="true" final="false" visibility="public"
  19305. deprecated="not deprecated">
  19306. <param name="in" type="java.io.DataInput"/>
  19307. <exception name="IOException" type="java.io.IOException"/>
  19308. <doc>
  19309. <![CDATA[Decoding the variable-length integer. Synonymous to
  19310. <code>(int)Utils#readVLong(in)</code>.
  19311. @param in
  19312. input stream
  19313. @return the decoded integer
  19314. @throws IOException
  19315. @see Utils#readVLong(DataInput)]]>
  19316. </doc>
  19317. </method>
  19318. <method name="readVLong" return="long"
  19319. abstract="false" native="false" synchronized="false"
  19320. static="true" final="false" visibility="public"
  19321. deprecated="not deprecated">
  19322. <param name="in" type="java.io.DataInput"/>
  19323. <exception name="IOException" type="java.io.IOException"/>
  19324. <doc>
  19325. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  19326. is FB, and the following bytes are NB[*].
  19327. <ul>
  19328. <li>if (FB >= -32), return (long)FB;
  19329. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  19330. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  19331. NB[1]&0xff;
  19332. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  19333. (NB[1]&0xff)<<8 + NB[2]&0xff;
  19334. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  19335. big-endian integer.
  19336. @param in
  19337. input stream
  19338. @return the decoded long integer.
  19339. @throws IOException]]>
  19340. </doc>
  19341. </method>
  19342. <method name="writeString"
  19343. abstract="false" native="false" synchronized="false"
  19344. static="true" final="false" visibility="public"
  19345. deprecated="not deprecated">
  19346. <param name="out" type="java.io.DataOutput"/>
  19347. <param name="s" type="java.lang.String"/>
  19348. <exception name="IOException" type="java.io.IOException"/>
  19349. <doc>
  19350. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  19351. @param out
  19352. @param s
  19353. @throws IOException]]>
  19354. </doc>
  19355. </method>
  19356. <method name="readString" return="java.lang.String"
  19357. abstract="false" native="false" synchronized="false"
  19358. static="true" final="false" visibility="public"
  19359. deprecated="not deprecated">
  19360. <param name="in" type="java.io.DataInput"/>
  19361. <exception name="IOException" type="java.io.IOException"/>
  19362. <doc>
  19363. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  19364. @param in
  19365. The input stream.
  19366. @return The string
  19367. @throws IOException]]>
  19368. </doc>
  19369. </method>
  19370. <method name="lowerBound" return="int"
  19371. abstract="false" native="false" synchronized="false"
  19372. static="true" final="false" visibility="public"
  19373. deprecated="not deprecated">
  19374. <param name="list" type="java.util.List"/>
  19375. <param name="key" type="T"/>
  19376. <param name="cmp" type="java.util.Comparator"/>
  19377. <doc>
  19378. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  19379. that compares greater than or equal to key.
  19380. @param <T>
  19381. Type of the input key.
  19382. @param list
  19383. The list
  19384. @param key
  19385. The input key.
  19386. @param cmp
  19387. Comparator for the key.
  19388. @return The index to the desired element if it exists; or list.size()
  19389. otherwise.]]>
  19390. </doc>
  19391. </method>
  19392. <method name="upperBound" return="int"
  19393. abstract="false" native="false" synchronized="false"
  19394. static="true" final="false" visibility="public"
  19395. deprecated="not deprecated">
  19396. <param name="list" type="java.util.List"/>
  19397. <param name="key" type="T"/>
  19398. <param name="cmp" type="java.util.Comparator"/>
  19399. <doc>
  19400. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  19401. that compares greater than the input key.
  19402. @param <T>
  19403. Type of the input key.
  19404. @param list
  19405. The list
  19406. @param key
  19407. The input key.
  19408. @param cmp
  19409. Comparator for the key.
  19410. @return The index to the desired element if it exists; or list.size()
  19411. otherwise.]]>
  19412. </doc>
  19413. </method>
  19414. <method name="lowerBound" return="int"
  19415. abstract="false" native="false" synchronized="false"
  19416. static="true" final="false" visibility="public"
  19417. deprecated="not deprecated">
  19418. <param name="list" type="java.util.List"/>
  19419. <param name="key" type="T"/>
  19420. <doc>
  19421. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  19422. that compares greater than or equal to key.
  19423. @param <T>
  19424. Type of the input key.
  19425. @param list
  19426. The list
  19427. @param key
  19428. The input key.
  19429. @return The index to the desired element if it exists; or list.size()
  19430. otherwise.]]>
  19431. </doc>
  19432. </method>
  19433. <method name="upperBound" return="int"
  19434. abstract="false" native="false" synchronized="false"
  19435. static="true" final="false" visibility="public"
  19436. deprecated="not deprecated">
  19437. <param name="list" type="java.util.List"/>
  19438. <param name="key" type="T"/>
  19439. <doc>
  19440. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  19441. that compares greater than the input key.
  19442. @param <T>
  19443. Type of the input key.
  19444. @param list
  19445. The list
  19446. @param key
  19447. The input key.
  19448. @return The index to the desired element if it exists; or list.size()
  19449. otherwise.]]>
  19450. </doc>
  19451. </method>
  19452. <doc>
  19453. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  19454. </doc>
  19455. </class>
  19456. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  19457. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  19458. <class name="Utils.Version" extends="java.lang.Object"
  19459. abstract="false"
  19460. static="true" final="true" visibility="public"
  19461. deprecated="not deprecated">
  19462. <implements name="java.lang.Comparable"/>
  19463. <constructor name="Utils.Version" type="java.io.DataInput"
  19464. static="false" final="false" visibility="public"
  19465. deprecated="not deprecated">
  19466. <exception name="IOException" type="java.io.IOException"/>
  19467. <doc>
  19468. <![CDATA[Construct the Version object by reading from the input stream.
  19469. @param in
  19470. input stream
  19471. @throws IOException]]>
  19472. </doc>
  19473. </constructor>
  19474. <constructor name="Utils.Version" type="short, short"
  19475. static="false" final="false" visibility="public"
  19476. deprecated="not deprecated">
  19477. <doc>
  19478. <![CDATA[Constructor.
  19479. @param major
  19480. major version.
  19481. @param minor
  19482. minor version.]]>
  19483. </doc>
  19484. </constructor>
  19485. <method name="write"
  19486. abstract="false" native="false" synchronized="false"
  19487. static="false" final="false" visibility="public"
  19488. deprecated="not deprecated">
  19489. <param name="out" type="java.io.DataOutput"/>
  19490. <exception name="IOException" type="java.io.IOException"/>
  19491. <doc>
  19492. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  19493. major version followed by minor version, both as big-endian short
  19494. integers.
  19495. @param out
  19496. The DataOutput object.
  19497. @throws IOException]]>
  19498. </doc>
  19499. </method>
  19500. <method name="getMajor" return="int"
  19501. abstract="false" native="false" synchronized="false"
  19502. static="false" final="false" visibility="public"
  19503. deprecated="not deprecated">
  19504. <doc>
  19505. <![CDATA[Get the major version.
  19506. @return Major version.]]>
  19507. </doc>
  19508. </method>
  19509. <method name="getMinor" return="int"
  19510. abstract="false" native="false" synchronized="false"
  19511. static="false" final="false" visibility="public"
  19512. deprecated="not deprecated">
  19513. <doc>
  19514. <![CDATA[Get the minor version.
  19515. @return The minor version.]]>
  19516. </doc>
  19517. </method>
  19518. <method name="size" return="int"
  19519. abstract="false" native="false" synchronized="false"
  19520. static="true" final="false" visibility="public"
  19521. deprecated="not deprecated">
  19522. <doc>
  19523. <![CDATA[Get the size of the serialized Version object.
  19524. @return serialized size of the version object.]]>
  19525. </doc>
  19526. </method>
  19527. <method name="toString" return="java.lang.String"
  19528. abstract="false" native="false" synchronized="false"
  19529. static="false" final="false" visibility="public"
  19530. deprecated="not deprecated">
  19531. <doc>
  19532. <![CDATA[Return a string representation of the version.]]>
  19533. </doc>
  19534. </method>
  19535. <method name="compatibleWith" return="boolean"
  19536. abstract="false" native="false" synchronized="false"
  19537. static="false" final="false" visibility="public"
  19538. deprecated="not deprecated">
  19539. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  19540. <doc>
  19541. <![CDATA[Test compatibility.
  19542. @param other
  19543. The Version object to test compatibility with.
  19544. @return true if both versions have the same major version number; false
  19545. otherwise.]]>
  19546. </doc>
  19547. </method>
  19548. <method name="compareTo" return="int"
  19549. abstract="false" native="false" synchronized="false"
  19550. static="false" final="false" visibility="public"
  19551. deprecated="not deprecated">
  19552. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  19553. <doc>
  19554. <![CDATA[Compare this version with another version.]]>
  19555. </doc>
  19556. </method>
  19557. <method name="equals" return="boolean"
  19558. abstract="false" native="false" synchronized="false"
  19559. static="false" final="false" visibility="public"
  19560. deprecated="not deprecated">
  19561. <param name="other" type="java.lang.Object"/>
  19562. </method>
  19563. <method name="hashCode" return="int"
  19564. abstract="false" native="false" synchronized="false"
  19565. static="false" final="false" visibility="public"
  19566. deprecated="not deprecated">
  19567. </method>
  19568. <doc>
  19569. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  19570. this class to maintain version information in their meta blocks.
  19571. A version number consists of a major version and a minor version. The
  19572. suggested usage of major and minor version number is to increment major
  19573. version number when the new storage format is not backward compatible, and
  19574. increment the minor version otherwise.]]>
  19575. </doc>
  19576. </class>
  19577. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  19578. </package>
  19579. <package name="org.apache.hadoop.io.nativeio">
  19580. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  19581. <class name="Errno" extends="java.lang.Enum"
  19582. abstract="false"
  19583. static="false" final="true" visibility="public"
  19584. deprecated="not deprecated">
  19585. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  19586. abstract="false" native="false" synchronized="false"
  19587. static="true" final="false" visibility="public"
  19588. deprecated="not deprecated">
  19589. </method>
  19590. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  19591. abstract="false" native="false" synchronized="false"
  19592. static="true" final="false" visibility="public"
  19593. deprecated="not deprecated">
  19594. <param name="name" type="java.lang.String"/>
  19595. </method>
  19596. <doc>
  19597. <![CDATA[Enum representing POSIX errno values.]]>
  19598. </doc>
  19599. </class>
  19600. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  19601. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  19602. <class name="NativeIO" extends="java.lang.Object"
  19603. abstract="false"
  19604. static="false" final="false" visibility="public"
  19605. deprecated="not deprecated">
  19606. <constructor name="NativeIO"
  19607. static="false" final="false" visibility="public"
  19608. deprecated="not deprecated">
  19609. </constructor>
  19610. <method name="isAvailable" return="boolean"
  19611. abstract="false" native="false" synchronized="false"
  19612. static="true" final="false" visibility="public"
  19613. deprecated="not deprecated">
  19614. <doc>
  19615. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  19616. </doc>
  19617. </method>
  19618. <method name="open" return="java.io.FileDescriptor"
  19619. abstract="false" native="true" synchronized="false"
  19620. static="true" final="false" visibility="public"
  19621. deprecated="not deprecated">
  19622. <param name="path" type="java.lang.String"/>
  19623. <param name="flags" type="int"/>
  19624. <param name="mode" type="int"/>
  19625. <exception name="IOException" type="java.io.IOException"/>
  19626. <doc>
  19627. <![CDATA[Wrapper around open(2)]]>
  19628. </doc>
  19629. </method>
  19630. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  19631. abstract="false" native="true" synchronized="false"
  19632. static="true" final="false" visibility="public"
  19633. deprecated="not deprecated">
  19634. <param name="fd" type="java.io.FileDescriptor"/>
  19635. <exception name="IOException" type="java.io.IOException"/>
  19636. <doc>
  19637. <![CDATA[Wrapper around fstat(2)]]>
  19638. </doc>
  19639. </method>
  19640. <method name="chmod"
  19641. abstract="false" native="true" synchronized="false"
  19642. static="true" final="false" visibility="public"
  19643. deprecated="not deprecated">
  19644. <param name="path" type="java.lang.String"/>
  19645. <param name="mode" type="int"/>
  19646. <exception name="IOException" type="java.io.IOException"/>
  19647. <doc>
  19648. <![CDATA[Wrapper around chmod(2)]]>
  19649. </doc>
  19650. </method>
  19651. <field name="O_RDONLY" type="int"
  19652. transient="false" volatile="false"
  19653. static="true" final="true" visibility="public"
  19654. deprecated="not deprecated">
  19655. </field>
  19656. <field name="O_WRONLY" type="int"
  19657. transient="false" volatile="false"
  19658. static="true" final="true" visibility="public"
  19659. deprecated="not deprecated">
  19660. </field>
  19661. <field name="O_RDWR" type="int"
  19662. transient="false" volatile="false"
  19663. static="true" final="true" visibility="public"
  19664. deprecated="not deprecated">
  19665. </field>
  19666. <field name="O_CREAT" type="int"
  19667. transient="false" volatile="false"
  19668. static="true" final="true" visibility="public"
  19669. deprecated="not deprecated">
  19670. </field>
  19671. <field name="O_EXCL" type="int"
  19672. transient="false" volatile="false"
  19673. static="true" final="true" visibility="public"
  19674. deprecated="not deprecated">
  19675. </field>
  19676. <field name="O_NOCTTY" type="int"
  19677. transient="false" volatile="false"
  19678. static="true" final="true" visibility="public"
  19679. deprecated="not deprecated">
  19680. </field>
  19681. <field name="O_TRUNC" type="int"
  19682. transient="false" volatile="false"
  19683. static="true" final="true" visibility="public"
  19684. deprecated="not deprecated">
  19685. </field>
  19686. <field name="O_APPEND" type="int"
  19687. transient="false" volatile="false"
  19688. static="true" final="true" visibility="public"
  19689. deprecated="not deprecated">
  19690. </field>
  19691. <field name="O_NONBLOCK" type="int"
  19692. transient="false" volatile="false"
  19693. static="true" final="true" visibility="public"
  19694. deprecated="not deprecated">
  19695. </field>
  19696. <field name="O_SYNC" type="int"
  19697. transient="false" volatile="false"
  19698. static="true" final="true" visibility="public"
  19699. deprecated="not deprecated">
  19700. </field>
  19701. <field name="O_ASYNC" type="int"
  19702. transient="false" volatile="false"
  19703. static="true" final="true" visibility="public"
  19704. deprecated="not deprecated">
  19705. </field>
  19706. <field name="O_FSYNC" type="int"
  19707. transient="false" volatile="false"
  19708. static="true" final="true" visibility="public"
  19709. deprecated="not deprecated">
  19710. </field>
  19711. <field name="O_NDELAY" type="int"
  19712. transient="false" volatile="false"
  19713. static="true" final="true" visibility="public"
  19714. deprecated="not deprecated">
  19715. </field>
  19716. <doc>
  19717. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  19718. These functions should generally be used alongside a fallback to another
  19719. more portable mechanism.]]>
  19720. </doc>
  19721. </class>
  19722. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  19723. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  19724. <class name="NativeIO.Stat" extends="java.lang.Object"
  19725. abstract="false"
  19726. static="true" final="false" visibility="public"
  19727. deprecated="not deprecated">
  19728. <method name="toString" return="java.lang.String"
  19729. abstract="false" native="false" synchronized="false"
  19730. static="false" final="false" visibility="public"
  19731. deprecated="not deprecated">
  19732. </method>
  19733. <method name="getOwner" return="java.lang.String"
  19734. abstract="false" native="false" synchronized="false"
  19735. static="false" final="false" visibility="public"
  19736. deprecated="not deprecated">
  19737. </method>
  19738. <method name="getGroup" return="java.lang.String"
  19739. abstract="false" native="false" synchronized="false"
  19740. static="false" final="false" visibility="public"
  19741. deprecated="not deprecated">
  19742. </method>
  19743. <method name="getMode" return="int"
  19744. abstract="false" native="false" synchronized="false"
  19745. static="false" final="false" visibility="public"
  19746. deprecated="not deprecated">
  19747. </method>
  19748. <field name="S_IFMT" type="int"
  19749. transient="false" volatile="false"
  19750. static="true" final="true" visibility="public"
  19751. deprecated="not deprecated">
  19752. </field>
  19753. <field name="S_IFIFO" type="int"
  19754. transient="false" volatile="false"
  19755. static="true" final="true" visibility="public"
  19756. deprecated="not deprecated">
  19757. </field>
  19758. <field name="S_IFCHR" type="int"
  19759. transient="false" volatile="false"
  19760. static="true" final="true" visibility="public"
  19761. deprecated="not deprecated">
  19762. </field>
  19763. <field name="S_IFDIR" type="int"
  19764. transient="false" volatile="false"
  19765. static="true" final="true" visibility="public"
  19766. deprecated="not deprecated">
  19767. </field>
  19768. <field name="S_IFBLK" type="int"
  19769. transient="false" volatile="false"
  19770. static="true" final="true" visibility="public"
  19771. deprecated="not deprecated">
  19772. </field>
  19773. <field name="S_IFREG" type="int"
  19774. transient="false" volatile="false"
  19775. static="true" final="true" visibility="public"
  19776. deprecated="not deprecated">
  19777. </field>
  19778. <field name="S_IFLNK" type="int"
  19779. transient="false" volatile="false"
  19780. static="true" final="true" visibility="public"
  19781. deprecated="not deprecated">
  19782. </field>
  19783. <field name="S_IFSOCK" type="int"
  19784. transient="false" volatile="false"
  19785. static="true" final="true" visibility="public"
  19786. deprecated="not deprecated">
  19787. </field>
  19788. <field name="S_IFWHT" type="int"
  19789. transient="false" volatile="false"
  19790. static="true" final="true" visibility="public"
  19791. deprecated="not deprecated">
  19792. </field>
  19793. <field name="S_ISUID" type="int"
  19794. transient="false" volatile="false"
  19795. static="true" final="true" visibility="public"
  19796. deprecated="not deprecated">
  19797. </field>
  19798. <field name="S_ISGID" type="int"
  19799. transient="false" volatile="false"
  19800. static="true" final="true" visibility="public"
  19801. deprecated="not deprecated">
  19802. </field>
  19803. <field name="S_ISVTX" type="int"
  19804. transient="false" volatile="false"
  19805. static="true" final="true" visibility="public"
  19806. deprecated="not deprecated">
  19807. </field>
  19808. <field name="S_IRUSR" type="int"
  19809. transient="false" volatile="false"
  19810. static="true" final="true" visibility="public"
  19811. deprecated="not deprecated">
  19812. </field>
  19813. <field name="S_IWUSR" type="int"
  19814. transient="false" volatile="false"
  19815. static="true" final="true" visibility="public"
  19816. deprecated="not deprecated">
  19817. </field>
  19818. <field name="S_IXUSR" type="int"
  19819. transient="false" volatile="false"
  19820. static="true" final="true" visibility="public"
  19821. deprecated="not deprecated">
  19822. </field>
  19823. <doc>
  19824. <![CDATA[Result type of the fstat call]]>
  19825. </doc>
  19826. </class>
  19827. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  19828. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  19829. <class name="NativeIOException" extends="java.io.IOException"
  19830. abstract="false"
  19831. static="false" final="false" visibility="public"
  19832. deprecated="not deprecated">
  19833. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  19834. static="false" final="false" visibility="public"
  19835. deprecated="not deprecated">
  19836. </constructor>
  19837. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  19838. abstract="false" native="false" synchronized="false"
  19839. static="false" final="false" visibility="public"
  19840. deprecated="not deprecated">
  19841. </method>
  19842. <method name="toString" return="java.lang.String"
  19843. abstract="false" native="false" synchronized="false"
  19844. static="false" final="false" visibility="public"
  19845. deprecated="not deprecated">
  19846. </method>
  19847. <doc>
  19848. <![CDATA[An exception generated by a call to the native IO code.
  19849. These exceptions simply wrap <i>errno</i> result codes.]]>
  19850. </doc>
  19851. </class>
  19852. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  19853. </package>
  19854. <package name="org.apache.hadoop.io.serializer">
  19855. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  19856. <class name="JavaSerialization" extends="java.lang.Object"
  19857. abstract="false"
  19858. static="false" final="false" visibility="public"
  19859. deprecated="not deprecated">
  19860. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  19861. <constructor name="JavaSerialization"
  19862. static="false" final="false" visibility="public"
  19863. deprecated="not deprecated">
  19864. </constructor>
  19865. <method name="accept" return="boolean"
  19866. abstract="false" native="false" synchronized="false"
  19867. static="false" final="false" visibility="public"
  19868. deprecated="not deprecated">
  19869. <param name="c" type="java.lang.Class"/>
  19870. </method>
  19871. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  19872. abstract="false" native="false" synchronized="false"
  19873. static="false" final="false" visibility="public"
  19874. deprecated="not deprecated">
  19875. <param name="c" type="java.lang.Class"/>
  19876. </method>
  19877. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  19878. abstract="false" native="false" synchronized="false"
  19879. static="false" final="false" visibility="public"
  19880. deprecated="not deprecated">
  19881. <param name="c" type="java.lang.Class"/>
  19882. </method>
  19883. <doc>
  19884. <![CDATA[<p>
  19885. An experimental {@link Serialization} for Java {@link Serializable} classes.
  19886. </p>
  19887. @see JavaSerializationComparator]]>
  19888. </doc>
  19889. </class>
  19890. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  19891. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  19892. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  19893. abstract="false"
  19894. static="false" final="false" visibility="public"
  19895. deprecated="not deprecated">
  19896. <constructor name="JavaSerializationComparator"
  19897. static="false" final="false" visibility="public"
  19898. deprecated="not deprecated">
  19899. <exception name="IOException" type="java.io.IOException"/>
  19900. </constructor>
  19901. <method name="compare" return="int"
  19902. abstract="false" native="false" synchronized="false"
  19903. static="false" final="false" visibility="public"
  19904. deprecated="not deprecated">
  19905. <param name="o1" type="T"/>
  19906. <param name="o2" type="T"/>
  19907. </method>
  19908. <doc>
  19909. <![CDATA[<p>
  19910. A {@link RawComparator} that uses a {@link JavaSerialization}
  19911. {@link Deserializer} to deserialize objects that are then compared via
  19912. their {@link Comparable} interfaces.
  19913. </p>
  19914. @param <T>
  19915. @see JavaSerialization]]>
  19916. </doc>
  19917. </class>
  19918. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  19919. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  19920. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  19921. abstract="false"
  19922. static="false" final="false" visibility="public"
  19923. deprecated="not deprecated">
  19924. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  19925. <constructor name="WritableSerialization"
  19926. static="false" final="false" visibility="public"
  19927. deprecated="not deprecated">
  19928. </constructor>
  19929. <method name="accept" return="boolean"
  19930. abstract="false" native="false" synchronized="false"
  19931. static="false" final="false" visibility="public"
  19932. deprecated="not deprecated">
  19933. <param name="c" type="java.lang.Class"/>
  19934. </method>
  19935. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="false" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. <param name="c" type="java.lang.Class"/>
  19940. </method>
  19941. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  19942. abstract="false" native="false" synchronized="false"
  19943. static="false" final="false" visibility="public"
  19944. deprecated="not deprecated">
  19945. <param name="c" type="java.lang.Class"/>
  19946. </method>
  19947. <doc>
  19948. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  19949. {@link Writable#write(java.io.DataOutput)} and
  19950. {@link Writable#readFields(java.io.DataInput)}.]]>
  19951. </doc>
  19952. </class>
  19953. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  19954. <doc>
  19955. <![CDATA[<p>
  19956. This package provides a mechanism for using different serialization frameworks
  19957. in Hadoop. The property "io.serializations" defines a list of
  19958. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  19959. {@link org.apache.hadoop.io.serializer.Serializer}s and
  19960. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  19961. </p>
  19962. <p>
  19963. To add a new serialization framework write an implementation of
  19964. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  19965. "io.serializations" property.
  19966. </p>]]>
  19967. </doc>
  19968. </package>
  19969. <package name="org.apache.hadoop.io.serializer.avro">
  19970. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  19971. <interface name="AvroReflectSerializable" abstract="true"
  19972. static="false" final="false" visibility="public"
  19973. deprecated="not deprecated">
  19974. <doc>
  19975. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  19976. this interface can be serialized/deserialized using
  19977. {@link AvroReflectSerialization}.]]>
  19978. </doc>
  19979. </interface>
  19980. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  19981. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  19982. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  19983. abstract="false"
  19984. static="false" final="false" visibility="public"
  19985. deprecated="not deprecated">
  19986. <constructor name="AvroReflectSerialization"
  19987. static="false" final="false" visibility="public"
  19988. deprecated="not deprecated">
  19989. </constructor>
  19990. <method name="accept" return="boolean"
  19991. abstract="false" native="false" synchronized="true"
  19992. static="false" final="false" visibility="public"
  19993. deprecated="not deprecated">
  19994. <param name="c" type="java.lang.Class"/>
  19995. </method>
  19996. <method name="getReader" return="org.apache.avro.io.DatumReader"
  19997. abstract="false" native="false" synchronized="false"
  19998. static="false" final="false" visibility="public"
  19999. deprecated="not deprecated">
  20000. <param name="clazz" type="java.lang.Class"/>
  20001. </method>
  20002. <method name="getSchema" return="org.apache.avro.Schema"
  20003. abstract="false" native="false" synchronized="false"
  20004. static="false" final="false" visibility="public"
  20005. deprecated="not deprecated">
  20006. <param name="t" type="java.lang.Object"/>
  20007. </method>
  20008. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  20009. abstract="false" native="false" synchronized="false"
  20010. static="false" final="false" visibility="public"
  20011. deprecated="not deprecated">
  20012. <param name="clazz" type="java.lang.Class"/>
  20013. </method>
  20014. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  20015. transient="false" volatile="false"
  20016. static="true" final="true" visibility="public"
  20017. deprecated="not deprecated">
  20018. <doc>
  20019. <![CDATA[Key to configure packages that contain classes to be serialized and
  20020. deserialized using this class. Multiple packages can be specified using
  20021. comma-separated list.]]>
  20022. </doc>
  20023. </field>
  20024. <doc>
  20025. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  20026. serialization, it must either be in the package list configured via
  20027. <code>avro.reflect.pkgs</code> or implement
  20028. {@link AvroReflectSerializable} interface.]]>
  20029. </doc>
  20030. </class>
  20031. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  20032. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  20033. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  20034. abstract="true"
  20035. static="false" final="false" visibility="public"
  20036. deprecated="not deprecated">
  20037. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  20038. <constructor name="AvroSerialization"
  20039. static="false" final="false" visibility="public"
  20040. deprecated="not deprecated">
  20041. </constructor>
  20042. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  20043. abstract="false" native="false" synchronized="false"
  20044. static="false" final="false" visibility="public"
  20045. deprecated="not deprecated">
  20046. <param name="c" type="java.lang.Class"/>
  20047. </method>
  20048. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  20049. abstract="false" native="false" synchronized="false"
  20050. static="false" final="false" visibility="public"
  20051. deprecated="not deprecated">
  20052. <param name="c" type="java.lang.Class"/>
  20053. </method>
  20054. <method name="getSchema" return="org.apache.avro.Schema"
  20055. abstract="true" native="false" synchronized="false"
  20056. static="false" final="false" visibility="public"
  20057. deprecated="not deprecated">
  20058. <param name="t" type="T"/>
  20059. <doc>
  20060. <![CDATA[Return an Avro Schema instance for the given class.]]>
  20061. </doc>
  20062. </method>
  20063. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  20064. abstract="true" native="false" synchronized="false"
  20065. static="false" final="false" visibility="public"
  20066. deprecated="not deprecated">
  20067. <param name="clazz" type="java.lang.Class"/>
  20068. <doc>
  20069. <![CDATA[Create and return Avro DatumWriter for the given class.]]>
  20070. </doc>
  20071. </method>
  20072. <method name="getReader" return="org.apache.avro.io.DatumReader"
  20073. abstract="true" native="false" synchronized="false"
  20074. static="false" final="false" visibility="public"
  20075. deprecated="not deprecated">
  20076. <param name="clazz" type="java.lang.Class"/>
  20077. <doc>
  20078. <![CDATA[Create and return Avro DatumReader for the given class.]]>
  20079. </doc>
  20080. </method>
  20081. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  20082. transient="false" volatile="false"
  20083. static="true" final="true" visibility="public"
  20084. deprecated="not deprecated">
  20085. </field>
  20086. <doc>
  20087. <![CDATA[Base class for providing serialization to Avro types.]]>
  20088. </doc>
  20089. </class>
  20090. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  20091. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  20092. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  20093. abstract="false"
  20094. static="false" final="false" visibility="public"
  20095. deprecated="not deprecated">
  20096. <constructor name="AvroSpecificSerialization"
  20097. static="false" final="false" visibility="public"
  20098. deprecated="not deprecated">
  20099. </constructor>
  20100. <method name="accept" return="boolean"
  20101. abstract="false" native="false" synchronized="false"
  20102. static="false" final="false" visibility="public"
  20103. deprecated="not deprecated">
  20104. <param name="c" type="java.lang.Class"/>
  20105. </method>
  20106. <method name="getReader" return="org.apache.avro.io.DatumReader"
  20107. abstract="false" native="false" synchronized="false"
  20108. static="false" final="false" visibility="public"
  20109. deprecated="not deprecated">
  20110. <param name="clazz" type="java.lang.Class"/>
  20111. </method>
  20112. <method name="getSchema" return="org.apache.avro.Schema"
  20113. abstract="false" native="false" synchronized="false"
  20114. static="false" final="false" visibility="public"
  20115. deprecated="not deprecated">
  20116. <param name="t" type="org.apache.avro.specific.SpecificRecord"/>
  20117. </method>
  20118. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  20119. abstract="false" native="false" synchronized="false"
  20120. static="false" final="false" visibility="public"
  20121. deprecated="not deprecated">
  20122. <param name="clazz" type="java.lang.Class"/>
  20123. </method>
  20124. <doc>
  20125. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  20126. for classes generated by Avro's 'specific' compiler.]]>
  20127. </doc>
  20128. </class>
  20129. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  20130. <doc>
  20131. <![CDATA[<p>
  20132. This package provides Avro serialization in Hadoop. This can be used to
  20133. serialize/deserialize Avro types in Hadoop.
  20134. </p>
  20135. <p>
  20136. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  20137. serialization of classes generated by Avro's 'specific' compiler.
  20138. </p>
  20139. <p>
  20140. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  20141. other classes.
  20142. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  20143. any class which is either in the package list configured via
  20144. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  20145. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  20146. interface.
  20147. </p>]]>
  20148. </doc>
  20149. </package>
  20150. <package name="org.apache.hadoop.log">
  20151. <!-- start class org.apache.hadoop.log.EventCounter -->
  20152. <class name="EventCounter" extends="org.apache.hadoop.metrics.jvm.EventCounter"
  20153. abstract="false"
  20154. static="false" final="false" visibility="public"
  20155. deprecated="use {@link org.apache.hadoop.metrics.jvm.EventCounter} instead">
  20156. <constructor name="EventCounter"
  20157. static="false" final="false" visibility="public"
  20158. deprecated="not deprecated">
  20159. </constructor>
  20160. <doc>
  20161. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  20162. fatal, error and warn. The class name is used in log4j.properties
  20163. Note that with metrics2 this class will be moved to org.apache.hadoop.log.metrics.EventCounter
  20164. @deprecated use {@link org.apache.hadoop.metrics.jvm.EventCounter} instead]]>
  20165. </doc>
  20166. </class>
  20167. <!-- end class org.apache.hadoop.log.EventCounter -->
  20168. <!-- start class org.apache.hadoop.log.LogLevel -->
  20169. <class name="LogLevel" extends="java.lang.Object"
  20170. abstract="false"
  20171. static="false" final="false" visibility="public"
  20172. deprecated="not deprecated">
  20173. <constructor name="LogLevel"
  20174. static="false" final="false" visibility="public"
  20175. deprecated="not deprecated">
  20176. </constructor>
  20177. <method name="main"
  20178. abstract="false" native="false" synchronized="false"
  20179. static="true" final="false" visibility="public"
  20180. deprecated="not deprecated">
  20181. <param name="args" type="java.lang.String[]"/>
  20182. <doc>
  20183. <![CDATA[A command line implementation]]>
  20184. </doc>
  20185. </method>
  20186. <field name="USAGES" type="java.lang.String"
  20187. transient="false" volatile="false"
  20188. static="true" final="true" visibility="public"
  20189. deprecated="not deprecated">
  20190. </field>
  20191. <doc>
  20192. <![CDATA[Change log level in runtime.]]>
  20193. </doc>
  20194. </class>
  20195. <!-- end class org.apache.hadoop.log.LogLevel -->
  20196. </package>
  20197. <package name="org.apache.hadoop.metrics">
  20198. <doc>
  20199. <![CDATA[This package defines an API for reporting performance metric information.
  20200. <p/>
  20201. The API is abstract so that it can be implemented on top of
  20202. a variety of metrics client libraries. The choice of
  20203. client library is a configuration option, and different
  20204. modules within the same application can use
  20205. different metrics implementation libraries.
  20206. <p/>
  20207. Sub-packages:
  20208. <dl>
  20209. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  20210. <dd>The abstract Server Provider Interface package. Those wishing to
  20211. integrate the metrics API with a particular metrics client library should
  20212. extend this package.</dd>
  20213. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  20214. <dd>An implementation package which writes the metric data to
  20215. a file, or sends it to the standard output stream.</dd>
  20216. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  20217. <dd>An implementation package which sends metric data to
  20218. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  20219. </dl>
  20220. <h3>Introduction to the Metrics API</h3>
  20221. Here is a simple example of how to use this package to report a single
  20222. metric value:
  20223. <pre>
  20224. private ContextFactory contextFactory = ContextFactory.getFactory();
  20225. void reportMyMetric(float myMetric) {
  20226. MetricsContext myContext = contextFactory.getContext("myContext");
  20227. MetricsRecord myRecord = myContext.getRecord("myRecord");
  20228. myRecord.setMetric("myMetric", myMetric);
  20229. myRecord.update();
  20230. }
  20231. </pre>
  20232. In this example there are three names:
  20233. <dl>
  20234. <dt><i>myContext</i></dt>
  20235. <dd>The context name will typically identify either the application, or else a
  20236. module within an application or library.</dd>
  20237. <dt><i>myRecord</i></dt>
  20238. <dd>The record name generally identifies some entity for which a set of
  20239. metrics are to be reported. For example, you could have a record named
  20240. "cacheStats" for reporting a number of statistics relating to the usage of
  20241. some cache in your application.</dd>
  20242. <dt><i>myMetric</i></dt>
  20243. <dd>This identifies a particular metric. For example, you might have metrics
  20244. named "cache_hits" and "cache_misses".
  20245. </dd>
  20246. </dl>
  20247. <h3>Tags</h3>
  20248. In some cases it is useful to have multiple records with the same name. For
  20249. example, suppose that you want to report statistics about each disk on a computer.
  20250. In this case, the record name would be something like "diskStats", but you also
  20251. need to identify the disk which is done by adding a <i>tag</i> to the record.
  20252. The code could look something like this:
  20253. <pre>
  20254. private MetricsRecord diskStats =
  20255. contextFactory.getContext("myContext").getRecord("diskStats");
  20256. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  20257. diskStats.setTag("diskName", diskName);
  20258. diskStats.setMetric("diskBusy", diskBusy);
  20259. diskStats.setMetric("diskUsed", diskUsed);
  20260. diskStats.update();
  20261. }
  20262. </pre>
  20263. <h3>Buffering and Callbacks</h3>
  20264. Data is not sent immediately to the metrics system when
  20265. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  20266. internal table, and the contents of the table are sent periodically.
  20267. This can be important for two reasons:
  20268. <ol>
  20269. <li>It means that a programmer is free to put calls to this API in an
  20270. inner loop, since updates can be very frequent without slowing down
  20271. the application significantly.</li>
  20272. <li>Some implementations can gain efficiency by combining many metrics
  20273. into a single UDP message.</li>
  20274. </ol>
  20275. The API provides a timer-based callback via the
  20276. <code>registerUpdater()</code> method. The benefit of this
  20277. versus using <code>java.util.Timer</code> is that the callbacks will be done
  20278. immediately before sending the data, making the data as current as possible.
  20279. <h3>Configuration</h3>
  20280. It is possible to programmatically examine and modify configuration data
  20281. before creating a context, like this:
  20282. <pre>
  20283. ContextFactory factory = ContextFactory.getFactory();
  20284. ... examine and/or modify factory attributes ...
  20285. MetricsContext context = factory.getContext("myContext");
  20286. </pre>
  20287. The factory attributes can be examined and modified using the following
  20288. <code>ContextFactory</code>methods:
  20289. <ul>
  20290. <li><code>Object getAttribute(String attributeName)</code></li>
  20291. <li><code>String[] getAttributeNames()</code></li>
  20292. <li><code>void setAttribute(String name, Object value)</code></li>
  20293. <li><code>void removeAttribute(attributeName)</code></li>
  20294. </ul>
  20295. <p/>
  20296. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  20297. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  20298. on the class path.
  20299. <p/>
  20300. A factory attribute named:
  20301. <pre>
  20302. <i>contextName</i>.class
  20303. </pre>
  20304. should have as its value the fully qualified name of the class to be
  20305. instantiated by a call of the <code>CodeFactory</code> method
  20306. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  20307. specified, the default is to instantiate
  20308. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  20309. <p/>
  20310. Other factory attributes are specific to a particular implementation of this
  20311. API and are documented elsewhere. For example, configuration attributes for
  20312. the file and Ganglia implementations can be found in the javadoc for
  20313. their respective packages.]]>
  20314. </doc>
  20315. </package>
  20316. <package name="org.apache.hadoop.metrics.file">
  20317. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  20318. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20319. abstract="false"
  20320. static="false" final="false" visibility="public"
  20321. deprecated="not deprecated">
  20322. <constructor name="FileContext"
  20323. static="false" final="false" visibility="public"
  20324. deprecated="not deprecated">
  20325. <doc>
  20326. <![CDATA[Creates a new instance of FileContext]]>
  20327. </doc>
  20328. </constructor>
  20329. <method name="init"
  20330. abstract="false" native="false" synchronized="false"
  20331. static="false" final="false" visibility="public"
  20332. deprecated="not deprecated">
  20333. <param name="contextName" type="java.lang.String"/>
  20334. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20335. </method>
  20336. <method name="getFileName" return="java.lang.String"
  20337. abstract="false" native="false" synchronized="false"
  20338. static="false" final="false" visibility="public"
  20339. deprecated="not deprecated">
  20340. <doc>
  20341. <![CDATA[Returns the configured file name, or null.]]>
  20342. </doc>
  20343. </method>
  20344. <method name="startMonitoring"
  20345. abstract="false" native="false" synchronized="false"
  20346. static="false" final="false" visibility="public"
  20347. deprecated="not deprecated">
  20348. <exception name="IOException" type="java.io.IOException"/>
  20349. <doc>
  20350. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  20351. file specified by the <code>fileName</code> attribute,
  20352. if specified. Otherwise the data will be written to standard
  20353. output.]]>
  20354. </doc>
  20355. </method>
  20356. <method name="stopMonitoring"
  20357. abstract="false" native="false" synchronized="false"
  20358. static="false" final="false" visibility="public"
  20359. deprecated="not deprecated">
  20360. <doc>
  20361. <![CDATA[Stops monitoring, closing the file.
  20362. @see #close()]]>
  20363. </doc>
  20364. </method>
  20365. <method name="emitRecord"
  20366. abstract="false" native="false" synchronized="false"
  20367. static="false" final="false" visibility="public"
  20368. deprecated="not deprecated">
  20369. <param name="contextName" type="java.lang.String"/>
  20370. <param name="recordName" type="java.lang.String"/>
  20371. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20372. <doc>
  20373. <![CDATA[Emits a metrics record to a file.]]>
  20374. </doc>
  20375. </method>
  20376. <method name="flush"
  20377. abstract="false" native="false" synchronized="false"
  20378. static="false" final="false" visibility="public"
  20379. deprecated="not deprecated">
  20380. <doc>
  20381. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  20382. </doc>
  20383. </method>
  20384. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  20385. transient="false" volatile="false"
  20386. static="true" final="true" visibility="protected"
  20387. deprecated="not deprecated">
  20388. </field>
  20389. <field name="PERIOD_PROPERTY" type="java.lang.String"
  20390. transient="false" volatile="false"
  20391. static="true" final="true" visibility="protected"
  20392. deprecated="not deprecated">
  20393. </field>
  20394. <doc>
  20395. <![CDATA[Metrics context for writing metrics to a file.<p/>
  20396. This class is configured by setting ContextFactory attributes which in turn
  20397. are usually configured through a properties file. All the attributes are
  20398. prefixed by the contextName. For example, the properties file might contain:
  20399. <pre>
  20400. myContextName.fileName=/tmp/metrics.log
  20401. myContextName.period=5
  20402. </pre>]]>
  20403. </doc>
  20404. </class>
  20405. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  20406. <doc>
  20407. <![CDATA[Implementation of the metrics package that writes the metrics to a file.
  20408. Programmers should not normally need to use this package directly. Instead
  20409. they should use org.hadoop.metrics.
  20410. <p/>
  20411. These are the implementation specific factory attributes
  20412. (See ContextFactory.getFactory()):
  20413. <dl>
  20414. <dt><i>contextName</i>.fileName</dt>
  20415. <dd>The path of the file to which metrics in context <i>contextName</i>
  20416. are to be appended. If this attribute is not specified, the metrics
  20417. are written to standard output by default.</dd>
  20418. <dt><i>contextName</i>.period</dt>
  20419. <dd>The period in seconds on which the metric data is written to the
  20420. file.</dd>
  20421. </dl>]]>
  20422. </doc>
  20423. </package>
  20424. <package name="org.apache.hadoop.metrics.ganglia">
  20425. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  20426. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20427. abstract="false"
  20428. static="false" final="false" visibility="public"
  20429. deprecated="not deprecated">
  20430. <constructor name="GangliaContext"
  20431. static="false" final="false" visibility="public"
  20432. deprecated="not deprecated">
  20433. <doc>
  20434. <![CDATA[Creates a new instance of GangliaContext]]>
  20435. </doc>
  20436. </constructor>
  20437. <method name="init"
  20438. abstract="false" native="false" synchronized="false"
  20439. static="false" final="false" visibility="public"
  20440. deprecated="not deprecated">
  20441. <param name="contextName" type="java.lang.String"/>
  20442. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20443. </method>
  20444. <method name="close"
  20445. abstract="false" native="false" synchronized="false"
  20446. static="false" final="false" visibility="public"
  20447. deprecated="not deprecated">
  20448. <doc>
  20449. <![CDATA[method to close the datagram socket]]>
  20450. </doc>
  20451. </method>
  20452. <method name="emitRecord"
  20453. abstract="false" native="false" synchronized="false"
  20454. static="false" final="false" visibility="public"
  20455. deprecated="not deprecated">
  20456. <param name="contextName" type="java.lang.String"/>
  20457. <param name="recordName" type="java.lang.String"/>
  20458. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20459. <exception name="IOException" type="java.io.IOException"/>
  20460. </method>
  20461. <method name="emitMetric"
  20462. abstract="false" native="false" synchronized="false"
  20463. static="false" final="false" visibility="protected"
  20464. deprecated="not deprecated">
  20465. <param name="name" type="java.lang.String"/>
  20466. <param name="type" type="java.lang.String"/>
  20467. <param name="value" type="java.lang.String"/>
  20468. <exception name="IOException" type="java.io.IOException"/>
  20469. </method>
  20470. <method name="getUnits" return="java.lang.String"
  20471. abstract="false" native="false" synchronized="false"
  20472. static="false" final="false" visibility="protected"
  20473. deprecated="not deprecated">
  20474. <param name="metricName" type="java.lang.String"/>
  20475. </method>
  20476. <method name="getSlope" return="int"
  20477. abstract="false" native="false" synchronized="false"
  20478. static="false" final="false" visibility="protected"
  20479. deprecated="not deprecated">
  20480. <param name="metricName" type="java.lang.String"/>
  20481. </method>
  20482. <method name="getTmax" return="int"
  20483. abstract="false" native="false" synchronized="false"
  20484. static="false" final="false" visibility="protected"
  20485. deprecated="not deprecated">
  20486. <param name="metricName" type="java.lang.String"/>
  20487. </method>
  20488. <method name="getDmax" return="int"
  20489. abstract="false" native="false" synchronized="false"
  20490. static="false" final="false" visibility="protected"
  20491. deprecated="not deprecated">
  20492. <param name="metricName" type="java.lang.String"/>
  20493. </method>
  20494. <method name="xdr_string"
  20495. abstract="false" native="false" synchronized="false"
  20496. static="false" final="false" visibility="protected"
  20497. deprecated="not deprecated">
  20498. <param name="s" type="java.lang.String"/>
  20499. <doc>
  20500. <![CDATA[Puts a string into the buffer by first writing the size of the string
  20501. as an int, followed by the bytes of the string, padded if necessary to
  20502. a multiple of 4.]]>
  20503. </doc>
  20504. </method>
  20505. <method name="xdr_int"
  20506. abstract="false" native="false" synchronized="false"
  20507. static="false" final="false" visibility="protected"
  20508. deprecated="not deprecated">
  20509. <param name="i" type="int"/>
  20510. <doc>
  20511. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  20512. </doc>
  20513. </method>
  20514. <field name="buffer" type="byte[]"
  20515. transient="false" volatile="false"
  20516. static="false" final="false" visibility="protected"
  20517. deprecated="not deprecated">
  20518. </field>
  20519. <field name="offset" type="int"
  20520. transient="false" volatile="false"
  20521. static="false" final="false" visibility="protected"
  20522. deprecated="not deprecated">
  20523. </field>
  20524. <field name="metricsServers" type="java.util.List"
  20525. transient="false" volatile="false"
  20526. static="false" final="false" visibility="protected"
  20527. deprecated="not deprecated">
  20528. </field>
  20529. <field name="datagramSocket" type="java.net.DatagramSocket"
  20530. transient="false" volatile="false"
  20531. static="false" final="false" visibility="protected"
  20532. deprecated="not deprecated">
  20533. </field>
  20534. <doc>
  20535. <![CDATA[Context for sending metrics to Ganglia.]]>
  20536. </doc>
  20537. </class>
  20538. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  20539. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  20540. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  20541. abstract="false"
  20542. static="false" final="false" visibility="public"
  20543. deprecated="not deprecated">
  20544. <constructor name="GangliaContext31"
  20545. static="false" final="false" visibility="public"
  20546. deprecated="not deprecated">
  20547. </constructor>
  20548. <method name="init"
  20549. abstract="false" native="false" synchronized="false"
  20550. static="false" final="false" visibility="public"
  20551. deprecated="not deprecated">
  20552. <param name="contextName" type="java.lang.String"/>
  20553. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20554. </method>
  20555. <method name="emitMetric"
  20556. abstract="false" native="false" synchronized="false"
  20557. static="false" final="false" visibility="protected"
  20558. deprecated="not deprecated">
  20559. <param name="name" type="java.lang.String"/>
  20560. <param name="type" type="java.lang.String"/>
  20561. <param name="value" type="java.lang.String"/>
  20562. <exception name="IOException" type="java.io.IOException"/>
  20563. </method>
  20564. <doc>
  20565. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  20566. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  20567. </doc>
  20568. </class>
  20569. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  20570. <doc>
  20571. <![CDATA[<!--
  20572. * Licensed to the Apache Software Foundation (ASF) under one
  20573. * or more contributor license agreements. See the NOTICE file
  20574. * distributed with this work for additional information
  20575. * regarding copyright ownership. The ASF licenses this file
  20576. * to you under the Apache License, Version 2.0 (the
  20577. * "License"); you may not use this file except in compliance
  20578. * with the License. You may obtain a copy of the License at
  20579. *
  20580. * http://www.apache.org/licenses/LICENSE-2.0
  20581. *
  20582. * Unless required by applicable law or agreed to in writing, software
  20583. * distributed under the License is distributed on an "AS IS" BASIS,
  20584. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  20585. * See the License for the specific language governing permissions and
  20586. * limitations under the License.
  20587. -->
  20588. Implementation of the metrics package that sends metric data to
  20589. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  20590. Programmers should not normally need to use this package directly. Instead
  20591. they should use org.hadoop.metrics.
  20592. <p/>
  20593. These are the implementation specific factory attributes
  20594. (See ContextFactory.getFactory()):
  20595. <dl>
  20596. <dt><i>contextName</i>.servers</dt>
  20597. <dd>Space and/or comma separated sequence of servers to which UDP
  20598. messages should be sent.</dd>
  20599. <dt><i>contextName</i>.period</dt>
  20600. <dd>The period in seconds on which the metric data is sent to the
  20601. server(s).</dd>
  20602. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  20603. <dd>The units for the specified metric in the specified record.</dd>
  20604. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  20605. <dd>The slope for the specified metric in the specified record.</dd>
  20606. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  20607. <dd>The tmax for the specified metric in the specified record.</dd>
  20608. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  20609. <dd>The dmax for the specified metric in the specified record.</dd>
  20610. </dl>]]>
  20611. </doc>
  20612. </package>
  20613. <package name="org.apache.hadoop.metrics.spi">
  20614. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  20615. <class name="AbstractMetricsContext" extends="java.lang.Object"
  20616. abstract="true"
  20617. static="false" final="false" visibility="public"
  20618. deprecated="not deprecated">
  20619. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  20620. <constructor name="AbstractMetricsContext"
  20621. static="false" final="false" visibility="protected"
  20622. deprecated="not deprecated">
  20623. <doc>
  20624. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  20625. </doc>
  20626. </constructor>
  20627. <method name="init"
  20628. abstract="false" native="false" synchronized="false"
  20629. static="false" final="false" visibility="public"
  20630. deprecated="not deprecated">
  20631. <param name="contextName" type="java.lang.String"/>
  20632. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20633. <doc>
  20634. <![CDATA[Initializes the context.]]>
  20635. </doc>
  20636. </method>
  20637. <method name="getAttribute" return="java.lang.String"
  20638. abstract="false" native="false" synchronized="false"
  20639. static="false" final="false" visibility="protected"
  20640. deprecated="not deprecated">
  20641. <param name="attributeName" type="java.lang.String"/>
  20642. <doc>
  20643. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  20644. </doc>
  20645. </method>
  20646. <method name="getAttributeTable" return="java.util.Map"
  20647. abstract="false" native="false" synchronized="false"
  20648. static="false" final="false" visibility="protected"
  20649. deprecated="not deprecated">
  20650. <param name="tableName" type="java.lang.String"/>
  20651. <doc>
  20652. <![CDATA[Returns an attribute-value map derived from the factory attributes
  20653. by finding all factory attributes that begin with
  20654. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  20655. those attributes with the contextName and tableName stripped off.]]>
  20656. </doc>
  20657. </method>
  20658. <method name="getContextName" return="java.lang.String"
  20659. abstract="false" native="false" synchronized="false"
  20660. static="false" final="false" visibility="public"
  20661. deprecated="not deprecated">
  20662. <doc>
  20663. <![CDATA[Returns the context name.]]>
  20664. </doc>
  20665. </method>
  20666. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  20667. abstract="false" native="false" synchronized="false"
  20668. static="false" final="false" visibility="public"
  20669. deprecated="not deprecated">
  20670. <doc>
  20671. <![CDATA[Returns the factory by which this context was created.]]>
  20672. </doc>
  20673. </method>
  20674. <method name="startMonitoring"
  20675. abstract="false" native="false" synchronized="true"
  20676. static="false" final="false" visibility="public"
  20677. deprecated="not deprecated">
  20678. <exception name="IOException" type="java.io.IOException"/>
  20679. <doc>
  20680. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  20681. </doc>
  20682. </method>
  20683. <method name="stopMonitoring"
  20684. abstract="false" native="false" synchronized="true"
  20685. static="false" final="false" visibility="public"
  20686. deprecated="not deprecated">
  20687. <doc>
  20688. <![CDATA[Stops monitoring. This does not free buffered data.
  20689. @see #close()]]>
  20690. </doc>
  20691. </method>
  20692. <method name="isMonitoring" return="boolean"
  20693. abstract="false" native="false" synchronized="false"
  20694. static="false" final="false" visibility="public"
  20695. deprecated="not deprecated">
  20696. <doc>
  20697. <![CDATA[Returns true if monitoring is currently in progress.]]>
  20698. </doc>
  20699. </method>
  20700. <method name="close"
  20701. abstract="false" native="false" synchronized="true"
  20702. static="false" final="false" visibility="public"
  20703. deprecated="not deprecated">
  20704. <doc>
  20705. <![CDATA[Stops monitoring and frees buffered data, returning this
  20706. object to its initial state.]]>
  20707. </doc>
  20708. </method>
  20709. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  20710. abstract="false" native="false" synchronized="true"
  20711. static="false" final="true" visibility="public"
  20712. deprecated="not deprecated">
  20713. <param name="recordName" type="java.lang.String"/>
  20714. <doc>
  20715. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  20716. Throws an exception if the metrics implementation is configured with a fixed
  20717. set of record names and <code>recordName</code> is not in that set.
  20718. @param recordName the name of the record
  20719. @throws MetricsException if recordName conflicts with configuration data]]>
  20720. </doc>
  20721. </method>
  20722. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  20723. abstract="false" native="false" synchronized="false"
  20724. static="false" final="false" visibility="protected"
  20725. deprecated="not deprecated">
  20726. <param name="recordName" type="java.lang.String"/>
  20727. <doc>
  20728. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  20729. @param recordName the name of the record
  20730. @return newly created instance of MetricsRecordImpl or subclass]]>
  20731. </doc>
  20732. </method>
  20733. <method name="registerUpdater"
  20734. abstract="false" native="false" synchronized="true"
  20735. static="false" final="false" visibility="public"
  20736. deprecated="not deprecated">
  20737. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20738. <doc>
  20739. <![CDATA[Registers a callback to be called at time intervals determined by
  20740. the configuration.
  20741. @param updater object to be run periodically; it should update
  20742. some metrics records]]>
  20743. </doc>
  20744. </method>
  20745. <method name="unregisterUpdater"
  20746. abstract="false" native="false" synchronized="true"
  20747. static="false" final="false" visibility="public"
  20748. deprecated="not deprecated">
  20749. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20750. <doc>
  20751. <![CDATA[Removes a callback, if it exists.
  20752. @param updater object to be removed from the callback list]]>
  20753. </doc>
  20754. </method>
  20755. <method name="getAllRecords" return="java.util.Map"
  20756. abstract="false" native="false" synchronized="true"
  20757. static="false" final="false" visibility="public"
  20758. deprecated="not deprecated">
  20759. <doc>
  20760. <![CDATA[Retrieves all the records managed by this MetricsContext.
  20761. Useful for monitoring systems that are polling-based.
  20762. @return A non-null collection of all monitoring records.]]>
  20763. </doc>
  20764. </method>
  20765. <method name="emitRecord"
  20766. abstract="true" native="false" synchronized="false"
  20767. static="false" final="false" visibility="protected"
  20768. deprecated="not deprecated">
  20769. <param name="contextName" type="java.lang.String"/>
  20770. <param name="recordName" type="java.lang.String"/>
  20771. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20772. <exception name="IOException" type="java.io.IOException"/>
  20773. <doc>
  20774. <![CDATA[Sends a record to the metrics system.]]>
  20775. </doc>
  20776. </method>
  20777. <method name="flush"
  20778. abstract="false" native="false" synchronized="false"
  20779. static="false" final="false" visibility="protected"
  20780. deprecated="not deprecated">
  20781. <exception name="IOException" type="java.io.IOException"/>
  20782. <doc>
  20783. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  20784. Subclasses may override it in order to perform some kind of flush.]]>
  20785. </doc>
  20786. </method>
  20787. <method name="update"
  20788. abstract="false" native="false" synchronized="false"
  20789. static="false" final="false" visibility="protected"
  20790. deprecated="not deprecated">
  20791. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20792. <doc>
  20793. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  20794. the internal table of metric data.]]>
  20795. </doc>
  20796. </method>
  20797. <method name="remove"
  20798. abstract="false" native="false" synchronized="false"
  20799. static="false" final="false" visibility="protected"
  20800. deprecated="not deprecated">
  20801. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  20802. <doc>
  20803. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  20804. the internal table of metric data. A row matches if it has the same
  20805. tag names and values as record, but it may also have additional
  20806. tags.]]>
  20807. </doc>
  20808. </method>
  20809. <method name="getPeriod" return="int"
  20810. abstract="false" native="false" synchronized="false"
  20811. static="false" final="false" visibility="public"
  20812. deprecated="not deprecated">
  20813. <doc>
  20814. <![CDATA[Returns the timer period.]]>
  20815. </doc>
  20816. </method>
  20817. <method name="setPeriod"
  20818. abstract="false" native="false" synchronized="false"
  20819. static="false" final="false" visibility="protected"
  20820. deprecated="not deprecated">
  20821. <param name="period" type="int"/>
  20822. <doc>
  20823. <![CDATA[Sets the timer period]]>
  20824. </doc>
  20825. </method>
  20826. <method name="parseAndSetPeriod"
  20827. abstract="false" native="false" synchronized="false"
  20828. static="false" final="false" visibility="protected"
  20829. deprecated="not deprecated">
  20830. <param name="attributeName" type="java.lang.String"/>
  20831. <doc>
  20832. <![CDATA[If a period is set in the attribute passed in, override
  20833. the default with it.]]>
  20834. </doc>
  20835. </method>
  20836. <doc>
  20837. <![CDATA[The main class of the Service Provider Interface. This class should be
  20838. extended in order to integrate the Metrics API with a specific metrics
  20839. client library. <p/>
  20840. This class implements the internal table of metric data, and the timer
  20841. on which data is to be sent to the metrics system. Subclasses must
  20842. override the abstract <code>emitRecord</code> method in order to transmit
  20843. the data. <p/>]]>
  20844. </doc>
  20845. </class>
  20846. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  20847. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  20848. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20849. abstract="false"
  20850. static="false" final="false" visibility="public"
  20851. deprecated="not deprecated">
  20852. <constructor name="CompositeContext"
  20853. static="false" final="false" visibility="public"
  20854. deprecated="not deprecated">
  20855. </constructor>
  20856. <method name="init"
  20857. abstract="false" native="false" synchronized="false"
  20858. static="false" final="false" visibility="public"
  20859. deprecated="not deprecated">
  20860. <param name="contextName" type="java.lang.String"/>
  20861. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  20862. </method>
  20863. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  20864. abstract="false" native="false" synchronized="false"
  20865. static="false" final="false" visibility="public"
  20866. deprecated="not deprecated">
  20867. <param name="recordName" type="java.lang.String"/>
  20868. </method>
  20869. <method name="emitRecord"
  20870. abstract="false" native="false" synchronized="false"
  20871. static="false" final="false" visibility="protected"
  20872. deprecated="not deprecated">
  20873. <param name="contextName" type="java.lang.String"/>
  20874. <param name="recordName" type="java.lang.String"/>
  20875. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  20876. <exception name="IOException" type="java.io.IOException"/>
  20877. </method>
  20878. <method name="flush"
  20879. abstract="false" native="false" synchronized="false"
  20880. static="false" final="false" visibility="protected"
  20881. deprecated="not deprecated">
  20882. <exception name="IOException" type="java.io.IOException"/>
  20883. </method>
  20884. <method name="startMonitoring"
  20885. abstract="false" native="false" synchronized="false"
  20886. static="false" final="false" visibility="public"
  20887. deprecated="not deprecated">
  20888. <exception name="IOException" type="java.io.IOException"/>
  20889. </method>
  20890. <method name="stopMonitoring"
  20891. abstract="false" native="false" synchronized="false"
  20892. static="false" final="false" visibility="public"
  20893. deprecated="not deprecated">
  20894. </method>
  20895. <method name="isMonitoring" return="boolean"
  20896. abstract="false" native="false" synchronized="false"
  20897. static="false" final="false" visibility="public"
  20898. deprecated="not deprecated">
  20899. <doc>
  20900. <![CDATA[Return true if all subcontexts are monitoring.]]>
  20901. </doc>
  20902. </method>
  20903. <method name="close"
  20904. abstract="false" native="false" synchronized="false"
  20905. static="false" final="false" visibility="public"
  20906. deprecated="not deprecated">
  20907. </method>
  20908. <method name="registerUpdater"
  20909. abstract="false" native="false" synchronized="false"
  20910. static="false" final="false" visibility="public"
  20911. deprecated="not deprecated">
  20912. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20913. </method>
  20914. <method name="unregisterUpdater"
  20915. abstract="false" native="false" synchronized="false"
  20916. static="false" final="false" visibility="public"
  20917. deprecated="not deprecated">
  20918. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  20919. </method>
  20920. </class>
  20921. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  20922. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  20923. <class name="MetricsRecordImpl" extends="java.lang.Object"
  20924. abstract="false"
  20925. static="false" final="false" visibility="public"
  20926. deprecated="not deprecated">
  20927. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  20928. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  20929. static="false" final="false" visibility="protected"
  20930. deprecated="not deprecated">
  20931. <doc>
  20932. <![CDATA[Creates a new instance of FileRecord]]>
  20933. </doc>
  20934. </constructor>
  20935. <method name="getRecordName" return="java.lang.String"
  20936. abstract="false" native="false" synchronized="false"
  20937. static="false" final="false" visibility="public"
  20938. deprecated="not deprecated">
  20939. <doc>
  20940. <![CDATA[Returns the record name.
  20941. @return the record name]]>
  20942. </doc>
  20943. </method>
  20944. <method name="setTag"
  20945. abstract="false" native="false" synchronized="false"
  20946. static="false" final="false" visibility="public"
  20947. deprecated="not deprecated">
  20948. <param name="tagName" type="java.lang.String"/>
  20949. <param name="tagValue" type="java.lang.String"/>
  20950. <doc>
  20951. <![CDATA[Sets the named tag to the specified value.
  20952. @param tagName name of the tag
  20953. @param tagValue new value of the tag
  20954. @throws MetricsException if the tagName conflicts with the configuration]]>
  20955. </doc>
  20956. </method>
  20957. <method name="setTag"
  20958. abstract="false" native="false" synchronized="false"
  20959. static="false" final="false" visibility="public"
  20960. deprecated="not deprecated">
  20961. <param name="tagName" type="java.lang.String"/>
  20962. <param name="tagValue" type="int"/>
  20963. <doc>
  20964. <![CDATA[Sets the named tag to the specified value.
  20965. @param tagName name of the tag
  20966. @param tagValue new value of the tag
  20967. @throws MetricsException if the tagName conflicts with the configuration]]>
  20968. </doc>
  20969. </method>
  20970. <method name="setTag"
  20971. abstract="false" native="false" synchronized="false"
  20972. static="false" final="false" visibility="public"
  20973. deprecated="not deprecated">
  20974. <param name="tagName" type="java.lang.String"/>
  20975. <param name="tagValue" type="long"/>
  20976. <doc>
  20977. <![CDATA[Sets the named tag to the specified value.
  20978. @param tagName name of the tag
  20979. @param tagValue new value of the tag
  20980. @throws MetricsException if the tagName conflicts with the configuration]]>
  20981. </doc>
  20982. </method>
  20983. <method name="setTag"
  20984. abstract="false" native="false" synchronized="false"
  20985. static="false" final="false" visibility="public"
  20986. deprecated="not deprecated">
  20987. <param name="tagName" type="java.lang.String"/>
  20988. <param name="tagValue" type="short"/>
  20989. <doc>
  20990. <![CDATA[Sets the named tag to the specified value.
  20991. @param tagName name of the tag
  20992. @param tagValue new value of the tag
  20993. @throws MetricsException if the tagName conflicts with the configuration]]>
  20994. </doc>
  20995. </method>
  20996. <method name="setTag"
  20997. abstract="false" native="false" synchronized="false"
  20998. static="false" final="false" visibility="public"
  20999. deprecated="not deprecated">
  21000. <param name="tagName" type="java.lang.String"/>
  21001. <param name="tagValue" type="byte"/>
  21002. <doc>
  21003. <![CDATA[Sets the named tag to the specified value.
  21004. @param tagName name of the tag
  21005. @param tagValue new value of the tag
  21006. @throws MetricsException if the tagName conflicts with the configuration]]>
  21007. </doc>
  21008. </method>
  21009. <method name="removeTag"
  21010. abstract="false" native="false" synchronized="false"
  21011. static="false" final="false" visibility="public"
  21012. deprecated="not deprecated">
  21013. <param name="tagName" type="java.lang.String"/>
  21014. <doc>
  21015. <![CDATA[Removes any tag of the specified name.]]>
  21016. </doc>
  21017. </method>
  21018. <method name="setMetric"
  21019. abstract="false" native="false" synchronized="false"
  21020. static="false" final="false" visibility="public"
  21021. deprecated="not deprecated">
  21022. <param name="metricName" type="java.lang.String"/>
  21023. <param name="metricValue" type="int"/>
  21024. <doc>
  21025. <![CDATA[Sets the named metric to the specified value.
  21026. @param metricName name of the metric
  21027. @param metricValue new value of the metric
  21028. @throws MetricsException if the metricName or the type of the metricValue
  21029. conflicts with the configuration]]>
  21030. </doc>
  21031. </method>
  21032. <method name="setMetric"
  21033. abstract="false" native="false" synchronized="false"
  21034. static="false" final="false" visibility="public"
  21035. deprecated="not deprecated">
  21036. <param name="metricName" type="java.lang.String"/>
  21037. <param name="metricValue" type="long"/>
  21038. <doc>
  21039. <![CDATA[Sets the named metric to the specified value.
  21040. @param metricName name of the metric
  21041. @param metricValue new value of the metric
  21042. @throws MetricsException if the metricName or the type of the metricValue
  21043. conflicts with the configuration]]>
  21044. </doc>
  21045. </method>
  21046. <method name="setMetric"
  21047. abstract="false" native="false" synchronized="false"
  21048. static="false" final="false" visibility="public"
  21049. deprecated="not deprecated">
  21050. <param name="metricName" type="java.lang.String"/>
  21051. <param name="metricValue" type="short"/>
  21052. <doc>
  21053. <![CDATA[Sets the named metric to the specified value.
  21054. @param metricName name of the metric
  21055. @param metricValue new value of the metric
  21056. @throws MetricsException if the metricName or the type of the metricValue
  21057. conflicts with the configuration]]>
  21058. </doc>
  21059. </method>
  21060. <method name="setMetric"
  21061. abstract="false" native="false" synchronized="false"
  21062. static="false" final="false" visibility="public"
  21063. deprecated="not deprecated">
  21064. <param name="metricName" type="java.lang.String"/>
  21065. <param name="metricValue" type="byte"/>
  21066. <doc>
  21067. <![CDATA[Sets the named metric to the specified value.
  21068. @param metricName name of the metric
  21069. @param metricValue new value of the metric
  21070. @throws MetricsException if the metricName or the type of the metricValue
  21071. conflicts with the configuration]]>
  21072. </doc>
  21073. </method>
  21074. <method name="setMetric"
  21075. abstract="false" native="false" synchronized="false"
  21076. static="false" final="false" visibility="public"
  21077. deprecated="not deprecated">
  21078. <param name="metricName" type="java.lang.String"/>
  21079. <param name="metricValue" type="float"/>
  21080. <doc>
  21081. <![CDATA[Sets the named metric to the specified value.
  21082. @param metricName name of the metric
  21083. @param metricValue new value of the metric
  21084. @throws MetricsException if the metricName or the type of the metricValue
  21085. conflicts with the configuration]]>
  21086. </doc>
  21087. </method>
  21088. <method name="incrMetric"
  21089. abstract="false" native="false" synchronized="false"
  21090. static="false" final="false" visibility="public"
  21091. deprecated="not deprecated">
  21092. <param name="metricName" type="java.lang.String"/>
  21093. <param name="metricValue" type="int"/>
  21094. <doc>
  21095. <![CDATA[Increments the named metric by the specified value.
  21096. @param metricName name of the metric
  21097. @param metricValue incremental value
  21098. @throws MetricsException if the metricName or the type of the metricValue
  21099. conflicts with the configuration]]>
  21100. </doc>
  21101. </method>
  21102. <method name="incrMetric"
  21103. abstract="false" native="false" synchronized="false"
  21104. static="false" final="false" visibility="public"
  21105. deprecated="not deprecated">
  21106. <param name="metricName" type="java.lang.String"/>
  21107. <param name="metricValue" type="long"/>
  21108. <doc>
  21109. <![CDATA[Increments the named metric by the specified value.
  21110. @param metricName name of the metric
  21111. @param metricValue incremental value
  21112. @throws MetricsException if the metricName or the type of the metricValue
  21113. conflicts with the configuration]]>
  21114. </doc>
  21115. </method>
  21116. <method name="incrMetric"
  21117. abstract="false" native="false" synchronized="false"
  21118. static="false" final="false" visibility="public"
  21119. deprecated="not deprecated">
  21120. <param name="metricName" type="java.lang.String"/>
  21121. <param name="metricValue" type="short"/>
  21122. <doc>
  21123. <![CDATA[Increments the named metric by the specified value.
  21124. @param metricName name of the metric
  21125. @param metricValue incremental value
  21126. @throws MetricsException if the metricName or the type of the metricValue
  21127. conflicts with the configuration]]>
  21128. </doc>
  21129. </method>
  21130. <method name="incrMetric"
  21131. abstract="false" native="false" synchronized="false"
  21132. static="false" final="false" visibility="public"
  21133. deprecated="not deprecated">
  21134. <param name="metricName" type="java.lang.String"/>
  21135. <param name="metricValue" type="byte"/>
  21136. <doc>
  21137. <![CDATA[Increments the named metric by the specified value.
  21138. @param metricName name of the metric
  21139. @param metricValue incremental value
  21140. @throws MetricsException if the metricName or the type of the metricValue
  21141. conflicts with the configuration]]>
  21142. </doc>
  21143. </method>
  21144. <method name="incrMetric"
  21145. abstract="false" native="false" synchronized="false"
  21146. static="false" final="false" visibility="public"
  21147. deprecated="not deprecated">
  21148. <param name="metricName" type="java.lang.String"/>
  21149. <param name="metricValue" type="float"/>
  21150. <doc>
  21151. <![CDATA[Increments the named metric by the specified value.
  21152. @param metricName name of the metric
  21153. @param metricValue incremental value
  21154. @throws MetricsException if the metricName or the type of the metricValue
  21155. conflicts with the configuration]]>
  21156. </doc>
  21157. </method>
  21158. <method name="update"
  21159. abstract="false" native="false" synchronized="false"
  21160. static="false" final="false" visibility="public"
  21161. deprecated="not deprecated">
  21162. <doc>
  21163. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  21164. If the tag values match an existing row, that row is updated;
  21165. otherwise, a new row is added.]]>
  21166. </doc>
  21167. </method>
  21168. <method name="remove"
  21169. abstract="false" native="false" synchronized="false"
  21170. static="false" final="false" visibility="public"
  21171. deprecated="not deprecated">
  21172. <doc>
  21173. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  21174. that equal the tags that have been set on this record.]]>
  21175. </doc>
  21176. </method>
  21177. <doc>
  21178. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  21179. from which it was created, and delegates back to it on <code>update</code>
  21180. and <code>remove()</code>.]]>
  21181. </doc>
  21182. </class>
  21183. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  21184. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  21185. <class name="MetricValue" extends="java.lang.Object"
  21186. abstract="false"
  21187. static="false" final="false" visibility="public"
  21188. deprecated="not deprecated">
  21189. <constructor name="MetricValue" type="java.lang.Number, boolean"
  21190. static="false" final="false" visibility="public"
  21191. deprecated="not deprecated">
  21192. <doc>
  21193. <![CDATA[Creates a new instance of MetricValue]]>
  21194. </doc>
  21195. </constructor>
  21196. <method name="isIncrement" return="boolean"
  21197. abstract="false" native="false" synchronized="false"
  21198. static="false" final="false" visibility="public"
  21199. deprecated="not deprecated">
  21200. </method>
  21201. <method name="isAbsolute" return="boolean"
  21202. abstract="false" native="false" synchronized="false"
  21203. static="false" final="false" visibility="public"
  21204. deprecated="not deprecated">
  21205. </method>
  21206. <method name="getNumber" return="java.lang.Number"
  21207. abstract="false" native="false" synchronized="false"
  21208. static="false" final="false" visibility="public"
  21209. deprecated="not deprecated">
  21210. </method>
  21211. <field name="ABSOLUTE" type="boolean"
  21212. transient="false" volatile="false"
  21213. static="true" final="true" visibility="public"
  21214. deprecated="not deprecated">
  21215. </field>
  21216. <field name="INCREMENT" type="boolean"
  21217. transient="false" volatile="false"
  21218. static="true" final="true" visibility="public"
  21219. deprecated="not deprecated">
  21220. </field>
  21221. <doc>
  21222. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  21223. </doc>
  21224. </class>
  21225. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  21226. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  21227. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21228. abstract="false"
  21229. static="false" final="false" visibility="public"
  21230. deprecated="not deprecated">
  21231. <constructor name="NoEmitMetricsContext"
  21232. static="false" final="false" visibility="public"
  21233. deprecated="not deprecated">
  21234. <doc>
  21235. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  21236. </doc>
  21237. </constructor>
  21238. <method name="init"
  21239. abstract="false" native="false" synchronized="false"
  21240. static="false" final="false" visibility="public"
  21241. deprecated="not deprecated">
  21242. <param name="contextName" type="java.lang.String"/>
  21243. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  21244. </method>
  21245. <method name="emitRecord"
  21246. abstract="false" native="false" synchronized="false"
  21247. static="false" final="false" visibility="protected"
  21248. deprecated="not deprecated">
  21249. <param name="contextName" type="java.lang.String"/>
  21250. <param name="recordName" type="java.lang.String"/>
  21251. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  21252. <doc>
  21253. <![CDATA[Do-nothing version of emitRecord]]>
  21254. </doc>
  21255. </method>
  21256. <doc>
  21257. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  21258. does save it for retrieval with getAllRecords().
  21259. This is useful if you want to support {@link MetricsServlet}, but
  21260. not emit metrics in any other way.]]>
  21261. </doc>
  21262. </class>
  21263. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  21264. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  21265. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21266. abstract="false"
  21267. static="false" final="false" visibility="public"
  21268. deprecated="not deprecated">
  21269. <constructor name="NullContext"
  21270. static="false" final="false" visibility="public"
  21271. deprecated="not deprecated">
  21272. <doc>
  21273. <![CDATA[Creates a new instance of NullContext]]>
  21274. </doc>
  21275. </constructor>
  21276. <method name="startMonitoring"
  21277. abstract="false" native="false" synchronized="false"
  21278. static="false" final="false" visibility="public"
  21279. deprecated="not deprecated">
  21280. <doc>
  21281. <![CDATA[Do-nothing version of startMonitoring]]>
  21282. </doc>
  21283. </method>
  21284. <method name="emitRecord"
  21285. abstract="false" native="false" synchronized="false"
  21286. static="false" final="false" visibility="protected"
  21287. deprecated="not deprecated">
  21288. <param name="contextName" type="java.lang.String"/>
  21289. <param name="recordName" type="java.lang.String"/>
  21290. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  21291. <doc>
  21292. <![CDATA[Do-nothing version of emitRecord]]>
  21293. </doc>
  21294. </method>
  21295. <method name="update"
  21296. abstract="false" native="false" synchronized="false"
  21297. static="false" final="false" visibility="protected"
  21298. deprecated="not deprecated">
  21299. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  21300. <doc>
  21301. <![CDATA[Do-nothing version of update]]>
  21302. </doc>
  21303. </method>
  21304. <method name="remove"
  21305. abstract="false" native="false" synchronized="false"
  21306. static="false" final="false" visibility="protected"
  21307. deprecated="not deprecated">
  21308. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  21309. <doc>
  21310. <![CDATA[Do-nothing version of remove]]>
  21311. </doc>
  21312. </method>
  21313. <doc>
  21314. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  21315. default context, so that no performance data is emitted if no configuration
  21316. data is found.]]>
  21317. </doc>
  21318. </class>
  21319. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  21320. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  21321. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21322. abstract="false"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <constructor name="NullContextWithUpdateThread"
  21326. static="false" final="false" visibility="public"
  21327. deprecated="not deprecated">
  21328. <doc>
  21329. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  21330. </doc>
  21331. </constructor>
  21332. <method name="init"
  21333. abstract="false" native="false" synchronized="false"
  21334. static="false" final="false" visibility="public"
  21335. deprecated="not deprecated">
  21336. <param name="contextName" type="java.lang.String"/>
  21337. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  21338. </method>
  21339. <method name="emitRecord"
  21340. abstract="false" native="false" synchronized="false"
  21341. static="false" final="false" visibility="protected"
  21342. deprecated="not deprecated">
  21343. <param name="contextName" type="java.lang.String"/>
  21344. <param name="recordName" type="java.lang.String"/>
  21345. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  21346. <doc>
  21347. <![CDATA[Do-nothing version of emitRecord]]>
  21348. </doc>
  21349. </method>
  21350. <method name="update"
  21351. abstract="false" native="false" synchronized="false"
  21352. static="false" final="false" visibility="protected"
  21353. deprecated="not deprecated">
  21354. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  21355. <doc>
  21356. <![CDATA[Do-nothing version of update]]>
  21357. </doc>
  21358. </method>
  21359. <method name="remove"
  21360. abstract="false" native="false" synchronized="false"
  21361. static="false" final="false" visibility="protected"
  21362. deprecated="not deprecated">
  21363. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  21364. <doc>
  21365. <![CDATA[Do-nothing version of remove]]>
  21366. </doc>
  21367. </method>
  21368. <doc>
  21369. <![CDATA[A null context which has a thread calling
  21370. periodically when monitoring is started. This keeps the data sampled
  21371. correctly.
  21372. In all other respects, this is like the NULL context: No data is emitted.
  21373. This is suitable for Monitoring systems like JMX which reads the metrics
  21374. when someone reads the data from JMX.
  21375. The default impl of start and stop monitoring:
  21376. is the AbstractMetricsContext is good enough.]]>
  21377. </doc>
  21378. </class>
  21379. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  21380. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  21381. <class name="OutputRecord" extends="java.lang.Object"
  21382. abstract="false"
  21383. static="false" final="false" visibility="public"
  21384. deprecated="not deprecated">
  21385. <method name="getTagNames" return="java.util.Set"
  21386. abstract="false" native="false" synchronized="false"
  21387. static="false" final="false" visibility="public"
  21388. deprecated="not deprecated">
  21389. <doc>
  21390. <![CDATA[Returns the set of tag names]]>
  21391. </doc>
  21392. </method>
  21393. <method name="getTag" return="java.lang.Object"
  21394. abstract="false" native="false" synchronized="false"
  21395. static="false" final="false" visibility="public"
  21396. deprecated="not deprecated">
  21397. <param name="name" type="java.lang.String"/>
  21398. <doc>
  21399. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  21400. @return the tag value, or null if there is no such tag]]>
  21401. </doc>
  21402. </method>
  21403. <method name="getMetricNames" return="java.util.Set"
  21404. abstract="false" native="false" synchronized="false"
  21405. static="false" final="false" visibility="public"
  21406. deprecated="not deprecated">
  21407. <doc>
  21408. <![CDATA[Returns the set of metric names.]]>
  21409. </doc>
  21410. </method>
  21411. <method name="getMetric" return="java.lang.Number"
  21412. abstract="false" native="false" synchronized="false"
  21413. static="false" final="false" visibility="public"
  21414. deprecated="not deprecated">
  21415. <param name="name" type="java.lang.String"/>
  21416. <doc>
  21417. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  21418. </doc>
  21419. </method>
  21420. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  21421. abstract="false" native="false" synchronized="false"
  21422. static="false" final="false" visibility="public"
  21423. deprecated="not deprecated">
  21424. <doc>
  21425. <![CDATA[Returns a copy of this record's tags.]]>
  21426. </doc>
  21427. </method>
  21428. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  21429. abstract="false" native="false" synchronized="false"
  21430. static="false" final="false" visibility="public"
  21431. deprecated="not deprecated">
  21432. <doc>
  21433. <![CDATA[Returns a copy of this record's metrics.]]>
  21434. </doc>
  21435. </method>
  21436. <doc>
  21437. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  21438. </doc>
  21439. </class>
  21440. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  21441. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  21442. <class name="Util" extends="java.lang.Object"
  21443. abstract="false"
  21444. static="false" final="false" visibility="public"
  21445. deprecated="not deprecated">
  21446. <method name="parse" return="java.util.List"
  21447. abstract="false" native="false" synchronized="false"
  21448. static="true" final="false" visibility="public"
  21449. deprecated="not deprecated">
  21450. <param name="specs" type="java.lang.String"/>
  21451. <param name="defaultPort" type="int"/>
  21452. <doc>
  21453. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  21454. of the form <i>hostname</i> or <i>hostname:port</i>. If
  21455. the specs string is null, defaults to localhost:defaultPort.
  21456. @return a list of InetSocketAddress objects.]]>
  21457. </doc>
  21458. </method>
  21459. <doc>
  21460. <![CDATA[Static utility methods]]>
  21461. </doc>
  21462. </class>
  21463. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  21464. <doc>
  21465. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  21466. an interface allowing a variety of metrics reporting implementations to be
  21467. plugged in to the Metrics API. Examples of such implementations can be found
  21468. in the packages <code>org.apache.hadoop.metrics.file</code> and
  21469. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  21470. Plugging in an implementation involves writing a concrete subclass of
  21471. <code>AbstractMetricsContext</code>. The subclass should get its
  21472. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  21473. method.]]>
  21474. </doc>
  21475. </package>
  21476. <package name="org.apache.hadoop.net">
  21477. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  21478. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  21479. abstract="false"
  21480. static="false" final="false" visibility="public"
  21481. deprecated="not deprecated">
  21482. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  21483. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  21484. static="false" final="false" visibility="public"
  21485. deprecated="not deprecated">
  21486. </constructor>
  21487. <method name="resolve" return="java.util.List"
  21488. abstract="false" native="false" synchronized="false"
  21489. static="false" final="false" visibility="public"
  21490. deprecated="not deprecated">
  21491. <param name="names" type="java.util.List"/>
  21492. </method>
  21493. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  21494. transient="false" volatile="false"
  21495. static="false" final="false" visibility="protected"
  21496. deprecated="not deprecated">
  21497. </field>
  21498. <doc>
  21499. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  21500. raw DNSToSwitchMapping and stores the resolved network location in
  21501. a cache. The following calls to a resolved network location
  21502. will get its location from the cache.]]>
  21503. </doc>
  21504. </class>
  21505. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  21506. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  21507. <interface name="DNSToSwitchMapping" abstract="true"
  21508. static="false" final="false" visibility="public"
  21509. deprecated="not deprecated">
  21510. <method name="resolve" return="java.util.List"
  21511. abstract="false" native="false" synchronized="false"
  21512. static="false" final="false" visibility="public"
  21513. deprecated="not deprecated">
  21514. <param name="names" type="java.util.List"/>
  21515. <doc>
  21516. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  21517. switch information (network paths). One-to-one correspondence must be
  21518. maintained between the elements in the lists.
  21519. Consider an element in the argument list - x.y.com. The switch information
  21520. that is returned must be a network path of the form /foo/rack,
  21521. where / is the root, and 'foo' is the switch where 'rack' is connected.
  21522. Note the hostname/ip-address is not part of the returned path.
  21523. The network topology of the cluster would determine the number of
  21524. components in the network path.
  21525. @param names
  21526. @return list of resolved network paths]]>
  21527. </doc>
  21528. </method>
  21529. <doc>
  21530. <![CDATA[An interface that should be implemented to allow pluggable
  21531. DNS-name/IP-address to RackID resolvers.]]>
  21532. </doc>
  21533. </interface>
  21534. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  21535. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  21536. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  21537. abstract="false"
  21538. static="false" final="true" visibility="public"
  21539. deprecated="not deprecated">
  21540. <implements name="org.apache.hadoop.conf.Configurable"/>
  21541. <constructor name="ScriptBasedMapping"
  21542. static="false" final="false" visibility="public"
  21543. deprecated="not deprecated">
  21544. </constructor>
  21545. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  21546. static="false" final="false" visibility="public"
  21547. deprecated="not deprecated">
  21548. </constructor>
  21549. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21550. abstract="false" native="false" synchronized="false"
  21551. static="false" final="false" visibility="public"
  21552. deprecated="not deprecated">
  21553. </method>
  21554. <method name="setConf"
  21555. abstract="false" native="false" synchronized="false"
  21556. static="false" final="false" visibility="public"
  21557. deprecated="not deprecated">
  21558. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21559. </method>
  21560. <doc>
  21561. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  21562. script configured via net.topology.script.file.name .]]>
  21563. </doc>
  21564. </class>
  21565. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  21566. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  21567. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  21568. abstract="false"
  21569. static="false" final="false" visibility="public"
  21570. deprecated="not deprecated">
  21571. <implements name="org.apache.hadoop.conf.Configurable"/>
  21572. <constructor name="SocksSocketFactory"
  21573. static="false" final="false" visibility="public"
  21574. deprecated="not deprecated">
  21575. <doc>
  21576. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  21577. </doc>
  21578. </constructor>
  21579. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  21580. static="false" final="false" visibility="public"
  21581. deprecated="not deprecated">
  21582. <doc>
  21583. <![CDATA[Constructor with a supplied Proxy
  21584. @param proxy the proxy to use to create sockets]]>
  21585. </doc>
  21586. </constructor>
  21587. <method name="createSocket" return="java.net.Socket"
  21588. abstract="false" native="false" synchronized="false"
  21589. static="false" final="false" visibility="public"
  21590. deprecated="not deprecated">
  21591. <exception name="IOException" type="java.io.IOException"/>
  21592. </method>
  21593. <method name="createSocket" return="java.net.Socket"
  21594. abstract="false" native="false" synchronized="false"
  21595. static="false" final="false" visibility="public"
  21596. deprecated="not deprecated">
  21597. <param name="addr" type="java.net.InetAddress"/>
  21598. <param name="port" type="int"/>
  21599. <exception name="IOException" type="java.io.IOException"/>
  21600. </method>
  21601. <method name="createSocket" return="java.net.Socket"
  21602. abstract="false" native="false" synchronized="false"
  21603. static="false" final="false" visibility="public"
  21604. deprecated="not deprecated">
  21605. <param name="addr" type="java.net.InetAddress"/>
  21606. <param name="port" type="int"/>
  21607. <param name="localHostAddr" type="java.net.InetAddress"/>
  21608. <param name="localPort" type="int"/>
  21609. <exception name="IOException" type="java.io.IOException"/>
  21610. </method>
  21611. <method name="createSocket" return="java.net.Socket"
  21612. abstract="false" native="false" synchronized="false"
  21613. static="false" final="false" visibility="public"
  21614. deprecated="not deprecated">
  21615. <param name="host" type="java.lang.String"/>
  21616. <param name="port" type="int"/>
  21617. <exception name="IOException" type="java.io.IOException"/>
  21618. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21619. </method>
  21620. <method name="createSocket" return="java.net.Socket"
  21621. abstract="false" native="false" synchronized="false"
  21622. static="false" final="false" visibility="public"
  21623. deprecated="not deprecated">
  21624. <param name="host" type="java.lang.String"/>
  21625. <param name="port" type="int"/>
  21626. <param name="localHostAddr" type="java.net.InetAddress"/>
  21627. <param name="localPort" type="int"/>
  21628. <exception name="IOException" type="java.io.IOException"/>
  21629. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21630. </method>
  21631. <method name="hashCode" return="int"
  21632. abstract="false" native="false" synchronized="false"
  21633. static="false" final="false" visibility="public"
  21634. deprecated="not deprecated">
  21635. </method>
  21636. <method name="equals" return="boolean"
  21637. abstract="false" native="false" synchronized="false"
  21638. static="false" final="false" visibility="public"
  21639. deprecated="not deprecated">
  21640. <param name="obj" type="java.lang.Object"/>
  21641. </method>
  21642. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  21643. abstract="false" native="false" synchronized="false"
  21644. static="false" final="false" visibility="public"
  21645. deprecated="not deprecated">
  21646. </method>
  21647. <method name="setConf"
  21648. abstract="false" native="false" synchronized="false"
  21649. static="false" final="false" visibility="public"
  21650. deprecated="not deprecated">
  21651. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21652. </method>
  21653. <doc>
  21654. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  21655. </doc>
  21656. </class>
  21657. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  21658. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  21659. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  21660. abstract="false"
  21661. static="false" final="false" visibility="public"
  21662. deprecated="not deprecated">
  21663. <constructor name="StandardSocketFactory"
  21664. static="false" final="false" visibility="public"
  21665. deprecated="not deprecated">
  21666. <doc>
  21667. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  21668. </doc>
  21669. </constructor>
  21670. <method name="createSocket" return="java.net.Socket"
  21671. abstract="false" native="false" synchronized="false"
  21672. static="false" final="false" visibility="public"
  21673. deprecated="not deprecated">
  21674. <exception name="IOException" type="java.io.IOException"/>
  21675. </method>
  21676. <method name="createSocket" return="java.net.Socket"
  21677. abstract="false" native="false" synchronized="false"
  21678. static="false" final="false" visibility="public"
  21679. deprecated="not deprecated">
  21680. <param name="addr" type="java.net.InetAddress"/>
  21681. <param name="port" type="int"/>
  21682. <exception name="IOException" type="java.io.IOException"/>
  21683. </method>
  21684. <method name="createSocket" return="java.net.Socket"
  21685. abstract="false" native="false" synchronized="false"
  21686. static="false" final="false" visibility="public"
  21687. deprecated="not deprecated">
  21688. <param name="addr" type="java.net.InetAddress"/>
  21689. <param name="port" type="int"/>
  21690. <param name="localHostAddr" type="java.net.InetAddress"/>
  21691. <param name="localPort" type="int"/>
  21692. <exception name="IOException" type="java.io.IOException"/>
  21693. </method>
  21694. <method name="createSocket" return="java.net.Socket"
  21695. abstract="false" native="false" synchronized="false"
  21696. static="false" final="false" visibility="public"
  21697. deprecated="not deprecated">
  21698. <param name="host" type="java.lang.String"/>
  21699. <param name="port" type="int"/>
  21700. <exception name="IOException" type="java.io.IOException"/>
  21701. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21702. </method>
  21703. <method name="createSocket" return="java.net.Socket"
  21704. abstract="false" native="false" synchronized="false"
  21705. static="false" final="false" visibility="public"
  21706. deprecated="not deprecated">
  21707. <param name="host" type="java.lang.String"/>
  21708. <param name="port" type="int"/>
  21709. <param name="localHostAddr" type="java.net.InetAddress"/>
  21710. <param name="localPort" type="int"/>
  21711. <exception name="IOException" type="java.io.IOException"/>
  21712. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  21713. </method>
  21714. <method name="equals" return="boolean"
  21715. abstract="false" native="false" synchronized="false"
  21716. static="false" final="false" visibility="public"
  21717. deprecated="not deprecated">
  21718. <param name="obj" type="java.lang.Object"/>
  21719. </method>
  21720. <method name="hashCode" return="int"
  21721. abstract="false" native="false" synchronized="false"
  21722. static="false" final="false" visibility="public"
  21723. deprecated="not deprecated">
  21724. </method>
  21725. <doc>
  21726. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  21727. </doc>
  21728. </class>
  21729. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  21730. <doc>
  21731. <![CDATA[Network-related classes.]]>
  21732. </doc>
  21733. </package>
  21734. <package name="org.apache.hadoop.record">
  21735. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  21736. <class name="BinaryRecordInput" extends="java.lang.Object"
  21737. abstract="false"
  21738. static="false" final="false" visibility="public"
  21739. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  21740. <implements name="org.apache.hadoop.record.RecordInput"/>
  21741. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  21742. static="false" final="false" visibility="public"
  21743. deprecated="not deprecated">
  21744. <doc>
  21745. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  21746. </doc>
  21747. </constructor>
  21748. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  21749. static="false" final="false" visibility="public"
  21750. deprecated="not deprecated">
  21751. <doc>
  21752. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  21753. </doc>
  21754. </constructor>
  21755. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  21756. abstract="false" native="false" synchronized="false"
  21757. static="true" final="false" visibility="public"
  21758. deprecated="not deprecated">
  21759. <param name="inp" type="java.io.DataInput"/>
  21760. <doc>
  21761. <![CDATA[Get a thread-local record input for the supplied DataInput.
  21762. @param inp data input stream
  21763. @return binary record input corresponding to the supplied DataInput.]]>
  21764. </doc>
  21765. </method>
  21766. <method name="readByte" return="byte"
  21767. abstract="false" native="false" synchronized="false"
  21768. static="false" final="false" visibility="public"
  21769. deprecated="not deprecated">
  21770. <param name="tag" type="java.lang.String"/>
  21771. <exception name="IOException" type="java.io.IOException"/>
  21772. </method>
  21773. <method name="readBool" return="boolean"
  21774. abstract="false" native="false" synchronized="false"
  21775. static="false" final="false" visibility="public"
  21776. deprecated="not deprecated">
  21777. <param name="tag" type="java.lang.String"/>
  21778. <exception name="IOException" type="java.io.IOException"/>
  21779. </method>
  21780. <method name="readInt" return="int"
  21781. abstract="false" native="false" synchronized="false"
  21782. static="false" final="false" visibility="public"
  21783. deprecated="not deprecated">
  21784. <param name="tag" type="java.lang.String"/>
  21785. <exception name="IOException" type="java.io.IOException"/>
  21786. </method>
  21787. <method name="readLong" return="long"
  21788. abstract="false" native="false" synchronized="false"
  21789. static="false" final="false" visibility="public"
  21790. deprecated="not deprecated">
  21791. <param name="tag" type="java.lang.String"/>
  21792. <exception name="IOException" type="java.io.IOException"/>
  21793. </method>
  21794. <method name="readFloat" return="float"
  21795. abstract="false" native="false" synchronized="false"
  21796. static="false" final="false" visibility="public"
  21797. deprecated="not deprecated">
  21798. <param name="tag" type="java.lang.String"/>
  21799. <exception name="IOException" type="java.io.IOException"/>
  21800. </method>
  21801. <method name="readDouble" return="double"
  21802. abstract="false" native="false" synchronized="false"
  21803. static="false" final="false" visibility="public"
  21804. deprecated="not deprecated">
  21805. <param name="tag" type="java.lang.String"/>
  21806. <exception name="IOException" type="java.io.IOException"/>
  21807. </method>
  21808. <method name="readString" return="java.lang.String"
  21809. abstract="false" native="false" synchronized="false"
  21810. static="false" final="false" visibility="public"
  21811. deprecated="not deprecated">
  21812. <param name="tag" type="java.lang.String"/>
  21813. <exception name="IOException" type="java.io.IOException"/>
  21814. </method>
  21815. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  21816. abstract="false" native="false" synchronized="false"
  21817. static="false" final="false" visibility="public"
  21818. deprecated="not deprecated">
  21819. <param name="tag" type="java.lang.String"/>
  21820. <exception name="IOException" type="java.io.IOException"/>
  21821. </method>
  21822. <method name="startRecord"
  21823. abstract="false" native="false" synchronized="false"
  21824. static="false" final="false" visibility="public"
  21825. deprecated="not deprecated">
  21826. <param name="tag" type="java.lang.String"/>
  21827. <exception name="IOException" type="java.io.IOException"/>
  21828. </method>
  21829. <method name="endRecord"
  21830. abstract="false" native="false" synchronized="false"
  21831. static="false" final="false" visibility="public"
  21832. deprecated="not deprecated">
  21833. <param name="tag" type="java.lang.String"/>
  21834. <exception name="IOException" type="java.io.IOException"/>
  21835. </method>
  21836. <method name="startVector" return="org.apache.hadoop.record.Index"
  21837. abstract="false" native="false" synchronized="false"
  21838. static="false" final="false" visibility="public"
  21839. deprecated="not deprecated">
  21840. <param name="tag" type="java.lang.String"/>
  21841. <exception name="IOException" type="java.io.IOException"/>
  21842. </method>
  21843. <method name="endVector"
  21844. abstract="false" native="false" synchronized="false"
  21845. static="false" final="false" visibility="public"
  21846. deprecated="not deprecated">
  21847. <param name="tag" type="java.lang.String"/>
  21848. <exception name="IOException" type="java.io.IOException"/>
  21849. </method>
  21850. <method name="startMap" return="org.apache.hadoop.record.Index"
  21851. abstract="false" native="false" synchronized="false"
  21852. static="false" final="false" visibility="public"
  21853. deprecated="not deprecated">
  21854. <param name="tag" type="java.lang.String"/>
  21855. <exception name="IOException" type="java.io.IOException"/>
  21856. </method>
  21857. <method name="endMap"
  21858. abstract="false" native="false" synchronized="false"
  21859. static="false" final="false" visibility="public"
  21860. deprecated="not deprecated">
  21861. <param name="tag" type="java.lang.String"/>
  21862. <exception name="IOException" type="java.io.IOException"/>
  21863. </method>
  21864. <doc>
  21865. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  21866. </doc>
  21867. </class>
  21868. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  21869. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  21870. <class name="BinaryRecordOutput" extends="java.lang.Object"
  21871. abstract="false"
  21872. static="false" final="false" visibility="public"
  21873. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  21874. <implements name="org.apache.hadoop.record.RecordOutput"/>
  21875. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  21876. static="false" final="false" visibility="public"
  21877. deprecated="not deprecated">
  21878. <doc>
  21879. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  21880. </doc>
  21881. </constructor>
  21882. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  21883. static="false" final="false" visibility="public"
  21884. deprecated="not deprecated">
  21885. <doc>
  21886. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  21887. </doc>
  21888. </constructor>
  21889. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  21890. abstract="false" native="false" synchronized="false"
  21891. static="true" final="false" visibility="public"
  21892. deprecated="not deprecated">
  21893. <param name="out" type="java.io.DataOutput"/>
  21894. <doc>
  21895. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  21896. @param out data output stream
  21897. @return binary record output corresponding to the supplied DataOutput.]]>
  21898. </doc>
  21899. </method>
  21900. <method name="writeByte"
  21901. abstract="false" native="false" synchronized="false"
  21902. static="false" final="false" visibility="public"
  21903. deprecated="not deprecated">
  21904. <param name="b" type="byte"/>
  21905. <param name="tag" type="java.lang.String"/>
  21906. <exception name="IOException" type="java.io.IOException"/>
  21907. </method>
  21908. <method name="writeBool"
  21909. abstract="false" native="false" synchronized="false"
  21910. static="false" final="false" visibility="public"
  21911. deprecated="not deprecated">
  21912. <param name="b" type="boolean"/>
  21913. <param name="tag" type="java.lang.String"/>
  21914. <exception name="IOException" type="java.io.IOException"/>
  21915. </method>
  21916. <method name="writeInt"
  21917. abstract="false" native="false" synchronized="false"
  21918. static="false" final="false" visibility="public"
  21919. deprecated="not deprecated">
  21920. <param name="i" type="int"/>
  21921. <param name="tag" type="java.lang.String"/>
  21922. <exception name="IOException" type="java.io.IOException"/>
  21923. </method>
  21924. <method name="writeLong"
  21925. abstract="false" native="false" synchronized="false"
  21926. static="false" final="false" visibility="public"
  21927. deprecated="not deprecated">
  21928. <param name="l" type="long"/>
  21929. <param name="tag" type="java.lang.String"/>
  21930. <exception name="IOException" type="java.io.IOException"/>
  21931. </method>
  21932. <method name="writeFloat"
  21933. abstract="false" native="false" synchronized="false"
  21934. static="false" final="false" visibility="public"
  21935. deprecated="not deprecated">
  21936. <param name="f" type="float"/>
  21937. <param name="tag" type="java.lang.String"/>
  21938. <exception name="IOException" type="java.io.IOException"/>
  21939. </method>
  21940. <method name="writeDouble"
  21941. abstract="false" native="false" synchronized="false"
  21942. static="false" final="false" visibility="public"
  21943. deprecated="not deprecated">
  21944. <param name="d" type="double"/>
  21945. <param name="tag" type="java.lang.String"/>
  21946. <exception name="IOException" type="java.io.IOException"/>
  21947. </method>
  21948. <method name="writeString"
  21949. abstract="false" native="false" synchronized="false"
  21950. static="false" final="false" visibility="public"
  21951. deprecated="not deprecated">
  21952. <param name="s" type="java.lang.String"/>
  21953. <param name="tag" type="java.lang.String"/>
  21954. <exception name="IOException" type="java.io.IOException"/>
  21955. </method>
  21956. <method name="writeBuffer"
  21957. abstract="false" native="false" synchronized="false"
  21958. static="false" final="false" visibility="public"
  21959. deprecated="not deprecated">
  21960. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  21961. <param name="tag" type="java.lang.String"/>
  21962. <exception name="IOException" type="java.io.IOException"/>
  21963. </method>
  21964. <method name="startRecord"
  21965. abstract="false" native="false" synchronized="false"
  21966. static="false" final="false" visibility="public"
  21967. deprecated="not deprecated">
  21968. <param name="r" type="org.apache.hadoop.record.Record"/>
  21969. <param name="tag" type="java.lang.String"/>
  21970. <exception name="IOException" type="java.io.IOException"/>
  21971. </method>
  21972. <method name="endRecord"
  21973. abstract="false" native="false" synchronized="false"
  21974. static="false" final="false" visibility="public"
  21975. deprecated="not deprecated">
  21976. <param name="r" type="org.apache.hadoop.record.Record"/>
  21977. <param name="tag" type="java.lang.String"/>
  21978. <exception name="IOException" type="java.io.IOException"/>
  21979. </method>
  21980. <method name="startVector"
  21981. abstract="false" native="false" synchronized="false"
  21982. static="false" final="false" visibility="public"
  21983. deprecated="not deprecated">
  21984. <param name="v" type="java.util.ArrayList"/>
  21985. <param name="tag" type="java.lang.String"/>
  21986. <exception name="IOException" type="java.io.IOException"/>
  21987. </method>
  21988. <method name="endVector"
  21989. abstract="false" native="false" synchronized="false"
  21990. static="false" final="false" visibility="public"
  21991. deprecated="not deprecated">
  21992. <param name="v" type="java.util.ArrayList"/>
  21993. <param name="tag" type="java.lang.String"/>
  21994. <exception name="IOException" type="java.io.IOException"/>
  21995. </method>
  21996. <method name="startMap"
  21997. abstract="false" native="false" synchronized="false"
  21998. static="false" final="false" visibility="public"
  21999. deprecated="not deprecated">
  22000. <param name="v" type="java.util.TreeMap"/>
  22001. <param name="tag" type="java.lang.String"/>
  22002. <exception name="IOException" type="java.io.IOException"/>
  22003. </method>
  22004. <method name="endMap"
  22005. abstract="false" native="false" synchronized="false"
  22006. static="false" final="false" visibility="public"
  22007. deprecated="not deprecated">
  22008. <param name="v" type="java.util.TreeMap"/>
  22009. <param name="tag" type="java.lang.String"/>
  22010. <exception name="IOException" type="java.io.IOException"/>
  22011. </method>
  22012. <doc>
  22013. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22014. </doc>
  22015. </class>
  22016. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  22017. <!-- start class org.apache.hadoop.record.Buffer -->
  22018. <class name="Buffer" extends="java.lang.Object"
  22019. abstract="false"
  22020. static="false" final="false" visibility="public"
  22021. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22022. <implements name="java.lang.Comparable"/>
  22023. <implements name="java.lang.Cloneable"/>
  22024. <constructor name="Buffer"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. <doc>
  22028. <![CDATA[Create a zero-count sequence.]]>
  22029. </doc>
  22030. </constructor>
  22031. <constructor name="Buffer" type="byte[]"
  22032. static="false" final="false" visibility="public"
  22033. deprecated="not deprecated">
  22034. <doc>
  22035. <![CDATA[Create a Buffer using the byte array as the initial value.
  22036. @param bytes This array becomes the backing storage for the object.]]>
  22037. </doc>
  22038. </constructor>
  22039. <constructor name="Buffer" type="byte[], int, int"
  22040. static="false" final="false" visibility="public"
  22041. deprecated="not deprecated">
  22042. <doc>
  22043. <![CDATA[Create a Buffer using the byte range as the initial value.
  22044. @param bytes Copy of this array becomes the backing storage for the object.
  22045. @param offset offset into byte array
  22046. @param length length of data]]>
  22047. </doc>
  22048. </constructor>
  22049. <method name="set"
  22050. abstract="false" native="false" synchronized="false"
  22051. static="false" final="false" visibility="public"
  22052. deprecated="not deprecated">
  22053. <param name="bytes" type="byte[]"/>
  22054. <doc>
  22055. <![CDATA[Use the specified bytes array as underlying sequence.
  22056. @param bytes byte sequence]]>
  22057. </doc>
  22058. </method>
  22059. <method name="copy"
  22060. abstract="false" native="false" synchronized="false"
  22061. static="false" final="true" visibility="public"
  22062. deprecated="not deprecated">
  22063. <param name="bytes" type="byte[]"/>
  22064. <param name="offset" type="int"/>
  22065. <param name="length" type="int"/>
  22066. <doc>
  22067. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  22068. @param bytes byte array to be assigned
  22069. @param offset offset into byte array
  22070. @param length length of data]]>
  22071. </doc>
  22072. </method>
  22073. <method name="get" return="byte[]"
  22074. abstract="false" native="false" synchronized="false"
  22075. static="false" final="false" visibility="public"
  22076. deprecated="not deprecated">
  22077. <doc>
  22078. <![CDATA[Get the data from the Buffer.
  22079. @return The data is only valid between 0 and getCount() - 1.]]>
  22080. </doc>
  22081. </method>
  22082. <method name="getCount" return="int"
  22083. abstract="false" native="false" synchronized="false"
  22084. static="false" final="false" visibility="public"
  22085. deprecated="not deprecated">
  22086. <doc>
  22087. <![CDATA[Get the current count of the buffer.]]>
  22088. </doc>
  22089. </method>
  22090. <method name="getCapacity" return="int"
  22091. abstract="false" native="false" synchronized="false"
  22092. static="false" final="false" visibility="public"
  22093. deprecated="not deprecated">
  22094. <doc>
  22095. <![CDATA[Get the capacity, which is the maximum count that could handled without
  22096. resizing the backing storage.
  22097. @return The number of bytes]]>
  22098. </doc>
  22099. </method>
  22100. <method name="setCapacity"
  22101. abstract="false" native="false" synchronized="false"
  22102. static="false" final="false" visibility="public"
  22103. deprecated="not deprecated">
  22104. <param name="newCapacity" type="int"/>
  22105. <doc>
  22106. <![CDATA[Change the capacity of the backing storage.
  22107. The data is preserved if newCapacity >= getCount().
  22108. @param newCapacity The new capacity in bytes.]]>
  22109. </doc>
  22110. </method>
  22111. <method name="reset"
  22112. abstract="false" native="false" synchronized="false"
  22113. static="false" final="false" visibility="public"
  22114. deprecated="not deprecated">
  22115. <doc>
  22116. <![CDATA[Reset the buffer to 0 size]]>
  22117. </doc>
  22118. </method>
  22119. <method name="truncate"
  22120. abstract="false" native="false" synchronized="false"
  22121. static="false" final="false" visibility="public"
  22122. deprecated="not deprecated">
  22123. <doc>
  22124. <![CDATA[Change the capacity of the backing store to be the same as the current
  22125. count of buffer.]]>
  22126. </doc>
  22127. </method>
  22128. <method name="append"
  22129. abstract="false" native="false" synchronized="false"
  22130. static="false" final="false" visibility="public"
  22131. deprecated="not deprecated">
  22132. <param name="bytes" type="byte[]"/>
  22133. <param name="offset" type="int"/>
  22134. <param name="length" type="int"/>
  22135. <doc>
  22136. <![CDATA[Append specified bytes to the buffer.
  22137. @param bytes byte array to be appended
  22138. @param offset offset into byte array
  22139. @param length length of data]]>
  22140. </doc>
  22141. </method>
  22142. <method name="append"
  22143. abstract="false" native="false" synchronized="false"
  22144. static="false" final="false" visibility="public"
  22145. deprecated="not deprecated">
  22146. <param name="bytes" type="byte[]"/>
  22147. <doc>
  22148. <![CDATA[Append specified bytes to the buffer
  22149. @param bytes byte array to be appended]]>
  22150. </doc>
  22151. </method>
  22152. <method name="hashCode" return="int"
  22153. abstract="false" native="false" synchronized="false"
  22154. static="false" final="false" visibility="public"
  22155. deprecated="not deprecated">
  22156. </method>
  22157. <method name="compareTo" return="int"
  22158. abstract="false" native="false" synchronized="false"
  22159. static="false" final="false" visibility="public"
  22160. deprecated="not deprecated">
  22161. <param name="other" type="java.lang.Object"/>
  22162. <doc>
  22163. <![CDATA[Define the sort order of the Buffer.
  22164. @param other The other buffer
  22165. @return Positive if this is bigger than other, 0 if they are equal, and
  22166. negative if this is smaller than other.]]>
  22167. </doc>
  22168. </method>
  22169. <method name="equals" return="boolean"
  22170. abstract="false" native="false" synchronized="false"
  22171. static="false" final="false" visibility="public"
  22172. deprecated="not deprecated">
  22173. <param name="other" type="java.lang.Object"/>
  22174. </method>
  22175. <method name="toString" return="java.lang.String"
  22176. abstract="false" native="false" synchronized="false"
  22177. static="false" final="false" visibility="public"
  22178. deprecated="not deprecated">
  22179. </method>
  22180. <method name="toString" return="java.lang.String"
  22181. abstract="false" native="false" synchronized="false"
  22182. static="false" final="false" visibility="public"
  22183. deprecated="not deprecated">
  22184. <param name="charsetName" type="java.lang.String"/>
  22185. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  22186. <doc>
  22187. <![CDATA[Convert the byte buffer to a string an specific character encoding
  22188. @param charsetName Valid Java Character Set Name]]>
  22189. </doc>
  22190. </method>
  22191. <method name="clone" return="java.lang.Object"
  22192. abstract="false" native="false" synchronized="false"
  22193. static="false" final="false" visibility="public"
  22194. deprecated="not deprecated">
  22195. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  22196. </method>
  22197. <doc>
  22198. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  22199. It is resizable and distinguishes between the count of the seqeunce and
  22200. the current capacity.
  22201. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22202. </doc>
  22203. </class>
  22204. <!-- end class org.apache.hadoop.record.Buffer -->
  22205. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  22206. <class name="CsvRecordInput" extends="java.lang.Object"
  22207. abstract="false"
  22208. static="false" final="false" visibility="public"
  22209. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22210. <implements name="org.apache.hadoop.record.RecordInput"/>
  22211. <constructor name="CsvRecordInput" type="java.io.InputStream"
  22212. static="false" final="false" visibility="public"
  22213. deprecated="not deprecated">
  22214. <doc>
  22215. <![CDATA[Creates a new instance of CsvRecordInput]]>
  22216. </doc>
  22217. </constructor>
  22218. <method name="readByte" return="byte"
  22219. abstract="false" native="false" synchronized="false"
  22220. static="false" final="false" visibility="public"
  22221. deprecated="not deprecated">
  22222. <param name="tag" type="java.lang.String"/>
  22223. <exception name="IOException" type="java.io.IOException"/>
  22224. </method>
  22225. <method name="readBool" return="boolean"
  22226. abstract="false" native="false" synchronized="false"
  22227. static="false" final="false" visibility="public"
  22228. deprecated="not deprecated">
  22229. <param name="tag" type="java.lang.String"/>
  22230. <exception name="IOException" type="java.io.IOException"/>
  22231. </method>
  22232. <method name="readInt" return="int"
  22233. abstract="false" native="false" synchronized="false"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <param name="tag" type="java.lang.String"/>
  22237. <exception name="IOException" type="java.io.IOException"/>
  22238. </method>
  22239. <method name="readLong" return="long"
  22240. abstract="false" native="false" synchronized="false"
  22241. static="false" final="false" visibility="public"
  22242. deprecated="not deprecated">
  22243. <param name="tag" type="java.lang.String"/>
  22244. <exception name="IOException" type="java.io.IOException"/>
  22245. </method>
  22246. <method name="readFloat" return="float"
  22247. abstract="false" native="false" synchronized="false"
  22248. static="false" final="false" visibility="public"
  22249. deprecated="not deprecated">
  22250. <param name="tag" type="java.lang.String"/>
  22251. <exception name="IOException" type="java.io.IOException"/>
  22252. </method>
  22253. <method name="readDouble" return="double"
  22254. abstract="false" native="false" synchronized="false"
  22255. static="false" final="false" visibility="public"
  22256. deprecated="not deprecated">
  22257. <param name="tag" type="java.lang.String"/>
  22258. <exception name="IOException" type="java.io.IOException"/>
  22259. </method>
  22260. <method name="readString" return="java.lang.String"
  22261. abstract="false" native="false" synchronized="false"
  22262. static="false" final="false" visibility="public"
  22263. deprecated="not deprecated">
  22264. <param name="tag" type="java.lang.String"/>
  22265. <exception name="IOException" type="java.io.IOException"/>
  22266. </method>
  22267. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  22268. abstract="false" native="false" synchronized="false"
  22269. static="false" final="false" visibility="public"
  22270. deprecated="not deprecated">
  22271. <param name="tag" type="java.lang.String"/>
  22272. <exception name="IOException" type="java.io.IOException"/>
  22273. </method>
  22274. <method name="startRecord"
  22275. abstract="false" native="false" synchronized="false"
  22276. static="false" final="false" visibility="public"
  22277. deprecated="not deprecated">
  22278. <param name="tag" type="java.lang.String"/>
  22279. <exception name="IOException" type="java.io.IOException"/>
  22280. </method>
  22281. <method name="endRecord"
  22282. abstract="false" native="false" synchronized="false"
  22283. static="false" final="false" visibility="public"
  22284. deprecated="not deprecated">
  22285. <param name="tag" type="java.lang.String"/>
  22286. <exception name="IOException" type="java.io.IOException"/>
  22287. </method>
  22288. <method name="startVector" return="org.apache.hadoop.record.Index"
  22289. abstract="false" native="false" synchronized="false"
  22290. static="false" final="false" visibility="public"
  22291. deprecated="not deprecated">
  22292. <param name="tag" type="java.lang.String"/>
  22293. <exception name="IOException" type="java.io.IOException"/>
  22294. </method>
  22295. <method name="endVector"
  22296. abstract="false" native="false" synchronized="false"
  22297. static="false" final="false" visibility="public"
  22298. deprecated="not deprecated">
  22299. <param name="tag" type="java.lang.String"/>
  22300. <exception name="IOException" type="java.io.IOException"/>
  22301. </method>
  22302. <method name="startMap" return="org.apache.hadoop.record.Index"
  22303. abstract="false" native="false" synchronized="false"
  22304. static="false" final="false" visibility="public"
  22305. deprecated="not deprecated">
  22306. <param name="tag" type="java.lang.String"/>
  22307. <exception name="IOException" type="java.io.IOException"/>
  22308. </method>
  22309. <method name="endMap"
  22310. abstract="false" native="false" synchronized="false"
  22311. static="false" final="false" visibility="public"
  22312. deprecated="not deprecated">
  22313. <param name="tag" type="java.lang.String"/>
  22314. <exception name="IOException" type="java.io.IOException"/>
  22315. </method>
  22316. <doc>
  22317. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22318. </doc>
  22319. </class>
  22320. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  22321. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  22322. <class name="CsvRecordOutput" extends="java.lang.Object"
  22323. abstract="false"
  22324. static="false" final="false" visibility="public"
  22325. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22326. <implements name="org.apache.hadoop.record.RecordOutput"/>
  22327. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  22328. static="false" final="false" visibility="public"
  22329. deprecated="not deprecated">
  22330. <doc>
  22331. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  22332. </doc>
  22333. </constructor>
  22334. <method name="writeByte"
  22335. abstract="false" native="false" synchronized="false"
  22336. static="false" final="false" visibility="public"
  22337. deprecated="not deprecated">
  22338. <param name="b" type="byte"/>
  22339. <param name="tag" type="java.lang.String"/>
  22340. <exception name="IOException" type="java.io.IOException"/>
  22341. </method>
  22342. <method name="writeBool"
  22343. abstract="false" native="false" synchronized="false"
  22344. static="false" final="false" visibility="public"
  22345. deprecated="not deprecated">
  22346. <param name="b" type="boolean"/>
  22347. <param name="tag" type="java.lang.String"/>
  22348. <exception name="IOException" type="java.io.IOException"/>
  22349. </method>
  22350. <method name="writeInt"
  22351. abstract="false" native="false" synchronized="false"
  22352. static="false" final="false" visibility="public"
  22353. deprecated="not deprecated">
  22354. <param name="i" type="int"/>
  22355. <param name="tag" type="java.lang.String"/>
  22356. <exception name="IOException" type="java.io.IOException"/>
  22357. </method>
  22358. <method name="writeLong"
  22359. abstract="false" native="false" synchronized="false"
  22360. static="false" final="false" visibility="public"
  22361. deprecated="not deprecated">
  22362. <param name="l" type="long"/>
  22363. <param name="tag" type="java.lang.String"/>
  22364. <exception name="IOException" type="java.io.IOException"/>
  22365. </method>
  22366. <method name="writeFloat"
  22367. abstract="false" native="false" synchronized="false"
  22368. static="false" final="false" visibility="public"
  22369. deprecated="not deprecated">
  22370. <param name="f" type="float"/>
  22371. <param name="tag" type="java.lang.String"/>
  22372. <exception name="IOException" type="java.io.IOException"/>
  22373. </method>
  22374. <method name="writeDouble"
  22375. abstract="false" native="false" synchronized="false"
  22376. static="false" final="false" visibility="public"
  22377. deprecated="not deprecated">
  22378. <param name="d" type="double"/>
  22379. <param name="tag" type="java.lang.String"/>
  22380. <exception name="IOException" type="java.io.IOException"/>
  22381. </method>
  22382. <method name="writeString"
  22383. abstract="false" native="false" synchronized="false"
  22384. static="false" final="false" visibility="public"
  22385. deprecated="not deprecated">
  22386. <param name="s" type="java.lang.String"/>
  22387. <param name="tag" type="java.lang.String"/>
  22388. <exception name="IOException" type="java.io.IOException"/>
  22389. </method>
  22390. <method name="writeBuffer"
  22391. abstract="false" native="false" synchronized="false"
  22392. static="false" final="false" visibility="public"
  22393. deprecated="not deprecated">
  22394. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  22395. <param name="tag" type="java.lang.String"/>
  22396. <exception name="IOException" type="java.io.IOException"/>
  22397. </method>
  22398. <method name="startRecord"
  22399. abstract="false" native="false" synchronized="false"
  22400. static="false" final="false" visibility="public"
  22401. deprecated="not deprecated">
  22402. <param name="r" type="org.apache.hadoop.record.Record"/>
  22403. <param name="tag" type="java.lang.String"/>
  22404. <exception name="IOException" type="java.io.IOException"/>
  22405. </method>
  22406. <method name="endRecord"
  22407. abstract="false" native="false" synchronized="false"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <param name="r" type="org.apache.hadoop.record.Record"/>
  22411. <param name="tag" type="java.lang.String"/>
  22412. <exception name="IOException" type="java.io.IOException"/>
  22413. </method>
  22414. <method name="startVector"
  22415. abstract="false" native="false" synchronized="false"
  22416. static="false" final="false" visibility="public"
  22417. deprecated="not deprecated">
  22418. <param name="v" type="java.util.ArrayList"/>
  22419. <param name="tag" type="java.lang.String"/>
  22420. <exception name="IOException" type="java.io.IOException"/>
  22421. </method>
  22422. <method name="endVector"
  22423. abstract="false" native="false" synchronized="false"
  22424. static="false" final="false" visibility="public"
  22425. deprecated="not deprecated">
  22426. <param name="v" type="java.util.ArrayList"/>
  22427. <param name="tag" type="java.lang.String"/>
  22428. <exception name="IOException" type="java.io.IOException"/>
  22429. </method>
  22430. <method name="startMap"
  22431. abstract="false" native="false" synchronized="false"
  22432. static="false" final="false" visibility="public"
  22433. deprecated="not deprecated">
  22434. <param name="v" type="java.util.TreeMap"/>
  22435. <param name="tag" type="java.lang.String"/>
  22436. <exception name="IOException" type="java.io.IOException"/>
  22437. </method>
  22438. <method name="endMap"
  22439. abstract="false" native="false" synchronized="false"
  22440. static="false" final="false" visibility="public"
  22441. deprecated="not deprecated">
  22442. <param name="v" type="java.util.TreeMap"/>
  22443. <param name="tag" type="java.lang.String"/>
  22444. <exception name="IOException" type="java.io.IOException"/>
  22445. </method>
  22446. <doc>
  22447. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22448. </doc>
  22449. </class>
  22450. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  22451. <!-- start interface org.apache.hadoop.record.Index -->
  22452. <interface name="Index" abstract="true"
  22453. static="false" final="false" visibility="public"
  22454. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22455. <method name="done" return="boolean"
  22456. abstract="false" native="false" synchronized="false"
  22457. static="false" final="false" visibility="public"
  22458. deprecated="not deprecated">
  22459. </method>
  22460. <method name="incr"
  22461. abstract="false" native="false" synchronized="false"
  22462. static="false" final="false" visibility="public"
  22463. deprecated="not deprecated">
  22464. </method>
  22465. <doc>
  22466. <![CDATA[Interface that acts as an iterator for deserializing maps.
  22467. The deserializer returns an instance that the record uses to
  22468. read vectors and maps. An example of usage is as follows:
  22469. <code>
  22470. Index idx = startVector(...);
  22471. while (!idx.done()) {
  22472. .... // read element of a vector
  22473. idx.incr();
  22474. }
  22475. </code>
  22476. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22477. </doc>
  22478. </interface>
  22479. <!-- end interface org.apache.hadoop.record.Index -->
  22480. <!-- start class org.apache.hadoop.record.Record -->
  22481. <class name="Record" extends="java.lang.Object"
  22482. abstract="true"
  22483. static="false" final="false" visibility="public"
  22484. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22485. <implements name="org.apache.hadoop.io.WritableComparable"/>
  22486. <implements name="java.lang.Cloneable"/>
  22487. <constructor name="Record"
  22488. static="false" final="false" visibility="public"
  22489. deprecated="not deprecated">
  22490. </constructor>
  22491. <method name="serialize"
  22492. abstract="true" native="false" synchronized="false"
  22493. static="false" final="false" visibility="public"
  22494. deprecated="not deprecated">
  22495. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  22496. <param name="tag" type="java.lang.String"/>
  22497. <exception name="IOException" type="java.io.IOException"/>
  22498. <doc>
  22499. <![CDATA[Serialize a record with tag (ususally field name)
  22500. @param rout Record output destination
  22501. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  22502. </doc>
  22503. </method>
  22504. <method name="deserialize"
  22505. abstract="true" native="false" synchronized="false"
  22506. static="false" final="false" visibility="public"
  22507. deprecated="not deprecated">
  22508. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  22509. <param name="tag" type="java.lang.String"/>
  22510. <exception name="IOException" type="java.io.IOException"/>
  22511. <doc>
  22512. <![CDATA[Deserialize a record with a tag (usually field name)
  22513. @param rin Record input source
  22514. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  22515. </doc>
  22516. </method>
  22517. <method name="compareTo" return="int"
  22518. abstract="true" native="false" synchronized="false"
  22519. static="false" final="false" visibility="public"
  22520. deprecated="not deprecated">
  22521. <param name="peer" type="java.lang.Object"/>
  22522. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  22523. </method>
  22524. <method name="serialize"
  22525. abstract="false" native="false" synchronized="false"
  22526. static="false" final="false" visibility="public"
  22527. deprecated="not deprecated">
  22528. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  22529. <exception name="IOException" type="java.io.IOException"/>
  22530. <doc>
  22531. <![CDATA[Serialize a record without a tag
  22532. @param rout Record output destination]]>
  22533. </doc>
  22534. </method>
  22535. <method name="deserialize"
  22536. abstract="false" native="false" synchronized="false"
  22537. static="false" final="false" visibility="public"
  22538. deprecated="not deprecated">
  22539. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  22540. <exception name="IOException" type="java.io.IOException"/>
  22541. <doc>
  22542. <![CDATA[Deserialize a record without a tag
  22543. @param rin Record input source]]>
  22544. </doc>
  22545. </method>
  22546. <method name="write"
  22547. abstract="false" native="false" synchronized="false"
  22548. static="false" final="false" visibility="public"
  22549. deprecated="not deprecated">
  22550. <param name="out" type="java.io.DataOutput"/>
  22551. <exception name="IOException" type="java.io.IOException"/>
  22552. </method>
  22553. <method name="readFields"
  22554. abstract="false" native="false" synchronized="false"
  22555. static="false" final="false" visibility="public"
  22556. deprecated="not deprecated">
  22557. <param name="din" type="java.io.DataInput"/>
  22558. <exception name="IOException" type="java.io.IOException"/>
  22559. </method>
  22560. <method name="toString" return="java.lang.String"
  22561. abstract="false" native="false" synchronized="false"
  22562. static="false" final="false" visibility="public"
  22563. deprecated="not deprecated">
  22564. </method>
  22565. <doc>
  22566. <![CDATA[Abstract class that is extended by generated classes.
  22567. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22568. </doc>
  22569. </class>
  22570. <!-- end class org.apache.hadoop.record.Record -->
  22571. <!-- start class org.apache.hadoop.record.RecordComparator -->
  22572. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  22573. abstract="true"
  22574. static="false" final="false" visibility="public"
  22575. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22576. <constructor name="RecordComparator" type="java.lang.Class"
  22577. static="false" final="false" visibility="protected"
  22578. deprecated="not deprecated">
  22579. <doc>
  22580. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  22581. </doc>
  22582. </constructor>
  22583. <method name="compare" return="int"
  22584. abstract="true" native="false" synchronized="false"
  22585. static="false" final="false" visibility="public"
  22586. deprecated="not deprecated">
  22587. <param name="b1" type="byte[]"/>
  22588. <param name="s1" type="int"/>
  22589. <param name="l1" type="int"/>
  22590. <param name="b2" type="byte[]"/>
  22591. <param name="s2" type="int"/>
  22592. <param name="l2" type="int"/>
  22593. </method>
  22594. <method name="define"
  22595. abstract="false" native="false" synchronized="true"
  22596. static="true" final="false" visibility="public"
  22597. deprecated="not deprecated">
  22598. <param name="c" type="java.lang.Class"/>
  22599. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  22600. <doc>
  22601. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  22602. @param c record classs for which a raw comparator is provided
  22603. @param comparator Raw comparator instance for class c]]>
  22604. </doc>
  22605. </method>
  22606. <doc>
  22607. <![CDATA[A raw record comparator base class
  22608. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22609. </doc>
  22610. </class>
  22611. <!-- end class org.apache.hadoop.record.RecordComparator -->
  22612. <!-- start interface org.apache.hadoop.record.RecordInput -->
  22613. <interface name="RecordInput" abstract="true"
  22614. static="false" final="false" visibility="public"
  22615. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22616. <method name="readByte" return="byte"
  22617. abstract="false" native="false" synchronized="false"
  22618. static="false" final="false" visibility="public"
  22619. deprecated="not deprecated">
  22620. <param name="tag" type="java.lang.String"/>
  22621. <exception name="IOException" type="java.io.IOException"/>
  22622. <doc>
  22623. <![CDATA[Read a byte from serialized record.
  22624. @param tag Used by tagged serialization formats (such as XML)
  22625. @return value read from serialized record.]]>
  22626. </doc>
  22627. </method>
  22628. <method name="readBool" return="boolean"
  22629. abstract="false" native="false" synchronized="false"
  22630. static="false" final="false" visibility="public"
  22631. deprecated="not deprecated">
  22632. <param name="tag" type="java.lang.String"/>
  22633. <exception name="IOException" type="java.io.IOException"/>
  22634. <doc>
  22635. <![CDATA[Read a boolean from serialized record.
  22636. @param tag Used by tagged serialization formats (such as XML)
  22637. @return value read from serialized record.]]>
  22638. </doc>
  22639. </method>
  22640. <method name="readInt" return="int"
  22641. abstract="false" native="false" synchronized="false"
  22642. static="false" final="false" visibility="public"
  22643. deprecated="not deprecated">
  22644. <param name="tag" type="java.lang.String"/>
  22645. <exception name="IOException" type="java.io.IOException"/>
  22646. <doc>
  22647. <![CDATA[Read an integer from serialized record.
  22648. @param tag Used by tagged serialization formats (such as XML)
  22649. @return value read from serialized record.]]>
  22650. </doc>
  22651. </method>
  22652. <method name="readLong" return="long"
  22653. abstract="false" native="false" synchronized="false"
  22654. static="false" final="false" visibility="public"
  22655. deprecated="not deprecated">
  22656. <param name="tag" type="java.lang.String"/>
  22657. <exception name="IOException" type="java.io.IOException"/>
  22658. <doc>
  22659. <![CDATA[Read a long integer from serialized record.
  22660. @param tag Used by tagged serialization formats (such as XML)
  22661. @return value read from serialized record.]]>
  22662. </doc>
  22663. </method>
  22664. <method name="readFloat" return="float"
  22665. abstract="false" native="false" synchronized="false"
  22666. static="false" final="false" visibility="public"
  22667. deprecated="not deprecated">
  22668. <param name="tag" type="java.lang.String"/>
  22669. <exception name="IOException" type="java.io.IOException"/>
  22670. <doc>
  22671. <![CDATA[Read a single-precision float from serialized record.
  22672. @param tag Used by tagged serialization formats (such as XML)
  22673. @return value read from serialized record.]]>
  22674. </doc>
  22675. </method>
  22676. <method name="readDouble" return="double"
  22677. abstract="false" native="false" synchronized="false"
  22678. static="false" final="false" visibility="public"
  22679. deprecated="not deprecated">
  22680. <param name="tag" type="java.lang.String"/>
  22681. <exception name="IOException" type="java.io.IOException"/>
  22682. <doc>
  22683. <![CDATA[Read a double-precision number from serialized record.
  22684. @param tag Used by tagged serialization formats (such as XML)
  22685. @return value read from serialized record.]]>
  22686. </doc>
  22687. </method>
  22688. <method name="readString" return="java.lang.String"
  22689. abstract="false" native="false" synchronized="false"
  22690. static="false" final="false" visibility="public"
  22691. deprecated="not deprecated">
  22692. <param name="tag" type="java.lang.String"/>
  22693. <exception name="IOException" type="java.io.IOException"/>
  22694. <doc>
  22695. <![CDATA[Read a UTF-8 encoded string from serialized record.
  22696. @param tag Used by tagged serialization formats (such as XML)
  22697. @return value read from serialized record.]]>
  22698. </doc>
  22699. </method>
  22700. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  22701. abstract="false" native="false" synchronized="false"
  22702. static="false" final="false" visibility="public"
  22703. deprecated="not deprecated">
  22704. <param name="tag" type="java.lang.String"/>
  22705. <exception name="IOException" type="java.io.IOException"/>
  22706. <doc>
  22707. <![CDATA[Read byte array from serialized record.
  22708. @param tag Used by tagged serialization formats (such as XML)
  22709. @return value read from serialized record.]]>
  22710. </doc>
  22711. </method>
  22712. <method name="startRecord"
  22713. abstract="false" native="false" synchronized="false"
  22714. static="false" final="false" visibility="public"
  22715. deprecated="not deprecated">
  22716. <param name="tag" type="java.lang.String"/>
  22717. <exception name="IOException" type="java.io.IOException"/>
  22718. <doc>
  22719. <![CDATA[Check the mark for start of the serialized record.
  22720. @param tag Used by tagged serialization formats (such as XML)]]>
  22721. </doc>
  22722. </method>
  22723. <method name="endRecord"
  22724. abstract="false" native="false" synchronized="false"
  22725. static="false" final="false" visibility="public"
  22726. deprecated="not deprecated">
  22727. <param name="tag" type="java.lang.String"/>
  22728. <exception name="IOException" type="java.io.IOException"/>
  22729. <doc>
  22730. <![CDATA[Check the mark for end of the serialized record.
  22731. @param tag Used by tagged serialization formats (such as XML)]]>
  22732. </doc>
  22733. </method>
  22734. <method name="startVector" return="org.apache.hadoop.record.Index"
  22735. abstract="false" native="false" synchronized="false"
  22736. static="false" final="false" visibility="public"
  22737. deprecated="not deprecated">
  22738. <param name="tag" type="java.lang.String"/>
  22739. <exception name="IOException" type="java.io.IOException"/>
  22740. <doc>
  22741. <![CDATA[Check the mark for start of the serialized vector.
  22742. @param tag Used by tagged serialization formats (such as XML)
  22743. @return Index that is used to count the number of elements.]]>
  22744. </doc>
  22745. </method>
  22746. <method name="endVector"
  22747. abstract="false" native="false" synchronized="false"
  22748. static="false" final="false" visibility="public"
  22749. deprecated="not deprecated">
  22750. <param name="tag" type="java.lang.String"/>
  22751. <exception name="IOException" type="java.io.IOException"/>
  22752. <doc>
  22753. <![CDATA[Check the mark for end of the serialized vector.
  22754. @param tag Used by tagged serialization formats (such as XML)]]>
  22755. </doc>
  22756. </method>
  22757. <method name="startMap" return="org.apache.hadoop.record.Index"
  22758. abstract="false" native="false" synchronized="false"
  22759. static="false" final="false" visibility="public"
  22760. deprecated="not deprecated">
  22761. <param name="tag" type="java.lang.String"/>
  22762. <exception name="IOException" type="java.io.IOException"/>
  22763. <doc>
  22764. <![CDATA[Check the mark for start of the serialized map.
  22765. @param tag Used by tagged serialization formats (such as XML)
  22766. @return Index that is used to count the number of map entries.]]>
  22767. </doc>
  22768. </method>
  22769. <method name="endMap"
  22770. abstract="false" native="false" synchronized="false"
  22771. static="false" final="false" visibility="public"
  22772. deprecated="not deprecated">
  22773. <param name="tag" type="java.lang.String"/>
  22774. <exception name="IOException" type="java.io.IOException"/>
  22775. <doc>
  22776. <![CDATA[Check the mark for end of the serialized map.
  22777. @param tag Used by tagged serialization formats (such as XML)]]>
  22778. </doc>
  22779. </method>
  22780. <doc>
  22781. <![CDATA[Interface that all the Deserializers have to implement.
  22782. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22783. </doc>
  22784. </interface>
  22785. <!-- end interface org.apache.hadoop.record.RecordInput -->
  22786. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  22787. <interface name="RecordOutput" abstract="true"
  22788. static="false" final="false" visibility="public"
  22789. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22790. <method name="writeByte"
  22791. abstract="false" native="false" synchronized="false"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="not deprecated">
  22794. <param name="b" type="byte"/>
  22795. <param name="tag" type="java.lang.String"/>
  22796. <exception name="IOException" type="java.io.IOException"/>
  22797. <doc>
  22798. <![CDATA[Write a byte to serialized record.
  22799. @param b Byte to be serialized
  22800. @param tag Used by tagged serialization formats (such as XML)
  22801. @throws IOException Indicates error in serialization]]>
  22802. </doc>
  22803. </method>
  22804. <method name="writeBool"
  22805. abstract="false" native="false" synchronized="false"
  22806. static="false" final="false" visibility="public"
  22807. deprecated="not deprecated">
  22808. <param name="b" type="boolean"/>
  22809. <param name="tag" type="java.lang.String"/>
  22810. <exception name="IOException" type="java.io.IOException"/>
  22811. <doc>
  22812. <![CDATA[Write a boolean to serialized record.
  22813. @param b Boolean to be serialized
  22814. @param tag Used by tagged serialization formats (such as XML)
  22815. @throws IOException Indicates error in serialization]]>
  22816. </doc>
  22817. </method>
  22818. <method name="writeInt"
  22819. abstract="false" native="false" synchronized="false"
  22820. static="false" final="false" visibility="public"
  22821. deprecated="not deprecated">
  22822. <param name="i" type="int"/>
  22823. <param name="tag" type="java.lang.String"/>
  22824. <exception name="IOException" type="java.io.IOException"/>
  22825. <doc>
  22826. <![CDATA[Write an integer to serialized record.
  22827. @param i Integer to be serialized
  22828. @param tag Used by tagged serialization formats (such as XML)
  22829. @throws IOException Indicates error in serialization]]>
  22830. </doc>
  22831. </method>
  22832. <method name="writeLong"
  22833. abstract="false" native="false" synchronized="false"
  22834. static="false" final="false" visibility="public"
  22835. deprecated="not deprecated">
  22836. <param name="l" type="long"/>
  22837. <param name="tag" type="java.lang.String"/>
  22838. <exception name="IOException" type="java.io.IOException"/>
  22839. <doc>
  22840. <![CDATA[Write a long integer to serialized record.
  22841. @param l Long to be serialized
  22842. @param tag Used by tagged serialization formats (such as XML)
  22843. @throws IOException Indicates error in serialization]]>
  22844. </doc>
  22845. </method>
  22846. <method name="writeFloat"
  22847. abstract="false" native="false" synchronized="false"
  22848. static="false" final="false" visibility="public"
  22849. deprecated="not deprecated">
  22850. <param name="f" type="float"/>
  22851. <param name="tag" type="java.lang.String"/>
  22852. <exception name="IOException" type="java.io.IOException"/>
  22853. <doc>
  22854. <![CDATA[Write a single-precision float to serialized record.
  22855. @param f Float to be serialized
  22856. @param tag Used by tagged serialization formats (such as XML)
  22857. @throws IOException Indicates error in serialization]]>
  22858. </doc>
  22859. </method>
  22860. <method name="writeDouble"
  22861. abstract="false" native="false" synchronized="false"
  22862. static="false" final="false" visibility="public"
  22863. deprecated="not deprecated">
  22864. <param name="d" type="double"/>
  22865. <param name="tag" type="java.lang.String"/>
  22866. <exception name="IOException" type="java.io.IOException"/>
  22867. <doc>
  22868. <![CDATA[Write a double precision floating point number to serialized record.
  22869. @param d Double to be serialized
  22870. @param tag Used by tagged serialization formats (such as XML)
  22871. @throws IOException Indicates error in serialization]]>
  22872. </doc>
  22873. </method>
  22874. <method name="writeString"
  22875. abstract="false" native="false" synchronized="false"
  22876. static="false" final="false" visibility="public"
  22877. deprecated="not deprecated">
  22878. <param name="s" type="java.lang.String"/>
  22879. <param name="tag" type="java.lang.String"/>
  22880. <exception name="IOException" type="java.io.IOException"/>
  22881. <doc>
  22882. <![CDATA[Write a unicode string to serialized record.
  22883. @param s String to be serialized
  22884. @param tag Used by tagged serialization formats (such as XML)
  22885. @throws IOException Indicates error in serialization]]>
  22886. </doc>
  22887. </method>
  22888. <method name="writeBuffer"
  22889. abstract="false" native="false" synchronized="false"
  22890. static="false" final="false" visibility="public"
  22891. deprecated="not deprecated">
  22892. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  22893. <param name="tag" type="java.lang.String"/>
  22894. <exception name="IOException" type="java.io.IOException"/>
  22895. <doc>
  22896. <![CDATA[Write a buffer to serialized record.
  22897. @param buf Buffer to be serialized
  22898. @param tag Used by tagged serialization formats (such as XML)
  22899. @throws IOException Indicates error in serialization]]>
  22900. </doc>
  22901. </method>
  22902. <method name="startRecord"
  22903. abstract="false" native="false" synchronized="false"
  22904. static="false" final="false" visibility="public"
  22905. deprecated="not deprecated">
  22906. <param name="r" type="org.apache.hadoop.record.Record"/>
  22907. <param name="tag" type="java.lang.String"/>
  22908. <exception name="IOException" type="java.io.IOException"/>
  22909. <doc>
  22910. <![CDATA[Mark the start of a record to be serialized.
  22911. @param r Record to be serialized
  22912. @param tag Used by tagged serialization formats (such as XML)
  22913. @throws IOException Indicates error in serialization]]>
  22914. </doc>
  22915. </method>
  22916. <method name="endRecord"
  22917. abstract="false" native="false" synchronized="false"
  22918. static="false" final="false" visibility="public"
  22919. deprecated="not deprecated">
  22920. <param name="r" type="org.apache.hadoop.record.Record"/>
  22921. <param name="tag" type="java.lang.String"/>
  22922. <exception name="IOException" type="java.io.IOException"/>
  22923. <doc>
  22924. <![CDATA[Mark the end of a serialized record.
  22925. @param r Record to be serialized
  22926. @param tag Used by tagged serialization formats (such as XML)
  22927. @throws IOException Indicates error in serialization]]>
  22928. </doc>
  22929. </method>
  22930. <method name="startVector"
  22931. abstract="false" native="false" synchronized="false"
  22932. static="false" final="false" visibility="public"
  22933. deprecated="not deprecated">
  22934. <param name="v" type="java.util.ArrayList"/>
  22935. <param name="tag" type="java.lang.String"/>
  22936. <exception name="IOException" type="java.io.IOException"/>
  22937. <doc>
  22938. <![CDATA[Mark the start of a vector to be serialized.
  22939. @param v Vector to be serialized
  22940. @param tag Used by tagged serialization formats (such as XML)
  22941. @throws IOException Indicates error in serialization]]>
  22942. </doc>
  22943. </method>
  22944. <method name="endVector"
  22945. abstract="false" native="false" synchronized="false"
  22946. static="false" final="false" visibility="public"
  22947. deprecated="not deprecated">
  22948. <param name="v" type="java.util.ArrayList"/>
  22949. <param name="tag" type="java.lang.String"/>
  22950. <exception name="IOException" type="java.io.IOException"/>
  22951. <doc>
  22952. <![CDATA[Mark the end of a serialized vector.
  22953. @param v Vector to be serialized
  22954. @param tag Used by tagged serialization formats (such as XML)
  22955. @throws IOException Indicates error in serialization]]>
  22956. </doc>
  22957. </method>
  22958. <method name="startMap"
  22959. abstract="false" native="false" synchronized="false"
  22960. static="false" final="false" visibility="public"
  22961. deprecated="not deprecated">
  22962. <param name="m" type="java.util.TreeMap"/>
  22963. <param name="tag" type="java.lang.String"/>
  22964. <exception name="IOException" type="java.io.IOException"/>
  22965. <doc>
  22966. <![CDATA[Mark the start of a map to be serialized.
  22967. @param m Map to be serialized
  22968. @param tag Used by tagged serialization formats (such as XML)
  22969. @throws IOException Indicates error in serialization]]>
  22970. </doc>
  22971. </method>
  22972. <method name="endMap"
  22973. abstract="false" native="false" synchronized="false"
  22974. static="false" final="false" visibility="public"
  22975. deprecated="not deprecated">
  22976. <param name="m" type="java.util.TreeMap"/>
  22977. <param name="tag" type="java.lang.String"/>
  22978. <exception name="IOException" type="java.io.IOException"/>
  22979. <doc>
  22980. <![CDATA[Mark the end of a serialized map.
  22981. @param m Map to be serialized
  22982. @param tag Used by tagged serialization formats (such as XML)
  22983. @throws IOException Indicates error in serialization]]>
  22984. </doc>
  22985. </method>
  22986. <doc>
  22987. <![CDATA[Interface that alll the serializers have to implement.
  22988. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22989. </doc>
  22990. </interface>
  22991. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  22992. <!-- start class org.apache.hadoop.record.Utils -->
  22993. <class name="Utils" extends="java.lang.Object"
  22994. abstract="false"
  22995. static="false" final="false" visibility="public"
  22996. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22997. <method name="readFloat" return="float"
  22998. abstract="false" native="false" synchronized="false"
  22999. static="true" final="false" visibility="public"
  23000. deprecated="not deprecated">
  23001. <param name="bytes" type="byte[]"/>
  23002. <param name="start" type="int"/>
  23003. <doc>
  23004. <![CDATA[Parse a float from a byte array.]]>
  23005. </doc>
  23006. </method>
  23007. <method name="readDouble" return="double"
  23008. abstract="false" native="false" synchronized="false"
  23009. static="true" final="false" visibility="public"
  23010. deprecated="not deprecated">
  23011. <param name="bytes" type="byte[]"/>
  23012. <param name="start" type="int"/>
  23013. <doc>
  23014. <![CDATA[Parse a double from a byte array.]]>
  23015. </doc>
  23016. </method>
  23017. <method name="readVLong" return="long"
  23018. abstract="false" native="false" synchronized="false"
  23019. static="true" final="false" visibility="public"
  23020. deprecated="not deprecated">
  23021. <param name="bytes" type="byte[]"/>
  23022. <param name="start" type="int"/>
  23023. <exception name="IOException" type="java.io.IOException"/>
  23024. <doc>
  23025. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  23026. @param bytes byte array with decode long
  23027. @param start starting index
  23028. @throws java.io.IOException
  23029. @return deserialized long]]>
  23030. </doc>
  23031. </method>
  23032. <method name="readVInt" return="int"
  23033. abstract="false" native="false" synchronized="false"
  23034. static="true" final="false" visibility="public"
  23035. deprecated="not deprecated">
  23036. <param name="bytes" type="byte[]"/>
  23037. <param name="start" type="int"/>
  23038. <exception name="IOException" type="java.io.IOException"/>
  23039. <doc>
  23040. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  23041. @param bytes byte array with the encoded integer
  23042. @param start start index
  23043. @throws java.io.IOException
  23044. @return deserialized integer]]>
  23045. </doc>
  23046. </method>
  23047. <method name="readVLong" return="long"
  23048. abstract="false" native="false" synchronized="false"
  23049. static="true" final="false" visibility="public"
  23050. deprecated="not deprecated">
  23051. <param name="in" type="java.io.DataInput"/>
  23052. <exception name="IOException" type="java.io.IOException"/>
  23053. <doc>
  23054. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  23055. @param in input stream
  23056. @throws java.io.IOException
  23057. @return deserialized long]]>
  23058. </doc>
  23059. </method>
  23060. <method name="readVInt" return="int"
  23061. abstract="false" native="false" synchronized="false"
  23062. static="true" final="false" visibility="public"
  23063. deprecated="not deprecated">
  23064. <param name="in" type="java.io.DataInput"/>
  23065. <exception name="IOException" type="java.io.IOException"/>
  23066. <doc>
  23067. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  23068. @param in input stream
  23069. @throws java.io.IOException
  23070. @return deserialized integer]]>
  23071. </doc>
  23072. </method>
  23073. <method name="getVIntSize" return="int"
  23074. abstract="false" native="false" synchronized="false"
  23075. static="true" final="false" visibility="public"
  23076. deprecated="not deprecated">
  23077. <param name="i" type="long"/>
  23078. <doc>
  23079. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  23080. @return the encoded length]]>
  23081. </doc>
  23082. </method>
  23083. <method name="writeVLong"
  23084. abstract="false" native="false" synchronized="false"
  23085. static="true" final="false" visibility="public"
  23086. deprecated="not deprecated">
  23087. <param name="stream" type="java.io.DataOutput"/>
  23088. <param name="i" type="long"/>
  23089. <exception name="IOException" type="java.io.IOException"/>
  23090. <doc>
  23091. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  23092. For -112 <= i <= 127, only one byte is used with the actual value.
  23093. For other values of i, the first byte value indicates whether the
  23094. long is positive or negative, and the number of bytes that follow.
  23095. If the first byte value v is between -113 and -120, the following long
  23096. is positive, with number of bytes that follow are -(v+112).
  23097. If the first byte value v is between -121 and -128, the following long
  23098. is negative, with number of bytes that follow are -(v+120). Bytes are
  23099. stored in the high-non-zero-byte-first order.
  23100. @param stream Binary output stream
  23101. @param i Long to be serialized
  23102. @throws java.io.IOException]]>
  23103. </doc>
  23104. </method>
  23105. <method name="writeVInt"
  23106. abstract="false" native="false" synchronized="false"
  23107. static="true" final="false" visibility="public"
  23108. deprecated="not deprecated">
  23109. <param name="stream" type="java.io.DataOutput"/>
  23110. <param name="i" type="int"/>
  23111. <exception name="IOException" type="java.io.IOException"/>
  23112. <doc>
  23113. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  23114. @param stream Binary output stream
  23115. @param i int to be serialized
  23116. @throws java.io.IOException]]>
  23117. </doc>
  23118. </method>
  23119. <method name="compareBytes" return="int"
  23120. abstract="false" native="false" synchronized="false"
  23121. static="true" final="false" visibility="public"
  23122. deprecated="not deprecated">
  23123. <param name="b1" type="byte[]"/>
  23124. <param name="s1" type="int"/>
  23125. <param name="l1" type="int"/>
  23126. <param name="b2" type="byte[]"/>
  23127. <param name="s2" type="int"/>
  23128. <param name="l2" type="int"/>
  23129. <doc>
  23130. <![CDATA[Lexicographic order of binary data.]]>
  23131. </doc>
  23132. </method>
  23133. <field name="hexchars" type="char[]"
  23134. transient="false" volatile="false"
  23135. static="true" final="true" visibility="public"
  23136. deprecated="not deprecated">
  23137. </field>
  23138. <doc>
  23139. <![CDATA[Various utility functions for Hadooop record I/O runtime.
  23140. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23141. </doc>
  23142. </class>
  23143. <!-- end class org.apache.hadoop.record.Utils -->
  23144. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  23145. <class name="XmlRecordInput" extends="java.lang.Object"
  23146. abstract="false"
  23147. static="false" final="false" visibility="public"
  23148. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23149. <implements name="org.apache.hadoop.record.RecordInput"/>
  23150. <constructor name="XmlRecordInput" type="java.io.InputStream"
  23151. static="false" final="false" visibility="public"
  23152. deprecated="not deprecated">
  23153. <doc>
  23154. <![CDATA[Creates a new instance of XmlRecordInput]]>
  23155. </doc>
  23156. </constructor>
  23157. <method name="readByte" return="byte"
  23158. abstract="false" native="false" synchronized="false"
  23159. static="false" final="false" visibility="public"
  23160. deprecated="not deprecated">
  23161. <param name="tag" type="java.lang.String"/>
  23162. <exception name="IOException" type="java.io.IOException"/>
  23163. </method>
  23164. <method name="readBool" return="boolean"
  23165. abstract="false" native="false" synchronized="false"
  23166. static="false" final="false" visibility="public"
  23167. deprecated="not deprecated">
  23168. <param name="tag" type="java.lang.String"/>
  23169. <exception name="IOException" type="java.io.IOException"/>
  23170. </method>
  23171. <method name="readInt" return="int"
  23172. abstract="false" native="false" synchronized="false"
  23173. static="false" final="false" visibility="public"
  23174. deprecated="not deprecated">
  23175. <param name="tag" type="java.lang.String"/>
  23176. <exception name="IOException" type="java.io.IOException"/>
  23177. </method>
  23178. <method name="readLong" return="long"
  23179. abstract="false" native="false" synchronized="false"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. <param name="tag" type="java.lang.String"/>
  23183. <exception name="IOException" type="java.io.IOException"/>
  23184. </method>
  23185. <method name="readFloat" return="float"
  23186. abstract="false" native="false" synchronized="false"
  23187. static="false" final="false" visibility="public"
  23188. deprecated="not deprecated">
  23189. <param name="tag" type="java.lang.String"/>
  23190. <exception name="IOException" type="java.io.IOException"/>
  23191. </method>
  23192. <method name="readDouble" return="double"
  23193. abstract="false" native="false" synchronized="false"
  23194. static="false" final="false" visibility="public"
  23195. deprecated="not deprecated">
  23196. <param name="tag" type="java.lang.String"/>
  23197. <exception name="IOException" type="java.io.IOException"/>
  23198. </method>
  23199. <method name="readString" return="java.lang.String"
  23200. abstract="false" native="false" synchronized="false"
  23201. static="false" final="false" visibility="public"
  23202. deprecated="not deprecated">
  23203. <param name="tag" type="java.lang.String"/>
  23204. <exception name="IOException" type="java.io.IOException"/>
  23205. </method>
  23206. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  23207. abstract="false" native="false" synchronized="false"
  23208. static="false" final="false" visibility="public"
  23209. deprecated="not deprecated">
  23210. <param name="tag" type="java.lang.String"/>
  23211. <exception name="IOException" type="java.io.IOException"/>
  23212. </method>
  23213. <method name="startRecord"
  23214. abstract="false" native="false" synchronized="false"
  23215. static="false" final="false" visibility="public"
  23216. deprecated="not deprecated">
  23217. <param name="tag" type="java.lang.String"/>
  23218. <exception name="IOException" type="java.io.IOException"/>
  23219. </method>
  23220. <method name="endRecord"
  23221. abstract="false" native="false" synchronized="false"
  23222. static="false" final="false" visibility="public"
  23223. deprecated="not deprecated">
  23224. <param name="tag" type="java.lang.String"/>
  23225. <exception name="IOException" type="java.io.IOException"/>
  23226. </method>
  23227. <method name="startVector" return="org.apache.hadoop.record.Index"
  23228. abstract="false" native="false" synchronized="false"
  23229. static="false" final="false" visibility="public"
  23230. deprecated="not deprecated">
  23231. <param name="tag" type="java.lang.String"/>
  23232. <exception name="IOException" type="java.io.IOException"/>
  23233. </method>
  23234. <method name="endVector"
  23235. abstract="false" native="false" synchronized="false"
  23236. static="false" final="false" visibility="public"
  23237. deprecated="not deprecated">
  23238. <param name="tag" type="java.lang.String"/>
  23239. <exception name="IOException" type="java.io.IOException"/>
  23240. </method>
  23241. <method name="startMap" return="org.apache.hadoop.record.Index"
  23242. abstract="false" native="false" synchronized="false"
  23243. static="false" final="false" visibility="public"
  23244. deprecated="not deprecated">
  23245. <param name="tag" type="java.lang.String"/>
  23246. <exception name="IOException" type="java.io.IOException"/>
  23247. </method>
  23248. <method name="endMap"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="false" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <param name="tag" type="java.lang.String"/>
  23253. <exception name="IOException" type="java.io.IOException"/>
  23254. </method>
  23255. <doc>
  23256. <![CDATA[XML Deserializer.
  23257. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23258. </doc>
  23259. </class>
  23260. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  23261. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  23262. <class name="XmlRecordOutput" extends="java.lang.Object"
  23263. abstract="false"
  23264. static="false" final="false" visibility="public"
  23265. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23266. <implements name="org.apache.hadoop.record.RecordOutput"/>
  23267. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  23268. static="false" final="false" visibility="public"
  23269. deprecated="not deprecated">
  23270. <doc>
  23271. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  23272. </doc>
  23273. </constructor>
  23274. <method name="writeByte"
  23275. abstract="false" native="false" synchronized="false"
  23276. static="false" final="false" visibility="public"
  23277. deprecated="not deprecated">
  23278. <param name="b" type="byte"/>
  23279. <param name="tag" type="java.lang.String"/>
  23280. <exception name="IOException" type="java.io.IOException"/>
  23281. </method>
  23282. <method name="writeBool"
  23283. abstract="false" native="false" synchronized="false"
  23284. static="false" final="false" visibility="public"
  23285. deprecated="not deprecated">
  23286. <param name="b" type="boolean"/>
  23287. <param name="tag" type="java.lang.String"/>
  23288. <exception name="IOException" type="java.io.IOException"/>
  23289. </method>
  23290. <method name="writeInt"
  23291. abstract="false" native="false" synchronized="false"
  23292. static="false" final="false" visibility="public"
  23293. deprecated="not deprecated">
  23294. <param name="i" type="int"/>
  23295. <param name="tag" type="java.lang.String"/>
  23296. <exception name="IOException" type="java.io.IOException"/>
  23297. </method>
  23298. <method name="writeLong"
  23299. abstract="false" native="false" synchronized="false"
  23300. static="false" final="false" visibility="public"
  23301. deprecated="not deprecated">
  23302. <param name="l" type="long"/>
  23303. <param name="tag" type="java.lang.String"/>
  23304. <exception name="IOException" type="java.io.IOException"/>
  23305. </method>
  23306. <method name="writeFloat"
  23307. abstract="false" native="false" synchronized="false"
  23308. static="false" final="false" visibility="public"
  23309. deprecated="not deprecated">
  23310. <param name="f" type="float"/>
  23311. <param name="tag" type="java.lang.String"/>
  23312. <exception name="IOException" type="java.io.IOException"/>
  23313. </method>
  23314. <method name="writeDouble"
  23315. abstract="false" native="false" synchronized="false"
  23316. static="false" final="false" visibility="public"
  23317. deprecated="not deprecated">
  23318. <param name="d" type="double"/>
  23319. <param name="tag" type="java.lang.String"/>
  23320. <exception name="IOException" type="java.io.IOException"/>
  23321. </method>
  23322. <method name="writeString"
  23323. abstract="false" native="false" synchronized="false"
  23324. static="false" final="false" visibility="public"
  23325. deprecated="not deprecated">
  23326. <param name="s" type="java.lang.String"/>
  23327. <param name="tag" type="java.lang.String"/>
  23328. <exception name="IOException" type="java.io.IOException"/>
  23329. </method>
  23330. <method name="writeBuffer"
  23331. abstract="false" native="false" synchronized="false"
  23332. static="false" final="false" visibility="public"
  23333. deprecated="not deprecated">
  23334. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  23335. <param name="tag" type="java.lang.String"/>
  23336. <exception name="IOException" type="java.io.IOException"/>
  23337. </method>
  23338. <method name="startRecord"
  23339. abstract="false" native="false" synchronized="false"
  23340. static="false" final="false" visibility="public"
  23341. deprecated="not deprecated">
  23342. <param name="r" type="org.apache.hadoop.record.Record"/>
  23343. <param name="tag" type="java.lang.String"/>
  23344. <exception name="IOException" type="java.io.IOException"/>
  23345. </method>
  23346. <method name="endRecord"
  23347. abstract="false" native="false" synchronized="false"
  23348. static="false" final="false" visibility="public"
  23349. deprecated="not deprecated">
  23350. <param name="r" type="org.apache.hadoop.record.Record"/>
  23351. <param name="tag" type="java.lang.String"/>
  23352. <exception name="IOException" type="java.io.IOException"/>
  23353. </method>
  23354. <method name="startVector"
  23355. abstract="false" native="false" synchronized="false"
  23356. static="false" final="false" visibility="public"
  23357. deprecated="not deprecated">
  23358. <param name="v" type="java.util.ArrayList"/>
  23359. <param name="tag" type="java.lang.String"/>
  23360. <exception name="IOException" type="java.io.IOException"/>
  23361. </method>
  23362. <method name="endVector"
  23363. abstract="false" native="false" synchronized="false"
  23364. static="false" final="false" visibility="public"
  23365. deprecated="not deprecated">
  23366. <param name="v" type="java.util.ArrayList"/>
  23367. <param name="tag" type="java.lang.String"/>
  23368. <exception name="IOException" type="java.io.IOException"/>
  23369. </method>
  23370. <method name="startMap"
  23371. abstract="false" native="false" synchronized="false"
  23372. static="false" final="false" visibility="public"
  23373. deprecated="not deprecated">
  23374. <param name="v" type="java.util.TreeMap"/>
  23375. <param name="tag" type="java.lang.String"/>
  23376. <exception name="IOException" type="java.io.IOException"/>
  23377. </method>
  23378. <method name="endMap"
  23379. abstract="false" native="false" synchronized="false"
  23380. static="false" final="false" visibility="public"
  23381. deprecated="not deprecated">
  23382. <param name="v" type="java.util.TreeMap"/>
  23383. <param name="tag" type="java.lang.String"/>
  23384. <exception name="IOException" type="java.io.IOException"/>
  23385. </method>
  23386. <doc>
  23387. <![CDATA[XML Serializer.
  23388. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23389. </doc>
  23390. </class>
  23391. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  23392. <doc>
  23393. <![CDATA[<p>
  23394. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  23395. translator for simplifying serialization and deserialization of records in a
  23396. language-neutral manner.
  23397. </p>
  23398. <p>
  23399. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  23400. </p>
  23401. <h2>Introduction</h2>
  23402. Software systems of any significant complexity require mechanisms for data
  23403. interchange with the outside world. These interchanges typically involve the
  23404. marshaling and unmarshaling of logical units of data to and from data streams
  23405. (files, network connections, memory buffers etc.). Applications usually have
  23406. some code for serializing and deserializing the data types that they manipulate
  23407. embedded in them. The work of serialization has several features that make
  23408. automatic code generation for it worthwhile. Given a particular output encoding
  23409. (binary, XML, etc.), serialization of primitive types and simple compositions
  23410. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  23411. written serialization code can be susceptible to bugs especially when records
  23412. have a large number of fields or a record definition changes between software
  23413. versions. Lastly, it can be very useful for applications written in different
  23414. programming languages to be able to share and interchange data. This can be
  23415. made a lot easier by describing the data records manipulated by these
  23416. applications in a language agnostic manner and using the descriptions to derive
  23417. implementations of serialization in multiple target languages.
  23418. This document describes Hadoop Record I/O, a mechanism that is aimed
  23419. at
  23420. <ul>
  23421. <li> enabling the specification of simple serializable data types (records)
  23422. <li> enabling the generation of code in multiple target languages for
  23423. marshaling and unmarshaling such types
  23424. <li> providing target language specific support that will enable application
  23425. programmers to incorporate generated code into their applications
  23426. </ul>
  23427. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  23428. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  23429. the specification of most record types, they differ widely in what else they
  23430. focus on. The focus in Hadoop Record I/O is on data marshaling and
  23431. multi-lingual support. We take a translator-based approach to serialization.
  23432. Hadoop users have to describe their data in a simple data description
  23433. language. The Hadoop DDL translator rcc generates code that users
  23434. can invoke in order to read/write their data from/to simple stream
  23435. abstractions. Next we list explicitly some of the goals and non-goals of
  23436. Hadoop Record I/O.
  23437. <h3>Goals</h3>
  23438. <ul>
  23439. <li> Support for commonly used primitive types. Hadoop should include as
  23440. primitives commonly used builtin types from programming languages we intend to
  23441. support.
  23442. <li> Support for common data compositions (including recursive compositions).
  23443. Hadoop should support widely used composite types such as structs and
  23444. vectors.
  23445. <li> Code generation in multiple target languages. Hadoop should be capable of
  23446. generating serialization code in multiple target languages and should be
  23447. easily extensible to new target languages. The initial target languages are
  23448. C++ and Java.
  23449. <li> Support for generated target languages. Hadooop should include support
  23450. in the form of headers, libraries, packages for supported target languages
  23451. that enable easy inclusion and use of generated code in applications.
  23452. <li> Support for multiple output encodings. Candidates include
  23453. packed binary, comma-separated text, XML etc.
  23454. <li> Support for specifying record types in a backwards/forwards compatible
  23455. manner. This will probably be in the form of support for optional fields in
  23456. records. This version of the document does not include a description of the
  23457. planned mechanism, we intend to include it in the next iteration.
  23458. </ul>
  23459. <h3>Non-Goals</h3>
  23460. <ul>
  23461. <li> Serializing existing arbitrary C++ classes.
  23462. <li> Serializing complex data structures such as trees, linked lists etc.
  23463. <li> Built-in indexing schemes, compression, or check-sums.
  23464. <li> Dynamic construction of objects from an XML schema.
  23465. </ul>
  23466. The remainder of this document describes the features of Hadoop record I/O
  23467. in more detail. Section 2 describes the data types supported by the system.
  23468. Section 3 lays out the DDL syntax with some examples of simple records.
  23469. Section 4 describes the process of code generation with rcc. Section 5
  23470. describes target language mappings and support for Hadoop types. We include a
  23471. fairly complete description of C++ mappings with intent to include Java and
  23472. others in upcoming iterations of this document. The last section talks about
  23473. supported output encodings.
  23474. <h2>Data Types and Streams</h2>
  23475. This section describes the primitive and composite types supported by Hadoop.
  23476. We aim to support a set of types that can be used to simply and efficiently
  23477. express a wide range of record types in different programming languages.
  23478. <h3>Primitive Types</h3>
  23479. For the most part, the primitive types of Hadoop map directly to primitive
  23480. types in high level programming languages. Special cases are the
  23481. ustring (a Unicode string) and buffer types, which we believe
  23482. find wide use and which are usually implemented in library code and not
  23483. available as language built-ins. Hadoop also supplies these via library code
  23484. when a target language built-in is not present and there is no widely
  23485. adopted "standard" implementation. The complete list of primitive types is:
  23486. <ul>
  23487. <li> byte: An 8-bit unsigned integer.
  23488. <li> boolean: A boolean value.
  23489. <li> int: A 32-bit signed integer.
  23490. <li> long: A 64-bit signed integer.
  23491. <li> float: A single precision floating point number as described by
  23492. IEEE-754.
  23493. <li> double: A double precision floating point number as described by
  23494. IEEE-754.
  23495. <li> ustring: A string consisting of Unicode characters.
  23496. <li> buffer: An arbitrary sequence of bytes.
  23497. </ul>
  23498. <h3>Composite Types</h3>
  23499. Hadoop supports a small set of composite types that enable the description
  23500. of simple aggregate types and containers. A composite type is serialized
  23501. by sequentially serializing it constituent elements. The supported
  23502. composite types are:
  23503. <ul>
  23504. <li> record: An aggregate type like a C-struct. This is a list of
  23505. typed fields that are together considered a single unit of data. A record
  23506. is serialized by sequentially serializing its constituent fields. In addition
  23507. to serialization a record has comparison operations (equality and less-than)
  23508. implemented for it, these are defined as memberwise comparisons.
  23509. <li>vector: A sequence of entries of the same data type, primitive
  23510. or composite.
  23511. <li> map: An associative container mapping instances of a key type to
  23512. instances of a value type. The key and value types may themselves be primitive
  23513. or composite types.
  23514. </ul>
  23515. <h3>Streams</h3>
  23516. Hadoop generates code for serializing and deserializing record types to
  23517. abstract streams. For each target language Hadoop defines very simple input
  23518. and output stream interfaces. Application writers can usually develop
  23519. concrete implementations of these by putting a one method wrapper around
  23520. an existing stream implementation.
  23521. <h2>DDL Syntax and Examples</h2>
  23522. We now describe the syntax of the Hadoop data description language. This is
  23523. followed by a few examples of DDL usage.
  23524. <h3>Hadoop DDL Syntax</h3>
  23525. <pre><code>
  23526. recfile = *include module *record
  23527. include = "include" path
  23528. path = (relative-path / absolute-path)
  23529. module = "module" module-name
  23530. module-name = name *("." name)
  23531. record := "class" name "{" 1*(field) "}"
  23532. field := type name ";"
  23533. name := ALPHA (ALPHA / DIGIT / "_" )*
  23534. type := (ptype / ctype)
  23535. ptype := ("byte" / "boolean" / "int" |
  23536. "long" / "float" / "double"
  23537. "ustring" / "buffer")
  23538. ctype := (("vector" "<" type ">") /
  23539. ("map" "<" type "," type ">" ) ) / name)
  23540. </code></pre>
  23541. A DDL file describes one or more record types. It begins with zero or
  23542. more include declarations, a single mandatory module declaration
  23543. followed by zero or more class declarations. The semantics of each of
  23544. these declarations are described below:
  23545. <ul>
  23546. <li>include: An include declaration specifies a DDL file to be
  23547. referenced when generating code for types in the current DDL file. Record types
  23548. in the current compilation unit may refer to types in all included files.
  23549. File inclusion is recursive. An include does not trigger code
  23550. generation for the referenced file.
  23551. <li> module: Every Hadoop DDL file must have a single module
  23552. declaration that follows the list of includes and precedes all record
  23553. declarations. A module declaration identifies a scope within which
  23554. the names of all types in the current file are visible. Module names are
  23555. mapped to C++ namespaces, Java packages etc. in generated code.
  23556. <li> class: Records types are specified through class
  23557. declarations. A class declaration is like a Java class declaration.
  23558. It specifies a named record type and a list of fields that constitute records
  23559. of the type. Usage is illustrated in the following examples.
  23560. </ul>
  23561. <h3>Examples</h3>
  23562. <ul>
  23563. <li>A simple DDL file links.jr with just one record declaration.
  23564. <pre><code>
  23565. module links {
  23566. class Link {
  23567. ustring URL;
  23568. boolean isRelative;
  23569. ustring anchorText;
  23570. };
  23571. }
  23572. </code></pre>
  23573. <li> A DDL file outlinks.jr which includes another
  23574. <pre><code>
  23575. include "links.jr"
  23576. module outlinks {
  23577. class OutLinks {
  23578. ustring baseURL;
  23579. vector<links.Link> outLinks;
  23580. };
  23581. }
  23582. </code></pre>
  23583. </ul>
  23584. <h2>Code Generation</h2>
  23585. The Hadoop translator is written in Java. Invocation is done by executing a
  23586. wrapper shell script named named rcc. It takes a list of
  23587. record description files as a mandatory argument and an
  23588. optional language argument (the default is Java) --language or
  23589. -l. Thus a typical invocation would look like:
  23590. <pre><code>
  23591. $ rcc -l C++ <filename> ...
  23592. </code></pre>
  23593. <h2>Target Language Mappings and Support</h2>
  23594. For all target languages, the unit of code generation is a record type.
  23595. For each record type, Hadoop generates code for serialization and
  23596. deserialization, record comparison and access to record members.
  23597. <h3>C++</h3>
  23598. Support for including Hadoop generated C++ code in applications comes in the
  23599. form of a header file recordio.hh which needs to be included in source
  23600. that uses Hadoop types and a library librecordio.a which applications need
  23601. to be linked with. The header declares the Hadoop C++ namespace which defines
  23602. appropriate types for the various primitives, the basic interfaces for
  23603. records and streams and enumerates the supported serialization encodings.
  23604. Declarations of these interfaces and a description of their semantics follow:
  23605. <pre><code>
  23606. namespace hadoop {
  23607. enum RecFormat { kBinary, kXML, kCSV };
  23608. class InStream {
  23609. public:
  23610. virtual ssize_t read(void *buf, size_t n) = 0;
  23611. };
  23612. class OutStream {
  23613. public:
  23614. virtual ssize_t write(const void *buf, size_t n) = 0;
  23615. };
  23616. class IOError : public runtime_error {
  23617. public:
  23618. explicit IOError(const std::string& msg);
  23619. };
  23620. class IArchive;
  23621. class OArchive;
  23622. class RecordReader {
  23623. public:
  23624. RecordReader(InStream& in, RecFormat fmt);
  23625. virtual ~RecordReader(void);
  23626. virtual void read(Record& rec);
  23627. };
  23628. class RecordWriter {
  23629. public:
  23630. RecordWriter(OutStream& out, RecFormat fmt);
  23631. virtual ~RecordWriter(void);
  23632. virtual void write(Record& rec);
  23633. };
  23634. class Record {
  23635. public:
  23636. virtual std::string type(void) const = 0;
  23637. virtual std::string signature(void) const = 0;
  23638. protected:
  23639. virtual bool validate(void) const = 0;
  23640. virtual void
  23641. serialize(OArchive& oa, const std::string& tag) const = 0;
  23642. virtual void
  23643. deserialize(IArchive& ia, const std::string& tag) = 0;
  23644. };
  23645. }
  23646. </code></pre>
  23647. <ul>
  23648. <li> RecFormat: An enumeration of the serialization encodings supported
  23649. by this implementation of Hadoop.
  23650. <li> InStream: A simple abstraction for an input stream. This has a
  23651. single public read method that reads n bytes from the stream into
  23652. the buffer buf. Has the same semantics as a blocking read system
  23653. call. Returns the number of bytes read or -1 if an error occurs.
  23654. <li> OutStream: A simple abstraction for an output stream. This has a
  23655. single write method that writes n bytes to the stream from the
  23656. buffer buf. Has the same semantics as a blocking write system
  23657. call. Returns the number of bytes written or -1 if an error occurs.
  23658. <li> RecordReader: A RecordReader reads records one at a time from
  23659. an underlying stream in a specified record format. The reader is instantiated
  23660. with a stream and a serialization format. It has a read method that
  23661. takes an instance of a record and deserializes the record from the stream.
  23662. <li> RecordWriter: A RecordWriter writes records one at a
  23663. time to an underlying stream in a specified record format. The writer is
  23664. instantiated with a stream and a serialization format. It has a
  23665. write method that takes an instance of a record and serializes the
  23666. record to the stream.
  23667. <li> Record: The base class for all generated record types. This has two
  23668. public methods type and signature that return the typename and the
  23669. type signature of the record.
  23670. </ul>
  23671. Two files are generated for each record file (note: not for each record). If a
  23672. record file is named "name.jr", the generated files are
  23673. "name.jr.cc" and "name.jr.hh" containing serialization
  23674. implementations and record type declarations respectively.
  23675. For each record in the DDL file, the generated header file will contain a
  23676. class definition corresponding to the record type, method definitions for the
  23677. generated type will be present in the '.cc' file. The generated class will
  23678. inherit from the abstract class hadoop::Record. The DDL files
  23679. module declaration determines the namespace the record belongs to.
  23680. Each '.' delimited token in the module declaration results in the
  23681. creation of a namespace. For instance, the declaration module docs.links
  23682. results in the creation of a docs namespace and a nested
  23683. docs::links namespace. In the preceding examples, the Link class
  23684. is placed in the links namespace. The header file corresponding to
  23685. the links.jr file will contain:
  23686. <pre><code>
  23687. namespace links {
  23688. class Link : public hadoop::Record {
  23689. // ....
  23690. };
  23691. };
  23692. </code></pre>
  23693. Each field within the record will cause the generation of a private member
  23694. declaration of the appropriate type in the class declaration, and one or more
  23695. acccessor methods. The generated class will implement the serialize and
  23696. deserialize methods defined in hadoop::Record+. It will also
  23697. implement the inspection methods type and signature from
  23698. hadoop::Record. A default constructor and virtual destructor will also
  23699. be generated. Serialization code will read/write records into streams that
  23700. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  23701. For each member of a record an accessor method is generated that returns
  23702. either the member or a reference to the member. For members that are returned
  23703. by value, a setter method is also generated. This is true for primitive
  23704. data members of the types byte, int, long, boolean, float and
  23705. double. For example, for a int field called MyField the folowing
  23706. code is generated.
  23707. <pre><code>
  23708. ...
  23709. private:
  23710. int32_t mMyField;
  23711. ...
  23712. public:
  23713. int32_t getMyField(void) const {
  23714. return mMyField;
  23715. };
  23716. void setMyField(int32_t m) {
  23717. mMyField = m;
  23718. };
  23719. ...
  23720. </code></pre>
  23721. For a ustring or buffer or composite field. The generated code
  23722. only contains accessors that return a reference to the field. A const
  23723. and a non-const accessor are generated. For example:
  23724. <pre><code>
  23725. ...
  23726. private:
  23727. std::string mMyBuf;
  23728. ...
  23729. public:
  23730. std::string& getMyBuf() {
  23731. return mMyBuf;
  23732. };
  23733. const std::string& getMyBuf() const {
  23734. return mMyBuf;
  23735. };
  23736. ...
  23737. </code></pre>
  23738. <h4>Examples</h4>
  23739. Suppose the inclrec.jr file contains:
  23740. <pre><code>
  23741. module inclrec {
  23742. class RI {
  23743. int I32;
  23744. double D;
  23745. ustring S;
  23746. };
  23747. }
  23748. </code></pre>
  23749. and the testrec.jr file contains:
  23750. <pre><code>
  23751. include "inclrec.jr"
  23752. module testrec {
  23753. class R {
  23754. vector<float> VF;
  23755. RI Rec;
  23756. buffer Buf;
  23757. };
  23758. }
  23759. </code></pre>
  23760. Then the invocation of rcc such as:
  23761. <pre><code>
  23762. $ rcc -l c++ inclrec.jr testrec.jr
  23763. </code></pre>
  23764. will result in generation of four files:
  23765. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  23766. The inclrec.jr.hh will contain:
  23767. <pre><code>
  23768. #ifndef _INCLREC_JR_HH_
  23769. #define _INCLREC_JR_HH_
  23770. #include "recordio.hh"
  23771. namespace inclrec {
  23772. class RI : public hadoop::Record {
  23773. private:
  23774. int32_t I32;
  23775. double D;
  23776. std::string S;
  23777. public:
  23778. RI(void);
  23779. virtual ~RI(void);
  23780. virtual bool operator==(const RI& peer) const;
  23781. virtual bool operator<(const RI& peer) const;
  23782. virtual int32_t getI32(void) const { return I32; }
  23783. virtual void setI32(int32_t v) { I32 = v; }
  23784. virtual double getD(void) const { return D; }
  23785. virtual void setD(double v) { D = v; }
  23786. virtual std::string& getS(void) const { return S; }
  23787. virtual const std::string& getS(void) const { return S; }
  23788. virtual std::string type(void) const;
  23789. virtual std::string signature(void) const;
  23790. protected:
  23791. virtual void serialize(hadoop::OArchive& a) const;
  23792. virtual void deserialize(hadoop::IArchive& a);
  23793. };
  23794. } // end namespace inclrec
  23795. #endif /* _INCLREC_JR_HH_ */
  23796. </code></pre>
  23797. The testrec.jr.hh file will contain:
  23798. <pre><code>
  23799. #ifndef _TESTREC_JR_HH_
  23800. #define _TESTREC_JR_HH_
  23801. #include "inclrec.jr.hh"
  23802. namespace testrec {
  23803. class R : public hadoop::Record {
  23804. private:
  23805. std::vector<float> VF;
  23806. inclrec::RI Rec;
  23807. std::string Buf;
  23808. public:
  23809. R(void);
  23810. virtual ~R(void);
  23811. virtual bool operator==(const R& peer) const;
  23812. virtual bool operator<(const R& peer) const;
  23813. virtual std::vector<float>& getVF(void) const;
  23814. virtual const std::vector<float>& getVF(void) const;
  23815. virtual std::string& getBuf(void) const ;
  23816. virtual const std::string& getBuf(void) const;
  23817. virtual inclrec::RI& getRec(void) const;
  23818. virtual const inclrec::RI& getRec(void) const;
  23819. virtual bool serialize(hadoop::OutArchive& a) const;
  23820. virtual bool deserialize(hadoop::InArchive& a);
  23821. virtual std::string type(void) const;
  23822. virtual std::string signature(void) const;
  23823. };
  23824. }; // end namespace testrec
  23825. #endif /* _TESTREC_JR_HH_ */
  23826. </code></pre>
  23827. <h3>Java</h3>
  23828. Code generation for Java is similar to that for C++. A Java class is generated
  23829. for each record type with private members corresponding to the fields. Getters
  23830. and setters for fields are also generated. Some differences arise in the
  23831. way comparison is expressed and in the mapping of modules to packages and
  23832. classes to files. For equality testing, an equals method is generated
  23833. for each record type. As per Java requirements a hashCode method is also
  23834. generated. For comparison a compareTo method is generated for each
  23835. record type. This has the semantics as defined by the Java Comparable
  23836. interface, that is, the method returns a negative integer, zero, or a positive
  23837. integer as the invoked object is less than, equal to, or greater than the
  23838. comparison parameter.
  23839. A .java file is generated per record type as opposed to per DDL
  23840. file as in C++. The module declaration translates to a Java
  23841. package declaration. The module name maps to an identical Java package
  23842. name. In addition to this mapping, the DDL compiler creates the appropriate
  23843. directory hierarchy for the package and places the generated .java
  23844. files in the correct directories.
  23845. <h2>Mapping Summary</h2>
  23846. <pre><code>
  23847. DDL Type C++ Type Java Type
  23848. boolean bool boolean
  23849. byte int8_t byte
  23850. int int32_t int
  23851. long int64_t long
  23852. float float float
  23853. double double double
  23854. ustring std::string java.lang.String
  23855. buffer std::string org.apache.hadoop.record.Buffer
  23856. class type class type class type
  23857. vector<type> std::vector<type> java.util.ArrayList<type>
  23858. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  23859. </code></pre>
  23860. <h2>Data encodings</h2>
  23861. This section describes the format of the data encodings supported by Hadoop.
  23862. Currently, three data encodings are supported, namely binary, CSV and XML.
  23863. <h3>Binary Serialization Format</h3>
  23864. The binary data encoding format is fairly dense. Serialization of composite
  23865. types is simply defined as a concatenation of serializations of the constituent
  23866. elements (lengths are included in vectors and maps).
  23867. Composite types are serialized as follows:
  23868. <ul>
  23869. <li> class: Sequence of serialized members.
  23870. <li> vector: The number of elements serialized as an int. Followed by a
  23871. sequence of serialized elements.
  23872. <li> map: The number of key value pairs serialized as an int. Followed
  23873. by a sequence of serialized (key,value) pairs.
  23874. </ul>
  23875. Serialization of primitives is more interesting, with a zero compression
  23876. optimization for integral types and normalization to UTF-8 for strings.
  23877. Primitive types are serialized as follows:
  23878. <ul>
  23879. <li> byte: Represented by 1 byte, as is.
  23880. <li> boolean: Represented by 1-byte (0 or 1)
  23881. <li> int/long: Integers and longs are serialized zero compressed.
  23882. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  23883. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  23884. the number of trailing bytes, N, as the negative number (-120-N). For example,
  23885. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  23886. This doesn't help much for 4-byte integers but does a reasonably good job with
  23887. longs without bit twiddling.
  23888. <li> float/double: Serialized in IEEE 754 single and double precision
  23889. format in network byte order. This is the format used by Java.
  23890. <li> ustring: Serialized as 4-byte zero compressed length followed by
  23891. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  23892. language representation.
  23893. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  23894. raw bytes in the buffer.
  23895. </ul>
  23896. <h3>CSV Serialization Format</h3>
  23897. The CSV serialization format has a lot more structure than the "standard"
  23898. Excel CSV format, but we believe the additional structure is useful because
  23899. <ul>
  23900. <li> it makes parsing a lot easier without detracting too much from legibility
  23901. <li> the delimiters around composites make it obvious when one is reading a
  23902. sequence of Hadoop records
  23903. </ul>
  23904. Serialization formats for the various types are detailed in the grammar that
  23905. follows. The notable feature of the formats is the use of delimiters for
  23906. indicating the certain field types.
  23907. <ul>
  23908. <li> A string field begins with a single quote (').
  23909. <li> A buffer field begins with a sharp (#).
  23910. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  23911. ends with '}'.
  23912. </ul>
  23913. The CSV format can be described by the following grammar:
  23914. <pre><code>
  23915. record = primitive / struct / vector / map
  23916. primitive = boolean / int / long / float / double / ustring / buffer
  23917. boolean = "T" / "F"
  23918. int = ["-"] 1*DIGIT
  23919. long = ";" ["-"] 1*DIGIT
  23920. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  23921. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  23922. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  23923. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  23924. struct = "s{" record *("," record) "}"
  23925. vector = "v{" [record *("," record)] "}"
  23926. map = "m{" [*(record "," record)] "}"
  23927. </code></pre>
  23928. <h3>XML Serialization Format</h3>
  23929. The XML serialization format is the same used by Apache XML-RPC
  23930. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  23931. XML-RPC format and adds some additional data types. All record I/O types are
  23932. not directly expressible in this format, and access to a DDL is required in
  23933. order to convert these to valid types. All types primitive or composite are
  23934. represented by &lt;value&gt; elements. The particular XML-RPC type is
  23935. indicated by a nested element in the &lt;value&gt; element. The encoding for
  23936. records is always UTF-8. Primitive types are serialized as follows:
  23937. <ul>
  23938. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  23939. integers represented in US-ASCII
  23940. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  23941. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  23942. signed integers represented in US-ASCII.
  23943. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  23944. represented in US-ASCII.
  23945. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  23946. floating point numbers represented in US-ASCII.
  23947. <li> double: XML tag &lt;double&gt;. Values: Double precision
  23948. floating point numbers represented in US-ASCII.
  23949. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  23950. represented as UTF-8. XML does not permit all Unicode characters in literal
  23951. data. In particular, NULLs and control chars are not allowed. Additionally,
  23952. XML processors are required to replace carriage returns with line feeds and to
  23953. replace CRLF sequences with line feeds. Programming languages that we work
  23954. with do not impose these restrictions on string types. To work around these
  23955. restrictions, disallowed characters and CRs are percent escaped in strings.
  23956. The '%' character is also percent escaped.
  23957. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  23958. data. Represented as hexBinary, each byte is replaced by its 2-byte
  23959. hexadecimal representation.
  23960. </ul>
  23961. Composite types are serialized as follows:
  23962. <ul>
  23963. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  23964. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  23965. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  23966. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  23967. by a &lt;value&gt; element.
  23968. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  23969. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  23970. &lt;value&gt; elements each of which represents an element of the vector.
  23971. <li> map: XML tag &lt;array&gt;. Same as vector.
  23972. </ul>
  23973. For example:
  23974. <pre><code>
  23975. class {
  23976. int MY_INT; // value 5
  23977. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  23978. buffer MY_BUF; // value '\00\n\tabc%'
  23979. }
  23980. </code></pre>
  23981. is serialized as
  23982. <pre><code class="XML">
  23983. &lt;value&gt;
  23984. &lt;struct&gt;
  23985. &lt;member&gt;
  23986. &lt;name&gt;MY_INT&lt;/name&gt;
  23987. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  23988. &lt;/member&gt;
  23989. &lt;member&gt;
  23990. &lt;name&gt;MY_VEC&lt;/name&gt;
  23991. &lt;value&gt;
  23992. &lt;array&gt;
  23993. &lt;data&gt;
  23994. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  23995. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  23996. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  23997. &lt;/data&gt;
  23998. &lt;/array&gt;
  23999. &lt;/value&gt;
  24000. &lt;/member&gt;
  24001. &lt;member&gt;
  24002. &lt;name&gt;MY_BUF&lt;/name&gt;
  24003. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  24004. &lt;/member&gt;
  24005. &lt;/struct&gt;
  24006. &lt;/value&gt;
  24007. </code></pre>]]>
  24008. </doc>
  24009. </package>
  24010. <package name="org.apache.hadoop.record.compiler">
  24011. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  24012. <class name="CodeBuffer" extends="java.lang.Object"
  24013. abstract="false"
  24014. static="false" final="false" visibility="public"
  24015. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24016. <method name="toString" return="java.lang.String"
  24017. abstract="false" native="false" synchronized="false"
  24018. static="false" final="false" visibility="public"
  24019. deprecated="not deprecated">
  24020. </method>
  24021. <doc>
  24022. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  24023. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24024. </doc>
  24025. </class>
  24026. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  24027. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  24028. <class name="Consts" extends="java.lang.Object"
  24029. abstract="false"
  24030. static="false" final="false" visibility="public"
  24031. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24032. <field name="RIO_PREFIX" type="java.lang.String"
  24033. transient="false" volatile="false"
  24034. static="true" final="true" visibility="public"
  24035. deprecated="not deprecated">
  24036. </field>
  24037. <field name="RTI_VAR" type="java.lang.String"
  24038. transient="false" volatile="false"
  24039. static="true" final="true" visibility="public"
  24040. deprecated="not deprecated">
  24041. </field>
  24042. <field name="RTI_FILTER" type="java.lang.String"
  24043. transient="false" volatile="false"
  24044. static="true" final="true" visibility="public"
  24045. deprecated="not deprecated">
  24046. </field>
  24047. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  24048. transient="false" volatile="false"
  24049. static="true" final="true" visibility="public"
  24050. deprecated="not deprecated">
  24051. </field>
  24052. <field name="RECORD_OUTPUT" type="java.lang.String"
  24053. transient="false" volatile="false"
  24054. static="true" final="true" visibility="public"
  24055. deprecated="not deprecated">
  24056. </field>
  24057. <field name="RECORD_INPUT" type="java.lang.String"
  24058. transient="false" volatile="false"
  24059. static="true" final="true" visibility="public"
  24060. deprecated="not deprecated">
  24061. </field>
  24062. <field name="TAG" type="java.lang.String"
  24063. transient="false" volatile="false"
  24064. static="true" final="true" visibility="public"
  24065. deprecated="not deprecated">
  24066. </field>
  24067. <doc>
  24068. <![CDATA[const definitions for Record I/O compiler
  24069. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24070. </doc>
  24071. </class>
  24072. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  24073. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  24074. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  24075. abstract="false"
  24076. static="false" final="false" visibility="public"
  24077. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24078. <constructor name="JBoolean"
  24079. static="false" final="false" visibility="public"
  24080. deprecated="not deprecated">
  24081. <doc>
  24082. <![CDATA[Creates a new instance of JBoolean]]>
  24083. </doc>
  24084. </constructor>
  24085. <doc>
  24086. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24087. </doc>
  24088. </class>
  24089. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  24090. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  24091. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  24092. abstract="false"
  24093. static="false" final="false" visibility="public"
  24094. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24095. <constructor name="JBuffer"
  24096. static="false" final="false" visibility="public"
  24097. deprecated="not deprecated">
  24098. <doc>
  24099. <![CDATA[Creates a new instance of JBuffer]]>
  24100. </doc>
  24101. </constructor>
  24102. <doc>
  24103. <![CDATA[Code generator for "buffer" type.
  24104. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24105. </doc>
  24106. </class>
  24107. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  24108. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  24109. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  24110. abstract="false"
  24111. static="false" final="false" visibility="public"
  24112. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24113. <constructor name="JByte"
  24114. static="false" final="false" visibility="public"
  24115. deprecated="not deprecated">
  24116. </constructor>
  24117. <doc>
  24118. <![CDATA[Code generator for "byte" type.
  24119. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24120. </doc>
  24121. </class>
  24122. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  24123. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  24124. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  24125. abstract="false"
  24126. static="false" final="false" visibility="public"
  24127. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24128. <constructor name="JDouble"
  24129. static="false" final="false" visibility="public"
  24130. deprecated="not deprecated">
  24131. <doc>
  24132. <![CDATA[Creates a new instance of JDouble]]>
  24133. </doc>
  24134. </constructor>
  24135. <doc>
  24136. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24137. </doc>
  24138. </class>
  24139. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  24140. <!-- start class org.apache.hadoop.record.compiler.JField -->
  24141. <class name="JField" extends="java.lang.Object"
  24142. abstract="false"
  24143. static="false" final="false" visibility="public"
  24144. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24145. <constructor name="JField" type="java.lang.String, T"
  24146. static="false" final="false" visibility="public"
  24147. deprecated="not deprecated">
  24148. <doc>
  24149. <![CDATA[Creates a new instance of JField]]>
  24150. </doc>
  24151. </constructor>
  24152. <doc>
  24153. <![CDATA[A thin wrappper around record field.
  24154. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24155. </doc>
  24156. </class>
  24157. <!-- end class org.apache.hadoop.record.compiler.JField -->
  24158. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  24159. <class name="JFile" extends="java.lang.Object"
  24160. abstract="false"
  24161. static="false" final="false" visibility="public"
  24162. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24163. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  24164. static="false" final="false" visibility="public"
  24165. deprecated="not deprecated">
  24166. <doc>
  24167. <![CDATA[Creates a new instance of JFile
  24168. @param name possibly full pathname to the file
  24169. @param inclFiles included files (as JFile)
  24170. @param recList List of records defined within this file]]>
  24171. </doc>
  24172. </constructor>
  24173. <method name="genCode" return="int"
  24174. abstract="false" native="false" synchronized="false"
  24175. static="false" final="false" visibility="public"
  24176. deprecated="not deprecated">
  24177. <param name="language" type="java.lang.String"/>
  24178. <param name="destDir" type="java.lang.String"/>
  24179. <param name="options" type="java.util.ArrayList"/>
  24180. <exception name="IOException" type="java.io.IOException"/>
  24181. <doc>
  24182. <![CDATA[Generate record code in given language. Language should be all
  24183. lowercase.]]>
  24184. </doc>
  24185. </method>
  24186. <doc>
  24187. <![CDATA[Container for the Hadoop Record DDL.
  24188. The main components of the file are filename, list of included files,
  24189. and records defined in that file.
  24190. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24191. </doc>
  24192. </class>
  24193. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  24194. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  24195. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  24196. abstract="false"
  24197. static="false" final="false" visibility="public"
  24198. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24199. <constructor name="JFloat"
  24200. static="false" final="false" visibility="public"
  24201. deprecated="not deprecated">
  24202. <doc>
  24203. <![CDATA[Creates a new instance of JFloat]]>
  24204. </doc>
  24205. </constructor>
  24206. <doc>
  24207. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24208. </doc>
  24209. </class>
  24210. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  24211. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  24212. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  24213. abstract="false"
  24214. static="false" final="false" visibility="public"
  24215. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24216. <constructor name="JInt"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <doc>
  24220. <![CDATA[Creates a new instance of JInt]]>
  24221. </doc>
  24222. </constructor>
  24223. <doc>
  24224. <![CDATA[Code generator for "int" type
  24225. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24226. </doc>
  24227. </class>
  24228. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  24229. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  24230. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  24231. abstract="false"
  24232. static="false" final="false" visibility="public"
  24233. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24234. <constructor name="JLong"
  24235. static="false" final="false" visibility="public"
  24236. deprecated="not deprecated">
  24237. <doc>
  24238. <![CDATA[Creates a new instance of JLong]]>
  24239. </doc>
  24240. </constructor>
  24241. <doc>
  24242. <![CDATA[Code generator for "long" type
  24243. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24244. </doc>
  24245. </class>
  24246. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  24247. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  24248. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  24249. abstract="false"
  24250. static="false" final="false" visibility="public"
  24251. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24252. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  24253. static="false" final="false" visibility="public"
  24254. deprecated="not deprecated">
  24255. <doc>
  24256. <![CDATA[Creates a new instance of JMap]]>
  24257. </doc>
  24258. </constructor>
  24259. <doc>
  24260. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24261. </doc>
  24262. </class>
  24263. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  24264. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  24265. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  24266. abstract="false"
  24267. static="false" final="false" visibility="public"
  24268. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24269. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  24270. static="false" final="false" visibility="public"
  24271. deprecated="not deprecated">
  24272. <doc>
  24273. <![CDATA[Creates a new instance of JRecord]]>
  24274. </doc>
  24275. </constructor>
  24276. <doc>
  24277. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24278. </doc>
  24279. </class>
  24280. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  24281. <!-- start class org.apache.hadoop.record.compiler.JString -->
  24282. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  24283. abstract="false"
  24284. static="false" final="false" visibility="public"
  24285. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24286. <constructor name="JString"
  24287. static="false" final="false" visibility="public"
  24288. deprecated="not deprecated">
  24289. <doc>
  24290. <![CDATA[Creates a new instance of JString]]>
  24291. </doc>
  24292. </constructor>
  24293. <doc>
  24294. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24295. </doc>
  24296. </class>
  24297. <!-- end class org.apache.hadoop.record.compiler.JString -->
  24298. <!-- start class org.apache.hadoop.record.compiler.JType -->
  24299. <class name="JType" extends="java.lang.Object"
  24300. abstract="true"
  24301. static="false" final="false" visibility="public"
  24302. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24303. <constructor name="JType"
  24304. static="false" final="false" visibility="public"
  24305. deprecated="not deprecated">
  24306. </constructor>
  24307. <doc>
  24308. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  24309. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24310. </doc>
  24311. </class>
  24312. <!-- end class org.apache.hadoop.record.compiler.JType -->
  24313. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  24314. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  24315. abstract="false"
  24316. static="false" final="false" visibility="public"
  24317. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24318. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  24319. static="false" final="false" visibility="public"
  24320. deprecated="not deprecated">
  24321. <doc>
  24322. <![CDATA[Creates a new instance of JVector]]>
  24323. </doc>
  24324. </constructor>
  24325. <doc>
  24326. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24327. </doc>
  24328. </class>
  24329. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  24330. <doc>
  24331. <![CDATA[<p>
  24332. (DEPRECATED) This package contains classes needed for code generation
  24333. from the hadoop record compiler. CppGenerator and JavaGenerator
  24334. are the main entry points from the parser. There are classes
  24335. corrsponding to every primitive type and compound type
  24336. included in Hadoop record I/O syntax.
  24337. </p>
  24338. <p>
  24339. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  24340. </p>]]>
  24341. </doc>
  24342. </package>
  24343. <package name="org.apache.hadoop.record.compiler.ant">
  24344. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  24345. <class name="RccTask" extends="org.apache.tools.ant.Task"
  24346. abstract="false"
  24347. static="false" final="false" visibility="public"
  24348. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24349. <constructor name="RccTask"
  24350. static="false" final="false" visibility="public"
  24351. deprecated="not deprecated">
  24352. <doc>
  24353. <![CDATA[Creates a new instance of RccTask]]>
  24354. </doc>
  24355. </constructor>
  24356. <method name="setLanguage"
  24357. abstract="false" native="false" synchronized="false"
  24358. static="false" final="false" visibility="public"
  24359. deprecated="not deprecated">
  24360. <param name="language" type="java.lang.String"/>
  24361. <doc>
  24362. <![CDATA[Sets the output language option
  24363. @param language "java"/"c++"]]>
  24364. </doc>
  24365. </method>
  24366. <method name="setFile"
  24367. abstract="false" native="false" synchronized="false"
  24368. static="false" final="false" visibility="public"
  24369. deprecated="not deprecated">
  24370. <param name="file" type="java.io.File"/>
  24371. <doc>
  24372. <![CDATA[Sets the record definition file attribute
  24373. @param file record definition file]]>
  24374. </doc>
  24375. </method>
  24376. <method name="setFailonerror"
  24377. abstract="false" native="false" synchronized="false"
  24378. static="false" final="false" visibility="public"
  24379. deprecated="not deprecated">
  24380. <param name="flag" type="boolean"/>
  24381. <doc>
  24382. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  24383. @param flag true will throw build exception in case of failure (default)]]>
  24384. </doc>
  24385. </method>
  24386. <method name="setDestdir"
  24387. abstract="false" native="false" synchronized="false"
  24388. static="false" final="false" visibility="public"
  24389. deprecated="not deprecated">
  24390. <param name="dir" type="java.io.File"/>
  24391. <doc>
  24392. <![CDATA[Sets directory where output files will be generated
  24393. @param dir output directory]]>
  24394. </doc>
  24395. </method>
  24396. <method name="addFileset"
  24397. abstract="false" native="false" synchronized="false"
  24398. static="false" final="false" visibility="public"
  24399. deprecated="not deprecated">
  24400. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  24401. <doc>
  24402. <![CDATA[Adds a fileset that can consist of one or more files
  24403. @param set Set of record definition files]]>
  24404. </doc>
  24405. </method>
  24406. <method name="execute"
  24407. abstract="false" native="false" synchronized="false"
  24408. static="false" final="false" visibility="public"
  24409. deprecated="not deprecated">
  24410. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  24411. <doc>
  24412. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  24413. </doc>
  24414. </method>
  24415. <doc>
  24416. <![CDATA[Hadoop record compiler ant Task
  24417. <p> This task takes the given record definition files and compiles them into
  24418. java or c++
  24419. files. It is then up to the user to compile the generated files.
  24420. <p> The task requires the <code>file</code> or the nested fileset element to be
  24421. specified. Optional attributes are <code>language</code> (set the output
  24422. language, default is "java"),
  24423. <code>destdir</code> (name of the destination directory for generated java/c++
  24424. code, default is ".") and <code>failonerror</code> (specifies error handling
  24425. behavior. default is true).
  24426. <p><h4>Usage</h4>
  24427. <pre>
  24428. &lt;recordcc
  24429. destdir="${basedir}/gensrc"
  24430. language="java"&gt;
  24431. &lt;fileset include="**\/*.jr" /&gt;
  24432. &lt;/recordcc&gt;
  24433. </pre>
  24434. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24435. </doc>
  24436. </class>
  24437. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  24438. </package>
  24439. <package name="org.apache.hadoop.record.compiler.generated">
  24440. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  24441. <class name="ParseException" extends="java.lang.Exception"
  24442. abstract="false"
  24443. static="false" final="false" visibility="public"
  24444. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24445. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  24446. static="false" final="false" visibility="public"
  24447. deprecated="not deprecated">
  24448. <doc>
  24449. <![CDATA[This constructor is used by the method "generateParseException"
  24450. in the generated parser. Calling this constructor generates
  24451. a new object of this type with the fields "currentToken",
  24452. "expectedTokenSequences", and "tokenImage" set. The boolean
  24453. flag "specialConstructor" is also set to true to indicate that
  24454. this constructor was used to create this object.
  24455. This constructor calls its super class with the empty string
  24456. to force the "toString" method of parent class "Throwable" to
  24457. print the error message in the form:
  24458. ParseException: <result of getMessage>]]>
  24459. </doc>
  24460. </constructor>
  24461. <constructor name="ParseException"
  24462. static="false" final="false" visibility="public"
  24463. deprecated="not deprecated">
  24464. <doc>
  24465. <![CDATA[The following constructors are for use by you for whatever
  24466. purpose you can think of. Constructing the exception in this
  24467. manner makes the exception behave in the normal way - i.e., as
  24468. documented in the class "Throwable". The fields "errorToken",
  24469. "expectedTokenSequences", and "tokenImage" do not contain
  24470. relevant information. The JavaCC generated code does not use
  24471. these constructors.]]>
  24472. </doc>
  24473. </constructor>
  24474. <constructor name="ParseException" type="java.lang.String"
  24475. static="false" final="false" visibility="public"
  24476. deprecated="not deprecated">
  24477. </constructor>
  24478. <method name="getMessage" return="java.lang.String"
  24479. abstract="false" native="false" synchronized="false"
  24480. static="false" final="false" visibility="public"
  24481. deprecated="not deprecated">
  24482. <doc>
  24483. <![CDATA[This method has the standard behavior when this object has been
  24484. created using the standard constructors. Otherwise, it uses
  24485. "currentToken" and "expectedTokenSequences" to generate a parse
  24486. error message and returns it. If this object has been created
  24487. due to a parse error, and you do not catch it (it gets thrown
  24488. from the parser), then this method is called during the printing
  24489. of the final stack trace, and hence the correct error message
  24490. gets displayed.]]>
  24491. </doc>
  24492. </method>
  24493. <method name="add_escapes" return="java.lang.String"
  24494. abstract="false" native="false" synchronized="false"
  24495. static="false" final="false" visibility="protected"
  24496. deprecated="not deprecated">
  24497. <param name="str" type="java.lang.String"/>
  24498. <doc>
  24499. <![CDATA[Used to convert raw characters to their escaped version
  24500. when these raw version cannot be used as part of an ASCII
  24501. string literal.]]>
  24502. </doc>
  24503. </method>
  24504. <field name="specialConstructor" type="boolean"
  24505. transient="false" volatile="false"
  24506. static="false" final="false" visibility="protected"
  24507. deprecated="not deprecated">
  24508. <doc>
  24509. <![CDATA[This variable determines which constructor was used to create
  24510. this object and thereby affects the semantics of the
  24511. "getMessage" method (see below).]]>
  24512. </doc>
  24513. </field>
  24514. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  24515. transient="false" volatile="false"
  24516. static="false" final="false" visibility="public"
  24517. deprecated="not deprecated">
  24518. <doc>
  24519. <![CDATA[This is the last token that has been consumed successfully. If
  24520. this object has been created due to a parse error, the token
  24521. followng this token will (therefore) be the first error token.]]>
  24522. </doc>
  24523. </field>
  24524. <field name="expectedTokenSequences" type="int[][]"
  24525. transient="false" volatile="false"
  24526. static="false" final="false" visibility="public"
  24527. deprecated="not deprecated">
  24528. <doc>
  24529. <![CDATA[Each entry in this array is an array of integers. Each array
  24530. of integers represents a sequence of tokens (by their ordinal
  24531. values) that is expected at this point of the parse.]]>
  24532. </doc>
  24533. </field>
  24534. <field name="tokenImage" type="java.lang.String[]"
  24535. transient="false" volatile="false"
  24536. static="false" final="false" visibility="public"
  24537. deprecated="not deprecated">
  24538. <doc>
  24539. <![CDATA[This is a reference to the "tokenImage" array of the generated
  24540. parser within which the parse error occurred. This array is
  24541. defined in the generated ...Constants interface.]]>
  24542. </doc>
  24543. </field>
  24544. <field name="eol" type="java.lang.String"
  24545. transient="false" volatile="false"
  24546. static="false" final="false" visibility="protected"
  24547. deprecated="not deprecated">
  24548. <doc>
  24549. <![CDATA[The end of line string for this machine.]]>
  24550. </doc>
  24551. </field>
  24552. <doc>
  24553. <![CDATA[This exception is thrown when parse errors are encountered.
  24554. You can explicitly create objects of this exception type by
  24555. calling the method generateParseException in the generated
  24556. parser.
  24557. You can modify this class to customize your error reporting
  24558. mechanisms so long as you retain the public fields.
  24559. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24560. </doc>
  24561. </class>
  24562. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  24563. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  24564. <class name="Rcc" extends="java.lang.Object"
  24565. abstract="false"
  24566. static="false" final="false" visibility="public"
  24567. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24568. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  24569. <constructor name="Rcc" type="java.io.InputStream"
  24570. static="false" final="false" visibility="public"
  24571. deprecated="not deprecated">
  24572. </constructor>
  24573. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  24574. static="false" final="false" visibility="public"
  24575. deprecated="not deprecated">
  24576. </constructor>
  24577. <constructor name="Rcc" type="java.io.Reader"
  24578. static="false" final="false" visibility="public"
  24579. deprecated="not deprecated">
  24580. </constructor>
  24581. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  24582. static="false" final="false" visibility="public"
  24583. deprecated="not deprecated">
  24584. </constructor>
  24585. <method name="main"
  24586. abstract="false" native="false" synchronized="false"
  24587. static="true" final="false" visibility="public"
  24588. deprecated="not deprecated">
  24589. <param name="args" type="java.lang.String[]"/>
  24590. </method>
  24591. <method name="usage"
  24592. abstract="false" native="false" synchronized="false"
  24593. static="true" final="false" visibility="public"
  24594. deprecated="not deprecated">
  24595. </method>
  24596. <method name="driver" return="int"
  24597. abstract="false" native="false" synchronized="false"
  24598. static="true" final="false" visibility="public"
  24599. deprecated="not deprecated">
  24600. <param name="args" type="java.lang.String[]"/>
  24601. </method>
  24602. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  24603. abstract="false" native="false" synchronized="false"
  24604. static="false" final="true" visibility="public"
  24605. deprecated="not deprecated">
  24606. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24607. </method>
  24608. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  24609. abstract="false" native="false" synchronized="false"
  24610. static="false" final="true" visibility="public"
  24611. deprecated="not deprecated">
  24612. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24613. </method>
  24614. <method name="Module" return="java.util.ArrayList"
  24615. abstract="false" native="false" synchronized="false"
  24616. static="false" final="true" visibility="public"
  24617. deprecated="not deprecated">
  24618. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24619. </method>
  24620. <method name="ModuleName" return="java.lang.String"
  24621. abstract="false" native="false" synchronized="false"
  24622. static="false" final="true" visibility="public"
  24623. deprecated="not deprecated">
  24624. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24625. </method>
  24626. <method name="RecordList" return="java.util.ArrayList"
  24627. abstract="false" native="false" synchronized="false"
  24628. static="false" final="true" visibility="public"
  24629. deprecated="not deprecated">
  24630. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24631. </method>
  24632. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  24633. abstract="false" native="false" synchronized="false"
  24634. static="false" final="true" visibility="public"
  24635. deprecated="not deprecated">
  24636. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24637. </method>
  24638. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  24639. abstract="false" native="false" synchronized="false"
  24640. static="false" final="true" visibility="public"
  24641. deprecated="not deprecated">
  24642. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24643. </method>
  24644. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  24645. abstract="false" native="false" synchronized="false"
  24646. static="false" final="true" visibility="public"
  24647. deprecated="not deprecated">
  24648. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24649. </method>
  24650. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  24651. abstract="false" native="false" synchronized="false"
  24652. static="false" final="true" visibility="public"
  24653. deprecated="not deprecated">
  24654. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24655. </method>
  24656. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  24657. abstract="false" native="false" synchronized="false"
  24658. static="false" final="true" visibility="public"
  24659. deprecated="not deprecated">
  24660. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  24661. </method>
  24662. <method name="ReInit"
  24663. abstract="false" native="false" synchronized="false"
  24664. static="false" final="false" visibility="public"
  24665. deprecated="not deprecated">
  24666. <param name="stream" type="java.io.InputStream"/>
  24667. </method>
  24668. <method name="ReInit"
  24669. abstract="false" native="false" synchronized="false"
  24670. static="false" final="false" visibility="public"
  24671. deprecated="not deprecated">
  24672. <param name="stream" type="java.io.InputStream"/>
  24673. <param name="encoding" type="java.lang.String"/>
  24674. </method>
  24675. <method name="ReInit"
  24676. abstract="false" native="false" synchronized="false"
  24677. static="false" final="false" visibility="public"
  24678. deprecated="not deprecated">
  24679. <param name="stream" type="java.io.Reader"/>
  24680. </method>
  24681. <method name="ReInit"
  24682. abstract="false" native="false" synchronized="false"
  24683. static="false" final="false" visibility="public"
  24684. deprecated="not deprecated">
  24685. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  24686. </method>
  24687. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24688. abstract="false" native="false" synchronized="false"
  24689. static="false" final="true" visibility="public"
  24690. deprecated="not deprecated">
  24691. </method>
  24692. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24693. abstract="false" native="false" synchronized="false"
  24694. static="false" final="true" visibility="public"
  24695. deprecated="not deprecated">
  24696. <param name="index" type="int"/>
  24697. </method>
  24698. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  24699. abstract="false" native="false" synchronized="false"
  24700. static="false" final="false" visibility="public"
  24701. deprecated="not deprecated">
  24702. </method>
  24703. <method name="enable_tracing"
  24704. abstract="false" native="false" synchronized="false"
  24705. static="false" final="true" visibility="public"
  24706. deprecated="not deprecated">
  24707. </method>
  24708. <method name="disable_tracing"
  24709. abstract="false" native="false" synchronized="false"
  24710. static="false" final="true" visibility="public"
  24711. deprecated="not deprecated">
  24712. </method>
  24713. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  24714. transient="false" volatile="false"
  24715. static="false" final="false" visibility="public"
  24716. deprecated="not deprecated">
  24717. </field>
  24718. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  24719. transient="false" volatile="false"
  24720. static="false" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. </field>
  24723. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  24724. transient="false" volatile="false"
  24725. static="false" final="false" visibility="public"
  24726. deprecated="not deprecated">
  24727. </field>
  24728. <doc>
  24729. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24730. </doc>
  24731. </class>
  24732. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  24733. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  24734. <interface name="RccConstants" abstract="true"
  24735. static="false" final="false" visibility="public"
  24736. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24737. <field name="EOF" type="int"
  24738. transient="false" volatile="false"
  24739. static="true" final="true" visibility="public"
  24740. deprecated="not deprecated">
  24741. </field>
  24742. <field name="MODULE_TKN" type="int"
  24743. transient="false" volatile="false"
  24744. static="true" final="true" visibility="public"
  24745. deprecated="not deprecated">
  24746. </field>
  24747. <field name="RECORD_TKN" type="int"
  24748. transient="false" volatile="false"
  24749. static="true" final="true" visibility="public"
  24750. deprecated="not deprecated">
  24751. </field>
  24752. <field name="INCLUDE_TKN" type="int"
  24753. transient="false" volatile="false"
  24754. static="true" final="true" visibility="public"
  24755. deprecated="not deprecated">
  24756. </field>
  24757. <field name="BYTE_TKN" type="int"
  24758. transient="false" volatile="false"
  24759. static="true" final="true" visibility="public"
  24760. deprecated="not deprecated">
  24761. </field>
  24762. <field name="BOOLEAN_TKN" type="int"
  24763. transient="false" volatile="false"
  24764. static="true" final="true" visibility="public"
  24765. deprecated="not deprecated">
  24766. </field>
  24767. <field name="INT_TKN" type="int"
  24768. transient="false" volatile="false"
  24769. static="true" final="true" visibility="public"
  24770. deprecated="not deprecated">
  24771. </field>
  24772. <field name="LONG_TKN" type="int"
  24773. transient="false" volatile="false"
  24774. static="true" final="true" visibility="public"
  24775. deprecated="not deprecated">
  24776. </field>
  24777. <field name="FLOAT_TKN" type="int"
  24778. transient="false" volatile="false"
  24779. static="true" final="true" visibility="public"
  24780. deprecated="not deprecated">
  24781. </field>
  24782. <field name="DOUBLE_TKN" type="int"
  24783. transient="false" volatile="false"
  24784. static="true" final="true" visibility="public"
  24785. deprecated="not deprecated">
  24786. </field>
  24787. <field name="USTRING_TKN" type="int"
  24788. transient="false" volatile="false"
  24789. static="true" final="true" visibility="public"
  24790. deprecated="not deprecated">
  24791. </field>
  24792. <field name="BUFFER_TKN" type="int"
  24793. transient="false" volatile="false"
  24794. static="true" final="true" visibility="public"
  24795. deprecated="not deprecated">
  24796. </field>
  24797. <field name="VECTOR_TKN" type="int"
  24798. transient="false" volatile="false"
  24799. static="true" final="true" visibility="public"
  24800. deprecated="not deprecated">
  24801. </field>
  24802. <field name="MAP_TKN" type="int"
  24803. transient="false" volatile="false"
  24804. static="true" final="true" visibility="public"
  24805. deprecated="not deprecated">
  24806. </field>
  24807. <field name="LBRACE_TKN" type="int"
  24808. transient="false" volatile="false"
  24809. static="true" final="true" visibility="public"
  24810. deprecated="not deprecated">
  24811. </field>
  24812. <field name="RBRACE_TKN" type="int"
  24813. transient="false" volatile="false"
  24814. static="true" final="true" visibility="public"
  24815. deprecated="not deprecated">
  24816. </field>
  24817. <field name="LT_TKN" type="int"
  24818. transient="false" volatile="false"
  24819. static="true" final="true" visibility="public"
  24820. deprecated="not deprecated">
  24821. </field>
  24822. <field name="GT_TKN" type="int"
  24823. transient="false" volatile="false"
  24824. static="true" final="true" visibility="public"
  24825. deprecated="not deprecated">
  24826. </field>
  24827. <field name="SEMICOLON_TKN" type="int"
  24828. transient="false" volatile="false"
  24829. static="true" final="true" visibility="public"
  24830. deprecated="not deprecated">
  24831. </field>
  24832. <field name="COMMA_TKN" type="int"
  24833. transient="false" volatile="false"
  24834. static="true" final="true" visibility="public"
  24835. deprecated="not deprecated">
  24836. </field>
  24837. <field name="DOT_TKN" type="int"
  24838. transient="false" volatile="false"
  24839. static="true" final="true" visibility="public"
  24840. deprecated="not deprecated">
  24841. </field>
  24842. <field name="CSTRING_TKN" type="int"
  24843. transient="false" volatile="false"
  24844. static="true" final="true" visibility="public"
  24845. deprecated="not deprecated">
  24846. </field>
  24847. <field name="IDENT_TKN" type="int"
  24848. transient="false" volatile="false"
  24849. static="true" final="true" visibility="public"
  24850. deprecated="not deprecated">
  24851. </field>
  24852. <field name="DEFAULT" type="int"
  24853. transient="false" volatile="false"
  24854. static="true" final="true" visibility="public"
  24855. deprecated="not deprecated">
  24856. </field>
  24857. <field name="WithinOneLineComment" type="int"
  24858. transient="false" volatile="false"
  24859. static="true" final="true" visibility="public"
  24860. deprecated="not deprecated">
  24861. </field>
  24862. <field name="WithinMultiLineComment" type="int"
  24863. transient="false" volatile="false"
  24864. static="true" final="true" visibility="public"
  24865. deprecated="not deprecated">
  24866. </field>
  24867. <field name="tokenImage" type="java.lang.String[]"
  24868. transient="false" volatile="false"
  24869. static="true" final="true" visibility="public"
  24870. deprecated="not deprecated">
  24871. </field>
  24872. <doc>
  24873. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24874. </doc>
  24875. </interface>
  24876. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  24877. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  24878. <class name="RccTokenManager" extends="java.lang.Object"
  24879. abstract="false"
  24880. static="false" final="false" visibility="public"
  24881. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24882. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  24883. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  24884. static="false" final="false" visibility="public"
  24885. deprecated="not deprecated">
  24886. </constructor>
  24887. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  24888. static="false" final="false" visibility="public"
  24889. deprecated="not deprecated">
  24890. </constructor>
  24891. <method name="setDebugStream"
  24892. abstract="false" native="false" synchronized="false"
  24893. static="false" final="false" visibility="public"
  24894. deprecated="not deprecated">
  24895. <param name="ds" type="java.io.PrintStream"/>
  24896. </method>
  24897. <method name="ReInit"
  24898. abstract="false" native="false" synchronized="false"
  24899. static="false" final="false" visibility="public"
  24900. deprecated="not deprecated">
  24901. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  24902. </method>
  24903. <method name="ReInit"
  24904. abstract="false" native="false" synchronized="false"
  24905. static="false" final="false" visibility="public"
  24906. deprecated="not deprecated">
  24907. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  24908. <param name="lexState" type="int"/>
  24909. </method>
  24910. <method name="SwitchTo"
  24911. abstract="false" native="false" synchronized="false"
  24912. static="false" final="false" visibility="public"
  24913. deprecated="not deprecated">
  24914. <param name="lexState" type="int"/>
  24915. </method>
  24916. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24917. abstract="false" native="false" synchronized="false"
  24918. static="false" final="false" visibility="protected"
  24919. deprecated="not deprecated">
  24920. </method>
  24921. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  24922. abstract="false" native="false" synchronized="false"
  24923. static="false" final="false" visibility="public"
  24924. deprecated="not deprecated">
  24925. </method>
  24926. <field name="debugStream" type="java.io.PrintStream"
  24927. transient="false" volatile="false"
  24928. static="false" final="false" visibility="public"
  24929. deprecated="not deprecated">
  24930. </field>
  24931. <field name="jjstrLiteralImages" type="java.lang.String[]"
  24932. transient="false" volatile="false"
  24933. static="true" final="true" visibility="public"
  24934. deprecated="not deprecated">
  24935. </field>
  24936. <field name="lexStateNames" type="java.lang.String[]"
  24937. transient="false" volatile="false"
  24938. static="true" final="true" visibility="public"
  24939. deprecated="not deprecated">
  24940. </field>
  24941. <field name="jjnewLexState" type="int[]"
  24942. transient="false" volatile="false"
  24943. static="true" final="true" visibility="public"
  24944. deprecated="not deprecated">
  24945. </field>
  24946. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  24947. transient="false" volatile="false"
  24948. static="false" final="false" visibility="protected"
  24949. deprecated="not deprecated">
  24950. </field>
  24951. <field name="curChar" type="char"
  24952. transient="false" volatile="false"
  24953. static="false" final="false" visibility="protected"
  24954. deprecated="not deprecated">
  24955. </field>
  24956. <doc>
  24957. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24958. </doc>
  24959. </class>
  24960. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  24961. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  24962. <class name="SimpleCharStream" extends="java.lang.Object"
  24963. abstract="false"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24966. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  24967. static="false" final="false" visibility="public"
  24968. deprecated="not deprecated">
  24969. </constructor>
  24970. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  24971. static="false" final="false" visibility="public"
  24972. deprecated="not deprecated">
  24973. </constructor>
  24974. <constructor name="SimpleCharStream" type="java.io.Reader"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="not deprecated">
  24977. </constructor>
  24978. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  24979. static="false" final="false" visibility="public"
  24980. deprecated="not deprecated">
  24981. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  24982. </constructor>
  24983. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  24984. static="false" final="false" visibility="public"
  24985. deprecated="not deprecated">
  24986. </constructor>
  24987. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  24988. static="false" final="false" visibility="public"
  24989. deprecated="not deprecated">
  24990. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  24991. </constructor>
  24992. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  24993. static="false" final="false" visibility="public"
  24994. deprecated="not deprecated">
  24995. </constructor>
  24996. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  24997. static="false" final="false" visibility="public"
  24998. deprecated="not deprecated">
  24999. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25000. </constructor>
  25001. <constructor name="SimpleCharStream" type="java.io.InputStream"
  25002. static="false" final="false" visibility="public"
  25003. deprecated="not deprecated">
  25004. </constructor>
  25005. <method name="setTabSize"
  25006. abstract="false" native="false" synchronized="false"
  25007. static="false" final="false" visibility="protected"
  25008. deprecated="not deprecated">
  25009. <param name="i" type="int"/>
  25010. </method>
  25011. <method name="getTabSize" return="int"
  25012. abstract="false" native="false" synchronized="false"
  25013. static="false" final="false" visibility="protected"
  25014. deprecated="not deprecated">
  25015. <param name="i" type="int"/>
  25016. </method>
  25017. <method name="ExpandBuff"
  25018. abstract="false" native="false" synchronized="false"
  25019. static="false" final="false" visibility="protected"
  25020. deprecated="not deprecated">
  25021. <param name="wrapAround" type="boolean"/>
  25022. </method>
  25023. <method name="FillBuff"
  25024. abstract="false" native="false" synchronized="false"
  25025. static="false" final="false" visibility="protected"
  25026. deprecated="not deprecated">
  25027. <exception name="IOException" type="java.io.IOException"/>
  25028. </method>
  25029. <method name="BeginToken" return="char"
  25030. abstract="false" native="false" synchronized="false"
  25031. static="false" final="false" visibility="public"
  25032. deprecated="not deprecated">
  25033. <exception name="IOException" type="java.io.IOException"/>
  25034. </method>
  25035. <method name="UpdateLineColumn"
  25036. abstract="false" native="false" synchronized="false"
  25037. static="false" final="false" visibility="protected"
  25038. deprecated="not deprecated">
  25039. <param name="c" type="char"/>
  25040. </method>
  25041. <method name="readChar" return="char"
  25042. abstract="false" native="false" synchronized="false"
  25043. static="false" final="false" visibility="public"
  25044. deprecated="not deprecated">
  25045. <exception name="IOException" type="java.io.IOException"/>
  25046. </method>
  25047. <method name="getEndColumn" return="int"
  25048. abstract="false" native="false" synchronized="false"
  25049. static="false" final="false" visibility="public"
  25050. deprecated="not deprecated">
  25051. </method>
  25052. <method name="getEndLine" return="int"
  25053. abstract="false" native="false" synchronized="false"
  25054. static="false" final="false" visibility="public"
  25055. deprecated="not deprecated">
  25056. </method>
  25057. <method name="getBeginColumn" return="int"
  25058. abstract="false" native="false" synchronized="false"
  25059. static="false" final="false" visibility="public"
  25060. deprecated="not deprecated">
  25061. </method>
  25062. <method name="getBeginLine" return="int"
  25063. abstract="false" native="false" synchronized="false"
  25064. static="false" final="false" visibility="public"
  25065. deprecated="not deprecated">
  25066. </method>
  25067. <method name="backup"
  25068. abstract="false" native="false" synchronized="false"
  25069. static="false" final="false" visibility="public"
  25070. deprecated="not deprecated">
  25071. <param name="amount" type="int"/>
  25072. </method>
  25073. <method name="ReInit"
  25074. abstract="false" native="false" synchronized="false"
  25075. static="false" final="false" visibility="public"
  25076. deprecated="not deprecated">
  25077. <param name="dstream" type="java.io.Reader"/>
  25078. <param name="startline" type="int"/>
  25079. <param name="startcolumn" type="int"/>
  25080. <param name="buffersize" type="int"/>
  25081. </method>
  25082. <method name="ReInit"
  25083. abstract="false" native="false" synchronized="false"
  25084. static="false" final="false" visibility="public"
  25085. deprecated="not deprecated">
  25086. <param name="dstream" type="java.io.Reader"/>
  25087. <param name="startline" type="int"/>
  25088. <param name="startcolumn" type="int"/>
  25089. </method>
  25090. <method name="ReInit"
  25091. abstract="false" native="false" synchronized="false"
  25092. static="false" final="false" visibility="public"
  25093. deprecated="not deprecated">
  25094. <param name="dstream" type="java.io.Reader"/>
  25095. </method>
  25096. <method name="ReInit"
  25097. abstract="false" native="false" synchronized="false"
  25098. static="false" final="false" visibility="public"
  25099. deprecated="not deprecated">
  25100. <param name="dstream" type="java.io.InputStream"/>
  25101. <param name="encoding" type="java.lang.String"/>
  25102. <param name="startline" type="int"/>
  25103. <param name="startcolumn" type="int"/>
  25104. <param name="buffersize" type="int"/>
  25105. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25106. </method>
  25107. <method name="ReInit"
  25108. abstract="false" native="false" synchronized="false"
  25109. static="false" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <param name="dstream" type="java.io.InputStream"/>
  25112. <param name="startline" type="int"/>
  25113. <param name="startcolumn" type="int"/>
  25114. <param name="buffersize" type="int"/>
  25115. </method>
  25116. <method name="ReInit"
  25117. abstract="false" native="false" synchronized="false"
  25118. static="false" final="false" visibility="public"
  25119. deprecated="not deprecated">
  25120. <param name="dstream" type="java.io.InputStream"/>
  25121. <param name="encoding" type="java.lang.String"/>
  25122. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25123. </method>
  25124. <method name="ReInit"
  25125. abstract="false" native="false" synchronized="false"
  25126. static="false" final="false" visibility="public"
  25127. deprecated="not deprecated">
  25128. <param name="dstream" type="java.io.InputStream"/>
  25129. </method>
  25130. <method name="ReInit"
  25131. abstract="false" native="false" synchronized="false"
  25132. static="false" final="false" visibility="public"
  25133. deprecated="not deprecated">
  25134. <param name="dstream" type="java.io.InputStream"/>
  25135. <param name="encoding" type="java.lang.String"/>
  25136. <param name="startline" type="int"/>
  25137. <param name="startcolumn" type="int"/>
  25138. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25139. </method>
  25140. <method name="ReInit"
  25141. abstract="false" native="false" synchronized="false"
  25142. static="false" final="false" visibility="public"
  25143. deprecated="not deprecated">
  25144. <param name="dstream" type="java.io.InputStream"/>
  25145. <param name="startline" type="int"/>
  25146. <param name="startcolumn" type="int"/>
  25147. </method>
  25148. <method name="GetImage" return="java.lang.String"
  25149. abstract="false" native="false" synchronized="false"
  25150. static="false" final="false" visibility="public"
  25151. deprecated="not deprecated">
  25152. </method>
  25153. <method name="GetSuffix" return="char[]"
  25154. abstract="false" native="false" synchronized="false"
  25155. static="false" final="false" visibility="public"
  25156. deprecated="not deprecated">
  25157. <param name="len" type="int"/>
  25158. </method>
  25159. <method name="Done"
  25160. abstract="false" native="false" synchronized="false"
  25161. static="false" final="false" visibility="public"
  25162. deprecated="not deprecated">
  25163. </method>
  25164. <method name="adjustBeginLineColumn"
  25165. abstract="false" native="false" synchronized="false"
  25166. static="false" final="false" visibility="public"
  25167. deprecated="not deprecated">
  25168. <param name="newLine" type="int"/>
  25169. <param name="newCol" type="int"/>
  25170. <doc>
  25171. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  25172. </doc>
  25173. </method>
  25174. <field name="staticFlag" type="boolean"
  25175. transient="false" volatile="false"
  25176. static="true" final="true" visibility="public"
  25177. deprecated="not deprecated">
  25178. </field>
  25179. <field name="bufpos" type="int"
  25180. transient="false" volatile="false"
  25181. static="false" final="false" visibility="public"
  25182. deprecated="not deprecated">
  25183. </field>
  25184. <field name="bufline" type="int[]"
  25185. transient="false" volatile="false"
  25186. static="false" final="false" visibility="protected"
  25187. deprecated="not deprecated">
  25188. </field>
  25189. <field name="bufcolumn" type="int[]"
  25190. transient="false" volatile="false"
  25191. static="false" final="false" visibility="protected"
  25192. deprecated="not deprecated">
  25193. </field>
  25194. <field name="column" type="int"
  25195. transient="false" volatile="false"
  25196. static="false" final="false" visibility="protected"
  25197. deprecated="not deprecated">
  25198. </field>
  25199. <field name="line" type="int"
  25200. transient="false" volatile="false"
  25201. static="false" final="false" visibility="protected"
  25202. deprecated="not deprecated">
  25203. </field>
  25204. <field name="prevCharIsCR" type="boolean"
  25205. transient="false" volatile="false"
  25206. static="false" final="false" visibility="protected"
  25207. deprecated="not deprecated">
  25208. </field>
  25209. <field name="prevCharIsLF" type="boolean"
  25210. transient="false" volatile="false"
  25211. static="false" final="false" visibility="protected"
  25212. deprecated="not deprecated">
  25213. </field>
  25214. <field name="inputStream" type="java.io.Reader"
  25215. transient="false" volatile="false"
  25216. static="false" final="false" visibility="protected"
  25217. deprecated="not deprecated">
  25218. </field>
  25219. <field name="buffer" type="char[]"
  25220. transient="false" volatile="false"
  25221. static="false" final="false" visibility="protected"
  25222. deprecated="not deprecated">
  25223. </field>
  25224. <field name="maxNextCharInd" type="int"
  25225. transient="false" volatile="false"
  25226. static="false" final="false" visibility="protected"
  25227. deprecated="not deprecated">
  25228. </field>
  25229. <field name="inBuf" type="int"
  25230. transient="false" volatile="false"
  25231. static="false" final="false" visibility="protected"
  25232. deprecated="not deprecated">
  25233. </field>
  25234. <field name="tabSize" type="int"
  25235. transient="false" volatile="false"
  25236. static="false" final="false" visibility="protected"
  25237. deprecated="not deprecated">
  25238. </field>
  25239. <doc>
  25240. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  25241. contain only ASCII characters (without unicode processing).
  25242. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25243. </doc>
  25244. </class>
  25245. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  25246. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  25247. <class name="Token" extends="java.lang.Object"
  25248. abstract="false"
  25249. static="false" final="false" visibility="public"
  25250. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25251. <constructor name="Token"
  25252. static="false" final="false" visibility="public"
  25253. deprecated="not deprecated">
  25254. </constructor>
  25255. <method name="toString" return="java.lang.String"
  25256. abstract="false" native="false" synchronized="false"
  25257. static="false" final="false" visibility="public"
  25258. deprecated="not deprecated">
  25259. <doc>
  25260. <![CDATA[Returns the image.]]>
  25261. </doc>
  25262. </method>
  25263. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  25264. abstract="false" native="false" synchronized="false"
  25265. static="true" final="true" visibility="public"
  25266. deprecated="not deprecated">
  25267. <param name="ofKind" type="int"/>
  25268. <doc>
  25269. <![CDATA[Returns a new Token object, by default. However, if you want, you
  25270. can create and return subclass objects based on the value of ofKind.
  25271. Simply add the cases to the switch for all those special cases.
  25272. For example, if you have a subclass of Token called IDToken that
  25273. you want to create if ofKind is ID, simlpy add something like :
  25274. case MyParserConstants.ID : return new IDToken();
  25275. to the following switch statement. Then you can cast matchedToken
  25276. variable to the appropriate type and use it in your lexical actions.]]>
  25277. </doc>
  25278. </method>
  25279. <field name="kind" type="int"
  25280. transient="false" volatile="false"
  25281. static="false" final="false" visibility="public"
  25282. deprecated="not deprecated">
  25283. <doc>
  25284. <![CDATA[An integer that describes the kind of this token. This numbering
  25285. system is determined by JavaCCParser, and a table of these numbers is
  25286. stored in the file ...Constants.java.]]>
  25287. </doc>
  25288. </field>
  25289. <field name="beginLine" type="int"
  25290. transient="false" volatile="false"
  25291. static="false" final="false" visibility="public"
  25292. deprecated="not deprecated">
  25293. <doc>
  25294. <![CDATA[beginLine and beginColumn describe the position of the first character
  25295. of this token; endLine and endColumn describe the position of the
  25296. last character of this token.]]>
  25297. </doc>
  25298. </field>
  25299. <field name="beginColumn" type="int"
  25300. transient="false" volatile="false"
  25301. static="false" final="false" visibility="public"
  25302. deprecated="not deprecated">
  25303. <doc>
  25304. <![CDATA[beginLine and beginColumn describe the position of the first character
  25305. of this token; endLine and endColumn describe the position of the
  25306. last character of this token.]]>
  25307. </doc>
  25308. </field>
  25309. <field name="endLine" type="int"
  25310. transient="false" volatile="false"
  25311. static="false" final="false" visibility="public"
  25312. deprecated="not deprecated">
  25313. <doc>
  25314. <![CDATA[beginLine and beginColumn describe the position of the first character
  25315. of this token; endLine and endColumn describe the position of the
  25316. last character of this token.]]>
  25317. </doc>
  25318. </field>
  25319. <field name="endColumn" type="int"
  25320. transient="false" volatile="false"
  25321. static="false" final="false" visibility="public"
  25322. deprecated="not deprecated">
  25323. <doc>
  25324. <![CDATA[beginLine and beginColumn describe the position of the first character
  25325. of this token; endLine and endColumn describe the position of the
  25326. last character of this token.]]>
  25327. </doc>
  25328. </field>
  25329. <field name="image" type="java.lang.String"
  25330. transient="false" volatile="false"
  25331. static="false" final="false" visibility="public"
  25332. deprecated="not deprecated">
  25333. <doc>
  25334. <![CDATA[The string image of the token.]]>
  25335. </doc>
  25336. </field>
  25337. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  25338. transient="false" volatile="false"
  25339. static="false" final="false" visibility="public"
  25340. deprecated="not deprecated">
  25341. <doc>
  25342. <![CDATA[A reference to the next regular (non-special) token from the input
  25343. stream. If this is the last token from the input stream, or if the
  25344. token manager has not read tokens beyond this one, this field is
  25345. set to null. This is true only if this token is also a regular
  25346. token. Otherwise, see below for a description of the contents of
  25347. this field.]]>
  25348. </doc>
  25349. </field>
  25350. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  25351. transient="false" volatile="false"
  25352. static="false" final="false" visibility="public"
  25353. deprecated="not deprecated">
  25354. <doc>
  25355. <![CDATA[This field is used to access special tokens that occur prior to this
  25356. token, but after the immediately preceding regular (non-special) token.
  25357. If there are no such special tokens, this field is set to null.
  25358. When there are more than one such special token, this field refers
  25359. to the last of these special tokens, which in turn refers to the next
  25360. previous special token through its specialToken field, and so on
  25361. until the first special token (whose specialToken field is null).
  25362. The next fields of special tokens refer to other special tokens that
  25363. immediately follow it (without an intervening regular token). If there
  25364. is no such token, this field is null.]]>
  25365. </doc>
  25366. </field>
  25367. <doc>
  25368. <![CDATA[Describes the input token stream.
  25369. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25370. </doc>
  25371. </class>
  25372. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  25373. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  25374. <class name="TokenMgrError" extends="java.lang.Error"
  25375. abstract="false"
  25376. static="false" final="false" visibility="public"
  25377. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25378. <constructor name="TokenMgrError"
  25379. static="false" final="false" visibility="public"
  25380. deprecated="not deprecated">
  25381. </constructor>
  25382. <constructor name="TokenMgrError" type="java.lang.String, int"
  25383. static="false" final="false" visibility="public"
  25384. deprecated="not deprecated">
  25385. </constructor>
  25386. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  25387. static="false" final="false" visibility="public"
  25388. deprecated="not deprecated">
  25389. </constructor>
  25390. <method name="addEscapes" return="java.lang.String"
  25391. abstract="false" native="false" synchronized="false"
  25392. static="true" final="true" visibility="protected"
  25393. deprecated="not deprecated">
  25394. <param name="str" type="java.lang.String"/>
  25395. <doc>
  25396. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  25397. equivalents in the given string]]>
  25398. </doc>
  25399. </method>
  25400. <method name="LexicalError" return="java.lang.String"
  25401. abstract="false" native="false" synchronized="false"
  25402. static="true" final="false" visibility="protected"
  25403. deprecated="not deprecated">
  25404. <param name="EOFSeen" type="boolean"/>
  25405. <param name="lexState" type="int"/>
  25406. <param name="errorLine" type="int"/>
  25407. <param name="errorColumn" type="int"/>
  25408. <param name="errorAfter" type="java.lang.String"/>
  25409. <param name="curChar" type="char"/>
  25410. <doc>
  25411. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  25412. token manager to indicate a lexical error.
  25413. Parameters :
  25414. EOFSeen : indicates if EOF caused the lexicl error
  25415. curLexState : lexical state in which this error occured
  25416. errorLine : line number when the error occured
  25417. errorColumn : column number when the error occured
  25418. errorAfter : prefix that was seen before this error occured
  25419. curchar : the offending character
  25420. Note: You can customize the lexical error message by modifying this method.]]>
  25421. </doc>
  25422. </method>
  25423. <method name="getMessage" return="java.lang.String"
  25424. abstract="false" native="false" synchronized="false"
  25425. static="false" final="false" visibility="public"
  25426. deprecated="not deprecated">
  25427. <doc>
  25428. <![CDATA[You can also modify the body of this method to customize your error messages.
  25429. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  25430. of end-users concern, so you can return something like :
  25431. "Internal Error : Please file a bug report .... "
  25432. from this method for such cases in the release version of your parser.]]>
  25433. </doc>
  25434. </method>
  25435. <doc>
  25436. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25437. </doc>
  25438. </class>
  25439. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  25440. <doc>
  25441. <![CDATA[<p>
  25442. (DEPRECATED) This package contains code generated by JavaCC from the
  25443. Hadoop record syntax file rcc.jj. For details about the
  25444. record file syntax please @see org.apache.hadoop.record.
  25445. </p>
  25446. <p>
  25447. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  25448. </p>]]>
  25449. </doc>
  25450. </package>
  25451. <package name="org.apache.hadoop.record.meta">
  25452. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  25453. <class name="FieldTypeInfo" extends="java.lang.Object"
  25454. abstract="false"
  25455. static="false" final="false" visibility="public"
  25456. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25457. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25458. abstract="false" native="false" synchronized="false"
  25459. static="false" final="false" visibility="public"
  25460. deprecated="not deprecated">
  25461. <doc>
  25462. <![CDATA[get the field's TypeID object]]>
  25463. </doc>
  25464. </method>
  25465. <method name="getFieldID" return="java.lang.String"
  25466. abstract="false" native="false" synchronized="false"
  25467. static="false" final="false" visibility="public"
  25468. deprecated="not deprecated">
  25469. <doc>
  25470. <![CDATA[get the field's id (name)]]>
  25471. </doc>
  25472. </method>
  25473. <method name="equals" return="boolean"
  25474. abstract="false" native="false" synchronized="false"
  25475. static="false" final="false" visibility="public"
  25476. deprecated="not deprecated">
  25477. <param name="o" type="java.lang.Object"/>
  25478. <doc>
  25479. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  25480. </doc>
  25481. </method>
  25482. <method name="hashCode" return="int"
  25483. abstract="false" native="false" synchronized="false"
  25484. static="false" final="false" visibility="public"
  25485. deprecated="not deprecated">
  25486. <doc>
  25487. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25488. be used as a hashmap key]]>
  25489. </doc>
  25490. </method>
  25491. <method name="equals" return="boolean"
  25492. abstract="false" native="false" synchronized="false"
  25493. static="false" final="false" visibility="public"
  25494. deprecated="not deprecated">
  25495. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  25496. </method>
  25497. <doc>
  25498. <![CDATA[Represents a type information for a field, which is made up of its
  25499. ID (name) and its type (a TypeID object).
  25500. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25501. </doc>
  25502. </class>
  25503. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  25504. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  25505. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  25506. abstract="false"
  25507. static="false" final="false" visibility="public"
  25508. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25509. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  25510. static="false" final="false" visibility="public"
  25511. deprecated="not deprecated">
  25512. </constructor>
  25513. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25514. abstract="false" native="false" synchronized="false"
  25515. static="false" final="false" visibility="public"
  25516. deprecated="not deprecated">
  25517. <doc>
  25518. <![CDATA[get the TypeID of the map's key element]]>
  25519. </doc>
  25520. </method>
  25521. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25522. abstract="false" native="false" synchronized="false"
  25523. static="false" final="false" visibility="public"
  25524. deprecated="not deprecated">
  25525. <doc>
  25526. <![CDATA[get the TypeID of the map's value element]]>
  25527. </doc>
  25528. </method>
  25529. <method name="equals" return="boolean"
  25530. abstract="false" native="false" synchronized="false"
  25531. static="false" final="false" visibility="public"
  25532. deprecated="not deprecated">
  25533. <param name="o" type="java.lang.Object"/>
  25534. <doc>
  25535. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  25536. same type]]>
  25537. </doc>
  25538. </method>
  25539. <method name="hashCode" return="int"
  25540. abstract="false" native="false" synchronized="false"
  25541. static="false" final="false" visibility="public"
  25542. deprecated="not deprecated">
  25543. <doc>
  25544. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25545. be used as a hashmap key]]>
  25546. </doc>
  25547. </method>
  25548. <doc>
  25549. <![CDATA[Represents typeID for a Map
  25550. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25551. </doc>
  25552. </class>
  25553. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  25554. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  25555. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  25556. abstract="false"
  25557. static="false" final="false" visibility="public"
  25558. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25559. <constructor name="RecordTypeInfo"
  25560. static="false" final="false" visibility="public"
  25561. deprecated="not deprecated">
  25562. <doc>
  25563. <![CDATA[Create an empty RecordTypeInfo object.]]>
  25564. </doc>
  25565. </constructor>
  25566. <constructor name="RecordTypeInfo" type="java.lang.String"
  25567. static="false" final="false" visibility="public"
  25568. deprecated="not deprecated">
  25569. <doc>
  25570. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  25571. @param name Name of the record]]>
  25572. </doc>
  25573. </constructor>
  25574. <method name="getName" return="java.lang.String"
  25575. abstract="false" native="false" synchronized="false"
  25576. static="false" final="false" visibility="public"
  25577. deprecated="not deprecated">
  25578. <doc>
  25579. <![CDATA[return the name of the record]]>
  25580. </doc>
  25581. </method>
  25582. <method name="setName"
  25583. abstract="false" native="false" synchronized="false"
  25584. static="false" final="false" visibility="public"
  25585. deprecated="not deprecated">
  25586. <param name="name" type="java.lang.String"/>
  25587. <doc>
  25588. <![CDATA[set the name of the record]]>
  25589. </doc>
  25590. </method>
  25591. <method name="addField"
  25592. abstract="false" native="false" synchronized="false"
  25593. static="false" final="false" visibility="public"
  25594. deprecated="not deprecated">
  25595. <param name="fieldName" type="java.lang.String"/>
  25596. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  25597. <doc>
  25598. <![CDATA[Add a field.
  25599. @param fieldName Name of the field
  25600. @param tid Type ID of the field]]>
  25601. </doc>
  25602. </method>
  25603. <method name="getFieldTypeInfos" return="java.util.Collection"
  25604. abstract="false" native="false" synchronized="false"
  25605. static="false" final="false" visibility="public"
  25606. deprecated="not deprecated">
  25607. <doc>
  25608. <![CDATA[Return a collection of field type infos]]>
  25609. </doc>
  25610. </method>
  25611. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  25612. abstract="false" native="false" synchronized="false"
  25613. static="false" final="false" visibility="public"
  25614. deprecated="not deprecated">
  25615. <param name="name" type="java.lang.String"/>
  25616. <doc>
  25617. <![CDATA[Return the type info of a nested record. We only consider nesting
  25618. to one level.
  25619. @param name Name of the nested record]]>
  25620. </doc>
  25621. </method>
  25622. <method name="serialize"
  25623. abstract="false" native="false" synchronized="false"
  25624. static="false" final="false" visibility="public"
  25625. deprecated="not deprecated">
  25626. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  25627. <param name="tag" type="java.lang.String"/>
  25628. <exception name="IOException" type="java.io.IOException"/>
  25629. <doc>
  25630. <![CDATA[Serialize the type information for a record]]>
  25631. </doc>
  25632. </method>
  25633. <method name="deserialize"
  25634. abstract="false" native="false" synchronized="false"
  25635. static="false" final="false" visibility="public"
  25636. deprecated="not deprecated">
  25637. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  25638. <param name="tag" type="java.lang.String"/>
  25639. <exception name="IOException" type="java.io.IOException"/>
  25640. <doc>
  25641. <![CDATA[Deserialize the type information for a record]]>
  25642. </doc>
  25643. </method>
  25644. <method name="compareTo" return="int"
  25645. abstract="false" native="false" synchronized="false"
  25646. static="false" final="false" visibility="public"
  25647. deprecated="not deprecated">
  25648. <param name="peer_" type="java.lang.Object"/>
  25649. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  25650. <doc>
  25651. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  25652. for anything besides de/serializing.
  25653. So we always throw an exception.
  25654. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  25655. </doc>
  25656. </method>
  25657. <doc>
  25658. <![CDATA[A record's Type Information object which can read/write itself.
  25659. Type information for a record comprises metadata about the record,
  25660. as well as a collection of type information for each field in the record.
  25661. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25662. </doc>
  25663. </class>
  25664. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  25665. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  25666. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  25667. abstract="false"
  25668. static="false" final="false" visibility="public"
  25669. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25670. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  25671. static="false" final="false" visibility="public"
  25672. deprecated="not deprecated">
  25673. <doc>
  25674. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  25675. </doc>
  25676. </constructor>
  25677. <method name="getFieldTypeInfos" return="java.util.Collection"
  25678. abstract="false" native="false" synchronized="false"
  25679. static="false" final="false" visibility="public"
  25680. deprecated="not deprecated">
  25681. </method>
  25682. <method name="equals" return="boolean"
  25683. abstract="false" native="false" synchronized="false"
  25684. static="false" final="false" visibility="public"
  25685. deprecated="not deprecated">
  25686. <param name="o" type="java.lang.Object"/>
  25687. </method>
  25688. <method name="hashCode" return="int"
  25689. abstract="false" native="false" synchronized="false"
  25690. static="false" final="false" visibility="public"
  25691. deprecated="not deprecated">
  25692. </method>
  25693. <doc>
  25694. <![CDATA[Represents typeID for a struct
  25695. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25696. </doc>
  25697. </class>
  25698. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  25699. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  25700. <class name="TypeID" extends="java.lang.Object"
  25701. abstract="false"
  25702. static="false" final="false" visibility="public"
  25703. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25704. <method name="getTypeVal" return="byte"
  25705. abstract="false" native="false" synchronized="false"
  25706. static="false" final="false" visibility="public"
  25707. deprecated="not deprecated">
  25708. <doc>
  25709. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  25710. </doc>
  25711. </method>
  25712. <method name="equals" return="boolean"
  25713. abstract="false" native="false" synchronized="false"
  25714. static="false" final="false" visibility="public"
  25715. deprecated="not deprecated">
  25716. <param name="o" type="java.lang.Object"/>
  25717. <doc>
  25718. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  25719. </doc>
  25720. </method>
  25721. <method name="hashCode" return="int"
  25722. abstract="false" native="false" synchronized="false"
  25723. static="false" final="false" visibility="public"
  25724. deprecated="not deprecated">
  25725. <doc>
  25726. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25727. be used as a hashmap key]]>
  25728. </doc>
  25729. </method>
  25730. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25731. transient="false" volatile="false"
  25732. static="true" final="true" visibility="public"
  25733. deprecated="not deprecated">
  25734. <doc>
  25735. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  25736. </doc>
  25737. </field>
  25738. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25739. transient="false" volatile="false"
  25740. static="true" final="true" visibility="public"
  25741. deprecated="not deprecated">
  25742. </field>
  25743. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25744. transient="false" volatile="false"
  25745. static="true" final="true" visibility="public"
  25746. deprecated="not deprecated">
  25747. </field>
  25748. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25749. transient="false" volatile="false"
  25750. static="true" final="true" visibility="public"
  25751. deprecated="not deprecated">
  25752. </field>
  25753. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25754. transient="false" volatile="false"
  25755. static="true" final="true" visibility="public"
  25756. deprecated="not deprecated">
  25757. </field>
  25758. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25759. transient="false" volatile="false"
  25760. static="true" final="true" visibility="public"
  25761. deprecated="not deprecated">
  25762. </field>
  25763. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25764. transient="false" volatile="false"
  25765. static="true" final="true" visibility="public"
  25766. deprecated="not deprecated">
  25767. </field>
  25768. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25769. transient="false" volatile="false"
  25770. static="true" final="true" visibility="public"
  25771. deprecated="not deprecated">
  25772. </field>
  25773. <field name="typeVal" type="byte"
  25774. transient="false" volatile="false"
  25775. static="false" final="false" visibility="protected"
  25776. deprecated="not deprecated">
  25777. </field>
  25778. <doc>
  25779. <![CDATA[Represents typeID for basic types.
  25780. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25781. </doc>
  25782. </class>
  25783. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  25784. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  25785. <class name="TypeID.RIOType" extends="java.lang.Object"
  25786. abstract="false"
  25787. static="true" final="true" visibility="public"
  25788. deprecated="not deprecated">
  25789. <constructor name="TypeID.RIOType"
  25790. static="false" final="false" visibility="public"
  25791. deprecated="not deprecated">
  25792. </constructor>
  25793. <field name="BOOL" type="byte"
  25794. transient="false" volatile="false"
  25795. static="true" final="true" visibility="public"
  25796. deprecated="not deprecated">
  25797. </field>
  25798. <field name="BUFFER" type="byte"
  25799. transient="false" volatile="false"
  25800. static="true" final="true" visibility="public"
  25801. deprecated="not deprecated">
  25802. </field>
  25803. <field name="BYTE" type="byte"
  25804. transient="false" volatile="false"
  25805. static="true" final="true" visibility="public"
  25806. deprecated="not deprecated">
  25807. </field>
  25808. <field name="DOUBLE" type="byte"
  25809. transient="false" volatile="false"
  25810. static="true" final="true" visibility="public"
  25811. deprecated="not deprecated">
  25812. </field>
  25813. <field name="FLOAT" type="byte"
  25814. transient="false" volatile="false"
  25815. static="true" final="true" visibility="public"
  25816. deprecated="not deprecated">
  25817. </field>
  25818. <field name="INT" type="byte"
  25819. transient="false" volatile="false"
  25820. static="true" final="true" visibility="public"
  25821. deprecated="not deprecated">
  25822. </field>
  25823. <field name="LONG" type="byte"
  25824. transient="false" volatile="false"
  25825. static="true" final="true" visibility="public"
  25826. deprecated="not deprecated">
  25827. </field>
  25828. <field name="MAP" type="byte"
  25829. transient="false" volatile="false"
  25830. static="true" final="true" visibility="public"
  25831. deprecated="not deprecated">
  25832. </field>
  25833. <field name="STRING" type="byte"
  25834. transient="false" volatile="false"
  25835. static="true" final="true" visibility="public"
  25836. deprecated="not deprecated">
  25837. </field>
  25838. <field name="STRUCT" type="byte"
  25839. transient="false" volatile="false"
  25840. static="true" final="true" visibility="public"
  25841. deprecated="not deprecated">
  25842. </field>
  25843. <field name="VECTOR" type="byte"
  25844. transient="false" volatile="false"
  25845. static="true" final="true" visibility="public"
  25846. deprecated="not deprecated">
  25847. </field>
  25848. <doc>
  25849. <![CDATA[constants representing the IDL types we support]]>
  25850. </doc>
  25851. </class>
  25852. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  25853. <!-- start class org.apache.hadoop.record.meta.Utils -->
  25854. <class name="Utils" extends="java.lang.Object"
  25855. abstract="false"
  25856. static="false" final="false" visibility="public"
  25857. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25858. <method name="skip"
  25859. abstract="false" native="false" synchronized="false"
  25860. static="true" final="false" visibility="public"
  25861. deprecated="not deprecated">
  25862. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  25863. <param name="tag" type="java.lang.String"/>
  25864. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  25865. <exception name="IOException" type="java.io.IOException"/>
  25866. <doc>
  25867. <![CDATA[read/skip bytes from stream based on a type]]>
  25868. </doc>
  25869. </method>
  25870. <doc>
  25871. <![CDATA[Various utility functions for Hadooop record I/O platform.
  25872. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25873. </doc>
  25874. </class>
  25875. <!-- end class org.apache.hadoop.record.meta.Utils -->
  25876. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  25877. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  25878. abstract="false"
  25879. static="false" final="false" visibility="public"
  25880. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25881. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  25882. static="false" final="false" visibility="public"
  25883. deprecated="not deprecated">
  25884. </constructor>
  25885. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  25886. abstract="false" native="false" synchronized="false"
  25887. static="false" final="false" visibility="public"
  25888. deprecated="not deprecated">
  25889. </method>
  25890. <method name="equals" return="boolean"
  25891. abstract="false" native="false" synchronized="false"
  25892. static="false" final="false" visibility="public"
  25893. deprecated="not deprecated">
  25894. <param name="o" type="java.lang.Object"/>
  25895. <doc>
  25896. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  25897. same type]]>
  25898. </doc>
  25899. </method>
  25900. <method name="hashCode" return="int"
  25901. abstract="false" native="false" synchronized="false"
  25902. static="false" final="false" visibility="public"
  25903. deprecated="not deprecated">
  25904. <doc>
  25905. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  25906. be used as a hashmap key]]>
  25907. </doc>
  25908. </method>
  25909. <doc>
  25910. <![CDATA[Represents typeID for vector.
  25911. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25912. </doc>
  25913. </class>
  25914. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  25915. </package>
  25916. <package name="org.apache.hadoop.security">
  25917. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  25918. <interface name="GroupMappingServiceProvider" abstract="true"
  25919. static="false" final="false" visibility="public"
  25920. deprecated="not deprecated">
  25921. <method name="getGroups" return="java.util.List"
  25922. abstract="false" native="false" synchronized="false"
  25923. static="false" final="false" visibility="public"
  25924. deprecated="not deprecated">
  25925. <param name="user" type="java.lang.String"/>
  25926. <exception name="IOException" type="java.io.IOException"/>
  25927. <doc>
  25928. <![CDATA[Get all various group memberships of a given user.
  25929. Returns EMPTY list in case of non-existing user
  25930. @param user User's name
  25931. @return group memberships of user
  25932. @throws IOException]]>
  25933. </doc>
  25934. </method>
  25935. <doc>
  25936. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  25937. used by {@link Groups}.]]>
  25938. </doc>
  25939. </interface>
  25940. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  25941. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  25942. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  25943. abstract="false"
  25944. static="false" final="false" visibility="public"
  25945. deprecated="not deprecated">
  25946. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  25947. <constructor name="JniBasedUnixGroupsMapping"
  25948. static="false" final="false" visibility="public"
  25949. deprecated="not deprecated">
  25950. </constructor>
  25951. <method name="getGroups" return="java.util.List"
  25952. abstract="false" native="false" synchronized="false"
  25953. static="false" final="false" visibility="public"
  25954. deprecated="not deprecated">
  25955. <param name="user" type="java.lang.String"/>
  25956. <exception name="IOException" type="java.io.IOException"/>
  25957. </method>
  25958. <doc>
  25959. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  25960. that invokes libC calls to get the group
  25961. memberships of a given user.]]>
  25962. </doc>
  25963. </class>
  25964. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  25965. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  25966. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  25967. abstract="false"
  25968. static="true" final="false" visibility="public"
  25969. deprecated="not deprecated">
  25970. </class>
  25971. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  25972. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  25973. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  25974. abstract="false"
  25975. static="true" final="false" visibility="public"
  25976. deprecated="not deprecated">
  25977. </class>
  25978. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  25979. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  25980. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  25981. abstract="false"
  25982. static="false" final="false" visibility="public"
  25983. deprecated="not deprecated">
  25984. <constructor name="Krb5AndCertsSslSocketConnector"
  25985. static="false" final="false" visibility="public"
  25986. deprecated="not deprecated">
  25987. </constructor>
  25988. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  25989. static="false" final="false" visibility="public"
  25990. deprecated="not deprecated">
  25991. </constructor>
  25992. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  25993. abstract="false" native="false" synchronized="false"
  25994. static="false" final="false" visibility="protected"
  25995. deprecated="not deprecated">
  25996. <exception name="Exception" type="java.lang.Exception"/>
  25997. </method>
  25998. <method name="newServerSocket" return="java.net.ServerSocket"
  25999. abstract="false" native="false" synchronized="false"
  26000. static="false" final="false" visibility="protected"
  26001. deprecated="not deprecated">
  26002. <param name="host" type="java.lang.String"/>
  26003. <param name="port" type="int"/>
  26004. <param name="backlog" type="int"/>
  26005. <exception name="IOException" type="java.io.IOException"/>
  26006. </method>
  26007. <method name="customize"
  26008. abstract="false" native="false" synchronized="false"
  26009. static="false" final="false" visibility="public"
  26010. deprecated="not deprecated">
  26011. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  26012. <param name="request" type="org.mortbay.jetty.Request"/>
  26013. <exception name="IOException" type="java.io.IOException"/>
  26014. </method>
  26015. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  26016. transient="false" volatile="false"
  26017. static="true" final="true" visibility="public"
  26018. deprecated="not deprecated">
  26019. </field>
  26020. <doc>
  26021. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  26022. Kerberos5ized SSL sockets. The only change in behavior from superclass
  26023. is that we no longer honor requests to turn off NeedAuthentication when
  26024. running with Kerberos support.]]>
  26025. </doc>
  26026. </class>
  26027. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  26028. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  26029. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  26030. abstract="false"
  26031. static="true" final="false" visibility="public"
  26032. deprecated="not deprecated">
  26033. <implements name="javax.servlet.Filter"/>
  26034. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  26035. static="false" final="false" visibility="public"
  26036. deprecated="not deprecated">
  26037. </constructor>
  26038. <method name="doFilter"
  26039. abstract="false" native="false" synchronized="false"
  26040. static="false" final="false" visibility="public"
  26041. deprecated="not deprecated">
  26042. <param name="req" type="javax.servlet.ServletRequest"/>
  26043. <param name="resp" type="javax.servlet.ServletResponse"/>
  26044. <param name="chain" type="javax.servlet.FilterChain"/>
  26045. <exception name="IOException" type="java.io.IOException"/>
  26046. <exception name="ServletException" type="javax.servlet.ServletException"/>
  26047. </method>
  26048. <method name="init"
  26049. abstract="false" native="false" synchronized="false"
  26050. static="false" final="false" visibility="public"
  26051. deprecated="not deprecated">
  26052. <param name="arg0" type="javax.servlet.FilterConfig"/>
  26053. <exception name="ServletException" type="javax.servlet.ServletException"/>
  26054. </method>
  26055. <method name="destroy"
  26056. abstract="false" native="false" synchronized="false"
  26057. static="false" final="false" visibility="public"
  26058. deprecated="not deprecated">
  26059. </method>
  26060. <doc>
  26061. <![CDATA[Filter that takes the Kerberos principal identified in the
  26062. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  26063. at runtime, setting the principal and short name.]]>
  26064. </doc>
  26065. </class>
  26066. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  26067. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  26068. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  26069. abstract="false"
  26070. static="true" final="true" visibility="public"
  26071. deprecated="not deprecated">
  26072. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  26073. abstract="false" native="false" synchronized="false"
  26074. static="true" final="false" visibility="public"
  26075. deprecated="not deprecated">
  26076. </method>
  26077. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  26078. abstract="false" native="false" synchronized="false"
  26079. static="true" final="false" visibility="public"
  26080. deprecated="not deprecated">
  26081. <param name="name" type="java.lang.String"/>
  26082. </method>
  26083. </class>
  26084. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  26085. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  26086. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  26087. abstract="false"
  26088. static="true" final="true" visibility="public"
  26089. deprecated="not deprecated">
  26090. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  26091. abstract="false" native="false" synchronized="false"
  26092. static="true" final="false" visibility="public"
  26093. deprecated="not deprecated">
  26094. </method>
  26095. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  26096. abstract="false" native="false" synchronized="false"
  26097. static="true" final="false" visibility="public"
  26098. deprecated="not deprecated">
  26099. <param name="name" type="java.lang.String"/>
  26100. </method>
  26101. <method name="getMechanismName" return="java.lang.String"
  26102. abstract="false" native="false" synchronized="false"
  26103. static="false" final="false" visibility="public"
  26104. deprecated="not deprecated">
  26105. <doc>
  26106. <![CDATA[Return the SASL mechanism name]]>
  26107. </doc>
  26108. </method>
  26109. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  26110. abstract="false" native="false" synchronized="false"
  26111. static="true" final="false" visibility="public"
  26112. deprecated="not deprecated">
  26113. <param name="in" type="java.io.DataInput"/>
  26114. <exception name="IOException" type="java.io.IOException"/>
  26115. <doc>
  26116. <![CDATA[Read from in]]>
  26117. </doc>
  26118. </method>
  26119. <method name="write"
  26120. abstract="false" native="false" synchronized="false"
  26121. static="false" final="false" visibility="public"
  26122. deprecated="not deprecated">
  26123. <param name="out" type="java.io.DataOutput"/>
  26124. <exception name="IOException" type="java.io.IOException"/>
  26125. <doc>
  26126. <![CDATA[Write to out]]>
  26127. </doc>
  26128. </method>
  26129. <field name="code" type="byte"
  26130. transient="false" volatile="false"
  26131. static="false" final="true" visibility="public"
  26132. deprecated="not deprecated">
  26133. <doc>
  26134. <![CDATA[The code for this method.]]>
  26135. </doc>
  26136. </field>
  26137. <field name="mechanismName" type="java.lang.String"
  26138. transient="false" volatile="false"
  26139. static="false" final="true" visibility="public"
  26140. deprecated="not deprecated">
  26141. </field>
  26142. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  26143. transient="false" volatile="false"
  26144. static="false" final="true" visibility="public"
  26145. deprecated="not deprecated">
  26146. </field>
  26147. <doc>
  26148. <![CDATA[Authentication method]]>
  26149. </doc>
  26150. </class>
  26151. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  26152. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  26153. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  26154. abstract="false"
  26155. static="true" final="true" visibility="public"
  26156. deprecated="not deprecated">
  26157. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  26158. abstract="false" native="false" synchronized="false"
  26159. static="true" final="false" visibility="public"
  26160. deprecated="not deprecated">
  26161. </method>
  26162. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  26163. abstract="false" native="false" synchronized="false"
  26164. static="true" final="false" visibility="public"
  26165. deprecated="not deprecated">
  26166. <param name="name" type="java.lang.String"/>
  26167. </method>
  26168. <method name="getSaslQop" return="java.lang.String"
  26169. abstract="false" native="false" synchronized="false"
  26170. static="false" final="false" visibility="public"
  26171. deprecated="not deprecated">
  26172. </method>
  26173. <field name="saslQop" type="java.lang.String"
  26174. transient="false" volatile="false"
  26175. static="false" final="true" visibility="public"
  26176. deprecated="not deprecated">
  26177. </field>
  26178. </class>
  26179. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  26180. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  26181. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  26182. abstract="false"
  26183. static="true" final="false" visibility="public"
  26184. deprecated="not deprecated">
  26185. <implements name="javax.security.auth.callback.CallbackHandler"/>
  26186. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  26187. static="false" final="false" visibility="public"
  26188. deprecated="not deprecated">
  26189. </constructor>
  26190. <method name="handle"
  26191. abstract="false" native="false" synchronized="false"
  26192. static="false" final="false" visibility="public"
  26193. deprecated="not deprecated">
  26194. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  26195. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  26196. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  26197. <doc>
  26198. <![CDATA[{@inheritDoc}]]>
  26199. </doc>
  26200. </method>
  26201. <doc>
  26202. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  26203. </doc>
  26204. </class>
  26205. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  26206. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  26207. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  26208. abstract="false"
  26209. static="true" final="false" visibility="public"
  26210. deprecated="not deprecated">
  26211. <implements name="javax.security.auth.callback.CallbackHandler"/>
  26212. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  26213. static="false" final="false" visibility="public"
  26214. deprecated="not deprecated">
  26215. </constructor>
  26216. <method name="handle"
  26217. abstract="false" native="false" synchronized="false"
  26218. static="false" final="false" visibility="public"
  26219. deprecated="not deprecated">
  26220. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  26221. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  26222. <doc>
  26223. <![CDATA[{@inheritDoc}]]>
  26224. </doc>
  26225. </method>
  26226. <doc>
  26227. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  26228. </doc>
  26229. </class>
  26230. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  26231. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  26232. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  26233. abstract="false"
  26234. static="true" final="true" visibility="public"
  26235. deprecated="not deprecated">
  26236. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  26237. abstract="false" native="false" synchronized="false"
  26238. static="true" final="false" visibility="public"
  26239. deprecated="not deprecated">
  26240. </method>
  26241. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  26242. abstract="false" native="false" synchronized="false"
  26243. static="true" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <param name="name" type="java.lang.String"/>
  26246. </method>
  26247. <field name="state" type="int"
  26248. transient="false" volatile="false"
  26249. static="false" final="true" visibility="public"
  26250. deprecated="not deprecated">
  26251. </field>
  26252. </class>
  26253. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  26254. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  26255. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  26256. abstract="false"
  26257. static="true" final="true" visibility="public"
  26258. deprecated="not deprecated">
  26259. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  26260. abstract="false" native="false" synchronized="false"
  26261. static="true" final="false" visibility="public"
  26262. deprecated="not deprecated">
  26263. </method>
  26264. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  26265. abstract="false" native="false" synchronized="false"
  26266. static="true" final="false" visibility="public"
  26267. deprecated="not deprecated">
  26268. <param name="name" type="java.lang.String"/>
  26269. </method>
  26270. <doc>
  26271. <![CDATA[existing types of authentications' methods]]>
  26272. </doc>
  26273. </class>
  26274. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  26275. </package>
  26276. <package name="org.apache.hadoop.security.authorize">
  26277. </package>
  26278. <package name="org.apache.hadoop.security.token">
  26279. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  26280. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  26281. abstract="false"
  26282. static="true" final="false" visibility="public"
  26283. deprecated="not deprecated">
  26284. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  26285. static="false" final="false" visibility="public"
  26286. deprecated="not deprecated">
  26287. </constructor>
  26288. <doc>
  26289. <![CDATA[The token was invalid and the message explains why.]]>
  26290. </doc>
  26291. </class>
  26292. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  26293. </package>
  26294. <package name="org.apache.hadoop.security.token.delegation">
  26295. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  26296. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  26297. abstract="false"
  26298. static="true" final="false" visibility="public"
  26299. deprecated="not deprecated">
  26300. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  26301. static="false" final="false" visibility="public"
  26302. deprecated="not deprecated">
  26303. </constructor>
  26304. <method name="getRenewDate" return="long"
  26305. abstract="false" native="false" synchronized="false"
  26306. static="false" final="false" visibility="public"
  26307. deprecated="not deprecated">
  26308. <doc>
  26309. <![CDATA[returns renew date]]>
  26310. </doc>
  26311. </method>
  26312. <doc>
  26313. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  26314. </doc>
  26315. </class>
  26316. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  26317. </package>
  26318. <package name="org.apache.hadoop.util">
  26319. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  26320. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  26321. abstract="false"
  26322. static="true" final="false" visibility="public"
  26323. deprecated="not deprecated">
  26324. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  26325. static="false" final="false" visibility="public"
  26326. deprecated="not deprecated">
  26327. </constructor>
  26328. </class>
  26329. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  26330. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  26331. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  26332. abstract="false"
  26333. static="true" final="false" visibility="public"
  26334. deprecated="not deprecated">
  26335. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  26336. static="false" final="false" visibility="public"
  26337. deprecated="not deprecated">
  26338. </constructor>
  26339. </class>
  26340. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  26341. <!-- start class org.apache.hadoop.util.Options -->
  26342. <class name="Options" extends="java.lang.Object"
  26343. abstract="false"
  26344. static="false" final="false" visibility="public"
  26345. deprecated="not deprecated">
  26346. <constructor name="Options"
  26347. static="false" final="false" visibility="public"
  26348. deprecated="not deprecated">
  26349. </constructor>
  26350. <method name="getOption" return="T"
  26351. abstract="false" native="false" synchronized="false"
  26352. static="true" final="false" visibility="public"
  26353. deprecated="not deprecated">
  26354. <param name="cls" type="java.lang.Class"/>
  26355. <param name="opts" type="base[]"/>
  26356. <exception name="IOException" type="java.io.IOException"/>
  26357. <doc>
  26358. <![CDATA[Find the first option of the required class.
  26359. @param <T> the static class to find
  26360. @param <base> the parent class of the array
  26361. @param cls the dynamic class to find
  26362. @param opts the list of options to look through
  26363. @return the first option that matches
  26364. @throws IOException]]>
  26365. </doc>
  26366. </method>
  26367. <method name="prependOptions" return="T[]"
  26368. abstract="false" native="false" synchronized="false"
  26369. static="true" final="false" visibility="public"
  26370. deprecated="not deprecated">
  26371. <param name="oldOpts" type="T[]"/>
  26372. <param name="newOpts" type="T[]"/>
  26373. <doc>
  26374. <![CDATA[Prepend some new options to the old options
  26375. @param <T> the type of options
  26376. @param oldOpts the old options
  26377. @param newOpts the new options
  26378. @return a new array of options]]>
  26379. </doc>
  26380. </method>
  26381. <doc>
  26382. <![CDATA[This class allows generic access to variable length type-safe parameter
  26383. lists.]]>
  26384. </doc>
  26385. </class>
  26386. <!-- end class org.apache.hadoop.util.Options -->
  26387. <!-- start class org.apache.hadoop.util.Options.BooleanOption -->
  26388. <class name="Options.BooleanOption" extends="java.lang.Object"
  26389. abstract="true"
  26390. static="true" final="false" visibility="public"
  26391. deprecated="not deprecated">
  26392. <constructor name="Options.BooleanOption" type="boolean"
  26393. static="false" final="false" visibility="protected"
  26394. deprecated="not deprecated">
  26395. </constructor>
  26396. <method name="getValue" return="boolean"
  26397. abstract="false" native="false" synchronized="false"
  26398. static="false" final="false" visibility="public"
  26399. deprecated="not deprecated">
  26400. </method>
  26401. </class>
  26402. <!-- end class org.apache.hadoop.util.Options.BooleanOption -->
  26403. <!-- start class org.apache.hadoop.util.Options.ClassOption -->
  26404. <class name="Options.ClassOption" extends="java.lang.Object"
  26405. abstract="true"
  26406. static="true" final="false" visibility="public"
  26407. deprecated="not deprecated">
  26408. <constructor name="Options.ClassOption" type="java.lang.Class"
  26409. static="false" final="false" visibility="protected"
  26410. deprecated="not deprecated">
  26411. </constructor>
  26412. <method name="getValue" return="java.lang.Class"
  26413. abstract="false" native="false" synchronized="false"
  26414. static="false" final="false" visibility="public"
  26415. deprecated="not deprecated">
  26416. </method>
  26417. </class>
  26418. <!-- end class org.apache.hadoop.util.Options.ClassOption -->
  26419. <!-- start class org.apache.hadoop.util.Options.FSDataInputStreamOption -->
  26420. <class name="Options.FSDataInputStreamOption" extends="java.lang.Object"
  26421. abstract="true"
  26422. static="true" final="false" visibility="public"
  26423. deprecated="not deprecated">
  26424. <constructor name="Options.FSDataInputStreamOption" type="org.apache.hadoop.fs.FSDataInputStream"
  26425. static="false" final="false" visibility="protected"
  26426. deprecated="not deprecated">
  26427. </constructor>
  26428. <method name="getValue" return="org.apache.hadoop.fs.FSDataInputStream"
  26429. abstract="false" native="false" synchronized="false"
  26430. static="false" final="false" visibility="public"
  26431. deprecated="not deprecated">
  26432. </method>
  26433. </class>
  26434. <!-- end class org.apache.hadoop.util.Options.FSDataInputStreamOption -->
  26435. <!-- start class org.apache.hadoop.util.Options.FSDataOutputStreamOption -->
  26436. <class name="Options.FSDataOutputStreamOption" extends="java.lang.Object"
  26437. abstract="true"
  26438. static="true" final="false" visibility="public"
  26439. deprecated="not deprecated">
  26440. <constructor name="Options.FSDataOutputStreamOption" type="org.apache.hadoop.fs.FSDataOutputStream"
  26441. static="false" final="false" visibility="protected"
  26442. deprecated="not deprecated">
  26443. </constructor>
  26444. <method name="getValue" return="org.apache.hadoop.fs.FSDataOutputStream"
  26445. abstract="false" native="false" synchronized="false"
  26446. static="false" final="false" visibility="public"
  26447. deprecated="not deprecated">
  26448. </method>
  26449. </class>
  26450. <!-- end class org.apache.hadoop.util.Options.FSDataOutputStreamOption -->
  26451. <!-- start class org.apache.hadoop.util.Options.IntegerOption -->
  26452. <class name="Options.IntegerOption" extends="java.lang.Object"
  26453. abstract="true"
  26454. static="true" final="false" visibility="public"
  26455. deprecated="not deprecated">
  26456. <constructor name="Options.IntegerOption" type="int"
  26457. static="false" final="false" visibility="protected"
  26458. deprecated="not deprecated">
  26459. </constructor>
  26460. <method name="getValue" return="int"
  26461. abstract="false" native="false" synchronized="false"
  26462. static="false" final="false" visibility="public"
  26463. deprecated="not deprecated">
  26464. </method>
  26465. </class>
  26466. <!-- end class org.apache.hadoop.util.Options.IntegerOption -->
  26467. <!-- start class org.apache.hadoop.util.Options.LongOption -->
  26468. <class name="Options.LongOption" extends="java.lang.Object"
  26469. abstract="true"
  26470. static="true" final="false" visibility="public"
  26471. deprecated="not deprecated">
  26472. <constructor name="Options.LongOption" type="long"
  26473. static="false" final="false" visibility="protected"
  26474. deprecated="not deprecated">
  26475. </constructor>
  26476. <method name="getValue" return="long"
  26477. abstract="false" native="false" synchronized="false"
  26478. static="false" final="false" visibility="public"
  26479. deprecated="not deprecated">
  26480. </method>
  26481. </class>
  26482. <!-- end class org.apache.hadoop.util.Options.LongOption -->
  26483. <!-- start class org.apache.hadoop.util.Options.PathOption -->
  26484. <class name="Options.PathOption" extends="java.lang.Object"
  26485. abstract="true"
  26486. static="true" final="false" visibility="public"
  26487. deprecated="not deprecated">
  26488. <constructor name="Options.PathOption" type="org.apache.hadoop.fs.Path"
  26489. static="false" final="false" visibility="protected"
  26490. deprecated="not deprecated">
  26491. </constructor>
  26492. <method name="getValue" return="org.apache.hadoop.fs.Path"
  26493. abstract="false" native="false" synchronized="false"
  26494. static="false" final="false" visibility="public"
  26495. deprecated="not deprecated">
  26496. </method>
  26497. </class>
  26498. <!-- end class org.apache.hadoop.util.Options.PathOption -->
  26499. <!-- start class org.apache.hadoop.util.Options.ProgressableOption -->
  26500. <class name="Options.ProgressableOption" extends="java.lang.Object"
  26501. abstract="true"
  26502. static="true" final="false" visibility="public"
  26503. deprecated="not deprecated">
  26504. <constructor name="Options.ProgressableOption" type="org.apache.hadoop.util.Progressable"
  26505. static="false" final="false" visibility="protected"
  26506. deprecated="not deprecated">
  26507. </constructor>
  26508. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  26509. abstract="false" native="false" synchronized="false"
  26510. static="false" final="false" visibility="public"
  26511. deprecated="not deprecated">
  26512. </method>
  26513. </class>
  26514. <!-- end class org.apache.hadoop.util.Options.ProgressableOption -->
  26515. <!-- start class org.apache.hadoop.util.Options.StringOption -->
  26516. <class name="Options.StringOption" extends="java.lang.Object"
  26517. abstract="true"
  26518. static="true" final="false" visibility="public"
  26519. deprecated="not deprecated">
  26520. <constructor name="Options.StringOption" type="java.lang.String"
  26521. static="false" final="false" visibility="protected"
  26522. deprecated="not deprecated">
  26523. </constructor>
  26524. <method name="getValue" return="java.lang.String"
  26525. abstract="false" native="false" synchronized="false"
  26526. static="false" final="false" visibility="public"
  26527. deprecated="not deprecated">
  26528. </method>
  26529. </class>
  26530. <!-- end class org.apache.hadoop.util.Options.StringOption -->
  26531. <!-- start interface org.apache.hadoop.util.Progressable -->
  26532. <interface name="Progressable" abstract="true"
  26533. static="false" final="false" visibility="public"
  26534. deprecated="not deprecated">
  26535. <method name="progress"
  26536. abstract="false" native="false" synchronized="false"
  26537. static="false" final="false" visibility="public"
  26538. deprecated="not deprecated">
  26539. <doc>
  26540. <![CDATA[Report progress to the Hadoop framework.]]>
  26541. </doc>
  26542. </method>
  26543. <doc>
  26544. <![CDATA[A facility for reporting progress.
  26545. <p>Clients and/or applications can use the provided <code>Progressable</code>
  26546. to explicitly report progress to the Hadoop framework. This is especially
  26547. important for operations which take an insignificant amount of time since,
  26548. in-lieu of the reported progress, the framework has to assume that an error
  26549. has occured and time-out the operation.</p>]]>
  26550. </doc>
  26551. </interface>
  26552. <!-- end interface org.apache.hadoop.util.Progressable -->
  26553. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  26554. <class name="ReflectionUtils" extends="java.lang.Object"
  26555. abstract="false"
  26556. static="false" final="false" visibility="public"
  26557. deprecated="not deprecated">
  26558. <constructor name="ReflectionUtils"
  26559. static="false" final="false" visibility="public"
  26560. deprecated="not deprecated">
  26561. </constructor>
  26562. <method name="setConf"
  26563. abstract="false" native="false" synchronized="false"
  26564. static="true" final="false" visibility="public"
  26565. deprecated="not deprecated">
  26566. <param name="theObject" type="java.lang.Object"/>
  26567. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26568. <doc>
  26569. <![CDATA[Check and set 'configuration' if necessary.
  26570. @param theObject object for which to set configuration
  26571. @param conf Configuration]]>
  26572. </doc>
  26573. </method>
  26574. <method name="newInstance" return="T"
  26575. abstract="false" native="false" synchronized="false"
  26576. static="true" final="false" visibility="public"
  26577. deprecated="not deprecated">
  26578. <param name="theClass" type="java.lang.Class"/>
  26579. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26580. <doc>
  26581. <![CDATA[Create an object for the given class and initialize it from conf
  26582. @param theClass class of which an object is created
  26583. @param conf Configuration
  26584. @return a new object]]>
  26585. </doc>
  26586. </method>
  26587. <method name="setContentionTracing"
  26588. abstract="false" native="false" synchronized="false"
  26589. static="true" final="false" visibility="public"
  26590. deprecated="not deprecated">
  26591. <param name="val" type="boolean"/>
  26592. </method>
  26593. <method name="printThreadInfo"
  26594. abstract="false" native="false" synchronized="false"
  26595. static="true" final="false" visibility="public"
  26596. deprecated="not deprecated">
  26597. <param name="stream" type="java.io.PrintWriter"/>
  26598. <param name="title" type="java.lang.String"/>
  26599. <doc>
  26600. <![CDATA[Print all of the thread's information and stack traces.
  26601. @param stream the stream to
  26602. @param title a string title for the stack trace]]>
  26603. </doc>
  26604. </method>
  26605. <method name="logThreadInfo"
  26606. abstract="false" native="false" synchronized="false"
  26607. static="true" final="false" visibility="public"
  26608. deprecated="not deprecated">
  26609. <param name="log" type="org.apache.commons.logging.Log"/>
  26610. <param name="title" type="java.lang.String"/>
  26611. <param name="minInterval" type="long"/>
  26612. <doc>
  26613. <![CDATA[Log the current thread stacks at INFO level.
  26614. @param log the logger that logs the stack trace
  26615. @param title a descriptive title for the call stacks
  26616. @param minInterval the minimum time from the last]]>
  26617. </doc>
  26618. </method>
  26619. <method name="getClass" return="java.lang.Class"
  26620. abstract="false" native="false" synchronized="false"
  26621. static="true" final="false" visibility="public"
  26622. deprecated="not deprecated">
  26623. <param name="o" type="T"/>
  26624. <doc>
  26625. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  26626. @param o object whose correctly-typed <code>Class</code> is to be obtained
  26627. @return the correctly typed <code>Class</code> of the given object.]]>
  26628. </doc>
  26629. </method>
  26630. <method name="copy" return="T"
  26631. abstract="false" native="false" synchronized="false"
  26632. static="true" final="false" visibility="public"
  26633. deprecated="not deprecated">
  26634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26635. <param name="src" type="T"/>
  26636. <param name="dst" type="T"/>
  26637. <exception name="IOException" type="java.io.IOException"/>
  26638. <doc>
  26639. <![CDATA[Make a copy of the writable object using serialization to a buffer
  26640. @param dst the object to copy from
  26641. @param src the object to copy into, which is destroyed
  26642. @throws IOException]]>
  26643. </doc>
  26644. </method>
  26645. <method name="cloneWritableInto"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="true" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  26650. <param name="src" type="org.apache.hadoop.io.Writable"/>
  26651. <exception name="IOException" type="java.io.IOException"/>
  26652. </method>
  26653. <doc>
  26654. <![CDATA[General reflection utils]]>
  26655. </doc>
  26656. </class>
  26657. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  26658. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  26659. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  26660. abstract="false"
  26661. static="true" final="false" visibility="public"
  26662. deprecated="not deprecated">
  26663. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  26664. static="false" final="false" visibility="public"
  26665. deprecated="not deprecated">
  26666. </constructor>
  26667. <method name="getExitCode" return="int"
  26668. abstract="false" native="false" synchronized="false"
  26669. static="false" final="false" visibility="public"
  26670. deprecated="not deprecated">
  26671. </method>
  26672. <doc>
  26673. <![CDATA[This is an IOException with exit code added.]]>
  26674. </doc>
  26675. </class>
  26676. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  26677. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  26678. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  26679. abstract="false"
  26680. static="true" final="false" visibility="public"
  26681. deprecated="not deprecated">
  26682. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  26683. static="false" final="false" visibility="public"
  26684. deprecated="not deprecated">
  26685. </constructor>
  26686. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  26687. static="false" final="false" visibility="public"
  26688. deprecated="not deprecated">
  26689. </constructor>
  26690. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  26691. static="false" final="false" visibility="public"
  26692. deprecated="not deprecated">
  26693. </constructor>
  26694. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  26695. static="false" final="false" visibility="public"
  26696. deprecated="not deprecated">
  26697. <doc>
  26698. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  26699. @param execString The command to execute with arguments
  26700. @param dir If not-null, specifies the directory which should be set
  26701. as the current working directory for the command.
  26702. If null, the current working directory is not modified.
  26703. @param env If not-null, environment of the command will include the
  26704. key-value pairs specified in the map. If null, the current
  26705. environment is not modified.
  26706. @param timeout Specifies the time in milliseconds, after which the
  26707. command will be killed and the status marked as timedout.
  26708. If 0, the command will not be timed out.]]>
  26709. </doc>
  26710. </constructor>
  26711. <method name="execute"
  26712. abstract="false" native="false" synchronized="false"
  26713. static="false" final="false" visibility="public"
  26714. deprecated="not deprecated">
  26715. <exception name="IOException" type="java.io.IOException"/>
  26716. <doc>
  26717. <![CDATA[Execute the shell command.]]>
  26718. </doc>
  26719. </method>
  26720. <method name="getExecString" return="java.lang.String[]"
  26721. abstract="false" native="false" synchronized="false"
  26722. static="false" final="false" visibility="public"
  26723. deprecated="not deprecated">
  26724. </method>
  26725. <method name="parseExecResult"
  26726. abstract="false" native="false" synchronized="false"
  26727. static="false" final="false" visibility="protected"
  26728. deprecated="not deprecated">
  26729. <param name="lines" type="java.io.BufferedReader"/>
  26730. <exception name="IOException" type="java.io.IOException"/>
  26731. </method>
  26732. <method name="getOutput" return="java.lang.String"
  26733. abstract="false" native="false" synchronized="false"
  26734. static="false" final="false" visibility="public"
  26735. deprecated="not deprecated">
  26736. <doc>
  26737. <![CDATA[Get the output of the shell command.]]>
  26738. </doc>
  26739. </method>
  26740. <method name="toString" return="java.lang.String"
  26741. abstract="false" native="false" synchronized="false"
  26742. static="false" final="false" visibility="public"
  26743. deprecated="not deprecated">
  26744. <doc>
  26745. <![CDATA[Returns the commands of this instance.
  26746. Arguments with spaces in are presented with quotes round; other
  26747. arguments are presented raw
  26748. @return a string representation of the object.]]>
  26749. </doc>
  26750. </method>
  26751. <doc>
  26752. <![CDATA[A simple shell command executor.
  26753. <code>ShellCommandExecutor</code>should be used in cases where the output
  26754. of the command needs no explicit parsing and where the command, working
  26755. directory and the environment remains unchanged. The output of the command
  26756. is stored as-is and is expected to be small.]]>
  26757. </doc>
  26758. </class>
  26759. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  26760. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  26761. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  26762. abstract="false"
  26763. static="true" final="true" visibility="public"
  26764. deprecated="not deprecated">
  26765. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  26766. abstract="false" native="false" synchronized="false"
  26767. static="true" final="false" visibility="public"
  26768. deprecated="not deprecated">
  26769. </method>
  26770. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  26771. abstract="false" native="false" synchronized="false"
  26772. static="true" final="false" visibility="public"
  26773. deprecated="not deprecated">
  26774. <param name="name" type="java.lang.String"/>
  26775. </method>
  26776. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  26777. abstract="false" native="false" synchronized="false"
  26778. static="true" final="false" visibility="public"
  26779. deprecated="not deprecated">
  26780. <param name="symbol" type="char"/>
  26781. <doc>
  26782. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  26783. </doc>
  26784. </method>
  26785. <method name="string2long" return="long"
  26786. abstract="false" native="false" synchronized="false"
  26787. static="true" final="false" visibility="public"
  26788. deprecated="not deprecated">
  26789. <param name="s" type="java.lang.String"/>
  26790. <doc>
  26791. <![CDATA[Convert a string to long.
  26792. The input string is first be trimmed
  26793. and then it is parsed with traditional binary prefix.
  26794. For example,
  26795. "-1230k" will be converted to -1230 * 1024 = -1259520;
  26796. "891g" will be converted to 891 * 1024^3 = 956703965184;
  26797. @param s input string
  26798. @return a long value represented by the input string.]]>
  26799. </doc>
  26800. </method>
  26801. <field name="value" type="long"
  26802. transient="false" volatile="false"
  26803. static="false" final="true" visibility="public"
  26804. deprecated="not deprecated">
  26805. </field>
  26806. <field name="symbol" type="char"
  26807. transient="false" volatile="false"
  26808. static="false" final="true" visibility="public"
  26809. deprecated="not deprecated">
  26810. </field>
  26811. <doc>
  26812. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  26813. which can be represented by a 64-bit integer.
  26814. TraditionalBinaryPrefix symbol are case insensitive.]]>
  26815. </doc>
  26816. </class>
  26817. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  26818. <!-- start interface org.apache.hadoop.util.Tool -->
  26819. <interface name="Tool" abstract="true"
  26820. static="false" final="false" visibility="public"
  26821. deprecated="not deprecated">
  26822. <implements name="org.apache.hadoop.conf.Configurable"/>
  26823. <method name="run" return="int"
  26824. abstract="false" native="false" synchronized="false"
  26825. static="false" final="false" visibility="public"
  26826. deprecated="not deprecated">
  26827. <param name="args" type="java.lang.String[]"/>
  26828. <exception name="Exception" type="java.lang.Exception"/>
  26829. <doc>
  26830. <![CDATA[Execute the command with the given arguments.
  26831. @param args command specific arguments.
  26832. @return exit code.
  26833. @throws Exception]]>
  26834. </doc>
  26835. </method>
  26836. <doc>
  26837. <![CDATA[A tool interface that supports handling of generic command-line options.
  26838. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  26839. The tool/application should delegate the handling of
  26840. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  26841. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  26842. and only handle its custom arguments.</p>
  26843. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  26844. <p><blockquote><pre>
  26845. public class MyApp extends Configured implements Tool {
  26846. public int run(String[] args) throws Exception {
  26847. // <code>Configuration</code> processed by <code>ToolRunner</code>
  26848. Configuration conf = getConf();
  26849. // Create a JobConf using the processed <code>conf</code>
  26850. JobConf job = new JobConf(conf, MyApp.class);
  26851. // Process custom command-line options
  26852. Path in = new Path(args[1]);
  26853. Path out = new Path(args[2]);
  26854. // Specify various job-specific parameters
  26855. job.setJobName("my-app");
  26856. job.setInputPath(in);
  26857. job.setOutputPath(out);
  26858. job.setMapperClass(MyMapper.class);
  26859. job.setReducerClass(MyReducer.class);
  26860. // Submit the job, then poll for progress until the job is complete
  26861. JobClient.runJob(job);
  26862. return 0;
  26863. }
  26864. public static void main(String[] args) throws Exception {
  26865. // Let <code>ToolRunner</code> handle generic command-line options
  26866. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  26867. System.exit(res);
  26868. }
  26869. }
  26870. </pre></blockquote></p>
  26871. @see GenericOptionsParser
  26872. @see ToolRunner]]>
  26873. </doc>
  26874. </interface>
  26875. <!-- end interface org.apache.hadoop.util.Tool -->
  26876. <!-- start class org.apache.hadoop.util.ToolRunner -->
  26877. <class name="ToolRunner" extends="java.lang.Object"
  26878. abstract="false"
  26879. static="false" final="false" visibility="public"
  26880. deprecated="not deprecated">
  26881. <constructor name="ToolRunner"
  26882. static="false" final="false" visibility="public"
  26883. deprecated="not deprecated">
  26884. </constructor>
  26885. <method name="run" return="int"
  26886. abstract="false" native="false" synchronized="false"
  26887. static="true" final="false" visibility="public"
  26888. deprecated="not deprecated">
  26889. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26890. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  26891. <param name="args" type="java.lang.String[]"/>
  26892. <exception name="Exception" type="java.lang.Exception"/>
  26893. <doc>
  26894. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  26895. parsing with the given generic arguments. Uses the given
  26896. <code>Configuration</code>, or builds one if null.
  26897. Sets the <code>Tool</code>'s configuration with the possibly modified
  26898. version of the <code>conf</code>.
  26899. @param conf <code>Configuration</code> for the <code>Tool</code>.
  26900. @param tool <code>Tool</code> to run.
  26901. @param args command-line arguments to the tool.
  26902. @return exit code of the {@link Tool#run(String[])} method.]]>
  26903. </doc>
  26904. </method>
  26905. <method name="run" return="int"
  26906. abstract="false" native="false" synchronized="false"
  26907. static="true" final="false" visibility="public"
  26908. deprecated="not deprecated">
  26909. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  26910. <param name="args" type="java.lang.String[]"/>
  26911. <exception name="Exception" type="java.lang.Exception"/>
  26912. <doc>
  26913. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  26914. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  26915. @param tool <code>Tool</code> to run.
  26916. @param args command-line arguments to the tool.
  26917. @return exit code of the {@link Tool#run(String[])} method.]]>
  26918. </doc>
  26919. </method>
  26920. <method name="printGenericCommandUsage"
  26921. abstract="false" native="false" synchronized="false"
  26922. static="true" final="false" visibility="public"
  26923. deprecated="not deprecated">
  26924. <param name="out" type="java.io.PrintStream"/>
  26925. <doc>
  26926. <![CDATA[Prints generic command-line argurments and usage information.
  26927. @param out stream to write usage information to.]]>
  26928. </doc>
  26929. </method>
  26930. <doc>
  26931. <![CDATA[A utility to help run {@link Tool}s.
  26932. <p><code>ToolRunner</code> can be used to run classes implementing
  26933. <code>Tool</code> interface. It works in conjunction with
  26934. {@link GenericOptionsParser} to parse the
  26935. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  26936. generic hadoop command line arguments</a> and modifies the
  26937. <code>Configuration</code> of the <code>Tool</code>. The
  26938. application-specific options are passed along without being modified.
  26939. </p>
  26940. @see Tool
  26941. @see GenericOptionsParser]]>
  26942. </doc>
  26943. </class>
  26944. <!-- end class org.apache.hadoop.util.ToolRunner -->
  26945. <doc>
  26946. <![CDATA[Common utilities.]]>
  26947. </doc>
  26948. </package>
  26949. <package name="org.apache.hadoop.util.bloom">
  26950. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  26951. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  26952. abstract="false"
  26953. static="false" final="false" visibility="public"
  26954. deprecated="not deprecated">
  26955. <constructor name="BloomFilter"
  26956. static="false" final="false" visibility="public"
  26957. deprecated="not deprecated">
  26958. <doc>
  26959. <![CDATA[Default constructor - use with readFields]]>
  26960. </doc>
  26961. </constructor>
  26962. <constructor name="BloomFilter" type="int, int, int"
  26963. static="false" final="false" visibility="public"
  26964. deprecated="not deprecated">
  26965. <doc>
  26966. <![CDATA[Constructor
  26967. @param vectorSize The vector size of <i>this</i> filter.
  26968. @param nbHash The number of hash function to consider.
  26969. @param hashType type of the hashing function (see
  26970. {@link org.apache.hadoop.util.hash.Hash}).]]>
  26971. </doc>
  26972. </constructor>
  26973. <method name="add"
  26974. abstract="false" native="false" synchronized="false"
  26975. static="false" final="false" visibility="public"
  26976. deprecated="not deprecated">
  26977. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  26978. </method>
  26979. <method name="and"
  26980. abstract="false" native="false" synchronized="false"
  26981. static="false" final="false" visibility="public"
  26982. deprecated="not deprecated">
  26983. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  26984. </method>
  26985. <method name="membershipTest" return="boolean"
  26986. abstract="false" native="false" synchronized="false"
  26987. static="false" final="false" visibility="public"
  26988. deprecated="not deprecated">
  26989. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  26990. </method>
  26991. <method name="not"
  26992. abstract="false" native="false" synchronized="false"
  26993. static="false" final="false" visibility="public"
  26994. deprecated="not deprecated">
  26995. </method>
  26996. <method name="or"
  26997. abstract="false" native="false" synchronized="false"
  26998. static="false" final="false" visibility="public"
  26999. deprecated="not deprecated">
  27000. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27001. </method>
  27002. <method name="xor"
  27003. abstract="false" native="false" synchronized="false"
  27004. static="false" final="false" visibility="public"
  27005. deprecated="not deprecated">
  27006. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27007. </method>
  27008. <method name="toString" return="java.lang.String"
  27009. abstract="false" native="false" synchronized="false"
  27010. static="false" final="false" visibility="public"
  27011. deprecated="not deprecated">
  27012. </method>
  27013. <method name="getVectorSize" return="int"
  27014. abstract="false" native="false" synchronized="false"
  27015. static="false" final="false" visibility="public"
  27016. deprecated="not deprecated">
  27017. <doc>
  27018. <![CDATA[@return size of the the bloomfilter]]>
  27019. </doc>
  27020. </method>
  27021. <method name="write"
  27022. abstract="false" native="false" synchronized="false"
  27023. static="false" final="false" visibility="public"
  27024. deprecated="not deprecated">
  27025. <param name="out" type="java.io.DataOutput"/>
  27026. <exception name="IOException" type="java.io.IOException"/>
  27027. </method>
  27028. <method name="readFields"
  27029. abstract="false" native="false" synchronized="false"
  27030. static="false" final="false" visibility="public"
  27031. deprecated="not deprecated">
  27032. <param name="in" type="java.io.DataInput"/>
  27033. <exception name="IOException" type="java.io.IOException"/>
  27034. </method>
  27035. <doc>
  27036. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  27037. <p>
  27038. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  27039. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  27040. offers for the transmission of set membership information between networked hosts. A sender encodes
  27041. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  27042. representation. Computation and space costs for construction are linear in the number of elements.
  27043. The receiver uses the filter to test whether various elements are members of the set. Though the
  27044. filter will occasionally return a false positive, it will never return a false negative. When creating
  27045. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  27046. <p>
  27047. Originally created by
  27048. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  27049. @see Filter The general behavior of a filter
  27050. @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>]]>
  27051. </doc>
  27052. </class>
  27053. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  27054. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  27055. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  27056. abstract="false"
  27057. static="false" final="true" visibility="public"
  27058. deprecated="not deprecated">
  27059. <constructor name="CountingBloomFilter"
  27060. static="false" final="false" visibility="public"
  27061. deprecated="not deprecated">
  27062. <doc>
  27063. <![CDATA[Default constructor - use with readFields]]>
  27064. </doc>
  27065. </constructor>
  27066. <constructor name="CountingBloomFilter" type="int, int, int"
  27067. static="false" final="false" visibility="public"
  27068. deprecated="not deprecated">
  27069. <doc>
  27070. <![CDATA[Constructor
  27071. @param vectorSize The vector size of <i>this</i> filter.
  27072. @param nbHash The number of hash function to consider.
  27073. @param hashType type of the hashing function (see
  27074. {@link org.apache.hadoop.util.hash.Hash}).]]>
  27075. </doc>
  27076. </constructor>
  27077. <method name="add"
  27078. abstract="false" native="false" synchronized="false"
  27079. static="false" final="false" visibility="public"
  27080. deprecated="not deprecated">
  27081. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27082. </method>
  27083. <method name="delete"
  27084. abstract="false" native="false" synchronized="false"
  27085. static="false" final="false" visibility="public"
  27086. deprecated="not deprecated">
  27087. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27088. <doc>
  27089. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  27090. <p>
  27091. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  27092. @param key The key to remove.]]>
  27093. </doc>
  27094. </method>
  27095. <method name="and"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27100. </method>
  27101. <method name="membershipTest" return="boolean"
  27102. abstract="false" native="false" synchronized="false"
  27103. static="false" final="false" visibility="public"
  27104. deprecated="not deprecated">
  27105. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27106. </method>
  27107. <method name="approximateCount" return="int"
  27108. abstract="false" native="false" synchronized="false"
  27109. static="false" final="false" visibility="public"
  27110. deprecated="not deprecated">
  27111. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27112. <doc>
  27113. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  27114. times the key was added to the filter. This allows the filter to be
  27115. used as an approximate <code>key -&gt; count</code> map.
  27116. <p>NOTE: due to the bucket size of this filter, inserting the same
  27117. key more than 15 times will cause an overflow at all filter positions
  27118. associated with this key, and it will significantly increase the error
  27119. rate for this and other keys. For this reason the filter can only be
  27120. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  27121. @param key key to be tested
  27122. @return 0 if the key is not present. Otherwise, a positive value v will
  27123. be returned such that <code>v == count</code> with probability equal to the
  27124. error rate of this filter, and <code>v &gt; count</code> otherwise.
  27125. Additionally, if the filter experienced an underflow as a result of
  27126. {@link #delete(Key)} operation, the return value may be lower than the
  27127. <code>count</code> with the probability of the false negative rate of such
  27128. filter.]]>
  27129. </doc>
  27130. </method>
  27131. <method name="not"
  27132. abstract="false" native="false" synchronized="false"
  27133. static="false" final="false" visibility="public"
  27134. deprecated="not deprecated">
  27135. </method>
  27136. <method name="or"
  27137. abstract="false" native="false" synchronized="false"
  27138. static="false" final="false" visibility="public"
  27139. deprecated="not deprecated">
  27140. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27141. </method>
  27142. <method name="xor"
  27143. abstract="false" native="false" synchronized="false"
  27144. static="false" final="false" visibility="public"
  27145. deprecated="not deprecated">
  27146. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27147. </method>
  27148. <method name="toString" return="java.lang.String"
  27149. abstract="false" native="false" synchronized="false"
  27150. static="false" final="false" visibility="public"
  27151. deprecated="not deprecated">
  27152. </method>
  27153. <method name="write"
  27154. abstract="false" native="false" synchronized="false"
  27155. static="false" final="false" visibility="public"
  27156. deprecated="not deprecated">
  27157. <param name="out" type="java.io.DataOutput"/>
  27158. <exception name="IOException" type="java.io.IOException"/>
  27159. </method>
  27160. <method name="readFields"
  27161. abstract="false" native="false" synchronized="false"
  27162. static="false" final="false" visibility="public"
  27163. deprecated="not deprecated">
  27164. <param name="in" type="java.io.DataInput"/>
  27165. <exception name="IOException" type="java.io.IOException"/>
  27166. </method>
  27167. <doc>
  27168. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  27169. 2000 paper.
  27170. <p>
  27171. A counting Bloom filter is an improvement to standard a Bloom filter as it
  27172. allows dynamic additions and deletions of set membership information. This
  27173. is achieved through the use of a counting vector instead of a bit vector.
  27174. <p>
  27175. Originally created by
  27176. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  27177. @see Filter The general behavior of a filter
  27178. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  27179. </doc>
  27180. </class>
  27181. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  27182. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  27183. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  27184. abstract="false"
  27185. static="false" final="false" visibility="public"
  27186. deprecated="not deprecated">
  27187. <constructor name="DynamicBloomFilter"
  27188. static="false" final="false" visibility="public"
  27189. deprecated="not deprecated">
  27190. <doc>
  27191. <![CDATA[Zero-args constructor for the serialization.]]>
  27192. </doc>
  27193. </constructor>
  27194. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  27195. static="false" final="false" visibility="public"
  27196. deprecated="not deprecated">
  27197. <doc>
  27198. <![CDATA[Constructor.
  27199. <p>
  27200. Builds an empty Dynamic Bloom filter.
  27201. @param vectorSize The number of bits in the vector.
  27202. @param nbHash The number of hash function to consider.
  27203. @param hashType type of the hashing function (see
  27204. {@link org.apache.hadoop.util.hash.Hash}).
  27205. @param nr The threshold for the maximum number of keys to record in a
  27206. dynamic Bloom filter row.]]>
  27207. </doc>
  27208. </constructor>
  27209. <method name="add"
  27210. abstract="false" native="false" synchronized="false"
  27211. static="false" final="false" visibility="public"
  27212. deprecated="not deprecated">
  27213. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27214. </method>
  27215. <method name="and"
  27216. abstract="false" native="false" synchronized="false"
  27217. static="false" final="false" visibility="public"
  27218. deprecated="not deprecated">
  27219. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27220. </method>
  27221. <method name="membershipTest" return="boolean"
  27222. abstract="false" native="false" synchronized="false"
  27223. static="false" final="false" visibility="public"
  27224. deprecated="not deprecated">
  27225. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27226. </method>
  27227. <method name="not"
  27228. abstract="false" native="false" synchronized="false"
  27229. static="false" final="false" visibility="public"
  27230. deprecated="not deprecated">
  27231. </method>
  27232. <method name="or"
  27233. abstract="false" native="false" synchronized="false"
  27234. static="false" final="false" visibility="public"
  27235. deprecated="not deprecated">
  27236. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27237. </method>
  27238. <method name="xor"
  27239. abstract="false" native="false" synchronized="false"
  27240. static="false" final="false" visibility="public"
  27241. deprecated="not deprecated">
  27242. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  27243. </method>
  27244. <method name="toString" return="java.lang.String"
  27245. abstract="false" native="false" synchronized="false"
  27246. static="false" final="false" visibility="public"
  27247. deprecated="not deprecated">
  27248. </method>
  27249. <method name="write"
  27250. abstract="false" native="false" synchronized="false"
  27251. static="false" final="false" visibility="public"
  27252. deprecated="not deprecated">
  27253. <param name="out" type="java.io.DataOutput"/>
  27254. <exception name="IOException" type="java.io.IOException"/>
  27255. </method>
  27256. <method name="readFields"
  27257. abstract="false" native="false" synchronized="false"
  27258. static="false" final="false" visibility="public"
  27259. deprecated="not deprecated">
  27260. <param name="in" type="java.io.DataInput"/>
  27261. <exception name="IOException" type="java.io.IOException"/>
  27262. </method>
  27263. <doc>
  27264. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  27265. <p>
  27266. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  27267. each of the <code>s</code> rows is a standard Bloom filter. The creation
  27268. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  27269. bit matrix, i.e., it is composed of a single standard Bloom filter.
  27270. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  27271. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  27272. the cardinality of the set <code>A</code> to record in the filter).
  27273. <p>
  27274. As the size of <code>A</code> grows during the execution of the application,
  27275. several keys must be inserted in the DBF. When inserting a key into the DBF,
  27276. one must first get an active Bloom filter in the matrix. A Bloom filter is
  27277. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  27278. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  27279. If an active Bloom filter is found, the key is inserted and
  27280. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  27281. is no active Bloom filter, a new one is created (i.e., a new row is added to
  27282. the matrix) according to the current size of <code>A</code> and the element
  27283. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  27284. this new Bloom filter is set to one. A given key is said to belong to the
  27285. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  27286. <p>
  27287. Originally created by
  27288. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  27289. @see Filter The general behavior of a filter
  27290. @see BloomFilter A Bloom filter
  27291. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  27292. </doc>
  27293. </class>
  27294. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  27295. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  27296. <class name="HashFunction" extends="java.lang.Object"
  27297. abstract="false"
  27298. static="false" final="true" visibility="public"
  27299. deprecated="not deprecated">
  27300. <constructor name="HashFunction" type="int, int, int"
  27301. static="false" final="false" visibility="public"
  27302. deprecated="not deprecated">
  27303. <doc>
  27304. <![CDATA[Constructor.
  27305. <p>
  27306. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  27307. @param maxValue The maximum highest returned value.
  27308. @param nbHash The number of resulting hashed values.
  27309. @param hashType type of the hashing function (see {@link Hash}).]]>
  27310. </doc>
  27311. </constructor>
  27312. <method name="clear"
  27313. abstract="false" native="false" synchronized="false"
  27314. static="false" final="false" visibility="public"
  27315. deprecated="not deprecated">
  27316. <doc>
  27317. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  27318. </doc>
  27319. </method>
  27320. <method name="hash" return="int[]"
  27321. abstract="false" native="false" synchronized="false"
  27322. static="false" final="false" visibility="public"
  27323. deprecated="not deprecated">
  27324. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  27325. <doc>
  27326. <![CDATA[Hashes a specified key into several integers.
  27327. @param k The specified key.
  27328. @return The array of hashed values.]]>
  27329. </doc>
  27330. </method>
  27331. <doc>
  27332. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  27333. @see Key The general behavior of a key being stored in a filter
  27334. @see Filter The general behavior of a filter]]>
  27335. </doc>
  27336. </class>
  27337. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  27338. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  27339. <interface name="RemoveScheme" abstract="true"
  27340. static="false" final="false" visibility="public"
  27341. deprecated="not deprecated">
  27342. <field name="RANDOM" type="short"
  27343. transient="false" volatile="false"
  27344. static="true" final="true" visibility="public"
  27345. deprecated="not deprecated">
  27346. <doc>
  27347. <![CDATA[Random selection.
  27348. <p>
  27349. The idea is to randomly select a bit to reset.]]>
  27350. </doc>
  27351. </field>
  27352. <field name="MINIMUM_FN" type="short"
  27353. transient="false" volatile="false"
  27354. static="true" final="true" visibility="public"
  27355. deprecated="not deprecated">
  27356. <doc>
  27357. <![CDATA[MinimumFN Selection.
  27358. <p>
  27359. The idea is to select the bit to reset that will generate the minimum
  27360. number of false negative.]]>
  27361. </doc>
  27362. </field>
  27363. <field name="MAXIMUM_FP" type="short"
  27364. transient="false" volatile="false"
  27365. static="true" final="true" visibility="public"
  27366. deprecated="not deprecated">
  27367. <doc>
  27368. <![CDATA[MaximumFP Selection.
  27369. <p>
  27370. The idea is to select the bit to reset that will remove the maximum number
  27371. of false positive.]]>
  27372. </doc>
  27373. </field>
  27374. <field name="RATIO" type="short"
  27375. transient="false" volatile="false"
  27376. static="true" final="true" visibility="public"
  27377. deprecated="not deprecated">
  27378. <doc>
  27379. <![CDATA[Ratio Selection.
  27380. <p>
  27381. The idea is to select the bit to reset that will, at the same time, remove
  27382. the maximum number of false positve while minimizing the amount of false
  27383. negative generated.]]>
  27384. </doc>
  27385. </field>
  27386. <doc>
  27387. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  27388. <p>
  27389. Originally created by
  27390. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  27391. </doc>
  27392. </interface>
  27393. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  27394. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  27395. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  27396. abstract="false"
  27397. static="false" final="true" visibility="public"
  27398. deprecated="not deprecated">
  27399. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  27400. <constructor name="RetouchedBloomFilter"
  27401. static="false" final="false" visibility="public"
  27402. deprecated="not deprecated">
  27403. <doc>
  27404. <![CDATA[Default constructor - use with readFields]]>
  27405. </doc>
  27406. </constructor>
  27407. <constructor name="RetouchedBloomFilter" type="int, int, int"
  27408. static="false" final="false" visibility="public"
  27409. deprecated="not deprecated">
  27410. <doc>
  27411. <![CDATA[Constructor
  27412. @param vectorSize The vector size of <i>this</i> filter.
  27413. @param nbHash The number of hash function to consider.
  27414. @param hashType type of the hashing function (see
  27415. {@link org.apache.hadoop.util.hash.Hash}).]]>
  27416. </doc>
  27417. </constructor>
  27418. <method name="add"
  27419. abstract="false" native="false" synchronized="false"
  27420. static="false" final="false" visibility="public"
  27421. deprecated="not deprecated">
  27422. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27423. </method>
  27424. <method name="addFalsePositive"
  27425. abstract="false" native="false" synchronized="false"
  27426. static="false" final="false" visibility="public"
  27427. deprecated="not deprecated">
  27428. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  27429. <doc>
  27430. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  27431. <p>
  27432. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  27433. @param key The false positive key to add.]]>
  27434. </doc>
  27435. </method>
  27436. <method name="addFalsePositive"
  27437. abstract="false" native="false" synchronized="false"
  27438. static="false" final="false" visibility="public"
  27439. deprecated="not deprecated">
  27440. <param name="coll" type="java.util.Collection"/>
  27441. <doc>
  27442. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  27443. @param coll The collection of false positive.]]>
  27444. </doc>
  27445. </method>
  27446. <method name="addFalsePositive"
  27447. abstract="false" native="false" synchronized="false"
  27448. static="false" final="false" visibility="public"
  27449. deprecated="not deprecated">
  27450. <param name="keys" type="java.util.List"/>
  27451. <doc>
  27452. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  27453. @param keys The list of false positive.]]>
  27454. </doc>
  27455. </method>
  27456. <method name="addFalsePositive"
  27457. abstract="false" native="false" synchronized="false"
  27458. static="false" final="false" visibility="public"
  27459. deprecated="not deprecated">
  27460. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  27461. <doc>
  27462. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  27463. @param keys The array of false positive.]]>
  27464. </doc>
  27465. </method>
  27466. <method name="selectiveClearing"
  27467. abstract="false" native="false" synchronized="false"
  27468. static="false" final="false" visibility="public"
  27469. deprecated="not deprecated">
  27470. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  27471. <param name="scheme" type="short"/>
  27472. <doc>
  27473. <![CDATA[Performs the selective clearing for a given key.
  27474. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  27475. @param scheme The selective clearing scheme to apply.]]>
  27476. </doc>
  27477. </method>
  27478. <method name="write"
  27479. abstract="false" native="false" synchronized="false"
  27480. static="false" final="false" visibility="public"
  27481. deprecated="not deprecated">
  27482. <param name="out" type="java.io.DataOutput"/>
  27483. <exception name="IOException" type="java.io.IOException"/>
  27484. </method>
  27485. <method name="readFields"
  27486. abstract="false" native="false" synchronized="false"
  27487. static="false" final="false" visibility="public"
  27488. deprecated="not deprecated">
  27489. <param name="in" type="java.io.DataInput"/>
  27490. <exception name="IOException" type="java.io.IOException"/>
  27491. </method>
  27492. <doc>
  27493. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  27494. <p>
  27495. It allows the removal of selected false positives at the cost of introducing
  27496. random false negatives, and with the benefit of eliminating some random false
  27497. positives at the same time.
  27498. <p>
  27499. Originally created by
  27500. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  27501. @see Filter The general behavior of a filter
  27502. @see BloomFilter A Bloom filter
  27503. @see RemoveScheme The different selective clearing algorithms
  27504. @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>]]>
  27505. </doc>
  27506. </class>
  27507. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  27508. </package>
  27509. <package name="org.apache.hadoop.util.hash">
  27510. </package>
  27511. </api>