hadoop-core_0.21.0.xml 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Tue Aug 24 10:42:16 PDT 2010 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop-core 0.21.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsJDiffDoclet -docletpath /Users/tom/workspace/hadoop-common-0.21-committer/build/hadoop-common-0.21.0.jar:/Users/tom/workspace/hadoop-common-0.21-committer/build/ivy/lib/Hadoop-Common/jdiff/jdiff-1.0.9.jar -classpath /Users/tom/workspace/hadoop-common-0.21-committer/build/classes:/Users/tom/workspace/hadoop-common-0.21-committer/conf:/Users/tom/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/Users/tom/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/Users/tom/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.1.jar:/Users/tom/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/Users/tom/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/Users/tom/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/Users/tom/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.7.1.jar:/Users/tom/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/Users/tom/.ivy2/cache/org.mortbay.jetty/servlet-api-2.5/jars/servlet-api-2.5-6.1.14.jar:/Users/tom/.ivy2/cache/net.sf.kosmosfs/kfs/jars/kfs-0.3.jar:/Users/tom/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.14.jar:/Users/tom/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.14.jar:/Users/tom/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/Users/tom/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/Users/tom/.ivy2/cache/org.mortbay.jetty/jsp-api-2.1/jars/jsp-api-2.1-6.1.14.jar:/Users/tom/.ivy2/cache/org.mortbay.jetty/jsp-2.1/jars/jsp-2.1-6.1.14.jar:/Users/tom/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/Users/tom/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/Users/tom/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/Users/tom/.ivy2/cache/junit/junit/jars/junit-4.8.1.jar:/Users/tom/.ivy2/cache/hsqldb/hsqldb/jars/hsqldb-1.8.0.10.jar:/Users/tom/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.1.jar:/Users/tom/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.5.11.jar:/Users/tom/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/Users/tom/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.5.11.jar:/Users/tom/.ivy2/cache/org.apache.hadoop/avro/jars/avro-1.3.2.jar:/Users/tom/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.4.2.jar:/Users/tom/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.4.2.jar:/Users/tom/.ivy2/cache/com.thoughtworks.paranamer/paranamer/jars/paranamer-2.2.jar:/Users/tom/.ivy2/cache/com.thoughtworks.paranamer/paranamer-ant/jars/paranamer-ant-2.2.jar:/Users/tom/.ivy2/cache/com.thoughtworks.paranamer/paranamer-generator/jars/paranamer-generator-2.2.jar:/Users/tom/.ivy2/cache/com.thoughtworks.qdox/qdox/jars/qdox-1.10.1.jar:/Users/tom/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/Users/tom/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.5.jar:/Users/tom/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.5.jar:/Users/tom/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.5.jar:/Users/tom/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.2.jar:/usr/share/ant/lib/ant-launcher.jar:/Users/tom/.ant/lib/ivy.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-jai.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-testutil.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ivy-2.1.0.jar:/usr/share/ant/lib/xercesImpl.jar:/usr/share/ant/lib/xml-apis.jar -sourcepath /Users/tom/workspace/hadoop-common-0.21-committer/src/java -apidir /Users/tom/workspace/hadoop-common-0.21-committer/lib/jdiff -apiname hadoop-core 0.21.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="getRaw" 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, without doing
  317. <a href="#VariableExpansion">variable expansion</a>.If the key is
  318. deprecated, it returns the value of the first key which replaces
  319. the deprecated key and is not null.
  320. @param name the property name.
  321. @return the value of the <code>name</code> property or
  322. its replacing property and null if no such property exists.]]>
  323. </doc>
  324. </method>
  325. <method name="set"
  326. abstract="false" native="false" synchronized="false"
  327. static="false" final="false" visibility="public"
  328. deprecated="not deprecated">
  329. <param name="name" type="java.lang.String"/>
  330. <param name="value" type="java.lang.String"/>
  331. <doc>
  332. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  333. <code>name</code> is deprecated, it sets the <code>value</code> to the keys
  334. that replace the deprecated key.
  335. @param name property name.
  336. @param value property value.]]>
  337. </doc>
  338. </method>
  339. <method name="setIfUnset"
  340. abstract="false" native="false" synchronized="false"
  341. static="false" final="false" visibility="public"
  342. deprecated="not deprecated">
  343. <param name="name" type="java.lang.String"/>
  344. <param name="value" type="java.lang.String"/>
  345. <doc>
  346. <![CDATA[Sets a property if it is currently unset.
  347. @param name the property name
  348. @param value the new value]]>
  349. </doc>
  350. </method>
  351. <method name="get" return="java.lang.String"
  352. abstract="false" native="false" synchronized="false"
  353. static="false" final="false" visibility="public"
  354. deprecated="not deprecated">
  355. <param name="name" type="java.lang.String"/>
  356. <param name="defaultValue" type="java.lang.String"/>
  357. <doc>
  358. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  359. it returns the value of the first key which replaces the deprecated key
  360. and is not null.
  361. If no such property exists,
  362. then <code>defaultValue</code> is returned.
  363. @param name property name.
  364. @param defaultValue default value.
  365. @return property value, or <code>defaultValue</code> if the property
  366. doesn't exist.]]>
  367. </doc>
  368. </method>
  369. <method name="getInt" return="int"
  370. abstract="false" native="false" synchronized="false"
  371. static="false" final="false" visibility="public"
  372. deprecated="not deprecated">
  373. <param name="name" type="java.lang.String"/>
  374. <param name="defaultValue" type="int"/>
  375. <doc>
  376. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  377. If no such property exists, or if the specified value is not a valid
  378. <code>int</code>, then <code>defaultValue</code> is returned.
  379. @param name property name.
  380. @param defaultValue default value.
  381. @return property value as an <code>int</code>,
  382. or <code>defaultValue</code>.]]>
  383. </doc>
  384. </method>
  385. <method name="setInt"
  386. abstract="false" native="false" synchronized="false"
  387. static="false" final="false" visibility="public"
  388. deprecated="not deprecated">
  389. <param name="name" type="java.lang.String"/>
  390. <param name="value" type="int"/>
  391. <doc>
  392. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  393. @param name property name.
  394. @param value <code>int</code> value of the property.]]>
  395. </doc>
  396. </method>
  397. <method name="getLong" return="long"
  398. abstract="false" native="false" synchronized="false"
  399. static="false" final="false" visibility="public"
  400. deprecated="not deprecated">
  401. <param name="name" type="java.lang.String"/>
  402. <param name="defaultValue" type="long"/>
  403. <doc>
  404. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  405. If no such property is specified, or if the specified value is not a valid
  406. <code>long</code>, then <code>defaultValue</code> is returned.
  407. @param name property name.
  408. @param defaultValue default value.
  409. @return property value as a <code>long</code>,
  410. or <code>defaultValue</code>.]]>
  411. </doc>
  412. </method>
  413. <method name="setLong"
  414. abstract="false" native="false" synchronized="false"
  415. static="false" final="false" visibility="public"
  416. deprecated="not deprecated">
  417. <param name="name" type="java.lang.String"/>
  418. <param name="value" type="long"/>
  419. <doc>
  420. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  421. @param name property name.
  422. @param value <code>long</code> value of the property.]]>
  423. </doc>
  424. </method>
  425. <method name="getFloat" return="float"
  426. abstract="false" native="false" synchronized="false"
  427. static="false" final="false" visibility="public"
  428. deprecated="not deprecated">
  429. <param name="name" type="java.lang.String"/>
  430. <param name="defaultValue" type="float"/>
  431. <doc>
  432. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  433. If no such property is specified, or if the specified value is not a valid
  434. <code>float</code>, then <code>defaultValue</code> is returned.
  435. @param name property name.
  436. @param defaultValue default value.
  437. @return property value as a <code>float</code>,
  438. or <code>defaultValue</code>.]]>
  439. </doc>
  440. </method>
  441. <method name="setFloat"
  442. abstract="false" native="false" synchronized="false"
  443. static="false" final="false" visibility="public"
  444. deprecated="not deprecated">
  445. <param name="name" type="java.lang.String"/>
  446. <param name="value" type="float"/>
  447. <doc>
  448. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  449. @param name property name.
  450. @param value property value.]]>
  451. </doc>
  452. </method>
  453. <method name="getBoolean" return="boolean"
  454. abstract="false" native="false" synchronized="false"
  455. static="false" final="false" visibility="public"
  456. deprecated="not deprecated">
  457. <param name="name" type="java.lang.String"/>
  458. <param name="defaultValue" type="boolean"/>
  459. <doc>
  460. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  461. If no such property is specified, or if the specified value is not a valid
  462. <code>boolean</code>, then <code>defaultValue</code> is returned.
  463. @param name property name.
  464. @param defaultValue default value.
  465. @return property value as a <code>boolean</code>,
  466. or <code>defaultValue</code>.]]>
  467. </doc>
  468. </method>
  469. <method name="setBoolean"
  470. abstract="false" native="false" synchronized="false"
  471. static="false" final="false" visibility="public"
  472. deprecated="not deprecated">
  473. <param name="name" type="java.lang.String"/>
  474. <param name="value" type="boolean"/>
  475. <doc>
  476. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  477. @param name property name.
  478. @param value <code>boolean</code> value of the property.]]>
  479. </doc>
  480. </method>
  481. <method name="setBooleanIfUnset"
  482. abstract="false" native="false" synchronized="false"
  483. static="false" final="false" visibility="public"
  484. deprecated="not deprecated">
  485. <param name="name" type="java.lang.String"/>
  486. <param name="value" type="boolean"/>
  487. <doc>
  488. <![CDATA[Set the given property, if it is currently unset.
  489. @param name property name
  490. @param value new value]]>
  491. </doc>
  492. </method>
  493. <method name="setEnum"
  494. abstract="false" native="false" synchronized="false"
  495. static="false" final="false" visibility="public"
  496. deprecated="not deprecated">
  497. <param name="name" type="java.lang.String"/>
  498. <param name="value" type="T"/>
  499. <doc>
  500. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  501. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  502. @param name property name
  503. @param value new value]]>
  504. </doc>
  505. </method>
  506. <method name="getEnum" return="T"
  507. abstract="false" native="false" synchronized="false"
  508. static="false" final="false" visibility="public"
  509. deprecated="not deprecated">
  510. <param name="name" type="java.lang.String"/>
  511. <param name="defaultValue" type="T"/>
  512. <doc>
  513. <![CDATA[Return value matching this enumerated type.
  514. @param name Property name
  515. @param defaultValue Value returned if no mapping exists
  516. @throws IllegalArgumentException If mapping is illegal for the type
  517. provided]]>
  518. </doc>
  519. </method>
  520. <method name="getPattern" return="java.util.regex.Pattern"
  521. abstract="false" native="false" synchronized="false"
  522. static="false" final="false" visibility="public"
  523. deprecated="not deprecated">
  524. <param name="name" type="java.lang.String"/>
  525. <param name="defaultValue" type="java.util.regex.Pattern"/>
  526. <doc>
  527. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  528. If no such property is specified, or if the specified value is not a valid
  529. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  530. @param name property name
  531. @param defaultValue default value
  532. @return property value as a compiled Pattern, or defaultValue]]>
  533. </doc>
  534. </method>
  535. <method name="setPattern"
  536. abstract="false" native="false" synchronized="false"
  537. static="false" final="false" visibility="public"
  538. deprecated="not deprecated">
  539. <param name="name" type="java.lang.String"/>
  540. <param name="pattern" type="java.util.regex.Pattern"/>
  541. <doc>
  542. <![CDATA[Set the given property to <code>Pattern</code>.
  543. If the pattern is passed as null, sets the empty pattern which results in
  544. further calls to getPattern(...) returning the default value.
  545. @param name property name
  546. @param pattern new value]]>
  547. </doc>
  548. </method>
  549. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  550. abstract="false" native="false" synchronized="false"
  551. static="false" final="false" visibility="public"
  552. deprecated="not deprecated">
  553. <param name="name" type="java.lang.String"/>
  554. <param name="defaultValue" type="java.lang.String"/>
  555. <doc>
  556. <![CDATA[Parse the given attribute as a set of integer ranges
  557. @param name the attribute name
  558. @param defaultValue the default value if it is not set
  559. @return a new set of ranges from the configured value]]>
  560. </doc>
  561. </method>
  562. <method name="getStringCollection" return="java.util.Collection"
  563. abstract="false" native="false" synchronized="false"
  564. static="false" final="false" visibility="public"
  565. deprecated="not deprecated">
  566. <param name="name" type="java.lang.String"/>
  567. <doc>
  568. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  569. a collection of <code>String</code>s.
  570. If no such property is specified then empty collection is returned.
  571. <p>
  572. This is an optimized version of {@link #getStrings(String)}
  573. @param name property name.
  574. @return property value as a collection of <code>String</code>s.]]>
  575. </doc>
  576. </method>
  577. <method name="getStrings" return="java.lang.String[]"
  578. abstract="false" native="false" synchronized="false"
  579. static="false" final="false" visibility="public"
  580. deprecated="not deprecated">
  581. <param name="name" type="java.lang.String"/>
  582. <doc>
  583. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  584. an array of <code>String</code>s.
  585. If no such property is specified then <code>null</code> is returned.
  586. @param name property name.
  587. @return property value as an array of <code>String</code>s,
  588. or <code>null</code>.]]>
  589. </doc>
  590. </method>
  591. <method name="getStrings" return="java.lang.String[]"
  592. abstract="false" native="false" synchronized="false"
  593. static="false" final="false" visibility="public"
  594. deprecated="not deprecated">
  595. <param name="name" type="java.lang.String"/>
  596. <param name="defaultValue" type="java.lang.String[]"/>
  597. <doc>
  598. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  599. an array of <code>String</code>s.
  600. If no such property is specified then default value is returned.
  601. @param name property name.
  602. @param defaultValue The default value
  603. @return property value as an array of <code>String</code>s,
  604. or default value.]]>
  605. </doc>
  606. </method>
  607. <method name="getTrimmedStringCollection" return="java.util.Collection"
  608. abstract="false" native="false" synchronized="false"
  609. static="false" final="false" visibility="public"
  610. deprecated="not deprecated">
  611. <param name="name" type="java.lang.String"/>
  612. <doc>
  613. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  614. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  615. If no such property is specified then empty <code>Collection</code> is returned.
  616. @param name property name.
  617. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  618. </doc>
  619. </method>
  620. <method name="getTrimmedStrings" return="java.lang.String[]"
  621. abstract="false" native="false" synchronized="false"
  622. static="false" final="false" visibility="public"
  623. deprecated="not deprecated">
  624. <param name="name" type="java.lang.String"/>
  625. <doc>
  626. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  627. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  628. If no such property is specified then an empty array is returned.
  629. @param name property name.
  630. @return property value as an array of trimmed <code>String</code>s,
  631. or empty array.]]>
  632. </doc>
  633. </method>
  634. <method name="getTrimmedStrings" return="java.lang.String[]"
  635. abstract="false" native="false" synchronized="false"
  636. static="false" final="false" visibility="public"
  637. deprecated="not deprecated">
  638. <param name="name" type="java.lang.String"/>
  639. <param name="defaultValue" type="java.lang.String[]"/>
  640. <doc>
  641. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  642. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  643. If no such property is specified then default value is returned.
  644. @param name property name.
  645. @param defaultValue The default value
  646. @return property value as an array of trimmed <code>String</code>s,
  647. or default value.]]>
  648. </doc>
  649. </method>
  650. <method name="setStrings"
  651. abstract="false" native="false" synchronized="false"
  652. static="false" final="false" visibility="public"
  653. deprecated="not deprecated">
  654. <param name="name" type="java.lang.String"/>
  655. <param name="values" type="java.lang.String[]"/>
  656. <doc>
  657. <![CDATA[Set the array of string values for the <code>name</code> property as
  658. as comma delimited values.
  659. @param name property name.
  660. @param values The values]]>
  661. </doc>
  662. </method>
  663. <method name="getClassByName" return="java.lang.Class"
  664. abstract="false" native="false" synchronized="false"
  665. static="false" final="false" visibility="public"
  666. deprecated="not deprecated">
  667. <param name="name" type="java.lang.String"/>
  668. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  669. <doc>
  670. <![CDATA[Load a class by name.
  671. @param name the class name.
  672. @return the class object.
  673. @throws ClassNotFoundException if the class is not found.]]>
  674. </doc>
  675. </method>
  676. <method name="getClasses" return="java.lang.Class[]"
  677. abstract="false" native="false" synchronized="false"
  678. static="false" final="false" visibility="public"
  679. deprecated="not deprecated">
  680. <param name="name" type="java.lang.String"/>
  681. <param name="defaultValue" type="java.lang.Class[]"/>
  682. <doc>
  683. <![CDATA[Get the value of the <code>name</code> property
  684. as an array of <code>Class</code>.
  685. The value of the property specifies a list of comma separated class names.
  686. If no such property is specified, then <code>defaultValue</code> is
  687. returned.
  688. @param name the property name.
  689. @param defaultValue default value.
  690. @return property value as a <code>Class[]</code>,
  691. or <code>defaultValue</code>.]]>
  692. </doc>
  693. </method>
  694. <method name="getClass" return="java.lang.Class"
  695. abstract="false" native="false" synchronized="false"
  696. static="false" final="false" visibility="public"
  697. deprecated="not deprecated">
  698. <param name="name" type="java.lang.String"/>
  699. <param name="defaultValue" type="java.lang.Class"/>
  700. <doc>
  701. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  702. If no such property is specified, then <code>defaultValue</code> is
  703. returned.
  704. @param name the class name.
  705. @param defaultValue default value.
  706. @return property value as a <code>Class</code>,
  707. or <code>defaultValue</code>.]]>
  708. </doc>
  709. </method>
  710. <method name="getClass" return="java.lang.Class"
  711. abstract="false" native="false" synchronized="false"
  712. static="false" final="false" visibility="public"
  713. deprecated="not deprecated">
  714. <param name="name" type="java.lang.String"/>
  715. <param name="defaultValue" type="java.lang.Class"/>
  716. <param name="xface" type="java.lang.Class"/>
  717. <doc>
  718. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  719. implementing the interface specified by <code>xface</code>.
  720. If no such property is specified, then <code>defaultValue</code> is
  721. returned.
  722. An exception is thrown if the returned class does not implement the named
  723. interface.
  724. @param name the class name.
  725. @param defaultValue default value.
  726. @param xface the interface implemented by the named class.
  727. @return property value as a <code>Class</code>,
  728. or <code>defaultValue</code>.]]>
  729. </doc>
  730. </method>
  731. <method name="getInstances" return="java.util.List"
  732. abstract="false" native="false" synchronized="false"
  733. static="false" final="false" visibility="public"
  734. deprecated="not deprecated">
  735. <param name="name" type="java.lang.String"/>
  736. <param name="xface" type="java.lang.Class"/>
  737. <doc>
  738. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  739. of objects implementing the interface specified by <code>xface</code>.
  740. An exception is thrown if any of the classes does not exist, or if it does
  741. not implement the named interface.
  742. @param name the property name.
  743. @param xface the interface implemented by the classes named by
  744. <code>name</code>.
  745. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  746. </doc>
  747. </method>
  748. <method name="setClass"
  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="theClass" type="java.lang.Class"/>
  754. <param name="xface" type="java.lang.Class"/>
  755. <doc>
  756. <![CDATA[Set the value of the <code>name</code> property to the name of a
  757. <code>theClass</code> implementing the given interface <code>xface</code>.
  758. An exception is thrown if <code>theClass</code> does not implement the
  759. interface <code>xface</code>.
  760. @param name property name.
  761. @param theClass property value.
  762. @param xface the interface implemented by the named class.]]>
  763. </doc>
  764. </method>
  765. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  766. abstract="false" native="false" synchronized="false"
  767. static="false" final="false" visibility="public"
  768. deprecated="not deprecated">
  769. <param name="dirsProp" type="java.lang.String"/>
  770. <param name="path" type="java.lang.String"/>
  771. <exception name="IOException" type="java.io.IOException"/>
  772. <doc>
  773. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  774. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  775. then one is chosen based on <i>path</i>'s hash code. If the selected
  776. directory does not exist, an attempt is made to create it.
  777. @param dirsProp directory in which to locate the file.
  778. @param path file-path.
  779. @return local file under the directory with the given path.]]>
  780. </doc>
  781. </method>
  782. <method name="getFile" return="java.io.File"
  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 name under a directory named in <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="getResource" return="java.net.URL"
  800. abstract="false" native="false" synchronized="false"
  801. static="false" final="false" visibility="public"
  802. deprecated="not deprecated">
  803. <param name="name" type="java.lang.String"/>
  804. <doc>
  805. <![CDATA[Get the {@link URL} for the named resource.
  806. @param name resource name.
  807. @return the url for the named resource.]]>
  808. </doc>
  809. </method>
  810. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  811. abstract="false" native="false" synchronized="false"
  812. static="false" final="false" visibility="public"
  813. deprecated="not deprecated">
  814. <param name="name" type="java.lang.String"/>
  815. <doc>
  816. <![CDATA[Get an input stream attached to the configuration resource with the
  817. given <code>name</code>.
  818. @param name configuration resource name.
  819. @return an input stream attached to the resource.]]>
  820. </doc>
  821. </method>
  822. <method name="getConfResourceAsReader" return="java.io.Reader"
  823. abstract="false" native="false" synchronized="false"
  824. static="false" final="false" visibility="public"
  825. deprecated="not deprecated">
  826. <param name="name" type="java.lang.String"/>
  827. <doc>
  828. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  829. given <code>name</code>.
  830. @param name configuration resource name.
  831. @return a reader attached to the resource.]]>
  832. </doc>
  833. </method>
  834. <method name="getProps" return="java.util.Properties"
  835. abstract="false" native="false" synchronized="true"
  836. static="false" final="false" visibility="protected"
  837. deprecated="not deprecated">
  838. </method>
  839. <method name="size" return="int"
  840. abstract="false" native="false" synchronized="false"
  841. static="false" final="false" visibility="public"
  842. deprecated="not deprecated">
  843. <doc>
  844. <![CDATA[Return the number of keys in the configuration.
  845. @return number of keys in the configuration.]]>
  846. </doc>
  847. </method>
  848. <method name="clear"
  849. abstract="false" native="false" synchronized="false"
  850. static="false" final="false" visibility="public"
  851. deprecated="not deprecated">
  852. <doc>
  853. <![CDATA[Clears all keys from the configuration.]]>
  854. </doc>
  855. </method>
  856. <method name="iterator" return="java.util.Iterator"
  857. abstract="false" native="false" synchronized="false"
  858. static="false" final="false" visibility="public"
  859. deprecated="not deprecated">
  860. <doc>
  861. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  862. key-value pairs in the configuration.
  863. @return an iterator over the entries.]]>
  864. </doc>
  865. </method>
  866. <method name="writeXml"
  867. abstract="false" native="false" synchronized="false"
  868. static="false" final="false" visibility="public"
  869. deprecated="not deprecated">
  870. <param name="out" type="java.io.OutputStream"/>
  871. <exception name="IOException" type="java.io.IOException"/>
  872. <doc>
  873. <![CDATA[Write out the non-default properties in this configuration to the given
  874. {@link OutputStream}.
  875. @param out the output stream to write to.]]>
  876. </doc>
  877. </method>
  878. <method name="writeXml"
  879. abstract="false" native="false" synchronized="true"
  880. static="false" final="false" visibility="public"
  881. deprecated="not deprecated">
  882. <param name="out" type="java.io.Writer"/>
  883. <exception name="IOException" type="java.io.IOException"/>
  884. <doc>
  885. <![CDATA[Write out the non-default properties in this configuration to the given
  886. {@link Writer}.
  887. @param out the writer to write to.]]>
  888. </doc>
  889. </method>
  890. <method name="dumpConfiguration"
  891. abstract="false" native="false" synchronized="false"
  892. static="true" final="false" visibility="public"
  893. deprecated="not deprecated">
  894. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  895. <param name="out" type="java.io.Writer"/>
  896. <exception name="IOException" type="java.io.IOException"/>
  897. <doc>
  898. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  899. the given {@link Writer}
  900. The format of the output would be
  901. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  902. key2.isFinal,key2.resource}... ] }
  903. It does not output the parameters of the configuration object which is
  904. loaded from an input stream.
  905. @param out the Writer to write to
  906. @throws IOException]]>
  907. </doc>
  908. </method>
  909. <method name="getClassLoader" return="java.lang.ClassLoader"
  910. abstract="false" native="false" synchronized="false"
  911. static="false" final="false" visibility="public"
  912. deprecated="not deprecated">
  913. <doc>
  914. <![CDATA[Get the {@link ClassLoader} for this job.
  915. @return the correct class loader.]]>
  916. </doc>
  917. </method>
  918. <method name="setClassLoader"
  919. abstract="false" native="false" synchronized="false"
  920. static="false" final="false" visibility="public"
  921. deprecated="not deprecated">
  922. <param name="classLoader" type="java.lang.ClassLoader"/>
  923. <doc>
  924. <![CDATA[Set the class loader that will be used to load the various objects.
  925. @param classLoader the new class loader.]]>
  926. </doc>
  927. </method>
  928. <method name="toString" return="java.lang.String"
  929. abstract="false" native="false" synchronized="false"
  930. static="false" final="false" visibility="public"
  931. deprecated="not deprecated">
  932. </method>
  933. <method name="setQuietMode"
  934. abstract="false" native="false" synchronized="true"
  935. static="false" final="false" visibility="public"
  936. deprecated="not deprecated">
  937. <param name="quietmode" type="boolean"/>
  938. <doc>
  939. <![CDATA[Set the quietness-mode.
  940. In the quiet-mode, error and informational messages might not be logged.
  941. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  942. to turn it off.]]>
  943. </doc>
  944. </method>
  945. <method name="main"
  946. abstract="false" native="false" synchronized="false"
  947. static="true" final="false" visibility="public"
  948. deprecated="not deprecated">
  949. <param name="args" type="java.lang.String[]"/>
  950. <exception name="Exception" type="java.lang.Exception"/>
  951. <doc>
  952. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  953. </doc>
  954. </method>
  955. <method name="readFields"
  956. abstract="false" native="false" synchronized="false"
  957. static="false" final="false" visibility="public"
  958. deprecated="not deprecated">
  959. <param name="in" type="java.io.DataInput"/>
  960. <exception name="IOException" type="java.io.IOException"/>
  961. </method>
  962. <method name="write"
  963. abstract="false" native="false" synchronized="false"
  964. static="false" final="false" visibility="public"
  965. deprecated="not deprecated">
  966. <param name="out" type="java.io.DataOutput"/>
  967. <exception name="IOException" type="java.io.IOException"/>
  968. </method>
  969. <doc>
  970. <![CDATA[Provides access to configuration parameters.
  971. <h4 id="Resources">Resources</h4>
  972. <p>Configurations are specified by resources. A resource contains a set of
  973. name/value pairs as XML data. Each resource is named by either a
  974. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  975. then the classpath is examined for a file with that name. If named by a
  976. <code>Path</code>, then the local filesystem is examined directly, without
  977. referring to the classpath.
  978. <p>Unless explicitly turned off, Hadoop by default specifies two
  979. resources, loaded in-order from the classpath: <ol>
  980. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  981. </tt>: Read-only defaults for hadoop.</li>
  982. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  983. installation.</li>
  984. </ol>
  985. Applications may add additional resources, which are loaded
  986. subsequent to these resources in the order they are added.
  987. <h4 id="FinalParams">Final Parameters</h4>
  988. <p>Configuration parameters may be declared <i>final</i>.
  989. Once a resource declares a value final, no subsequently-loaded
  990. resource can alter that value.
  991. For example, one might define a final parameter with:
  992. <tt><pre>
  993. &lt;property&gt;
  994. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  995. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  996. <b>&lt;final&gt;true&lt;/final&gt;</b>
  997. &lt;/property&gt;</pre></tt>
  998. Administrators typically define parameters as final in
  999. <tt>core-site.xml</tt> for values that user applications may not alter.
  1000. <h4 id="VariableExpansion">Variable Expansion</h4>
  1001. <p>Value strings are first processed for <i>variable expansion</i>. The
  1002. available properties are:<ol>
  1003. <li>Other properties defined in this Configuration; and, if a name is
  1004. undefined here,</li>
  1005. <li>Properties in {@link System#getProperties()}.</li>
  1006. </ol>
  1007. <p>For example, if a configuration resource contains the following property
  1008. definitions:
  1009. <tt><pre>
  1010. &lt;property&gt;
  1011. &lt;name&gt;basedir&lt;/name&gt;
  1012. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1013. &lt;/property&gt;
  1014. &lt;property&gt;
  1015. &lt;name&gt;tempdir&lt;/name&gt;
  1016. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1017. &lt;/property&gt;</pre></tt>
  1018. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1019. will be resolved to another property in this Configuration, while
  1020. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1021. of the System property with that name.]]>
  1022. </doc>
  1023. </class>
  1024. <!-- end class org.apache.hadoop.conf.Configuration -->
  1025. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1026. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  1027. abstract="false"
  1028. static="true" final="false" visibility="public"
  1029. deprecated="not deprecated">
  1030. <constructor name="Configuration.IntegerRanges"
  1031. static="false" final="false" visibility="public"
  1032. deprecated="not deprecated">
  1033. </constructor>
  1034. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  1035. static="false" final="false" visibility="public"
  1036. deprecated="not deprecated">
  1037. </constructor>
  1038. <method name="isIncluded" return="boolean"
  1039. abstract="false" native="false" synchronized="false"
  1040. static="false" final="false" visibility="public"
  1041. deprecated="not deprecated">
  1042. <param name="value" type="int"/>
  1043. <doc>
  1044. <![CDATA[Is the given value in the set of ranges
  1045. @param value the value to check
  1046. @return is the value in the ranges?]]>
  1047. </doc>
  1048. </method>
  1049. <method name="toString" return="java.lang.String"
  1050. abstract="false" native="false" synchronized="false"
  1051. static="false" final="false" visibility="public"
  1052. deprecated="not deprecated">
  1053. </method>
  1054. <doc>
  1055. <![CDATA[A class that represents a set of positive integer ranges. It parses
  1056. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  1057. the lower/upper bounds are separated by dash. Either the lower or upper
  1058. bound may be omitted meaning all values up to or over. So the string
  1059. above means 2, 3, 5, and 7, 8, 9, ...]]>
  1060. </doc>
  1061. </class>
  1062. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1063. <!-- start class org.apache.hadoop.conf.Configured -->
  1064. <class name="Configured" extends="java.lang.Object"
  1065. abstract="false"
  1066. static="false" final="false" visibility="public"
  1067. deprecated="not deprecated">
  1068. <implements name="org.apache.hadoop.conf.Configurable"/>
  1069. <constructor name="Configured"
  1070. static="false" final="false" visibility="public"
  1071. deprecated="not deprecated">
  1072. <doc>
  1073. <![CDATA[Construct a Configured.]]>
  1074. </doc>
  1075. </constructor>
  1076. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1077. static="false" final="false" visibility="public"
  1078. deprecated="not deprecated">
  1079. <doc>
  1080. <![CDATA[Construct a Configured.]]>
  1081. </doc>
  1082. </constructor>
  1083. <method name="setConf"
  1084. abstract="false" native="false" synchronized="false"
  1085. static="false" final="false" visibility="public"
  1086. deprecated="not deprecated">
  1087. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1088. </method>
  1089. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1090. abstract="false" native="false" synchronized="false"
  1091. static="false" final="false" visibility="public"
  1092. deprecated="not deprecated">
  1093. </method>
  1094. <doc>
  1095. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1096. </doc>
  1097. </class>
  1098. <!-- end class org.apache.hadoop.conf.Configured -->
  1099. <!-- start class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1100. <class name="ConfServlet.BadFormatException" extends="java.lang.Exception"
  1101. abstract="false"
  1102. static="true" final="false" visibility="public"
  1103. deprecated="not deprecated">
  1104. <constructor name="ConfServlet.BadFormatException" type="java.lang.String"
  1105. static="false" final="false" visibility="public"
  1106. deprecated="not deprecated">
  1107. </constructor>
  1108. </class>
  1109. <!-- end class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1110. <doc>
  1111. <![CDATA[Configuration of system parameters.]]>
  1112. </doc>
  1113. </package>
  1114. <package name="org.apache.hadoop.fs">
  1115. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  1116. <class name="AbstractFileSystem" extends="java.lang.Object"
  1117. abstract="true"
  1118. static="false" final="false" visibility="public"
  1119. deprecated="not deprecated">
  1120. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  1121. static="false" final="false" visibility="protected"
  1122. deprecated="not deprecated">
  1123. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  1124. <doc>
  1125. <![CDATA[Constructor to be called by subclasses.
  1126. @param uri for this file system.
  1127. @param supportedScheme the scheme supported by the implementor
  1128. @param authorityNeeded if true then theURI must have authority, if false
  1129. then the URI must have null authority.
  1130. @throws URISyntaxException <code>uri</code> has syntax error]]>
  1131. </doc>
  1132. </constructor>
  1133. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1134. abstract="false" native="false" synchronized="false"
  1135. static="false" final="false" visibility="protected"
  1136. deprecated="not deprecated">
  1137. </method>
  1138. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1139. abstract="false" native="false" synchronized="true"
  1140. static="true" final="false" visibility="protected"
  1141. deprecated="not deprecated">
  1142. <param name="scheme" type="java.lang.String"/>
  1143. <param name="cls" type="java.lang.Class"/>
  1144. <doc>
  1145. <![CDATA[Get the statistics for a particular file system.
  1146. @param cls the class to lookup
  1147. @return a statistics object]]>
  1148. </doc>
  1149. </method>
  1150. <method name="clearStatistics"
  1151. abstract="false" native="false" synchronized="true"
  1152. static="true" final="false" visibility="protected"
  1153. deprecated="not deprecated">
  1154. </method>
  1155. <method name="printStatistics"
  1156. abstract="false" native="false" synchronized="true"
  1157. static="true" final="false" visibility="protected"
  1158. deprecated="not deprecated">
  1159. </method>
  1160. <method name="checkScheme"
  1161. abstract="false" native="false" synchronized="false"
  1162. static="false" final="false" visibility="protected"
  1163. deprecated="not deprecated">
  1164. <param name="uri" type="java.net.URI"/>
  1165. <param name="supportedScheme" type="java.lang.String"/>
  1166. </method>
  1167. <method name="getUriDefaultPort" return="int"
  1168. abstract="true" native="false" synchronized="false"
  1169. static="false" final="false" visibility="protected"
  1170. deprecated="not deprecated">
  1171. <doc>
  1172. <![CDATA[The default port of this file system.
  1173. @return default port of this file system's Uri scheme
  1174. A uri with a port of -1 => default port;]]>
  1175. </doc>
  1176. </method>
  1177. <method name="getUri" return="java.net.URI"
  1178. abstract="false" native="false" synchronized="false"
  1179. static="false" final="false" visibility="protected"
  1180. deprecated="not deprecated">
  1181. <doc>
  1182. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  1183. @return the uri of this file system.]]>
  1184. </doc>
  1185. </method>
  1186. <method name="checkPath"
  1187. abstract="false" native="false" synchronized="false"
  1188. static="false" final="false" visibility="protected"
  1189. deprecated="not deprecated">
  1190. <param name="path" type="org.apache.hadoop.fs.Path"/>
  1191. <doc>
  1192. <![CDATA[Check that a Path belongs to this FileSystem.
  1193. If the path is fully qualified URI, then its scheme and authority
  1194. matches that of this file system. Otherwise the path must be
  1195. slash-relative name.
  1196. @throws InvalidPathException if the path is invalid]]>
  1197. </doc>
  1198. </method>
  1199. <method name="getUriPath" return="java.lang.String"
  1200. abstract="false" native="false" synchronized="false"
  1201. static="false" final="false" visibility="protected"
  1202. deprecated="not deprecated">
  1203. <param name="p" type="org.apache.hadoop.fs.Path"/>
  1204. <doc>
  1205. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  1206. and that the path-part is a valid name.
  1207. @param p path
  1208. @return path-part of the Path p]]>
  1209. </doc>
  1210. </method>
  1211. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  1212. abstract="false" native="false" synchronized="false"
  1213. static="false" final="false" visibility="protected"
  1214. deprecated="not deprecated">
  1215. <doc>
  1216. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  1217. that is used as the starting workingDir. For other file systems
  1218. like HDFS there is no built in notion of an initial workingDir.
  1219. @return the initial workingDir if the file system has such a notion
  1220. otherwise return a null.]]>
  1221. </doc>
  1222. </method>
  1223. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  1224. abstract="false" native="false" synchronized="false"
  1225. static="false" final="false" visibility="protected"
  1226. deprecated="not deprecated">
  1227. <doc>
  1228. <![CDATA[Return the current user's home directory in this file system.
  1229. The default implementation returns "/user/$USER/".
  1230. @return current user's home directory.]]>
  1231. </doc>
  1232. </method>
  1233. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  1234. abstract="true" native="false" synchronized="false"
  1235. static="false" final="false" visibility="protected"
  1236. deprecated="not deprecated">
  1237. <exception name="IOException" type="java.io.IOException"/>
  1238. <doc>
  1239. <![CDATA[Return a set of server default configuration values.
  1240. @return server default configuration values
  1241. @throws IOException an I/O error occurred]]>
  1242. </doc>
  1243. </method>
  1244. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1245. abstract="false" native="false" synchronized="false"
  1246. static="false" final="true" visibility="protected"
  1247. deprecated="not deprecated">
  1248. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1249. <param name="createFlag" type="java.util.EnumSet"/>
  1250. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  1251. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1252. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1253. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1254. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1255. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1256. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1257. <exception name="IOException" type="java.io.IOException"/>
  1258. <doc>
  1259. <![CDATA[The specification of this method matches that of
  1260. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  1261. that the Path f must be fully qualified and the permission is absolute
  1262. (i.e. umask has been applied).]]>
  1263. </doc>
  1264. </method>
  1265. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  1266. abstract="true" native="false" synchronized="false"
  1267. static="false" final="false" visibility="protected"
  1268. deprecated="not deprecated">
  1269. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1270. <param name="flag" type="java.util.EnumSet"/>
  1271. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1272. <param name="bufferSize" type="int"/>
  1273. <param name="replication" type="short"/>
  1274. <param name="blockSize" type="long"/>
  1275. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1276. <param name="bytesPerChecksum" type="int"/>
  1277. <param name="createParent" type="boolean"/>
  1278. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1279. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1280. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1281. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1282. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1283. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1284. <exception name="IOException" type="java.io.IOException"/>
  1285. <doc>
  1286. <![CDATA[The specification of this method matches that of
  1287. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  1288. have been declared explicitly.]]>
  1289. </doc>
  1290. </method>
  1291. <method name="mkdir"
  1292. abstract="true" native="false" synchronized="false"
  1293. static="false" final="false" visibility="protected"
  1294. deprecated="not deprecated">
  1295. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  1296. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1297. <param name="createParent" type="boolean"/>
  1298. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1299. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1300. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1301. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1302. <exception name="IOException" type="java.io.IOException"/>
  1303. <doc>
  1304. <![CDATA[The specification of this method matches that of
  1305. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  1306. f must be fully qualified and the permission is absolute (i.e.
  1307. umask has been applied).]]>
  1308. </doc>
  1309. </method>
  1310. <method name="delete" return="boolean"
  1311. abstract="true" native="false" synchronized="false"
  1312. static="false" final="false" visibility="protected"
  1313. deprecated="not deprecated">
  1314. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1315. <param name="recursive" type="boolean"/>
  1316. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1317. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1318. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1319. <exception name="IOException" type="java.io.IOException"/>
  1320. <doc>
  1321. <![CDATA[The specification of this method matches that of
  1322. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  1323. this file system.]]>
  1324. </doc>
  1325. </method>
  1326. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1327. abstract="false" native="false" synchronized="false"
  1328. static="false" final="false" visibility="protected"
  1329. deprecated="not deprecated">
  1330. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1331. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1332. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1333. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1334. <exception name="IOException" type="java.io.IOException"/>
  1335. <doc>
  1336. <![CDATA[The specification of this method matches that of
  1337. {@link FileContext#open(Path)} except that Path f must be for this
  1338. file system.]]>
  1339. </doc>
  1340. </method>
  1341. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1342. abstract="true" native="false" synchronized="false"
  1343. static="false" final="false" visibility="protected"
  1344. deprecated="not deprecated">
  1345. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1346. <param name="bufferSize" type="int"/>
  1347. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1348. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1349. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1350. <exception name="IOException" type="java.io.IOException"/>
  1351. <doc>
  1352. <![CDATA[The specification of this method matches that of
  1353. {@link FileContext#open(Path, int)} except that Path f must be for this
  1354. file system.]]>
  1355. </doc>
  1356. </method>
  1357. <method name="setReplication" return="boolean"
  1358. abstract="true" native="false" synchronized="false"
  1359. static="false" final="false" visibility="protected"
  1360. deprecated="not deprecated">
  1361. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1362. <param name="replication" type="short"/>
  1363. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1364. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1365. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1366. <exception name="IOException" type="java.io.IOException"/>
  1367. <doc>
  1368. <![CDATA[The specification of this method matches that of
  1369. {@link FileContext#setReplication(Path, short)} except that Path f must be
  1370. for this file system.]]>
  1371. </doc>
  1372. </method>
  1373. <method name="rename"
  1374. abstract="false" native="false" synchronized="false"
  1375. static="false" final="true" visibility="protected"
  1376. deprecated="not deprecated">
  1377. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1378. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1379. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  1380. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1381. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1382. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1383. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  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#rename(Path, Path, Options.Rename...)} except that Path
  1389. f must be for this file system.]]>
  1390. </doc>
  1391. </method>
  1392. <method name="renameInternal"
  1393. abstract="true" native="false" synchronized="false"
  1394. static="false" final="false" visibility="protected"
  1395. deprecated="not deprecated">
  1396. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1397. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1398. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1399. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1400. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1401. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1402. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1403. <exception name="IOException" type="java.io.IOException"/>
  1404. <doc>
  1405. <![CDATA[The specification of this method matches that of
  1406. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  1407. f must be for this file system and NO OVERWRITE is performed.
  1408. File systems that do not have a built in overwrite need implement only this
  1409. method and can take advantage of the default impl of the other
  1410. {@link #renameInternal(Path, Path, boolean)}]]>
  1411. </doc>
  1412. </method>
  1413. <method name="renameInternal"
  1414. abstract="false" native="false" synchronized="false"
  1415. static="false" final="false" visibility="protected"
  1416. deprecated="not deprecated">
  1417. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1418. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1419. <param name="overwrite" type="boolean"/>
  1420. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1421. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  1422. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1423. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  1424. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1425. <exception name="IOException" type="java.io.IOException"/>
  1426. <doc>
  1427. <![CDATA[The specification of this method matches that of
  1428. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  1429. f must be for this file system.]]>
  1430. </doc>
  1431. </method>
  1432. <method name="supportsSymlinks" return="boolean"
  1433. abstract="false" native="false" synchronized="false"
  1434. static="false" final="false" visibility="protected"
  1435. deprecated="not deprecated">
  1436. <doc>
  1437. <![CDATA[Returns true if the file system supports symlinks, false otherwise.]]>
  1438. </doc>
  1439. </method>
  1440. <method name="createSymlink"
  1441. abstract="false" native="false" synchronized="false"
  1442. static="false" final="false" visibility="protected"
  1443. deprecated="not deprecated">
  1444. <param name="target" type="org.apache.hadoop.fs.Path"/>
  1445. <param name="link" type="org.apache.hadoop.fs.Path"/>
  1446. <param name="createParent" type="boolean"/>
  1447. <exception name="IOException" type="java.io.IOException"/>
  1448. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1449. <doc>
  1450. <![CDATA[The specification of this method matches that of
  1451. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  1452. </doc>
  1453. </method>
  1454. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  1455. abstract="false" native="false" synchronized="false"
  1456. static="false" final="false" visibility="protected"
  1457. deprecated="not deprecated">
  1458. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1459. <exception name="IOException" type="java.io.IOException"/>
  1460. <doc>
  1461. <![CDATA[The specification of this method matches that of
  1462. {@link FileContext#getLinkTarget(Path)};]]>
  1463. </doc>
  1464. </method>
  1465. <method name="setPermission"
  1466. abstract="true" native="false" synchronized="false"
  1467. static="false" final="false" visibility="protected"
  1468. deprecated="not deprecated">
  1469. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1470. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1471. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1472. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1473. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1474. <exception name="IOException" type="java.io.IOException"/>
  1475. <doc>
  1476. <![CDATA[The specification of this method matches that of
  1477. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  1478. must be for this file system.]]>
  1479. </doc>
  1480. </method>
  1481. <method name="setOwner"
  1482. abstract="true" native="false" synchronized="false"
  1483. static="false" final="false" visibility="protected"
  1484. deprecated="not deprecated">
  1485. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1486. <param name="username" type="java.lang.String"/>
  1487. <param name="groupname" type="java.lang.String"/>
  1488. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1489. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1490. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1491. <exception name="IOException" type="java.io.IOException"/>
  1492. <doc>
  1493. <![CDATA[The specification of this method matches that of
  1494. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  1495. be for this file system.]]>
  1496. </doc>
  1497. </method>
  1498. <method name="setTimes"
  1499. abstract="true" native="false" synchronized="false"
  1500. static="false" final="false" visibility="protected"
  1501. deprecated="not deprecated">
  1502. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1503. <param name="mtime" type="long"/>
  1504. <param name="atime" type="long"/>
  1505. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1506. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  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#setTimes(Path, long, long)} except that Path f must be
  1512. for this file system.]]>
  1513. </doc>
  1514. </method>
  1515. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  1516. abstract="true" native="false" synchronized="false"
  1517. static="false" final="false" visibility="protected"
  1518. deprecated="not deprecated">
  1519. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1520. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1521. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1522. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1523. <exception name="IOException" type="java.io.IOException"/>
  1524. <doc>
  1525. <![CDATA[The specification of this method matches that of
  1526. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  1527. this file system.]]>
  1528. </doc>
  1529. </method>
  1530. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  1531. abstract="true" native="false" synchronized="false"
  1532. static="false" final="false" visibility="protected"
  1533. deprecated="not deprecated">
  1534. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1535. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1536. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1537. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1538. <exception name="IOException" type="java.io.IOException"/>
  1539. <doc>
  1540. <![CDATA[The specification of this method matches that of
  1541. {@link FileContext#getFileStatus(Path)}
  1542. except that an UnresolvedLinkException may be thrown if a symlink is
  1543. encountered in the path.]]>
  1544. </doc>
  1545. </method>
  1546. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  1547. abstract="false" native="false" synchronized="false"
  1548. static="false" final="false" visibility="protected"
  1549. deprecated="not deprecated">
  1550. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1551. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1552. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1553. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1554. <exception name="IOException" type="java.io.IOException"/>
  1555. <doc>
  1556. <![CDATA[The specification of this method matches that of
  1557. {@link FileContext#getFileLinkStatus(Path)}
  1558. except that an UnresolvedLinkException may be thrown if a symlink is
  1559. encountered in the path leading up to the final path component.
  1560. If the file system does not support symlinks then the behavior is
  1561. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  1562. </doc>
  1563. </method>
  1564. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  1565. abstract="true" native="false" synchronized="false"
  1566. static="false" final="false" visibility="protected"
  1567. deprecated="not deprecated">
  1568. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1569. <param name="start" type="long"/>
  1570. <param name="len" type="long"/>
  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#getFileBlockLocations(Path, long, long)} except that
  1578. Path f must be for this file system.]]>
  1579. </doc>
  1580. </method>
  1581. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  1582. abstract="false" native="false" synchronized="false"
  1583. static="false" final="false" visibility="protected"
  1584. deprecated="not deprecated">
  1585. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1586. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1587. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1588. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1589. <exception name="IOException" type="java.io.IOException"/>
  1590. <doc>
  1591. <![CDATA[The specification of this method matches that of
  1592. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  1593. file system.]]>
  1594. </doc>
  1595. </method>
  1596. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  1597. abstract="true" native="false" synchronized="false"
  1598. static="false" final="false" visibility="protected"
  1599. deprecated="not deprecated">
  1600. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1601. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1602. <exception name="IOException" type="java.io.IOException"/>
  1603. <doc>
  1604. <![CDATA[The specification of this method matches that of
  1605. {@link FileContext#getFsStatus(Path)}.]]>
  1606. </doc>
  1607. </method>
  1608. <method name="listStatusIterator" return="java.util.Iterator"
  1609. abstract="false" native="false" synchronized="false"
  1610. static="false" final="false" visibility="protected"
  1611. deprecated="not deprecated">
  1612. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1613. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1614. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1615. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1616. <exception name="IOException" type="java.io.IOException"/>
  1617. <doc>
  1618. <![CDATA[The specification of this method matches that of
  1619. {@link FileContext#listStatus(Path)} except that Path f must be for this
  1620. file system.]]>
  1621. </doc>
  1622. </method>
  1623. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1624. abstract="true" native="false" synchronized="false"
  1625. static="false" final="false" visibility="protected"
  1626. deprecated="not deprecated">
  1627. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1628. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1629. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  1630. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  1631. <exception name="IOException" type="java.io.IOException"/>
  1632. <doc>
  1633. <![CDATA[The specification of this method matches that of
  1634. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  1635. for this file system.]]>
  1636. </doc>
  1637. </method>
  1638. <method name="setVerifyChecksum"
  1639. abstract="true" native="false" synchronized="false"
  1640. static="false" final="false" visibility="protected"
  1641. deprecated="not deprecated">
  1642. <param name="verifyChecksum" type="boolean"/>
  1643. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1644. <exception name="IOException" type="java.io.IOException"/>
  1645. <doc>
  1646. <![CDATA[The specification of this method matches that of
  1647. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  1648. must be for this file system.]]>
  1649. </doc>
  1650. </method>
  1651. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  1652. transient="false" volatile="false"
  1653. static="false" final="false" visibility="protected"
  1654. deprecated="not deprecated">
  1655. <doc>
  1656. <![CDATA[The statistics for this file system.]]>
  1657. </doc>
  1658. </field>
  1659. <doc>
  1660. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  1661. (analogous to the VFS of Unix). Applications do not access this class;
  1662. instead they access files across all file systems using {@link FileContext}.
  1663. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  1664. matches the "this" file system (ie same scheme and authority)
  1665. or a Slash-relative name that is assumed to be relative
  1666. to the root of the "this" file system .]]>
  1667. </doc>
  1668. </class>
  1669. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  1670. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  1671. <class name="AvroFSInput" extends="java.lang.Object"
  1672. abstract="false"
  1673. static="false" final="false" visibility="public"
  1674. deprecated="not deprecated">
  1675. <implements name="java.io.Closeable"/>
  1676. <implements name="org.apache.avro.file.SeekableInput"/>
  1677. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  1678. static="false" final="false" visibility="public"
  1679. deprecated="not deprecated">
  1680. <doc>
  1681. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  1682. </doc>
  1683. </constructor>
  1684. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  1685. static="false" final="false" visibility="public"
  1686. deprecated="not deprecated">
  1687. <exception name="IOException" type="java.io.IOException"/>
  1688. <doc>
  1689. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  1690. </doc>
  1691. </constructor>
  1692. <method name="length" return="long"
  1693. abstract="false" native="false" synchronized="false"
  1694. static="false" final="false" visibility="public"
  1695. deprecated="not deprecated">
  1696. </method>
  1697. <method name="read" return="int"
  1698. abstract="false" native="false" synchronized="false"
  1699. static="false" final="false" visibility="public"
  1700. deprecated="not deprecated">
  1701. <param name="b" type="byte[]"/>
  1702. <param name="off" type="int"/>
  1703. <param name="len" type="int"/>
  1704. <exception name="IOException" type="java.io.IOException"/>
  1705. </method>
  1706. <method name="seek"
  1707. abstract="false" native="false" synchronized="false"
  1708. static="false" final="false" visibility="public"
  1709. deprecated="not deprecated">
  1710. <param name="p" type="long"/>
  1711. <exception name="IOException" type="java.io.IOException"/>
  1712. </method>
  1713. <method name="tell" return="long"
  1714. abstract="false" native="false" synchronized="false"
  1715. static="false" final="false" visibility="public"
  1716. deprecated="not deprecated">
  1717. <exception name="IOException" type="java.io.IOException"/>
  1718. </method>
  1719. <method name="close"
  1720. abstract="false" native="false" synchronized="false"
  1721. static="false" final="false" visibility="public"
  1722. deprecated="not deprecated">
  1723. <exception name="IOException" type="java.io.IOException"/>
  1724. </method>
  1725. <doc>
  1726. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  1727. </doc>
  1728. </class>
  1729. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  1730. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1731. <class name="BlockLocation" extends="java.lang.Object"
  1732. abstract="false"
  1733. static="false" final="false" visibility="public"
  1734. deprecated="not deprecated">
  1735. <implements name="org.apache.hadoop.io.Writable"/>
  1736. <constructor name="BlockLocation"
  1737. static="false" final="false" visibility="public"
  1738. deprecated="not deprecated">
  1739. <doc>
  1740. <![CDATA[Default Constructor]]>
  1741. </doc>
  1742. </constructor>
  1743. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1744. static="false" final="false" visibility="public"
  1745. deprecated="not deprecated">
  1746. <doc>
  1747. <![CDATA[Constructor with host, name, offset and length]]>
  1748. </doc>
  1749. </constructor>
  1750. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1751. static="false" final="false" visibility="public"
  1752. deprecated="not deprecated">
  1753. <doc>
  1754. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1755. </doc>
  1756. </constructor>
  1757. <method name="getHosts" return="java.lang.String[]"
  1758. abstract="false" native="false" synchronized="false"
  1759. static="false" final="false" visibility="public"
  1760. deprecated="not deprecated">
  1761. <exception name="IOException" type="java.io.IOException"/>
  1762. <doc>
  1763. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1764. </doc>
  1765. </method>
  1766. <method name="getNames" return="java.lang.String[]"
  1767. abstract="false" native="false" synchronized="false"
  1768. static="false" final="false" visibility="public"
  1769. deprecated="not deprecated">
  1770. <exception name="IOException" type="java.io.IOException"/>
  1771. <doc>
  1772. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1773. </doc>
  1774. </method>
  1775. <method name="getTopologyPaths" return="java.lang.String[]"
  1776. abstract="false" native="false" synchronized="false"
  1777. static="false" final="false" visibility="public"
  1778. deprecated="not deprecated">
  1779. <exception name="IOException" type="java.io.IOException"/>
  1780. <doc>
  1781. <![CDATA[Get the list of network topology paths for each of the hosts.
  1782. The last component of the path is the host.]]>
  1783. </doc>
  1784. </method>
  1785. <method name="getOffset" return="long"
  1786. abstract="false" native="false" synchronized="false"
  1787. static="false" final="false" visibility="public"
  1788. deprecated="not deprecated">
  1789. <doc>
  1790. <![CDATA[Get the start offset of file associated with this block]]>
  1791. </doc>
  1792. </method>
  1793. <method name="getLength" return="long"
  1794. abstract="false" native="false" synchronized="false"
  1795. static="false" final="false" visibility="public"
  1796. deprecated="not deprecated">
  1797. <doc>
  1798. <![CDATA[Get the length of the block]]>
  1799. </doc>
  1800. </method>
  1801. <method name="setOffset"
  1802. abstract="false" native="false" synchronized="false"
  1803. static="false" final="false" visibility="public"
  1804. deprecated="not deprecated">
  1805. <param name="offset" type="long"/>
  1806. <doc>
  1807. <![CDATA[Set the start offset of file associated with this block]]>
  1808. </doc>
  1809. </method>
  1810. <method name="setLength"
  1811. abstract="false" native="false" synchronized="false"
  1812. static="false" final="false" visibility="public"
  1813. deprecated="not deprecated">
  1814. <param name="length" type="long"/>
  1815. <doc>
  1816. <![CDATA[Set the length of block]]>
  1817. </doc>
  1818. </method>
  1819. <method name="setHosts"
  1820. abstract="false" native="false" synchronized="false"
  1821. static="false" final="false" visibility="public"
  1822. deprecated="not deprecated">
  1823. <param name="hosts" type="java.lang.String[]"/>
  1824. <exception name="IOException" type="java.io.IOException"/>
  1825. <doc>
  1826. <![CDATA[Set the hosts hosting this block]]>
  1827. </doc>
  1828. </method>
  1829. <method name="setNames"
  1830. abstract="false" native="false" synchronized="false"
  1831. static="false" final="false" visibility="public"
  1832. deprecated="not deprecated">
  1833. <param name="names" type="java.lang.String[]"/>
  1834. <exception name="IOException" type="java.io.IOException"/>
  1835. <doc>
  1836. <![CDATA[Set the names (host:port) hosting this block]]>
  1837. </doc>
  1838. </method>
  1839. <method name="setTopologyPaths"
  1840. abstract="false" native="false" synchronized="false"
  1841. static="false" final="false" visibility="public"
  1842. deprecated="not deprecated">
  1843. <param name="topologyPaths" type="java.lang.String[]"/>
  1844. <exception name="IOException" type="java.io.IOException"/>
  1845. <doc>
  1846. <![CDATA[Set the network topology paths of the hosts]]>
  1847. </doc>
  1848. </method>
  1849. <method name="write"
  1850. abstract="false" native="false" synchronized="false"
  1851. static="false" final="false" visibility="public"
  1852. deprecated="not deprecated">
  1853. <param name="out" type="java.io.DataOutput"/>
  1854. <exception name="IOException" type="java.io.IOException"/>
  1855. <doc>
  1856. <![CDATA[Implement write of Writable]]>
  1857. </doc>
  1858. </method>
  1859. <method name="readFields"
  1860. abstract="false" native="false" synchronized="false"
  1861. static="false" final="false" visibility="public"
  1862. deprecated="not deprecated">
  1863. <param name="in" type="java.io.DataInput"/>
  1864. <exception name="IOException" type="java.io.IOException"/>
  1865. <doc>
  1866. <![CDATA[Implement readFields of Writable]]>
  1867. </doc>
  1868. </method>
  1869. <method name="toString" return="java.lang.String"
  1870. abstract="false" native="false" synchronized="false"
  1871. static="false" final="false" visibility="public"
  1872. deprecated="not deprecated">
  1873. </method>
  1874. </class>
  1875. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1876. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1877. <class name="ChecksumException" extends="java.io.IOException"
  1878. abstract="false"
  1879. static="false" final="false" visibility="public"
  1880. deprecated="not deprecated">
  1881. <constructor name="ChecksumException" type="java.lang.String, long"
  1882. static="false" final="false" visibility="public"
  1883. deprecated="not deprecated">
  1884. </constructor>
  1885. <method name="getPos" return="long"
  1886. abstract="false" native="false" synchronized="false"
  1887. static="false" final="false" visibility="public"
  1888. deprecated="not deprecated">
  1889. </method>
  1890. <doc>
  1891. <![CDATA[Thrown for checksum errors.]]>
  1892. </doc>
  1893. </class>
  1894. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1895. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1896. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1897. abstract="true"
  1898. static="false" final="false" visibility="public"
  1899. deprecated="not deprecated">
  1900. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1901. static="false" final="false" visibility="public"
  1902. deprecated="not deprecated">
  1903. </constructor>
  1904. <method name="getApproxChkSumLength" return="double"
  1905. abstract="false" native="false" synchronized="false"
  1906. static="true" final="false" visibility="public"
  1907. deprecated="not deprecated">
  1908. <param name="size" type="long"/>
  1909. </method>
  1910. <method name="setConf"
  1911. abstract="false" native="false" synchronized="false"
  1912. static="false" final="false" visibility="public"
  1913. deprecated="not deprecated">
  1914. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1915. </method>
  1916. <method name="setVerifyChecksum"
  1917. abstract="false" native="false" synchronized="false"
  1918. static="false" final="false" visibility="public"
  1919. deprecated="not deprecated">
  1920. <param name="verifyChecksum" type="boolean"/>
  1921. <doc>
  1922. <![CDATA[Set whether to verify checksum.]]>
  1923. </doc>
  1924. </method>
  1925. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1926. abstract="false" native="false" synchronized="false"
  1927. static="false" final="false" visibility="public"
  1928. deprecated="not deprecated">
  1929. <doc>
  1930. <![CDATA[get the raw file system]]>
  1931. </doc>
  1932. </method>
  1933. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1934. abstract="false" native="false" synchronized="false"
  1935. static="false" final="false" visibility="public"
  1936. deprecated="not deprecated">
  1937. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1938. <doc>
  1939. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1940. </doc>
  1941. </method>
  1942. <method name="isChecksumFile" return="boolean"
  1943. abstract="false" native="false" synchronized="false"
  1944. static="true" final="false" visibility="public"
  1945. deprecated="not deprecated">
  1946. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1947. <doc>
  1948. <![CDATA[Return true iff file is a checksum file name.]]>
  1949. </doc>
  1950. </method>
  1951. <method name="getChecksumFileLength" return="long"
  1952. abstract="false" native="false" synchronized="false"
  1953. static="false" final="false" visibility="public"
  1954. deprecated="not deprecated">
  1955. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1956. <param name="fileSize" type="long"/>
  1957. <doc>
  1958. <![CDATA[Return the length of the checksum file given the size of the
  1959. actual file.]]>
  1960. </doc>
  1961. </method>
  1962. <method name="getBytesPerSum" return="int"
  1963. abstract="false" native="false" synchronized="false"
  1964. static="false" final="false" visibility="public"
  1965. deprecated="not deprecated">
  1966. <doc>
  1967. <![CDATA[Return the bytes Per Checksum]]>
  1968. </doc>
  1969. </method>
  1970. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1971. abstract="false" native="false" synchronized="false"
  1972. static="false" final="false" visibility="public"
  1973. deprecated="not deprecated">
  1974. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1975. <param name="bufferSize" type="int"/>
  1976. <exception name="IOException" type="java.io.IOException"/>
  1977. <doc>
  1978. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1979. @param f the file name to open
  1980. @param bufferSize the size of the buffer to be used.]]>
  1981. </doc>
  1982. </method>
  1983. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1984. abstract="false" native="false" synchronized="false"
  1985. static="false" final="false" visibility="public"
  1986. deprecated="not deprecated">
  1987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1988. <param name="bufferSize" type="int"/>
  1989. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1990. <exception name="IOException" type="java.io.IOException"/>
  1991. <doc>
  1992. <![CDATA[{@inheritDoc}]]>
  1993. </doc>
  1994. </method>
  1995. <method name="getChecksumLength" return="long"
  1996. abstract="false" native="false" synchronized="false"
  1997. static="true" final="false" visibility="public"
  1998. deprecated="not deprecated">
  1999. <param name="size" type="long"/>
  2000. <param name="bytesPerSum" type="int"/>
  2001. <doc>
  2002. <![CDATA[Calculated the length of the checksum file in bytes.
  2003. @param size the length of the data file in bytes
  2004. @param bytesPerSum the number of bytes in a checksum block
  2005. @return the number of bytes in the checksum file]]>
  2006. </doc>
  2007. </method>
  2008. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2009. abstract="false" native="false" synchronized="false"
  2010. static="false" final="false" visibility="public"
  2011. deprecated="not deprecated">
  2012. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2013. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2014. <param name="overwrite" type="boolean"/>
  2015. <param name="bufferSize" type="int"/>
  2016. <param name="replication" type="short"/>
  2017. <param name="blockSize" type="long"/>
  2018. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2019. <exception name="IOException" type="java.io.IOException"/>
  2020. <doc>
  2021. <![CDATA[{@inheritDoc}]]>
  2022. </doc>
  2023. </method>
  2024. <method name="setReplication" return="boolean"
  2025. abstract="false" native="false" synchronized="false"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2029. <param name="replication" type="short"/>
  2030. <exception name="IOException" type="java.io.IOException"/>
  2031. <doc>
  2032. <![CDATA[Set replication for an existing file.
  2033. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  2034. @param src file name
  2035. @param replication new replication
  2036. @throws IOException
  2037. @return true if successful;
  2038. false if file does not exist or is a directory]]>
  2039. </doc>
  2040. </method>
  2041. <method name="rename" return="boolean"
  2042. abstract="false" native="false" synchronized="false"
  2043. static="false" final="false" visibility="public"
  2044. deprecated="not deprecated">
  2045. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2046. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2047. <exception name="IOException" type="java.io.IOException"/>
  2048. <doc>
  2049. <![CDATA[Rename files/dirs]]>
  2050. </doc>
  2051. </method>
  2052. <method name="delete" return="boolean"
  2053. abstract="false" native="false" synchronized="false"
  2054. static="false" final="false" visibility="public"
  2055. deprecated="not deprecated">
  2056. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2057. <param name="recursive" type="boolean"/>
  2058. <exception name="IOException" type="java.io.IOException"/>
  2059. <doc>
  2060. <![CDATA[Implement the delete(Path, boolean) in checksum
  2061. file system.]]>
  2062. </doc>
  2063. </method>
  2064. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2065. abstract="false" native="false" synchronized="false"
  2066. static="false" final="false" visibility="public"
  2067. deprecated="not deprecated">
  2068. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2069. <exception name="IOException" type="java.io.IOException"/>
  2070. <doc>
  2071. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2072. a directory.
  2073. @param f
  2074. given path
  2075. @return the statuses of the files/directories in the given patch
  2076. @throws IOException]]>
  2077. </doc>
  2078. </method>
  2079. <method name="mkdirs" return="boolean"
  2080. abstract="false" native="false" synchronized="false"
  2081. static="false" final="false" visibility="public"
  2082. deprecated="not deprecated">
  2083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2084. <exception name="IOException" type="java.io.IOException"/>
  2085. </method>
  2086. <method name="copyFromLocalFile"
  2087. abstract="false" native="false" synchronized="false"
  2088. static="false" final="false" visibility="public"
  2089. deprecated="not deprecated">
  2090. <param name="delSrc" type="boolean"/>
  2091. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2092. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2093. <exception name="IOException" type="java.io.IOException"/>
  2094. </method>
  2095. <method name="copyToLocalFile"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="false" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. <param name="delSrc" type="boolean"/>
  2100. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2101. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2102. <exception name="IOException" type="java.io.IOException"/>
  2103. <doc>
  2104. <![CDATA[The src file is under FS, and the dst is on the local disk.
  2105. Copy it from FS control to the local dst name.]]>
  2106. </doc>
  2107. </method>
  2108. <method name="copyToLocalFile"
  2109. abstract="false" native="false" synchronized="false"
  2110. static="false" final="false" visibility="public"
  2111. deprecated="not deprecated">
  2112. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2113. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2114. <param name="copyCrc" type="boolean"/>
  2115. <exception name="IOException" type="java.io.IOException"/>
  2116. <doc>
  2117. <![CDATA[The src file is under FS, and the dst is on the local disk.
  2118. Copy it from FS control to the local dst name.
  2119. If src and dst are directories, the copyCrc parameter
  2120. determines whether to copy CRC files.]]>
  2121. </doc>
  2122. </method>
  2123. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  2124. abstract="false" native="false" synchronized="false"
  2125. static="false" final="false" visibility="public"
  2126. deprecated="not deprecated">
  2127. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  2128. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  2129. <exception name="IOException" type="java.io.IOException"/>
  2130. </method>
  2131. <method name="completeLocalOutput"
  2132. abstract="false" native="false" synchronized="false"
  2133. static="false" final="false" visibility="public"
  2134. deprecated="not deprecated">
  2135. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  2136. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  2137. <exception name="IOException" type="java.io.IOException"/>
  2138. </method>
  2139. <method name="reportChecksumFailure" return="boolean"
  2140. abstract="false" native="false" synchronized="false"
  2141. static="false" final="false" visibility="public"
  2142. deprecated="not deprecated">
  2143. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2144. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2145. <param name="inPos" type="long"/>
  2146. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2147. <param name="sumsPos" type="long"/>
  2148. <doc>
  2149. <![CDATA[Report a checksum error to the file system.
  2150. @param f the file name containing the error
  2151. @param in the stream open on the file
  2152. @param inPos the position of the beginning of the bad data in the file
  2153. @param sums the stream open on the checksum file
  2154. @param sumsPos the position of the beginning of the bad data in the checksum file
  2155. @return if retry is neccessary]]>
  2156. </doc>
  2157. </method>
  2158. <doc>
  2159. <![CDATA[Abstract Checksumed FileSystem.
  2160. It provide a basice implementation of a Checksumed FileSystem,
  2161. which creates a checksum file for each raw file.
  2162. It generates & verifies checksums at the client side.]]>
  2163. </doc>
  2164. </class>
  2165. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  2166. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  2167. <class name="ContentSummary" extends="java.lang.Object"
  2168. abstract="false"
  2169. static="false" final="false" visibility="public"
  2170. deprecated="not deprecated">
  2171. <implements name="org.apache.hadoop.io.Writable"/>
  2172. <constructor name="ContentSummary"
  2173. static="false" final="false" visibility="public"
  2174. deprecated="not deprecated">
  2175. <doc>
  2176. <![CDATA[Constructor]]>
  2177. </doc>
  2178. </constructor>
  2179. <constructor name="ContentSummary" type="long, long, long"
  2180. static="false" final="false" visibility="public"
  2181. deprecated="not deprecated">
  2182. <doc>
  2183. <![CDATA[Constructor]]>
  2184. </doc>
  2185. </constructor>
  2186. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  2187. static="false" final="false" visibility="public"
  2188. deprecated="not deprecated">
  2189. <doc>
  2190. <![CDATA[Constructor]]>
  2191. </doc>
  2192. </constructor>
  2193. <method name="getLength" return="long"
  2194. abstract="false" native="false" synchronized="false"
  2195. static="false" final="false" visibility="public"
  2196. deprecated="not deprecated">
  2197. <doc>
  2198. <![CDATA[@return the length]]>
  2199. </doc>
  2200. </method>
  2201. <method name="getDirectoryCount" return="long"
  2202. abstract="false" native="false" synchronized="false"
  2203. static="false" final="false" visibility="public"
  2204. deprecated="not deprecated">
  2205. <doc>
  2206. <![CDATA[@return the directory count]]>
  2207. </doc>
  2208. </method>
  2209. <method name="getFileCount" return="long"
  2210. abstract="false" native="false" synchronized="false"
  2211. static="false" final="false" visibility="public"
  2212. deprecated="not deprecated">
  2213. <doc>
  2214. <![CDATA[@return the file count]]>
  2215. </doc>
  2216. </method>
  2217. <method name="getQuota" return="long"
  2218. abstract="false" native="false" synchronized="false"
  2219. static="false" final="false" visibility="public"
  2220. deprecated="not deprecated">
  2221. <doc>
  2222. <![CDATA[Return the directory quota]]>
  2223. </doc>
  2224. </method>
  2225. <method name="getSpaceConsumed" return="long"
  2226. abstract="false" native="false" synchronized="false"
  2227. static="false" final="false" visibility="public"
  2228. deprecated="not deprecated">
  2229. <doc>
  2230. <![CDATA[Retuns (disk) space consumed]]>
  2231. </doc>
  2232. </method>
  2233. <method name="getSpaceQuota" return="long"
  2234. abstract="false" native="false" synchronized="false"
  2235. static="false" final="false" visibility="public"
  2236. deprecated="not deprecated">
  2237. <doc>
  2238. <![CDATA[Returns (disk) space quota]]>
  2239. </doc>
  2240. </method>
  2241. <method name="write"
  2242. abstract="false" native="false" synchronized="false"
  2243. static="false" final="false" visibility="public"
  2244. deprecated="not deprecated">
  2245. <param name="out" type="java.io.DataOutput"/>
  2246. <exception name="IOException" type="java.io.IOException"/>
  2247. <doc>
  2248. <![CDATA[{@inheritDoc}]]>
  2249. </doc>
  2250. </method>
  2251. <method name="readFields"
  2252. abstract="false" native="false" synchronized="false"
  2253. static="false" final="false" visibility="public"
  2254. deprecated="not deprecated">
  2255. <param name="in" type="java.io.DataInput"/>
  2256. <exception name="IOException" type="java.io.IOException"/>
  2257. <doc>
  2258. <![CDATA[{@inheritDoc}]]>
  2259. </doc>
  2260. </method>
  2261. <method name="getHeader" return="java.lang.String"
  2262. abstract="false" native="false" synchronized="false"
  2263. static="true" final="false" visibility="public"
  2264. deprecated="not deprecated">
  2265. <param name="qOption" type="boolean"/>
  2266. <doc>
  2267. <![CDATA[Return the header of the output.
  2268. if qOption is false, output directory count, file count, and content size;
  2269. if qOption is true, output quota and remaining quota as well.
  2270. @param qOption a flag indicating if quota needs to be printed or not
  2271. @return the header of the output]]>
  2272. </doc>
  2273. </method>
  2274. <method name="toString" return="java.lang.String"
  2275. abstract="false" native="false" synchronized="false"
  2276. static="false" final="false" visibility="public"
  2277. deprecated="not deprecated">
  2278. <doc>
  2279. <![CDATA[{@inheritDoc}]]>
  2280. </doc>
  2281. </method>
  2282. <method name="toString" return="java.lang.String"
  2283. abstract="false" native="false" synchronized="false"
  2284. static="false" final="false" visibility="public"
  2285. deprecated="not deprecated">
  2286. <param name="qOption" type="boolean"/>
  2287. <doc>
  2288. <![CDATA[Return the string representation of the object in the output format.
  2289. if qOption is false, output directory count, file count, and content size;
  2290. if qOption is true, output quota and remaining quota as well.
  2291. @param qOption a flag indicating if quota needs to be printed or not
  2292. @return the string representation of the object]]>
  2293. </doc>
  2294. </method>
  2295. <doc>
  2296. <![CDATA[Store the summary of a content (a directory or a file).]]>
  2297. </doc>
  2298. </class>
  2299. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  2300. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  2301. <class name="CreateFlag" extends="java.lang.Enum"
  2302. abstract="false"
  2303. static="false" final="true" visibility="public"
  2304. deprecated="not deprecated">
  2305. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  2306. abstract="false" native="false" synchronized="false"
  2307. static="true" final="false" visibility="public"
  2308. deprecated="not deprecated">
  2309. </method>
  2310. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  2311. abstract="false" native="false" synchronized="false"
  2312. static="true" final="false" visibility="public"
  2313. deprecated="not deprecated">
  2314. <param name="name" type="java.lang.String"/>
  2315. </method>
  2316. <doc>
  2317. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like:<br>
  2318. <code>
  2319. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  2320. <code>
  2321. and pass it to {@link org.apache.hadoop.fs.FileSystem #create(Path f, FsPermission permission,
  2322. EnumSet<CreateFlag> flag, int bufferSize, short replication, long blockSize,
  2323. Progressable progress)}.
  2324. <p>
  2325. Combine {@link #OVERWRITE} with either {@link #CREATE}
  2326. or {@link #APPEND} does the same as only use
  2327. {@link #OVERWRITE}. <br>
  2328. Combine {@link #CREATE} with {@link #APPEND} has the semantic:
  2329. <ol>
  2330. <li> create the file if it does not exist;
  2331. <li> append the file if it already exists.
  2332. </ol>]]>
  2333. </doc>
  2334. </class>
  2335. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  2336. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2337. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2338. abstract="false"
  2339. static="false" final="false" visibility="public"
  2340. deprecated="not deprecated">
  2341. <constructor name="FileAlreadyExistsException"
  2342. static="false" final="false" visibility="public"
  2343. deprecated="not deprecated">
  2344. </constructor>
  2345. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2346. static="false" final="false" visibility="public"
  2347. deprecated="not deprecated">
  2348. </constructor>
  2349. <doc>
  2350. <![CDATA[Used when target file already exists for any operation and
  2351. is not configured to be overwritten.]]>
  2352. </doc>
  2353. </class>
  2354. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2355. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2356. <class name="FileChecksum" extends="java.lang.Object"
  2357. abstract="true"
  2358. static="false" final="false" visibility="public"
  2359. deprecated="not deprecated">
  2360. <implements name="org.apache.hadoop.io.Writable"/>
  2361. <constructor name="FileChecksum"
  2362. static="false" final="false" visibility="public"
  2363. deprecated="not deprecated">
  2364. </constructor>
  2365. <method name="getAlgorithmName" return="java.lang.String"
  2366. abstract="true" native="false" synchronized="false"
  2367. static="false" final="false" visibility="public"
  2368. deprecated="not deprecated">
  2369. <doc>
  2370. <![CDATA[The checksum algorithm name]]>
  2371. </doc>
  2372. </method>
  2373. <method name="getLength" return="int"
  2374. abstract="true" native="false" synchronized="false"
  2375. static="false" final="false" visibility="public"
  2376. deprecated="not deprecated">
  2377. <doc>
  2378. <![CDATA[The length of the checksum in bytes]]>
  2379. </doc>
  2380. </method>
  2381. <method name="getBytes" return="byte[]"
  2382. abstract="true" native="false" synchronized="false"
  2383. static="false" final="false" visibility="public"
  2384. deprecated="not deprecated">
  2385. <doc>
  2386. <![CDATA[The value of the checksum in bytes]]>
  2387. </doc>
  2388. </method>
  2389. <method name="equals" return="boolean"
  2390. abstract="false" native="false" synchronized="false"
  2391. static="false" final="false" visibility="public"
  2392. deprecated="not deprecated">
  2393. <param name="other" type="java.lang.Object"/>
  2394. <doc>
  2395. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2396. </doc>
  2397. </method>
  2398. <method name="hashCode" return="int"
  2399. abstract="false" native="false" synchronized="false"
  2400. static="false" final="false" visibility="public"
  2401. deprecated="not deprecated">
  2402. <doc>
  2403. <![CDATA[{@inheritDoc}]]>
  2404. </doc>
  2405. </method>
  2406. <doc>
  2407. <![CDATA[An abstract class representing file checksums for files.]]>
  2408. </doc>
  2409. </class>
  2410. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2411. <!-- start class org.apache.hadoop.fs.FileContext -->
  2412. <class name="FileContext" extends="java.lang.Object"
  2413. abstract="false"
  2414. static="false" final="true" visibility="public"
  2415. deprecated="not deprecated">
  2416. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  2417. abstract="false" native="false" synchronized="false"
  2418. static="true" final="false" visibility="protected"
  2419. deprecated="not deprecated">
  2420. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  2421. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  2422. <doc>
  2423. <![CDATA[Create a FileContext with specified FS as default using the specified
  2424. config.
  2425. @param defFS
  2426. @param aConf
  2427. @return new FileContext with specifed FS as default.]]>
  2428. </doc>
  2429. </method>
  2430. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  2431. abstract="false" native="false" synchronized="false"
  2432. static="true" final="false" visibility="protected"
  2433. deprecated="not deprecated">
  2434. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  2435. <doc>
  2436. <![CDATA[Create a FileContext for specified file system using the default config.
  2437. @param defaultFS
  2438. @return a FileContext with the specified AbstractFileSystem
  2439. as the default FS.]]>
  2440. </doc>
  2441. </method>
  2442. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  2443. abstract="false" native="false" synchronized="false"
  2444. static="true" final="false" visibility="public"
  2445. deprecated="not deprecated">
  2446. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2447. <doc>
  2448. <![CDATA[Create a FileContext using the default config read from the
  2449. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  2450. from core-defaults.xml in the release jar.
  2451. @throws UnsupportedFileSystemException If the file system from the default
  2452. configuration is not supported]]>
  2453. </doc>
  2454. </method>
  2455. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  2456. abstract="false" native="false" synchronized="false"
  2457. static="true" final="false" visibility="public"
  2458. deprecated="not deprecated">
  2459. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2460. <doc>
  2461. <![CDATA[@return a FileContext for the local file system using the default config.
  2462. @throws UnsupportedFileSystemException If the file system for
  2463. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  2464. </doc>
  2465. </method>
  2466. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  2467. abstract="false" native="false" synchronized="false"
  2468. static="true" final="false" visibility="public"
  2469. deprecated="not deprecated">
  2470. <param name="defaultFsUri" type="java.net.URI"/>
  2471. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2472. <doc>
  2473. <![CDATA[Create a FileContext for specified URI using the default config.
  2474. @param defaultFsUri
  2475. @return a FileContext with the specified URI as the default FS.
  2476. @throws UnsupportedFileSystemException If the file system for
  2477. <code>defaultFsUri</code> is not supported]]>
  2478. </doc>
  2479. </method>
  2480. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  2481. abstract="false" native="false" synchronized="false"
  2482. static="true" final="false" visibility="public"
  2483. deprecated="not deprecated">
  2484. <param name="defaultFsUri" type="java.net.URI"/>
  2485. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  2486. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2487. <doc>
  2488. <![CDATA[Create a FileContext for specified default URI using the specified config.
  2489. @param defaultFsUri
  2490. @param aConf
  2491. @return new FileContext for specified uri
  2492. @throws UnsupportedFileSystemException If the file system with specified is
  2493. not supported]]>
  2494. </doc>
  2495. </method>
  2496. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  2497. abstract="false" native="false" synchronized="false"
  2498. static="true" final="false" visibility="public"
  2499. deprecated="not deprecated">
  2500. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  2501. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2502. <doc>
  2503. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  2504. {@link #getFileContext(URI, Configuration)} instead of this one.
  2505. @param aConf
  2506. @return new FileContext
  2507. @throws UnsupportedFileSystemException If file system in the config
  2508. is not supported]]>
  2509. </doc>
  2510. </method>
  2511. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  2512. abstract="false" native="false" synchronized="false"
  2513. static="true" final="false" visibility="public"
  2514. deprecated="not deprecated">
  2515. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  2516. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2517. <doc>
  2518. <![CDATA[@param aConf - from which the FileContext is configured
  2519. @return a FileContext for the local file system using the specified config.
  2520. @throws UnsupportedFileSystemException If default file system in the config
  2521. is not supported]]>
  2522. </doc>
  2523. </method>
  2524. <method name="getDefaultFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  2525. abstract="false" native="false" synchronized="false"
  2526. static="false" final="false" visibility="protected"
  2527. deprecated="not deprecated">
  2528. </method>
  2529. <method name="setWorkingDirectory"
  2530. abstract="false" native="false" synchronized="false"
  2531. static="false" final="false" visibility="public"
  2532. deprecated="not deprecated">
  2533. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  2534. <exception name="IOException" type="java.io.IOException"/>
  2535. <doc>
  2536. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar").
  2537. @param newWDir
  2538. @throws IOException
  2539. newWdir can be one of
  2540. - relative path: "foo/bar";
  2541. - absolute without scheme: "/foo/bar"
  2542. - fully qualified with scheme: "xx://auth/foo/bar"
  2543. Illegal WDs:
  2544. - relative with scheme: "xx:foo/bar"]]>
  2545. </doc>
  2546. </method>
  2547. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2548. abstract="false" native="false" synchronized="false"
  2549. static="false" final="false" visibility="public"
  2550. deprecated="not deprecated">
  2551. <doc>
  2552. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  2553. </doc>
  2554. </method>
  2555. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  2556. abstract="false" native="false" synchronized="false"
  2557. static="false" final="false" visibility="public"
  2558. deprecated="not deprecated">
  2559. <doc>
  2560. <![CDATA[@return the umask of this FileContext]]>
  2561. </doc>
  2562. </method>
  2563. <method name="setUMask"
  2564. abstract="false" native="false" synchronized="false"
  2565. static="false" final="false" visibility="public"
  2566. deprecated="not deprecated">
  2567. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2568. <doc>
  2569. <![CDATA[Set umask to the supplied parameter.
  2570. @param newUmask the new umask]]>
  2571. </doc>
  2572. </method>
  2573. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2574. abstract="false" native="false" synchronized="false"
  2575. static="false" final="false" visibility="public"
  2576. deprecated="not deprecated">
  2577. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2578. <doc>
  2579. <![CDATA[Make the path fully qualified if it is isn't.
  2580. A Fully-qualified path has scheme and authority specified and an absolute
  2581. path.
  2582. Use the default file system and working dir in this FileContext to qualify.
  2583. @param path
  2584. @return qualified path]]>
  2585. </doc>
  2586. </method>
  2587. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2588. abstract="false" native="false" synchronized="false"
  2589. static="false" final="false" visibility="public"
  2590. deprecated="not deprecated">
  2591. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2592. <param name="createFlag" type="java.util.EnumSet"/>
  2593. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2594. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2595. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2596. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2597. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2598. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2599. <exception name="IOException" type="java.io.IOException"/>
  2600. <doc>
  2601. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  2602. writing into the file.
  2603. @param f the file name to open
  2604. @param createFlag gives the semantics of create: overwrite, append etc.
  2605. @param opts file creation options; see {@link Options.CreateOpts}.
  2606. <ul>
  2607. <li>Progress - to report progress on the operation - default null
  2608. <li>Permission - umask is applied against permisssion: default is
  2609. FsPermissions:getDefault()
  2610. <li>CreateParent - create missing parent path; default is to not
  2611. to create parents
  2612. <li>The defaults for the following are SS defaults of the file
  2613. server implementing the target path. Not all parameters make sense
  2614. for all kinds of file system - eg. localFS ignores Blocksize,
  2615. replication, checksum
  2616. <ul>
  2617. <li>BufferSize - buffersize used in FSDataOutputStream
  2618. <li>Blocksize - block size for file blocks
  2619. <li>ReplicationFactor - replication for blocks
  2620. <li>BytesPerChecksum - bytes per checksum
  2621. </ul>
  2622. </ul>
  2623. @return {@link FSDataOutputStream} for created file
  2624. @throws AccessControlException If access is denied
  2625. @throws FileAlreadyExistsException If file <code>f</code> already exists
  2626. @throws FileNotFoundException If parent of <code>f</code> does not exist
  2627. and <code>createParent</code> is false
  2628. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  2629. directory.
  2630. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2631. not supported
  2632. @throws IOException If an I/O error occurred
  2633. Exceptions applicable to file systems accessed over RPC:
  2634. @throws RpcClientException If an exception occurred in the RPC client
  2635. @throws RpcServerException If an exception occurred in the RPC server
  2636. @throws UnexpectedServerException If server implementation throws
  2637. undeclared exception to RPC server
  2638. RuntimeExceptions:
  2639. @throws InvalidPathException If path <code>f</code> is not valid]]>
  2640. </doc>
  2641. </method>
  2642. <method name="mkdir"
  2643. abstract="false" native="false" synchronized="false"
  2644. static="false" final="false" visibility="public"
  2645. deprecated="not deprecated">
  2646. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2647. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2648. <param name="createParent" type="boolean"/>
  2649. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2650. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2651. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2652. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2653. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[Make(create) a directory and all the non-existent parents.
  2657. @param dir - the dir to make
  2658. @param permission - permissions is set permission&~umask
  2659. @param createParent - if true then missing parent dirs are created if false
  2660. then parent must exist
  2661. @throws AccessControlException If access is denied
  2662. @throws FileAlreadyExistsException If directory <code>dir</code> already
  2663. exists
  2664. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  2665. and <code>createParent</code> is false
  2666. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  2667. directory
  2668. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  2669. is not supported
  2670. @throws IOException If an I/O error occurred
  2671. Exceptions applicable to file systems accessed over RPC:
  2672. @throws RpcClientException If an exception occurred in the RPC client
  2673. @throws UnexpectedServerException If server implementation throws
  2674. undeclared exception to RPC server
  2675. RuntimeExceptions:
  2676. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  2677. </doc>
  2678. </method>
  2679. <method name="delete" return="boolean"
  2680. abstract="false" native="false" synchronized="false"
  2681. static="false" final="false" visibility="public"
  2682. deprecated="not deprecated">
  2683. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2684. <param name="recursive" type="boolean"/>
  2685. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2686. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2687. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2688. <exception name="IOException" type="java.io.IOException"/>
  2689. <doc>
  2690. <![CDATA[Delete a file.
  2691. @param f the path to delete.
  2692. @param recursive if path is a directory and set to
  2693. true, the directory is deleted else throws an exception. In
  2694. case of a file the recursive can be set to either true or false.
  2695. @throws AccessControlException If access is denied
  2696. @throws FileNotFoundException If <code>f</code> does not exist
  2697. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2698. not supported
  2699. @throws IOException If an I/O error occurred
  2700. Exceptions applicable to file systems accessed over RPC:
  2701. @throws RpcClientException If an exception occurred in the RPC client
  2702. @throws RpcServerException If an exception occurred in the RPC server
  2703. @throws UnexpectedServerException If server implementation throws
  2704. undeclared exception to RPC server
  2705. RuntimeExceptions:
  2706. @throws InvalidPathException If path <code>f</code> is invalid]]>
  2707. </doc>
  2708. </method>
  2709. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2710. abstract="false" native="false" synchronized="false"
  2711. static="false" final="false" visibility="public"
  2712. deprecated="not deprecated">
  2713. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2714. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2715. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2716. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2717. <exception name="IOException" type="java.io.IOException"/>
  2718. <doc>
  2719. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  2720. default buffersize.
  2721. @param f the file name to open
  2722. @throws AccessControlException If access is denied
  2723. @throws FileNotFoundException If file <code>f</code> does not exist
  2724. @throws UnsupportedFileSystemException If file system for <code>f</code>
  2725. is not supported
  2726. @throws IOException If an I/O error occurred
  2727. Exceptions applicable to file systems accessed over RPC:
  2728. @throws RpcClientException If an exception occurred in the RPC client
  2729. @throws RpcServerException If an exception occurred in the RPC server
  2730. @throws UnexpectedServerException If server implementation throws
  2731. undeclared exception to RPC server]]>
  2732. </doc>
  2733. </method>
  2734. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2735. abstract="false" native="false" synchronized="false"
  2736. static="false" final="false" visibility="public"
  2737. deprecated="not deprecated">
  2738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2739. <param name="bufferSize" type="int"/>
  2740. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2741. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2742. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2743. <exception name="IOException" type="java.io.IOException"/>
  2744. <doc>
  2745. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2746. @param f the file name to open
  2747. @param bufferSize the size of the buffer to be used.
  2748. @throws AccessControlException If access is denied
  2749. @throws FileNotFoundException If file <code>f</code> does not exist
  2750. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2751. not supported
  2752. @throws IOException If an I/O error occurred
  2753. Exceptions applicable to file systems accessed over RPC:
  2754. @throws RpcClientException If an exception occurred in the RPC client
  2755. @throws RpcServerException If an exception occurred in the RPC server
  2756. @throws UnexpectedServerException If server implementation throws
  2757. undeclared exception to RPC server]]>
  2758. </doc>
  2759. </method>
  2760. <method name="setReplication" return="boolean"
  2761. abstract="false" native="false" synchronized="false"
  2762. static="false" final="false" visibility="public"
  2763. deprecated="not deprecated">
  2764. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2765. <param name="replication" type="short"/>
  2766. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2767. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2768. <exception name="IOException" type="java.io.IOException"/>
  2769. <doc>
  2770. <![CDATA[Set replication for an existing file.
  2771. @param f file name
  2772. @param replication new replication
  2773. @return true if successful
  2774. @throws AccessControlException If access is denied
  2775. @throws FileNotFoundException If file <code>f</code> does not exist
  2776. @throws IOException If an I/O error occurred
  2777. Exceptions applicable to file systems accessed over RPC:
  2778. @throws RpcClientException If an exception occurred in the RPC client
  2779. @throws RpcServerException If an exception occurred in the RPC server
  2780. @throws UnexpectedServerException If server implementation throws
  2781. undeclared exception to RPC server]]>
  2782. </doc>
  2783. </method>
  2784. <method name="rename"
  2785. abstract="false" native="false" synchronized="false"
  2786. static="false" final="false" visibility="public"
  2787. deprecated="not deprecated">
  2788. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2789. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2790. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2791. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2792. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2793. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2794. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2795. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2796. <exception name="IOException" type="java.io.IOException"/>
  2797. <doc>
  2798. <![CDATA[Renames Path src to Path dst
  2799. <ul>
  2800. <li
  2801. <li>Fails if src is a file and dst is a directory.
  2802. <li>Fails if src is a directory and dst is a file.
  2803. <li>Fails if the parent of dst does not exist or is a file.
  2804. </ul>
  2805. <p>
  2806. If OVERWRITE option is not passed as an argument, rename fails if the dst
  2807. already exists.
  2808. <p>
  2809. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  2810. it is a file or an empty directory. Rename fails if dst is a non-empty
  2811. directory.
  2812. <p>
  2813. Note that atomicity of rename is dependent on the file system
  2814. implementation. Please refer to the file system documentation for details
  2815. <p>
  2816. @param src path to be renamed
  2817. @param dst new path after rename
  2818. @throws AccessControlException If access is denied
  2819. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  2820. <code>options</options> has {@link Rename#OVERWRITE} option
  2821. false.
  2822. @throws FileNotFoundException If <code>src</code> does not exist
  2823. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  2824. directory
  2825. @throws UnsupportedFileSystemException If file system for <code>src</code>
  2826. and <code>dst</code> is not supported
  2827. @throws IOException If an I/O error occurred
  2828. Exceptions applicable to file systems accessed over RPC:
  2829. @throws RpcClientException If an exception occurred in the RPC client
  2830. @throws RpcServerException If an exception occurred in the RPC server
  2831. @throws UnexpectedServerException If server implementation throws
  2832. undeclared exception to RPC server]]>
  2833. </doc>
  2834. </method>
  2835. <method name="setPermission"
  2836. abstract="false" native="false" synchronized="false"
  2837. static="false" final="false" visibility="public"
  2838. deprecated="not deprecated">
  2839. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2840. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2841. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2842. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2843. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2844. <exception name="IOException" type="java.io.IOException"/>
  2845. <doc>
  2846. <![CDATA[Set permission of a path.
  2847. @param f
  2848. @param permission - the new absolute permission (umask is not applied)
  2849. @throws AccessControlException If access is denied
  2850. @throws FileNotFoundException If <code>f</code> does not exist
  2851. @throws UnsupportedFileSystemException If file system for <code>f</code>
  2852. is not supported
  2853. @throws IOException If an I/O error occurred
  2854. Exceptions applicable to file systems accessed over RPC:
  2855. @throws RpcClientException If an exception occurred in the RPC client
  2856. @throws RpcServerException If an exception occurred in the RPC server
  2857. @throws UnexpectedServerException If server implementation throws
  2858. undeclared exception to RPC server]]>
  2859. </doc>
  2860. </method>
  2861. <method name="setOwner"
  2862. abstract="false" native="false" synchronized="false"
  2863. static="false" final="false" visibility="public"
  2864. deprecated="not deprecated">
  2865. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2866. <param name="username" type="java.lang.String"/>
  2867. <param name="groupname" type="java.lang.String"/>
  2868. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2869. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2870. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2871. <exception name="IOException" type="java.io.IOException"/>
  2872. <doc>
  2873. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  2874. and groupname cannot both be null.
  2875. @param f The path
  2876. @param username If it is null, the original username remains unchanged.
  2877. @param groupname If it is null, the original groupname remains unchanged.
  2878. @throws AccessControlException If access is denied
  2879. @throws FileNotFoundException If <code>f</code> does not exist
  2880. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2881. not supported
  2882. @throws IOException If an I/O error occurred
  2883. Exceptions applicable to file systems accessed over RPC:
  2884. @throws RpcClientException If an exception occurred in the RPC client
  2885. @throws RpcServerException If an exception occurred in the RPC server
  2886. @throws UnexpectedServerException If server implementation throws
  2887. undeclared exception to RPC server
  2888. RuntimeExceptions:
  2889. @throws HadoopIllegalArgumentException If <code>username</code> or
  2890. <code>groupname</code> is invalid.]]>
  2891. </doc>
  2892. </method>
  2893. <method name="setTimes"
  2894. abstract="false" native="false" synchronized="false"
  2895. static="false" final="false" visibility="public"
  2896. deprecated="not deprecated">
  2897. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2898. <param name="mtime" type="long"/>
  2899. <param name="atime" type="long"/>
  2900. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2901. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2902. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2903. <exception name="IOException" type="java.io.IOException"/>
  2904. <doc>
  2905. <![CDATA[Set access time of a file.
  2906. @param f The path
  2907. @param mtime Set the modification time of this file.
  2908. The number of milliseconds since epoch (Jan 1, 1970).
  2909. A value of -1 means that this call should not set modification time.
  2910. @param atime Set the access time of this file.
  2911. The number of milliseconds since Jan 1, 1970.
  2912. A value of -1 means that this call should not set access time.
  2913. @throws AccessControlException If access is denied
  2914. @throws FileNotFoundException If <code>f</code> does not exist
  2915. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2916. not supported
  2917. @throws IOException If an I/O error occurred
  2918. Exceptions applicable to file systems accessed over RPC:
  2919. @throws RpcClientException If an exception occurred in the RPC client
  2920. @throws RpcServerException If an exception occurred in the RPC server
  2921. @throws UnexpectedServerException If server implementation throws
  2922. undeclared exception to RPC server]]>
  2923. </doc>
  2924. </method>
  2925. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2926. abstract="false" native="false" synchronized="false"
  2927. static="false" final="false" visibility="public"
  2928. deprecated="not deprecated">
  2929. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2930. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2931. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2932. <exception name="IOException" type="java.io.IOException"/>
  2933. <doc>
  2934. <![CDATA[Get the checksum of a file.
  2935. @param f file path
  2936. @return The file checksum. The default return value is null,
  2937. which indicates that no checksum algorithm is implemented
  2938. in the corresponding FileSystem.
  2939. @throws AccessControlException If access is denied
  2940. @throws FileNotFoundException If <code>f</code> does not exist
  2941. @throws IOException If an I/O error occurred
  2942. Exceptions applicable to file systems accessed over RPC:
  2943. @throws RpcClientException If an exception occurred in the RPC client
  2944. @throws RpcServerException If an exception occurred in the RPC server
  2945. @throws UnexpectedServerException If server implementation throws
  2946. undeclared exception to RPC server]]>
  2947. </doc>
  2948. </method>
  2949. <method name="setVerifyChecksum"
  2950. abstract="false" native="false" synchronized="false"
  2951. static="false" final="false" visibility="public"
  2952. deprecated="not deprecated">
  2953. <param name="verifyChecksum" type="boolean"/>
  2954. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2955. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2956. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2957. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2958. <exception name="IOException" type="java.io.IOException"/>
  2959. <doc>
  2960. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  2961. This is only applicable if the
  2962. corresponding FileSystem supports checksum. By default doesn't do anything.
  2963. @param verifyChecksum
  2964. @param f set the verifyChecksum for the Filesystem containing this path
  2965. @throws AccessControlException If access is denied
  2966. @throws FileNotFoundException If <code>f</code> does not exist
  2967. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2968. not supported
  2969. @throws IOException If an I/O error occurred
  2970. Exceptions applicable to file systems accessed over RPC:
  2971. @throws RpcClientException If an exception occurred in the RPC client
  2972. @throws RpcServerException If an exception occurred in the RPC server
  2973. @throws UnexpectedServerException If server implementation throws
  2974. undeclared exception to RPC server]]>
  2975. </doc>
  2976. </method>
  2977. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2978. abstract="false" native="false" synchronized="false"
  2979. static="false" final="false" visibility="public"
  2980. deprecated="not deprecated">
  2981. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2982. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2983. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2984. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2985. <exception name="IOException" type="java.io.IOException"/>
  2986. <doc>
  2987. <![CDATA[Return a file status object that represents the path.
  2988. @param f The path we want information from
  2989. @return a FileStatus object
  2990. @throws AccessControlException If access is denied
  2991. @throws FileNotFoundException If <code>f</code> does not exist
  2992. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  2993. not supported
  2994. @throws IOException If an I/O error occurred
  2995. Exceptions applicable to file systems accessed over RPC:
  2996. @throws RpcClientException If an exception occurred in the RPC client
  2997. @throws RpcServerException If an exception occurred in the RPC server
  2998. @throws UnexpectedServerException If server implementation throws
  2999. undeclared exception to RPC server]]>
  3000. </doc>
  3001. </method>
  3002. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  3003. abstract="false" native="false" synchronized="false"
  3004. static="false" final="false" visibility="public"
  3005. deprecated="not deprecated">
  3006. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3007. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3008. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3009. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3010. <exception name="IOException" type="java.io.IOException"/>
  3011. <doc>
  3012. <![CDATA[Return a file status object that represents the path. If the path
  3013. refers to a symlink then the FileStatus of the symlink is returned.
  3014. The behavior is equivalent to #getFileStatus() if the underlying
  3015. file system does not support symbolic links.
  3016. @param f The path we want information from.
  3017. @return A FileStatus object
  3018. @throws AccessControlException If access is denied
  3019. @throws FileNotFoundException If <code>f</code> does not exist
  3020. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3021. not supported
  3022. @throws IOException If an I/O error occurred]]>
  3023. </doc>
  3024. </method>
  3025. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  3026. abstract="false" native="false" synchronized="false"
  3027. static="false" final="false" visibility="public"
  3028. deprecated="not deprecated">
  3029. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3030. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3031. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3032. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3033. <exception name="IOException" type="java.io.IOException"/>
  3034. <doc>
  3035. <![CDATA[Returns the un-interpreted target of the given symbolic link.
  3036. Transparently resolves all links up to the final path component.
  3037. @param f
  3038. @return The un-interpreted target of the symbolic link.
  3039. @throws AccessControlException If access is denied
  3040. @throws FileNotFoundException If path <code>f</code> does not exist
  3041. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3042. not supported
  3043. @throws IOException If an I/O error occurred]]>
  3044. </doc>
  3045. </method>
  3046. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3047. abstract="false" native="false" synchronized="false"
  3048. static="false" final="false" visibility="public"
  3049. deprecated="not deprecated">
  3050. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3051. <param name="start" type="long"/>
  3052. <param name="len" type="long"/>
  3053. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3054. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3055. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3056. <exception name="IOException" type="java.io.IOException"/>
  3057. <doc>
  3058. <![CDATA[Return blockLocation of the given file for the given offset and len.
  3059. For a nonexistent file or regions, null will be returned.
  3060. This call is most helpful with DFS, where it returns
  3061. hostnames of machines that contain the given file.
  3062. @param f - get blocklocations of this file
  3063. @param start position (byte offset)
  3064. @param len (in bytes)
  3065. @return block locations for given file at specified offset of len
  3066. @throws AccessControlException If access is denied
  3067. @throws FileNotFoundException If <code>f</code> does not exist
  3068. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3069. not supported
  3070. @throws IOException If an I/O error occurred
  3071. Exceptions applicable to file systems accessed over RPC:
  3072. @throws RpcClientException If an exception occurred in the RPC client
  3073. @throws RpcServerException If an exception occurred in the RPC server
  3074. @throws UnexpectedServerException If server implementation throws
  3075. undeclared exception to RPC server
  3076. RuntimeExceptions:
  3077. @throws InvalidPathException If path <code>f</code> is invalid]]>
  3078. </doc>
  3079. </method>
  3080. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  3081. abstract="false" native="false" synchronized="false"
  3082. static="false" final="false" visibility="public"
  3083. deprecated="not deprecated">
  3084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3085. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3086. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3087. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3088. <exception name="IOException" type="java.io.IOException"/>
  3089. <doc>
  3090. <![CDATA[Returns a status object describing the use and capacity of the
  3091. file system denoted by the Parh argument p.
  3092. If the file system has multiple partitions, the
  3093. use and capacity of the partition pointed to by the specified
  3094. path is reflected.
  3095. @param f Path for which status should be obtained. null means the
  3096. root partition of the default file system.
  3097. @return a FsStatus object
  3098. @throws AccessControlException If access is denied
  3099. @throws FileNotFoundException If <code>f</code> does not exist
  3100. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3101. not supported
  3102. @throws IOException If an I/O error occurred
  3103. Exceptions applicable to file systems accessed over RPC:
  3104. @throws RpcClientException If an exception occurred in the RPC client
  3105. @throws RpcServerException If an exception occurred in the RPC server
  3106. @throws UnexpectedServerException If server implementation throws
  3107. undeclared exception to RPC server]]>
  3108. </doc>
  3109. </method>
  3110. <method name="createSymlink"
  3111. abstract="false" native="false" synchronized="false"
  3112. static="false" final="false" visibility="public"
  3113. deprecated="not deprecated">
  3114. <param name="target" type="org.apache.hadoop.fs.Path"/>
  3115. <param name="link" type="org.apache.hadoop.fs.Path"/>
  3116. <param name="createParent" type="boolean"/>
  3117. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3118. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3119. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3120. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3121. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3122. <exception name="IOException" type="java.io.IOException"/>
  3123. <doc>
  3124. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  3125. the symlink exits, the user does not have permission to create symlink,
  3126. or the underlying file system does not support symlinks.
  3127. Symlink permissions are ignored, access to a symlink is determined by
  3128. the permissions of the symlink target.
  3129. Symlinks in paths leading up to the final path component are resolved
  3130. transparently. If the final path component refers to a symlink some
  3131. functions operate on the symlink itself, these are:
  3132. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  3133. - rename(src, dst) - If src refers to a symlink, the symlink is
  3134. renamed. If dst refers to a symlink, the symlink is over-written.
  3135. - getLinkTarget(f) - Returns the target of the symlink.
  3136. - getFileLinkStatus(f) - Returns a FileStatus object describing
  3137. the symlink.
  3138. Some functions, create() and mkdir(), expect the final path component
  3139. does not exist. If they are given a path that refers to a symlink that
  3140. does exist they behave as if the path referred to an existing file or
  3141. directory. All other functions fully resolve, ie follow, the symlink.
  3142. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  3143. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  3144. getFsStatus, getFileStatus, exists, and listStatus.
  3145. Symlink targets are stored as given to createSymlink, assuming the
  3146. underlying file system is capable of storign a fully qualified URI.
  3147. Dangling symlinks are permitted. FileContext supports four types of
  3148. symlink targets, and resolves them as follows
  3149. <pre>
  3150. Given a path referring to a symlink of form:
  3151. <---X--->
  3152. fs://host/A/B/link
  3153. <-----Y----->
  3154. In this path X is the scheme and authority that identify the file system,
  3155. and Y is the path leading up to the final path component "link". If Y is
  3156. a symlink itself then let Y' be the target of Y and X' be the scheme and
  3157. authority of Y'. Symlink targets may:
  3158. 1. Fully qualified URIs
  3159. fs://hostX/A/B/file Resolved according to the target file system.
  3160. 2. Partially qualified URIs (eg scheme but no host)
  3161. fs:///A/B/file Resolved according to the target file sytem. Eg resolving
  3162. a symlink to hdfs:///A results in an exception because
  3163. HDFS URIs must be fully qualified, while a symlink to
  3164. file:///A will not since Hadoop's local file systems
  3165. require partially qualified URIs.
  3166. 3. Relative paths
  3167. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  3168. is "../B/file" then [Y'][path] is hdfs://host/B/file
  3169. 4. Absolute paths
  3170. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  3171. is "/file" then [X][path] is hdfs://host/file
  3172. </pre>
  3173. @param target the target of the symbolic link
  3174. @param link the path to be created that points to target
  3175. @param createParent if true then missing parent dirs are created if
  3176. false then parent must exist
  3177. @throws AccessControlException If access is denied
  3178. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  3179. @throws FileNotFoundException If <code>target</code> does not exist
  3180. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  3181. directory.
  3182. @throws UnsupportedFileSystemException If file system for
  3183. <code>target</code> or <code>link</code> is not supported
  3184. @throws IOException If an I/O error occurred]]>
  3185. </doc>
  3186. </method>
  3187. <method name="listStatus" return="java.util.Iterator"
  3188. abstract="false" native="false" synchronized="false"
  3189. static="false" final="false" visibility="public"
  3190. deprecated="not deprecated">
  3191. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3192. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3193. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3194. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3195. <exception name="IOException" type="java.io.IOException"/>
  3196. <doc>
  3197. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3198. a directory.
  3199. @param f is the path
  3200. @return an iterator that traverses statuses of the files/directories
  3201. in the given path
  3202. @throws AccessControlException If access is denied
  3203. @throws FileNotFoundException If <code>f</code> does not exist
  3204. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3205. not supported
  3206. @throws IOException If an I/O error occurred
  3207. Exceptions applicable to file systems accessed over RPC:
  3208. @throws RpcClientException If an exception occurred in the RPC client
  3209. @throws RpcServerException If an exception occurred in the RPC server
  3210. @throws UnexpectedServerException If server implementation throws
  3211. undeclared exception to RPC server]]>
  3212. </doc>
  3213. </method>
  3214. <method name="deleteOnExit" return="boolean"
  3215. abstract="false" native="false" synchronized="false"
  3216. static="false" final="false" visibility="public"
  3217. deprecated="not deprecated">
  3218. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3219. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3220. <exception name="IOException" type="java.io.IOException"/>
  3221. <doc>
  3222. <![CDATA[Mark a path to be deleted on JVM shutdown.
  3223. @param f the existing path to delete.
  3224. @return true if deleteOnExit is successful, otherwise false.
  3225. @throws AccessControlException If access is denied
  3226. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3227. not supported
  3228. @throws IOException If an I/O error occurred
  3229. Exceptions applicable to file systems accessed over RPC:
  3230. @throws RpcClientException If an exception occurred in the RPC client
  3231. @throws RpcServerException If an exception occurred in the RPC server
  3232. @throws UnexpectedServerException If server implementation throws
  3233. undeclared exception to RPC server]]>
  3234. </doc>
  3235. </method>
  3236. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  3237. abstract="false" native="false" synchronized="false"
  3238. static="false" final="false" visibility="public"
  3239. deprecated="not deprecated">
  3240. </method>
  3241. <method name="resolve" return="org.apache.hadoop.fs.Path"
  3242. abstract="false" native="false" synchronized="false"
  3243. static="false" final="false" visibility="protected"
  3244. deprecated="not deprecated">
  3245. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3246. <exception name="IOException" type="java.io.IOException"/>
  3247. <doc>
  3248. <![CDATA[Resolves all symbolic links in the specified path.
  3249. Returns the new path object.]]>
  3250. </doc>
  3251. </method>
  3252. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  3253. abstract="false" native="false" synchronized="false"
  3254. static="false" final="false" visibility="protected"
  3255. deprecated="not deprecated">
  3256. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3257. <exception name="IOException" type="java.io.IOException"/>
  3258. <doc>
  3259. <![CDATA[Resolves all symbolic links in the specified path leading up
  3260. to, but not including the final path component.
  3261. @param f path to resolve
  3262. @return the new path object.]]>
  3263. </doc>
  3264. </method>
  3265. <field name="LOG" type="org.apache.commons.logging.Log"
  3266. transient="false" volatile="false"
  3267. static="true" final="true" visibility="public"
  3268. deprecated="not deprecated">
  3269. </field>
  3270. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  3271. transient="false" volatile="false"
  3272. static="true" final="true" visibility="public"
  3273. deprecated="not deprecated">
  3274. </field>
  3275. <doc>
  3276. <![CDATA[The FileContext class provides an interface to the application writer for
  3277. using the Hadoop file system.
  3278. It provides a set of methods for the usual operation: create, open,
  3279. list, etc
  3280. <p>
  3281. <b> *** Path Names *** </b>
  3282. <p>
  3283. The Hadoop file system supports a URI name space and URI names.
  3284. It offers a forest of file systems that can be referenced using fully
  3285. qualified URIs.
  3286. Two common Hadoop file systems implementations are
  3287. <ul>
  3288. <li> the local file system: file:///path
  3289. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  3290. </ul>
  3291. While URI names are very flexible, it requires knowing the name or address
  3292. of the server. For convenience one often wants to access the default system
  3293. in one's environment without knowing its name/address. This has an
  3294. additional benefit that it allows one to change one's default fs
  3295. (e.g. admin moves application from cluster1 to cluster2).
  3296. <p>
  3297. To facilitate this, Hadoop supports a notion of a default file system.
  3298. The user can set his default file system, although this is
  3299. typically set up for you in your environment via your default config.
  3300. A default file system implies a default scheme and authority; slash-relative
  3301. names (such as /for/bar) are resolved relative to that default FS.
  3302. Similarly a user can also have working-directory-relative names (i.e. names
  3303. not starting with a slash). While the working directory is generally in the
  3304. same default FS, the wd can be in a different FS.
  3305. <p>
  3306. Hence Hadoop path names can be one of:
  3307. <ul>
  3308. <li> fully qualified URI: scheme://authority/path
  3309. <li> slash relative names: /path relative to the default file system
  3310. <li> wd-relative names: path relative to the working dir
  3311. </ul>
  3312. Relative paths with scheme (scheme:foo/bar) are illegal.
  3313. <p>
  3314. <b>****The Role of the FileContext and configuration defaults****</b>
  3315. <p>
  3316. The FileContext provides file namespace context for resolving file names;
  3317. it also contains the umask for permissions, In that sense it is like the
  3318. per-process file-related state in Unix system.
  3319. These two properties
  3320. <ul>
  3321. <li> default file system i.e your slash)
  3322. <li> umask
  3323. </ul>
  3324. in general, are obtained from the default configuration file
  3325. in your environment, (@see {@link Configuration}).
  3326. No other configuration parameters are obtained from the default config as
  3327. far as the file context layer is concerned. All file system instances
  3328. (i.e. deployments of file systems) have default properties; we call these
  3329. server side (SS) defaults. Operation like create allow one to select many
  3330. properties: either pass them in as explicit parameters or use
  3331. the SS properties.
  3332. <p>
  3333. The file system related SS defaults are
  3334. <ul>
  3335. <li> the home directory (default is "/user/userName")
  3336. <li> the initial wd (only for local fs)
  3337. <li> replication factor
  3338. <li> block size
  3339. <li> buffer size
  3340. <li> bytesPerChecksum (if used).
  3341. </ul>
  3342. <p>
  3343. <b> *** Usage Model for the FileContext class *** </b>
  3344. <p>
  3345. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  3346. Unspecified values come from core-defaults.xml in the release jar.
  3347. <ul>
  3348. <li> myFContext = FileContext.getFileContext(); // uses the default config
  3349. // which has your default FS
  3350. <li> myFContext.create(path, ...);
  3351. <li> myFContext.setWorkingDir(path)
  3352. <li> myFContext.open (path, ...);
  3353. </ul>
  3354. Example 2: Get a FileContext with a specific URI as the default FS
  3355. <ul>
  3356. <li> myFContext = FileContext.getFileContext(URI)
  3357. <li> myFContext.create(path, ...);
  3358. ...
  3359. </ul>
  3360. Example 3: FileContext with local file system as the default
  3361. <ul>
  3362. <li> myFContext = FileContext.getLocalFSFileContext()
  3363. <li> myFContext.create(path, ...);
  3364. <li> ...
  3365. </ul>
  3366. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  3367. Generally you should not need use a config unless you are doing
  3368. <ul>
  3369. <li> configX = someConfigSomeOnePassedToYou.
  3370. <li> myFContext = getFileContext(configX); // configX is not changed,
  3371. // is passed down
  3372. <li> myFContext.create(path, ...);
  3373. <li>...
  3374. </ul>]]>
  3375. </doc>
  3376. </class>
  3377. <!-- end class org.apache.hadoop.fs.FileContext -->
  3378. <!-- start class org.apache.hadoop.fs.FileContext.FSLinkResolver -->
  3379. <class name="FileContext.FSLinkResolver" extends="java.lang.Object"
  3380. abstract="true"
  3381. static="false" final="false" visibility="protected"
  3382. deprecated="not deprecated">
  3383. <constructor name="FileContext.FSLinkResolver"
  3384. static="false" final="false" visibility="protected"
  3385. deprecated="not deprecated">
  3386. </constructor>
  3387. <method name="next" return="T"
  3388. abstract="true" native="false" synchronized="false"
  3389. static="false" final="false" visibility="public"
  3390. deprecated="not deprecated">
  3391. <param name="fs" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  3392. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3393. <exception name="IOException" type="java.io.IOException"/>
  3394. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  3395. <doc>
  3396. <![CDATA[Generic helper function overridden on instantiation to perform a
  3397. specific operation on the given file system using the given path
  3398. which may result in an UnresolvedLinkException.
  3399. @param fs AbstractFileSystem to perform the operation on.
  3400. @param p Path given the file system.
  3401. @return Generic type determined by the specific implementation.
  3402. @throws UnresolvedLinkException If symbolic link <code>path</code> could
  3403. not be resolved
  3404. @throws IOException an I/O error occured]]>
  3405. </doc>
  3406. </method>
  3407. <method name="resolve" return="T"
  3408. abstract="false" native="false" synchronized="false"
  3409. static="false" final="false" visibility="public"
  3410. deprecated="not deprecated">
  3411. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  3412. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3413. <exception name="IOException" type="java.io.IOException"/>
  3414. <doc>
  3415. <![CDATA[Performs the operation specified by the next function, calling it
  3416. repeatedly until all symlinks in the given path are resolved.
  3417. @param fc FileContext used to access file systems.
  3418. @param p The path to resolve symlinks in.
  3419. @return Generic type determined by the implementation of next.
  3420. @throws IOException]]>
  3421. </doc>
  3422. </method>
  3423. <doc>
  3424. <![CDATA[Class used to perform an operation on and resolve symlinks in a
  3425. path. The operation may potentially span multiple file systems.]]>
  3426. </doc>
  3427. </class>
  3428. <!-- end class org.apache.hadoop.fs.FileContext.FSLinkResolver -->
  3429. <!-- start class org.apache.hadoop.fs.FileContext.Util -->
  3430. <class name="FileContext.Util" extends="java.lang.Object"
  3431. abstract="false"
  3432. static="false" final="false" visibility="public"
  3433. deprecated="not deprecated">
  3434. <constructor name="FileContext.Util"
  3435. static="false" final="false" visibility="public"
  3436. deprecated="not deprecated">
  3437. </constructor>
  3438. <method name="exists" return="boolean"
  3439. abstract="false" native="false" synchronized="false"
  3440. static="false" final="false" visibility="public"
  3441. deprecated="not deprecated">
  3442. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3443. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3444. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3445. <exception name="IOException" type="java.io.IOException"/>
  3446. <doc>
  3447. <![CDATA[Does the file exist?
  3448. Note: Avoid using this method if you already have FileStatus in hand.
  3449. Instead reuse the FileStatus
  3450. @param f the file or dir to be checked
  3451. @throws AccessControlException If access is denied
  3452. @throws IOException If an I/O error occurred
  3453. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3454. not supported
  3455. Exceptions applicable to file systems accessed over RPC:
  3456. @throws RpcClientException If an exception occurred in the RPC client
  3457. @throws RpcServerException If an exception occurred in the RPC server
  3458. @throws UnexpectedServerException If server implementation throws
  3459. undeclared exception to RPC server]]>
  3460. </doc>
  3461. </method>
  3462. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3463. abstract="false" native="false" synchronized="false"
  3464. static="false" final="false" visibility="public"
  3465. deprecated="not deprecated">
  3466. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3467. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3468. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3469. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3470. <exception name="IOException" type="java.io.IOException"/>
  3471. <doc>
  3472. <![CDATA[Return the {@link ContentSummary} of path f.
  3473. @param f path
  3474. @return the {@link ContentSummary} of path f.
  3475. @throws AccessControlException If access is denied
  3476. @throws FileNotFoundException If <code>f</code> does not exist
  3477. @throws UnsupportedFileSystemException If file system for
  3478. <code>f</code> is not supported
  3479. @throws IOException If an I/O error occurred
  3480. Exceptions applicable to file systems accessed over RPC:
  3481. @throws RpcClientException If an exception occurred in the RPC client
  3482. @throws RpcServerException If an exception occurred in the RPC server
  3483. @throws UnexpectedServerException If server implementation throws
  3484. undeclared exception to RPC server]]>
  3485. </doc>
  3486. </method>
  3487. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3492. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3493. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3494. <exception name="IOException" type="java.io.IOException"/>
  3495. <doc>
  3496. <![CDATA[See {@link #listStatus(Path[], PathFilter)}]]>
  3497. </doc>
  3498. </method>
  3499. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3500. abstract="false" native="false" synchronized="false"
  3501. static="false" final="false" visibility="public"
  3502. deprecated="not deprecated">
  3503. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3504. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3505. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3506. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3507. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3508. <exception name="IOException" type="java.io.IOException"/>
  3509. <doc>
  3510. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3511. filter.
  3512. @param f is the path name
  3513. @param filter is the user-supplied path filter
  3514. @return an array of FileStatus objects for the files under the given path
  3515. after applying the filter
  3516. @throws AccessControlException If access is denied
  3517. @throws FileNotFoundException If <code>f</code> does not exist
  3518. @throws UnsupportedFileSystemException If file system for
  3519. <code>pathPattern</code> is not supported
  3520. @throws IOException If an I/O error occurred
  3521. Exceptions applicable to file systems accessed over RPC:
  3522. @throws RpcClientException If an exception occurred in the RPC client
  3523. @throws RpcServerException If an exception occurred in the RPC server
  3524. @throws UnexpectedServerException If server implementation throws
  3525. undeclared exception to RPC server]]>
  3526. </doc>
  3527. </method>
  3528. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3529. abstract="false" native="false" synchronized="false"
  3530. static="false" final="false" visibility="public"
  3531. deprecated="not deprecated">
  3532. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3533. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3534. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3535. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3536. <exception name="IOException" type="java.io.IOException"/>
  3537. <doc>
  3538. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3539. path filter.
  3540. @param files is a list of paths
  3541. @param filter is the filter
  3542. @return a list of statuses for the files under the given paths after
  3543. applying the filter
  3544. @throws AccessControlException If access is denied
  3545. @throws FileNotFoundException If a file in <code>files</code> does not
  3546. exist
  3547. @throws IOException If an I/O error occurred
  3548. Exceptions applicable to file systems accessed over RPC:
  3549. @throws RpcClientException If an exception occurred in the RPC client
  3550. @throws RpcServerException If an exception occurred in the RPC server
  3551. @throws UnexpectedServerException If server implementation throws
  3552. undeclared exception to RPC server]]>
  3553. </doc>
  3554. </method>
  3555. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3556. abstract="false" native="false" synchronized="false"
  3557. static="false" final="false" visibility="public"
  3558. deprecated="not deprecated">
  3559. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3560. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3561. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3562. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3563. <exception name="IOException" type="java.io.IOException"/>
  3564. <doc>
  3565. <![CDATA[List the statuses of the files/directories in the given path
  3566. if the path is a directory.
  3567. @param f is the path
  3568. @return an array that contains statuses of the files/directories
  3569. in the given path
  3570. @throws AccessControlException If access is denied
  3571. @throws FileNotFoundException If <code>f</code> does not exist
  3572. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  3573. not supported
  3574. @throws IOException If an I/O error occurred
  3575. Exceptions applicable to file systems accessed over RPC:
  3576. @throws RpcClientException If an exception occurred in the RPC client
  3577. @throws RpcServerException If an exception occurred in the RPC server
  3578. @throws UnexpectedServerException If server implementation throws
  3579. undeclared exception to RPC server]]>
  3580. </doc>
  3581. </method>
  3582. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3583. abstract="false" native="false" synchronized="false"
  3584. static="false" final="false" visibility="public"
  3585. deprecated="not deprecated">
  3586. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3587. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3588. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3589. <exception name="IOException" type="java.io.IOException"/>
  3590. <doc>
  3591. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3592. files. Results are sorted by their names.
  3593. <p>
  3594. A filename pattern is composed of <i>regular</i> characters and
  3595. <i>special pattern matching</i> characters, which are:
  3596. <dl>
  3597. <dd>
  3598. <dl>
  3599. <p>
  3600. <dt> <tt> ? </tt>
  3601. <dd> Matches any single character.
  3602. <p>
  3603. <dt> <tt> * </tt>
  3604. <dd> Matches zero or more characters.
  3605. <p>
  3606. <dt> <tt> [<i>abc</i>] </tt>
  3607. <dd> Matches a single character from character set
  3608. <tt>{<i>a,b,c</i>}</tt>.
  3609. <p>
  3610. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3611. <dd> Matches a single character from the character range
  3612. <tt>{<i>a...b</i>}</tt>. Note: character <tt><i>a</i></tt> must be
  3613. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3614. <p>
  3615. <dt> <tt> [^<i>a</i>] </tt>
  3616. <dd> Matches a single char that is not from character set or range
  3617. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3618. immediately to the right of the opening bracket.
  3619. <p>
  3620. <dt> <tt> \<i>c</i> </tt>
  3621. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3622. <p>
  3623. <dt> <tt> {ab,cd} </tt>
  3624. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3625. <p>
  3626. <dt> <tt> {ab,c{de,fh}} </tt>
  3627. <dd> Matches a string from string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3628. </dl>
  3629. </dd>
  3630. </dl>
  3631. @param pathPattern a regular expression specifying a pth pattern
  3632. @return an array of paths that match the path pattern
  3633. @throws AccessControlException If access is denied
  3634. @throws UnsupportedFileSystemException If file system for
  3635. <code>pathPattern</code> is not supported
  3636. @throws IOException If an I/O error occurred
  3637. Exceptions applicable to file systems accessed over RPC:
  3638. @throws RpcClientException If an exception occurred in the RPC client
  3639. @throws RpcServerException If an exception occurred in the RPC server
  3640. @throws UnexpectedServerException If server implementation throws
  3641. undeclared exception to RPC server]]>
  3642. </doc>
  3643. </method>
  3644. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3645. abstract="false" native="false" synchronized="false"
  3646. static="false" final="false" visibility="public"
  3647. deprecated="not deprecated">
  3648. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3649. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3650. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3651. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3652. <exception name="IOException" type="java.io.IOException"/>
  3653. <doc>
  3654. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3655. and is accepted by the user-supplied path filter. Results are sorted by
  3656. their path names.
  3657. Return null if pathPattern has no glob and the path does not exist.
  3658. Return an empty array if pathPattern has a glob and no path matches it.
  3659. @param pathPattern regular expression specifying the path pattern
  3660. @param filter user-supplied path filter
  3661. @return an array of FileStatus objects
  3662. @throws AccessControlException If access is denied
  3663. @throws UnsupportedFileSystemException If file system for
  3664. <code>pathPattern</code> is not supported
  3665. @throws IOException If an I/O error occurred
  3666. Exceptions applicable to file systems accessed over RPC:
  3667. @throws RpcClientException If an exception occurred in the RPC client
  3668. @throws RpcServerException If an exception occurred in the RPC server
  3669. @throws UnexpectedServerException If server implementation throws
  3670. undeclared exception to RPC server]]>
  3671. </doc>
  3672. </method>
  3673. <method name="copy" return="boolean"
  3674. abstract="false" native="false" synchronized="false"
  3675. static="false" final="false" visibility="public"
  3676. deprecated="not deprecated">
  3677. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3678. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3679. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3680. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3681. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3682. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3683. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3684. <exception name="IOException" type="java.io.IOException"/>
  3685. <doc>
  3686. <![CDATA[Copy file from src to dest. See
  3687. {@link #copy(Path, Path, boolean, boolean)}]]>
  3688. </doc>
  3689. </method>
  3690. <method name="copy" return="boolean"
  3691. abstract="false" native="false" synchronized="false"
  3692. static="false" final="false" visibility="public"
  3693. deprecated="not deprecated">
  3694. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3695. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3696. <param name="deleteSource" type="boolean"/>
  3697. <param name="overwrite" type="boolean"/>
  3698. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  3699. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  3700. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  3701. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  3702. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  3703. <exception name="IOException" type="java.io.IOException"/>
  3704. <doc>
  3705. <![CDATA[Copy from src to dst, optionally deleting src and overwriting dst.
  3706. @param src
  3707. @param dst
  3708. @param deleteSource - delete src if true
  3709. @param overwrite overwrite dst if true; throw IOException if dst exists
  3710. and overwrite is false.
  3711. @return true if copy is successful
  3712. @throws AccessControlException If access is denied
  3713. @throws FileAlreadyExistsException If <code>dst</code> already exists
  3714. @throws FileNotFoundException If <code>src</code> does not exist
  3715. @throws ParentNotDirectoryException If parent of <code>dst</code> is not
  3716. a directory
  3717. @throws UnsupportedFileSystemException If file system for
  3718. <code>src</code> or <code>dst</code> is not supported
  3719. @throws IOException If an I/O error occurred
  3720. Exceptions applicable to file systems accessed over RPC:
  3721. @throws RpcClientException If an exception occurred in the RPC client
  3722. @throws RpcServerException If an exception occurred in the RPC server
  3723. @throws UnexpectedServerException If server implementation throws
  3724. undeclared exception to RPC server
  3725. RuntimeExceptions:
  3726. @throws InvalidPathException If path <code>dst</code> is invalid]]>
  3727. </doc>
  3728. </method>
  3729. <doc>
  3730. <![CDATA[Utility/library methods built over the basic FileContext methods.
  3731. Since this are library functions, the oprtation are not atomic
  3732. and some of them may partially complete if other threads are making
  3733. changes to the same part of the name space.]]>
  3734. </doc>
  3735. </class>
  3736. <!-- end class org.apache.hadoop.fs.FileContext.Util -->
  3737. <!-- start class org.apache.hadoop.fs.FileStatus -->
  3738. <class name="FileStatus" extends="java.lang.Object"
  3739. abstract="false"
  3740. static="false" final="false" visibility="public"
  3741. deprecated="not deprecated">
  3742. <implements name="org.apache.hadoop.io.Writable"/>
  3743. <implements name="java.lang.Comparable"/>
  3744. <constructor name="FileStatus"
  3745. static="false" final="false" visibility="public"
  3746. deprecated="not deprecated">
  3747. </constructor>
  3748. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  3749. static="false" final="false" visibility="public"
  3750. deprecated="not deprecated">
  3751. </constructor>
  3752. <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"
  3753. static="false" final="false" visibility="public"
  3754. deprecated="not deprecated">
  3755. <doc>
  3756. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  3757. </doc>
  3758. </constructor>
  3759. <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"
  3760. static="false" final="false" visibility="public"
  3761. deprecated="not deprecated">
  3762. </constructor>
  3763. <method name="getLen" return="long"
  3764. abstract="false" native="false" synchronized="false"
  3765. static="false" final="false" visibility="public"
  3766. deprecated="not deprecated">
  3767. <doc>
  3768. <![CDATA[Get the length of this file, in bytes.
  3769. @return the length of this file, in bytes.]]>
  3770. </doc>
  3771. </method>
  3772. <method name="isFile" return="boolean"
  3773. abstract="false" native="false" synchronized="false"
  3774. static="false" final="false" visibility="public"
  3775. deprecated="not deprecated">
  3776. <doc>
  3777. <![CDATA[Is this a file?
  3778. @return true if this is a file]]>
  3779. </doc>
  3780. </method>
  3781. <method name="isDirectory" return="boolean"
  3782. abstract="false" native="false" synchronized="false"
  3783. static="false" final="false" visibility="public"
  3784. deprecated="not deprecated">
  3785. <doc>
  3786. <![CDATA[Is this a directory?
  3787. @return true if this is a directory]]>
  3788. </doc>
  3789. </method>
  3790. <method name="isDir" return="boolean"
  3791. abstract="false" native="false" synchronized="false"
  3792. static="false" final="false" visibility="public"
  3793. deprecated="Use {@link FileStatus#isFile()},
  3794. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  3795. instead.">
  3796. <doc>
  3797. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  3798. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  3799. @return true if this is a directory.
  3800. @deprecated Use {@link FileStatus#isFile()},
  3801. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  3802. instead.]]>
  3803. </doc>
  3804. </method>
  3805. <method name="isSymlink" return="boolean"
  3806. abstract="false" native="false" synchronized="false"
  3807. static="false" final="false" visibility="public"
  3808. deprecated="not deprecated">
  3809. <doc>
  3810. <![CDATA[Is this a symbolic link?
  3811. @return true if this is a symbolic link]]>
  3812. </doc>
  3813. </method>
  3814. <method name="getBlockSize" return="long"
  3815. abstract="false" native="false" synchronized="false"
  3816. static="false" final="false" visibility="public"
  3817. deprecated="not deprecated">
  3818. <doc>
  3819. <![CDATA[Get the block size of the file.
  3820. @return the number of bytes]]>
  3821. </doc>
  3822. </method>
  3823. <method name="getReplication" return="short"
  3824. abstract="false" native="false" synchronized="false"
  3825. static="false" final="false" visibility="public"
  3826. deprecated="not deprecated">
  3827. <doc>
  3828. <![CDATA[Get the replication factor of a file.
  3829. @return the replication factor of a file.]]>
  3830. </doc>
  3831. </method>
  3832. <method name="getModificationTime" return="long"
  3833. abstract="false" native="false" synchronized="false"
  3834. static="false" final="false" visibility="public"
  3835. deprecated="not deprecated">
  3836. <doc>
  3837. <![CDATA[Get the modification time of the file.
  3838. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  3839. </doc>
  3840. </method>
  3841. <method name="getAccessTime" return="long"
  3842. abstract="false" native="false" synchronized="false"
  3843. static="false" final="false" visibility="public"
  3844. deprecated="not deprecated">
  3845. <doc>
  3846. <![CDATA[Get the access time of the file.
  3847. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  3848. </doc>
  3849. </method>
  3850. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  3851. abstract="false" native="false" synchronized="false"
  3852. static="false" final="false" visibility="public"
  3853. deprecated="not deprecated">
  3854. <doc>
  3855. <![CDATA[Get FsPermission associated with the file.
  3856. @return permssion. If a filesystem does not have a notion of permissions
  3857. or if permissions could not be determined, then default
  3858. permissions equivalent of "rwxrwxrwx" is returned.]]>
  3859. </doc>
  3860. </method>
  3861. <method name="getOwner" return="java.lang.String"
  3862. abstract="false" native="false" synchronized="false"
  3863. static="false" final="false" visibility="public"
  3864. deprecated="not deprecated">
  3865. <doc>
  3866. <![CDATA[Get the owner of the file.
  3867. @return owner of the file. The string could be empty if there is no
  3868. notion of owner of a file in a filesystem or if it could not
  3869. be determined (rare).]]>
  3870. </doc>
  3871. </method>
  3872. <method name="getGroup" return="java.lang.String"
  3873. abstract="false" native="false" synchronized="false"
  3874. static="false" final="false" visibility="public"
  3875. deprecated="not deprecated">
  3876. <doc>
  3877. <![CDATA[Get the group associated with the file.
  3878. @return group for the file. The string could be empty if there is no
  3879. notion of group of a file in a filesystem or if it could not
  3880. be determined (rare).]]>
  3881. </doc>
  3882. </method>
  3883. <method name="getPath" return="org.apache.hadoop.fs.Path"
  3884. abstract="false" native="false" synchronized="false"
  3885. static="false" final="false" visibility="public"
  3886. deprecated="not deprecated">
  3887. </method>
  3888. <method name="setPath"
  3889. abstract="false" native="false" synchronized="false"
  3890. static="false" final="false" visibility="public"
  3891. deprecated="not deprecated">
  3892. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3893. </method>
  3894. <method name="setPermission"
  3895. abstract="false" native="false" synchronized="false"
  3896. static="false" final="false" visibility="protected"
  3897. deprecated="not deprecated">
  3898. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3899. <doc>
  3900. <![CDATA[Sets permission.
  3901. @param permission if permission is null, default value is set]]>
  3902. </doc>
  3903. </method>
  3904. <method name="setOwner"
  3905. abstract="false" native="false" synchronized="false"
  3906. static="false" final="false" visibility="protected"
  3907. deprecated="not deprecated">
  3908. <param name="owner" type="java.lang.String"/>
  3909. <doc>
  3910. <![CDATA[Sets owner.
  3911. @param owner if it is null, default value is set]]>
  3912. </doc>
  3913. </method>
  3914. <method name="setGroup"
  3915. abstract="false" native="false" synchronized="false"
  3916. static="false" final="false" visibility="protected"
  3917. deprecated="not deprecated">
  3918. <param name="group" type="java.lang.String"/>
  3919. <doc>
  3920. <![CDATA[Sets group.
  3921. @param group if it is null, default value is set]]>
  3922. </doc>
  3923. </method>
  3924. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  3925. abstract="false" native="false" synchronized="false"
  3926. static="false" final="false" visibility="public"
  3927. deprecated="not deprecated">
  3928. <exception name="IOException" type="java.io.IOException"/>
  3929. <doc>
  3930. <![CDATA[@return The contents of the symbolic link.]]>
  3931. </doc>
  3932. </method>
  3933. <method name="setSymlink"
  3934. abstract="false" native="false" synchronized="false"
  3935. static="false" final="false" visibility="public"
  3936. deprecated="not deprecated">
  3937. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3938. </method>
  3939. <method name="write"
  3940. abstract="false" native="false" synchronized="false"
  3941. static="false" final="false" visibility="public"
  3942. deprecated="not deprecated">
  3943. <param name="out" type="java.io.DataOutput"/>
  3944. <exception name="IOException" type="java.io.IOException"/>
  3945. </method>
  3946. <method name="readFields"
  3947. abstract="false" native="false" synchronized="false"
  3948. static="false" final="false" visibility="public"
  3949. deprecated="not deprecated">
  3950. <param name="in" type="java.io.DataInput"/>
  3951. <exception name="IOException" type="java.io.IOException"/>
  3952. </method>
  3953. <method name="compareTo" return="int"
  3954. abstract="false" native="false" synchronized="false"
  3955. static="false" final="false" visibility="public"
  3956. deprecated="not deprecated">
  3957. <param name="o" type="java.lang.Object"/>
  3958. <doc>
  3959. <![CDATA[Compare this object to another object
  3960. @param o the object to be compared.
  3961. @return a negative integer, zero, or a positive integer as this object
  3962. is less than, equal to, or greater than the specified object.
  3963. @throws ClassCastException if the specified object's is not of
  3964. type FileStatus]]>
  3965. </doc>
  3966. </method>
  3967. <method name="equals" return="boolean"
  3968. abstract="false" native="false" synchronized="false"
  3969. static="false" final="false" visibility="public"
  3970. deprecated="not deprecated">
  3971. <param name="o" type="java.lang.Object"/>
  3972. <doc>
  3973. <![CDATA[Compare if this object is equal to another object
  3974. @param o the object to be compared.
  3975. @return true if two file status has the same path name; false if not.]]>
  3976. </doc>
  3977. </method>
  3978. <method name="hashCode" return="int"
  3979. abstract="false" native="false" synchronized="false"
  3980. static="false" final="false" visibility="public"
  3981. deprecated="not deprecated">
  3982. <doc>
  3983. <![CDATA[Returns a hash code value for the object, which is defined as
  3984. the hash code of the path name.
  3985. @return a hash code value for the path name.]]>
  3986. </doc>
  3987. </method>
  3988. <doc>
  3989. <![CDATA[Interface that represents the client side information for a file.]]>
  3990. </doc>
  3991. </class>
  3992. <!-- end class org.apache.hadoop.fs.FileStatus -->
  3993. <!-- start class org.apache.hadoop.fs.FileSystem -->
  3994. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  3995. abstract="true"
  3996. static="false" final="false" visibility="public"
  3997. deprecated="not deprecated">
  3998. <implements name="java.io.Closeable"/>
  3999. <constructor name="FileSystem"
  4000. static="false" final="false" visibility="protected"
  4001. deprecated="not deprecated">
  4002. </constructor>
  4003. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  4004. abstract="false" native="false" synchronized="false"
  4005. static="true" final="false" visibility="public"
  4006. deprecated="not deprecated">
  4007. <param name="uri" type="java.net.URI"/>
  4008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4009. <param name="user" type="java.lang.String"/>
  4010. <exception name="IOException" type="java.io.IOException"/>
  4011. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4012. <doc>
  4013. <![CDATA[Get a filesystem instance based on the uri, the passed
  4014. configuration and the user
  4015. @param uri
  4016. @param conf
  4017. @param user
  4018. @return the filesystem instance
  4019. @throws IOException
  4020. @throws InterruptedException]]>
  4021. </doc>
  4022. </method>
  4023. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  4024. abstract="false" native="false" synchronized="false"
  4025. static="true" final="false" visibility="public"
  4026. deprecated="not deprecated">
  4027. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4028. <exception name="IOException" type="java.io.IOException"/>
  4029. <doc>
  4030. <![CDATA[Returns the configured filesystem implementation.]]>
  4031. </doc>
  4032. </method>
  4033. <method name="getDefaultUri" return="java.net.URI"
  4034. abstract="false" native="false" synchronized="false"
  4035. static="true" final="false" visibility="public"
  4036. deprecated="not deprecated">
  4037. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4038. <doc>
  4039. <![CDATA[Get the default filesystem URI from a configuration.
  4040. @param conf the configuration to access
  4041. @return the uri of the default filesystem]]>
  4042. </doc>
  4043. </method>
  4044. <method name="setDefaultUri"
  4045. abstract="false" native="false" synchronized="false"
  4046. static="true" final="false" visibility="public"
  4047. deprecated="not deprecated">
  4048. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4049. <param name="uri" type="java.net.URI"/>
  4050. <doc>
  4051. <![CDATA[Set the default filesystem URI in a configuration.
  4052. @param conf the configuration to alter
  4053. @param uri the new default filesystem uri]]>
  4054. </doc>
  4055. </method>
  4056. <method name="setDefaultUri"
  4057. abstract="false" native="false" synchronized="false"
  4058. static="true" final="false" visibility="public"
  4059. deprecated="not deprecated">
  4060. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4061. <param name="uri" type="java.lang.String"/>
  4062. <doc>
  4063. <![CDATA[Set the default filesystem URI in a configuration.
  4064. @param conf the configuration to alter
  4065. @param uri the new default filesystem uri]]>
  4066. </doc>
  4067. </method>
  4068. <method name="initialize"
  4069. abstract="false" native="false" synchronized="false"
  4070. static="false" final="false" visibility="public"
  4071. deprecated="not deprecated">
  4072. <param name="name" type="java.net.URI"/>
  4073. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4074. <exception name="IOException" type="java.io.IOException"/>
  4075. <doc>
  4076. <![CDATA[Called after a new FileSystem instance is constructed.
  4077. @param name a uri whose authority section names the host, port, etc.
  4078. for this FileSystem
  4079. @param conf the configuration]]>
  4080. </doc>
  4081. </method>
  4082. <method name="getUri" return="java.net.URI"
  4083. abstract="true" native="false" synchronized="false"
  4084. static="false" final="false" visibility="public"
  4085. deprecated="not deprecated">
  4086. <doc>
  4087. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4088. </doc>
  4089. </method>
  4090. <method name="getName" return="java.lang.String"
  4091. abstract="false" native="false" synchronized="false"
  4092. static="false" final="false" visibility="public"
  4093. deprecated="call #getUri() instead.">
  4094. <doc>
  4095. <![CDATA[@deprecated call #getUri() instead.]]>
  4096. </doc>
  4097. </method>
  4098. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  4099. abstract="false" native="false" synchronized="false"
  4100. static="true" final="false" visibility="public"
  4101. deprecated="call #get(URI,Configuration) instead.">
  4102. <param name="name" type="java.lang.String"/>
  4103. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4104. <exception name="IOException" type="java.io.IOException"/>
  4105. <doc>
  4106. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  4107. </doc>
  4108. </method>
  4109. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  4110. abstract="false" native="false" synchronized="false"
  4111. static="true" final="false" visibility="public"
  4112. deprecated="not deprecated">
  4113. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4114. <exception name="IOException" type="java.io.IOException"/>
  4115. <doc>
  4116. <![CDATA[Get the local file syste
  4117. @param conf the configuration to configure the file system with
  4118. @return a LocalFileSystem]]>
  4119. </doc>
  4120. </method>
  4121. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  4122. abstract="false" native="false" synchronized="false"
  4123. static="true" final="false" visibility="public"
  4124. deprecated="not deprecated">
  4125. <param name="uri" type="java.net.URI"/>
  4126. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4127. <exception name="IOException" type="java.io.IOException"/>
  4128. <doc>
  4129. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  4130. of the URI determines a configuration property name,
  4131. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  4132. The entire URI is passed to the FileSystem instance's initialize method.]]>
  4133. </doc>
  4134. </method>
  4135. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  4136. abstract="false" native="false" synchronized="false"
  4137. static="true" final="false" visibility="public"
  4138. deprecated="not deprecated">
  4139. <param name="uri" type="java.net.URI"/>
  4140. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4141. <param name="user" type="java.lang.String"/>
  4142. <exception name="IOException" type="java.io.IOException"/>
  4143. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4144. <doc>
  4145. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  4146. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  4147. @param uri
  4148. @param conf
  4149. @param user
  4150. @return filesystem instance
  4151. @throws IOException
  4152. @throws InterruptedException]]>
  4153. </doc>
  4154. </method>
  4155. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  4156. abstract="false" native="false" synchronized="false"
  4157. static="true" final="false" visibility="public"
  4158. deprecated="not deprecated">
  4159. <param name="uri" type="java.net.URI"/>
  4160. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4161. <exception name="IOException" type="java.io.IOException"/>
  4162. <doc>
  4163. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  4164. of the URI determines a configuration property name,
  4165. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  4166. The entire URI is passed to the FileSystem instance's initialize method.
  4167. This always returns a new FileSystem object.]]>
  4168. </doc>
  4169. </method>
  4170. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  4171. abstract="false" native="false" synchronized="false"
  4172. static="true" final="false" visibility="public"
  4173. deprecated="not deprecated">
  4174. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4175. <exception name="IOException" type="java.io.IOException"/>
  4176. <doc>
  4177. <![CDATA[Returns a unique configured filesystem implementation.
  4178. This always returns a new FileSystem object.]]>
  4179. </doc>
  4180. </method>
  4181. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  4182. abstract="false" native="false" synchronized="false"
  4183. static="true" final="false" visibility="public"
  4184. deprecated="not deprecated">
  4185. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4186. <exception name="IOException" type="java.io.IOException"/>
  4187. <doc>
  4188. <![CDATA[Get a unique local file system object
  4189. @param conf the configuration to configure the file system with
  4190. @return a LocalFileSystem
  4191. This always returns a new FileSystem object.]]>
  4192. </doc>
  4193. </method>
  4194. <method name="closeAll"
  4195. abstract="false" native="false" synchronized="false"
  4196. static="true" final="false" visibility="public"
  4197. deprecated="not deprecated">
  4198. <exception name="IOException" type="java.io.IOException"/>
  4199. <doc>
  4200. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  4201. used anymore.
  4202. @throws IOException]]>
  4203. </doc>
  4204. </method>
  4205. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4206. abstract="false" native="false" synchronized="false"
  4207. static="false" final="false" visibility="public"
  4208. deprecated="not deprecated">
  4209. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4210. <doc>
  4211. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4212. </doc>
  4213. </method>
  4214. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4215. abstract="false" native="false" synchronized="false"
  4216. static="true" final="false" visibility="public"
  4217. deprecated="not deprecated">
  4218. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  4219. <param name="file" type="org.apache.hadoop.fs.Path"/>
  4220. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4221. <exception name="IOException" type="java.io.IOException"/>
  4222. <doc>
  4223. <![CDATA[create a file with the provided permission
  4224. The permission of the file is set to be the provided permission as in
  4225. setPermission, not permission&~umask
  4226. It is implemented using two RPCs. It is understood that it is inefficient,
  4227. but the implementation is thread-safe. The other option is to change the
  4228. value of umask in configuration to be 0, but it is not thread-safe.
  4229. @param fs file system handle
  4230. @param file the name of the file to be created
  4231. @param permission the permission of the file
  4232. @return an output stream
  4233. @throws IOException]]>
  4234. </doc>
  4235. </method>
  4236. <method name="mkdirs" return="boolean"
  4237. abstract="false" native="false" synchronized="false"
  4238. static="true" final="false" visibility="public"
  4239. deprecated="not deprecated">
  4240. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  4241. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  4242. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4243. <exception name="IOException" type="java.io.IOException"/>
  4244. <doc>
  4245. <![CDATA[create a directory with the provided permission
  4246. The permission of the directory is set to be the provided permission as in
  4247. setPermission, not permission&~umask
  4248. @see #create(FileSystem, Path, FsPermission)
  4249. @param fs file system handle
  4250. @param dir the name of the directory to be created
  4251. @param permission the permission of the directory
  4252. @return true if the directory creation succeeds; false otherwise
  4253. @throws IOException]]>
  4254. </doc>
  4255. </method>
  4256. <method name="checkPath"
  4257. abstract="false" native="false" synchronized="false"
  4258. static="false" final="false" visibility="protected"
  4259. deprecated="not deprecated">
  4260. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4261. <doc>
  4262. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4263. </doc>
  4264. </method>
  4265. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4266. abstract="false" native="false" synchronized="false"
  4267. static="false" final="false" visibility="public"
  4268. deprecated="not deprecated">
  4269. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4270. <param name="start" type="long"/>
  4271. <param name="len" type="long"/>
  4272. <exception name="IOException" type="java.io.IOException"/>
  4273. <doc>
  4274. <![CDATA[Return an array containing hostnames, offset and size of
  4275. portions of the given file. For a nonexistent
  4276. file or regions, null will be returned.
  4277. This call is most helpful with DFS, where it returns
  4278. hostnames of machines that contain the given file.
  4279. The FileSystem will simply return an elt containing 'localhost'.]]>
  4280. </doc>
  4281. </method>
  4282. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4283. abstract="false" native="false" synchronized="false"
  4284. static="false" final="false" visibility="public"
  4285. deprecated="not deprecated">
  4286. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4287. <param name="start" type="long"/>
  4288. <param name="len" type="long"/>
  4289. <exception name="IOException" type="java.io.IOException"/>
  4290. <doc>
  4291. <![CDATA[Return an array containing hostnames, offset and size of
  4292. portions of the given file. For a nonexistent
  4293. file or regions, null will be returned.
  4294. This call is most helpful with DFS, where it returns
  4295. hostnames of machines that contain the given file.
  4296. The FileSystem will simply return an elt containing 'localhost'.]]>
  4297. </doc>
  4298. </method>
  4299. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  4300. abstract="false" native="false" synchronized="false"
  4301. static="false" final="false" visibility="public"
  4302. deprecated="not deprecated">
  4303. <exception name="IOException" type="java.io.IOException"/>
  4304. <doc>
  4305. <![CDATA[Return a set of server default configuration values
  4306. @return server default configuration values
  4307. @throws IOException]]>
  4308. </doc>
  4309. </method>
  4310. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4311. abstract="true" native="false" synchronized="false"
  4312. static="false" final="false" visibility="public"
  4313. deprecated="not deprecated">
  4314. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4315. <param name="bufferSize" type="int"/>
  4316. <exception name="IOException" type="java.io.IOException"/>
  4317. <doc>
  4318. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4319. @param f the file name to open
  4320. @param bufferSize the size of the buffer to be used.]]>
  4321. </doc>
  4322. </method>
  4323. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4324. abstract="false" native="false" synchronized="false"
  4325. static="false" final="false" visibility="public"
  4326. deprecated="not deprecated">
  4327. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4328. <exception name="IOException" type="java.io.IOException"/>
  4329. <doc>
  4330. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4331. @param f the file to open]]>
  4332. </doc>
  4333. </method>
  4334. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4335. abstract="false" native="false" synchronized="false"
  4336. static="false" final="false" visibility="public"
  4337. deprecated="not deprecated">
  4338. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4339. <exception name="IOException" type="java.io.IOException"/>
  4340. <doc>
  4341. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  4342. Files are overwritten by default.]]>
  4343. </doc>
  4344. </method>
  4345. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4346. abstract="false" native="false" synchronized="false"
  4347. static="false" final="false" visibility="public"
  4348. deprecated="not deprecated">
  4349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4350. <param name="overwrite" type="boolean"/>
  4351. <exception name="IOException" type="java.io.IOException"/>
  4352. <doc>
  4353. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  4354. </doc>
  4355. </method>
  4356. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4357. abstract="false" native="false" synchronized="false"
  4358. static="false" final="false" visibility="public"
  4359. deprecated="not deprecated">
  4360. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4361. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4362. <exception name="IOException" type="java.io.IOException"/>
  4363. <doc>
  4364. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  4365. reporting.
  4366. Files are overwritten by default.]]>
  4367. </doc>
  4368. </method>
  4369. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4370. abstract="false" native="false" synchronized="false"
  4371. static="false" final="false" visibility="public"
  4372. deprecated="not deprecated">
  4373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4374. <param name="replication" type="short"/>
  4375. <exception name="IOException" type="java.io.IOException"/>
  4376. <doc>
  4377. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  4378. Files are overwritten by default.]]>
  4379. </doc>
  4380. </method>
  4381. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4382. abstract="false" native="false" synchronized="false"
  4383. static="false" final="false" visibility="public"
  4384. deprecated="not deprecated">
  4385. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4386. <param name="replication" type="short"/>
  4387. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4388. <exception name="IOException" type="java.io.IOException"/>
  4389. <doc>
  4390. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  4391. reporting.
  4392. Files are overwritten by default.]]>
  4393. </doc>
  4394. </method>
  4395. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4396. abstract="false" native="false" synchronized="false"
  4397. static="false" final="false" visibility="public"
  4398. deprecated="not deprecated">
  4399. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4400. <param name="overwrite" type="boolean"/>
  4401. <param name="bufferSize" type="int"/>
  4402. <exception name="IOException" type="java.io.IOException"/>
  4403. <doc>
  4404. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  4405. @param f the file name to open
  4406. @param overwrite if a file with this name already exists, then if true,
  4407. the file will be overwritten, and if false an error will be thrown.
  4408. @param bufferSize the size of the buffer to be used.]]>
  4409. </doc>
  4410. </method>
  4411. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4412. abstract="false" native="false" synchronized="false"
  4413. static="false" final="false" visibility="public"
  4414. deprecated="not deprecated">
  4415. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4416. <param name="overwrite" type="boolean"/>
  4417. <param name="bufferSize" type="int"/>
  4418. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4419. <exception name="IOException" type="java.io.IOException"/>
  4420. <doc>
  4421. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  4422. reporting.
  4423. @param f the file name to open
  4424. @param overwrite if a file with this name already exists, then if true,
  4425. the file will be overwritten, and if false an error will be thrown.
  4426. @param bufferSize the size of the buffer to be used.]]>
  4427. </doc>
  4428. </method>
  4429. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4430. abstract="false" native="false" synchronized="false"
  4431. static="false" final="false" visibility="public"
  4432. deprecated="not deprecated">
  4433. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4434. <param name="overwrite" type="boolean"/>
  4435. <param name="bufferSize" type="int"/>
  4436. <param name="replication" type="short"/>
  4437. <param name="blockSize" type="long"/>
  4438. <exception name="IOException" type="java.io.IOException"/>
  4439. <doc>
  4440. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  4441. @param f the file name to open
  4442. @param overwrite if a file with this name already exists, then if true,
  4443. the file will be overwritten, and if false an error will be thrown.
  4444. @param bufferSize the size of the buffer to be used.
  4445. @param replication required block replication for the file.]]>
  4446. </doc>
  4447. </method>
  4448. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4449. abstract="false" native="false" synchronized="false"
  4450. static="false" final="false" visibility="public"
  4451. deprecated="not deprecated">
  4452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4453. <param name="overwrite" type="boolean"/>
  4454. <param name="bufferSize" type="int"/>
  4455. <param name="replication" type="short"/>
  4456. <param name="blockSize" type="long"/>
  4457. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4458. <exception name="IOException" type="java.io.IOException"/>
  4459. <doc>
  4460. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  4461. reporting.
  4462. @param f the file name to open
  4463. @param overwrite if a file with this name already exists, then if true,
  4464. the file will be overwritten, and if false an error will be thrown.
  4465. @param bufferSize the size of the buffer to be used.
  4466. @param replication required block replication for the file.]]>
  4467. </doc>
  4468. </method>
  4469. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4470. abstract="true" native="false" synchronized="false"
  4471. static="false" final="false" visibility="public"
  4472. deprecated="not deprecated">
  4473. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4474. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4475. <param name="overwrite" type="boolean"/>
  4476. <param name="bufferSize" type="int"/>
  4477. <param name="replication" type="short"/>
  4478. <param name="blockSize" type="long"/>
  4479. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4480. <exception name="IOException" type="java.io.IOException"/>
  4481. <doc>
  4482. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  4483. reporting.
  4484. @param f the file name to open
  4485. @param permission
  4486. @param overwrite if a file with this name already exists, then if true,
  4487. the file will be overwritten, and if false an error will be thrown.
  4488. @param bufferSize the size of the buffer to be used.
  4489. @param replication required block replication for the file.
  4490. @param blockSize
  4491. @param progress
  4492. @throws IOException
  4493. @see #setPermission(Path, FsPermission)]]>
  4494. </doc>
  4495. </method>
  4496. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  4497. abstract="false" native="false" synchronized="false"
  4498. static="false" final="false" visibility="protected"
  4499. deprecated="not deprecated">
  4500. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4501. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4502. <param name="flag" type="java.util.EnumSet"/>
  4503. <param name="bufferSize" type="int"/>
  4504. <param name="replication" type="short"/>
  4505. <param name="blockSize" type="long"/>
  4506. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4507. <param name="bytesPerChecksum" type="int"/>
  4508. <exception name="IOException" type="java.io.IOException"/>
  4509. </method>
  4510. <method name="primitiveMkdir" return="boolean"
  4511. abstract="false" native="false" synchronized="false"
  4512. static="false" final="false" visibility="protected"
  4513. deprecated="not deprecated">
  4514. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4515. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4516. <exception name="IOException" type="java.io.IOException"/>
  4517. <doc>
  4518. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  4519. It has been added to support the FileContext that processes the permission
  4520. with umask before calling this method.
  4521. This a temporary method added to support the transition from FileSystem
  4522. to FileContext for user applications.]]>
  4523. </doc>
  4524. </method>
  4525. <method name="primitiveMkdir"
  4526. abstract="false" native="false" synchronized="false"
  4527. static="false" final="false" visibility="protected"
  4528. deprecated="not deprecated">
  4529. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4530. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4531. <param name="createParent" type="boolean"/>
  4532. <exception name="IOException" type="java.io.IOException"/>
  4533. <doc>
  4534. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  4535. It has been added to support the FileContext that processes the permission
  4536. with umask before calling this method.
  4537. This a temporary method added to support the transition from FileSystem
  4538. to FileContext for user applications.]]>
  4539. </doc>
  4540. </method>
  4541. <method name="createNewFile" return="boolean"
  4542. abstract="false" native="false" synchronized="false"
  4543. static="false" final="false" visibility="public"
  4544. deprecated="not deprecated">
  4545. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4546. <exception name="IOException" type="java.io.IOException"/>
  4547. <doc>
  4548. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  4549. create fails, or if it already existed, return false.]]>
  4550. </doc>
  4551. </method>
  4552. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4553. abstract="false" native="false" synchronized="false"
  4554. static="false" final="false" visibility="public"
  4555. deprecated="not deprecated">
  4556. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4557. <exception name="IOException" type="java.io.IOException"/>
  4558. <doc>
  4559. <![CDATA[Append to an existing file (optional operation).
  4560. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  4561. @param f the existing file to be appended.
  4562. @throws IOException]]>
  4563. </doc>
  4564. </method>
  4565. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4566. abstract="false" native="false" synchronized="false"
  4567. static="false" final="false" visibility="public"
  4568. deprecated="not deprecated">
  4569. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4570. <param name="bufferSize" type="int"/>
  4571. <exception name="IOException" type="java.io.IOException"/>
  4572. <doc>
  4573. <![CDATA[Append to an existing file (optional operation).
  4574. Same as append(f, bufferSize, null).
  4575. @param f the existing file to be appended.
  4576. @param bufferSize the size of the buffer to be used.
  4577. @throws IOException]]>
  4578. </doc>
  4579. </method>
  4580. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4581. abstract="true" native="false" synchronized="false"
  4582. static="false" final="false" visibility="public"
  4583. deprecated="not deprecated">
  4584. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4585. <param name="bufferSize" type="int"/>
  4586. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4587. <exception name="IOException" type="java.io.IOException"/>
  4588. <doc>
  4589. <![CDATA[Append to an existing file (optional operation).
  4590. @param f the existing file to be appended.
  4591. @param bufferSize the size of the buffer to be used.
  4592. @param progress for reporting progress if it is not null.
  4593. @throws IOException]]>
  4594. </doc>
  4595. </method>
  4596. <method name="getReplication" return="short"
  4597. abstract="false" native="false" synchronized="false"
  4598. static="false" final="false" visibility="public"
  4599. deprecated="Use getFileStatus() instead">
  4600. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4601. <exception name="IOException" type="java.io.IOException"/>
  4602. <doc>
  4603. <![CDATA[Get replication.
  4604. @deprecated Use getFileStatus() instead
  4605. @param src file name
  4606. @return file replication
  4607. @throws IOException]]>
  4608. </doc>
  4609. </method>
  4610. <method name="setReplication" return="boolean"
  4611. abstract="false" native="false" synchronized="false"
  4612. static="false" final="false" visibility="public"
  4613. deprecated="not deprecated">
  4614. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4615. <param name="replication" type="short"/>
  4616. <exception name="IOException" type="java.io.IOException"/>
  4617. <doc>
  4618. <![CDATA[Set replication for an existing file.
  4619. @param src file name
  4620. @param replication new replication
  4621. @throws IOException
  4622. @return true if successful;
  4623. false if file does not exist or is a directory]]>
  4624. </doc>
  4625. </method>
  4626. <method name="rename" return="boolean"
  4627. abstract="true" native="false" synchronized="false"
  4628. static="false" final="false" visibility="public"
  4629. deprecated="not deprecated">
  4630. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4631. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4632. <exception name="IOException" type="java.io.IOException"/>
  4633. <doc>
  4634. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4635. or remote DFS.
  4636. @throws IOException on failure
  4637. @return true if rename is successful]]>
  4638. </doc>
  4639. </method>
  4640. <method name="rename"
  4641. abstract="false" native="false" synchronized="false"
  4642. static="false" final="false" visibility="protected"
  4643. deprecated="not deprecated">
  4644. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4645. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4646. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  4647. <exception name="IOException" type="java.io.IOException"/>
  4648. <doc>
  4649. <![CDATA[Renames Path src to Path dst
  4650. <ul>
  4651. <li
  4652. <li>Fails if src is a file and dst is a directory.
  4653. <li>Fails if src is a directory and dst is a file.
  4654. <li>Fails if the parent of dst does not exist or is a file.
  4655. </ul>
  4656. <p>
  4657. If OVERWRITE option is not passed as an argument, rename fails
  4658. if the dst already exists.
  4659. <p>
  4660. If OVERWRITE option is passed as an argument, rename overwrites
  4661. the dst if it is a file or an empty directory. Rename fails if dst is
  4662. a non-empty directory.
  4663. <p>
  4664. Note that atomicity of rename is dependent on the file system
  4665. implementation. Please refer to the file system documentation for
  4666. details. This default implementation is non atomic.
  4667. <p>
  4668. This method is deprecated since it is a temporary method added to
  4669. support the transition from FileSystem to FileContext for user
  4670. applications.
  4671. @param src path to be renamed
  4672. @param dst new path after rename
  4673. @throws IOException on failure]]>
  4674. </doc>
  4675. </method>
  4676. <method name="delete" return="boolean"
  4677. abstract="false" native="false" synchronized="false"
  4678. static="false" final="false" visibility="public"
  4679. deprecated="Use {@link #delete(Path, boolean)} instead.">
  4680. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4681. <exception name="IOException" type="java.io.IOException"/>
  4682. <doc>
  4683. <![CDATA[Delete a file
  4684. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  4685. </doc>
  4686. </method>
  4687. <method name="delete" return="boolean"
  4688. abstract="true" native="false" synchronized="false"
  4689. static="false" final="false" visibility="public"
  4690. deprecated="not deprecated">
  4691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4692. <param name="recursive" type="boolean"/>
  4693. <exception name="IOException" type="java.io.IOException"/>
  4694. <doc>
  4695. <![CDATA[Delete a file.
  4696. @param f the path to delete.
  4697. @param recursive if path is a directory and set to
  4698. true, the directory is deleted else throws an exception. In
  4699. case of a file the recursive can be set to either true or false.
  4700. @return true if delete is successful else false.
  4701. @throws IOException]]>
  4702. </doc>
  4703. </method>
  4704. <method name="deleteOnExit" return="boolean"
  4705. abstract="false" native="false" synchronized="false"
  4706. static="false" final="false" visibility="public"
  4707. deprecated="not deprecated">
  4708. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4709. <exception name="IOException" type="java.io.IOException"/>
  4710. <doc>
  4711. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  4712. When the JVM shuts down,
  4713. all FileSystem objects will be closed automatically.
  4714. Then,
  4715. the marked path will be deleted as a result of closing the FileSystem.
  4716. The path has to exist in the file system.
  4717. @param f the path to delete.
  4718. @return true if deleteOnExit is successful, otherwise false.
  4719. @throws IOException]]>
  4720. </doc>
  4721. </method>
  4722. <method name="processDeleteOnExit"
  4723. abstract="false" native="false" synchronized="false"
  4724. static="false" final="false" visibility="protected"
  4725. deprecated="not deprecated">
  4726. <doc>
  4727. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  4728. deletes all files in the specified paths.]]>
  4729. </doc>
  4730. </method>
  4731. <method name="exists" return="boolean"
  4732. abstract="false" native="false" synchronized="false"
  4733. static="false" final="false" visibility="public"
  4734. deprecated="not deprecated">
  4735. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4736. <exception name="IOException" type="java.io.IOException"/>
  4737. <doc>
  4738. <![CDATA[Check if exists.
  4739. @param f source file]]>
  4740. </doc>
  4741. </method>
  4742. <method name="isDirectory" return="boolean"
  4743. abstract="false" native="false" synchronized="false"
  4744. static="false" final="false" visibility="public"
  4745. deprecated="not deprecated">
  4746. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4747. <exception name="IOException" type="java.io.IOException"/>
  4748. <doc>
  4749. <![CDATA[True iff the named path is a directory.
  4750. Note: Avoid using this method. Instead reuse the FileStatus
  4751. returned by getFileStatus() or listStatus() methods.]]>
  4752. </doc>
  4753. </method>
  4754. <method name="isFile" return="boolean"
  4755. abstract="false" native="false" synchronized="false"
  4756. static="false" final="false" visibility="public"
  4757. deprecated="not deprecated">
  4758. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4759. <exception name="IOException" type="java.io.IOException"/>
  4760. <doc>
  4761. <![CDATA[True iff the named path is a regular file.
  4762. Note: Avoid using this method. Instead reuse the FileStatus
  4763. returned by getFileStatus() or listStatus() methods.]]>
  4764. </doc>
  4765. </method>
  4766. <method name="getLength" return="long"
  4767. abstract="false" native="false" synchronized="false"
  4768. static="false" final="false" visibility="public"
  4769. deprecated="Use getFileStatus() instead">
  4770. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4771. <exception name="IOException" type="java.io.IOException"/>
  4772. <doc>
  4773. <![CDATA[@deprecated Use getFileStatus() instead]]>
  4774. </doc>
  4775. </method>
  4776. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  4777. abstract="false" native="false" synchronized="false"
  4778. static="false" final="false" visibility="public"
  4779. deprecated="not deprecated">
  4780. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4781. <exception name="IOException" type="java.io.IOException"/>
  4782. <doc>
  4783. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  4784. </doc>
  4785. </method>
  4786. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4787. abstract="true" native="false" synchronized="false"
  4788. static="false" final="false" visibility="public"
  4789. deprecated="not deprecated">
  4790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4791. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4792. <exception name="IOException" type="java.io.IOException"/>
  4793. <doc>
  4794. <![CDATA[List the statuses of the files/directories in the given path if the path is
  4795. a directory.
  4796. @param f given path
  4797. @return the statuses of the files/directories in the given patch
  4798. @throws FileNotFoundException when the path does not exist;
  4799. IOException see specific implementation]]>
  4800. </doc>
  4801. </method>
  4802. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4803. abstract="false" native="false" synchronized="false"
  4804. static="false" final="false" visibility="public"
  4805. deprecated="not deprecated">
  4806. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4807. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4808. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4809. <exception name="IOException" type="java.io.IOException"/>
  4810. <doc>
  4811. <![CDATA[Filter files/directories in the given path using the user-supplied path
  4812. filter.
  4813. @param f
  4814. a path name
  4815. @param filter
  4816. the user-supplied path filter
  4817. @return an array of FileStatus objects for the files under the given path
  4818. after applying the filter
  4819. @throws FileNotFoundException when the path does not exist;
  4820. IOException see specific implementation]]>
  4821. </doc>
  4822. </method>
  4823. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4824. abstract="false" native="false" synchronized="false"
  4825. static="false" final="false" visibility="public"
  4826. deprecated="not deprecated">
  4827. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  4828. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4829. <exception name="IOException" type="java.io.IOException"/>
  4830. <doc>
  4831. <![CDATA[Filter files/directories in the given list of paths using default
  4832. path filter.
  4833. @param files
  4834. a list of paths
  4835. @return a list of statuses for the files under the given paths after
  4836. applying the filter default Path filter
  4837. @throws FileNotFoundException when the path does not exist;
  4838. IOException see specific implementation]]>
  4839. </doc>
  4840. </method>
  4841. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4842. abstract="false" native="false" synchronized="false"
  4843. static="false" final="false" visibility="public"
  4844. deprecated="not deprecated">
  4845. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  4846. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4847. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4848. <exception name="IOException" type="java.io.IOException"/>
  4849. <doc>
  4850. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  4851. path filter.
  4852. @param files
  4853. a list of paths
  4854. @param filter
  4855. the user-supplied path filter
  4856. @return a list of statuses for the files under the given paths after
  4857. applying the filter
  4858. @throws FileNotFoundException when the path does not exist;
  4859. IOException see specific implementation]]>
  4860. </doc>
  4861. </method>
  4862. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4863. abstract="false" native="false" synchronized="false"
  4864. static="false" final="false" visibility="public"
  4865. deprecated="not deprecated">
  4866. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  4867. <exception name="IOException" type="java.io.IOException"/>
  4868. <doc>
  4869. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  4870. files. Results are sorted by their names.
  4871. <p>
  4872. A filename pattern is composed of <i>regular</i> characters and
  4873. <i>special pattern matching</i> characters, which are:
  4874. <dl>
  4875. <dd>
  4876. <dl>
  4877. <p>
  4878. <dt> <tt> ? </tt>
  4879. <dd> Matches any single character.
  4880. <p>
  4881. <dt> <tt> * </tt>
  4882. <dd> Matches zero or more characters.
  4883. <p>
  4884. <dt> <tt> [<i>abc</i>] </tt>
  4885. <dd> Matches a single character from character set
  4886. <tt>{<i>a,b,c</i>}</tt>.
  4887. <p>
  4888. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  4889. <dd> Matches a single character from the character range
  4890. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  4891. lexicographically less than or equal to character <tt><i>b</i></tt>.
  4892. <p>
  4893. <dt> <tt> [^<i>a</i>] </tt>
  4894. <dd> Matches a single character that is not from character set or range
  4895. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  4896. immediately to the right of the opening bracket.
  4897. <p>
  4898. <dt> <tt> \<i>c</i> </tt>
  4899. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  4900. <p>
  4901. <dt> <tt> {ab,cd} </tt>
  4902. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  4903. <p>
  4904. <dt> <tt> {ab,c{de,fh}} </tt>
  4905. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  4906. </dl>
  4907. </dd>
  4908. </dl>
  4909. @param pathPattern a regular expression specifying a pth pattern
  4910. @return an array of paths that match the path pattern
  4911. @throws IOException]]>
  4912. </doc>
  4913. </method>
  4914. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4915. abstract="false" native="false" synchronized="false"
  4916. static="false" final="false" visibility="public"
  4917. deprecated="not deprecated">
  4918. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  4919. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4920. <exception name="IOException" type="java.io.IOException"/>
  4921. <doc>
  4922. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  4923. and is accepted by the user-supplied path filter. Results are sorted by
  4924. their path names.
  4925. Return null if pathPattern has no glob and the path does not exist.
  4926. Return an empty array if pathPattern has a glob and no path matches it.
  4927. @param pathPattern
  4928. a regular expression specifying the path pattern
  4929. @param filter
  4930. a user-supplied path filter
  4931. @return an array of FileStatus objects
  4932. @throws IOException if any I/O error occurs when fetching file status]]>
  4933. </doc>
  4934. </method>
  4935. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4936. abstract="false" native="false" synchronized="false"
  4937. static="false" final="false" visibility="public"
  4938. deprecated="not deprecated">
  4939. <doc>
  4940. <![CDATA[Return the current user's home directory in this filesystem.
  4941. The default implementation returns "/user/$USER/".]]>
  4942. </doc>
  4943. </method>
  4944. <method name="setWorkingDirectory"
  4945. abstract="true" native="false" synchronized="false"
  4946. static="false" final="false" visibility="public"
  4947. deprecated="not deprecated">
  4948. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  4949. <doc>
  4950. <![CDATA[Set the current working directory for the given file system. All relative
  4951. paths will be resolved relative to it.
  4952. @param new_dir]]>
  4953. </doc>
  4954. </method>
  4955. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4956. abstract="true" native="false" synchronized="false"
  4957. static="false" final="false" visibility="public"
  4958. deprecated="not deprecated">
  4959. <doc>
  4960. <![CDATA[Get the current working directory for the given file system
  4961. @return the directory pathname]]>
  4962. </doc>
  4963. </method>
  4964. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4965. abstract="false" native="false" synchronized="false"
  4966. static="false" final="false" visibility="protected"
  4967. deprecated="not deprecated">
  4968. <doc>
  4969. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  4970. will be removed.
  4971. The working directory is implemented in FilesContext.
  4972. Some file systems like LocalFileSystem have an initial workingDir
  4973. that we use as the starting workingDir. For other file systems
  4974. like HDFS there is no built in notion of an inital workingDir.
  4975. @return if there is built in notion of workingDir then it
  4976. is returned; else a null is returned.]]>
  4977. </doc>
  4978. </method>
  4979. <method name="mkdirs" return="boolean"
  4980. abstract="false" native="false" synchronized="false"
  4981. static="false" final="false" visibility="public"
  4982. deprecated="not deprecated">
  4983. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4984. <exception name="IOException" type="java.io.IOException"/>
  4985. <doc>
  4986. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  4987. </doc>
  4988. </method>
  4989. <method name="mkdirs" return="boolean"
  4990. abstract="true" native="false" synchronized="false"
  4991. static="false" final="false" visibility="public"
  4992. deprecated="not deprecated">
  4993. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4994. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4995. <exception name="IOException" type="java.io.IOException"/>
  4996. <doc>
  4997. <![CDATA[Make the given file and all non-existent parents into
  4998. directories. Has the semantics of Unix 'mkdir -p'.
  4999. Existence of the directory hierarchy is not an error.]]>
  5000. </doc>
  5001. </method>
  5002. <method name="copyFromLocalFile"
  5003. abstract="false" native="false" synchronized="false"
  5004. static="false" final="false" visibility="public"
  5005. deprecated="not deprecated">
  5006. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5007. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5008. <exception name="IOException" type="java.io.IOException"/>
  5009. <doc>
  5010. <![CDATA[The src file is on the local disk. Add it to FS at
  5011. the given dst name and the source is kept intact afterwards]]>
  5012. </doc>
  5013. </method>
  5014. <method name="moveFromLocalFile"
  5015. abstract="false" native="false" synchronized="false"
  5016. static="false" final="false" visibility="public"
  5017. deprecated="not deprecated">
  5018. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  5019. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5020. <exception name="IOException" type="java.io.IOException"/>
  5021. <doc>
  5022. <![CDATA[The src files is on the local disk. Add it to FS at
  5023. the given dst name, removing the source afterwards.]]>
  5024. </doc>
  5025. </method>
  5026. <method name="moveFromLocalFile"
  5027. abstract="false" native="false" synchronized="false"
  5028. static="false" final="false" visibility="public"
  5029. deprecated="not deprecated">
  5030. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5031. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5032. <exception name="IOException" type="java.io.IOException"/>
  5033. <doc>
  5034. <![CDATA[The src file is on the local disk. Add it to FS at
  5035. the given dst name, removing the source afterwards.]]>
  5036. </doc>
  5037. </method>
  5038. <method name="copyFromLocalFile"
  5039. abstract="false" native="false" synchronized="false"
  5040. static="false" final="false" visibility="public"
  5041. deprecated="not deprecated">
  5042. <param name="delSrc" type="boolean"/>
  5043. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5044. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5045. <exception name="IOException" type="java.io.IOException"/>
  5046. <doc>
  5047. <![CDATA[The src file is on the local disk. Add it to FS at
  5048. the given dst name.
  5049. delSrc indicates if the source should be removed]]>
  5050. </doc>
  5051. </method>
  5052. <method name="copyFromLocalFile"
  5053. abstract="false" native="false" synchronized="false"
  5054. static="false" final="false" visibility="public"
  5055. deprecated="not deprecated">
  5056. <param name="delSrc" type="boolean"/>
  5057. <param name="overwrite" type="boolean"/>
  5058. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  5059. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5060. <exception name="IOException" type="java.io.IOException"/>
  5061. <doc>
  5062. <![CDATA[The src files are on the local disk. Add it to FS at
  5063. the given dst name.
  5064. delSrc indicates if the source should be removed]]>
  5065. </doc>
  5066. </method>
  5067. <method name="copyFromLocalFile"
  5068. abstract="false" native="false" synchronized="false"
  5069. static="false" final="false" visibility="public"
  5070. deprecated="not deprecated">
  5071. <param name="delSrc" type="boolean"/>
  5072. <param name="overwrite" type="boolean"/>
  5073. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5074. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5075. <exception name="IOException" type="java.io.IOException"/>
  5076. <doc>
  5077. <![CDATA[The src file is on the local disk. Add it to FS at
  5078. the given dst name.
  5079. delSrc indicates if the source should be removed]]>
  5080. </doc>
  5081. </method>
  5082. <method name="copyToLocalFile"
  5083. abstract="false" native="false" synchronized="false"
  5084. static="false" final="false" visibility="public"
  5085. deprecated="not deprecated">
  5086. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5087. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5088. <exception name="IOException" type="java.io.IOException"/>
  5089. <doc>
  5090. <![CDATA[The src file is under FS, and the dst is on the local disk.
  5091. Copy it from FS control to the local dst name.]]>
  5092. </doc>
  5093. </method>
  5094. <method name="moveToLocalFile"
  5095. abstract="false" native="false" synchronized="false"
  5096. static="false" final="false" visibility="public"
  5097. deprecated="not deprecated">
  5098. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5099. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5100. <exception name="IOException" type="java.io.IOException"/>
  5101. <doc>
  5102. <![CDATA[The src file is under FS, and the dst is on the local disk.
  5103. Copy it from FS control to the local dst name.
  5104. Remove the source afterwards]]>
  5105. </doc>
  5106. </method>
  5107. <method name="copyToLocalFile"
  5108. abstract="false" native="false" synchronized="false"
  5109. static="false" final="false" visibility="public"
  5110. deprecated="not deprecated">
  5111. <param name="delSrc" type="boolean"/>
  5112. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5113. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5114. <exception name="IOException" type="java.io.IOException"/>
  5115. <doc>
  5116. <![CDATA[The src file is under FS, and the dst is on the local disk.
  5117. Copy it from FS control to the local dst name.
  5118. delSrc indicates if the src will be removed or not.]]>
  5119. </doc>
  5120. </method>
  5121. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5122. abstract="false" native="false" synchronized="false"
  5123. static="false" final="false" visibility="public"
  5124. deprecated="not deprecated">
  5125. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5126. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5127. <exception name="IOException" type="java.io.IOException"/>
  5128. <doc>
  5129. <![CDATA[Returns a local File that the user can write output to. The caller
  5130. provides both the eventual FS target name and the local working
  5131. file. If the FS is local, we write directly into the target. If
  5132. the FS is remote, we write into the tmp local area.]]>
  5133. </doc>
  5134. </method>
  5135. <method name="completeLocalOutput"
  5136. abstract="false" native="false" synchronized="false"
  5137. static="false" final="false" visibility="public"
  5138. deprecated="not deprecated">
  5139. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5140. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5141. <exception name="IOException" type="java.io.IOException"/>
  5142. <doc>
  5143. <![CDATA[Called when we're all done writing to the target. A local FS will
  5144. do nothing, because we've written to exactly the right place. A remote
  5145. FS will copy the contents of tmpLocalFile to the correct target at
  5146. fsOutputFile.]]>
  5147. </doc>
  5148. </method>
  5149. <method name="close"
  5150. abstract="false" native="false" synchronized="false"
  5151. static="false" final="false" visibility="public"
  5152. deprecated="not deprecated">
  5153. <exception name="IOException" type="java.io.IOException"/>
  5154. <doc>
  5155. <![CDATA[No more filesystem operations are needed. Will
  5156. release any held locks.]]>
  5157. </doc>
  5158. </method>
  5159. <method name="getUsed" return="long"
  5160. abstract="false" native="false" synchronized="false"
  5161. static="false" final="false" visibility="public"
  5162. deprecated="not deprecated">
  5163. <exception name="IOException" type="java.io.IOException"/>
  5164. <doc>
  5165. <![CDATA[Return the total size of all files in the filesystem.]]>
  5166. </doc>
  5167. </method>
  5168. <method name="getBlockSize" return="long"
  5169. abstract="false" native="false" synchronized="false"
  5170. static="false" final="false" visibility="public"
  5171. deprecated="Use getFileStatus() instead">
  5172. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5173. <exception name="IOException" type="java.io.IOException"/>
  5174. <doc>
  5175. <![CDATA[@deprecated Use getFileStatus() instead]]>
  5176. </doc>
  5177. </method>
  5178. <method name="getDefaultBlockSize" return="long"
  5179. abstract="false" native="false" synchronized="false"
  5180. static="false" final="false" visibility="public"
  5181. deprecated="not deprecated">
  5182. <doc>
  5183. <![CDATA[Return the number of bytes that large input files should be optimally
  5184. be split into to minimize i/o time.]]>
  5185. </doc>
  5186. </method>
  5187. <method name="getDefaultReplication" return="short"
  5188. abstract="false" native="false" synchronized="false"
  5189. static="false" final="false" visibility="public"
  5190. deprecated="not deprecated">
  5191. <doc>
  5192. <![CDATA[Get the default replication.]]>
  5193. </doc>
  5194. </method>
  5195. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5196. abstract="true" native="false" synchronized="false"
  5197. static="false" final="false" visibility="public"
  5198. deprecated="not deprecated">
  5199. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5200. <exception name="IOException" type="java.io.IOException"/>
  5201. <doc>
  5202. <![CDATA[Return a file status object that represents the path.
  5203. @param f The path we want information from
  5204. @return a FileStatus object
  5205. @throws FileNotFoundException when the path does not exist;
  5206. IOException see specific implementation]]>
  5207. </doc>
  5208. </method>
  5209. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5210. abstract="false" native="false" synchronized="false"
  5211. static="false" final="false" visibility="public"
  5212. deprecated="not deprecated">
  5213. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5214. <exception name="IOException" type="java.io.IOException"/>
  5215. <doc>
  5216. <![CDATA[Get the checksum of a file.
  5217. @param f The file path
  5218. @return The file checksum. The default return value is null,
  5219. which indicates that no checksum algorithm is implemented
  5220. in the corresponding FileSystem.]]>
  5221. </doc>
  5222. </method>
  5223. <method name="setVerifyChecksum"
  5224. abstract="false" native="false" synchronized="false"
  5225. static="false" final="false" visibility="public"
  5226. deprecated="not deprecated">
  5227. <param name="verifyChecksum" type="boolean"/>
  5228. <doc>
  5229. <![CDATA[Set the verify checksum flag. This is only applicable if the
  5230. corresponding FileSystem supports checksum. By default doesn't do anything.
  5231. @param verifyChecksum]]>
  5232. </doc>
  5233. </method>
  5234. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  5235. abstract="false" native="false" synchronized="false"
  5236. static="false" final="false" visibility="public"
  5237. deprecated="not deprecated">
  5238. <exception name="IOException" type="java.io.IOException"/>
  5239. <doc>
  5240. <![CDATA[Returns a status object describing the use and capacity of the
  5241. file system. If the file system has multiple partitions, the
  5242. use and capacity of the root partition is reflected.
  5243. @return a FsStatus object
  5244. @throws IOException
  5245. see specific implementation]]>
  5246. </doc>
  5247. </method>
  5248. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  5249. abstract="false" native="false" synchronized="false"
  5250. static="false" final="false" visibility="public"
  5251. deprecated="not deprecated">
  5252. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5253. <exception name="IOException" type="java.io.IOException"/>
  5254. <doc>
  5255. <![CDATA[Returns a status object describing the use and capacity of the
  5256. file system. If the file system has multiple partitions, the
  5257. use and capacity of the partition pointed to by the specified
  5258. path is reflected.
  5259. @param p Path for which status should be obtained. null means
  5260. the default partition.
  5261. @return a FsStatus object
  5262. @throws IOException
  5263. see specific implementation]]>
  5264. </doc>
  5265. </method>
  5266. <method name="setPermission"
  5267. abstract="false" native="false" synchronized="false"
  5268. static="false" final="false" visibility="public"
  5269. deprecated="not deprecated">
  5270. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5271. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5272. <exception name="IOException" type="java.io.IOException"/>
  5273. <doc>
  5274. <![CDATA[Set permission of a path.
  5275. @param p
  5276. @param permission]]>
  5277. </doc>
  5278. </method>
  5279. <method name="setOwner"
  5280. abstract="false" native="false" synchronized="false"
  5281. static="false" final="false" visibility="public"
  5282. deprecated="not deprecated">
  5283. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5284. <param name="username" type="java.lang.String"/>
  5285. <param name="groupname" type="java.lang.String"/>
  5286. <exception name="IOException" type="java.io.IOException"/>
  5287. <doc>
  5288. <![CDATA[Set owner of a path (i.e. a file or a directory).
  5289. The parameters username and groupname cannot both be null.
  5290. @param p The path
  5291. @param username If it is null, the original username remains unchanged.
  5292. @param groupname If it is null, the original groupname remains unchanged.]]>
  5293. </doc>
  5294. </method>
  5295. <method name="setTimes"
  5296. abstract="false" native="false" synchronized="false"
  5297. static="false" final="false" visibility="public"
  5298. deprecated="not deprecated">
  5299. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5300. <param name="mtime" type="long"/>
  5301. <param name="atime" type="long"/>
  5302. <exception name="IOException" type="java.io.IOException"/>
  5303. <doc>
  5304. <![CDATA[Set access time of a file
  5305. @param p The path
  5306. @param mtime Set the modification time of this file.
  5307. The number of milliseconds since Jan 1, 1970.
  5308. A value of -1 means that this call should not set modification time.
  5309. @param atime Set the access time of this file.
  5310. The number of milliseconds since Jan 1, 1970.
  5311. A value of -1 means that this call should not set access time.]]>
  5312. </doc>
  5313. </method>
  5314. <method name="getStatistics" return="java.util.Map"
  5315. abstract="false" native="false" synchronized="true"
  5316. static="true" final="false" visibility="public"
  5317. deprecated="use {@link #getAllStatistics} instead">
  5318. <doc>
  5319. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  5320. @return a Map having a key as URI scheme and value as Statistics object
  5321. @deprecated use {@link #getAllStatistics} instead]]>
  5322. </doc>
  5323. </method>
  5324. <method name="getAllStatistics" return="java.util.List"
  5325. abstract="false" native="false" synchronized="true"
  5326. static="true" final="false" visibility="public"
  5327. deprecated="not deprecated">
  5328. <doc>
  5329. <![CDATA[Return the FileSystem classes that have Statistics]]>
  5330. </doc>
  5331. </method>
  5332. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  5333. abstract="false" native="false" synchronized="true"
  5334. static="true" final="false" visibility="public"
  5335. deprecated="not deprecated">
  5336. <param name="scheme" type="java.lang.String"/>
  5337. <param name="cls" type="java.lang.Class"/>
  5338. <doc>
  5339. <![CDATA[Get the statistics for a particular file system
  5340. @param cls the class to lookup
  5341. @return a statistics object]]>
  5342. </doc>
  5343. </method>
  5344. <method name="clearStatistics"
  5345. abstract="false" native="false" synchronized="true"
  5346. static="true" final="false" visibility="public"
  5347. deprecated="not deprecated">
  5348. </method>
  5349. <method name="printStatistics"
  5350. abstract="false" native="false" synchronized="true"
  5351. static="true" final="false" visibility="public"
  5352. deprecated="not deprecated">
  5353. <exception name="IOException" type="java.io.IOException"/>
  5354. </method>
  5355. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  5356. transient="false" volatile="false"
  5357. static="true" final="true" visibility="public"
  5358. deprecated="not deprecated">
  5359. </field>
  5360. <field name="DEFAULT_FS" type="java.lang.String"
  5361. transient="false" volatile="false"
  5362. static="true" final="true" visibility="public"
  5363. deprecated="not deprecated">
  5364. </field>
  5365. <field name="LOG" type="org.apache.commons.logging.Log"
  5366. transient="false" volatile="false"
  5367. static="true" final="true" visibility="public"
  5368. deprecated="not deprecated">
  5369. </field>
  5370. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  5371. transient="false" volatile="false"
  5372. static="false" final="false" visibility="protected"
  5373. deprecated="not deprecated">
  5374. <doc>
  5375. <![CDATA[The statistics for this file system.]]>
  5376. </doc>
  5377. </field>
  5378. <doc>
  5379. <![CDATA[An abstract base class for a fairly generic filesystem. It
  5380. may be implemented as a distributed filesystem, or as a "local"
  5381. one that reflects the locally-connected disk. The local version
  5382. exists for small Hadoop instances and for testing.
  5383. <p>
  5384. All user code that may potentially use the Hadoop Distributed
  5385. File System should be written to use a FileSystem object. The
  5386. Hadoop DFS is a multi-machine system that appears as a single
  5387. disk. It's useful because of its fault tolerance and potentially
  5388. very large capacity.
  5389. <p>
  5390. The local implementation is {@link LocalFileSystem} and distributed
  5391. implementation is DistributedFileSystem.]]>
  5392. </doc>
  5393. </class>
  5394. <!-- end class org.apache.hadoop.fs.FileSystem -->
  5395. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  5396. <class name="FileSystem.Statistics" extends="java.lang.Object"
  5397. abstract="false"
  5398. static="true" final="true" visibility="public"
  5399. deprecated="not deprecated">
  5400. <constructor name="FileSystem.Statistics" type="java.lang.String"
  5401. static="false" final="false" visibility="public"
  5402. deprecated="not deprecated">
  5403. </constructor>
  5404. <method name="incrementBytesRead"
  5405. abstract="false" native="false" synchronized="false"
  5406. static="false" final="false" visibility="public"
  5407. deprecated="not deprecated">
  5408. <param name="newBytes" type="long"/>
  5409. <doc>
  5410. <![CDATA[Increment the bytes read in the statistics
  5411. @param newBytes the additional bytes read]]>
  5412. </doc>
  5413. </method>
  5414. <method name="incrementBytesWritten"
  5415. abstract="false" native="false" synchronized="false"
  5416. static="false" final="false" visibility="public"
  5417. deprecated="not deprecated">
  5418. <param name="newBytes" type="long"/>
  5419. <doc>
  5420. <![CDATA[Increment the bytes written in the statistics
  5421. @param newBytes the additional bytes written]]>
  5422. </doc>
  5423. </method>
  5424. <method name="getBytesRead" return="long"
  5425. abstract="false" native="false" synchronized="false"
  5426. static="false" final="false" visibility="public"
  5427. deprecated="not deprecated">
  5428. <doc>
  5429. <![CDATA[Get the total number of bytes read
  5430. @return the number of bytes]]>
  5431. </doc>
  5432. </method>
  5433. <method name="getBytesWritten" return="long"
  5434. abstract="false" native="false" synchronized="false"
  5435. static="false" final="false" visibility="public"
  5436. deprecated="not deprecated">
  5437. <doc>
  5438. <![CDATA[Get the total number of bytes written
  5439. @return the number of bytes]]>
  5440. </doc>
  5441. </method>
  5442. <method name="toString" return="java.lang.String"
  5443. abstract="false" native="false" synchronized="false"
  5444. static="false" final="false" visibility="public"
  5445. deprecated="not deprecated">
  5446. </method>
  5447. <method name="reset"
  5448. abstract="false" native="false" synchronized="false"
  5449. static="false" final="false" visibility="public"
  5450. deprecated="not deprecated">
  5451. <doc>
  5452. <![CDATA[Reset the counts of bytes to 0.]]>
  5453. </doc>
  5454. </method>
  5455. <method name="getScheme" return="java.lang.String"
  5456. abstract="false" native="false" synchronized="false"
  5457. static="false" final="false" visibility="public"
  5458. deprecated="not deprecated">
  5459. <doc>
  5460. <![CDATA[Get the uri scheme associated with this statistics object.
  5461. @return the schema associated with this set of statistics]]>
  5462. </doc>
  5463. </method>
  5464. </class>
  5465. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  5466. <!-- start class org.apache.hadoop.fs.FileUtil -->
  5467. <class name="FileUtil" extends="java.lang.Object"
  5468. abstract="false"
  5469. static="false" final="false" visibility="public"
  5470. deprecated="not deprecated">
  5471. <constructor name="FileUtil"
  5472. static="false" final="false" visibility="public"
  5473. deprecated="not deprecated">
  5474. </constructor>
  5475. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  5476. abstract="false" native="false" synchronized="false"
  5477. static="true" final="false" visibility="public"
  5478. deprecated="not deprecated">
  5479. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  5480. <doc>
  5481. <![CDATA[convert an array of FileStatus to an array of Path
  5482. @param stats
  5483. an array of FileStatus objects
  5484. @return an array of paths corresponding to the input]]>
  5485. </doc>
  5486. </method>
  5487. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  5488. abstract="false" native="false" synchronized="false"
  5489. static="true" final="false" visibility="public"
  5490. deprecated="not deprecated">
  5491. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  5492. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5493. <doc>
  5494. <![CDATA[convert an array of FileStatus to an array of Path.
  5495. If stats if null, return path
  5496. @param stats
  5497. an array of FileStatus objects
  5498. @param path
  5499. default path to return in stats is null
  5500. @return an array of paths corresponding to the input]]>
  5501. </doc>
  5502. </method>
  5503. <method name="fullyDelete" return="boolean"
  5504. abstract="false" native="false" synchronized="false"
  5505. static="true" final="false" visibility="public"
  5506. deprecated="not deprecated">
  5507. <param name="dir" type="java.io.File"/>
  5508. <exception name="IOException" type="java.io.IOException"/>
  5509. <doc>
  5510. <![CDATA[Delete a directory and all its contents. If
  5511. we return false, the directory may be partially-deleted.]]>
  5512. </doc>
  5513. </method>
  5514. <method name="fullyDeleteContents" return="boolean"
  5515. abstract="false" native="false" synchronized="false"
  5516. static="true" final="false" visibility="public"
  5517. deprecated="not deprecated">
  5518. <param name="dir" type="java.io.File"/>
  5519. <exception name="IOException" type="java.io.IOException"/>
  5520. <doc>
  5521. <![CDATA[Delete the contents of a directory, not the directory itself. If
  5522. we return false, the directory may be partially-deleted.]]>
  5523. </doc>
  5524. </method>
  5525. <method name="fullyDelete"
  5526. abstract="false" native="false" synchronized="false"
  5527. static="true" final="false" visibility="public"
  5528. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  5529. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5530. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  5531. <exception name="IOException" type="java.io.IOException"/>
  5532. <doc>
  5533. <![CDATA[Recursively delete a directory.
  5534. @param fs {@link FileSystem} on which the path is present
  5535. @param dir directory to recursively delete
  5536. @throws IOException
  5537. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  5538. </doc>
  5539. </method>
  5540. <method name="copy" return="boolean"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="true" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  5545. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5546. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  5547. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5548. <param name="deleteSource" type="boolean"/>
  5549. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5550. <exception name="IOException" type="java.io.IOException"/>
  5551. <doc>
  5552. <![CDATA[Copy files between FileSystems.]]>
  5553. </doc>
  5554. </method>
  5555. <method name="copy" return="boolean"
  5556. abstract="false" native="false" synchronized="false"
  5557. static="true" final="false" visibility="public"
  5558. deprecated="not deprecated">
  5559. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  5560. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  5561. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  5562. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5563. <param name="deleteSource" type="boolean"/>
  5564. <param name="overwrite" type="boolean"/>
  5565. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5566. <exception name="IOException" type="java.io.IOException"/>
  5567. </method>
  5568. <method name="copy" return="boolean"
  5569. abstract="false" native="false" synchronized="false"
  5570. static="true" final="false" visibility="public"
  5571. deprecated="not deprecated">
  5572. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  5573. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5574. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  5575. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5576. <param name="deleteSource" type="boolean"/>
  5577. <param name="overwrite" type="boolean"/>
  5578. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5579. <exception name="IOException" type="java.io.IOException"/>
  5580. <doc>
  5581. <![CDATA[Copy files between FileSystems.]]>
  5582. </doc>
  5583. </method>
  5584. <method name="copyMerge" return="boolean"
  5585. abstract="false" native="false" synchronized="false"
  5586. static="true" final="false" visibility="public"
  5587. deprecated="not deprecated">
  5588. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  5589. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  5590. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  5591. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  5592. <param name="deleteSource" type="boolean"/>
  5593. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5594. <param name="addString" type="java.lang.String"/>
  5595. <exception name="IOException" type="java.io.IOException"/>
  5596. <doc>
  5597. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  5598. </doc>
  5599. </method>
  5600. <method name="copy" return="boolean"
  5601. abstract="false" native="false" synchronized="false"
  5602. static="true" final="false" visibility="public"
  5603. deprecated="not deprecated">
  5604. <param name="src" type="java.io.File"/>
  5605. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  5606. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5607. <param name="deleteSource" type="boolean"/>
  5608. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5609. <exception name="IOException" type="java.io.IOException"/>
  5610. <doc>
  5611. <![CDATA[Copy local files to a FileSystem.]]>
  5612. </doc>
  5613. </method>
  5614. <method name="copy" return="boolean"
  5615. abstract="false" native="false" synchronized="false"
  5616. static="true" final="false" visibility="public"
  5617. deprecated="not deprecated">
  5618. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  5619. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5620. <param name="dst" type="java.io.File"/>
  5621. <param name="deleteSource" type="boolean"/>
  5622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5623. <exception name="IOException" type="java.io.IOException"/>
  5624. <doc>
  5625. <![CDATA[Copy FileSystem files to local files.]]>
  5626. </doc>
  5627. </method>
  5628. <method name="makeShellPath" return="java.lang.String"
  5629. abstract="false" native="false" synchronized="false"
  5630. static="true" final="false" visibility="public"
  5631. deprecated="not deprecated">
  5632. <param name="filename" type="java.lang.String"/>
  5633. <exception name="IOException" type="java.io.IOException"/>
  5634. <doc>
  5635. <![CDATA[Convert a os-native filename to a path that works for the shell.
  5636. @param filename The filename to convert
  5637. @return The unix pathname
  5638. @throws IOException on windows, there can be problems with the subprocess]]>
  5639. </doc>
  5640. </method>
  5641. <method name="makeShellPath" return="java.lang.String"
  5642. abstract="false" native="false" synchronized="false"
  5643. static="true" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <param name="file" type="java.io.File"/>
  5646. <exception name="IOException" type="java.io.IOException"/>
  5647. <doc>
  5648. <![CDATA[Convert a os-native filename to a path that works for the shell.
  5649. @param file The filename to convert
  5650. @return The unix pathname
  5651. @throws IOException on windows, there can be problems with the subprocess]]>
  5652. </doc>
  5653. </method>
  5654. <method name="makeShellPath" return="java.lang.String"
  5655. abstract="false" native="false" synchronized="false"
  5656. static="true" final="false" visibility="public"
  5657. deprecated="not deprecated">
  5658. <param name="file" type="java.io.File"/>
  5659. <param name="makeCanonicalPath" type="boolean"/>
  5660. <exception name="IOException" type="java.io.IOException"/>
  5661. <doc>
  5662. <![CDATA[Convert a os-native filename to a path that works for the shell.
  5663. @param file The filename to convert
  5664. @param makeCanonicalPath
  5665. Whether to make canonical path for the file passed
  5666. @return The unix pathname
  5667. @throws IOException on windows, there can be problems with the subprocess]]>
  5668. </doc>
  5669. </method>
  5670. <method name="getDU" return="long"
  5671. abstract="false" native="false" synchronized="false"
  5672. static="true" final="false" visibility="public"
  5673. deprecated="not deprecated">
  5674. <param name="dir" type="java.io.File"/>
  5675. <doc>
  5676. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  5677. implementation.
  5678. @param dir
  5679. The input dir to get the disk space of this local dir
  5680. @return The total disk space of the input local directory]]>
  5681. </doc>
  5682. </method>
  5683. <method name="unZip"
  5684. abstract="false" native="false" synchronized="false"
  5685. static="true" final="false" visibility="public"
  5686. deprecated="not deprecated">
  5687. <param name="inFile" type="java.io.File"/>
  5688. <param name="unzipDir" type="java.io.File"/>
  5689. <exception name="IOException" type="java.io.IOException"/>
  5690. <doc>
  5691. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  5692. passed as the second parameter
  5693. @param inFile The zip file as input
  5694. @param unzipDir The unzip directory where to unzip the zip file.
  5695. @throws IOException]]>
  5696. </doc>
  5697. </method>
  5698. <method name="unTar"
  5699. abstract="false" native="false" synchronized="false"
  5700. static="true" final="false" visibility="public"
  5701. deprecated="not deprecated">
  5702. <param name="inFile" type="java.io.File"/>
  5703. <param name="untarDir" type="java.io.File"/>
  5704. <exception name="IOException" type="java.io.IOException"/>
  5705. <doc>
  5706. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  5707. passed as the second parameter
  5708. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  5709. @param inFile The tar file as input.
  5710. @param untarDir The untar directory where to untar the tar file.
  5711. @throws IOException]]>
  5712. </doc>
  5713. </method>
  5714. <method name="symLink" return="int"
  5715. abstract="false" native="false" synchronized="false"
  5716. static="true" final="false" visibility="public"
  5717. deprecated="not deprecated">
  5718. <param name="target" type="java.lang.String"/>
  5719. <param name="linkname" type="java.lang.String"/>
  5720. <exception name="IOException" type="java.io.IOException"/>
  5721. <doc>
  5722. <![CDATA[Create a soft link between a src and destination
  5723. only on a local disk. HDFS does not support this
  5724. @param target the target for symlink
  5725. @param linkname the symlink
  5726. @return value returned by the command]]>
  5727. </doc>
  5728. </method>
  5729. <method name="chmod" return="int"
  5730. abstract="false" native="false" synchronized="false"
  5731. static="true" final="false" visibility="public"
  5732. deprecated="not deprecated">
  5733. <param name="filename" type="java.lang.String"/>
  5734. <param name="perm" type="java.lang.String"/>
  5735. <exception name="IOException" type="java.io.IOException"/>
  5736. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  5737. <doc>
  5738. <![CDATA[Change the permissions on a filename.
  5739. @param filename the name of the file to change
  5740. @param perm the permission string
  5741. @return the exit code from the command
  5742. @throws IOException
  5743. @throws InterruptedException]]>
  5744. </doc>
  5745. </method>
  5746. <method name="chmod" return="int"
  5747. abstract="false" native="false" synchronized="false"
  5748. static="true" final="false" visibility="public"
  5749. deprecated="not deprecated">
  5750. <param name="filename" type="java.lang.String"/>
  5751. <param name="perm" type="java.lang.String"/>
  5752. <param name="recursive" type="boolean"/>
  5753. <exception name="IOException" type="java.io.IOException"/>
  5754. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  5755. <doc>
  5756. <![CDATA[Change the permissions on a file / directory, recursively, if
  5757. needed.
  5758. @param filename name of the file whose permissions are to change
  5759. @param perm permission string
  5760. @param recursive true, if permissions should be changed recursively
  5761. @return the exit code from the command.
  5762. @throws IOException
  5763. @throws InterruptedException]]>
  5764. </doc>
  5765. </method>
  5766. <method name="createLocalTempFile" return="java.io.File"
  5767. abstract="false" native="false" synchronized="false"
  5768. static="true" final="true" visibility="public"
  5769. deprecated="not deprecated">
  5770. <param name="basefile" type="java.io.File"/>
  5771. <param name="prefix" type="java.lang.String"/>
  5772. <param name="isDeleteOnExit" type="boolean"/>
  5773. <exception name="IOException" type="java.io.IOException"/>
  5774. <doc>
  5775. <![CDATA[Create a tmp file for a base file.
  5776. @param basefile the base file of the tmp
  5777. @param prefix file name prefix of tmp
  5778. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  5779. @return a newly created tmp file
  5780. @exception IOException If a tmp file cannot created
  5781. @see java.io.File#createTempFile(String, String, File)
  5782. @see java.io.File#deleteOnExit()]]>
  5783. </doc>
  5784. </method>
  5785. <method name="replaceFile"
  5786. abstract="false" native="false" synchronized="false"
  5787. static="true" final="false" visibility="public"
  5788. deprecated="not deprecated">
  5789. <param name="src" type="java.io.File"/>
  5790. <param name="target" type="java.io.File"/>
  5791. <exception name="IOException" type="java.io.IOException"/>
  5792. <doc>
  5793. <![CDATA[Move the src file to the name specified by target.
  5794. @param src the source file
  5795. @param target the target file
  5796. @exception IOException If this operation fails]]>
  5797. </doc>
  5798. </method>
  5799. <doc>
  5800. <![CDATA[A collection of file-processing util methods]]>
  5801. </doc>
  5802. </class>
  5803. <!-- end class org.apache.hadoop.fs.FileUtil -->
  5804. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  5805. <class name="FileUtil.HardLink" extends="java.lang.Object"
  5806. abstract="false"
  5807. static="true" final="false" visibility="public"
  5808. deprecated="not deprecated">
  5809. <constructor name="FileUtil.HardLink"
  5810. static="false" final="false" visibility="public"
  5811. deprecated="not deprecated">
  5812. </constructor>
  5813. <method name="createHardLink"
  5814. abstract="false" native="false" synchronized="false"
  5815. static="true" final="false" visibility="public"
  5816. deprecated="not deprecated">
  5817. <param name="target" type="java.io.File"/>
  5818. <param name="linkName" type="java.io.File"/>
  5819. <exception name="IOException" type="java.io.IOException"/>
  5820. <doc>
  5821. <![CDATA[Creates a hardlink]]>
  5822. </doc>
  5823. </method>
  5824. <method name="getLinkCount" return="int"
  5825. abstract="false" native="false" synchronized="false"
  5826. static="true" final="false" visibility="public"
  5827. deprecated="not deprecated">
  5828. <param name="fileName" type="java.io.File"/>
  5829. <exception name="IOException" type="java.io.IOException"/>
  5830. <doc>
  5831. <![CDATA[Retrieves the number of links to the specified file.]]>
  5832. </doc>
  5833. </method>
  5834. <doc>
  5835. <![CDATA[Class for creating hardlinks.
  5836. Supports Unix, Cygwin, WindXP.]]>
  5837. </doc>
  5838. </class>
  5839. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  5840. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  5841. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  5842. abstract="false"
  5843. static="false" final="false" visibility="public"
  5844. deprecated="not deprecated">
  5845. <constructor name="FilterFileSystem"
  5846. static="false" final="false" visibility="public"
  5847. deprecated="not deprecated">
  5848. </constructor>
  5849. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5850. static="false" final="false" visibility="public"
  5851. deprecated="not deprecated">
  5852. </constructor>
  5853. <method name="initialize"
  5854. abstract="false" native="false" synchronized="false"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. <param name="name" type="java.net.URI"/>
  5858. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5859. <exception name="IOException" type="java.io.IOException"/>
  5860. <doc>
  5861. <![CDATA[Called after a new FileSystem instance is constructed.
  5862. @param name a uri whose authority section names the host, port, etc.
  5863. for this FileSystem
  5864. @param conf the configuration]]>
  5865. </doc>
  5866. </method>
  5867. <method name="getUri" return="java.net.URI"
  5868. abstract="false" native="false" synchronized="false"
  5869. static="false" final="false" visibility="public"
  5870. deprecated="not deprecated">
  5871. <doc>
  5872. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  5873. </doc>
  5874. </method>
  5875. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5876. abstract="false" native="false" synchronized="false"
  5877. static="false" final="false" visibility="public"
  5878. deprecated="not deprecated">
  5879. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5880. <doc>
  5881. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  5882. </doc>
  5883. </method>
  5884. <method name="checkPath"
  5885. abstract="false" native="false" synchronized="false"
  5886. static="false" final="false" visibility="protected"
  5887. deprecated="not deprecated">
  5888. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5889. <doc>
  5890. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  5891. </doc>
  5892. </method>
  5893. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5894. abstract="false" native="false" synchronized="false"
  5895. static="false" final="false" visibility="public"
  5896. deprecated="not deprecated">
  5897. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5898. <param name="start" type="long"/>
  5899. <param name="len" type="long"/>
  5900. <exception name="IOException" type="java.io.IOException"/>
  5901. </method>
  5902. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5903. abstract="false" native="false" synchronized="false"
  5904. static="false" final="false" visibility="public"
  5905. deprecated="not deprecated">
  5906. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5907. <param name="bufferSize" type="int"/>
  5908. <exception name="IOException" type="java.io.IOException"/>
  5909. <doc>
  5910. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  5911. @param f the file name to open
  5912. @param bufferSize the size of the buffer to be used.]]>
  5913. </doc>
  5914. </method>
  5915. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5916. abstract="false" native="false" synchronized="false"
  5917. static="false" final="false" visibility="public"
  5918. deprecated="not deprecated">
  5919. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5920. <param name="bufferSize" type="int"/>
  5921. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5922. <exception name="IOException" type="java.io.IOException"/>
  5923. <doc>
  5924. <![CDATA[{@inheritDoc}]]>
  5925. </doc>
  5926. </method>
  5927. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5928. abstract="false" native="false" synchronized="false"
  5929. static="false" final="false" visibility="public"
  5930. deprecated="not deprecated">
  5931. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5932. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5933. <param name="overwrite" type="boolean"/>
  5934. <param name="bufferSize" type="int"/>
  5935. <param name="replication" type="short"/>
  5936. <param name="blockSize" type="long"/>
  5937. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5938. <exception name="IOException" type="java.io.IOException"/>
  5939. <doc>
  5940. <![CDATA[{@inheritDoc}]]>
  5941. </doc>
  5942. </method>
  5943. <method name="setReplication" return="boolean"
  5944. abstract="false" native="false" synchronized="false"
  5945. static="false" final="false" visibility="public"
  5946. deprecated="not deprecated">
  5947. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5948. <param name="replication" type="short"/>
  5949. <exception name="IOException" type="java.io.IOException"/>
  5950. <doc>
  5951. <![CDATA[Set replication for an existing file.
  5952. @param src file name
  5953. @param replication new replication
  5954. @throws IOException
  5955. @return true if successful;
  5956. false if file does not exist or is a directory]]>
  5957. </doc>
  5958. </method>
  5959. <method name="rename" return="boolean"
  5960. abstract="false" native="false" synchronized="false"
  5961. static="false" final="false" visibility="public"
  5962. deprecated="not deprecated">
  5963. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5964. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5965. <exception name="IOException" type="java.io.IOException"/>
  5966. <doc>
  5967. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  5968. or remote DFS.]]>
  5969. </doc>
  5970. </method>
  5971. <method name="delete" return="boolean"
  5972. abstract="false" native="false" synchronized="false"
  5973. static="false" final="false" visibility="public"
  5974. deprecated="not deprecated">
  5975. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5976. <param name="recursive" type="boolean"/>
  5977. <exception name="IOException" type="java.io.IOException"/>
  5978. <doc>
  5979. <![CDATA[Delete a file]]>
  5980. </doc>
  5981. </method>
  5982. <method name="deleteOnExit" return="boolean"
  5983. abstract="false" native="false" synchronized="false"
  5984. static="false" final="false" visibility="public"
  5985. deprecated="not deprecated">
  5986. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5987. <exception name="IOException" type="java.io.IOException"/>
  5988. <doc>
  5989. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  5990. When the JVM shuts down,
  5991. all FileSystem objects will be closed automatically.
  5992. Then,
  5993. the marked path will be deleted as a result of closing the FileSystem.
  5994. The path has to exist in the file system.
  5995. @param f the path to delete.
  5996. @return true if deleteOnExit is successful, otherwise false.
  5997. @throws IOException]]>
  5998. </doc>
  5999. </method>
  6000. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6001. abstract="false" native="false" synchronized="false"
  6002. static="false" final="false" visibility="public"
  6003. deprecated="not deprecated">
  6004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6005. <exception name="IOException" type="java.io.IOException"/>
  6006. <doc>
  6007. <![CDATA[List files in a directory.]]>
  6008. </doc>
  6009. </method>
  6010. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6011. abstract="false" native="false" synchronized="false"
  6012. static="false" final="false" visibility="public"
  6013. deprecated="not deprecated">
  6014. </method>
  6015. <method name="setWorkingDirectory"
  6016. abstract="false" native="false" synchronized="false"
  6017. static="false" final="false" visibility="public"
  6018. deprecated="not deprecated">
  6019. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6020. <doc>
  6021. <![CDATA[Set the current working directory for the given file system. All relative
  6022. paths will be resolved relative to it.
  6023. @param newDir]]>
  6024. </doc>
  6025. </method>
  6026. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6027. abstract="false" native="false" synchronized="false"
  6028. static="false" final="false" visibility="public"
  6029. deprecated="not deprecated">
  6030. <doc>
  6031. <![CDATA[Get the current working directory for the given file system
  6032. @return the directory pathname]]>
  6033. </doc>
  6034. </method>
  6035. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6036. abstract="false" native="false" synchronized="false"
  6037. static="false" final="false" visibility="protected"
  6038. deprecated="not deprecated">
  6039. </method>
  6040. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  6041. abstract="false" native="false" synchronized="false"
  6042. static="false" final="false" visibility="public"
  6043. deprecated="not deprecated">
  6044. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6045. <exception name="IOException" type="java.io.IOException"/>
  6046. <doc>
  6047. <![CDATA[{@inheritDoc}]]>
  6048. </doc>
  6049. </method>
  6050. <method name="mkdirs" return="boolean"
  6051. abstract="false" native="false" synchronized="false"
  6052. static="false" final="false" visibility="public"
  6053. deprecated="not deprecated">
  6054. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6055. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6056. <exception name="IOException" type="java.io.IOException"/>
  6057. <doc>
  6058. <![CDATA[{@inheritDoc}]]>
  6059. </doc>
  6060. </method>
  6061. <method name="copyFromLocalFile"
  6062. abstract="false" native="false" synchronized="false"
  6063. static="false" final="false" visibility="public"
  6064. deprecated="not deprecated">
  6065. <param name="delSrc" type="boolean"/>
  6066. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6067. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6068. <exception name="IOException" type="java.io.IOException"/>
  6069. <doc>
  6070. <![CDATA[The src file is on the local disk. Add it to FS at
  6071. the given dst name.
  6072. delSrc indicates if the source should be removed]]>
  6073. </doc>
  6074. </method>
  6075. <method name="copyFromLocalFile"
  6076. abstract="false" native="false" synchronized="false"
  6077. static="false" final="false" visibility="public"
  6078. deprecated="not deprecated">
  6079. <param name="delSrc" type="boolean"/>
  6080. <param name="overwrite" type="boolean"/>
  6081. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  6082. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6083. <exception name="IOException" type="java.io.IOException"/>
  6084. <doc>
  6085. <![CDATA[The src files are on the local disk. Add it to FS at
  6086. the given dst name.
  6087. delSrc indicates if the source should be removed]]>
  6088. </doc>
  6089. </method>
  6090. <method name="copyFromLocalFile"
  6091. abstract="false" native="false" synchronized="false"
  6092. static="false" final="false" visibility="public"
  6093. deprecated="not deprecated">
  6094. <param name="delSrc" type="boolean"/>
  6095. <param name="overwrite" type="boolean"/>
  6096. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6097. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6098. <exception name="IOException" type="java.io.IOException"/>
  6099. <doc>
  6100. <![CDATA[The src file is on the local disk. Add it to FS at
  6101. the given dst name.
  6102. delSrc indicates if the source should be removed]]>
  6103. </doc>
  6104. </method>
  6105. <method name="copyToLocalFile"
  6106. abstract="false" native="false" synchronized="false"
  6107. static="false" final="false" visibility="public"
  6108. deprecated="not deprecated">
  6109. <param name="delSrc" type="boolean"/>
  6110. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6111. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6112. <exception name="IOException" type="java.io.IOException"/>
  6113. <doc>
  6114. <![CDATA[The src file is under FS, and the dst is on the local disk.
  6115. Copy it from FS control to the local dst name.
  6116. delSrc indicates if the src will be removed or not.]]>
  6117. </doc>
  6118. </method>
  6119. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6120. abstract="false" native="false" synchronized="false"
  6121. static="false" final="false" visibility="public"
  6122. deprecated="not deprecated">
  6123. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6124. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6125. <exception name="IOException" type="java.io.IOException"/>
  6126. <doc>
  6127. <![CDATA[Returns a local File that the user can write output to. The caller
  6128. provides both the eventual FS target name and the local working
  6129. file. If the FS is local, we write directly into the target. If
  6130. the FS is remote, we write into the tmp local area.]]>
  6131. </doc>
  6132. </method>
  6133. <method name="completeLocalOutput"
  6134. abstract="false" native="false" synchronized="false"
  6135. static="false" final="false" visibility="public"
  6136. deprecated="not deprecated">
  6137. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6138. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6139. <exception name="IOException" type="java.io.IOException"/>
  6140. <doc>
  6141. <![CDATA[Called when we're all done writing to the target. A local FS will
  6142. do nothing, because we've written to exactly the right place. A remote
  6143. FS will copy the contents of tmpLocalFile to the correct target at
  6144. fsOutputFile.]]>
  6145. </doc>
  6146. </method>
  6147. <method name="getUsed" return="long"
  6148. abstract="false" native="false" synchronized="false"
  6149. static="false" final="false" visibility="public"
  6150. deprecated="not deprecated">
  6151. <exception name="IOException" type="java.io.IOException"/>
  6152. <doc>
  6153. <![CDATA[Return the total size of all files in the filesystem.]]>
  6154. </doc>
  6155. </method>
  6156. <method name="getDefaultBlockSize" return="long"
  6157. abstract="false" native="false" synchronized="false"
  6158. static="false" final="false" visibility="public"
  6159. deprecated="not deprecated">
  6160. <doc>
  6161. <![CDATA[Return the number of bytes that large input files should be optimally
  6162. be split into to minimize i/o time.]]>
  6163. </doc>
  6164. </method>
  6165. <method name="getDefaultReplication" return="short"
  6166. abstract="false" native="false" synchronized="false"
  6167. static="false" final="false" visibility="public"
  6168. deprecated="not deprecated">
  6169. <doc>
  6170. <![CDATA[Get the default replication.]]>
  6171. </doc>
  6172. </method>
  6173. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6174. abstract="false" native="false" synchronized="false"
  6175. static="false" final="false" visibility="public"
  6176. deprecated="not deprecated">
  6177. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6178. <exception name="IOException" type="java.io.IOException"/>
  6179. <doc>
  6180. <![CDATA[Get file status.]]>
  6181. </doc>
  6182. </method>
  6183. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  6184. abstract="false" native="false" synchronized="false"
  6185. static="false" final="false" visibility="public"
  6186. deprecated="not deprecated">
  6187. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6188. <exception name="IOException" type="java.io.IOException"/>
  6189. <doc>
  6190. <![CDATA[{@inheritDoc}]]>
  6191. </doc>
  6192. </method>
  6193. <method name="setVerifyChecksum"
  6194. abstract="false" native="false" synchronized="false"
  6195. static="false" final="false" visibility="public"
  6196. deprecated="not deprecated">
  6197. <param name="verifyChecksum" type="boolean"/>
  6198. <doc>
  6199. <![CDATA[{@inheritDoc}]]>
  6200. </doc>
  6201. </method>
  6202. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  6203. abstract="false" native="false" synchronized="false"
  6204. static="false" final="false" visibility="public"
  6205. deprecated="not deprecated">
  6206. </method>
  6207. <method name="close"
  6208. abstract="false" native="false" synchronized="false"
  6209. static="false" final="false" visibility="public"
  6210. deprecated="not deprecated">
  6211. <exception name="IOException" type="java.io.IOException"/>
  6212. </method>
  6213. <method name="setOwner"
  6214. abstract="false" native="false" synchronized="false"
  6215. static="false" final="false" visibility="public"
  6216. deprecated="not deprecated">
  6217. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6218. <param name="username" type="java.lang.String"/>
  6219. <param name="groupname" type="java.lang.String"/>
  6220. <exception name="IOException" type="java.io.IOException"/>
  6221. <doc>
  6222. <![CDATA[{@inheritDoc}]]>
  6223. </doc>
  6224. </method>
  6225. <method name="setTimes"
  6226. abstract="false" native="false" synchronized="false"
  6227. static="false" final="false" visibility="public"
  6228. deprecated="not deprecated">
  6229. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6230. <param name="mtime" type="long"/>
  6231. <param name="atime" type="long"/>
  6232. <exception name="IOException" type="java.io.IOException"/>
  6233. <doc>
  6234. <![CDATA[{@inheritDoc}]]>
  6235. </doc>
  6236. </method>
  6237. <method name="setPermission"
  6238. abstract="false" native="false" synchronized="false"
  6239. static="false" final="false" visibility="public"
  6240. deprecated="not deprecated">
  6241. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6242. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6243. <exception name="IOException" type="java.io.IOException"/>
  6244. <doc>
  6245. <![CDATA[{@inheritDoc}]]>
  6246. </doc>
  6247. </method>
  6248. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  6249. abstract="false" native="false" synchronized="false"
  6250. static="false" final="false" visibility="protected"
  6251. deprecated="not deprecated">
  6252. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6253. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6254. <param name="flag" type="java.util.EnumSet"/>
  6255. <param name="bufferSize" type="int"/>
  6256. <param name="replication" type="short"/>
  6257. <param name="blockSize" type="long"/>
  6258. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6259. <param name="bytesPerChecksum" type="int"/>
  6260. <exception name="IOException" type="java.io.IOException"/>
  6261. </method>
  6262. <method name="primitiveMkdir" return="boolean"
  6263. abstract="false" native="false" synchronized="false"
  6264. static="false" final="false" visibility="protected"
  6265. deprecated="not deprecated">
  6266. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6267. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6268. <exception name="IOException" type="java.io.IOException"/>
  6269. </method>
  6270. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  6271. transient="false" volatile="false"
  6272. static="false" final="false" visibility="protected"
  6273. deprecated="not deprecated">
  6274. </field>
  6275. <doc>
  6276. <![CDATA[A <code>FilterFileSystem</code> contains
  6277. some other file system, which it uses as
  6278. its basic file system, possibly transforming
  6279. the data along the way or providing additional
  6280. functionality. The class <code>FilterFileSystem</code>
  6281. itself simply overrides all methods of
  6282. <code>FileSystem</code> with versions that
  6283. pass all requests to the contained file
  6284. system. Subclasses of <code>FilterFileSystem</code>
  6285. may further override some of these methods
  6286. and may also provide additional methods
  6287. and fields.]]>
  6288. </doc>
  6289. </class>
  6290. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  6291. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  6292. <interface name="FsConstants" abstract="true"
  6293. static="false" final="false" visibility="public"
  6294. deprecated="not deprecated">
  6295. <field name="LOCAL_FS_URI" type="java.net.URI"
  6296. transient="false" volatile="false"
  6297. static="true" final="true" visibility="public"
  6298. deprecated="not deprecated">
  6299. </field>
  6300. <field name="FTP_SCHEME" type="java.lang.String"
  6301. transient="false" volatile="false"
  6302. static="true" final="true" visibility="public"
  6303. deprecated="not deprecated">
  6304. </field>
  6305. <doc>
  6306. <![CDATA[FileSystem related constants.]]>
  6307. </doc>
  6308. </interface>
  6309. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  6310. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  6311. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  6312. abstract="false"
  6313. static="false" final="false" visibility="public"
  6314. deprecated="not deprecated">
  6315. <implements name="org.apache.hadoop.fs.Seekable"/>
  6316. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  6317. <constructor name="FSDataInputStream" type="java.io.InputStream"
  6318. static="false" final="false" visibility="public"
  6319. deprecated="not deprecated">
  6320. <exception name="IOException" type="java.io.IOException"/>
  6321. </constructor>
  6322. <method name="seek"
  6323. abstract="false" native="false" synchronized="true"
  6324. static="false" final="false" visibility="public"
  6325. deprecated="not deprecated">
  6326. <param name="desired" type="long"/>
  6327. <exception name="IOException" type="java.io.IOException"/>
  6328. </method>
  6329. <method name="getPos" return="long"
  6330. abstract="false" native="false" synchronized="false"
  6331. static="false" final="false" visibility="public"
  6332. deprecated="not deprecated">
  6333. <exception name="IOException" type="java.io.IOException"/>
  6334. </method>
  6335. <method name="read" return="int"
  6336. abstract="false" native="false" synchronized="false"
  6337. static="false" final="false" visibility="public"
  6338. deprecated="not deprecated">
  6339. <param name="position" type="long"/>
  6340. <param name="buffer" type="byte[]"/>
  6341. <param name="offset" type="int"/>
  6342. <param name="length" type="int"/>
  6343. <exception name="IOException" type="java.io.IOException"/>
  6344. </method>
  6345. <method name="readFully"
  6346. abstract="false" native="false" synchronized="false"
  6347. static="false" final="false" visibility="public"
  6348. deprecated="not deprecated">
  6349. <param name="position" type="long"/>
  6350. <param name="buffer" type="byte[]"/>
  6351. <param name="offset" type="int"/>
  6352. <param name="length" type="int"/>
  6353. <exception name="IOException" type="java.io.IOException"/>
  6354. </method>
  6355. <method name="readFully"
  6356. abstract="false" native="false" synchronized="false"
  6357. static="false" final="false" visibility="public"
  6358. deprecated="not deprecated">
  6359. <param name="position" type="long"/>
  6360. <param name="buffer" type="byte[]"/>
  6361. <exception name="IOException" type="java.io.IOException"/>
  6362. </method>
  6363. <method name="seekToNewSource" return="boolean"
  6364. abstract="false" native="false" synchronized="false"
  6365. static="false" final="false" visibility="public"
  6366. deprecated="not deprecated">
  6367. <param name="targetPos" type="long"/>
  6368. <exception name="IOException" type="java.io.IOException"/>
  6369. </method>
  6370. <doc>
  6371. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  6372. and buffers input through a {@link BufferedInputStream}.]]>
  6373. </doc>
  6374. </class>
  6375. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  6376. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  6377. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  6378. abstract="false"
  6379. static="false" final="false" visibility="public"
  6380. deprecated="not deprecated">
  6381. <implements name="org.apache.hadoop.fs.Syncable"/>
  6382. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  6383. static="false" final="false" visibility="public"
  6384. deprecated="not deprecated">
  6385. <exception name="IOException" type="java.io.IOException"/>
  6386. </constructor>
  6387. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  6388. static="false" final="false" visibility="public"
  6389. deprecated="not deprecated">
  6390. <exception name="IOException" type="java.io.IOException"/>
  6391. </constructor>
  6392. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  6393. static="false" final="false" visibility="public"
  6394. deprecated="not deprecated">
  6395. <exception name="IOException" type="java.io.IOException"/>
  6396. </constructor>
  6397. <method name="getPos" return="long"
  6398. abstract="false" native="false" synchronized="false"
  6399. static="false" final="false" visibility="public"
  6400. deprecated="not deprecated">
  6401. <exception name="IOException" type="java.io.IOException"/>
  6402. </method>
  6403. <method name="close"
  6404. abstract="false" native="false" synchronized="false"
  6405. static="false" final="false" visibility="public"
  6406. deprecated="not deprecated">
  6407. <exception name="IOException" type="java.io.IOException"/>
  6408. </method>
  6409. <method name="getWrappedStream" return="java.io.OutputStream"
  6410. abstract="false" native="false" synchronized="false"
  6411. static="false" final="false" visibility="public"
  6412. deprecated="not deprecated">
  6413. </method>
  6414. <method name="sync"
  6415. abstract="false" native="false" synchronized="false"
  6416. static="false" final="false" visibility="public"
  6417. deprecated="not deprecated">
  6418. <exception name="IOException" type="java.io.IOException"/>
  6419. </method>
  6420. <method name="hflush"
  6421. abstract="false" native="false" synchronized="false"
  6422. static="false" final="false" visibility="public"
  6423. deprecated="not deprecated">
  6424. <exception name="IOException" type="java.io.IOException"/>
  6425. </method>
  6426. <method name="hsync"
  6427. abstract="false" native="false" synchronized="false"
  6428. static="false" final="false" visibility="public"
  6429. deprecated="not deprecated">
  6430. <exception name="IOException" type="java.io.IOException"/>
  6431. </method>
  6432. <doc>
  6433. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  6434. buffers output through a {@link BufferedOutputStream} and creates a checksum
  6435. file.]]>
  6436. </doc>
  6437. </class>
  6438. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  6439. <!-- start class org.apache.hadoop.fs.FSError -->
  6440. <class name="FSError" extends="java.lang.Error"
  6441. abstract="false"
  6442. static="false" final="false" visibility="public"
  6443. deprecated="not deprecated">
  6444. <doc>
  6445. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  6446. in the native filesystem.]]>
  6447. </doc>
  6448. </class>
  6449. <!-- end class org.apache.hadoop.fs.FSError -->
  6450. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  6451. <class name="FsServerDefaults" extends="java.lang.Object"
  6452. abstract="false"
  6453. static="false" final="false" visibility="public"
  6454. deprecated="not deprecated">
  6455. <implements name="org.apache.hadoop.io.Writable"/>
  6456. <constructor name="FsServerDefaults"
  6457. static="false" final="false" visibility="public"
  6458. deprecated="not deprecated">
  6459. </constructor>
  6460. <constructor name="FsServerDefaults" type="long, int, int, short, int"
  6461. static="false" final="false" visibility="public"
  6462. deprecated="not deprecated">
  6463. </constructor>
  6464. <method name="getBlockSize" return="long"
  6465. abstract="false" native="false" synchronized="false"
  6466. static="false" final="false" visibility="public"
  6467. deprecated="not deprecated">
  6468. </method>
  6469. <method name="getBytesPerChecksum" return="int"
  6470. abstract="false" native="false" synchronized="false"
  6471. static="false" final="false" visibility="public"
  6472. deprecated="not deprecated">
  6473. </method>
  6474. <method name="getWritePacketSize" return="int"
  6475. abstract="false" native="false" synchronized="false"
  6476. static="false" final="false" visibility="public"
  6477. deprecated="not deprecated">
  6478. </method>
  6479. <method name="getReplication" return="short"
  6480. abstract="false" native="false" synchronized="false"
  6481. static="false" final="false" visibility="public"
  6482. deprecated="not deprecated">
  6483. </method>
  6484. <method name="getFileBufferSize" return="int"
  6485. abstract="false" native="false" synchronized="false"
  6486. static="false" final="false" visibility="public"
  6487. deprecated="not deprecated">
  6488. </method>
  6489. <method name="write"
  6490. abstract="false" native="false" synchronized="false"
  6491. static="false" final="false" visibility="public"
  6492. deprecated="not deprecated">
  6493. <param name="out" type="java.io.DataOutput"/>
  6494. <exception name="IOException" type="java.io.IOException"/>
  6495. </method>
  6496. <method name="readFields"
  6497. abstract="false" native="false" synchronized="false"
  6498. static="false" final="false" visibility="public"
  6499. deprecated="not deprecated">
  6500. <param name="in" type="java.io.DataInput"/>
  6501. <exception name="IOException" type="java.io.IOException"/>
  6502. </method>
  6503. <doc>
  6504. <![CDATA[Provides server default configuration values to clients.]]>
  6505. </doc>
  6506. </class>
  6507. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  6508. <!-- start class org.apache.hadoop.fs.FsStatus -->
  6509. <class name="FsStatus" extends="java.lang.Object"
  6510. abstract="false"
  6511. static="false" final="false" visibility="public"
  6512. deprecated="not deprecated">
  6513. <implements name="org.apache.hadoop.io.Writable"/>
  6514. <constructor name="FsStatus" type="long, long, long"
  6515. static="false" final="false" visibility="public"
  6516. deprecated="not deprecated">
  6517. <doc>
  6518. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  6519. </doc>
  6520. </constructor>
  6521. <method name="getCapacity" return="long"
  6522. abstract="false" native="false" synchronized="false"
  6523. static="false" final="false" visibility="public"
  6524. deprecated="not deprecated">
  6525. <doc>
  6526. <![CDATA[Return the capacity in bytes of the file system]]>
  6527. </doc>
  6528. </method>
  6529. <method name="getUsed" return="long"
  6530. abstract="false" native="false" synchronized="false"
  6531. static="false" final="false" visibility="public"
  6532. deprecated="not deprecated">
  6533. <doc>
  6534. <![CDATA[Return the number of bytes used on the file system]]>
  6535. </doc>
  6536. </method>
  6537. <method name="getRemaining" return="long"
  6538. abstract="false" native="false" synchronized="false"
  6539. static="false" final="false" visibility="public"
  6540. deprecated="not deprecated">
  6541. <doc>
  6542. <![CDATA[Return the number of remaining bytes on the file system]]>
  6543. </doc>
  6544. </method>
  6545. <method name="write"
  6546. abstract="false" native="false" synchronized="false"
  6547. static="false" final="false" visibility="public"
  6548. deprecated="not deprecated">
  6549. <param name="out" type="java.io.DataOutput"/>
  6550. <exception name="IOException" type="java.io.IOException"/>
  6551. </method>
  6552. <method name="readFields"
  6553. abstract="false" native="false" synchronized="false"
  6554. static="false" final="false" visibility="public"
  6555. deprecated="not deprecated">
  6556. <param name="in" type="java.io.DataInput"/>
  6557. <exception name="IOException" type="java.io.IOException"/>
  6558. </method>
  6559. <doc>
  6560. <![CDATA[This class is used to represent the capacity, free and used space on a
  6561. {@link FileSystem}.]]>
  6562. </doc>
  6563. </class>
  6564. <!-- end class org.apache.hadoop.fs.FsStatus -->
  6565. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  6566. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  6567. abstract="false"
  6568. static="false" final="false" visibility="public"
  6569. deprecated="not deprecated">
  6570. <constructor name="InvalidPathException" type="java.lang.String"
  6571. static="false" final="false" visibility="public"
  6572. deprecated="not deprecated">
  6573. <doc>
  6574. <![CDATA[Constructs exception with the specified detail message.
  6575. @param path invalid path.]]>
  6576. </doc>
  6577. </constructor>
  6578. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  6579. static="false" final="false" visibility="public"
  6580. deprecated="not deprecated">
  6581. <doc>
  6582. <![CDATA[Constructs exception with the specified detail message.
  6583. @param path invalid path.
  6584. @param reason Reason <code>path</code> is invalid]]>
  6585. </doc>
  6586. </constructor>
  6587. <doc>
  6588. <![CDATA[Path string is invalid either because it has invalid characters or due to
  6589. other file system specific reasons.]]>
  6590. </doc>
  6591. </class>
  6592. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  6593. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  6594. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6595. abstract="false"
  6596. static="false" final="false" visibility="public"
  6597. deprecated="not deprecated">
  6598. <constructor name="LocalFileSystem"
  6599. static="false" final="false" visibility="public"
  6600. deprecated="not deprecated">
  6601. </constructor>
  6602. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6603. static="false" final="false" visibility="public"
  6604. deprecated="not deprecated">
  6605. </constructor>
  6606. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6607. abstract="false" native="false" synchronized="false"
  6608. static="false" final="false" visibility="public"
  6609. deprecated="not deprecated">
  6610. </method>
  6611. <method name="pathToFile" return="java.io.File"
  6612. abstract="false" native="false" synchronized="false"
  6613. static="false" final="false" visibility="public"
  6614. deprecated="not deprecated">
  6615. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6616. <doc>
  6617. <![CDATA[Convert a path to a File.]]>
  6618. </doc>
  6619. </method>
  6620. <method name="copyFromLocalFile"
  6621. abstract="false" native="false" synchronized="false"
  6622. static="false" final="false" visibility="public"
  6623. deprecated="not deprecated">
  6624. <param name="delSrc" type="boolean"/>
  6625. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6626. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6627. <exception name="IOException" type="java.io.IOException"/>
  6628. </method>
  6629. <method name="copyToLocalFile"
  6630. abstract="false" native="false" synchronized="false"
  6631. static="false" final="false" visibility="public"
  6632. deprecated="not deprecated">
  6633. <param name="delSrc" type="boolean"/>
  6634. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6635. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6636. <exception name="IOException" type="java.io.IOException"/>
  6637. </method>
  6638. <method name="reportChecksumFailure" return="boolean"
  6639. abstract="false" native="false" synchronized="false"
  6640. static="false" final="false" visibility="public"
  6641. deprecated="not deprecated">
  6642. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6643. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6644. <param name="inPos" type="long"/>
  6645. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6646. <param name="sumsPos" type="long"/>
  6647. <doc>
  6648. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6649. storage will not be reused.]]>
  6650. </doc>
  6651. </method>
  6652. <doc>
  6653. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6654. </doc>
  6655. </class>
  6656. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6657. <!-- start class org.apache.hadoop.fs.Options -->
  6658. <class name="Options" extends="java.lang.Object"
  6659. abstract="false"
  6660. static="false" final="true" visibility="public"
  6661. deprecated="not deprecated">
  6662. <constructor name="Options"
  6663. static="false" final="false" visibility="public"
  6664. deprecated="not deprecated">
  6665. </constructor>
  6666. <doc>
  6667. <![CDATA[This class contains options related to file system operations.]]>
  6668. </doc>
  6669. </class>
  6670. <!-- end class org.apache.hadoop.fs.Options -->
  6671. <!-- start class org.apache.hadoop.fs.Options.CreateOpts -->
  6672. <class name="Options.CreateOpts" extends="java.lang.Object"
  6673. abstract="false"
  6674. static="true" final="false" visibility="public"
  6675. deprecated="not deprecated">
  6676. <method name="blockSize" return="org.apache.hadoop.fs.Options.CreateOpts.BlockSize"
  6677. abstract="false" native="false" synchronized="false"
  6678. static="true" final="false" visibility="public"
  6679. deprecated="not deprecated">
  6680. <param name="bs" type="long"/>
  6681. </method>
  6682. <method name="bufferSize" return="org.apache.hadoop.fs.Options.CreateOpts.BufferSize"
  6683. abstract="false" native="false" synchronized="false"
  6684. static="true" final="false" visibility="public"
  6685. deprecated="not deprecated">
  6686. <param name="bs" type="int"/>
  6687. </method>
  6688. <method name="repFac" return="org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor"
  6689. abstract="false" native="false" synchronized="false"
  6690. static="true" final="false" visibility="public"
  6691. deprecated="not deprecated">
  6692. <param name="rf" type="short"/>
  6693. </method>
  6694. <method name="bytesPerChecksum" return="org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum"
  6695. abstract="false" native="false" synchronized="false"
  6696. static="true" final="false" visibility="public"
  6697. deprecated="not deprecated">
  6698. <param name="crc" type="short"/>
  6699. </method>
  6700. <method name="perms" return="org.apache.hadoop.fs.Options.CreateOpts.Perms"
  6701. abstract="false" native="false" synchronized="false"
  6702. static="true" final="false" visibility="public"
  6703. deprecated="not deprecated">
  6704. <param name="perm" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6705. </method>
  6706. <method name="createParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  6707. abstract="false" native="false" synchronized="false"
  6708. static="true" final="false" visibility="public"
  6709. deprecated="not deprecated">
  6710. </method>
  6711. <method name="donotCreateParent" return="org.apache.hadoop.fs.Options.CreateOpts.CreateParent"
  6712. abstract="false" native="false" synchronized="false"
  6713. static="true" final="false" visibility="public"
  6714. deprecated="not deprecated">
  6715. </method>
  6716. <method name="getOpt" return="org.apache.hadoop.fs.Options.CreateOpts"
  6717. abstract="false" native="false" synchronized="false"
  6718. static="true" final="false" visibility="protected"
  6719. deprecated="not deprecated">
  6720. <param name="theClass" type="java.lang.Class"/>
  6721. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6722. <doc>
  6723. <![CDATA[Get an option of desired type
  6724. @param theClass is the desired class of the opt
  6725. @param opts - not null - at least one opt must be passed
  6726. @return an opt from one of the opts of type theClass.
  6727. returns null if there isn't any]]>
  6728. </doc>
  6729. </method>
  6730. <method name="setOpt" return="org.apache.hadoop.fs.Options.CreateOpts[]"
  6731. abstract="false" native="false" synchronized="false"
  6732. static="true" final="false" visibility="protected"
  6733. deprecated="not deprecated">
  6734. <param name="newValue" type="T"/>
  6735. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  6736. <doc>
  6737. <![CDATA[set an option
  6738. @param newValue the option to be set
  6739. @param opts - the option is set into this array of opts
  6740. @return updated CreateOpts[] == opts + newValue]]>
  6741. </doc>
  6742. </method>
  6743. <doc>
  6744. <![CDATA[Class to support the varargs for create() options.]]>
  6745. </doc>
  6746. </class>
  6747. <!-- end class org.apache.hadoop.fs.Options.CreateOpts -->
  6748. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  6749. <class name="Options.CreateOpts.BlockSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6750. abstract="false"
  6751. static="true" final="false" visibility="public"
  6752. deprecated="not deprecated">
  6753. <constructor name="Options.CreateOpts.BlockSize" type="long"
  6754. static="false" final="false" visibility="protected"
  6755. deprecated="not deprecated">
  6756. </constructor>
  6757. <method name="getValue" return="long"
  6758. abstract="false" native="false" synchronized="false"
  6759. static="false" final="false" visibility="public"
  6760. deprecated="not deprecated">
  6761. </method>
  6762. </class>
  6763. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BlockSize -->
  6764. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  6765. <class name="Options.CreateOpts.BufferSize" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6766. abstract="false"
  6767. static="true" final="false" visibility="public"
  6768. deprecated="not deprecated">
  6769. <constructor name="Options.CreateOpts.BufferSize" type="int"
  6770. static="false" final="false" visibility="protected"
  6771. deprecated="not deprecated">
  6772. </constructor>
  6773. <method name="getValue" return="int"
  6774. abstract="false" native="false" synchronized="false"
  6775. static="false" final="false" visibility="public"
  6776. deprecated="not deprecated">
  6777. </method>
  6778. </class>
  6779. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BufferSize -->
  6780. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  6781. <class name="Options.CreateOpts.BytesPerChecksum" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6782. abstract="false"
  6783. static="true" final="false" visibility="public"
  6784. deprecated="not deprecated">
  6785. <constructor name="Options.CreateOpts.BytesPerChecksum" type="short"
  6786. static="false" final="false" visibility="protected"
  6787. deprecated="not deprecated">
  6788. </constructor>
  6789. <method name="getValue" return="int"
  6790. abstract="false" native="false" synchronized="false"
  6791. static="false" final="false" visibility="public"
  6792. deprecated="not deprecated">
  6793. </method>
  6794. </class>
  6795. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.BytesPerChecksum -->
  6796. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  6797. <class name="Options.CreateOpts.CreateParent" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6798. abstract="false"
  6799. static="true" final="false" visibility="public"
  6800. deprecated="not deprecated">
  6801. <constructor name="Options.CreateOpts.CreateParent" type="boolean"
  6802. static="false" final="false" visibility="protected"
  6803. deprecated="not deprecated">
  6804. </constructor>
  6805. <method name="getValue" return="boolean"
  6806. abstract="false" native="false" synchronized="false"
  6807. static="false" final="false" visibility="public"
  6808. deprecated="not deprecated">
  6809. </method>
  6810. </class>
  6811. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.CreateParent -->
  6812. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  6813. <class name="Options.CreateOpts.Perms" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6814. abstract="false"
  6815. static="true" final="false" visibility="public"
  6816. deprecated="not deprecated">
  6817. <constructor name="Options.CreateOpts.Perms" type="org.apache.hadoop.fs.permission.FsPermission"
  6818. static="false" final="false" visibility="protected"
  6819. deprecated="not deprecated">
  6820. </constructor>
  6821. <method name="getValue" return="org.apache.hadoop.fs.permission.FsPermission"
  6822. abstract="false" native="false" synchronized="false"
  6823. static="false" final="false" visibility="public"
  6824. deprecated="not deprecated">
  6825. </method>
  6826. </class>
  6827. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Perms -->
  6828. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  6829. <class name="Options.CreateOpts.Progress" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6830. abstract="false"
  6831. static="true" final="false" visibility="public"
  6832. deprecated="not deprecated">
  6833. <constructor name="Options.CreateOpts.Progress" type="org.apache.hadoop.util.Progressable"
  6834. static="false" final="false" visibility="protected"
  6835. deprecated="not deprecated">
  6836. </constructor>
  6837. <method name="getValue" return="org.apache.hadoop.util.Progressable"
  6838. abstract="false" native="false" synchronized="false"
  6839. static="false" final="false" visibility="public"
  6840. deprecated="not deprecated">
  6841. </method>
  6842. </class>
  6843. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.Progress -->
  6844. <!-- start class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  6845. <class name="Options.CreateOpts.ReplicationFactor" extends="org.apache.hadoop.fs.Options.CreateOpts"
  6846. abstract="false"
  6847. static="true" final="false" visibility="public"
  6848. deprecated="not deprecated">
  6849. <constructor name="Options.CreateOpts.ReplicationFactor" type="short"
  6850. static="false" final="false" visibility="protected"
  6851. deprecated="not deprecated">
  6852. </constructor>
  6853. <method name="getValue" return="short"
  6854. abstract="false" native="false" synchronized="false"
  6855. static="false" final="false" visibility="public"
  6856. deprecated="not deprecated">
  6857. </method>
  6858. </class>
  6859. <!-- end class org.apache.hadoop.fs.Options.CreateOpts.ReplicationFactor -->
  6860. <!-- start class org.apache.hadoop.fs.Options.Rename -->
  6861. <class name="Options.Rename" extends="java.lang.Enum"
  6862. abstract="false"
  6863. static="true" final="true" visibility="public"
  6864. deprecated="not deprecated">
  6865. <method name="values" return="org.apache.hadoop.fs.Options.Rename[]"
  6866. abstract="false" native="false" synchronized="false"
  6867. static="true" final="false" visibility="public"
  6868. deprecated="not deprecated">
  6869. </method>
  6870. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  6871. abstract="false" native="false" synchronized="false"
  6872. static="true" final="false" visibility="public"
  6873. deprecated="not deprecated">
  6874. <param name="name" type="java.lang.String"/>
  6875. </method>
  6876. <method name="valueOf" return="org.apache.hadoop.fs.Options.Rename"
  6877. abstract="false" native="false" synchronized="false"
  6878. static="true" final="false" visibility="public"
  6879. deprecated="not deprecated">
  6880. <param name="code" type="byte"/>
  6881. </method>
  6882. <method name="value" return="byte"
  6883. abstract="false" native="false" synchronized="false"
  6884. static="false" final="false" visibility="public"
  6885. deprecated="not deprecated">
  6886. </method>
  6887. <doc>
  6888. <![CDATA[Enum to support the varargs for rename() options]]>
  6889. </doc>
  6890. </class>
  6891. <!-- end class org.apache.hadoop.fs.Options.Rename -->
  6892. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  6893. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  6894. abstract="false"
  6895. static="false" final="false" visibility="public"
  6896. deprecated="not deprecated">
  6897. <constructor name="ParentNotDirectoryException"
  6898. static="false" final="false" visibility="public"
  6899. deprecated="not deprecated">
  6900. </constructor>
  6901. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  6902. static="false" final="false" visibility="public"
  6903. deprecated="not deprecated">
  6904. </constructor>
  6905. <doc>
  6906. <![CDATA[Indicates that the parent of specified Path is not a directory
  6907. as expected.]]>
  6908. </doc>
  6909. </class>
  6910. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  6911. <!-- start class org.apache.hadoop.fs.Path -->
  6912. <class name="Path" extends="java.lang.Object"
  6913. abstract="false"
  6914. static="false" final="false" visibility="public"
  6915. deprecated="not deprecated">
  6916. <implements name="java.lang.Comparable"/>
  6917. <constructor name="Path" type="java.lang.String, java.lang.String"
  6918. static="false" final="false" visibility="public"
  6919. deprecated="not deprecated">
  6920. <doc>
  6921. <![CDATA[Resolve a child path against a parent path.]]>
  6922. </doc>
  6923. </constructor>
  6924. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <doc>
  6928. <![CDATA[Resolve a child path against a parent path.]]>
  6929. </doc>
  6930. </constructor>
  6931. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6932. static="false" final="false" visibility="public"
  6933. deprecated="not deprecated">
  6934. <doc>
  6935. <![CDATA[Resolve a child path against a parent path.]]>
  6936. </doc>
  6937. </constructor>
  6938. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6939. static="false" final="false" visibility="public"
  6940. deprecated="not deprecated">
  6941. <doc>
  6942. <![CDATA[Resolve a child path against a parent path.]]>
  6943. </doc>
  6944. </constructor>
  6945. <constructor name="Path" type="java.lang.String"
  6946. static="false" final="false" visibility="public"
  6947. deprecated="not deprecated">
  6948. <doc>
  6949. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6950. unescaped elements and some additional normalization.]]>
  6951. </doc>
  6952. </constructor>
  6953. <constructor name="Path" type="java.net.URI"
  6954. static="false" final="false" visibility="public"
  6955. deprecated="not deprecated">
  6956. <doc>
  6957. <![CDATA[Construct a path from a URI]]>
  6958. </doc>
  6959. </constructor>
  6960. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6961. static="false" final="false" visibility="public"
  6962. deprecated="not deprecated">
  6963. <doc>
  6964. <![CDATA[Construct a Path from components.]]>
  6965. </doc>
  6966. </constructor>
  6967. <method name="toUri" return="java.net.URI"
  6968. abstract="false" native="false" synchronized="false"
  6969. static="false" final="false" visibility="public"
  6970. deprecated="not deprecated">
  6971. <doc>
  6972. <![CDATA[Convert this to a URI.]]>
  6973. </doc>
  6974. </method>
  6975. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6976. abstract="false" native="false" synchronized="false"
  6977. static="false" final="false" visibility="public"
  6978. deprecated="not deprecated">
  6979. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6980. <exception name="IOException" type="java.io.IOException"/>
  6981. <doc>
  6982. <![CDATA[Return the FileSystem that owns this Path.]]>
  6983. </doc>
  6984. </method>
  6985. <method name="isUriPathAbsolute" return="boolean"
  6986. abstract="false" native="false" synchronized="false"
  6987. static="false" final="false" visibility="public"
  6988. deprecated="not deprecated">
  6989. <doc>
  6990. <![CDATA[True if the path component (i.e. directory) of this URI is absolute.]]>
  6991. </doc>
  6992. </method>
  6993. <method name="isAbsolute" return="boolean"
  6994. abstract="false" native="false" synchronized="false"
  6995. static="false" final="false" visibility="public"
  6996. deprecated="not deprecated">
  6997. <doc>
  6998. <![CDATA[There is some ambiguity here. An absolute path is a slash
  6999. relative name without a scheme or an authority.
  7000. So either this method was incorrectly named or its
  7001. implementation is incorrect.]]>
  7002. </doc>
  7003. </method>
  7004. <method name="getName" return="java.lang.String"
  7005. abstract="false" native="false" synchronized="false"
  7006. static="false" final="false" visibility="public"
  7007. deprecated="not deprecated">
  7008. <doc>
  7009. <![CDATA[Returns the final component of this path.]]>
  7010. </doc>
  7011. </method>
  7012. <method name="getParent" return="org.apache.hadoop.fs.Path"
  7013. abstract="false" native="false" synchronized="false"
  7014. static="false" final="false" visibility="public"
  7015. deprecated="not deprecated">
  7016. <doc>
  7017. <![CDATA[Returns the parent of a path or null if at root.]]>
  7018. </doc>
  7019. </method>
  7020. <method name="suffix" return="org.apache.hadoop.fs.Path"
  7021. abstract="false" native="false" synchronized="false"
  7022. static="false" final="false" visibility="public"
  7023. deprecated="not deprecated">
  7024. <param name="suffix" type="java.lang.String"/>
  7025. <doc>
  7026. <![CDATA[Adds a suffix to the final name in the path.]]>
  7027. </doc>
  7028. </method>
  7029. <method name="toString" return="java.lang.String"
  7030. abstract="false" native="false" synchronized="false"
  7031. static="false" final="false" visibility="public"
  7032. deprecated="not deprecated">
  7033. </method>
  7034. <method name="equals" return="boolean"
  7035. abstract="false" native="false" synchronized="false"
  7036. static="false" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. <param name="o" type="java.lang.Object"/>
  7039. </method>
  7040. <method name="hashCode" return="int"
  7041. abstract="false" native="false" synchronized="false"
  7042. static="false" final="false" visibility="public"
  7043. deprecated="not deprecated">
  7044. </method>
  7045. <method name="compareTo" return="int"
  7046. abstract="false" native="false" synchronized="false"
  7047. static="false" final="false" visibility="public"
  7048. deprecated="not deprecated">
  7049. <param name="o" type="java.lang.Object"/>
  7050. </method>
  7051. <method name="depth" return="int"
  7052. abstract="false" native="false" synchronized="false"
  7053. static="false" final="false" visibility="public"
  7054. deprecated="not deprecated">
  7055. <doc>
  7056. <![CDATA[Return the number of elements in this path.]]>
  7057. </doc>
  7058. </method>
  7059. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  7060. abstract="false" native="false" synchronized="false"
  7061. static="false" final="false" visibility="public"
  7062. deprecated="not deprecated">
  7063. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7064. <doc>
  7065. <![CDATA[Returns a qualified path object.
  7066. Deprecated - use {@link #makeQualified(URI, Path)}]]>
  7067. </doc>
  7068. </method>
  7069. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  7070. abstract="false" native="false" synchronized="false"
  7071. static="false" final="false" visibility="public"
  7072. deprecated="not deprecated">
  7073. <param name="defaultUri" type="java.net.URI"/>
  7074. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  7075. <doc>
  7076. <![CDATA[Returns a qualified path object.]]>
  7077. </doc>
  7078. </method>
  7079. <field name="SEPARATOR" type="java.lang.String"
  7080. transient="false" volatile="false"
  7081. static="true" final="true" visibility="public"
  7082. deprecated="not deprecated">
  7083. <doc>
  7084. <![CDATA[The directory separator, a slash.]]>
  7085. </doc>
  7086. </field>
  7087. <field name="SEPARATOR_CHAR" type="char"
  7088. transient="false" volatile="false"
  7089. static="true" final="true" visibility="public"
  7090. deprecated="not deprecated">
  7091. </field>
  7092. <field name="CUR_DIR" type="java.lang.String"
  7093. transient="false" volatile="false"
  7094. static="true" final="true" visibility="public"
  7095. deprecated="not deprecated">
  7096. </field>
  7097. <doc>
  7098. <![CDATA[Names a file or directory in a {@link FileSystem}.
  7099. Path strings use slash as the directory separator. A path string is
  7100. absolute if it begins with a slash.]]>
  7101. </doc>
  7102. </class>
  7103. <!-- end class org.apache.hadoop.fs.Path -->
  7104. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  7105. <interface name="PathFilter" abstract="true"
  7106. static="false" final="false" visibility="public"
  7107. deprecated="not deprecated">
  7108. <method name="accept" return="boolean"
  7109. abstract="false" native="false" synchronized="false"
  7110. static="false" final="false" visibility="public"
  7111. deprecated="not deprecated">
  7112. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7113. <doc>
  7114. <![CDATA[Tests whether or not the specified abstract pathname should be
  7115. included in a pathname list.
  7116. @param path The abstract pathname to be tested
  7117. @return <code>true</code> if and only if <code>pathname</code>
  7118. should be included]]>
  7119. </doc>
  7120. </method>
  7121. </interface>
  7122. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  7123. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  7124. <interface name="PositionedReadable" abstract="true"
  7125. static="false" final="false" visibility="public"
  7126. deprecated="not deprecated">
  7127. <method name="read" return="int"
  7128. abstract="false" native="false" synchronized="false"
  7129. static="false" final="false" visibility="public"
  7130. deprecated="not deprecated">
  7131. <param name="position" type="long"/>
  7132. <param name="buffer" type="byte[]"/>
  7133. <param name="offset" type="int"/>
  7134. <param name="length" type="int"/>
  7135. <exception name="IOException" type="java.io.IOException"/>
  7136. <doc>
  7137. <![CDATA[Read upto the specified number of bytes, from a given
  7138. position within a file, and return the number of bytes read. This does not
  7139. change the current offset of a file, and is thread-safe.]]>
  7140. </doc>
  7141. </method>
  7142. <method name="readFully"
  7143. abstract="false" native="false" synchronized="false"
  7144. static="false" final="false" visibility="public"
  7145. deprecated="not deprecated">
  7146. <param name="position" type="long"/>
  7147. <param name="buffer" type="byte[]"/>
  7148. <param name="offset" type="int"/>
  7149. <param name="length" type="int"/>
  7150. <exception name="IOException" type="java.io.IOException"/>
  7151. <doc>
  7152. <![CDATA[Read the specified number of bytes, from a given
  7153. position within a file. This does not
  7154. change the current offset of a file, and is thread-safe.]]>
  7155. </doc>
  7156. </method>
  7157. <method name="readFully"
  7158. abstract="false" native="false" synchronized="false"
  7159. static="false" final="false" visibility="public"
  7160. deprecated="not deprecated">
  7161. <param name="position" type="long"/>
  7162. <param name="buffer" type="byte[]"/>
  7163. <exception name="IOException" type="java.io.IOException"/>
  7164. <doc>
  7165. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  7166. position within a file. This does not
  7167. change the current offset of a file, and is thread-safe.]]>
  7168. </doc>
  7169. </method>
  7170. <doc>
  7171. <![CDATA[Stream that permits positional reading.]]>
  7172. </doc>
  7173. </interface>
  7174. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  7175. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  7176. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7177. abstract="false"
  7178. static="false" final="false" visibility="public"
  7179. deprecated="not deprecated">
  7180. <constructor name="RawLocalFileSystem"
  7181. static="false" final="false" visibility="public"
  7182. deprecated="not deprecated">
  7183. </constructor>
  7184. <method name="pathToFile" return="java.io.File"
  7185. abstract="false" native="false" synchronized="false"
  7186. static="false" final="false" visibility="public"
  7187. deprecated="not deprecated">
  7188. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7189. <doc>
  7190. <![CDATA[Convert a path to a File.]]>
  7191. </doc>
  7192. </method>
  7193. <method name="getUri" return="java.net.URI"
  7194. abstract="false" native="false" synchronized="false"
  7195. static="false" final="false" visibility="public"
  7196. deprecated="not deprecated">
  7197. </method>
  7198. <method name="initialize"
  7199. abstract="false" native="false" synchronized="false"
  7200. static="false" final="false" visibility="public"
  7201. deprecated="not deprecated">
  7202. <param name="uri" type="java.net.URI"/>
  7203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7204. <exception name="IOException" type="java.io.IOException"/>
  7205. </method>
  7206. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7207. abstract="false" native="false" synchronized="false"
  7208. static="false" final="false" visibility="public"
  7209. deprecated="not deprecated">
  7210. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7211. <param name="bufferSize" type="int"/>
  7212. <exception name="IOException" type="java.io.IOException"/>
  7213. </method>
  7214. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7215. abstract="false" native="false" synchronized="false"
  7216. static="false" final="false" visibility="public"
  7217. deprecated="not deprecated">
  7218. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7219. <param name="bufferSize" type="int"/>
  7220. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7221. <exception name="IOException" type="java.io.IOException"/>
  7222. <doc>
  7223. <![CDATA[{@inheritDoc}]]>
  7224. </doc>
  7225. </method>
  7226. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7227. abstract="false" native="false" synchronized="false"
  7228. static="false" final="false" visibility="public"
  7229. deprecated="not deprecated">
  7230. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7231. <param name="overwrite" type="boolean"/>
  7232. <param name="bufferSize" type="int"/>
  7233. <param name="replication" type="short"/>
  7234. <param name="blockSize" type="long"/>
  7235. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7236. <exception name="IOException" type="java.io.IOException"/>
  7237. <doc>
  7238. <![CDATA[{@inheritDoc}]]>
  7239. </doc>
  7240. </method>
  7241. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7242. abstract="false" native="false" synchronized="false"
  7243. static="false" final="false" visibility="public"
  7244. deprecated="not deprecated">
  7245. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7246. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7247. <param name="overwrite" type="boolean"/>
  7248. <param name="bufferSize" type="int"/>
  7249. <param name="replication" type="short"/>
  7250. <param name="blockSize" type="long"/>
  7251. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7252. <exception name="IOException" type="java.io.IOException"/>
  7253. <doc>
  7254. <![CDATA[{@inheritDoc}]]>
  7255. </doc>
  7256. </method>
  7257. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  7258. abstract="false" native="false" synchronized="false"
  7259. static="false" final="false" visibility="protected"
  7260. deprecated="not deprecated">
  7261. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7262. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7263. <param name="flag" type="java.util.EnumSet"/>
  7264. <param name="bufferSize" type="int"/>
  7265. <param name="replication" type="short"/>
  7266. <param name="blockSize" type="long"/>
  7267. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7268. <param name="bytesPerChecksum" type="int"/>
  7269. <exception name="IOException" type="java.io.IOException"/>
  7270. </method>
  7271. <method name="rename" return="boolean"
  7272. abstract="false" native="false" synchronized="false"
  7273. static="false" final="false" visibility="public"
  7274. deprecated="not deprecated">
  7275. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7276. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7277. <exception name="IOException" type="java.io.IOException"/>
  7278. </method>
  7279. <method name="delete" return="boolean"
  7280. abstract="false" native="false" synchronized="false"
  7281. static="false" final="false" visibility="public"
  7282. deprecated="not deprecated">
  7283. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7284. <param name="recursive" type="boolean"/>
  7285. <exception name="IOException" type="java.io.IOException"/>
  7286. </method>
  7287. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7288. abstract="false" native="false" synchronized="false"
  7289. static="false" final="false" visibility="public"
  7290. deprecated="not deprecated">
  7291. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7292. <exception name="IOException" type="java.io.IOException"/>
  7293. </method>
  7294. <method name="mkdirs" return="boolean"
  7295. abstract="false" native="false" synchronized="false"
  7296. static="false" final="false" visibility="public"
  7297. deprecated="not deprecated">
  7298. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7299. <exception name="IOException" type="java.io.IOException"/>
  7300. <doc>
  7301. <![CDATA[Creates the specified directory hierarchy. Does not
  7302. treat existence as an error.]]>
  7303. </doc>
  7304. </method>
  7305. <method name="mkdirs" return="boolean"
  7306. abstract="false" native="false" synchronized="false"
  7307. static="false" final="false" visibility="public"
  7308. deprecated="not deprecated">
  7309. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7310. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7311. <exception name="IOException" type="java.io.IOException"/>
  7312. <doc>
  7313. <![CDATA[{@inheritDoc}]]>
  7314. </doc>
  7315. </method>
  7316. <method name="primitiveMkdir" return="boolean"
  7317. abstract="false" native="false" synchronized="false"
  7318. static="false" final="false" visibility="protected"
  7319. deprecated="not deprecated">
  7320. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7321. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7322. <exception name="IOException" type="java.io.IOException"/>
  7323. </method>
  7324. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7325. abstract="false" native="false" synchronized="false"
  7326. static="false" final="false" visibility="public"
  7327. deprecated="not deprecated">
  7328. </method>
  7329. <method name="setWorkingDirectory"
  7330. abstract="false" native="false" synchronized="false"
  7331. static="false" final="false" visibility="public"
  7332. deprecated="not deprecated">
  7333. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7334. <doc>
  7335. <![CDATA[Set the working directory to the given directory.]]>
  7336. </doc>
  7337. </method>
  7338. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7339. abstract="false" native="false" synchronized="false"
  7340. static="false" final="false" visibility="public"
  7341. deprecated="not deprecated">
  7342. </method>
  7343. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7344. abstract="false" native="false" synchronized="false"
  7345. static="false" final="false" visibility="protected"
  7346. deprecated="not deprecated">
  7347. </method>
  7348. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  7349. abstract="false" native="false" synchronized="false"
  7350. static="false" final="false" visibility="public"
  7351. deprecated="not deprecated">
  7352. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7353. <exception name="IOException" type="java.io.IOException"/>
  7354. <doc>
  7355. <![CDATA[{@inheritDoc}]]>
  7356. </doc>
  7357. </method>
  7358. <method name="moveFromLocalFile"
  7359. abstract="false" native="false" synchronized="false"
  7360. static="false" final="false" visibility="public"
  7361. deprecated="not deprecated">
  7362. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7363. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7364. <exception name="IOException" type="java.io.IOException"/>
  7365. </method>
  7366. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7367. abstract="false" native="false" synchronized="false"
  7368. static="false" final="false" visibility="public"
  7369. deprecated="not deprecated">
  7370. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7371. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7372. <exception name="IOException" type="java.io.IOException"/>
  7373. </method>
  7374. <method name="completeLocalOutput"
  7375. abstract="false" native="false" synchronized="false"
  7376. static="false" final="false" visibility="public"
  7377. deprecated="not deprecated">
  7378. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  7379. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7380. <exception name="IOException" type="java.io.IOException"/>
  7381. </method>
  7382. <method name="close"
  7383. abstract="false" native="false" synchronized="false"
  7384. static="false" final="false" visibility="public"
  7385. deprecated="not deprecated">
  7386. <exception name="IOException" type="java.io.IOException"/>
  7387. </method>
  7388. <method name="toString" return="java.lang.String"
  7389. abstract="false" native="false" synchronized="false"
  7390. static="false" final="false" visibility="public"
  7391. deprecated="not deprecated">
  7392. </method>
  7393. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7394. abstract="false" native="false" synchronized="false"
  7395. static="false" final="false" visibility="public"
  7396. deprecated="not deprecated">
  7397. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7398. <exception name="IOException" type="java.io.IOException"/>
  7399. </method>
  7400. <method name="setOwner"
  7401. abstract="false" native="false" synchronized="false"
  7402. static="false" final="false" visibility="public"
  7403. deprecated="not deprecated">
  7404. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7405. <param name="username" type="java.lang.String"/>
  7406. <param name="groupname" type="java.lang.String"/>
  7407. <exception name="IOException" type="java.io.IOException"/>
  7408. <doc>
  7409. <![CDATA[Use the command chown to set owner.]]>
  7410. </doc>
  7411. </method>
  7412. <method name="setPermission"
  7413. abstract="false" native="false" synchronized="false"
  7414. static="false" final="false" visibility="public"
  7415. deprecated="not deprecated">
  7416. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7417. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7418. <exception name="IOException" type="java.io.IOException"/>
  7419. <doc>
  7420. <![CDATA[Use the command chmod to set permission.]]>
  7421. </doc>
  7422. </method>
  7423. <doc>
  7424. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  7425. </doc>
  7426. </class>
  7427. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  7428. <!-- start interface org.apache.hadoop.fs.Seekable -->
  7429. <interface name="Seekable" abstract="true"
  7430. static="false" final="false" visibility="public"
  7431. deprecated="not deprecated">
  7432. <method name="seek"
  7433. abstract="false" native="false" synchronized="false"
  7434. static="false" final="false" visibility="public"
  7435. deprecated="not deprecated">
  7436. <param name="pos" type="long"/>
  7437. <exception name="IOException" type="java.io.IOException"/>
  7438. <doc>
  7439. <![CDATA[Seek to the given offset from the start of the file.
  7440. The next read() will be from that location. Can't
  7441. seek past the end of the file.]]>
  7442. </doc>
  7443. </method>
  7444. <method name="getPos" return="long"
  7445. abstract="false" native="false" synchronized="false"
  7446. static="false" final="false" visibility="public"
  7447. deprecated="not deprecated">
  7448. <exception name="IOException" type="java.io.IOException"/>
  7449. <doc>
  7450. <![CDATA[Return the current offset from the start of the file]]>
  7451. </doc>
  7452. </method>
  7453. <method name="seekToNewSource" return="boolean"
  7454. abstract="false" native="false" synchronized="false"
  7455. static="false" final="false" visibility="public"
  7456. deprecated="not deprecated">
  7457. <param name="targetPos" type="long"/>
  7458. <exception name="IOException" type="java.io.IOException"/>
  7459. <doc>
  7460. <![CDATA[Seeks a different copy of the data. Returns true if
  7461. found a new source, false otherwise.]]>
  7462. </doc>
  7463. </method>
  7464. <doc>
  7465. <![CDATA[Stream that permits seeking.]]>
  7466. </doc>
  7467. </interface>
  7468. <!-- end interface org.apache.hadoop.fs.Seekable -->
  7469. <!-- start interface org.apache.hadoop.fs.Syncable -->
  7470. <interface name="Syncable" abstract="true"
  7471. static="false" final="false" visibility="public"
  7472. deprecated="not deprecated">
  7473. <method name="sync"
  7474. abstract="false" native="false" synchronized="false"
  7475. static="false" final="false" visibility="public"
  7476. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  7477. <exception name="IOException" type="java.io.IOException"/>
  7478. <doc>
  7479. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  7480. @see #hflush()]]>
  7481. </doc>
  7482. </method>
  7483. <method name="hflush"
  7484. abstract="false" native="false" synchronized="false"
  7485. static="false" final="false" visibility="public"
  7486. deprecated="not deprecated">
  7487. <exception name="IOException" type="java.io.IOException"/>
  7488. <doc>
  7489. <![CDATA[Flush out the data in client's user buffer. After the return of
  7490. this call, new readers will see the data.
  7491. @throws IOException if any error occurs]]>
  7492. </doc>
  7493. </method>
  7494. <method name="hsync"
  7495. abstract="false" native="false" synchronized="false"
  7496. static="false" final="false" visibility="public"
  7497. deprecated="not deprecated">
  7498. <exception name="IOException" type="java.io.IOException"/>
  7499. <doc>
  7500. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  7501. all the way to the disk device (but the disk may have it in its cache).
  7502. @throws IOException if error occurs]]>
  7503. </doc>
  7504. </method>
  7505. <doc>
  7506. <![CDATA[This interface for flush/sync operation.]]>
  7507. </doc>
  7508. </interface>
  7509. <!-- end interface org.apache.hadoop.fs.Syncable -->
  7510. <!-- start class org.apache.hadoop.fs.Trash -->
  7511. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  7512. abstract="false"
  7513. static="false" final="false" visibility="public"
  7514. deprecated="not deprecated">
  7515. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  7516. static="false" final="false" visibility="public"
  7517. deprecated="not deprecated">
  7518. <exception name="IOException" type="java.io.IOException"/>
  7519. <doc>
  7520. <![CDATA[Construct a trash can accessor.
  7521. @param conf a Configuration]]>
  7522. </doc>
  7523. </constructor>
  7524. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  7525. static="false" final="false" visibility="public"
  7526. deprecated="not deprecated">
  7527. <exception name="IOException" type="java.io.IOException"/>
  7528. <doc>
  7529. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  7530. </doc>
  7531. </constructor>
  7532. <method name="moveToTrash" return="boolean"
  7533. abstract="false" native="false" synchronized="false"
  7534. static="false" final="false" visibility="public"
  7535. deprecated="not deprecated">
  7536. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7537. <exception name="IOException" type="java.io.IOException"/>
  7538. <doc>
  7539. <![CDATA[Move a file or directory to the current trash directory.
  7540. @return false if the item is already in the trash or trash is disabled]]>
  7541. </doc>
  7542. </method>
  7543. <method name="checkpoint"
  7544. abstract="false" native="false" synchronized="false"
  7545. static="false" final="false" visibility="public"
  7546. deprecated="not deprecated">
  7547. <exception name="IOException" type="java.io.IOException"/>
  7548. <doc>
  7549. <![CDATA[Create a trash checkpoint.]]>
  7550. </doc>
  7551. </method>
  7552. <method name="expunge"
  7553. abstract="false" native="false" synchronized="false"
  7554. static="false" final="false" visibility="public"
  7555. deprecated="not deprecated">
  7556. <exception name="IOException" type="java.io.IOException"/>
  7557. <doc>
  7558. <![CDATA[Delete old checkpoints.]]>
  7559. </doc>
  7560. </method>
  7561. <method name="getEmptier" return="java.lang.Runnable"
  7562. abstract="false" native="false" synchronized="false"
  7563. static="false" final="false" visibility="public"
  7564. deprecated="not deprecated">
  7565. <exception name="IOException" type="java.io.IOException"/>
  7566. <doc>
  7567. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  7568. users, intended to be run by the superuser. Only one checkpoint is kept
  7569. at a time.]]>
  7570. </doc>
  7571. </method>
  7572. <method name="main"
  7573. abstract="false" native="false" synchronized="false"
  7574. static="true" final="false" visibility="public"
  7575. deprecated="not deprecated">
  7576. <param name="args" type="java.lang.String[]"/>
  7577. <exception name="Exception" type="java.lang.Exception"/>
  7578. <doc>
  7579. <![CDATA[Run an emptier.]]>
  7580. </doc>
  7581. </method>
  7582. <doc>
  7583. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  7584. directory, a subdirectory of their home directory named ".Trash". Files are
  7585. initially moved to a <i>current</i> sub-directory of the trash directory.
  7586. Within that sub-directory their original path is preserved. Periodically
  7587. one may checkpoint the current trash and remove older checkpoints. (This
  7588. design permits trash management without enumeration of the full trash
  7589. content, without date support in the filesystem, and without clock
  7590. synchronization.)]]>
  7591. </doc>
  7592. </class>
  7593. <!-- end class org.apache.hadoop.fs.Trash -->
  7594. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  7595. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  7596. abstract="false"
  7597. static="false" final="false" visibility="public"
  7598. deprecated="not deprecated">
  7599. <doc>
  7600. <![CDATA[File system for a given file system name/scheme is not supported]]>
  7601. </doc>
  7602. </class>
  7603. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  7604. <doc>
  7605. <![CDATA[An abstract file system API.]]>
  7606. </doc>
  7607. </package>
  7608. <package name="org.apache.hadoop.fs.ftp">
  7609. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  7610. <class name="FTPException" extends="java.lang.RuntimeException"
  7611. abstract="false"
  7612. static="false" final="false" visibility="public"
  7613. deprecated="not deprecated">
  7614. <constructor name="FTPException" type="java.lang.String"
  7615. static="false" final="false" visibility="public"
  7616. deprecated="not deprecated">
  7617. </constructor>
  7618. <constructor name="FTPException" type="java.lang.Throwable"
  7619. static="false" final="false" visibility="public"
  7620. deprecated="not deprecated">
  7621. </constructor>
  7622. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  7623. static="false" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. </constructor>
  7626. <doc>
  7627. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  7628. </doc>
  7629. </class>
  7630. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  7631. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7632. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7633. abstract="false"
  7634. static="false" final="false" visibility="public"
  7635. deprecated="not deprecated">
  7636. <constructor name="FTPFileSystem"
  7637. static="false" final="false" visibility="public"
  7638. deprecated="not deprecated">
  7639. </constructor>
  7640. <method name="initialize"
  7641. abstract="false" native="false" synchronized="false"
  7642. static="false" final="false" visibility="public"
  7643. deprecated="not deprecated">
  7644. <param name="uri" type="java.net.URI"/>
  7645. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7646. <exception name="IOException" type="java.io.IOException"/>
  7647. </method>
  7648. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7649. abstract="false" native="false" synchronized="false"
  7650. static="false" final="false" visibility="public"
  7651. deprecated="not deprecated">
  7652. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7653. <param name="bufferSize" type="int"/>
  7654. <exception name="IOException" type="java.io.IOException"/>
  7655. </method>
  7656. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7657. abstract="false" native="false" synchronized="false"
  7658. static="false" final="false" visibility="public"
  7659. deprecated="not deprecated">
  7660. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7661. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7662. <param name="overwrite" type="boolean"/>
  7663. <param name="bufferSize" type="int"/>
  7664. <param name="replication" type="short"/>
  7665. <param name="blockSize" type="long"/>
  7666. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7667. <exception name="IOException" type="java.io.IOException"/>
  7668. <doc>
  7669. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  7670. this class or else the invocation will block.]]>
  7671. </doc>
  7672. </method>
  7673. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7674. abstract="false" native="false" synchronized="false"
  7675. static="false" final="false" visibility="public"
  7676. deprecated="not deprecated">
  7677. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7678. <param name="bufferSize" type="int"/>
  7679. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7680. <exception name="IOException" type="java.io.IOException"/>
  7681. <doc>
  7682. <![CDATA[This optional operation is not yet supported.]]>
  7683. </doc>
  7684. </method>
  7685. <method name="delete" return="boolean"
  7686. abstract="false" native="false" synchronized="false"
  7687. static="false" final="false" visibility="public"
  7688. deprecated="not deprecated">
  7689. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7690. <param name="recursive" type="boolean"/>
  7691. <exception name="IOException" type="java.io.IOException"/>
  7692. </method>
  7693. <method name="getUri" return="java.net.URI"
  7694. abstract="false" native="false" synchronized="false"
  7695. static="false" final="false" visibility="public"
  7696. deprecated="not deprecated">
  7697. </method>
  7698. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7699. abstract="false" native="false" synchronized="false"
  7700. static="false" final="false" visibility="public"
  7701. deprecated="not deprecated">
  7702. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7703. <exception name="IOException" type="java.io.IOException"/>
  7704. </method>
  7705. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7706. abstract="false" native="false" synchronized="false"
  7707. static="false" final="false" visibility="public"
  7708. deprecated="not deprecated">
  7709. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7710. <exception name="IOException" type="java.io.IOException"/>
  7711. </method>
  7712. <method name="mkdirs" return="boolean"
  7713. abstract="false" native="false" synchronized="false"
  7714. static="false" final="false" visibility="public"
  7715. deprecated="not deprecated">
  7716. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7717. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7718. <exception name="IOException" type="java.io.IOException"/>
  7719. </method>
  7720. <method name="rename" return="boolean"
  7721. abstract="false" native="false" synchronized="false"
  7722. static="false" final="false" visibility="public"
  7723. deprecated="not deprecated">
  7724. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7725. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7726. <exception name="IOException" type="java.io.IOException"/>
  7727. </method>
  7728. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7729. abstract="false" native="false" synchronized="false"
  7730. static="false" final="false" visibility="public"
  7731. deprecated="not deprecated">
  7732. </method>
  7733. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7734. abstract="false" native="false" synchronized="false"
  7735. static="false" final="false" visibility="public"
  7736. deprecated="not deprecated">
  7737. </method>
  7738. <method name="setWorkingDirectory"
  7739. abstract="false" native="false" synchronized="false"
  7740. static="false" final="false" visibility="public"
  7741. deprecated="not deprecated">
  7742. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7743. </method>
  7744. <field name="LOG" type="org.apache.commons.logging.Log"
  7745. transient="false" volatile="false"
  7746. static="true" final="true" visibility="public"
  7747. deprecated="not deprecated">
  7748. </field>
  7749. <field name="DEFAULT_BUFFER_SIZE" type="int"
  7750. transient="false" volatile="false"
  7751. static="true" final="true" visibility="public"
  7752. deprecated="not deprecated">
  7753. </field>
  7754. <field name="DEFAULT_BLOCK_SIZE" type="int"
  7755. transient="false" volatile="false"
  7756. static="true" final="true" visibility="public"
  7757. deprecated="not deprecated">
  7758. </field>
  7759. <doc>
  7760. <![CDATA[<p>
  7761. A {@link FileSystem} backed by an FTP client provided by <a
  7762. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  7763. </p>]]>
  7764. </doc>
  7765. </class>
  7766. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7767. </package>
  7768. <package name="org.apache.hadoop.fs.kfs">
  7769. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7770. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7771. abstract="false"
  7772. static="false" final="false" visibility="public"
  7773. deprecated="not deprecated">
  7774. <constructor name="KosmosFileSystem"
  7775. static="false" final="false" visibility="public"
  7776. deprecated="not deprecated">
  7777. </constructor>
  7778. <method name="getUri" return="java.net.URI"
  7779. abstract="false" native="false" synchronized="false"
  7780. static="false" final="false" visibility="public"
  7781. deprecated="not deprecated">
  7782. </method>
  7783. <method name="initialize"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="public"
  7786. deprecated="not deprecated">
  7787. <param name="uri" type="java.net.URI"/>
  7788. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7789. <exception name="IOException" type="java.io.IOException"/>
  7790. </method>
  7791. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7792. abstract="false" native="false" synchronized="false"
  7793. static="false" final="false" visibility="public"
  7794. deprecated="not deprecated">
  7795. </method>
  7796. <method name="setWorkingDirectory"
  7797. abstract="false" native="false" synchronized="false"
  7798. static="false" final="false" visibility="public"
  7799. deprecated="not deprecated">
  7800. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7801. </method>
  7802. <method name="mkdirs" return="boolean"
  7803. abstract="false" native="false" synchronized="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7807. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7808. <exception name="IOException" type="java.io.IOException"/>
  7809. </method>
  7810. <method name="isDirectory" return="boolean"
  7811. abstract="false" native="false" synchronized="false"
  7812. static="false" final="false" visibility="public"
  7813. deprecated="not deprecated">
  7814. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7815. <exception name="IOException" type="java.io.IOException"/>
  7816. </method>
  7817. <method name="isFile" return="boolean"
  7818. abstract="false" native="false" synchronized="false"
  7819. static="false" final="false" visibility="public"
  7820. deprecated="not deprecated">
  7821. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7822. <exception name="IOException" type="java.io.IOException"/>
  7823. </method>
  7824. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7825. abstract="false" native="false" synchronized="false"
  7826. static="false" final="false" visibility="public"
  7827. deprecated="not deprecated">
  7828. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7829. <exception name="IOException" type="java.io.IOException"/>
  7830. </method>
  7831. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7832. abstract="false" native="false" synchronized="false"
  7833. static="false" final="false" visibility="public"
  7834. deprecated="not deprecated">
  7835. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7836. <exception name="IOException" type="java.io.IOException"/>
  7837. </method>
  7838. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7839. abstract="false" native="false" synchronized="false"
  7840. static="false" final="false" visibility="public"
  7841. deprecated="not deprecated">
  7842. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7843. <param name="bufferSize" type="int"/>
  7844. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7845. <exception name="IOException" type="java.io.IOException"/>
  7846. </method>
  7847. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7848. abstract="false" native="false" synchronized="false"
  7849. static="false" final="false" visibility="public"
  7850. deprecated="not deprecated">
  7851. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7852. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7853. <param name="overwrite" type="boolean"/>
  7854. <param name="bufferSize" type="int"/>
  7855. <param name="replication" type="short"/>
  7856. <param name="blockSize" type="long"/>
  7857. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7858. <exception name="IOException" type="java.io.IOException"/>
  7859. </method>
  7860. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7861. abstract="false" native="false" synchronized="false"
  7862. static="false" final="false" visibility="public"
  7863. deprecated="not deprecated">
  7864. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7865. <param name="bufferSize" type="int"/>
  7866. <exception name="IOException" type="java.io.IOException"/>
  7867. </method>
  7868. <method name="rename" return="boolean"
  7869. abstract="false" native="false" synchronized="false"
  7870. static="false" final="false" visibility="public"
  7871. deprecated="not deprecated">
  7872. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7873. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7874. <exception name="IOException" type="java.io.IOException"/>
  7875. </method>
  7876. <method name="delete" return="boolean"
  7877. abstract="false" native="false" synchronized="false"
  7878. static="false" final="false" visibility="public"
  7879. deprecated="not deprecated">
  7880. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7881. <param name="recursive" type="boolean"/>
  7882. <exception name="IOException" type="java.io.IOException"/>
  7883. </method>
  7884. <method name="getDefaultReplication" return="short"
  7885. abstract="false" native="false" synchronized="false"
  7886. static="false" final="false" visibility="public"
  7887. deprecated="not deprecated">
  7888. </method>
  7889. <method name="setReplication" return="boolean"
  7890. abstract="false" native="false" synchronized="false"
  7891. static="false" final="false" visibility="public"
  7892. deprecated="not deprecated">
  7893. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7894. <param name="replication" type="short"/>
  7895. <exception name="IOException" type="java.io.IOException"/>
  7896. </method>
  7897. <method name="getDefaultBlockSize" return="long"
  7898. abstract="false" native="false" synchronized="false"
  7899. static="false" final="false" visibility="public"
  7900. deprecated="not deprecated">
  7901. </method>
  7902. <method name="lock"
  7903. abstract="false" native="false" synchronized="false"
  7904. static="false" final="false" visibility="public"
  7905. deprecated="not deprecated">
  7906. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7907. <param name="shared" type="boolean"/>
  7908. <exception name="IOException" type="java.io.IOException"/>
  7909. </method>
  7910. <method name="release"
  7911. abstract="false" native="false" synchronized="false"
  7912. static="false" final="false" visibility="public"
  7913. deprecated="not deprecated">
  7914. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7915. <exception name="IOException" type="java.io.IOException"/>
  7916. </method>
  7917. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7918. abstract="false" native="false" synchronized="false"
  7919. static="false" final="false" visibility="public"
  7920. deprecated="not deprecated">
  7921. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7922. <param name="start" type="long"/>
  7923. <param name="len" type="long"/>
  7924. <exception name="IOException" type="java.io.IOException"/>
  7925. <doc>
  7926. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7927. locations of the various chunks of the file file from KFS.]]>
  7928. </doc>
  7929. </method>
  7930. <method name="copyFromLocalFile"
  7931. abstract="false" native="false" synchronized="false"
  7932. static="false" final="false" visibility="public"
  7933. deprecated="not deprecated">
  7934. <param name="delSrc" type="boolean"/>
  7935. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7936. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7937. <exception name="IOException" type="java.io.IOException"/>
  7938. </method>
  7939. <method name="copyToLocalFile"
  7940. abstract="false" native="false" synchronized="false"
  7941. static="false" final="false" visibility="public"
  7942. deprecated="not deprecated">
  7943. <param name="delSrc" type="boolean"/>
  7944. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7945. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7946. <exception name="IOException" type="java.io.IOException"/>
  7947. </method>
  7948. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7949. abstract="false" native="false" synchronized="false"
  7950. static="false" final="false" visibility="public"
  7951. deprecated="not deprecated">
  7952. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7953. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7954. <exception name="IOException" type="java.io.IOException"/>
  7955. </method>
  7956. <method name="completeLocalOutput"
  7957. abstract="false" native="false" synchronized="false"
  7958. static="false" final="false" visibility="public"
  7959. deprecated="not deprecated">
  7960. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7961. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7962. <exception name="IOException" type="java.io.IOException"/>
  7963. </method>
  7964. <doc>
  7965. <![CDATA[A FileSystem backed by KFS.]]>
  7966. </doc>
  7967. </class>
  7968. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7969. <doc>
  7970. <![CDATA[<h1>A client for the Kosmos filesystem (KFS)</h1>
  7971. <h3>Introduction</h3>
  7972. This pages describes how to use Kosmos Filesystem
  7973. (<a href="http://kosmosfs.sourceforge.net"> KFS </a>) as a backing
  7974. store with Hadoop. This page assumes that you have downloaded the
  7975. KFS software and installed necessary binaries as outlined in the KFS
  7976. documentation.
  7977. <h3>Steps</h3>
  7978. <ul>
  7979. <li>In the Hadoop conf directory edit core-site.xml,
  7980. add the following:
  7981. <pre>
  7982. &lt;property&gt;
  7983. &lt;name&gt;fs.kfs.impl&lt;/name&gt;
  7984. &lt;value&gt;org.apache.hadoop.fs.kfs.KosmosFileSystem&lt;/value&gt;
  7985. &lt;description&gt;The FileSystem for kfs: uris.&lt;/description&gt;
  7986. &lt;/property&gt;
  7987. </pre>
  7988. <li>In the Hadoop conf directory edit core-site.xml,
  7989. adding the following (with appropriate values for
  7990. &lt;server&gt; and &lt;port&gt;):
  7991. <pre>
  7992. &lt;property&gt;
  7993. &lt;name&gt;fs.default.name&lt;/name&gt;
  7994. &lt;value&gt;kfs://&lt;server:port&gt;&lt;/value&gt;
  7995. &lt;/property&gt;
  7996. &lt;property&gt;
  7997. &lt;name&gt;fs.kfs.metaServerHost&lt;/name&gt;
  7998. &lt;value&gt;&lt;server&gt;&lt;/value&gt;
  7999. &lt;description&gt;The location of the KFS meta server.&lt;/description&gt;
  8000. &lt;/property&gt;
  8001. &lt;property&gt;
  8002. &lt;name&gt;fs.kfs.metaServerPort&lt;/name&gt;
  8003. &lt;value&gt;&lt;port&gt;&lt;/value&gt;
  8004. &lt;description&gt;The location of the meta server's port.&lt;/description&gt;
  8005. &lt;/property&gt;
  8006. </pre>
  8007. </li>
  8008. <li>Copy KFS's <i> kfs-0.1.jar </i> to Hadoop's lib directory. This step
  8009. enables Hadoop's to load the KFS specific modules. Note
  8010. that, kfs-0.1.jar was built when you compiled KFS source
  8011. code. This jar file contains code that calls KFS's client
  8012. library code via JNI; the native code is in KFS's <i>
  8013. libkfsClient.so </i> library.
  8014. </li>
  8015. <li> When the Hadoop map/reduce trackers start up, those
  8016. processes (on local as well as remote nodes) will now need to load
  8017. KFS's <i> libkfsClient.so </i> library. To simplify this process, it is advisable to
  8018. store libkfsClient.so in an NFS accessible directory (similar to where
  8019. Hadoop binaries/scripts are stored); then, modify Hadoop's
  8020. conf/hadoop-env.sh adding the following line and providing suitable
  8021. value for &lt;path&gt;:
  8022. <pre>
  8023. export LD_LIBRARY_PATH=&lt;path&gt;
  8024. </pre>
  8025. <li>Start only the map/reduce trackers
  8026. <br />
  8027. example: execute Hadoop's bin/start-mapred.sh</li>
  8028. </ul>
  8029. <br/>
  8030. If the map/reduce job trackers start up, all file-I/O is done to KFS.]]>
  8031. </doc>
  8032. </package>
  8033. <package name="org.apache.hadoop.fs.permission">
  8034. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  8035. <class name="AccessControlException" extends="java.io.IOException"
  8036. abstract="false"
  8037. static="false" final="false" visibility="public"
  8038. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  8039. instead.">
  8040. <constructor name="AccessControlException"
  8041. static="false" final="false" visibility="public"
  8042. deprecated="not deprecated">
  8043. <doc>
  8044. <![CDATA[Default constructor is needed for unwrapping from
  8045. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  8046. </doc>
  8047. </constructor>
  8048. <constructor name="AccessControlException" type="java.lang.String"
  8049. static="false" final="false" visibility="public"
  8050. deprecated="not deprecated">
  8051. <doc>
  8052. <![CDATA[Constructs an {@link AccessControlException}
  8053. with the specified detail message.
  8054. @param s the detail message.]]>
  8055. </doc>
  8056. </constructor>
  8057. <constructor name="AccessControlException" type="java.lang.Throwable"
  8058. static="false" final="false" visibility="public"
  8059. deprecated="not deprecated">
  8060. <doc>
  8061. <![CDATA[Constructs a new exception with the specified cause and a detail
  8062. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  8063. typically contains the class and detail message of <tt>cause</tt>).
  8064. @param cause the cause (which is saved for later retrieval by the
  8065. {@link #getCause()} method). (A <tt>null</tt> value is
  8066. permitted, and indicates that the cause is nonexistent or
  8067. unknown.)]]>
  8068. </doc>
  8069. </constructor>
  8070. <doc>
  8071. <![CDATA[An exception class for access control related issues.
  8072. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  8073. instead.]]>
  8074. </doc>
  8075. </class>
  8076. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  8077. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  8078. <class name="FsPermission" extends="java.lang.Object"
  8079. abstract="false"
  8080. static="false" final="false" visibility="public"
  8081. deprecated="not deprecated">
  8082. <implements name="org.apache.hadoop.io.Writable"/>
  8083. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  8084. static="false" final="false" visibility="public"
  8085. deprecated="not deprecated">
  8086. <doc>
  8087. <![CDATA[Construct by the given {@link FsAction}.
  8088. @param u user action
  8089. @param g group action
  8090. @param o other action]]>
  8091. </doc>
  8092. </constructor>
  8093. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  8094. static="false" final="false" visibility="public"
  8095. deprecated="not deprecated">
  8096. </constructor>
  8097. <constructor name="FsPermission" type="short"
  8098. static="false" final="false" visibility="public"
  8099. deprecated="not deprecated">
  8100. <doc>
  8101. <![CDATA[Construct by the given mode.
  8102. @param mode
  8103. @see #toShort()]]>
  8104. </doc>
  8105. </constructor>
  8106. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  8107. static="false" final="false" visibility="public"
  8108. deprecated="not deprecated">
  8109. <doc>
  8110. <![CDATA[Copy constructor
  8111. @param other other permission]]>
  8112. </doc>
  8113. </constructor>
  8114. <constructor name="FsPermission" type="java.lang.String"
  8115. static="false" final="false" visibility="public"
  8116. deprecated="not deprecated">
  8117. <doc>
  8118. <![CDATA[Construct by given mode, either in octal or symbolic format.
  8119. @param mode mode as a string, either in octal or symbolic format
  8120. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  8121. </doc>
  8122. </constructor>
  8123. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  8124. abstract="false" native="false" synchronized="false"
  8125. static="true" final="false" visibility="public"
  8126. deprecated="not deprecated">
  8127. <param name="permission" type="short"/>
  8128. <doc>
  8129. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  8130. </doc>
  8131. </method>
  8132. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  8133. abstract="false" native="false" synchronized="false"
  8134. static="false" final="false" visibility="public"
  8135. deprecated="not deprecated">
  8136. <doc>
  8137. <![CDATA[Return user {@link FsAction}.]]>
  8138. </doc>
  8139. </method>
  8140. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  8141. abstract="false" native="false" synchronized="false"
  8142. static="false" final="false" visibility="public"
  8143. deprecated="not deprecated">
  8144. <doc>
  8145. <![CDATA[Return group {@link FsAction}.]]>
  8146. </doc>
  8147. </method>
  8148. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  8149. abstract="false" native="false" synchronized="false"
  8150. static="false" final="false" visibility="public"
  8151. deprecated="not deprecated">
  8152. <doc>
  8153. <![CDATA[Return other {@link FsAction}.]]>
  8154. </doc>
  8155. </method>
  8156. <method name="fromShort"
  8157. abstract="false" native="false" synchronized="false"
  8158. static="false" final="false" visibility="public"
  8159. deprecated="not deprecated">
  8160. <param name="n" type="short"/>
  8161. </method>
  8162. <method name="write"
  8163. abstract="false" native="false" synchronized="false"
  8164. static="false" final="false" visibility="public"
  8165. deprecated="not deprecated">
  8166. <param name="out" type="java.io.DataOutput"/>
  8167. <exception name="IOException" type="java.io.IOException"/>
  8168. <doc>
  8169. <![CDATA[{@inheritDoc}]]>
  8170. </doc>
  8171. </method>
  8172. <method name="readFields"
  8173. abstract="false" native="false" synchronized="false"
  8174. static="false" final="false" visibility="public"
  8175. deprecated="not deprecated">
  8176. <param name="in" type="java.io.DataInput"/>
  8177. <exception name="IOException" type="java.io.IOException"/>
  8178. <doc>
  8179. <![CDATA[{@inheritDoc}]]>
  8180. </doc>
  8181. </method>
  8182. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  8183. abstract="false" native="false" synchronized="false"
  8184. static="true" final="false" visibility="public"
  8185. deprecated="not deprecated">
  8186. <param name="in" type="java.io.DataInput"/>
  8187. <exception name="IOException" type="java.io.IOException"/>
  8188. <doc>
  8189. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  8190. </doc>
  8191. </method>
  8192. <method name="toShort" return="short"
  8193. abstract="false" native="false" synchronized="false"
  8194. static="false" final="false" visibility="public"
  8195. deprecated="not deprecated">
  8196. <doc>
  8197. <![CDATA[Encode the object to a short.]]>
  8198. </doc>
  8199. </method>
  8200. <method name="equals" return="boolean"
  8201. abstract="false" native="false" synchronized="false"
  8202. static="false" final="false" visibility="public"
  8203. deprecated="not deprecated">
  8204. <param name="obj" type="java.lang.Object"/>
  8205. <doc>
  8206. <![CDATA[{@inheritDoc}]]>
  8207. </doc>
  8208. </method>
  8209. <method name="hashCode" return="int"
  8210. abstract="false" native="false" synchronized="false"
  8211. static="false" final="false" visibility="public"
  8212. deprecated="not deprecated">
  8213. <doc>
  8214. <![CDATA[{@inheritDoc}]]>
  8215. </doc>
  8216. </method>
  8217. <method name="toString" return="java.lang.String"
  8218. abstract="false" native="false" synchronized="false"
  8219. static="false" final="false" visibility="public"
  8220. deprecated="not deprecated">
  8221. <doc>
  8222. <![CDATA[{@inheritDoc}]]>
  8223. </doc>
  8224. </method>
  8225. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  8226. abstract="false" native="false" synchronized="false"
  8227. static="false" final="false" visibility="public"
  8228. deprecated="not deprecated">
  8229. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8230. <doc>
  8231. <![CDATA[Apply a umask to this permission and return a new one]]>
  8232. </doc>
  8233. </method>
  8234. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  8235. abstract="false" native="false" synchronized="false"
  8236. static="true" final="false" visibility="public"
  8237. deprecated="not deprecated">
  8238. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8239. <doc>
  8240. <![CDATA[Get the user file creation mask (umask)
  8241. {@code UMASK_LABEL} config param has umask value that is either symbolic
  8242. or octal.
  8243. Symbolic umask is applied relative to file mode creation mask;
  8244. the permission op characters '+' clears the corresponding bit in the mask,
  8245. '-' sets bits in the mask.
  8246. Octal umask, the specified bits are set in the file mode creation mask.
  8247. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  8248. </doc>
  8249. </method>
  8250. <method name="getStickyBit" return="boolean"
  8251. abstract="false" native="false" synchronized="false"
  8252. static="false" final="false" visibility="public"
  8253. deprecated="not deprecated">
  8254. </method>
  8255. <method name="setUMask"
  8256. abstract="false" native="false" synchronized="false"
  8257. static="true" final="false" visibility="public"
  8258. deprecated="not deprecated">
  8259. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8260. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8261. <doc>
  8262. <![CDATA[Set the user file creation mask (umask)]]>
  8263. </doc>
  8264. </method>
  8265. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  8266. abstract="false" native="false" synchronized="false"
  8267. static="true" final="false" visibility="public"
  8268. deprecated="not deprecated">
  8269. <doc>
  8270. <![CDATA[Get the default permission.]]>
  8271. </doc>
  8272. </method>
  8273. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  8274. abstract="false" native="false" synchronized="false"
  8275. static="true" final="false" visibility="public"
  8276. deprecated="not deprecated">
  8277. <param name="unixSymbolicPermission" type="java.lang.String"/>
  8278. <doc>
  8279. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  8280. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  8281. </doc>
  8282. </method>
  8283. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  8284. transient="false" volatile="false"
  8285. static="true" final="true" visibility="public"
  8286. deprecated="not deprecated">
  8287. <doc>
  8288. <![CDATA[umask property label deprecated key and code in getUMask method
  8289. to accommodate it may be removed in version .23]]>
  8290. </doc>
  8291. </field>
  8292. <field name="UMASK_LABEL" type="java.lang.String"
  8293. transient="false" volatile="false"
  8294. static="true" final="true" visibility="public"
  8295. deprecated="not deprecated">
  8296. </field>
  8297. <field name="DEFAULT_UMASK" type="int"
  8298. transient="false" volatile="false"
  8299. static="true" final="true" visibility="public"
  8300. deprecated="not deprecated">
  8301. </field>
  8302. <doc>
  8303. <![CDATA[A class for file/directory permissions.]]>
  8304. </doc>
  8305. </class>
  8306. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  8307. </package>
  8308. <package name="org.apache.hadoop.fs.s3">
  8309. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8310. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8311. abstract="false"
  8312. static="false" final="false" visibility="public"
  8313. deprecated="not deprecated">
  8314. <implements name="org.apache.hadoop.util.Tool"/>
  8315. <constructor name="MigrationTool"
  8316. static="false" final="false" visibility="public"
  8317. deprecated="not deprecated">
  8318. </constructor>
  8319. <method name="main"
  8320. abstract="false" native="false" synchronized="false"
  8321. static="true" final="false" visibility="public"
  8322. deprecated="not deprecated">
  8323. <param name="args" type="java.lang.String[]"/>
  8324. <exception name="Exception" type="java.lang.Exception"/>
  8325. </method>
  8326. <method name="run" return="int"
  8327. abstract="false" native="false" synchronized="false"
  8328. static="false" final="false" visibility="public"
  8329. deprecated="not deprecated">
  8330. <param name="args" type="java.lang.String[]"/>
  8331. <exception name="Exception" type="java.lang.Exception"/>
  8332. </method>
  8333. <method name="initialize"
  8334. abstract="false" native="false" synchronized="false"
  8335. static="false" final="false" visibility="public"
  8336. deprecated="not deprecated">
  8337. <param name="uri" type="java.net.URI"/>
  8338. <exception name="IOException" type="java.io.IOException"/>
  8339. </method>
  8340. <doc>
  8341. <![CDATA[<p>
  8342. This class is a tool for migrating data from an older to a newer version
  8343. of an S3 filesystem.
  8344. </p>
  8345. <p>
  8346. All files in the filesystem are migrated by re-writing the block metadata
  8347. - no datafiles are touched.
  8348. </p>]]>
  8349. </doc>
  8350. </class>
  8351. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8352. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8353. <class name="S3Exception" extends="java.io.IOException"
  8354. abstract="false"
  8355. static="false" final="false" visibility="public"
  8356. deprecated="not deprecated">
  8357. <constructor name="S3Exception" type="java.lang.Throwable"
  8358. static="false" final="false" visibility="public"
  8359. deprecated="not deprecated">
  8360. </constructor>
  8361. <doc>
  8362. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8363. </doc>
  8364. </class>
  8365. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8366. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8367. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8368. abstract="false"
  8369. static="false" final="false" visibility="public"
  8370. deprecated="not deprecated">
  8371. <constructor name="S3FileSystem"
  8372. static="false" final="false" visibility="public"
  8373. deprecated="not deprecated">
  8374. </constructor>
  8375. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8376. static="false" final="false" visibility="public"
  8377. deprecated="not deprecated">
  8378. </constructor>
  8379. <method name="getUri" return="java.net.URI"
  8380. abstract="false" native="false" synchronized="false"
  8381. static="false" final="false" visibility="public"
  8382. deprecated="not deprecated">
  8383. </method>
  8384. <method name="initialize"
  8385. abstract="false" native="false" synchronized="false"
  8386. static="false" final="false" visibility="public"
  8387. deprecated="not deprecated">
  8388. <param name="uri" type="java.net.URI"/>
  8389. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8390. <exception name="IOException" type="java.io.IOException"/>
  8391. </method>
  8392. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8393. abstract="false" native="false" synchronized="false"
  8394. static="false" final="false" visibility="public"
  8395. deprecated="not deprecated">
  8396. </method>
  8397. <method name="setWorkingDirectory"
  8398. abstract="false" native="false" synchronized="false"
  8399. static="false" final="false" visibility="public"
  8400. deprecated="not deprecated">
  8401. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8402. </method>
  8403. <method name="mkdirs" return="boolean"
  8404. abstract="false" native="false" synchronized="false"
  8405. static="false" final="false" visibility="public"
  8406. deprecated="not deprecated">
  8407. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8408. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8409. <exception name="IOException" type="java.io.IOException"/>
  8410. <doc>
  8411. <![CDATA[@param permission Currently ignored.]]>
  8412. </doc>
  8413. </method>
  8414. <method name="isFile" return="boolean"
  8415. abstract="false" native="false" synchronized="false"
  8416. static="false" final="false" visibility="public"
  8417. deprecated="not deprecated">
  8418. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8419. <exception name="IOException" type="java.io.IOException"/>
  8420. </method>
  8421. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8422. abstract="false" native="false" synchronized="false"
  8423. static="false" final="false" visibility="public"
  8424. deprecated="not deprecated">
  8425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8426. <exception name="IOException" type="java.io.IOException"/>
  8427. </method>
  8428. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8429. abstract="false" native="false" synchronized="false"
  8430. static="false" final="false" visibility="public"
  8431. deprecated="not deprecated">
  8432. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8433. <param name="bufferSize" type="int"/>
  8434. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8435. <exception name="IOException" type="java.io.IOException"/>
  8436. <doc>
  8437. <![CDATA[This optional operation is not yet supported.]]>
  8438. </doc>
  8439. </method>
  8440. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8441. abstract="false" native="false" synchronized="false"
  8442. static="false" final="false" visibility="public"
  8443. deprecated="not deprecated">
  8444. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8445. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8446. <param name="overwrite" type="boolean"/>
  8447. <param name="bufferSize" type="int"/>
  8448. <param name="replication" type="short"/>
  8449. <param name="blockSize" type="long"/>
  8450. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8451. <exception name="IOException" type="java.io.IOException"/>
  8452. <doc>
  8453. <![CDATA[@param permission Currently ignored.]]>
  8454. </doc>
  8455. </method>
  8456. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8457. abstract="false" native="false" synchronized="false"
  8458. static="false" final="false" visibility="public"
  8459. deprecated="not deprecated">
  8460. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8461. <param name="bufferSize" type="int"/>
  8462. <exception name="IOException" type="java.io.IOException"/>
  8463. </method>
  8464. <method name="rename" return="boolean"
  8465. abstract="false" native="false" synchronized="false"
  8466. static="false" final="false" visibility="public"
  8467. deprecated="not deprecated">
  8468. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8469. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8470. <exception name="IOException" type="java.io.IOException"/>
  8471. </method>
  8472. <method name="delete" return="boolean"
  8473. abstract="false" native="false" synchronized="false"
  8474. static="false" final="false" visibility="public"
  8475. deprecated="not deprecated">
  8476. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8477. <param name="recursive" type="boolean"/>
  8478. <exception name="IOException" type="java.io.IOException"/>
  8479. </method>
  8480. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8481. abstract="false" native="false" synchronized="false"
  8482. static="false" final="false" visibility="public"
  8483. deprecated="not deprecated">
  8484. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8485. <exception name="IOException" type="java.io.IOException"/>
  8486. <doc>
  8487. <![CDATA[FileStatus for S3 file systems.]]>
  8488. </doc>
  8489. </method>
  8490. <method name="getDefaultBlockSize" return="long"
  8491. abstract="false" native="false" synchronized="false"
  8492. static="false" final="false" visibility="public"
  8493. deprecated="not deprecated">
  8494. </method>
  8495. <doc>
  8496. <![CDATA[<p>
  8497. A block-based {@link FileSystem} backed by
  8498. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8499. </p>
  8500. @see NativeS3FileSystem]]>
  8501. </doc>
  8502. </class>
  8503. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8504. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8505. <class name="S3FileSystemException" extends="java.io.IOException"
  8506. abstract="false"
  8507. static="false" final="false" visibility="public"
  8508. deprecated="not deprecated">
  8509. <constructor name="S3FileSystemException" type="java.lang.String"
  8510. static="false" final="false" visibility="public"
  8511. deprecated="not deprecated">
  8512. </constructor>
  8513. <doc>
  8514. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8515. </doc>
  8516. </class>
  8517. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8518. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8519. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8520. abstract="false"
  8521. static="false" final="false" visibility="public"
  8522. deprecated="not deprecated">
  8523. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8524. static="false" final="false" visibility="public"
  8525. deprecated="not deprecated">
  8526. </constructor>
  8527. <doc>
  8528. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8529. in {@link S3FileSystem}.]]>
  8530. </doc>
  8531. </class>
  8532. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8533. <doc>
  8534. <![CDATA[<p>A distributed, block-based implementation of {@link
  8535. org.apache.hadoop.fs.FileSystem} that uses <a href="http://aws.amazon.com/s3">Amazon S3</a>
  8536. as a backing store.</p>
  8537. <p>
  8538. Files are stored in S3 as blocks (represented by
  8539. {@link org.apache.hadoop.fs.s3.Block}), which have an ID and a length.
  8540. Block metadata is stored in S3 as a small record (represented by
  8541. {@link org.apache.hadoop.fs.s3.INode}) using the URL-encoded
  8542. path string as a key. Inodes record the file type (regular file or directory) and the list of blocks.
  8543. This design makes it easy to seek to any given position in a file by reading the inode data to compute
  8544. which block to access, then using S3's support for
  8545. <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2">HTTP Range</a> headers
  8546. to start streaming from the correct position.
  8547. Renames are also efficient since only the inode is moved (by a DELETE followed by a PUT since
  8548. S3 does not support renames).
  8549. </p>
  8550. <p>
  8551. For a single file <i>/dir1/file1</i> which takes two blocks of storage, the file structure in S3
  8552. would be something like this:
  8553. </p>
  8554. <pre>
  8555. /
  8556. /dir1
  8557. /dir1/file1
  8558. block-6415776850131549260
  8559. block-3026438247347758425
  8560. </pre>
  8561. <p>
  8562. Inodes start with a leading <code>/</code>, while blocks are prefixed with <code>block-</code>.
  8563. </p>]]>
  8564. </doc>
  8565. </package>
  8566. <package name="org.apache.hadoop.fs.s3native">
  8567. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8568. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8569. abstract="false"
  8570. static="false" final="false" visibility="public"
  8571. deprecated="not deprecated">
  8572. <constructor name="NativeS3FileSystem"
  8573. static="false" final="false" visibility="public"
  8574. deprecated="not deprecated">
  8575. </constructor>
  8576. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8577. static="false" final="false" visibility="public"
  8578. deprecated="not deprecated">
  8579. </constructor>
  8580. <method name="initialize"
  8581. abstract="false" native="false" synchronized="false"
  8582. static="false" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="uri" type="java.net.URI"/>
  8585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8586. <exception name="IOException" type="java.io.IOException"/>
  8587. </method>
  8588. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8589. abstract="false" native="false" synchronized="false"
  8590. static="false" final="false" visibility="public"
  8591. deprecated="not deprecated">
  8592. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8593. <param name="bufferSize" type="int"/>
  8594. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8595. <exception name="IOException" type="java.io.IOException"/>
  8596. <doc>
  8597. <![CDATA[This optional operation is not yet supported.]]>
  8598. </doc>
  8599. </method>
  8600. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8601. abstract="false" native="false" synchronized="false"
  8602. static="false" final="false" visibility="public"
  8603. deprecated="not deprecated">
  8604. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8605. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8606. <param name="overwrite" type="boolean"/>
  8607. <param name="bufferSize" type="int"/>
  8608. <param name="replication" type="short"/>
  8609. <param name="blockSize" type="long"/>
  8610. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8611. <exception name="IOException" type="java.io.IOException"/>
  8612. </method>
  8613. <method name="delete" return="boolean"
  8614. abstract="false" native="false" synchronized="false"
  8615. static="false" final="false" visibility="public"
  8616. deprecated="not deprecated">
  8617. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8618. <param name="recurse" type="boolean"/>
  8619. <exception name="IOException" type="java.io.IOException"/>
  8620. </method>
  8621. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8622. abstract="false" native="false" synchronized="false"
  8623. static="false" final="false" visibility="public"
  8624. deprecated="not deprecated">
  8625. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8626. <exception name="IOException" type="java.io.IOException"/>
  8627. </method>
  8628. <method name="getUri" return="java.net.URI"
  8629. abstract="false" native="false" synchronized="false"
  8630. static="false" final="false" visibility="public"
  8631. deprecated="not deprecated">
  8632. </method>
  8633. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8634. abstract="false" native="false" synchronized="false"
  8635. static="false" final="false" visibility="public"
  8636. deprecated="not deprecated">
  8637. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8638. <exception name="IOException" type="java.io.IOException"/>
  8639. <doc>
  8640. <![CDATA[<p>
  8641. If <code>f</code> is a file, this method will make a single call to S3.
  8642. If <code>f</code> is a directory, this method will make a maximum of
  8643. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8644. files and directories contained directly in <code>f</code>.
  8645. </p>]]>
  8646. </doc>
  8647. </method>
  8648. <method name="mkdirs" return="boolean"
  8649. abstract="false" native="false" synchronized="false"
  8650. static="false" final="false" visibility="public"
  8651. deprecated="not deprecated">
  8652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8653. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8654. <exception name="IOException" type="java.io.IOException"/>
  8655. </method>
  8656. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8657. abstract="false" native="false" synchronized="false"
  8658. static="false" final="false" visibility="public"
  8659. deprecated="not deprecated">
  8660. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8661. <param name="bufferSize" type="int"/>
  8662. <exception name="IOException" type="java.io.IOException"/>
  8663. </method>
  8664. <method name="rename" return="boolean"
  8665. abstract="false" native="false" synchronized="false"
  8666. static="false" final="false" visibility="public"
  8667. deprecated="not deprecated">
  8668. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8669. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8670. <exception name="IOException" type="java.io.IOException"/>
  8671. </method>
  8672. <method name="getDefaultBlockSize" return="long"
  8673. abstract="false" native="false" synchronized="false"
  8674. static="false" final="false" visibility="public"
  8675. deprecated="not deprecated">
  8676. </method>
  8677. <method name="setWorkingDirectory"
  8678. abstract="false" native="false" synchronized="false"
  8679. static="false" final="false" visibility="public"
  8680. deprecated="not deprecated">
  8681. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8682. <doc>
  8683. <![CDATA[Set the working directory to the given directory.]]>
  8684. </doc>
  8685. </method>
  8686. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8687. abstract="false" native="false" synchronized="false"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. </method>
  8691. <field name="LOG" type="org.apache.commons.logging.Log"
  8692. transient="false" volatile="false"
  8693. static="true" final="true" visibility="public"
  8694. deprecated="not deprecated">
  8695. </field>
  8696. <doc>
  8697. <![CDATA[<p>
  8698. A {@link FileSystem} for reading and writing files stored on
  8699. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8700. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8701. stores files on S3 in their
  8702. native form so they can be read by other S3 tools.
  8703. A note about directories. S3 of course has no "native" support for them.
  8704. The idiom we choose then is: for any directory created by this class,
  8705. we use an empty object "#{dirpath}_$folder$" as a marker.
  8706. Further, to interoperate with other S3 tools, we also accept the following:
  8707. - an object "#{dirpath}/' denoting a directory marker
  8708. - if there exists any objects with the prefix "#{dirpath}/", then the
  8709. directory is said to exist
  8710. - if both a file with the name of a directory and a marker for that
  8711. directory exists, then the *file masks the directory*, and the directory
  8712. is never returned.
  8713. </p>
  8714. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8715. </doc>
  8716. </class>
  8717. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8718. <doc>
  8719. <![CDATA[<p>
  8720. A distributed implementation of {@link
  8721. org.apache.hadoop.fs.FileSystem} for reading and writing files on
  8722. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8723. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem}, which is block-based,
  8724. this implementation stores
  8725. files on S3 in their native form for interoperability with other S3 tools.
  8726. </p>]]>
  8727. </doc>
  8728. </package>
  8729. <package name="org.apache.hadoop.io">
  8730. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  8731. <class name="AbstractMapWritable" extends="java.lang.Object"
  8732. abstract="true"
  8733. static="false" final="false" visibility="public"
  8734. deprecated="not deprecated">
  8735. <implements name="org.apache.hadoop.io.Writable"/>
  8736. <implements name="org.apache.hadoop.conf.Configurable"/>
  8737. <constructor name="AbstractMapWritable"
  8738. static="false" final="false" visibility="protected"
  8739. deprecated="not deprecated">
  8740. <doc>
  8741. <![CDATA[constructor.]]>
  8742. </doc>
  8743. </constructor>
  8744. <method name="addToMap"
  8745. abstract="false" native="false" synchronized="true"
  8746. static="false" final="false" visibility="protected"
  8747. deprecated="not deprecated">
  8748. <param name="clazz" type="java.lang.Class"/>
  8749. <doc>
  8750. <![CDATA[Add a Class to the maps if it is not already present.]]>
  8751. </doc>
  8752. </method>
  8753. <method name="getClass" return="java.lang.Class"
  8754. abstract="false" native="false" synchronized="false"
  8755. static="false" final="false" visibility="protected"
  8756. deprecated="not deprecated">
  8757. <param name="id" type="byte"/>
  8758. <doc>
  8759. <![CDATA[@return the Class class for the specified id]]>
  8760. </doc>
  8761. </method>
  8762. <method name="getId" return="byte"
  8763. abstract="false" native="false" synchronized="false"
  8764. static="false" final="false" visibility="protected"
  8765. deprecated="not deprecated">
  8766. <param name="clazz" type="java.lang.Class"/>
  8767. <doc>
  8768. <![CDATA[@return the id for the specified Class]]>
  8769. </doc>
  8770. </method>
  8771. <method name="copy"
  8772. abstract="false" native="false" synchronized="true"
  8773. static="false" final="false" visibility="protected"
  8774. deprecated="not deprecated">
  8775. <param name="other" type="org.apache.hadoop.io.Writable"/>
  8776. <doc>
  8777. <![CDATA[Used by child copy constructors.]]>
  8778. </doc>
  8779. </method>
  8780. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  8781. abstract="false" native="false" synchronized="false"
  8782. static="false" final="false" visibility="public"
  8783. deprecated="not deprecated">
  8784. <doc>
  8785. <![CDATA[@return the conf]]>
  8786. </doc>
  8787. </method>
  8788. <method name="setConf"
  8789. abstract="false" native="false" synchronized="false"
  8790. static="false" final="false" visibility="public"
  8791. deprecated="not deprecated">
  8792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8793. <doc>
  8794. <![CDATA[@param conf the conf to set]]>
  8795. </doc>
  8796. </method>
  8797. <method name="write"
  8798. abstract="false" native="false" synchronized="false"
  8799. static="false" final="false" visibility="public"
  8800. deprecated="not deprecated">
  8801. <param name="out" type="java.io.DataOutput"/>
  8802. <exception name="IOException" type="java.io.IOException"/>
  8803. <doc>
  8804. <![CDATA[{@inheritDoc}]]>
  8805. </doc>
  8806. </method>
  8807. <method name="readFields"
  8808. abstract="false" native="false" synchronized="false"
  8809. static="false" final="false" visibility="public"
  8810. deprecated="not deprecated">
  8811. <param name="in" type="java.io.DataInput"/>
  8812. <exception name="IOException" type="java.io.IOException"/>
  8813. <doc>
  8814. <![CDATA[{@inheritDoc}]]>
  8815. </doc>
  8816. </method>
  8817. <doc>
  8818. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  8819. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  8820. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  8821. maps travel with the class instead of being static.
  8822. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  8823. in any specific map instance.]]>
  8824. </doc>
  8825. </class>
  8826. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  8827. <!-- start class org.apache.hadoop.io.ArrayFile -->
  8828. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  8829. abstract="false"
  8830. static="false" final="false" visibility="public"
  8831. deprecated="not deprecated">
  8832. <constructor name="ArrayFile"
  8833. static="false" final="false" visibility="protected"
  8834. deprecated="not deprecated">
  8835. </constructor>
  8836. <doc>
  8837. <![CDATA[A dense file-based mapping from integers to values.]]>
  8838. </doc>
  8839. </class>
  8840. <!-- end class org.apache.hadoop.io.ArrayFile -->
  8841. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  8842. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  8843. abstract="false"
  8844. static="true" final="false" visibility="public"
  8845. deprecated="not deprecated">
  8846. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  8847. static="false" final="false" visibility="public"
  8848. deprecated="not deprecated">
  8849. <exception name="IOException" type="java.io.IOException"/>
  8850. <doc>
  8851. <![CDATA[Construct an array reader for the named file.]]>
  8852. </doc>
  8853. </constructor>
  8854. <method name="seek"
  8855. abstract="false" native="false" synchronized="true"
  8856. static="false" final="false" visibility="public"
  8857. deprecated="not deprecated">
  8858. <param name="n" type="long"/>
  8859. <exception name="IOException" type="java.io.IOException"/>
  8860. <doc>
  8861. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  8862. </doc>
  8863. </method>
  8864. <method name="next" return="org.apache.hadoop.io.Writable"
  8865. abstract="false" native="false" synchronized="true"
  8866. static="false" final="false" visibility="public"
  8867. deprecated="not deprecated">
  8868. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8869. <exception name="IOException" type="java.io.IOException"/>
  8870. <doc>
  8871. <![CDATA[Read and return the next value in the file.]]>
  8872. </doc>
  8873. </method>
  8874. <method name="key" return="long"
  8875. abstract="false" native="false" synchronized="true"
  8876. static="false" final="false" visibility="public"
  8877. deprecated="not deprecated">
  8878. <exception name="IOException" type="java.io.IOException"/>
  8879. <doc>
  8880. <![CDATA[Returns the key associated with the most recent call to {@link
  8881. #seek(long)}, {@link #next(Writable)}, or {@link
  8882. #get(long,Writable)}.]]>
  8883. </doc>
  8884. </method>
  8885. <method name="get" return="org.apache.hadoop.io.Writable"
  8886. abstract="false" native="false" synchronized="true"
  8887. static="false" final="false" visibility="public"
  8888. deprecated="not deprecated">
  8889. <param name="n" type="long"/>
  8890. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8891. <exception name="IOException" type="java.io.IOException"/>
  8892. <doc>
  8893. <![CDATA[Return the <code>n</code>th value in the file.]]>
  8894. </doc>
  8895. </method>
  8896. <doc>
  8897. <![CDATA[Provide access to an existing array file.]]>
  8898. </doc>
  8899. </class>
  8900. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  8901. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  8902. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  8903. abstract="false"
  8904. static="true" final="false" visibility="public"
  8905. deprecated="not deprecated">
  8906. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  8907. static="false" final="false" visibility="public"
  8908. deprecated="not deprecated">
  8909. <exception name="IOException" type="java.io.IOException"/>
  8910. <doc>
  8911. <![CDATA[Create the named file for values of the named class.]]>
  8912. </doc>
  8913. </constructor>
  8914. <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"
  8915. static="false" final="false" visibility="public"
  8916. deprecated="not deprecated">
  8917. <exception name="IOException" type="java.io.IOException"/>
  8918. <doc>
  8919. <![CDATA[Create the named file for values of the named class.]]>
  8920. </doc>
  8921. </constructor>
  8922. <method name="append"
  8923. abstract="false" native="false" synchronized="true"
  8924. static="false" final="false" visibility="public"
  8925. deprecated="not deprecated">
  8926. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8927. <exception name="IOException" type="java.io.IOException"/>
  8928. <doc>
  8929. <![CDATA[Append a value to the file.]]>
  8930. </doc>
  8931. </method>
  8932. <doc>
  8933. <![CDATA[Write a new array file.]]>
  8934. </doc>
  8935. </class>
  8936. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  8937. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  8938. <class name="ArrayWritable" extends="java.lang.Object"
  8939. abstract="false"
  8940. static="false" final="false" visibility="public"
  8941. deprecated="not deprecated">
  8942. <implements name="org.apache.hadoop.io.Writable"/>
  8943. <constructor name="ArrayWritable" type="java.lang.Class"
  8944. static="false" final="false" visibility="public"
  8945. deprecated="not deprecated">
  8946. </constructor>
  8947. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  8948. static="false" final="false" visibility="public"
  8949. deprecated="not deprecated">
  8950. </constructor>
  8951. <constructor name="ArrayWritable" type="java.lang.String[]"
  8952. static="false" final="false" visibility="public"
  8953. deprecated="not deprecated">
  8954. </constructor>
  8955. <method name="getValueClass" return="java.lang.Class"
  8956. abstract="false" native="false" synchronized="false"
  8957. static="false" final="false" visibility="public"
  8958. deprecated="not deprecated">
  8959. </method>
  8960. <method name="toStrings" return="java.lang.String[]"
  8961. abstract="false" native="false" synchronized="false"
  8962. static="false" final="false" visibility="public"
  8963. deprecated="not deprecated">
  8964. </method>
  8965. <method name="toArray" return="java.lang.Object"
  8966. abstract="false" native="false" synchronized="false"
  8967. static="false" final="false" visibility="public"
  8968. deprecated="not deprecated">
  8969. </method>
  8970. <method name="set"
  8971. abstract="false" native="false" synchronized="false"
  8972. static="false" final="false" visibility="public"
  8973. deprecated="not deprecated">
  8974. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  8975. </method>
  8976. <method name="get" return="org.apache.hadoop.io.Writable[]"
  8977. abstract="false" native="false" synchronized="false"
  8978. static="false" final="false" visibility="public"
  8979. deprecated="not deprecated">
  8980. </method>
  8981. <method name="readFields"
  8982. abstract="false" native="false" synchronized="false"
  8983. static="false" final="false" visibility="public"
  8984. deprecated="not deprecated">
  8985. <param name="in" type="java.io.DataInput"/>
  8986. <exception name="IOException" type="java.io.IOException"/>
  8987. </method>
  8988. <method name="write"
  8989. abstract="false" native="false" synchronized="false"
  8990. static="false" final="false" visibility="public"
  8991. deprecated="not deprecated">
  8992. <param name="out" type="java.io.DataOutput"/>
  8993. <exception name="IOException" type="java.io.IOException"/>
  8994. </method>
  8995. <doc>
  8996. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  8997. writable must all be instances of the same class. If this writable will be
  8998. the input for a Reducer, you will need to create a subclass that sets the
  8999. value to be of the proper type.
  9000. For example:
  9001. <code>
  9002. public class IntArrayWritable extends ArrayWritable {
  9003. public IntArrayWritable() {
  9004. super(IntWritable.class);
  9005. }
  9006. }
  9007. </code>]]>
  9008. </doc>
  9009. </class>
  9010. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9011. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9012. <class name="BinaryComparable" extends="java.lang.Object"
  9013. abstract="true"
  9014. static="false" final="false" visibility="public"
  9015. deprecated="not deprecated">
  9016. <implements name="java.lang.Comparable"/>
  9017. <constructor name="BinaryComparable"
  9018. static="false" final="false" visibility="public"
  9019. deprecated="not deprecated">
  9020. </constructor>
  9021. <method name="getLength" return="int"
  9022. abstract="true" native="false" synchronized="false"
  9023. static="false" final="false" visibility="public"
  9024. deprecated="not deprecated">
  9025. <doc>
  9026. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9027. </doc>
  9028. </method>
  9029. <method name="getBytes" return="byte[]"
  9030. abstract="true" native="false" synchronized="false"
  9031. static="false" final="false" visibility="public"
  9032. deprecated="not deprecated">
  9033. <doc>
  9034. <![CDATA[Return representative byte array for this instance.]]>
  9035. </doc>
  9036. </method>
  9037. <method name="compareTo" return="int"
  9038. abstract="false" native="false" synchronized="false"
  9039. static="false" final="false" visibility="public"
  9040. deprecated="not deprecated">
  9041. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9042. <doc>
  9043. <![CDATA[Compare bytes from {#getBytes()}.
  9044. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9045. </doc>
  9046. </method>
  9047. <method name="compareTo" return="int"
  9048. abstract="false" native="false" synchronized="false"
  9049. static="false" final="false" visibility="public"
  9050. deprecated="not deprecated">
  9051. <param name="other" type="byte[]"/>
  9052. <param name="off" type="int"/>
  9053. <param name="len" type="int"/>
  9054. <doc>
  9055. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9056. </doc>
  9057. </method>
  9058. <method name="equals" return="boolean"
  9059. abstract="false" native="false" synchronized="false"
  9060. static="false" final="false" visibility="public"
  9061. deprecated="not deprecated">
  9062. <param name="other" type="java.lang.Object"/>
  9063. <doc>
  9064. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9065. </doc>
  9066. </method>
  9067. <method name="hashCode" return="int"
  9068. abstract="false" native="false" synchronized="false"
  9069. static="false" final="false" visibility="public"
  9070. deprecated="not deprecated">
  9071. <doc>
  9072. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9073. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9074. </doc>
  9075. </method>
  9076. <doc>
  9077. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9078. types supporting ordering/permutation by a representative set of bytes.]]>
  9079. </doc>
  9080. </class>
  9081. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9082. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9083. <class name="BloomMapFile" extends="java.lang.Object"
  9084. abstract="false"
  9085. static="false" final="false" visibility="public"
  9086. deprecated="not deprecated">
  9087. <constructor name="BloomMapFile"
  9088. static="false" final="false" visibility="public"
  9089. deprecated="not deprecated">
  9090. </constructor>
  9091. <method name="delete"
  9092. abstract="false" native="false" synchronized="false"
  9093. static="true" final="false" visibility="public"
  9094. deprecated="not deprecated">
  9095. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9096. <param name="name" type="java.lang.String"/>
  9097. <exception name="IOException" type="java.io.IOException"/>
  9098. </method>
  9099. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9100. transient="false" volatile="false"
  9101. static="true" final="true" visibility="public"
  9102. deprecated="not deprecated">
  9103. </field>
  9104. <field name="HASH_COUNT" type="int"
  9105. transient="false" volatile="false"
  9106. static="true" final="true" visibility="public"
  9107. deprecated="not deprecated">
  9108. </field>
  9109. <doc>
  9110. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9111. functionality. However, it uses dynamic Bloom filters to provide
  9112. quick membership test for keys, and it offers a fast version of
  9113. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9114. case of sparsely populated MapFile-s.]]>
  9115. </doc>
  9116. </class>
  9117. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9118. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9119. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9120. abstract="false"
  9121. static="true" final="false" visibility="public"
  9122. deprecated="not deprecated">
  9123. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9124. static="false" final="false" visibility="public"
  9125. deprecated="not deprecated">
  9126. <exception name="IOException" type="java.io.IOException"/>
  9127. </constructor>
  9128. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9129. static="false" final="false" visibility="public"
  9130. deprecated="not deprecated">
  9131. <exception name="IOException" type="java.io.IOException"/>
  9132. </constructor>
  9133. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9134. static="false" final="false" visibility="public"
  9135. deprecated="not deprecated">
  9136. <exception name="IOException" type="java.io.IOException"/>
  9137. </constructor>
  9138. <method name="probablyHasKey" return="boolean"
  9139. abstract="false" native="false" synchronized="false"
  9140. static="false" final="false" visibility="public"
  9141. deprecated="not deprecated">
  9142. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9143. <exception name="IOException" type="java.io.IOException"/>
  9144. <doc>
  9145. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9146. performed using a Bloom filter, so the result has always non-zero
  9147. probability of false positives.
  9148. @param key key to check
  9149. @return false iff key doesn't exist, true if key probably exists.
  9150. @throws IOException]]>
  9151. </doc>
  9152. </method>
  9153. <method name="get" return="org.apache.hadoop.io.Writable"
  9154. abstract="false" native="false" synchronized="true"
  9155. static="false" final="false" visibility="public"
  9156. deprecated="not deprecated">
  9157. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9158. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9159. <exception name="IOException" type="java.io.IOException"/>
  9160. <doc>
  9161. <![CDATA[Fast version of the
  9162. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9163. it checks the Bloom filter for the existence of the key, and only if
  9164. present it performs the real get operation. This yields significant
  9165. performance improvements for get operations on sparsely populated files.]]>
  9166. </doc>
  9167. </method>
  9168. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9169. abstract="false" native="false" synchronized="false"
  9170. static="false" final="false" visibility="public"
  9171. deprecated="not deprecated">
  9172. <doc>
  9173. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9174. @return a Bloom filter (see {@link Filter})]]>
  9175. </doc>
  9176. </method>
  9177. </class>
  9178. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9179. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9180. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9181. abstract="false"
  9182. static="true" final="false" visibility="public"
  9183. deprecated="not deprecated">
  9184. <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"
  9185. static="false" final="false" visibility="public"
  9186. deprecated="not deprecated">
  9187. <exception name="IOException" type="java.io.IOException"/>
  9188. </constructor>
  9189. <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"
  9190. static="false" final="false" visibility="public"
  9191. deprecated="not deprecated">
  9192. <exception name="IOException" type="java.io.IOException"/>
  9193. </constructor>
  9194. <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"
  9195. static="false" final="false" visibility="public"
  9196. deprecated="not deprecated">
  9197. <exception name="IOException" type="java.io.IOException"/>
  9198. </constructor>
  9199. <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"
  9200. static="false" final="false" visibility="public"
  9201. deprecated="not deprecated">
  9202. <exception name="IOException" type="java.io.IOException"/>
  9203. </constructor>
  9204. <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"
  9205. static="false" final="false" visibility="public"
  9206. deprecated="not deprecated">
  9207. <exception name="IOException" type="java.io.IOException"/>
  9208. </constructor>
  9209. <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"
  9210. static="false" final="false" visibility="public"
  9211. deprecated="not deprecated">
  9212. <exception name="IOException" type="java.io.IOException"/>
  9213. </constructor>
  9214. <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"
  9215. static="false" final="false" visibility="public"
  9216. deprecated="not deprecated">
  9217. <exception name="IOException" type="java.io.IOException"/>
  9218. </constructor>
  9219. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9220. static="false" final="false" visibility="public"
  9221. deprecated="not deprecated">
  9222. <exception name="IOException" type="java.io.IOException"/>
  9223. </constructor>
  9224. <method name="append"
  9225. abstract="false" native="false" synchronized="true"
  9226. static="false" final="false" visibility="public"
  9227. deprecated="not deprecated">
  9228. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9229. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9230. <exception name="IOException" type="java.io.IOException"/>
  9231. </method>
  9232. <method name="close"
  9233. abstract="false" native="false" synchronized="true"
  9234. static="false" final="false" visibility="public"
  9235. deprecated="not deprecated">
  9236. <exception name="IOException" type="java.io.IOException"/>
  9237. </method>
  9238. </class>
  9239. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9240. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9241. <class name="BooleanWritable" extends="java.lang.Object"
  9242. abstract="false"
  9243. static="false" final="false" visibility="public"
  9244. deprecated="not deprecated">
  9245. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9246. <constructor name="BooleanWritable"
  9247. static="false" final="false" visibility="public"
  9248. deprecated="not deprecated">
  9249. </constructor>
  9250. <constructor name="BooleanWritable" type="boolean"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. </constructor>
  9254. <method name="set"
  9255. abstract="false" native="false" synchronized="false"
  9256. static="false" final="false" visibility="public"
  9257. deprecated="not deprecated">
  9258. <param name="value" type="boolean"/>
  9259. <doc>
  9260. <![CDATA[Set the value of the BooleanWritable]]>
  9261. </doc>
  9262. </method>
  9263. <method name="get" return="boolean"
  9264. abstract="false" native="false" synchronized="false"
  9265. static="false" final="false" visibility="public"
  9266. deprecated="not deprecated">
  9267. <doc>
  9268. <![CDATA[Returns the value of the BooleanWritable]]>
  9269. </doc>
  9270. </method>
  9271. <method name="readFields"
  9272. abstract="false" native="false" synchronized="false"
  9273. static="false" final="false" visibility="public"
  9274. deprecated="not deprecated">
  9275. <param name="in" type="java.io.DataInput"/>
  9276. <exception name="IOException" type="java.io.IOException"/>
  9277. </method>
  9278. <method name="write"
  9279. abstract="false" native="false" synchronized="false"
  9280. static="false" final="false" visibility="public"
  9281. deprecated="not deprecated">
  9282. <param name="out" type="java.io.DataOutput"/>
  9283. <exception name="IOException" type="java.io.IOException"/>
  9284. </method>
  9285. <method name="equals" return="boolean"
  9286. abstract="false" native="false" synchronized="false"
  9287. static="false" final="false" visibility="public"
  9288. deprecated="not deprecated">
  9289. <param name="o" type="java.lang.Object"/>
  9290. </method>
  9291. <method name="hashCode" return="int"
  9292. abstract="false" native="false" synchronized="false"
  9293. static="false" final="false" visibility="public"
  9294. deprecated="not deprecated">
  9295. </method>
  9296. <method name="compareTo" return="int"
  9297. abstract="false" native="false" synchronized="false"
  9298. static="false" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <param name="o" type="java.lang.Object"/>
  9301. </method>
  9302. <method name="toString" return="java.lang.String"
  9303. abstract="false" native="false" synchronized="false"
  9304. static="false" final="false" visibility="public"
  9305. deprecated="not deprecated">
  9306. </method>
  9307. <doc>
  9308. <![CDATA[A WritableComparable for booleans.]]>
  9309. </doc>
  9310. </class>
  9311. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9312. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9313. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9314. abstract="false"
  9315. static="true" final="false" visibility="public"
  9316. deprecated="not deprecated">
  9317. <constructor name="BooleanWritable.Comparator"
  9318. static="false" final="false" visibility="public"
  9319. deprecated="not deprecated">
  9320. </constructor>
  9321. <method name="compare" return="int"
  9322. abstract="false" native="false" synchronized="false"
  9323. static="false" final="false" visibility="public"
  9324. deprecated="not deprecated">
  9325. <param name="b1" type="byte[]"/>
  9326. <param name="s1" type="int"/>
  9327. <param name="l1" type="int"/>
  9328. <param name="b2" type="byte[]"/>
  9329. <param name="s2" type="int"/>
  9330. <param name="l2" type="int"/>
  9331. </method>
  9332. <doc>
  9333. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9334. </doc>
  9335. </class>
  9336. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9337. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9338. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9339. abstract="false"
  9340. static="false" final="false" visibility="public"
  9341. deprecated="not deprecated">
  9342. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9343. <constructor name="BytesWritable"
  9344. static="false" final="false" visibility="public"
  9345. deprecated="not deprecated">
  9346. <doc>
  9347. <![CDATA[Create a zero-size sequence.]]>
  9348. </doc>
  9349. </constructor>
  9350. <constructor name="BytesWritable" type="byte[]"
  9351. static="false" final="false" visibility="public"
  9352. deprecated="not deprecated">
  9353. <doc>
  9354. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9355. @param bytes This array becomes the backing storage for the object.]]>
  9356. </doc>
  9357. </constructor>
  9358. <method name="getBytes" return="byte[]"
  9359. abstract="false" native="false" synchronized="false"
  9360. static="false" final="false" visibility="public"
  9361. deprecated="not deprecated">
  9362. <doc>
  9363. <![CDATA[Get the data from the BytesWritable.
  9364. @return The data is only valid between 0 and getLength() - 1.]]>
  9365. </doc>
  9366. </method>
  9367. <method name="get" return="byte[]"
  9368. abstract="false" native="false" synchronized="false"
  9369. static="false" final="false" visibility="public"
  9370. deprecated="Use {@link #getBytes()} instead.">
  9371. <doc>
  9372. <![CDATA[Get the data from the BytesWritable.
  9373. @deprecated Use {@link #getBytes()} instead.]]>
  9374. </doc>
  9375. </method>
  9376. <method name="getLength" return="int"
  9377. abstract="false" native="false" synchronized="false"
  9378. static="false" final="false" visibility="public"
  9379. deprecated="not deprecated">
  9380. <doc>
  9381. <![CDATA[Get the current size of the buffer.]]>
  9382. </doc>
  9383. </method>
  9384. <method name="getSize" return="int"
  9385. abstract="false" native="false" synchronized="false"
  9386. static="false" final="false" visibility="public"
  9387. deprecated="Use {@link #getLength()} instead.">
  9388. <doc>
  9389. <![CDATA[Get the current size of the buffer.
  9390. @deprecated Use {@link #getLength()} instead.]]>
  9391. </doc>
  9392. </method>
  9393. <method name="setSize"
  9394. abstract="false" native="false" synchronized="false"
  9395. static="false" final="false" visibility="public"
  9396. deprecated="not deprecated">
  9397. <param name="size" type="int"/>
  9398. <doc>
  9399. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  9400. and any new values are undefined. The capacity is changed if it is
  9401. necessary.
  9402. @param size The new number of bytes]]>
  9403. </doc>
  9404. </method>
  9405. <method name="getCapacity" return="int"
  9406. abstract="false" native="false" synchronized="false"
  9407. static="false" final="false" visibility="public"
  9408. deprecated="not deprecated">
  9409. <doc>
  9410. <![CDATA[Get the capacity, which is the maximum size that could handled without
  9411. resizing the backing storage.
  9412. @return The number of bytes]]>
  9413. </doc>
  9414. </method>
  9415. <method name="setCapacity"
  9416. abstract="false" native="false" synchronized="false"
  9417. static="false" final="false" visibility="public"
  9418. deprecated="not deprecated">
  9419. <param name="new_cap" type="int"/>
  9420. <doc>
  9421. <![CDATA[Change the capacity of the backing storage.
  9422. The data is preserved.
  9423. @param new_cap The new capacity in bytes.]]>
  9424. </doc>
  9425. </method>
  9426. <method name="set"
  9427. abstract="false" native="false" synchronized="false"
  9428. static="false" final="false" visibility="public"
  9429. deprecated="not deprecated">
  9430. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  9431. <doc>
  9432. <![CDATA[Set the BytesWritable to the contents of the given newData.
  9433. @param newData the value to set this BytesWritable to.]]>
  9434. </doc>
  9435. </method>
  9436. <method name="set"
  9437. abstract="false" native="false" synchronized="false"
  9438. static="false" final="false" visibility="public"
  9439. deprecated="not deprecated">
  9440. <param name="newData" type="byte[]"/>
  9441. <param name="offset" type="int"/>
  9442. <param name="length" type="int"/>
  9443. <doc>
  9444. <![CDATA[Set the value to a copy of the given byte range
  9445. @param newData the new values to copy in
  9446. @param offset the offset in newData to start at
  9447. @param length the number of bytes to copy]]>
  9448. </doc>
  9449. </method>
  9450. <method name="readFields"
  9451. abstract="false" native="false" synchronized="false"
  9452. static="false" final="false" visibility="public"
  9453. deprecated="not deprecated">
  9454. <param name="in" type="java.io.DataInput"/>
  9455. <exception name="IOException" type="java.io.IOException"/>
  9456. </method>
  9457. <method name="write"
  9458. abstract="false" native="false" synchronized="false"
  9459. static="false" final="false" visibility="public"
  9460. deprecated="not deprecated">
  9461. <param name="out" type="java.io.DataOutput"/>
  9462. <exception name="IOException" type="java.io.IOException"/>
  9463. </method>
  9464. <method name="hashCode" return="int"
  9465. abstract="false" native="false" synchronized="false"
  9466. static="false" final="false" visibility="public"
  9467. deprecated="not deprecated">
  9468. </method>
  9469. <method name="equals" return="boolean"
  9470. abstract="false" native="false" synchronized="false"
  9471. static="false" final="false" visibility="public"
  9472. deprecated="not deprecated">
  9473. <param name="right_obj" type="java.lang.Object"/>
  9474. <doc>
  9475. <![CDATA[Are the two byte sequences equal?]]>
  9476. </doc>
  9477. </method>
  9478. <method name="toString" return="java.lang.String"
  9479. abstract="false" native="false" synchronized="false"
  9480. static="false" final="false" visibility="public"
  9481. deprecated="not deprecated">
  9482. <doc>
  9483. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  9484. </doc>
  9485. </method>
  9486. <doc>
  9487. <![CDATA[A byte sequence that is usable as a key or value.
  9488. It is resizable and distinguishes between the size of the seqeunce and
  9489. the current capacity. The hash function is the front of the md5 of the
  9490. buffer. The sort order is the same as memcmp.]]>
  9491. </doc>
  9492. </class>
  9493. <!-- end class org.apache.hadoop.io.BytesWritable -->
  9494. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  9495. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9496. abstract="false"
  9497. static="true" final="false" visibility="public"
  9498. deprecated="not deprecated">
  9499. <constructor name="BytesWritable.Comparator"
  9500. static="false" final="false" visibility="public"
  9501. deprecated="not deprecated">
  9502. </constructor>
  9503. <method name="compare" return="int"
  9504. abstract="false" native="false" synchronized="false"
  9505. static="false" final="false" visibility="public"
  9506. deprecated="not deprecated">
  9507. <param name="b1" type="byte[]"/>
  9508. <param name="s1" type="int"/>
  9509. <param name="l1" type="int"/>
  9510. <param name="b2" type="byte[]"/>
  9511. <param name="s2" type="int"/>
  9512. <param name="l2" type="int"/>
  9513. <doc>
  9514. <![CDATA[Compare the buffers in serialized form.]]>
  9515. </doc>
  9516. </method>
  9517. <doc>
  9518. <![CDATA[A Comparator optimized for BytesWritable.]]>
  9519. </doc>
  9520. </class>
  9521. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  9522. <!-- start class org.apache.hadoop.io.ByteWritable -->
  9523. <class name="ByteWritable" extends="java.lang.Object"
  9524. abstract="false"
  9525. static="false" final="false" visibility="public"
  9526. deprecated="not deprecated">
  9527. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9528. <constructor name="ByteWritable"
  9529. static="false" final="false" visibility="public"
  9530. deprecated="not deprecated">
  9531. </constructor>
  9532. <constructor name="ByteWritable" type="byte"
  9533. static="false" final="false" visibility="public"
  9534. deprecated="not deprecated">
  9535. </constructor>
  9536. <method name="set"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="value" type="byte"/>
  9541. <doc>
  9542. <![CDATA[Set the value of this ByteWritable.]]>
  9543. </doc>
  9544. </method>
  9545. <method name="get" return="byte"
  9546. abstract="false" native="false" synchronized="false"
  9547. static="false" final="false" visibility="public"
  9548. deprecated="not deprecated">
  9549. <doc>
  9550. <![CDATA[Return the value of this ByteWritable.]]>
  9551. </doc>
  9552. </method>
  9553. <method name="readFields"
  9554. abstract="false" native="false" synchronized="false"
  9555. static="false" final="false" visibility="public"
  9556. deprecated="not deprecated">
  9557. <param name="in" type="java.io.DataInput"/>
  9558. <exception name="IOException" type="java.io.IOException"/>
  9559. </method>
  9560. <method name="write"
  9561. abstract="false" native="false" synchronized="false"
  9562. static="false" final="false" visibility="public"
  9563. deprecated="not deprecated">
  9564. <param name="out" type="java.io.DataOutput"/>
  9565. <exception name="IOException" type="java.io.IOException"/>
  9566. </method>
  9567. <method name="equals" return="boolean"
  9568. abstract="false" native="false" synchronized="false"
  9569. static="false" final="false" visibility="public"
  9570. deprecated="not deprecated">
  9571. <param name="o" type="java.lang.Object"/>
  9572. <doc>
  9573. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  9574. </doc>
  9575. </method>
  9576. <method name="hashCode" return="int"
  9577. abstract="false" native="false" synchronized="false"
  9578. static="false" final="false" visibility="public"
  9579. deprecated="not deprecated">
  9580. </method>
  9581. <method name="compareTo" return="int"
  9582. abstract="false" native="false" synchronized="false"
  9583. static="false" final="false" visibility="public"
  9584. deprecated="not deprecated">
  9585. <param name="o" type="java.lang.Object"/>
  9586. <doc>
  9587. <![CDATA[Compares two ByteWritables.]]>
  9588. </doc>
  9589. </method>
  9590. <method name="toString" return="java.lang.String"
  9591. abstract="false" native="false" synchronized="false"
  9592. static="false" final="false" visibility="public"
  9593. deprecated="not deprecated">
  9594. </method>
  9595. <doc>
  9596. <![CDATA[A WritableComparable for a single byte.]]>
  9597. </doc>
  9598. </class>
  9599. <!-- end class org.apache.hadoop.io.ByteWritable -->
  9600. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  9601. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9602. abstract="false"
  9603. static="true" final="false" visibility="public"
  9604. deprecated="not deprecated">
  9605. <constructor name="ByteWritable.Comparator"
  9606. static="false" final="false" visibility="public"
  9607. deprecated="not deprecated">
  9608. </constructor>
  9609. <method name="compare" return="int"
  9610. abstract="false" native="false" synchronized="false"
  9611. static="false" final="false" visibility="public"
  9612. deprecated="not deprecated">
  9613. <param name="b1" type="byte[]"/>
  9614. <param name="s1" type="int"/>
  9615. <param name="l1" type="int"/>
  9616. <param name="b2" type="byte[]"/>
  9617. <param name="s2" type="int"/>
  9618. <param name="l2" type="int"/>
  9619. </method>
  9620. <doc>
  9621. <![CDATA[A Comparator optimized for ByteWritable.]]>
  9622. </doc>
  9623. </class>
  9624. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  9625. <!-- start interface org.apache.hadoop.io.Closeable -->
  9626. <interface name="Closeable" abstract="true"
  9627. static="false" final="false" visibility="public"
  9628. deprecated="use java.io.Closeable">
  9629. <implements name="java.io.Closeable"/>
  9630. <doc>
  9631. <![CDATA[@deprecated use java.io.Closeable]]>
  9632. </doc>
  9633. </interface>
  9634. <!-- end interface org.apache.hadoop.io.Closeable -->
  9635. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  9636. <class name="CompressedWritable" extends="java.lang.Object"
  9637. abstract="true"
  9638. static="false" final="false" visibility="public"
  9639. deprecated="not deprecated">
  9640. <implements name="org.apache.hadoop.io.Writable"/>
  9641. <constructor name="CompressedWritable"
  9642. static="false" final="false" visibility="public"
  9643. deprecated="not deprecated">
  9644. </constructor>
  9645. <method name="readFields"
  9646. abstract="false" native="false" synchronized="false"
  9647. static="false" final="true" visibility="public"
  9648. deprecated="not deprecated">
  9649. <param name="in" type="java.io.DataInput"/>
  9650. <exception name="IOException" type="java.io.IOException"/>
  9651. </method>
  9652. <method name="ensureInflated"
  9653. abstract="false" native="false" synchronized="false"
  9654. static="false" final="false" visibility="protected"
  9655. deprecated="not deprecated">
  9656. <doc>
  9657. <![CDATA[Must be called by all methods which access fields to ensure that the data
  9658. has been uncompressed.]]>
  9659. </doc>
  9660. </method>
  9661. <method name="readFieldsCompressed"
  9662. abstract="true" native="false" synchronized="false"
  9663. static="false" final="false" visibility="protected"
  9664. deprecated="not deprecated">
  9665. <param name="in" type="java.io.DataInput"/>
  9666. <exception name="IOException" type="java.io.IOException"/>
  9667. <doc>
  9668. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  9669. </doc>
  9670. </method>
  9671. <method name="write"
  9672. abstract="false" native="false" synchronized="false"
  9673. static="false" final="true" visibility="public"
  9674. deprecated="not deprecated">
  9675. <param name="out" type="java.io.DataOutput"/>
  9676. <exception name="IOException" type="java.io.IOException"/>
  9677. </method>
  9678. <method name="writeCompressed"
  9679. abstract="true" native="false" synchronized="false"
  9680. static="false" final="false" visibility="protected"
  9681. deprecated="not deprecated">
  9682. <param name="out" type="java.io.DataOutput"/>
  9683. <exception name="IOException" type="java.io.IOException"/>
  9684. <doc>
  9685. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  9686. </doc>
  9687. </method>
  9688. <doc>
  9689. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  9690. inflate on field access. This is useful for large objects whose fields are
  9691. not be altered during a map or reduce operation: leaving the field data
  9692. compressed makes copying the instance from one file to another much
  9693. faster.]]>
  9694. </doc>
  9695. </class>
  9696. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  9697. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  9698. <class name="DefaultStringifier" extends="java.lang.Object"
  9699. abstract="false"
  9700. static="false" final="false" visibility="public"
  9701. deprecated="not deprecated">
  9702. <implements name="org.apache.hadoop.io.Stringifier"/>
  9703. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  9704. static="false" final="false" visibility="public"
  9705. deprecated="not deprecated">
  9706. </constructor>
  9707. <method name="fromString" return="T"
  9708. abstract="false" native="false" synchronized="false"
  9709. static="false" final="false" visibility="public"
  9710. deprecated="not deprecated">
  9711. <param name="str" type="java.lang.String"/>
  9712. <exception name="IOException" type="java.io.IOException"/>
  9713. </method>
  9714. <method name="toString" return="java.lang.String"
  9715. abstract="false" native="false" synchronized="false"
  9716. static="false" final="false" visibility="public"
  9717. deprecated="not deprecated">
  9718. <param name="obj" type="T"/>
  9719. <exception name="IOException" type="java.io.IOException"/>
  9720. </method>
  9721. <method name="close"
  9722. abstract="false" native="false" synchronized="false"
  9723. static="false" final="false" visibility="public"
  9724. deprecated="not deprecated">
  9725. <exception name="IOException" type="java.io.IOException"/>
  9726. </method>
  9727. <method name="store"
  9728. abstract="false" native="false" synchronized="false"
  9729. static="true" final="false" visibility="public"
  9730. deprecated="not deprecated">
  9731. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9732. <param name="item" type="K"/>
  9733. <param name="keyName" type="java.lang.String"/>
  9734. <exception name="IOException" type="java.io.IOException"/>
  9735. <doc>
  9736. <![CDATA[Stores the item in the configuration with the given keyName.
  9737. @param <K> the class of the item
  9738. @param conf the configuration to store
  9739. @param item the object to be stored
  9740. @param keyName the name of the key to use
  9741. @throws IOException : forwards Exceptions from the underlying
  9742. {@link Serialization} classes.]]>
  9743. </doc>
  9744. </method>
  9745. <method name="load" return="K"
  9746. abstract="false" native="false" synchronized="false"
  9747. static="true" final="false" visibility="public"
  9748. deprecated="not deprecated">
  9749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9750. <param name="keyName" type="java.lang.String"/>
  9751. <param name="itemClass" type="java.lang.Class"/>
  9752. <exception name="IOException" type="java.io.IOException"/>
  9753. <doc>
  9754. <![CDATA[Restores the object from the configuration.
  9755. @param <K> the class of the item
  9756. @param conf the configuration to use
  9757. @param keyName the name of the key to use
  9758. @param itemClass the class of the item
  9759. @return restored object
  9760. @throws IOException : forwards Exceptions from the underlying
  9761. {@link Serialization} classes.]]>
  9762. </doc>
  9763. </method>
  9764. <method name="storeArray"
  9765. abstract="false" native="false" synchronized="false"
  9766. static="true" final="false" visibility="public"
  9767. deprecated="not deprecated">
  9768. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9769. <param name="items" type="K[]"/>
  9770. <param name="keyName" type="java.lang.String"/>
  9771. <exception name="IOException" type="java.io.IOException"/>
  9772. <doc>
  9773. <![CDATA[Stores the array of items in the configuration with the given keyName.
  9774. @param <K> the class of the item
  9775. @param conf the configuration to use
  9776. @param items the objects to be stored
  9777. @param keyName the name of the key to use
  9778. @throws IndexOutOfBoundsException if the items array is empty
  9779. @throws IOException : forwards Exceptions from the underlying
  9780. {@link Serialization} classes.]]>
  9781. </doc>
  9782. </method>
  9783. <method name="loadArray" return="K[]"
  9784. abstract="false" native="false" synchronized="false"
  9785. static="true" final="false" visibility="public"
  9786. deprecated="not deprecated">
  9787. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9788. <param name="keyName" type="java.lang.String"/>
  9789. <param name="itemClass" type="java.lang.Class"/>
  9790. <exception name="IOException" type="java.io.IOException"/>
  9791. <doc>
  9792. <![CDATA[Restores the array of objects from the configuration.
  9793. @param <K> the class of the item
  9794. @param conf the configuration to use
  9795. @param keyName the name of the key to use
  9796. @param itemClass the class of the item
  9797. @return restored object
  9798. @throws IOException : forwards Exceptions from the underlying
  9799. {@link Serialization} classes.]]>
  9800. </doc>
  9801. </method>
  9802. <doc>
  9803. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  9804. interface which stringifies the objects using base64 encoding of the
  9805. serialized version of the objects. The {@link Serializer} and
  9806. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  9807. <br>
  9808. DefaultStringifier offers convenience methods to store/load objects to/from
  9809. the configuration.
  9810. @param <T> the class of the objects to stringify]]>
  9811. </doc>
  9812. </class>
  9813. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  9814. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  9815. <class name="DoubleWritable" extends="java.lang.Object"
  9816. abstract="false"
  9817. static="false" final="false" visibility="public"
  9818. deprecated="not deprecated">
  9819. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9820. <constructor name="DoubleWritable"
  9821. static="false" final="false" visibility="public"
  9822. deprecated="not deprecated">
  9823. </constructor>
  9824. <constructor name="DoubleWritable" type="double"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. </constructor>
  9828. <method name="readFields"
  9829. abstract="false" native="false" synchronized="false"
  9830. static="false" final="false" visibility="public"
  9831. deprecated="not deprecated">
  9832. <param name="in" type="java.io.DataInput"/>
  9833. <exception name="IOException" type="java.io.IOException"/>
  9834. </method>
  9835. <method name="write"
  9836. abstract="false" native="false" synchronized="false"
  9837. static="false" final="false" visibility="public"
  9838. deprecated="not deprecated">
  9839. <param name="out" type="java.io.DataOutput"/>
  9840. <exception name="IOException" type="java.io.IOException"/>
  9841. </method>
  9842. <method name="set"
  9843. abstract="false" native="false" synchronized="false"
  9844. static="false" final="false" visibility="public"
  9845. deprecated="not deprecated">
  9846. <param name="value" type="double"/>
  9847. </method>
  9848. <method name="get" return="double"
  9849. abstract="false" native="false" synchronized="false"
  9850. static="false" final="false" visibility="public"
  9851. deprecated="not deprecated">
  9852. </method>
  9853. <method name="equals" return="boolean"
  9854. abstract="false" native="false" synchronized="false"
  9855. static="false" final="false" visibility="public"
  9856. deprecated="not deprecated">
  9857. <param name="o" type="java.lang.Object"/>
  9858. <doc>
  9859. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  9860. </doc>
  9861. </method>
  9862. <method name="hashCode" return="int"
  9863. abstract="false" native="false" synchronized="false"
  9864. static="false" final="false" visibility="public"
  9865. deprecated="not deprecated">
  9866. </method>
  9867. <method name="compareTo" return="int"
  9868. abstract="false" native="false" synchronized="false"
  9869. static="false" final="false" visibility="public"
  9870. deprecated="not deprecated">
  9871. <param name="o" type="java.lang.Object"/>
  9872. </method>
  9873. <method name="toString" return="java.lang.String"
  9874. abstract="false" native="false" synchronized="false"
  9875. static="false" final="false" visibility="public"
  9876. deprecated="not deprecated">
  9877. </method>
  9878. <doc>
  9879. <![CDATA[Writable for Double values.]]>
  9880. </doc>
  9881. </class>
  9882. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  9883. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9884. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9885. abstract="false"
  9886. static="true" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. <constructor name="DoubleWritable.Comparator"
  9889. static="false" final="false" visibility="public"
  9890. deprecated="not deprecated">
  9891. </constructor>
  9892. <method name="compare" return="int"
  9893. abstract="false" native="false" synchronized="false"
  9894. static="false" final="false" visibility="public"
  9895. deprecated="not deprecated">
  9896. <param name="b1" type="byte[]"/>
  9897. <param name="s1" type="int"/>
  9898. <param name="l1" type="int"/>
  9899. <param name="b2" type="byte[]"/>
  9900. <param name="s2" type="int"/>
  9901. <param name="l2" type="int"/>
  9902. </method>
  9903. <doc>
  9904. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  9905. </doc>
  9906. </class>
  9907. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9908. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  9909. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  9910. abstract="false"
  9911. static="false" final="false" visibility="public"
  9912. deprecated="not deprecated">
  9913. <implements name="org.apache.hadoop.io.Writable"/>
  9914. <implements name="org.apache.hadoop.conf.Configurable"/>
  9915. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  9916. static="false" final="false" visibility="public"
  9917. deprecated="not deprecated">
  9918. <doc>
  9919. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  9920. its size is zero, the <tt>elementType</tt> argument must not be null. If
  9921. the argument <tt>value</tt>'s size is bigger than zero, the argument
  9922. <tt>elementType</tt> is not be used.
  9923. @param value
  9924. @param elementType]]>
  9925. </doc>
  9926. </constructor>
  9927. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  9928. static="false" final="false" visibility="public"
  9929. deprecated="not deprecated">
  9930. <doc>
  9931. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  9932. or empty.
  9933. @param value]]>
  9934. </doc>
  9935. </constructor>
  9936. <method name="iterator" return="java.util.Iterator"
  9937. abstract="false" native="false" synchronized="false"
  9938. static="false" final="false" visibility="public"
  9939. deprecated="not deprecated">
  9940. </method>
  9941. <method name="size" return="int"
  9942. abstract="false" native="false" synchronized="false"
  9943. static="false" final="false" visibility="public"
  9944. deprecated="not deprecated">
  9945. </method>
  9946. <method name="add" return="boolean"
  9947. abstract="false" native="false" synchronized="false"
  9948. static="false" final="false" visibility="public"
  9949. deprecated="not deprecated">
  9950. <param name="e" type="E"/>
  9951. </method>
  9952. <method name="set"
  9953. abstract="false" native="false" synchronized="false"
  9954. static="false" final="false" visibility="public"
  9955. deprecated="not deprecated">
  9956. <param name="value" type="java.util.EnumSet"/>
  9957. <param name="elementType" type="java.lang.Class"/>
  9958. <doc>
  9959. <![CDATA[reset the EnumSetWritable with specified
  9960. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  9961. is null or its size is zero, the <tt>elementType</tt> argument must not be
  9962. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  9963. argument <tt>elementType</tt> is not be used.
  9964. @param value
  9965. @param elementType]]>
  9966. </doc>
  9967. </method>
  9968. <method name="get" return="java.util.EnumSet"
  9969. abstract="false" native="false" synchronized="false"
  9970. static="false" final="false" visibility="public"
  9971. deprecated="not deprecated">
  9972. <doc>
  9973. <![CDATA[Return the value of this EnumSetWritable.]]>
  9974. </doc>
  9975. </method>
  9976. <method name="readFields"
  9977. abstract="false" native="false" synchronized="false"
  9978. static="false" final="false" visibility="public"
  9979. deprecated="not deprecated">
  9980. <param name="in" type="java.io.DataInput"/>
  9981. <exception name="IOException" type="java.io.IOException"/>
  9982. <doc>
  9983. <![CDATA[{@inheritDoc}]]>
  9984. </doc>
  9985. </method>
  9986. <method name="write"
  9987. abstract="false" native="false" synchronized="false"
  9988. static="false" final="false" visibility="public"
  9989. deprecated="not deprecated">
  9990. <param name="out" type="java.io.DataOutput"/>
  9991. <exception name="IOException" type="java.io.IOException"/>
  9992. <doc>
  9993. <![CDATA[{@inheritDoc}]]>
  9994. </doc>
  9995. </method>
  9996. <method name="equals" return="boolean"
  9997. abstract="false" native="false" synchronized="false"
  9998. static="false" final="false" visibility="public"
  9999. deprecated="not deprecated">
  10000. <param name="o" type="java.lang.Object"/>
  10001. <doc>
  10002. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  10003. or both are null.]]>
  10004. </doc>
  10005. </method>
  10006. <method name="getElementType" return="java.lang.Class"
  10007. abstract="false" native="false" synchronized="false"
  10008. static="false" final="false" visibility="public"
  10009. deprecated="not deprecated">
  10010. <doc>
  10011. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  10012. may return null.
  10013. @return the element class]]>
  10014. </doc>
  10015. </method>
  10016. <method name="hashCode" return="int"
  10017. abstract="false" native="false" synchronized="false"
  10018. static="false" final="false" visibility="public"
  10019. deprecated="not deprecated">
  10020. <doc>
  10021. <![CDATA[{@inheritDoc}]]>
  10022. </doc>
  10023. </method>
  10024. <method name="toString" return="java.lang.String"
  10025. abstract="false" native="false" synchronized="false"
  10026. static="false" final="false" visibility="public"
  10027. deprecated="not deprecated">
  10028. <doc>
  10029. <![CDATA[{@inheritDoc}]]>
  10030. </doc>
  10031. </method>
  10032. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10033. abstract="false" native="false" synchronized="false"
  10034. static="false" final="false" visibility="public"
  10035. deprecated="not deprecated">
  10036. <doc>
  10037. <![CDATA[{@inheritDoc}]]>
  10038. </doc>
  10039. </method>
  10040. <method name="setConf"
  10041. abstract="false" native="false" synchronized="false"
  10042. static="false" final="false" visibility="public"
  10043. deprecated="not deprecated">
  10044. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10045. <doc>
  10046. <![CDATA[{@inheritDoc}]]>
  10047. </doc>
  10048. </method>
  10049. <doc>
  10050. <![CDATA[A Writable wrapper for EnumSet.]]>
  10051. </doc>
  10052. </class>
  10053. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  10054. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10055. <class name="FloatWritable" extends="java.lang.Object"
  10056. abstract="false"
  10057. static="false" final="false" visibility="public"
  10058. deprecated="not deprecated">
  10059. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10060. <constructor name="FloatWritable"
  10061. static="false" final="false" visibility="public"
  10062. deprecated="not deprecated">
  10063. </constructor>
  10064. <constructor name="FloatWritable" type="float"
  10065. static="false" final="false" visibility="public"
  10066. deprecated="not deprecated">
  10067. </constructor>
  10068. <method name="set"
  10069. abstract="false" native="false" synchronized="false"
  10070. static="false" final="false" visibility="public"
  10071. deprecated="not deprecated">
  10072. <param name="value" type="float"/>
  10073. <doc>
  10074. <![CDATA[Set the value of this FloatWritable.]]>
  10075. </doc>
  10076. </method>
  10077. <method name="get" return="float"
  10078. abstract="false" native="false" synchronized="false"
  10079. static="false" final="false" visibility="public"
  10080. deprecated="not deprecated">
  10081. <doc>
  10082. <![CDATA[Return the value of this FloatWritable.]]>
  10083. </doc>
  10084. </method>
  10085. <method name="readFields"
  10086. abstract="false" native="false" synchronized="false"
  10087. static="false" final="false" visibility="public"
  10088. deprecated="not deprecated">
  10089. <param name="in" type="java.io.DataInput"/>
  10090. <exception name="IOException" type="java.io.IOException"/>
  10091. </method>
  10092. <method name="write"
  10093. abstract="false" native="false" synchronized="false"
  10094. static="false" final="false" visibility="public"
  10095. deprecated="not deprecated">
  10096. <param name="out" type="java.io.DataOutput"/>
  10097. <exception name="IOException" type="java.io.IOException"/>
  10098. </method>
  10099. <method name="equals" return="boolean"
  10100. abstract="false" native="false" synchronized="false"
  10101. static="false" final="false" visibility="public"
  10102. deprecated="not deprecated">
  10103. <param name="o" type="java.lang.Object"/>
  10104. <doc>
  10105. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10106. </doc>
  10107. </method>
  10108. <method name="hashCode" return="int"
  10109. abstract="false" native="false" synchronized="false"
  10110. static="false" final="false" visibility="public"
  10111. deprecated="not deprecated">
  10112. </method>
  10113. <method name="compareTo" return="int"
  10114. abstract="false" native="false" synchronized="false"
  10115. static="false" final="false" visibility="public"
  10116. deprecated="not deprecated">
  10117. <param name="o" type="java.lang.Object"/>
  10118. <doc>
  10119. <![CDATA[Compares two FloatWritables.]]>
  10120. </doc>
  10121. </method>
  10122. <method name="toString" return="java.lang.String"
  10123. abstract="false" native="false" synchronized="false"
  10124. static="false" final="false" visibility="public"
  10125. deprecated="not deprecated">
  10126. </method>
  10127. <doc>
  10128. <![CDATA[A WritableComparable for floats.]]>
  10129. </doc>
  10130. </class>
  10131. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10132. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10133. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10134. abstract="false"
  10135. static="true" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. <constructor name="FloatWritable.Comparator"
  10138. static="false" final="false" visibility="public"
  10139. deprecated="not deprecated">
  10140. </constructor>
  10141. <method name="compare" return="int"
  10142. abstract="false" native="false" synchronized="false"
  10143. static="false" final="false" visibility="public"
  10144. deprecated="not deprecated">
  10145. <param name="b1" type="byte[]"/>
  10146. <param name="s1" type="int"/>
  10147. <param name="l1" type="int"/>
  10148. <param name="b2" type="byte[]"/>
  10149. <param name="s2" type="int"/>
  10150. <param name="l2" type="int"/>
  10151. </method>
  10152. <doc>
  10153. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10154. </doc>
  10155. </class>
  10156. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10157. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10158. <class name="GenericWritable" extends="java.lang.Object"
  10159. abstract="true"
  10160. static="false" final="false" visibility="public"
  10161. deprecated="not deprecated">
  10162. <implements name="org.apache.hadoop.io.Writable"/>
  10163. <implements name="org.apache.hadoop.conf.Configurable"/>
  10164. <constructor name="GenericWritable"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. </constructor>
  10168. <method name="set"
  10169. abstract="false" native="false" synchronized="false"
  10170. static="false" final="false" visibility="public"
  10171. deprecated="not deprecated">
  10172. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10173. <doc>
  10174. <![CDATA[Set the instance that is wrapped.
  10175. @param obj]]>
  10176. </doc>
  10177. </method>
  10178. <method name="get" return="org.apache.hadoop.io.Writable"
  10179. abstract="false" native="false" synchronized="false"
  10180. static="false" final="false" visibility="public"
  10181. deprecated="not deprecated">
  10182. <doc>
  10183. <![CDATA[Return the wrapped instance.]]>
  10184. </doc>
  10185. </method>
  10186. <method name="toString" return="java.lang.String"
  10187. abstract="false" native="false" synchronized="false"
  10188. static="false" final="false" visibility="public"
  10189. deprecated="not deprecated">
  10190. </method>
  10191. <method name="readFields"
  10192. abstract="false" native="false" synchronized="false"
  10193. static="false" final="false" visibility="public"
  10194. deprecated="not deprecated">
  10195. <param name="in" type="java.io.DataInput"/>
  10196. <exception name="IOException" type="java.io.IOException"/>
  10197. </method>
  10198. <method name="write"
  10199. abstract="false" native="false" synchronized="false"
  10200. static="false" final="false" visibility="public"
  10201. deprecated="not deprecated">
  10202. <param name="out" type="java.io.DataOutput"/>
  10203. <exception name="IOException" type="java.io.IOException"/>
  10204. </method>
  10205. <method name="getTypes" return="java.lang.Class[]"
  10206. abstract="true" native="false" synchronized="false"
  10207. static="false" final="false" visibility="protected"
  10208. deprecated="not deprecated">
  10209. <doc>
  10210. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10211. to return a constant array of classes.]]>
  10212. </doc>
  10213. </method>
  10214. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10215. abstract="false" native="false" synchronized="false"
  10216. static="false" final="false" visibility="public"
  10217. deprecated="not deprecated">
  10218. </method>
  10219. <method name="setConf"
  10220. abstract="false" native="false" synchronized="false"
  10221. static="false" final="false" visibility="public"
  10222. deprecated="not deprecated">
  10223. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10224. </method>
  10225. <doc>
  10226. <![CDATA[A wrapper for Writable instances.
  10227. <p>
  10228. When two sequence files, which have same Key type but different Value
  10229. types, are mapped out to reduce, multiple Value types is not allowed.
  10230. In this case, this class can help you wrap instances with different types.
  10231. </p>
  10232. <p>
  10233. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10234. because <code>ObjectWritable</code> will append the class declaration as a String
  10235. into the output file in every Key-Value pair.
  10236. </p>
  10237. <p>
  10238. Generic Writable implements {@link Configurable} interface, so that it will be
  10239. configured by the framework. The configuration is passed to the wrapped objects
  10240. implementing {@link Configurable} interface <i>before deserialization</i>.
  10241. </p>
  10242. how to use it: <br>
  10243. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10244. 2. Implements the abstract method <code>getTypes()</code>, defines
  10245. the classes which will be wrapped in GenericObject in application.
  10246. Attention: this classes defined in <code>getTypes()</code> method, must
  10247. implement <code>Writable</code> interface.
  10248. <br><br>
  10249. The code looks like this:
  10250. <blockquote><pre>
  10251. public class GenericObject extends GenericWritable {
  10252. private static Class[] CLASSES = {
  10253. ClassType1.class,
  10254. ClassType2.class,
  10255. ClassType3.class,
  10256. };
  10257. protected Class[] getTypes() {
  10258. return CLASSES;
  10259. }
  10260. }
  10261. </pre></blockquote>
  10262. @since Nov 8, 2006]]>
  10263. </doc>
  10264. </class>
  10265. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10266. <!-- start class org.apache.hadoop.io.IntWritable -->
  10267. <class name="IntWritable" extends="java.lang.Object"
  10268. abstract="false"
  10269. static="false" final="false" visibility="public"
  10270. deprecated="not deprecated">
  10271. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10272. <constructor name="IntWritable"
  10273. static="false" final="false" visibility="public"
  10274. deprecated="not deprecated">
  10275. </constructor>
  10276. <constructor name="IntWritable" type="int"
  10277. static="false" final="false" visibility="public"
  10278. deprecated="not deprecated">
  10279. </constructor>
  10280. <method name="set"
  10281. abstract="false" native="false" synchronized="false"
  10282. static="false" final="false" visibility="public"
  10283. deprecated="not deprecated">
  10284. <param name="value" type="int"/>
  10285. <doc>
  10286. <![CDATA[Set the value of this IntWritable.]]>
  10287. </doc>
  10288. </method>
  10289. <method name="get" return="int"
  10290. abstract="false" native="false" synchronized="false"
  10291. static="false" final="false" visibility="public"
  10292. deprecated="not deprecated">
  10293. <doc>
  10294. <![CDATA[Return the value of this IntWritable.]]>
  10295. </doc>
  10296. </method>
  10297. <method name="readFields"
  10298. abstract="false" native="false" synchronized="false"
  10299. static="false" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <param name="in" type="java.io.DataInput"/>
  10302. <exception name="IOException" type="java.io.IOException"/>
  10303. </method>
  10304. <method name="write"
  10305. abstract="false" native="false" synchronized="false"
  10306. static="false" final="false" visibility="public"
  10307. deprecated="not deprecated">
  10308. <param name="out" type="java.io.DataOutput"/>
  10309. <exception name="IOException" type="java.io.IOException"/>
  10310. </method>
  10311. <method name="equals" return="boolean"
  10312. abstract="false" native="false" synchronized="false"
  10313. static="false" final="false" visibility="public"
  10314. deprecated="not deprecated">
  10315. <param name="o" type="java.lang.Object"/>
  10316. <doc>
  10317. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  10318. </doc>
  10319. </method>
  10320. <method name="hashCode" return="int"
  10321. abstract="false" native="false" synchronized="false"
  10322. static="false" final="false" visibility="public"
  10323. deprecated="not deprecated">
  10324. </method>
  10325. <method name="compareTo" return="int"
  10326. abstract="false" native="false" synchronized="false"
  10327. static="false" final="false" visibility="public"
  10328. deprecated="not deprecated">
  10329. <param name="o" type="java.lang.Object"/>
  10330. <doc>
  10331. <![CDATA[Compares two IntWritables.]]>
  10332. </doc>
  10333. </method>
  10334. <method name="toString" return="java.lang.String"
  10335. abstract="false" native="false" synchronized="false"
  10336. static="false" final="false" visibility="public"
  10337. deprecated="not deprecated">
  10338. </method>
  10339. <doc>
  10340. <![CDATA[A WritableComparable for ints.]]>
  10341. </doc>
  10342. </class>
  10343. <!-- end class org.apache.hadoop.io.IntWritable -->
  10344. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  10345. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10346. abstract="false"
  10347. static="true" final="false" visibility="public"
  10348. deprecated="not deprecated">
  10349. <constructor name="IntWritable.Comparator"
  10350. static="false" final="false" visibility="public"
  10351. deprecated="not deprecated">
  10352. </constructor>
  10353. <method name="compare" return="int"
  10354. abstract="false" native="false" synchronized="false"
  10355. static="false" final="false" visibility="public"
  10356. deprecated="not deprecated">
  10357. <param name="b1" type="byte[]"/>
  10358. <param name="s1" type="int"/>
  10359. <param name="l1" type="int"/>
  10360. <param name="b2" type="byte[]"/>
  10361. <param name="s2" type="int"/>
  10362. <param name="l2" type="int"/>
  10363. </method>
  10364. <doc>
  10365. <![CDATA[A Comparator optimized for IntWritable.]]>
  10366. </doc>
  10367. </class>
  10368. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  10369. <!-- start class org.apache.hadoop.io.IOUtils -->
  10370. <class name="IOUtils" extends="java.lang.Object"
  10371. abstract="false"
  10372. static="false" final="false" visibility="public"
  10373. deprecated="not deprecated">
  10374. <constructor name="IOUtils"
  10375. static="false" final="false" visibility="public"
  10376. deprecated="not deprecated">
  10377. </constructor>
  10378. <method name="copyBytes"
  10379. abstract="false" native="false" synchronized="false"
  10380. static="true" final="false" visibility="public"
  10381. deprecated="not deprecated">
  10382. <param name="in" type="java.io.InputStream"/>
  10383. <param name="out" type="java.io.OutputStream"/>
  10384. <param name="buffSize" type="int"/>
  10385. <param name="close" type="boolean"/>
  10386. <exception name="IOException" type="java.io.IOException"/>
  10387. <doc>
  10388. <![CDATA[Copies from one stream to another.
  10389. @param in InputStrem to read from
  10390. @param out OutputStream to write to
  10391. @param buffSize the size of the buffer
  10392. @param close whether or not close the InputStream and
  10393. OutputStream at the end. The streams are closed in the finally clause.]]>
  10394. </doc>
  10395. </method>
  10396. <method name="copyBytes"
  10397. abstract="false" native="false" synchronized="false"
  10398. static="true" final="false" visibility="public"
  10399. deprecated="not deprecated">
  10400. <param name="in" type="java.io.InputStream"/>
  10401. <param name="out" type="java.io.OutputStream"/>
  10402. <param name="buffSize" type="int"/>
  10403. <exception name="IOException" type="java.io.IOException"/>
  10404. <doc>
  10405. <![CDATA[Copies from one stream to another.
  10406. @param in InputStrem to read from
  10407. @param out OutputStream to write to
  10408. @param buffSize the size of the buffer]]>
  10409. </doc>
  10410. </method>
  10411. <method name="copyBytes"
  10412. abstract="false" native="false" synchronized="false"
  10413. static="true" final="false" visibility="public"
  10414. deprecated="not deprecated">
  10415. <param name="in" type="java.io.InputStream"/>
  10416. <param name="out" type="java.io.OutputStream"/>
  10417. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10418. <exception name="IOException" type="java.io.IOException"/>
  10419. <doc>
  10420. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  10421. at the end</strong>.
  10422. @param in InputStrem to read from
  10423. @param out OutputStream to write to
  10424. @param conf the Configuration object]]>
  10425. </doc>
  10426. </method>
  10427. <method name="copyBytes"
  10428. abstract="false" native="false" synchronized="false"
  10429. static="true" final="false" visibility="public"
  10430. deprecated="not deprecated">
  10431. <param name="in" type="java.io.InputStream"/>
  10432. <param name="out" type="java.io.OutputStream"/>
  10433. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10434. <param name="close" type="boolean"/>
  10435. <exception name="IOException" type="java.io.IOException"/>
  10436. <doc>
  10437. <![CDATA[Copies from one stream to another.
  10438. @param in InputStrem to read from
  10439. @param out OutputStream to write to
  10440. @param conf the Configuration object
  10441. @param close whether or not close the InputStream and
  10442. OutputStream at the end. The streams are closed in the finally clause.]]>
  10443. </doc>
  10444. </method>
  10445. <method name="readFully"
  10446. abstract="false" native="false" synchronized="false"
  10447. static="true" final="false" visibility="public"
  10448. deprecated="not deprecated">
  10449. <param name="in" type="java.io.InputStream"/>
  10450. <param name="buf" type="byte[]"/>
  10451. <param name="off" type="int"/>
  10452. <param name="len" type="int"/>
  10453. <exception name="IOException" type="java.io.IOException"/>
  10454. <doc>
  10455. <![CDATA[Reads len bytes in a loop.
  10456. @param in The InputStream to read from
  10457. @param buf The buffer to fill
  10458. @param off offset from the buffer
  10459. @param len the length of bytes to read
  10460. @throws IOException if it could not read requested number of bytes
  10461. for any reason (including EOF)]]>
  10462. </doc>
  10463. </method>
  10464. <method name="skipFully"
  10465. abstract="false" native="false" synchronized="false"
  10466. static="true" final="false" visibility="public"
  10467. deprecated="not deprecated">
  10468. <param name="in" type="java.io.InputStream"/>
  10469. <param name="len" type="long"/>
  10470. <exception name="IOException" type="java.io.IOException"/>
  10471. <doc>
  10472. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  10473. @param in The InputStream to skip bytes from
  10474. @param len number of bytes to skip.
  10475. @throws IOException if it could not skip requested number of bytes
  10476. for any reason (including EOF)]]>
  10477. </doc>
  10478. </method>
  10479. <method name="cleanup"
  10480. abstract="false" native="false" synchronized="false"
  10481. static="true" final="false" visibility="public"
  10482. deprecated="not deprecated">
  10483. <param name="log" type="org.apache.commons.logging.Log"/>
  10484. <param name="closeables" type="java.io.Closeable[]"/>
  10485. <doc>
  10486. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  10487. null pointers. Must only be used for cleanup in exception handlers.
  10488. @param log the log to record problems to at debug level. Can be null.
  10489. @param closeables the objects to close]]>
  10490. </doc>
  10491. </method>
  10492. <method name="closeStream"
  10493. abstract="false" native="false" synchronized="false"
  10494. static="true" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. <param name="stream" type="java.io.Closeable"/>
  10497. <doc>
  10498. <![CDATA[Closes the stream ignoring {@link IOException}.
  10499. Must only be called in cleaning up from exception handlers.
  10500. @param stream the Stream to close]]>
  10501. </doc>
  10502. </method>
  10503. <method name="closeSocket"
  10504. abstract="false" native="false" synchronized="false"
  10505. static="true" final="false" visibility="public"
  10506. deprecated="not deprecated">
  10507. <param name="sock" type="java.net.Socket"/>
  10508. <doc>
  10509. <![CDATA[Closes the socket ignoring {@link IOException}
  10510. @param sock the Socket to close]]>
  10511. </doc>
  10512. </method>
  10513. <doc>
  10514. <![CDATA[An utility class for I/O related functionality.]]>
  10515. </doc>
  10516. </class>
  10517. <!-- end class org.apache.hadoop.io.IOUtils -->
  10518. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  10519. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  10520. abstract="false"
  10521. static="true" final="false" visibility="public"
  10522. deprecated="not deprecated">
  10523. <constructor name="IOUtils.NullOutputStream"
  10524. static="false" final="false" visibility="public"
  10525. deprecated="not deprecated">
  10526. </constructor>
  10527. <method name="write"
  10528. abstract="false" native="false" synchronized="false"
  10529. static="false" final="false" visibility="public"
  10530. deprecated="not deprecated">
  10531. <param name="b" type="byte[]"/>
  10532. <param name="off" type="int"/>
  10533. <param name="len" type="int"/>
  10534. <exception name="IOException" type="java.io.IOException"/>
  10535. </method>
  10536. <method name="write"
  10537. abstract="false" native="false" synchronized="false"
  10538. static="false" final="false" visibility="public"
  10539. deprecated="not deprecated">
  10540. <param name="b" type="int"/>
  10541. <exception name="IOException" type="java.io.IOException"/>
  10542. </method>
  10543. <doc>
  10544. <![CDATA[/dev/null of OutputStreams.]]>
  10545. </doc>
  10546. </class>
  10547. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  10548. <!-- start class org.apache.hadoop.io.LongWritable -->
  10549. <class name="LongWritable" extends="java.lang.Object"
  10550. abstract="false"
  10551. static="false" final="false" visibility="public"
  10552. deprecated="not deprecated">
  10553. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10554. <constructor name="LongWritable"
  10555. static="false" final="false" visibility="public"
  10556. deprecated="not deprecated">
  10557. </constructor>
  10558. <constructor name="LongWritable" type="long"
  10559. static="false" final="false" visibility="public"
  10560. deprecated="not deprecated">
  10561. </constructor>
  10562. <method name="set"
  10563. abstract="false" native="false" synchronized="false"
  10564. static="false" final="false" visibility="public"
  10565. deprecated="not deprecated">
  10566. <param name="value" type="long"/>
  10567. <doc>
  10568. <![CDATA[Set the value of this LongWritable.]]>
  10569. </doc>
  10570. </method>
  10571. <method name="get" return="long"
  10572. abstract="false" native="false" synchronized="false"
  10573. static="false" final="false" visibility="public"
  10574. deprecated="not deprecated">
  10575. <doc>
  10576. <![CDATA[Return the value of this LongWritable.]]>
  10577. </doc>
  10578. </method>
  10579. <method name="readFields"
  10580. abstract="false" native="false" synchronized="false"
  10581. static="false" final="false" visibility="public"
  10582. deprecated="not deprecated">
  10583. <param name="in" type="java.io.DataInput"/>
  10584. <exception name="IOException" type="java.io.IOException"/>
  10585. </method>
  10586. <method name="write"
  10587. abstract="false" native="false" synchronized="false"
  10588. static="false" final="false" visibility="public"
  10589. deprecated="not deprecated">
  10590. <param name="out" type="java.io.DataOutput"/>
  10591. <exception name="IOException" type="java.io.IOException"/>
  10592. </method>
  10593. <method name="equals" return="boolean"
  10594. abstract="false" native="false" synchronized="false"
  10595. static="false" final="false" visibility="public"
  10596. deprecated="not deprecated">
  10597. <param name="o" type="java.lang.Object"/>
  10598. <doc>
  10599. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  10600. </doc>
  10601. </method>
  10602. <method name="hashCode" return="int"
  10603. abstract="false" native="false" synchronized="false"
  10604. static="false" final="false" visibility="public"
  10605. deprecated="not deprecated">
  10606. </method>
  10607. <method name="compareTo" return="int"
  10608. abstract="false" native="false" synchronized="false"
  10609. static="false" final="false" visibility="public"
  10610. deprecated="not deprecated">
  10611. <param name="o" type="java.lang.Object"/>
  10612. <doc>
  10613. <![CDATA[Compares two LongWritables.]]>
  10614. </doc>
  10615. </method>
  10616. <method name="toString" return="java.lang.String"
  10617. abstract="false" native="false" synchronized="false"
  10618. static="false" final="false" visibility="public"
  10619. deprecated="not deprecated">
  10620. </method>
  10621. <doc>
  10622. <![CDATA[A WritableComparable for longs.]]>
  10623. </doc>
  10624. </class>
  10625. <!-- end class org.apache.hadoop.io.LongWritable -->
  10626. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  10627. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10628. abstract="false"
  10629. static="true" final="false" visibility="public"
  10630. deprecated="not deprecated">
  10631. <constructor name="LongWritable.Comparator"
  10632. static="false" final="false" visibility="public"
  10633. deprecated="not deprecated">
  10634. </constructor>
  10635. <method name="compare" return="int"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="false" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <param name="b1" type="byte[]"/>
  10640. <param name="s1" type="int"/>
  10641. <param name="l1" type="int"/>
  10642. <param name="b2" type="byte[]"/>
  10643. <param name="s2" type="int"/>
  10644. <param name="l2" type="int"/>
  10645. </method>
  10646. <doc>
  10647. <![CDATA[A Comparator optimized for LongWritable.]]>
  10648. </doc>
  10649. </class>
  10650. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  10651. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10652. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  10653. abstract="false"
  10654. static="true" final="false" visibility="public"
  10655. deprecated="not deprecated">
  10656. <constructor name="LongWritable.DecreasingComparator"
  10657. static="false" final="false" visibility="public"
  10658. deprecated="not deprecated">
  10659. </constructor>
  10660. <method name="compare" return="int"
  10661. abstract="false" native="false" synchronized="false"
  10662. static="false" final="false" visibility="public"
  10663. deprecated="not deprecated">
  10664. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  10665. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  10666. </method>
  10667. <method name="compare" return="int"
  10668. abstract="false" native="false" synchronized="false"
  10669. static="false" final="false" visibility="public"
  10670. deprecated="not deprecated">
  10671. <param name="b1" type="byte[]"/>
  10672. <param name="s1" type="int"/>
  10673. <param name="l1" type="int"/>
  10674. <param name="b2" type="byte[]"/>
  10675. <param name="s2" type="int"/>
  10676. <param name="l2" type="int"/>
  10677. </method>
  10678. <doc>
  10679. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  10680. </doc>
  10681. </class>
  10682. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10683. <!-- start class org.apache.hadoop.io.MapFile -->
  10684. <class name="MapFile" extends="java.lang.Object"
  10685. abstract="false"
  10686. static="false" final="false" visibility="public"
  10687. deprecated="not deprecated">
  10688. <constructor name="MapFile"
  10689. static="false" final="false" visibility="protected"
  10690. deprecated="not deprecated">
  10691. </constructor>
  10692. <method name="rename"
  10693. abstract="false" native="false" synchronized="false"
  10694. static="true" final="false" visibility="public"
  10695. deprecated="not deprecated">
  10696. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10697. <param name="oldName" type="java.lang.String"/>
  10698. <param name="newName" type="java.lang.String"/>
  10699. <exception name="IOException" type="java.io.IOException"/>
  10700. <doc>
  10701. <![CDATA[Renames an existing map directory.]]>
  10702. </doc>
  10703. </method>
  10704. <method name="delete"
  10705. abstract="false" native="false" synchronized="false"
  10706. static="true" final="false" visibility="public"
  10707. deprecated="not deprecated">
  10708. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10709. <param name="name" type="java.lang.String"/>
  10710. <exception name="IOException" type="java.io.IOException"/>
  10711. <doc>
  10712. <![CDATA[Deletes the named map file.]]>
  10713. </doc>
  10714. </method>
  10715. <method name="fix" return="long"
  10716. abstract="false" native="false" synchronized="false"
  10717. static="true" final="false" visibility="public"
  10718. deprecated="not deprecated">
  10719. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10720. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10721. <param name="keyClass" type="java.lang.Class"/>
  10722. <param name="valueClass" type="java.lang.Class"/>
  10723. <param name="dryrun" type="boolean"/>
  10724. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10725. <exception name="Exception" type="java.lang.Exception"/>
  10726. <doc>
  10727. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  10728. @param fs filesystem
  10729. @param dir directory containing the MapFile data and index
  10730. @param keyClass key class (has to be a subclass of Writable)
  10731. @param valueClass value class (has to be a subclass of Writable)
  10732. @param dryrun do not perform any changes, just report what needs to be done
  10733. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  10734. @throws Exception]]>
  10735. </doc>
  10736. </method>
  10737. <method name="main"
  10738. abstract="false" native="false" synchronized="false"
  10739. static="true" final="false" visibility="public"
  10740. deprecated="not deprecated">
  10741. <param name="args" type="java.lang.String[]"/>
  10742. <exception name="Exception" type="java.lang.Exception"/>
  10743. </method>
  10744. <field name="INDEX_FILE_NAME" type="java.lang.String"
  10745. transient="false" volatile="false"
  10746. static="true" final="true" visibility="public"
  10747. deprecated="not deprecated">
  10748. <doc>
  10749. <![CDATA[The name of the index file.]]>
  10750. </doc>
  10751. </field>
  10752. <field name="DATA_FILE_NAME" type="java.lang.String"
  10753. transient="false" volatile="false"
  10754. static="true" final="true" visibility="public"
  10755. deprecated="not deprecated">
  10756. <doc>
  10757. <![CDATA[The name of the data file.]]>
  10758. </doc>
  10759. </field>
  10760. <doc>
  10761. <![CDATA[A file-based map from keys to values.
  10762. <p>A map is a directory containing two files, the <code>data</code> file,
  10763. containing all keys and values in the map, and a smaller <code>index</code>
  10764. file, containing a fraction of the keys. The fraction is determined by
  10765. {@link Writer#getIndexInterval()}.
  10766. <p>The index file is read entirely into memory. Thus key implementations
  10767. should try to keep themselves small.
  10768. <p>Map files are created by adding entries in-order. To maintain a large
  10769. database, perform updates by copying the previous version of a database and
  10770. merging in a sorted change list, to create a new version of the database in
  10771. a new file. Sorting large change lists can be done with {@link
  10772. SequenceFile.Sorter}.]]>
  10773. </doc>
  10774. </class>
  10775. <!-- end class org.apache.hadoop.io.MapFile -->
  10776. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  10777. <class name="MapFile.Reader" extends="java.lang.Object"
  10778. abstract="false"
  10779. static="true" final="false" visibility="public"
  10780. deprecated="not deprecated">
  10781. <implements name="java.io.Closeable"/>
  10782. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  10783. static="false" final="false" visibility="public"
  10784. deprecated="not deprecated">
  10785. <exception name="IOException" type="java.io.IOException"/>
  10786. <doc>
  10787. <![CDATA[Construct a map reader for the named map.]]>
  10788. </doc>
  10789. </constructor>
  10790. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10791. static="false" final="false" visibility="public"
  10792. deprecated="not deprecated">
  10793. <exception name="IOException" type="java.io.IOException"/>
  10794. <doc>
  10795. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  10796. </doc>
  10797. </constructor>
  10798. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10799. static="false" final="false" visibility="protected"
  10800. deprecated="not deprecated">
  10801. <exception name="IOException" type="java.io.IOException"/>
  10802. <doc>
  10803. <![CDATA[Hook to allow subclasses to defer opening streams until further
  10804. initialization is complete.
  10805. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  10806. </doc>
  10807. </constructor>
  10808. <method name="getKeyClass" return="java.lang.Class"
  10809. abstract="false" native="false" synchronized="false"
  10810. static="false" final="false" visibility="public"
  10811. deprecated="not deprecated">
  10812. <doc>
  10813. <![CDATA[Returns the class of keys in this file.]]>
  10814. </doc>
  10815. </method>
  10816. <method name="getValueClass" return="java.lang.Class"
  10817. abstract="false" native="false" synchronized="false"
  10818. static="false" final="false" visibility="public"
  10819. deprecated="not deprecated">
  10820. <doc>
  10821. <![CDATA[Returns the class of values in this file.]]>
  10822. </doc>
  10823. </method>
  10824. <method name="open"
  10825. abstract="false" native="false" synchronized="true"
  10826. static="false" final="false" visibility="protected"
  10827. deprecated="not deprecated">
  10828. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10829. <param name="dirName" type="java.lang.String"/>
  10830. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  10831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10832. <exception name="IOException" type="java.io.IOException"/>
  10833. </method>
  10834. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  10835. abstract="false" native="false" synchronized="false"
  10836. static="false" final="false" visibility="protected"
  10837. deprecated="not deprecated">
  10838. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10839. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  10840. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10841. <exception name="IOException" type="java.io.IOException"/>
  10842. <doc>
  10843. <![CDATA[Override this method to specialize the type of
  10844. {@link SequenceFile.Reader} returned.]]>
  10845. </doc>
  10846. </method>
  10847. <method name="reset"
  10848. abstract="false" native="false" synchronized="true"
  10849. static="false" final="false" visibility="public"
  10850. deprecated="not deprecated">
  10851. <exception name="IOException" type="java.io.IOException"/>
  10852. <doc>
  10853. <![CDATA[Re-positions the reader before its first key.]]>
  10854. </doc>
  10855. </method>
  10856. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  10857. abstract="false" native="false" synchronized="true"
  10858. static="false" final="false" visibility="public"
  10859. deprecated="not deprecated">
  10860. <exception name="IOException" type="java.io.IOException"/>
  10861. <doc>
  10862. <![CDATA[Get the key at approximately the middle of the file. Or null if the
  10863. file is empty.]]>
  10864. </doc>
  10865. </method>
  10866. <method name="finalKey"
  10867. abstract="false" native="false" synchronized="true"
  10868. static="false" final="false" visibility="public"
  10869. deprecated="not deprecated">
  10870. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10871. <exception name="IOException" type="java.io.IOException"/>
  10872. <doc>
  10873. <![CDATA[Reads the final key from the file.
  10874. @param key key to read into]]>
  10875. </doc>
  10876. </method>
  10877. <method name="seek" return="boolean"
  10878. abstract="false" native="false" synchronized="true"
  10879. static="false" final="false" visibility="public"
  10880. deprecated="not deprecated">
  10881. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10882. <exception name="IOException" type="java.io.IOException"/>
  10883. <doc>
  10884. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  10885. first entry after the named key. Returns true iff the named key exists
  10886. in this map.]]>
  10887. </doc>
  10888. </method>
  10889. <method name="next" return="boolean"
  10890. abstract="false" native="false" synchronized="true"
  10891. static="false" final="false" visibility="public"
  10892. deprecated="not deprecated">
  10893. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10894. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10895. <exception name="IOException" type="java.io.IOException"/>
  10896. <doc>
  10897. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  10898. <code>val</code>. Returns true if such a pair exists and false when at
  10899. the end of the map]]>
  10900. </doc>
  10901. </method>
  10902. <method name="get" return="org.apache.hadoop.io.Writable"
  10903. abstract="false" native="false" synchronized="true"
  10904. static="false" final="false" visibility="public"
  10905. deprecated="not deprecated">
  10906. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10907. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10908. <exception name="IOException" type="java.io.IOException"/>
  10909. <doc>
  10910. <![CDATA[Return the value for the named key, or null if none exists.]]>
  10911. </doc>
  10912. </method>
  10913. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10914. abstract="false" native="false" synchronized="true"
  10915. static="false" final="false" visibility="public"
  10916. deprecated="not deprecated">
  10917. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10918. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10919. <exception name="IOException" type="java.io.IOException"/>
  10920. <doc>
  10921. <![CDATA[Finds the record that is the closest match to the specified key.
  10922. Returns <code>key</code> or if it does not exist, at the first entry
  10923. after the named key.
  10924. - * @param key - key that we're trying to find
  10925. - * @param val - data value if key is found
  10926. - * @return - the key that was the closest match or null if eof.]]>
  10927. </doc>
  10928. </method>
  10929. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10930. abstract="false" native="false" synchronized="true"
  10931. static="false" final="false" visibility="public"
  10932. deprecated="not deprecated">
  10933. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10934. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10935. <param name="before" type="boolean"/>
  10936. <exception name="IOException" type="java.io.IOException"/>
  10937. <doc>
  10938. <![CDATA[Finds the record that is the closest match to the specified key.
  10939. @param key - key that we're trying to find
  10940. @param val - data value if key is found
  10941. @param before - IF true, and <code>key</code> does not exist, return
  10942. the first entry that falls just before the <code>key</code>. Otherwise,
  10943. return the record that sorts just after.
  10944. @return - the key that was the closest match or null if eof.]]>
  10945. </doc>
  10946. </method>
  10947. <method name="close"
  10948. abstract="false" native="false" synchronized="true"
  10949. static="false" final="false" visibility="public"
  10950. deprecated="not deprecated">
  10951. <exception name="IOException" type="java.io.IOException"/>
  10952. <doc>
  10953. <![CDATA[Close the map.]]>
  10954. </doc>
  10955. </method>
  10956. <doc>
  10957. <![CDATA[Provide access to an existing map.]]>
  10958. </doc>
  10959. </class>
  10960. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  10961. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  10962. <class name="MapFile.Writer" extends="java.lang.Object"
  10963. abstract="false"
  10964. static="true" final="false" visibility="public"
  10965. deprecated="not deprecated">
  10966. <implements name="java.io.Closeable"/>
  10967. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  10968. static="false" final="false" visibility="public"
  10969. deprecated="not deprecated">
  10970. <exception name="IOException" type="java.io.IOException"/>
  10971. <doc>
  10972. <![CDATA[Create the named map for keys of the named class.]]>
  10973. </doc>
  10974. </constructor>
  10975. <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"
  10976. static="false" final="false" visibility="public"
  10977. deprecated="not deprecated">
  10978. <exception name="IOException" type="java.io.IOException"/>
  10979. <doc>
  10980. <![CDATA[Create the named map for keys of the named class.]]>
  10981. </doc>
  10982. </constructor>
  10983. <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"
  10984. static="false" final="false" visibility="public"
  10985. deprecated="not deprecated">
  10986. <exception name="IOException" type="java.io.IOException"/>
  10987. <doc>
  10988. <![CDATA[Create the named map for keys of the named class.]]>
  10989. </doc>
  10990. </constructor>
  10991. <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"
  10992. static="false" final="false" visibility="public"
  10993. deprecated="not deprecated">
  10994. <exception name="IOException" type="java.io.IOException"/>
  10995. <doc>
  10996. <![CDATA[Create the named map for keys of the named class.]]>
  10997. </doc>
  10998. </constructor>
  10999. <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"
  11000. static="false" final="false" visibility="public"
  11001. deprecated="not deprecated">
  11002. <exception name="IOException" type="java.io.IOException"/>
  11003. <doc>
  11004. <![CDATA[Create the named map using the named key comparator.]]>
  11005. </doc>
  11006. </constructor>
  11007. <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"
  11008. static="false" final="false" visibility="public"
  11009. deprecated="not deprecated">
  11010. <exception name="IOException" type="java.io.IOException"/>
  11011. <doc>
  11012. <![CDATA[Create the named map using the named key comparator.]]>
  11013. </doc>
  11014. </constructor>
  11015. <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"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <exception name="IOException" type="java.io.IOException"/>
  11019. <doc>
  11020. <![CDATA[Create the named map using the named key comparator.]]>
  11021. </doc>
  11022. </constructor>
  11023. <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"
  11024. static="false" final="false" visibility="public"
  11025. deprecated="not deprecated">
  11026. <exception name="IOException" type="java.io.IOException"/>
  11027. <doc>
  11028. <![CDATA[Create the named map using the named key comparator.]]>
  11029. </doc>
  11030. </constructor>
  11031. <method name="getIndexInterval" return="int"
  11032. abstract="false" native="false" synchronized="false"
  11033. static="false" final="false" visibility="public"
  11034. deprecated="not deprecated">
  11035. <doc>
  11036. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11037. </doc>
  11038. </method>
  11039. <method name="setIndexInterval"
  11040. abstract="false" native="false" synchronized="false"
  11041. static="false" final="false" visibility="public"
  11042. deprecated="not deprecated">
  11043. <param name="interval" type="int"/>
  11044. <doc>
  11045. <![CDATA[Sets the index interval.
  11046. @see #getIndexInterval()]]>
  11047. </doc>
  11048. </method>
  11049. <method name="setIndexInterval"
  11050. abstract="false" native="false" synchronized="false"
  11051. static="true" final="false" visibility="public"
  11052. deprecated="not deprecated">
  11053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11054. <param name="interval" type="int"/>
  11055. <doc>
  11056. <![CDATA[Sets the index interval and stores it in conf
  11057. @see #getIndexInterval()]]>
  11058. </doc>
  11059. </method>
  11060. <method name="close"
  11061. abstract="false" native="false" synchronized="true"
  11062. static="false" final="false" visibility="public"
  11063. deprecated="not deprecated">
  11064. <exception name="IOException" type="java.io.IOException"/>
  11065. <doc>
  11066. <![CDATA[Close the map.]]>
  11067. </doc>
  11068. </method>
  11069. <method name="append"
  11070. abstract="false" native="false" synchronized="true"
  11071. static="false" final="false" visibility="public"
  11072. deprecated="not deprecated">
  11073. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11074. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11075. <exception name="IOException" type="java.io.IOException"/>
  11076. <doc>
  11077. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11078. to the previous key added to the map.]]>
  11079. </doc>
  11080. </method>
  11081. <doc>
  11082. <![CDATA[Writes a new map.]]>
  11083. </doc>
  11084. </class>
  11085. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11086. <!-- start class org.apache.hadoop.io.MapWritable -->
  11087. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11088. abstract="false"
  11089. static="false" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. <implements name="java.util.Map"/>
  11092. <constructor name="MapWritable"
  11093. static="false" final="false" visibility="public"
  11094. deprecated="not deprecated">
  11095. <doc>
  11096. <![CDATA[Default constructor.]]>
  11097. </doc>
  11098. </constructor>
  11099. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11100. static="false" final="false" visibility="public"
  11101. deprecated="not deprecated">
  11102. <doc>
  11103. <![CDATA[Copy constructor.
  11104. @param other the map to copy from]]>
  11105. </doc>
  11106. </constructor>
  11107. <method name="clear"
  11108. abstract="false" native="false" synchronized="false"
  11109. static="false" final="false" visibility="public"
  11110. deprecated="not deprecated">
  11111. <doc>
  11112. <![CDATA[{@inheritDoc}]]>
  11113. </doc>
  11114. </method>
  11115. <method name="containsKey" return="boolean"
  11116. abstract="false" native="false" synchronized="false"
  11117. static="false" final="false" visibility="public"
  11118. deprecated="not deprecated">
  11119. <param name="key" type="java.lang.Object"/>
  11120. <doc>
  11121. <![CDATA[{@inheritDoc}]]>
  11122. </doc>
  11123. </method>
  11124. <method name="containsValue" return="boolean"
  11125. abstract="false" native="false" synchronized="false"
  11126. static="false" final="false" visibility="public"
  11127. deprecated="not deprecated">
  11128. <param name="value" type="java.lang.Object"/>
  11129. <doc>
  11130. <![CDATA[{@inheritDoc}]]>
  11131. </doc>
  11132. </method>
  11133. <method name="entrySet" return="java.util.Set"
  11134. abstract="false" native="false" synchronized="false"
  11135. static="false" final="false" visibility="public"
  11136. deprecated="not deprecated">
  11137. <doc>
  11138. <![CDATA[{@inheritDoc}]]>
  11139. </doc>
  11140. </method>
  11141. <method name="get" return="org.apache.hadoop.io.Writable"
  11142. abstract="false" native="false" synchronized="false"
  11143. static="false" final="false" visibility="public"
  11144. deprecated="not deprecated">
  11145. <param name="key" type="java.lang.Object"/>
  11146. <doc>
  11147. <![CDATA[{@inheritDoc}]]>
  11148. </doc>
  11149. </method>
  11150. <method name="isEmpty" return="boolean"
  11151. abstract="false" native="false" synchronized="false"
  11152. static="false" final="false" visibility="public"
  11153. deprecated="not deprecated">
  11154. <doc>
  11155. <![CDATA[{@inheritDoc}]]>
  11156. </doc>
  11157. </method>
  11158. <method name="keySet" return="java.util.Set"
  11159. abstract="false" native="false" synchronized="false"
  11160. static="false" final="false" visibility="public"
  11161. deprecated="not deprecated">
  11162. <doc>
  11163. <![CDATA[{@inheritDoc}]]>
  11164. </doc>
  11165. </method>
  11166. <method name="put" return="org.apache.hadoop.io.Writable"
  11167. abstract="false" native="false" synchronized="false"
  11168. static="false" final="false" visibility="public"
  11169. deprecated="not deprecated">
  11170. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11171. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11172. <doc>
  11173. <![CDATA[{@inheritDoc}]]>
  11174. </doc>
  11175. </method>
  11176. <method name="putAll"
  11177. abstract="false" native="false" synchronized="false"
  11178. static="false" final="false" visibility="public"
  11179. deprecated="not deprecated">
  11180. <param name="t" type="java.util.Map"/>
  11181. <doc>
  11182. <![CDATA[{@inheritDoc}]]>
  11183. </doc>
  11184. </method>
  11185. <method name="remove" return="org.apache.hadoop.io.Writable"
  11186. abstract="false" native="false" synchronized="false"
  11187. static="false" final="false" visibility="public"
  11188. deprecated="not deprecated">
  11189. <param name="key" type="java.lang.Object"/>
  11190. <doc>
  11191. <![CDATA[{@inheritDoc}]]>
  11192. </doc>
  11193. </method>
  11194. <method name="size" return="int"
  11195. abstract="false" native="false" synchronized="false"
  11196. static="false" final="false" visibility="public"
  11197. deprecated="not deprecated">
  11198. <doc>
  11199. <![CDATA[{@inheritDoc}]]>
  11200. </doc>
  11201. </method>
  11202. <method name="values" return="java.util.Collection"
  11203. abstract="false" native="false" synchronized="false"
  11204. static="false" final="false" visibility="public"
  11205. deprecated="not deprecated">
  11206. <doc>
  11207. <![CDATA[{@inheritDoc}]]>
  11208. </doc>
  11209. </method>
  11210. <method name="write"
  11211. abstract="false" native="false" synchronized="false"
  11212. static="false" final="false" visibility="public"
  11213. deprecated="not deprecated">
  11214. <param name="out" type="java.io.DataOutput"/>
  11215. <exception name="IOException" type="java.io.IOException"/>
  11216. <doc>
  11217. <![CDATA[{@inheritDoc}]]>
  11218. </doc>
  11219. </method>
  11220. <method name="readFields"
  11221. abstract="false" native="false" synchronized="false"
  11222. static="false" final="false" visibility="public"
  11223. deprecated="not deprecated">
  11224. <param name="in" type="java.io.DataInput"/>
  11225. <exception name="IOException" type="java.io.IOException"/>
  11226. <doc>
  11227. <![CDATA[{@inheritDoc}]]>
  11228. </doc>
  11229. </method>
  11230. <doc>
  11231. <![CDATA[A Writable Map.]]>
  11232. </doc>
  11233. </class>
  11234. <!-- end class org.apache.hadoop.io.MapWritable -->
  11235. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11236. <class name="MD5Hash" extends="java.lang.Object"
  11237. abstract="false"
  11238. static="false" final="false" visibility="public"
  11239. deprecated="not deprecated">
  11240. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11241. <constructor name="MD5Hash"
  11242. static="false" final="false" visibility="public"
  11243. deprecated="not deprecated">
  11244. <doc>
  11245. <![CDATA[Constructs an MD5Hash.]]>
  11246. </doc>
  11247. </constructor>
  11248. <constructor name="MD5Hash" type="java.lang.String"
  11249. static="false" final="false" visibility="public"
  11250. deprecated="not deprecated">
  11251. <doc>
  11252. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11253. </doc>
  11254. </constructor>
  11255. <constructor name="MD5Hash" type="byte[]"
  11256. static="false" final="false" visibility="public"
  11257. deprecated="not deprecated">
  11258. <doc>
  11259. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11260. </doc>
  11261. </constructor>
  11262. <method name="readFields"
  11263. abstract="false" native="false" synchronized="false"
  11264. static="false" final="false" visibility="public"
  11265. deprecated="not deprecated">
  11266. <param name="in" type="java.io.DataInput"/>
  11267. <exception name="IOException" type="java.io.IOException"/>
  11268. </method>
  11269. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  11270. abstract="false" native="false" synchronized="false"
  11271. static="true" final="false" visibility="public"
  11272. deprecated="not deprecated">
  11273. <param name="in" type="java.io.DataInput"/>
  11274. <exception name="IOException" type="java.io.IOException"/>
  11275. <doc>
  11276. <![CDATA[Constructs, reads and returns an instance.]]>
  11277. </doc>
  11278. </method>
  11279. <method name="write"
  11280. abstract="false" native="false" synchronized="false"
  11281. static="false" final="false" visibility="public"
  11282. deprecated="not deprecated">
  11283. <param name="out" type="java.io.DataOutput"/>
  11284. <exception name="IOException" type="java.io.IOException"/>
  11285. </method>
  11286. <method name="set"
  11287. abstract="false" native="false" synchronized="false"
  11288. static="false" final="false" visibility="public"
  11289. deprecated="not deprecated">
  11290. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11291. <doc>
  11292. <![CDATA[Copy the contents of another instance into this instance.]]>
  11293. </doc>
  11294. </method>
  11295. <method name="getDigest" return="byte[]"
  11296. abstract="false" native="false" synchronized="false"
  11297. static="false" final="false" visibility="public"
  11298. deprecated="not deprecated">
  11299. <doc>
  11300. <![CDATA[Returns the digest bytes.]]>
  11301. </doc>
  11302. </method>
  11303. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11304. abstract="false" native="false" synchronized="false"
  11305. static="true" final="false" visibility="public"
  11306. deprecated="not deprecated">
  11307. <param name="data" type="byte[]"/>
  11308. <doc>
  11309. <![CDATA[Construct a hash value for a byte array.]]>
  11310. </doc>
  11311. </method>
  11312. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11313. abstract="false" native="false" synchronized="false"
  11314. static="true" final="false" visibility="public"
  11315. deprecated="not deprecated">
  11316. <param name="in" type="java.io.InputStream"/>
  11317. <exception name="IOException" type="java.io.IOException"/>
  11318. <doc>
  11319. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  11320. </doc>
  11321. </method>
  11322. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11323. abstract="false" native="false" synchronized="false"
  11324. static="true" final="false" visibility="public"
  11325. deprecated="not deprecated">
  11326. <param name="data" type="byte[]"/>
  11327. <param name="start" type="int"/>
  11328. <param name="len" type="int"/>
  11329. <doc>
  11330. <![CDATA[Construct a hash value for a byte array.]]>
  11331. </doc>
  11332. </method>
  11333. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11334. abstract="false" native="false" synchronized="false"
  11335. static="true" final="false" visibility="public"
  11336. deprecated="not deprecated">
  11337. <param name="string" type="java.lang.String"/>
  11338. <doc>
  11339. <![CDATA[Construct a hash value for a String.]]>
  11340. </doc>
  11341. </method>
  11342. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11343. abstract="false" native="false" synchronized="false"
  11344. static="true" final="false" visibility="public"
  11345. deprecated="not deprecated">
  11346. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  11347. <doc>
  11348. <![CDATA[Construct a hash value for a String.]]>
  11349. </doc>
  11350. </method>
  11351. <method name="halfDigest" return="long"
  11352. abstract="false" native="false" synchronized="false"
  11353. static="false" final="false" visibility="public"
  11354. deprecated="not deprecated">
  11355. <doc>
  11356. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  11357. </doc>
  11358. </method>
  11359. <method name="quarterDigest" return="int"
  11360. abstract="false" native="false" synchronized="false"
  11361. static="false" final="false" visibility="public"
  11362. deprecated="not deprecated">
  11363. <doc>
  11364. <![CDATA[Return a 32-bit digest of the MD5.
  11365. @return the first 4 bytes of the md5]]>
  11366. </doc>
  11367. </method>
  11368. <method name="equals" return="boolean"
  11369. abstract="false" native="false" synchronized="false"
  11370. static="false" final="false" visibility="public"
  11371. deprecated="not deprecated">
  11372. <param name="o" type="java.lang.Object"/>
  11373. <doc>
  11374. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  11375. same values.]]>
  11376. </doc>
  11377. </method>
  11378. <method name="hashCode" return="int"
  11379. abstract="false" native="false" synchronized="false"
  11380. static="false" final="false" visibility="public"
  11381. deprecated="not deprecated">
  11382. <doc>
  11383. <![CDATA[Returns a hash code value for this object.
  11384. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  11385. </doc>
  11386. </method>
  11387. <method name="compareTo" return="int"
  11388. abstract="false" native="false" synchronized="false"
  11389. static="false" final="false" visibility="public"
  11390. deprecated="not deprecated">
  11391. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11392. <doc>
  11393. <![CDATA[Compares this object with the specified object for order.]]>
  11394. </doc>
  11395. </method>
  11396. <method name="toString" return="java.lang.String"
  11397. abstract="false" native="false" synchronized="false"
  11398. static="false" final="false" visibility="public"
  11399. deprecated="not deprecated">
  11400. <doc>
  11401. <![CDATA[Returns a string representation of this object.]]>
  11402. </doc>
  11403. </method>
  11404. <method name="setDigest"
  11405. abstract="false" native="false" synchronized="false"
  11406. static="false" final="false" visibility="public"
  11407. deprecated="not deprecated">
  11408. <param name="hex" type="java.lang.String"/>
  11409. <doc>
  11410. <![CDATA[Sets the digest value from a hex string.]]>
  11411. </doc>
  11412. </method>
  11413. <field name="MD5_LEN" type="int"
  11414. transient="false" volatile="false"
  11415. static="true" final="true" visibility="public"
  11416. deprecated="not deprecated">
  11417. </field>
  11418. <doc>
  11419. <![CDATA[A Writable for MD5 hash values.]]>
  11420. </doc>
  11421. </class>
  11422. <!-- end class org.apache.hadoop.io.MD5Hash -->
  11423. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  11424. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11425. abstract="false"
  11426. static="true" final="false" visibility="public"
  11427. deprecated="not deprecated">
  11428. <constructor name="MD5Hash.Comparator"
  11429. static="false" final="false" visibility="public"
  11430. deprecated="not deprecated">
  11431. </constructor>
  11432. <method name="compare" return="int"
  11433. abstract="false" native="false" synchronized="false"
  11434. static="false" final="false" visibility="public"
  11435. deprecated="not deprecated">
  11436. <param name="b1" type="byte[]"/>
  11437. <param name="s1" type="int"/>
  11438. <param name="l1" type="int"/>
  11439. <param name="b2" type="byte[]"/>
  11440. <param name="s2" type="int"/>
  11441. <param name="l2" type="int"/>
  11442. </method>
  11443. <doc>
  11444. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  11445. </doc>
  11446. </class>
  11447. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  11448. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  11449. <class name="MultipleIOException" extends="java.io.IOException"
  11450. abstract="false"
  11451. static="false" final="false" visibility="public"
  11452. deprecated="not deprecated">
  11453. <method name="getExceptions" return="java.util.List"
  11454. abstract="false" native="false" synchronized="false"
  11455. static="false" final="false" visibility="public"
  11456. deprecated="not deprecated">
  11457. <doc>
  11458. <![CDATA[@return the underlying exceptions]]>
  11459. </doc>
  11460. </method>
  11461. <method name="createIOException" return="java.io.IOException"
  11462. abstract="false" native="false" synchronized="false"
  11463. static="true" final="false" visibility="public"
  11464. deprecated="not deprecated">
  11465. <param name="exceptions" type="java.util.List"/>
  11466. <doc>
  11467. <![CDATA[A convenient method to create an {@link IOException}.]]>
  11468. </doc>
  11469. </method>
  11470. <doc>
  11471. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  11472. </doc>
  11473. </class>
  11474. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  11475. <!-- start class org.apache.hadoop.io.NullWritable -->
  11476. <class name="NullWritable" extends="java.lang.Object"
  11477. abstract="false"
  11478. static="false" final="false" visibility="public"
  11479. deprecated="not deprecated">
  11480. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11481. <method name="get" return="org.apache.hadoop.io.NullWritable"
  11482. abstract="false" native="false" synchronized="false"
  11483. static="true" final="false" visibility="public"
  11484. deprecated="not deprecated">
  11485. <doc>
  11486. <![CDATA[Returns the single instance of this class.]]>
  11487. </doc>
  11488. </method>
  11489. <method name="toString" return="java.lang.String"
  11490. abstract="false" native="false" synchronized="false"
  11491. static="false" final="false" visibility="public"
  11492. deprecated="not deprecated">
  11493. </method>
  11494. <method name="hashCode" return="int"
  11495. abstract="false" native="false" synchronized="false"
  11496. static="false" final="false" visibility="public"
  11497. deprecated="not deprecated">
  11498. </method>
  11499. <method name="compareTo" return="int"
  11500. abstract="false" native="false" synchronized="false"
  11501. static="false" final="false" visibility="public"
  11502. deprecated="not deprecated">
  11503. <param name="other" type="java.lang.Object"/>
  11504. </method>
  11505. <method name="equals" return="boolean"
  11506. abstract="false" native="false" synchronized="false"
  11507. static="false" final="false" visibility="public"
  11508. deprecated="not deprecated">
  11509. <param name="other" type="java.lang.Object"/>
  11510. </method>
  11511. <method name="readFields"
  11512. abstract="false" native="false" synchronized="false"
  11513. static="false" final="false" visibility="public"
  11514. deprecated="not deprecated">
  11515. <param name="in" type="java.io.DataInput"/>
  11516. <exception name="IOException" type="java.io.IOException"/>
  11517. </method>
  11518. <method name="write"
  11519. abstract="false" native="false" synchronized="false"
  11520. static="false" final="false" visibility="public"
  11521. deprecated="not deprecated">
  11522. <param name="out" type="java.io.DataOutput"/>
  11523. <exception name="IOException" type="java.io.IOException"/>
  11524. </method>
  11525. <doc>
  11526. <![CDATA[Singleton Writable with no data.]]>
  11527. </doc>
  11528. </class>
  11529. <!-- end class org.apache.hadoop.io.NullWritable -->
  11530. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  11531. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11532. abstract="false"
  11533. static="true" final="false" visibility="public"
  11534. deprecated="not deprecated">
  11535. <constructor name="NullWritable.Comparator"
  11536. static="false" final="false" visibility="public"
  11537. deprecated="not deprecated">
  11538. </constructor>
  11539. <method name="compare" return="int"
  11540. abstract="false" native="false" synchronized="false"
  11541. static="false" final="false" visibility="public"
  11542. deprecated="not deprecated">
  11543. <param name="b1" type="byte[]"/>
  11544. <param name="s1" type="int"/>
  11545. <param name="l1" type="int"/>
  11546. <param name="b2" type="byte[]"/>
  11547. <param name="s2" type="int"/>
  11548. <param name="l2" type="int"/>
  11549. <doc>
  11550. <![CDATA[Compare the buffers in serialized form.]]>
  11551. </doc>
  11552. </method>
  11553. <doc>
  11554. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  11555. </doc>
  11556. </class>
  11557. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  11558. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  11559. <class name="ObjectWritable" extends="java.lang.Object"
  11560. abstract="false"
  11561. static="false" final="false" visibility="public"
  11562. deprecated="not deprecated">
  11563. <implements name="org.apache.hadoop.io.Writable"/>
  11564. <implements name="org.apache.hadoop.conf.Configurable"/>
  11565. <constructor name="ObjectWritable"
  11566. static="false" final="false" visibility="public"
  11567. deprecated="not deprecated">
  11568. </constructor>
  11569. <constructor name="ObjectWritable" type="java.lang.Object"
  11570. static="false" final="false" visibility="public"
  11571. deprecated="not deprecated">
  11572. </constructor>
  11573. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  11574. static="false" final="false" visibility="public"
  11575. deprecated="not deprecated">
  11576. </constructor>
  11577. <method name="get" return="java.lang.Object"
  11578. abstract="false" native="false" synchronized="false"
  11579. static="false" final="false" visibility="public"
  11580. deprecated="not deprecated">
  11581. <doc>
  11582. <![CDATA[Return the instance, or null if none.]]>
  11583. </doc>
  11584. </method>
  11585. <method name="getDeclaredClass" return="java.lang.Class"
  11586. abstract="false" native="false" synchronized="false"
  11587. static="false" final="false" visibility="public"
  11588. deprecated="not deprecated">
  11589. <doc>
  11590. <![CDATA[Return the class this is meant to be.]]>
  11591. </doc>
  11592. </method>
  11593. <method name="set"
  11594. abstract="false" native="false" synchronized="false"
  11595. static="false" final="false" visibility="public"
  11596. deprecated="not deprecated">
  11597. <param name="instance" type="java.lang.Object"/>
  11598. <doc>
  11599. <![CDATA[Reset the instance.]]>
  11600. </doc>
  11601. </method>
  11602. <method name="toString" return="java.lang.String"
  11603. abstract="false" native="false" synchronized="false"
  11604. static="false" final="false" visibility="public"
  11605. deprecated="not deprecated">
  11606. </method>
  11607. <method name="readFields"
  11608. abstract="false" native="false" synchronized="false"
  11609. static="false" final="false" visibility="public"
  11610. deprecated="not deprecated">
  11611. <param name="in" type="java.io.DataInput"/>
  11612. <exception name="IOException" type="java.io.IOException"/>
  11613. </method>
  11614. <method name="write"
  11615. abstract="false" native="false" synchronized="false"
  11616. static="false" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <param name="out" type="java.io.DataOutput"/>
  11619. <exception name="IOException" type="java.io.IOException"/>
  11620. </method>
  11621. <method name="writeObject"
  11622. abstract="false" native="false" synchronized="false"
  11623. static="true" final="false" visibility="public"
  11624. deprecated="not deprecated">
  11625. <param name="out" type="java.io.DataOutput"/>
  11626. <param name="instance" type="java.lang.Object"/>
  11627. <param name="declaredClass" type="java.lang.Class"/>
  11628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11629. <exception name="IOException" type="java.io.IOException"/>
  11630. <doc>
  11631. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  11632. the preceding.]]>
  11633. </doc>
  11634. </method>
  11635. <method name="readObject" return="java.lang.Object"
  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.DataInput"/>
  11640. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11641. <exception name="IOException" type="java.io.IOException"/>
  11642. <doc>
  11643. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  11644. the preceding.]]>
  11645. </doc>
  11646. </method>
  11647. <method name="readObject" return="java.lang.Object"
  11648. abstract="false" native="false" synchronized="false"
  11649. static="true" final="false" visibility="public"
  11650. deprecated="not deprecated">
  11651. <param name="in" type="java.io.DataInput"/>
  11652. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  11653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11654. <exception name="IOException" type="java.io.IOException"/>
  11655. <doc>
  11656. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  11657. the preceding.]]>
  11658. </doc>
  11659. </method>
  11660. <method name="loadClass" return="java.lang.Class"
  11661. abstract="false" native="false" synchronized="false"
  11662. static="true" final="false" visibility="public"
  11663. deprecated="not deprecated">
  11664. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11665. <param name="className" type="java.lang.String"/>
  11666. <doc>
  11667. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  11668. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  11669. try load it directly.]]>
  11670. </doc>
  11671. </method>
  11672. <method name="setConf"
  11673. abstract="false" native="false" synchronized="false"
  11674. static="false" final="false" visibility="public"
  11675. deprecated="not deprecated">
  11676. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11677. </method>
  11678. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11679. abstract="false" native="false" synchronized="false"
  11680. static="false" final="false" visibility="public"
  11681. deprecated="not deprecated">
  11682. </method>
  11683. <doc>
  11684. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  11685. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  11686. </doc>
  11687. </class>
  11688. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  11689. <!-- start interface org.apache.hadoop.io.RawComparator -->
  11690. <interface name="RawComparator" abstract="true"
  11691. static="false" final="false" visibility="public"
  11692. deprecated="not deprecated">
  11693. <implements name="java.util.Comparator"/>
  11694. <method name="compare" return="int"
  11695. abstract="false" native="false" synchronized="false"
  11696. static="false" final="false" visibility="public"
  11697. deprecated="not deprecated">
  11698. <param name="b1" type="byte[]"/>
  11699. <param name="s1" type="int"/>
  11700. <param name="l1" type="int"/>
  11701. <param name="b2" type="byte[]"/>
  11702. <param name="s2" type="int"/>
  11703. <param name="l2" type="int"/>
  11704. </method>
  11705. <doc>
  11706. <![CDATA[<p>
  11707. A {@link Comparator} that operates directly on byte representations of
  11708. objects.
  11709. </p>
  11710. @param <T>
  11711. @see DeserializerComparator]]>
  11712. </doc>
  11713. </interface>
  11714. <!-- end interface org.apache.hadoop.io.RawComparator -->
  11715. <!-- start class org.apache.hadoop.io.SequenceFile -->
  11716. <class name="SequenceFile" extends="java.lang.Object"
  11717. abstract="false"
  11718. static="false" final="false" visibility="public"
  11719. deprecated="not deprecated">
  11720. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  11721. abstract="false" native="false" synchronized="false"
  11722. static="true" final="false" visibility="public"
  11723. deprecated="not deprecated">
  11724. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11725. <doc>
  11726. <![CDATA[Get the compression type for the reduce outputs
  11727. @param job the job config to look in
  11728. @return the kind of compression to use]]>
  11729. </doc>
  11730. </method>
  11731. <method name="setCompressionType"
  11732. abstract="false" native="false" synchronized="false"
  11733. static="true" final="false" visibility="public"
  11734. deprecated="not deprecated">
  11735. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11736. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11737. <doc>
  11738. <![CDATA[Set the compression type for sequence files.
  11739. @param job the configuration to modify
  11740. @param val the new compression type (none, block, record)]]>
  11741. </doc>
  11742. </method>
  11743. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11744. abstract="false" native="false" synchronized="false"
  11745. static="true" final="false" visibility="public"
  11746. deprecated="not deprecated">
  11747. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11749. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11750. <param name="keyClass" type="java.lang.Class"/>
  11751. <param name="valClass" type="java.lang.Class"/>
  11752. <exception name="IOException" type="java.io.IOException"/>
  11753. <doc>
  11754. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11755. @param fs The configured filesystem.
  11756. @param conf The configuration.
  11757. @param name The name of the file.
  11758. @param keyClass The 'key' type.
  11759. @param valClass The 'value' type.
  11760. @return Returns the handle to the constructed SequenceFile Writer.
  11761. @throws IOException]]>
  11762. </doc>
  11763. </method>
  11764. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11765. abstract="false" native="false" synchronized="false"
  11766. static="true" final="false" visibility="public"
  11767. deprecated="not deprecated">
  11768. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11769. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11770. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11771. <param name="keyClass" type="java.lang.Class"/>
  11772. <param name="valClass" type="java.lang.Class"/>
  11773. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11774. <exception name="IOException" type="java.io.IOException"/>
  11775. <doc>
  11776. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11777. @param fs The configured filesystem.
  11778. @param conf The configuration.
  11779. @param name The name of the file.
  11780. @param keyClass The 'key' type.
  11781. @param valClass The 'value' type.
  11782. @param compressionType The compression type.
  11783. @return Returns the handle to the constructed SequenceFile Writer.
  11784. @throws IOException]]>
  11785. </doc>
  11786. </method>
  11787. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11788. abstract="false" native="false" synchronized="false"
  11789. static="true" final="false" visibility="public"
  11790. deprecated="not deprecated">
  11791. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11793. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11794. <param name="keyClass" type="java.lang.Class"/>
  11795. <param name="valClass" type="java.lang.Class"/>
  11796. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11797. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11798. <exception name="IOException" type="java.io.IOException"/>
  11799. <doc>
  11800. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11801. @param fs The configured filesystem.
  11802. @param conf The configuration.
  11803. @param name The name of the file.
  11804. @param keyClass The 'key' type.
  11805. @param valClass The 'value' type.
  11806. @param compressionType The compression type.
  11807. @param progress The Progressable object to track progress.
  11808. @return Returns the handle to the constructed SequenceFile Writer.
  11809. @throws IOException]]>
  11810. </doc>
  11811. </method>
  11812. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11813. abstract="false" native="false" synchronized="false"
  11814. static="true" final="false" visibility="public"
  11815. deprecated="not deprecated">
  11816. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11817. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11818. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11819. <param name="keyClass" type="java.lang.Class"/>
  11820. <param name="valClass" type="java.lang.Class"/>
  11821. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11822. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11823. <exception name="IOException" type="java.io.IOException"/>
  11824. <doc>
  11825. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11826. @param fs The configured filesystem.
  11827. @param conf The configuration.
  11828. @param name The name of the file.
  11829. @param keyClass The 'key' type.
  11830. @param valClass The 'value' type.
  11831. @param compressionType The compression type.
  11832. @param codec The compression codec.
  11833. @return Returns the handle to the constructed SequenceFile Writer.
  11834. @throws IOException]]>
  11835. </doc>
  11836. </method>
  11837. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11838. abstract="false" native="false" synchronized="false"
  11839. static="true" final="false" visibility="public"
  11840. deprecated="not deprecated">
  11841. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11843. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11844. <param name="keyClass" type="java.lang.Class"/>
  11845. <param name="valClass" type="java.lang.Class"/>
  11846. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11847. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11848. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11849. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11850. <exception name="IOException" type="java.io.IOException"/>
  11851. <doc>
  11852. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11853. @param fs The configured filesystem.
  11854. @param conf The configuration.
  11855. @param name The name of the file.
  11856. @param keyClass The 'key' type.
  11857. @param valClass The 'value' type.
  11858. @param compressionType The compression type.
  11859. @param codec The compression codec.
  11860. @param progress The Progressable object to track progress.
  11861. @param metadata The metadata of the file.
  11862. @return Returns the handle to the constructed SequenceFile Writer.
  11863. @throws IOException]]>
  11864. </doc>
  11865. </method>
  11866. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11867. abstract="false" native="false" synchronized="false"
  11868. static="true" final="false" visibility="public"
  11869. deprecated="not deprecated">
  11870. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11871. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11872. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11873. <param name="keyClass" type="java.lang.Class"/>
  11874. <param name="valClass" type="java.lang.Class"/>
  11875. <param name="bufferSize" type="int"/>
  11876. <param name="replication" type="short"/>
  11877. <param name="blockSize" type="long"/>
  11878. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11879. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11880. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11881. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11882. <exception name="IOException" type="java.io.IOException"/>
  11883. <doc>
  11884. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11885. @param fs The configured filesystem.
  11886. @param conf The configuration.
  11887. @param name The name of the file.
  11888. @param keyClass The 'key' type.
  11889. @param valClass The 'value' type.
  11890. @param bufferSize buffer size for the underlaying outputstream.
  11891. @param replication replication factor for the file.
  11892. @param blockSize block size for the file.
  11893. @param compressionType The compression type.
  11894. @param codec The compression codec.
  11895. @param progress The Progressable object to track progress.
  11896. @param metadata The metadata of the file.
  11897. @return Returns the handle to the constructed SequenceFile Writer.
  11898. @throws IOException]]>
  11899. </doc>
  11900. </method>
  11901. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11902. abstract="false" native="false" synchronized="false"
  11903. static="true" final="false" visibility="public"
  11904. deprecated="not deprecated">
  11905. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11906. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11907. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11908. <param name="keyClass" type="java.lang.Class"/>
  11909. <param name="valClass" type="java.lang.Class"/>
  11910. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11911. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11912. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11913. <exception name="IOException" type="java.io.IOException"/>
  11914. <doc>
  11915. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11916. @param fs The configured filesystem.
  11917. @param conf The configuration.
  11918. @param name The name of the file.
  11919. @param keyClass The 'key' type.
  11920. @param valClass The 'value' type.
  11921. @param compressionType The compression type.
  11922. @param codec The compression codec.
  11923. @param progress The Progressable object to track progress.
  11924. @return Returns the handle to the constructed SequenceFile Writer.
  11925. @throws IOException]]>
  11926. </doc>
  11927. </method>
  11928. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11929. abstract="false" native="false" synchronized="false"
  11930. static="true" final="false" visibility="public"
  11931. deprecated="not deprecated">
  11932. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11933. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11934. <param name="keyClass" type="java.lang.Class"/>
  11935. <param name="valClass" type="java.lang.Class"/>
  11936. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11937. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11938. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11939. <exception name="IOException" type="java.io.IOException"/>
  11940. <doc>
  11941. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11942. @param conf The configuration.
  11943. @param out The stream on top which the writer is to be constructed.
  11944. @param keyClass The 'key' type.
  11945. @param valClass The 'value' type.
  11946. @param compressionType The compression type.
  11947. @param codec The compression codec.
  11948. @param metadata The metadata of the file.
  11949. @return Returns the handle to the constructed SequenceFile Writer.
  11950. @throws IOException]]>
  11951. </doc>
  11952. </method>
  11953. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11954. abstract="false" native="false" synchronized="false"
  11955. static="true" final="false" visibility="public"
  11956. deprecated="not deprecated">
  11957. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11958. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11959. <param name="keyClass" type="java.lang.Class"/>
  11960. <param name="valClass" type="java.lang.Class"/>
  11961. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11962. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11963. <exception name="IOException" type="java.io.IOException"/>
  11964. <doc>
  11965. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11966. @param conf The configuration.
  11967. @param out The stream on top which the writer is to be constructed.
  11968. @param keyClass The 'key' type.
  11969. @param valClass The 'value' type.
  11970. @param compressionType The compression type.
  11971. @param codec The compression codec.
  11972. @return Returns the handle to the constructed SequenceFile Writer.
  11973. @throws IOException]]>
  11974. </doc>
  11975. </method>
  11976. <field name="SYNC_INTERVAL" type="int"
  11977. transient="false" volatile="false"
  11978. static="true" final="true" visibility="public"
  11979. deprecated="not deprecated">
  11980. <doc>
  11981. <![CDATA[The number of bytes between sync points.]]>
  11982. </doc>
  11983. </field>
  11984. <doc>
  11985. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  11986. pairs.
  11987. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  11988. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  11989. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  11990. {@link CompressionType} used to compress key/value pairs:
  11991. <ol>
  11992. <li>
  11993. <code>Writer</code> : Uncompressed records.
  11994. </li>
  11995. <li>
  11996. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  11997. values.
  11998. </li>
  11999. <li>
  12000. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  12001. values are collected in 'blocks'
  12002. separately and compressed. The size of
  12003. the 'block' is configurable.
  12004. </ol>
  12005. <p>The actual compression algorithm used to compress key and/or values can be
  12006. specified by using the appropriate {@link CompressionCodec}.</p>
  12007. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  12008. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  12009. <p>The {@link Reader} acts as the bridge and can read any of the above
  12010. <code>SequenceFile</code> formats.</p>
  12011. <h4 id="Formats">SequenceFile Formats</h4>
  12012. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  12013. depending on the <code>CompressionType</code> specified. All of them share a
  12014. <a href="#Header">common header</a> described below.
  12015. <h5 id="Header">SequenceFile Header</h5>
  12016. <ul>
  12017. <li>
  12018. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  12019. version number (e.g. SEQ4 or SEQ6)
  12020. </li>
  12021. <li>
  12022. keyClassName -key class
  12023. </li>
  12024. <li>
  12025. valueClassName - value class
  12026. </li>
  12027. <li>
  12028. compression - A boolean which specifies if compression is turned on for
  12029. keys/values in this file.
  12030. </li>
  12031. <li>
  12032. blockCompression - A boolean which specifies if block-compression is
  12033. turned on for keys/values in this file.
  12034. </li>
  12035. <li>
  12036. compression codec - <code>CompressionCodec</code> class which is used for
  12037. compression of keys and/or values (if compression is
  12038. enabled).
  12039. </li>
  12040. <li>
  12041. metadata - {@link Metadata} for this file.
  12042. </li>
  12043. <li>
  12044. sync - A sync marker to denote end of the header.
  12045. </li>
  12046. </ul>
  12047. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  12048. <ul>
  12049. <li>
  12050. <a href="#Header">Header</a>
  12051. </li>
  12052. <li>
  12053. Record
  12054. <ul>
  12055. <li>Record length</li>
  12056. <li>Key length</li>
  12057. <li>Key</li>
  12058. <li>Value</li>
  12059. </ul>
  12060. </li>
  12061. <li>
  12062. A sync-marker every few <code>100</code> bytes or so.
  12063. </li>
  12064. </ul>
  12065. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  12066. <ul>
  12067. <li>
  12068. <a href="#Header">Header</a>
  12069. </li>
  12070. <li>
  12071. Record
  12072. <ul>
  12073. <li>Record length</li>
  12074. <li>Key length</li>
  12075. <li>Key</li>
  12076. <li><i>Compressed</i> Value</li>
  12077. </ul>
  12078. </li>
  12079. <li>
  12080. A sync-marker every few <code>100</code> bytes or so.
  12081. </li>
  12082. </ul>
  12083. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  12084. <ul>
  12085. <li>
  12086. <a href="#Header">Header</a>
  12087. </li>
  12088. <li>
  12089. Record <i>Block</i>
  12090. <ul>
  12091. <li>Compressed key-lengths block-size</li>
  12092. <li>Compressed key-lengths block</li>
  12093. <li>Compressed keys block-size</li>
  12094. <li>Compressed keys block</li>
  12095. <li>Compressed value-lengths block-size</li>
  12096. <li>Compressed value-lengths block</li>
  12097. <li>Compressed values block-size</li>
  12098. <li>Compressed values block</li>
  12099. </ul>
  12100. </li>
  12101. <li>
  12102. A sync-marker every few <code>100</code> bytes or so.
  12103. </li>
  12104. </ul>
  12105. <p>The compressed blocks of key lengths and value lengths consist of the
  12106. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  12107. format.</p>
  12108. @see CompressionCodec]]>
  12109. </doc>
  12110. </class>
  12111. <!-- end class org.apache.hadoop.io.SequenceFile -->
  12112. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12113. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  12114. abstract="false"
  12115. static="true" final="true" visibility="public"
  12116. deprecated="not deprecated">
  12117. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  12118. abstract="false" native="false" synchronized="false"
  12119. static="true" final="false" visibility="public"
  12120. deprecated="not deprecated">
  12121. </method>
  12122. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12123. abstract="false" native="false" synchronized="false"
  12124. static="true" final="false" visibility="public"
  12125. deprecated="not deprecated">
  12126. <param name="name" type="java.lang.String"/>
  12127. </method>
  12128. <doc>
  12129. <![CDATA[The compression type used to compress key/value pairs in the
  12130. {@link SequenceFile}.
  12131. @see SequenceFile.Writer]]>
  12132. </doc>
  12133. </class>
  12134. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12135. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  12136. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  12137. abstract="false"
  12138. static="true" final="false" visibility="public"
  12139. deprecated="not deprecated">
  12140. <implements name="org.apache.hadoop.io.Writable"/>
  12141. <constructor name="SequenceFile.Metadata"
  12142. static="false" final="false" visibility="public"
  12143. deprecated="not deprecated">
  12144. </constructor>
  12145. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  12146. static="false" final="false" visibility="public"
  12147. deprecated="not deprecated">
  12148. </constructor>
  12149. <method name="get" return="org.apache.hadoop.io.Text"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="false" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <param name="name" type="org.apache.hadoop.io.Text"/>
  12154. </method>
  12155. <method name="set"
  12156. abstract="false" native="false" synchronized="false"
  12157. static="false" final="false" visibility="public"
  12158. deprecated="not deprecated">
  12159. <param name="name" type="org.apache.hadoop.io.Text"/>
  12160. <param name="value" type="org.apache.hadoop.io.Text"/>
  12161. </method>
  12162. <method name="getMetadata" return="java.util.TreeMap"
  12163. abstract="false" native="false" synchronized="false"
  12164. static="false" final="false" visibility="public"
  12165. deprecated="not deprecated">
  12166. </method>
  12167. <method name="write"
  12168. abstract="false" native="false" synchronized="false"
  12169. static="false" final="false" visibility="public"
  12170. deprecated="not deprecated">
  12171. <param name="out" type="java.io.DataOutput"/>
  12172. <exception name="IOException" type="java.io.IOException"/>
  12173. </method>
  12174. <method name="readFields"
  12175. abstract="false" native="false" synchronized="false"
  12176. static="false" final="false" visibility="public"
  12177. deprecated="not deprecated">
  12178. <param name="in" type="java.io.DataInput"/>
  12179. <exception name="IOException" type="java.io.IOException"/>
  12180. </method>
  12181. <method name="equals" return="boolean"
  12182. abstract="false" native="false" synchronized="false"
  12183. static="false" final="false" visibility="public"
  12184. deprecated="not deprecated">
  12185. <param name="other" type="java.lang.Object"/>
  12186. </method>
  12187. <method name="equals" return="boolean"
  12188. abstract="false" native="false" synchronized="false"
  12189. static="false" final="false" visibility="public"
  12190. deprecated="not deprecated">
  12191. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12192. </method>
  12193. <method name="hashCode" return="int"
  12194. abstract="false" native="false" synchronized="false"
  12195. static="false" final="false" visibility="public"
  12196. deprecated="not deprecated">
  12197. </method>
  12198. <method name="toString" return="java.lang.String"
  12199. abstract="false" native="false" synchronized="false"
  12200. static="false" final="false" visibility="public"
  12201. deprecated="not deprecated">
  12202. </method>
  12203. <doc>
  12204. <![CDATA[The class encapsulating with the metadata of a file.
  12205. The metadata of a file is a list of attribute name/value
  12206. pairs of Text type.]]>
  12207. </doc>
  12208. </class>
  12209. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  12210. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  12211. <class name="SequenceFile.Reader" 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="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="not deprecated">
  12219. <exception name="IOException" type="java.io.IOException"/>
  12220. <doc>
  12221. <![CDATA[Construct a reader by opening a file from the given file system.
  12222. @param fs The file system used to open the file.
  12223. @param file The file being read.
  12224. @param conf Configuration
  12225. @throws IOException]]>
  12226. </doc>
  12227. </constructor>
  12228. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, int, long, long, org.apache.hadoop.conf.Configuration"
  12229. static="false" final="false" visibility="public"
  12230. deprecated="not deprecated">
  12231. <exception name="IOException" type="java.io.IOException"/>
  12232. <doc>
  12233. <![CDATA[Construct a reader by the given input stream.
  12234. @param in An input stream.
  12235. @param buffersize The buffer size used to read the file.
  12236. @param start The starting position.
  12237. @param length The length being read.
  12238. @param conf Configuration
  12239. @throws IOException]]>
  12240. </doc>
  12241. </constructor>
  12242. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  12243. abstract="false" native="false" synchronized="false"
  12244. static="false" final="false" visibility="protected"
  12245. deprecated="not deprecated">
  12246. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12247. <param name="file" type="org.apache.hadoop.fs.Path"/>
  12248. <param name="bufferSize" type="int"/>
  12249. <param name="length" type="long"/>
  12250. <exception name="IOException" type="java.io.IOException"/>
  12251. <doc>
  12252. <![CDATA[Override this method to specialize the type of
  12253. {@link FSDataInputStream} returned.
  12254. @param fs The file system used to open the file.
  12255. @param file The file being read.
  12256. @param bufferSize The buffer size used to read the file.
  12257. @param length The length being read if it is >= 0. Otherwise,
  12258. the length is not available.
  12259. @return The opened stream.
  12260. @throws IOException]]>
  12261. </doc>
  12262. </method>
  12263. <method name="close"
  12264. abstract="false" native="false" synchronized="true"
  12265. static="false" final="false" visibility="public"
  12266. deprecated="not deprecated">
  12267. <exception name="IOException" type="java.io.IOException"/>
  12268. <doc>
  12269. <![CDATA[Close the file.]]>
  12270. </doc>
  12271. </method>
  12272. <method name="getKeyClassName" return="java.lang.String"
  12273. abstract="false" native="false" synchronized="false"
  12274. static="false" final="false" visibility="public"
  12275. deprecated="not deprecated">
  12276. <doc>
  12277. <![CDATA[Returns the name of the key class.]]>
  12278. </doc>
  12279. </method>
  12280. <method name="getKeyClass" return="java.lang.Class"
  12281. abstract="false" native="false" synchronized="true"
  12282. static="false" final="false" visibility="public"
  12283. deprecated="not deprecated">
  12284. <doc>
  12285. <![CDATA[Returns the class of keys in this file.]]>
  12286. </doc>
  12287. </method>
  12288. <method name="getValueClassName" return="java.lang.String"
  12289. abstract="false" native="false" synchronized="false"
  12290. static="false" final="false" visibility="public"
  12291. deprecated="not deprecated">
  12292. <doc>
  12293. <![CDATA[Returns the name of the value class.]]>
  12294. </doc>
  12295. </method>
  12296. <method name="getValueClass" return="java.lang.Class"
  12297. abstract="false" native="false" synchronized="true"
  12298. static="false" final="false" visibility="public"
  12299. deprecated="not deprecated">
  12300. <doc>
  12301. <![CDATA[Returns the class of values in this file.]]>
  12302. </doc>
  12303. </method>
  12304. <method name="isCompressed" return="boolean"
  12305. abstract="false" native="false" synchronized="false"
  12306. static="false" final="false" visibility="public"
  12307. deprecated="not deprecated">
  12308. <doc>
  12309. <![CDATA[Returns true if values are compressed.]]>
  12310. </doc>
  12311. </method>
  12312. <method name="isBlockCompressed" return="boolean"
  12313. abstract="false" native="false" synchronized="false"
  12314. static="false" final="false" visibility="public"
  12315. deprecated="not deprecated">
  12316. <doc>
  12317. <![CDATA[Returns true if records are block-compressed.]]>
  12318. </doc>
  12319. </method>
  12320. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  12321. abstract="false" native="false" synchronized="false"
  12322. static="false" final="false" visibility="public"
  12323. deprecated="not deprecated">
  12324. <doc>
  12325. <![CDATA[Returns the compression codec of data in this file.]]>
  12326. </doc>
  12327. </method>
  12328. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  12329. abstract="false" native="false" synchronized="false"
  12330. static="false" final="false" visibility="public"
  12331. deprecated="not deprecated">
  12332. <doc>
  12333. <![CDATA[Returns the metadata object of the file]]>
  12334. </doc>
  12335. </method>
  12336. <method name="getCurrentValue"
  12337. abstract="false" native="false" synchronized="true"
  12338. static="false" final="false" visibility="public"
  12339. deprecated="not deprecated">
  12340. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12341. <exception name="IOException" type="java.io.IOException"/>
  12342. <doc>
  12343. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  12344. @param val : The 'value' to be read.
  12345. @throws IOException]]>
  12346. </doc>
  12347. </method>
  12348. <method name="getCurrentValue" return="java.lang.Object"
  12349. abstract="false" native="false" synchronized="true"
  12350. static="false" final="false" visibility="public"
  12351. deprecated="not deprecated">
  12352. <param name="val" type="java.lang.Object"/>
  12353. <exception name="IOException" type="java.io.IOException"/>
  12354. <doc>
  12355. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  12356. @param val : The 'value' to be read.
  12357. @throws IOException]]>
  12358. </doc>
  12359. </method>
  12360. <method name="next" return="boolean"
  12361. abstract="false" native="false" synchronized="true"
  12362. static="false" final="false" visibility="public"
  12363. deprecated="not deprecated">
  12364. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12365. <exception name="IOException" type="java.io.IOException"/>
  12366. <doc>
  12367. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  12368. value. True if another entry exists, and false at end of file.]]>
  12369. </doc>
  12370. </method>
  12371. <method name="next" return="boolean"
  12372. abstract="false" native="false" synchronized="true"
  12373. static="false" final="false" visibility="public"
  12374. deprecated="not deprecated">
  12375. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12376. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12377. <exception name="IOException" type="java.io.IOException"/>
  12378. <doc>
  12379. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  12380. <code>val</code>. Returns true if such a pair exists and false when at
  12381. end of file]]>
  12382. </doc>
  12383. </method>
  12384. <method name="next" return="int"
  12385. abstract="false" native="false" synchronized="true"
  12386. static="false" final="false" visibility="public"
  12387. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  12388. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12389. <exception name="IOException" type="java.io.IOException"/>
  12390. <doc>
  12391. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  12392. </doc>
  12393. </method>
  12394. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12395. abstract="false" native="false" synchronized="false"
  12396. static="false" final="false" visibility="public"
  12397. deprecated="not deprecated">
  12398. </method>
  12399. <method name="nextRaw" return="int"
  12400. abstract="false" native="false" synchronized="true"
  12401. static="false" final="false" visibility="public"
  12402. deprecated="not deprecated">
  12403. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12404. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12405. <exception name="IOException" type="java.io.IOException"/>
  12406. <doc>
  12407. <![CDATA[Read 'raw' records.
  12408. @param key - The buffer into which the key is read
  12409. @param val - The 'raw' value
  12410. @return Returns the total record length or -1 for end of file
  12411. @throws IOException]]>
  12412. </doc>
  12413. </method>
  12414. <method name="nextRawKey" return="int"
  12415. abstract="false" native="false" synchronized="true"
  12416. static="false" final="false" visibility="public"
  12417. deprecated="not deprecated">
  12418. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  12419. <exception name="IOException" type="java.io.IOException"/>
  12420. <doc>
  12421. <![CDATA[Read 'raw' keys.
  12422. @param key - The buffer into which the key is read
  12423. @return Returns the key length or -1 for end of file
  12424. @throws IOException]]>
  12425. </doc>
  12426. </method>
  12427. <method name="next" return="java.lang.Object"
  12428. abstract="false" native="false" synchronized="true"
  12429. static="false" final="false" visibility="public"
  12430. deprecated="not deprecated">
  12431. <param name="key" type="java.lang.Object"/>
  12432. <exception name="IOException" type="java.io.IOException"/>
  12433. <doc>
  12434. <![CDATA[Read the next key in the file, skipping its
  12435. value. Return null at end of file.]]>
  12436. </doc>
  12437. </method>
  12438. <method name="nextRawValue" return="int"
  12439. abstract="false" native="false" synchronized="true"
  12440. static="false" final="false" visibility="public"
  12441. deprecated="not deprecated">
  12442. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12443. <exception name="IOException" type="java.io.IOException"/>
  12444. <doc>
  12445. <![CDATA[Read 'raw' values.
  12446. @param val - The 'raw' value
  12447. @return Returns the value length
  12448. @throws IOException]]>
  12449. </doc>
  12450. </method>
  12451. <method name="seek"
  12452. abstract="false" native="false" synchronized="true"
  12453. static="false" final="false" visibility="public"
  12454. deprecated="not deprecated">
  12455. <param name="position" type="long"/>
  12456. <exception name="IOException" type="java.io.IOException"/>
  12457. <doc>
  12458. <![CDATA[Set the current byte position in the input file.
  12459. <p>The position passed must be a position returned by {@link
  12460. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  12461. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  12462. </doc>
  12463. </method>
  12464. <method name="sync"
  12465. abstract="false" native="false" synchronized="true"
  12466. static="false" final="false" visibility="public"
  12467. deprecated="not deprecated">
  12468. <param name="position" type="long"/>
  12469. <exception name="IOException" type="java.io.IOException"/>
  12470. <doc>
  12471. <![CDATA[Seek to the next sync mark past a given position.]]>
  12472. </doc>
  12473. </method>
  12474. <method name="syncSeen" return="boolean"
  12475. abstract="false" native="false" synchronized="true"
  12476. static="false" final="false" visibility="public"
  12477. deprecated="not deprecated">
  12478. <doc>
  12479. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  12480. </doc>
  12481. </method>
  12482. <method name="getPosition" return="long"
  12483. abstract="false" native="false" synchronized="true"
  12484. static="false" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. <exception name="IOException" type="java.io.IOException"/>
  12487. <doc>
  12488. <![CDATA[Return the current byte position in the input file.]]>
  12489. </doc>
  12490. </method>
  12491. <method name="toString" return="java.lang.String"
  12492. abstract="false" native="false" synchronized="false"
  12493. static="false" final="false" visibility="public"
  12494. deprecated="not deprecated">
  12495. <doc>
  12496. <![CDATA[Returns the name of the file.]]>
  12497. </doc>
  12498. </method>
  12499. <doc>
  12500. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  12501. </doc>
  12502. </class>
  12503. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  12504. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  12505. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  12506. abstract="false"
  12507. static="true" final="false" visibility="public"
  12508. deprecated="not deprecated">
  12509. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  12510. static="false" final="false" visibility="public"
  12511. deprecated="not deprecated">
  12512. <doc>
  12513. <![CDATA[Sort and merge files containing the named classes.]]>
  12514. </doc>
  12515. </constructor>
  12516. <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"
  12517. static="false" final="false" visibility="public"
  12518. deprecated="not deprecated">
  12519. <doc>
  12520. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  12521. </doc>
  12522. </constructor>
  12523. <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"
  12524. static="false" final="false" visibility="public"
  12525. deprecated="not deprecated">
  12526. <doc>
  12527. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  12528. </doc>
  12529. </constructor>
  12530. <method name="setFactor"
  12531. abstract="false" native="false" synchronized="false"
  12532. static="false" final="false" visibility="public"
  12533. deprecated="not deprecated">
  12534. <param name="factor" type="int"/>
  12535. <doc>
  12536. <![CDATA[Set the number of streams to merge at once.]]>
  12537. </doc>
  12538. </method>
  12539. <method name="getFactor" return="int"
  12540. abstract="false" native="false" synchronized="false"
  12541. static="false" final="false" visibility="public"
  12542. deprecated="not deprecated">
  12543. <doc>
  12544. <![CDATA[Get the number of streams to merge at once.]]>
  12545. </doc>
  12546. </method>
  12547. <method name="setMemory"
  12548. abstract="false" native="false" synchronized="false"
  12549. static="false" final="false" visibility="public"
  12550. deprecated="not deprecated">
  12551. <param name="memory" type="int"/>
  12552. <doc>
  12553. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  12554. </doc>
  12555. </method>
  12556. <method name="getMemory" return="int"
  12557. abstract="false" native="false" synchronized="false"
  12558. static="false" final="false" visibility="public"
  12559. deprecated="not deprecated">
  12560. <doc>
  12561. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  12562. </doc>
  12563. </method>
  12564. <method name="setProgressable"
  12565. abstract="false" native="false" synchronized="false"
  12566. static="false" final="false" visibility="public"
  12567. deprecated="not deprecated">
  12568. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  12569. <doc>
  12570. <![CDATA[Set the progressable object in order to report progress.]]>
  12571. </doc>
  12572. </method>
  12573. <method name="sort"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12578. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12579. <param name="deleteInput" type="boolean"/>
  12580. <exception name="IOException" type="java.io.IOException"/>
  12581. <doc>
  12582. <![CDATA[Perform a file sort from a set of input files into an output file.
  12583. @param inFiles the files to be sorted
  12584. @param outFile the sorted output file
  12585. @param deleteInput should the input files be deleted as they are read?]]>
  12586. </doc>
  12587. </method>
  12588. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12589. abstract="false" native="false" synchronized="false"
  12590. static="false" final="false" visibility="public"
  12591. deprecated="not deprecated">
  12592. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12593. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12594. <param name="deleteInput" type="boolean"/>
  12595. <exception name="IOException" type="java.io.IOException"/>
  12596. <doc>
  12597. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  12598. @param inFiles the files to be sorted
  12599. @param tempDir the directory where temp files are created during sort
  12600. @param deleteInput should the input files be deleted as they are read?
  12601. @return iterator the RawKeyValueIterator]]>
  12602. </doc>
  12603. </method>
  12604. <method name="sort"
  12605. abstract="false" native="false" synchronized="false"
  12606. static="false" final="false" visibility="public"
  12607. deprecated="not deprecated">
  12608. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  12609. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12610. <exception name="IOException" type="java.io.IOException"/>
  12611. <doc>
  12612. <![CDATA[The backwards compatible interface to sort.
  12613. @param inFile the input file to sort
  12614. @param outFile the sorted output file]]>
  12615. </doc>
  12616. </method>
  12617. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12618. abstract="false" native="false" synchronized="false"
  12619. static="false" final="false" visibility="public"
  12620. deprecated="not deprecated">
  12621. <param name="segments" type="java.util.List"/>
  12622. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12623. <exception name="IOException" type="java.io.IOException"/>
  12624. <doc>
  12625. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  12626. @param segments the list of SegmentDescriptors
  12627. @param tmpDir the directory to write temporary files into
  12628. @return RawKeyValueIterator
  12629. @throws IOException]]>
  12630. </doc>
  12631. </method>
  12632. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12633. abstract="false" native="false" synchronized="false"
  12634. static="false" final="false" visibility="public"
  12635. deprecated="not deprecated">
  12636. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12637. <param name="deleteInputs" type="boolean"/>
  12638. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12639. <exception name="IOException" type="java.io.IOException"/>
  12640. <doc>
  12641. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  12642. that is already set
  12643. @param inNames the array of path names
  12644. @param deleteInputs true if the input files should be deleted when
  12645. unnecessary
  12646. @param tmpDir the directory to write temporary files into
  12647. @return RawKeyValueIteratorMergeQueue
  12648. @throws IOException]]>
  12649. </doc>
  12650. </method>
  12651. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12652. abstract="false" native="false" synchronized="false"
  12653. static="false" final="false" visibility="public"
  12654. deprecated="not deprecated">
  12655. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12656. <param name="deleteInputs" type="boolean"/>
  12657. <param name="factor" type="int"/>
  12658. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12659. <exception name="IOException" type="java.io.IOException"/>
  12660. <doc>
  12661. <![CDATA[Merges the contents of files passed in Path[]
  12662. @param inNames the array of path names
  12663. @param deleteInputs true if the input files should be deleted when
  12664. unnecessary
  12665. @param factor the factor that will be used as the maximum merge fan-in
  12666. @param tmpDir the directory to write temporary files into
  12667. @return RawKeyValueIteratorMergeQueue
  12668. @throws IOException]]>
  12669. </doc>
  12670. </method>
  12671. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12672. abstract="false" native="false" synchronized="false"
  12673. static="false" final="false" visibility="public"
  12674. deprecated="not deprecated">
  12675. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12676. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12677. <param name="deleteInputs" type="boolean"/>
  12678. <exception name="IOException" type="java.io.IOException"/>
  12679. <doc>
  12680. <![CDATA[Merges the contents of files passed in Path[]
  12681. @param inNames the array of path names
  12682. @param tempDir the directory for creating temp files during merge
  12683. @param deleteInputs true if the input files should be deleted when
  12684. unnecessary
  12685. @return RawKeyValueIteratorMergeQueue
  12686. @throws IOException]]>
  12687. </doc>
  12688. </method>
  12689. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  12690. abstract="false" native="false" synchronized="false"
  12691. static="false" final="false" visibility="public"
  12692. deprecated="not deprecated">
  12693. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  12694. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  12695. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12696. <exception name="IOException" type="java.io.IOException"/>
  12697. <doc>
  12698. <![CDATA[Clones the attributes (like compression of the input file and creates a
  12699. corresponding Writer
  12700. @param inputFile the path of the input file whose attributes should be
  12701. cloned
  12702. @param outputFile the path of the output file
  12703. @param prog the Progressable to report status during the file write
  12704. @return Writer
  12705. @throws IOException]]>
  12706. </doc>
  12707. </method>
  12708. <method name="writeFile"
  12709. abstract="false" native="false" synchronized="false"
  12710. static="false" final="false" visibility="public"
  12711. deprecated="not deprecated">
  12712. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  12713. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  12714. <exception name="IOException" type="java.io.IOException"/>
  12715. <doc>
  12716. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  12717. passed writer
  12718. @param records the RawKeyValueIterator
  12719. @param writer the Writer created earlier
  12720. @throws IOException]]>
  12721. </doc>
  12722. </method>
  12723. <method name="merge"
  12724. abstract="false" native="false" synchronized="false"
  12725. static="false" final="false" visibility="public"
  12726. deprecated="not deprecated">
  12727. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12728. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12729. <exception name="IOException" type="java.io.IOException"/>
  12730. <doc>
  12731. <![CDATA[Merge the provided files.
  12732. @param inFiles the array of input path names
  12733. @param outFile the final output file
  12734. @throws IOException]]>
  12735. </doc>
  12736. </method>
  12737. <doc>
  12738. <![CDATA[Sorts key/value pairs in a sequence-format file.
  12739. <p>For best performance, applications should make sure that the {@link
  12740. Writable#readFields(DataInput)} implementation of their keys is
  12741. very efficient. In particular, it should avoid allocating memory.]]>
  12742. </doc>
  12743. </class>
  12744. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  12745. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12746. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  12747. static="true" final="false" visibility="public"
  12748. deprecated="not deprecated">
  12749. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="false" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <exception name="IOException" type="java.io.IOException"/>
  12754. <doc>
  12755. <![CDATA[Gets the current raw key
  12756. @return DataOutputBuffer
  12757. @throws IOException]]>
  12758. </doc>
  12759. </method>
  12760. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12761. abstract="false" native="false" synchronized="false"
  12762. static="false" final="false" visibility="public"
  12763. deprecated="not deprecated">
  12764. <exception name="IOException" type="java.io.IOException"/>
  12765. <doc>
  12766. <![CDATA[Gets the current raw value
  12767. @return ValueBytes
  12768. @throws IOException]]>
  12769. </doc>
  12770. </method>
  12771. <method name="next" return="boolean"
  12772. abstract="false" native="false" synchronized="false"
  12773. static="false" final="false" visibility="public"
  12774. deprecated="not deprecated">
  12775. <exception name="IOException" type="java.io.IOException"/>
  12776. <doc>
  12777. <![CDATA[Sets up the current key and value (for getKey and getValue)
  12778. @return true if there exists a key/value, false otherwise
  12779. @throws IOException]]>
  12780. </doc>
  12781. </method>
  12782. <method name="close"
  12783. abstract="false" native="false" synchronized="false"
  12784. static="false" final="false" visibility="public"
  12785. deprecated="not deprecated">
  12786. <exception name="IOException" type="java.io.IOException"/>
  12787. <doc>
  12788. <![CDATA[closes the iterator so that the underlying streams can be closed
  12789. @throws IOException]]>
  12790. </doc>
  12791. </method>
  12792. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  12793. abstract="false" native="false" synchronized="false"
  12794. static="false" final="false" visibility="public"
  12795. deprecated="not deprecated">
  12796. <doc>
  12797. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  12798. indicating the bytes processed by the iterator so far]]>
  12799. </doc>
  12800. </method>
  12801. <doc>
  12802. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  12803. </doc>
  12804. </interface>
  12805. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12806. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12807. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  12808. abstract="false"
  12809. static="false" final="false" visibility="public"
  12810. deprecated="not deprecated">
  12811. <implements name="java.lang.Comparable"/>
  12812. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  12813. static="false" final="false" visibility="public"
  12814. deprecated="not deprecated">
  12815. <doc>
  12816. <![CDATA[Constructs a segment
  12817. @param segmentOffset the offset of the segment in the file
  12818. @param segmentLength the length of the segment
  12819. @param segmentPathName the path name of the file containing the segment]]>
  12820. </doc>
  12821. </constructor>
  12822. <method name="doSync"
  12823. abstract="false" native="false" synchronized="false"
  12824. static="false" final="false" visibility="public"
  12825. deprecated="not deprecated">
  12826. <doc>
  12827. <![CDATA[Do the sync checks]]>
  12828. </doc>
  12829. </method>
  12830. <method name="preserveInput"
  12831. abstract="false" native="false" synchronized="false"
  12832. static="false" final="false" visibility="public"
  12833. deprecated="not deprecated">
  12834. <param name="preserve" type="boolean"/>
  12835. <doc>
  12836. <![CDATA[Whether to delete the files when no longer needed]]>
  12837. </doc>
  12838. </method>
  12839. <method name="shouldPreserveInput" return="boolean"
  12840. abstract="false" native="false" synchronized="false"
  12841. static="false" final="false" visibility="public"
  12842. deprecated="not deprecated">
  12843. </method>
  12844. <method name="compareTo" return="int"
  12845. abstract="false" native="false" synchronized="false"
  12846. static="false" final="false" visibility="public"
  12847. deprecated="not deprecated">
  12848. <param name="o" type="java.lang.Object"/>
  12849. </method>
  12850. <method name="equals" return="boolean"
  12851. abstract="false" native="false" synchronized="false"
  12852. static="false" final="false" visibility="public"
  12853. deprecated="not deprecated">
  12854. <param name="o" type="java.lang.Object"/>
  12855. </method>
  12856. <method name="hashCode" return="int"
  12857. abstract="false" native="false" synchronized="false"
  12858. static="false" final="false" visibility="public"
  12859. deprecated="not deprecated">
  12860. </method>
  12861. <method name="nextRawKey" return="boolean"
  12862. abstract="false" native="false" synchronized="false"
  12863. static="false" final="false" visibility="public"
  12864. deprecated="not deprecated">
  12865. <exception name="IOException" type="java.io.IOException"/>
  12866. <doc>
  12867. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  12868. @return true if there is a key returned; false, otherwise
  12869. @throws IOException]]>
  12870. </doc>
  12871. </method>
  12872. <method name="nextRawValue" return="int"
  12873. abstract="false" native="false" synchronized="false"
  12874. static="false" final="false" visibility="public"
  12875. deprecated="not deprecated">
  12876. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12877. <exception name="IOException" type="java.io.IOException"/>
  12878. <doc>
  12879. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  12880. read earlier
  12881. @param rawValue
  12882. @return the length of the value
  12883. @throws IOException]]>
  12884. </doc>
  12885. </method>
  12886. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12887. abstract="false" native="false" synchronized="false"
  12888. static="false" final="false" visibility="public"
  12889. deprecated="not deprecated">
  12890. <doc>
  12891. <![CDATA[Returns the stored rawKey]]>
  12892. </doc>
  12893. </method>
  12894. <method name="cleanup"
  12895. abstract="false" native="false" synchronized="false"
  12896. static="false" final="false" visibility="public"
  12897. deprecated="not deprecated">
  12898. <exception name="IOException" type="java.io.IOException"/>
  12899. <doc>
  12900. <![CDATA[The default cleanup. Subclasses can override this with a custom
  12901. cleanup]]>
  12902. </doc>
  12903. </method>
  12904. <doc>
  12905. <![CDATA[This class defines a merge segment. This class can be subclassed to
  12906. provide a customized cleanup method implementation. In this
  12907. implementation, cleanup closes the file handle and deletes the file]]>
  12908. </doc>
  12909. </class>
  12910. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12911. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12912. <interface name="SequenceFile.ValueBytes" abstract="true"
  12913. static="true" final="false" visibility="public"
  12914. deprecated="not deprecated">
  12915. <method name="writeUncompressedBytes"
  12916. abstract="false" native="false" synchronized="false"
  12917. static="false" final="false" visibility="public"
  12918. deprecated="not deprecated">
  12919. <param name="outStream" type="java.io.DataOutputStream"/>
  12920. <exception name="IOException" type="java.io.IOException"/>
  12921. <doc>
  12922. <![CDATA[Writes the uncompressed bytes to the outStream.
  12923. @param outStream : Stream to write uncompressed bytes into.
  12924. @throws IOException]]>
  12925. </doc>
  12926. </method>
  12927. <method name="writeCompressedBytes"
  12928. abstract="false" native="false" synchronized="false"
  12929. static="false" final="false" visibility="public"
  12930. deprecated="not deprecated">
  12931. <param name="outStream" type="java.io.DataOutputStream"/>
  12932. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12933. <exception name="IOException" type="java.io.IOException"/>
  12934. <doc>
  12935. <![CDATA[Write compressed bytes to outStream.
  12936. Note: that it will NOT compress the bytes if they are not compressed.
  12937. @param outStream : Stream to write compressed bytes into.]]>
  12938. </doc>
  12939. </method>
  12940. <method name="getSize" return="int"
  12941. abstract="false" native="false" synchronized="false"
  12942. static="false" final="false" visibility="public"
  12943. deprecated="not deprecated">
  12944. <doc>
  12945. <![CDATA[Size of stored data.]]>
  12946. </doc>
  12947. </method>
  12948. <doc>
  12949. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  12950. </doc>
  12951. </interface>
  12952. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12953. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  12954. <class name="SequenceFile.Writer" extends="java.lang.Object"
  12955. abstract="false"
  12956. static="true" final="false" visibility="public"
  12957. deprecated="not deprecated">
  12958. <implements name="java.io.Closeable"/>
  12959. <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"
  12960. static="false" final="false" visibility="public"
  12961. deprecated="not deprecated">
  12962. <exception name="IOException" type="java.io.IOException"/>
  12963. <doc>
  12964. <![CDATA[Create the named file.]]>
  12965. </doc>
  12966. </constructor>
  12967. <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"
  12968. static="false" final="false" visibility="public"
  12969. deprecated="not deprecated">
  12970. <exception name="IOException" type="java.io.IOException"/>
  12971. <doc>
  12972. <![CDATA[Create the named file with write-progress reporter.]]>
  12973. </doc>
  12974. </constructor>
  12975. <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"
  12976. static="false" final="false" visibility="public"
  12977. deprecated="not deprecated">
  12978. <exception name="IOException" type="java.io.IOException"/>
  12979. <doc>
  12980. <![CDATA[Create the named file with write-progress reporter.]]>
  12981. </doc>
  12982. </constructor>
  12983. <method name="getKeyClass" return="java.lang.Class"
  12984. abstract="false" native="false" synchronized="false"
  12985. static="false" final="false" visibility="public"
  12986. deprecated="not deprecated">
  12987. <doc>
  12988. <![CDATA[Returns the class of keys in this file.]]>
  12989. </doc>
  12990. </method>
  12991. <method name="getValueClass" return="java.lang.Class"
  12992. abstract="false" native="false" synchronized="false"
  12993. static="false" final="false" visibility="public"
  12994. deprecated="not deprecated">
  12995. <doc>
  12996. <![CDATA[Returns the class of values in this file.]]>
  12997. </doc>
  12998. </method>
  12999. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13000. abstract="false" native="false" synchronized="false"
  13001. static="false" final="false" visibility="public"
  13002. deprecated="not deprecated">
  13003. <doc>
  13004. <![CDATA[Returns the compression codec of data in this file.]]>
  13005. </doc>
  13006. </method>
  13007. <method name="sync"
  13008. abstract="false" native="false" synchronized="false"
  13009. static="false" final="false" visibility="public"
  13010. deprecated="not deprecated">
  13011. <exception name="IOException" type="java.io.IOException"/>
  13012. <doc>
  13013. <![CDATA[create a sync point]]>
  13014. </doc>
  13015. </method>
  13016. <method name="close"
  13017. abstract="false" native="false" synchronized="true"
  13018. static="false" final="false" visibility="public"
  13019. deprecated="not deprecated">
  13020. <exception name="IOException" type="java.io.IOException"/>
  13021. <doc>
  13022. <![CDATA[Close the file.]]>
  13023. </doc>
  13024. </method>
  13025. <method name="append"
  13026. abstract="false" native="false" synchronized="true"
  13027. static="false" final="false" visibility="public"
  13028. deprecated="not deprecated">
  13029. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13030. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13031. <exception name="IOException" type="java.io.IOException"/>
  13032. <doc>
  13033. <![CDATA[Append a key/value pair.]]>
  13034. </doc>
  13035. </method>
  13036. <method name="append"
  13037. abstract="false" native="false" synchronized="true"
  13038. static="false" final="false" visibility="public"
  13039. deprecated="not deprecated">
  13040. <param name="key" type="java.lang.Object"/>
  13041. <param name="val" type="java.lang.Object"/>
  13042. <exception name="IOException" type="java.io.IOException"/>
  13043. <doc>
  13044. <![CDATA[Append a key/value pair.]]>
  13045. </doc>
  13046. </method>
  13047. <method name="appendRaw"
  13048. abstract="false" native="false" synchronized="true"
  13049. static="false" final="false" visibility="public"
  13050. deprecated="not deprecated">
  13051. <param name="keyData" type="byte[]"/>
  13052. <param name="keyOffset" type="int"/>
  13053. <param name="keyLength" type="int"/>
  13054. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13055. <exception name="IOException" type="java.io.IOException"/>
  13056. </method>
  13057. <method name="getLength" return="long"
  13058. abstract="false" native="false" synchronized="true"
  13059. static="false" final="false" visibility="public"
  13060. deprecated="not deprecated">
  13061. <exception name="IOException" type="java.io.IOException"/>
  13062. <doc>
  13063. <![CDATA[Returns the current length of the output file.
  13064. <p>This always returns a synchronized position. In other words,
  13065. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  13066. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  13067. the key may be earlier in the file than key last written when this
  13068. method was called (e.g., with block-compression, it may be the first key
  13069. in the block that was being written when this method was called).]]>
  13070. </doc>
  13071. </method>
  13072. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13073. transient="false" volatile="false"
  13074. static="false" final="false" visibility="protected"
  13075. deprecated="not deprecated">
  13076. </field>
  13077. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13078. transient="false" volatile="false"
  13079. static="false" final="false" visibility="protected"
  13080. deprecated="not deprecated">
  13081. </field>
  13082. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13083. transient="false" volatile="false"
  13084. static="false" final="false" visibility="protected"
  13085. deprecated="not deprecated">
  13086. </field>
  13087. <doc>
  13088. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  13089. </doc>
  13090. </class>
  13091. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  13092. <!-- start class org.apache.hadoop.io.SetFile -->
  13093. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  13094. abstract="false"
  13095. static="false" final="false" visibility="public"
  13096. deprecated="not deprecated">
  13097. <constructor name="SetFile"
  13098. static="false" final="false" visibility="protected"
  13099. deprecated="not deprecated">
  13100. </constructor>
  13101. <doc>
  13102. <![CDATA[A file-based set of keys.]]>
  13103. </doc>
  13104. </class>
  13105. <!-- end class org.apache.hadoop.io.SetFile -->
  13106. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  13107. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  13108. abstract="false"
  13109. static="true" final="false" visibility="public"
  13110. deprecated="not deprecated">
  13111. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  13112. static="false" final="false" visibility="public"
  13113. deprecated="not deprecated">
  13114. <exception name="IOException" type="java.io.IOException"/>
  13115. <doc>
  13116. <![CDATA[Construct a set reader for the named set.]]>
  13117. </doc>
  13118. </constructor>
  13119. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  13120. static="false" final="false" visibility="public"
  13121. deprecated="not deprecated">
  13122. <exception name="IOException" type="java.io.IOException"/>
  13123. <doc>
  13124. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  13125. </doc>
  13126. </constructor>
  13127. <method name="seek" return="boolean"
  13128. abstract="false" native="false" synchronized="false"
  13129. static="false" final="false" visibility="public"
  13130. deprecated="not deprecated">
  13131. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13132. <exception name="IOException" type="java.io.IOException"/>
  13133. </method>
  13134. <method name="next" return="boolean"
  13135. abstract="false" native="false" synchronized="false"
  13136. static="false" final="false" visibility="public"
  13137. deprecated="not deprecated">
  13138. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13139. <exception name="IOException" type="java.io.IOException"/>
  13140. <doc>
  13141. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  13142. true if such a key exists and false when at the end of the set.]]>
  13143. </doc>
  13144. </method>
  13145. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  13146. abstract="false" native="false" synchronized="false"
  13147. static="false" final="false" visibility="public"
  13148. deprecated="not deprecated">
  13149. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13150. <exception name="IOException" type="java.io.IOException"/>
  13151. <doc>
  13152. <![CDATA[Read the matching key from a set into <code>key</code>.
  13153. Returns <code>key</code>, or null if no match exists.]]>
  13154. </doc>
  13155. </method>
  13156. <doc>
  13157. <![CDATA[Provide access to an existing set file.]]>
  13158. </doc>
  13159. </class>
  13160. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  13161. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  13162. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  13163. abstract="false"
  13164. static="true" final="false" visibility="public"
  13165. deprecated="not deprecated">
  13166. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  13167. static="false" final="false" visibility="public"
  13168. deprecated="pass a Configuration too">
  13169. <exception name="IOException" type="java.io.IOException"/>
  13170. <doc>
  13171. <![CDATA[Create the named set for keys of the named class.
  13172. @deprecated pass a Configuration too]]>
  13173. </doc>
  13174. </constructor>
  13175. <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"
  13176. static="false" final="false" visibility="public"
  13177. deprecated="not deprecated">
  13178. <exception name="IOException" type="java.io.IOException"/>
  13179. <doc>
  13180. <![CDATA[Create a set naming the element class and compression type.]]>
  13181. </doc>
  13182. </constructor>
  13183. <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"
  13184. static="false" final="false" visibility="public"
  13185. deprecated="not deprecated">
  13186. <exception name="IOException" type="java.io.IOException"/>
  13187. <doc>
  13188. <![CDATA[Create a set naming the element comparator and compression type.]]>
  13189. </doc>
  13190. </constructor>
  13191. <method name="append"
  13192. abstract="false" native="false" synchronized="false"
  13193. static="false" final="false" visibility="public"
  13194. deprecated="not deprecated">
  13195. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13196. <exception name="IOException" type="java.io.IOException"/>
  13197. <doc>
  13198. <![CDATA[Append a key to a set. The key must be strictly greater than the
  13199. previous key added to the set.]]>
  13200. </doc>
  13201. </method>
  13202. <doc>
  13203. <![CDATA[Write a new set file.]]>
  13204. </doc>
  13205. </class>
  13206. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  13207. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  13208. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  13209. abstract="false"
  13210. static="false" final="false" visibility="public"
  13211. deprecated="not deprecated">
  13212. <implements name="java.util.SortedMap"/>
  13213. <constructor name="SortedMapWritable"
  13214. static="false" final="false" visibility="public"
  13215. deprecated="not deprecated">
  13216. <doc>
  13217. <![CDATA[default constructor.]]>
  13218. </doc>
  13219. </constructor>
  13220. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  13221. static="false" final="false" visibility="public"
  13222. deprecated="not deprecated">
  13223. <doc>
  13224. <![CDATA[Copy constructor.
  13225. @param other the map to copy from]]>
  13226. </doc>
  13227. </constructor>
  13228. <method name="comparator" return="java.util.Comparator"
  13229. abstract="false" native="false" synchronized="false"
  13230. static="false" final="false" visibility="public"
  13231. deprecated="not deprecated">
  13232. <doc>
  13233. <![CDATA[{@inheritDoc}]]>
  13234. </doc>
  13235. </method>
  13236. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  13237. abstract="false" native="false" synchronized="false"
  13238. static="false" final="false" visibility="public"
  13239. deprecated="not deprecated">
  13240. <doc>
  13241. <![CDATA[{@inheritDoc}]]>
  13242. </doc>
  13243. </method>
  13244. <method name="headMap" return="java.util.SortedMap"
  13245. abstract="false" native="false" synchronized="false"
  13246. static="false" final="false" visibility="public"
  13247. deprecated="not deprecated">
  13248. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13249. <doc>
  13250. <![CDATA[{@inheritDoc}]]>
  13251. </doc>
  13252. </method>
  13253. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  13254. abstract="false" native="false" synchronized="false"
  13255. static="false" final="false" visibility="public"
  13256. deprecated="not deprecated">
  13257. <doc>
  13258. <![CDATA[{@inheritDoc}]]>
  13259. </doc>
  13260. </method>
  13261. <method name="subMap" return="java.util.SortedMap"
  13262. abstract="false" native="false" synchronized="false"
  13263. static="false" final="false" visibility="public"
  13264. deprecated="not deprecated">
  13265. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13266. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  13267. <doc>
  13268. <![CDATA[{@inheritDoc}]]>
  13269. </doc>
  13270. </method>
  13271. <method name="tailMap" return="java.util.SortedMap"
  13272. abstract="false" native="false" synchronized="false"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  13276. <doc>
  13277. <![CDATA[{@inheritDoc}]]>
  13278. </doc>
  13279. </method>
  13280. <method name="clear"
  13281. abstract="false" native="false" synchronized="false"
  13282. static="false" final="false" visibility="public"
  13283. deprecated="not deprecated">
  13284. <doc>
  13285. <![CDATA[{@inheritDoc}]]>
  13286. </doc>
  13287. </method>
  13288. <method name="containsKey" return="boolean"
  13289. abstract="false" native="false" synchronized="false"
  13290. static="false" final="false" visibility="public"
  13291. deprecated="not deprecated">
  13292. <param name="key" type="java.lang.Object"/>
  13293. <doc>
  13294. <![CDATA[{@inheritDoc}]]>
  13295. </doc>
  13296. </method>
  13297. <method name="containsValue" return="boolean"
  13298. abstract="false" native="false" synchronized="false"
  13299. static="false" final="false" visibility="public"
  13300. deprecated="not deprecated">
  13301. <param name="value" type="java.lang.Object"/>
  13302. <doc>
  13303. <![CDATA[{@inheritDoc}]]>
  13304. </doc>
  13305. </method>
  13306. <method name="entrySet" return="java.util.Set"
  13307. abstract="false" native="false" synchronized="false"
  13308. static="false" final="false" visibility="public"
  13309. deprecated="not deprecated">
  13310. <doc>
  13311. <![CDATA[{@inheritDoc}]]>
  13312. </doc>
  13313. </method>
  13314. <method name="get" return="org.apache.hadoop.io.Writable"
  13315. abstract="false" native="false" synchronized="false"
  13316. static="false" final="false" visibility="public"
  13317. deprecated="not deprecated">
  13318. <param name="key" type="java.lang.Object"/>
  13319. <doc>
  13320. <![CDATA[{@inheritDoc}]]>
  13321. </doc>
  13322. </method>
  13323. <method name="isEmpty" return="boolean"
  13324. abstract="false" native="false" synchronized="false"
  13325. static="false" final="false" visibility="public"
  13326. deprecated="not deprecated">
  13327. <doc>
  13328. <![CDATA[{@inheritDoc}]]>
  13329. </doc>
  13330. </method>
  13331. <method name="keySet" return="java.util.Set"
  13332. abstract="false" native="false" synchronized="false"
  13333. static="false" final="false" visibility="public"
  13334. deprecated="not deprecated">
  13335. <doc>
  13336. <![CDATA[{@inheritDoc}]]>
  13337. </doc>
  13338. </method>
  13339. <method name="put" return="org.apache.hadoop.io.Writable"
  13340. abstract="false" native="false" synchronized="false"
  13341. static="false" final="false" visibility="public"
  13342. deprecated="not deprecated">
  13343. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13344. <param name="value" type="org.apache.hadoop.io.Writable"/>
  13345. <doc>
  13346. <![CDATA[{@inheritDoc}]]>
  13347. </doc>
  13348. </method>
  13349. <method name="putAll"
  13350. abstract="false" native="false" synchronized="false"
  13351. static="false" final="false" visibility="public"
  13352. deprecated="not deprecated">
  13353. <param name="t" type="java.util.Map"/>
  13354. <doc>
  13355. <![CDATA[{@inheritDoc}]]>
  13356. </doc>
  13357. </method>
  13358. <method name="remove" return="org.apache.hadoop.io.Writable"
  13359. abstract="false" native="false" synchronized="false"
  13360. static="false" final="false" visibility="public"
  13361. deprecated="not deprecated">
  13362. <param name="key" type="java.lang.Object"/>
  13363. <doc>
  13364. <![CDATA[{@inheritDoc}]]>
  13365. </doc>
  13366. </method>
  13367. <method name="size" return="int"
  13368. abstract="false" native="false" synchronized="false"
  13369. static="false" final="false" visibility="public"
  13370. deprecated="not deprecated">
  13371. <doc>
  13372. <![CDATA[{@inheritDoc}]]>
  13373. </doc>
  13374. </method>
  13375. <method name="values" return="java.util.Collection"
  13376. abstract="false" native="false" synchronized="false"
  13377. static="false" final="false" visibility="public"
  13378. deprecated="not deprecated">
  13379. <doc>
  13380. <![CDATA[{@inheritDoc}]]>
  13381. </doc>
  13382. </method>
  13383. <method name="readFields"
  13384. abstract="false" native="false" synchronized="false"
  13385. static="false" final="false" visibility="public"
  13386. deprecated="not deprecated">
  13387. <param name="in" type="java.io.DataInput"/>
  13388. <exception name="IOException" type="java.io.IOException"/>
  13389. <doc>
  13390. <![CDATA[{@inheritDoc}]]>
  13391. </doc>
  13392. </method>
  13393. <method name="write"
  13394. abstract="false" native="false" synchronized="false"
  13395. static="false" final="false" visibility="public"
  13396. deprecated="not deprecated">
  13397. <param name="out" type="java.io.DataOutput"/>
  13398. <exception name="IOException" type="java.io.IOException"/>
  13399. <doc>
  13400. <![CDATA[{@inheritDoc}]]>
  13401. </doc>
  13402. </method>
  13403. <doc>
  13404. <![CDATA[A Writable SortedMap.]]>
  13405. </doc>
  13406. </class>
  13407. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  13408. <!-- start interface org.apache.hadoop.io.Stringifier -->
  13409. <interface name="Stringifier" abstract="true"
  13410. static="false" final="false" visibility="public"
  13411. deprecated="not deprecated">
  13412. <implements name="java.io.Closeable"/>
  13413. <method name="toString" return="java.lang.String"
  13414. abstract="false" native="false" synchronized="false"
  13415. static="false" final="false" visibility="public"
  13416. deprecated="not deprecated">
  13417. <param name="obj" type="T"/>
  13418. <exception name="IOException" type="java.io.IOException"/>
  13419. <doc>
  13420. <![CDATA[Converts the object to a string representation
  13421. @param obj the object to convert
  13422. @return the string representation of the object
  13423. @throws IOException if the object cannot be converted]]>
  13424. </doc>
  13425. </method>
  13426. <method name="fromString" return="T"
  13427. abstract="false" native="false" synchronized="false"
  13428. static="false" final="false" visibility="public"
  13429. deprecated="not deprecated">
  13430. <param name="str" type="java.lang.String"/>
  13431. <exception name="IOException" type="java.io.IOException"/>
  13432. <doc>
  13433. <![CDATA[Restores the object from its string representation.
  13434. @param str the string representation of the object
  13435. @return restored object
  13436. @throws IOException if the object cannot be restored]]>
  13437. </doc>
  13438. </method>
  13439. <method name="close"
  13440. abstract="false" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <exception name="IOException" type="java.io.IOException"/>
  13444. <doc>
  13445. <![CDATA[Closes this object.
  13446. @throws IOException if an I/O error occurs]]>
  13447. </doc>
  13448. </method>
  13449. <doc>
  13450. <![CDATA[Stringifier interface offers two methods to convert an object
  13451. to a string representation and restore the object given its
  13452. string representation.
  13453. @param <T> the class of the objects to stringify]]>
  13454. </doc>
  13455. </interface>
  13456. <!-- end interface org.apache.hadoop.io.Stringifier -->
  13457. <!-- start class org.apache.hadoop.io.Text -->
  13458. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  13459. abstract="false"
  13460. static="false" final="false" visibility="public"
  13461. deprecated="not deprecated">
  13462. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13463. <constructor name="Text"
  13464. static="false" final="false" visibility="public"
  13465. deprecated="not deprecated">
  13466. </constructor>
  13467. <constructor name="Text" type="java.lang.String"
  13468. static="false" final="false" visibility="public"
  13469. deprecated="not deprecated">
  13470. <doc>
  13471. <![CDATA[Construct from a string.]]>
  13472. </doc>
  13473. </constructor>
  13474. <constructor name="Text" type="org.apache.hadoop.io.Text"
  13475. static="false" final="false" visibility="public"
  13476. deprecated="not deprecated">
  13477. <doc>
  13478. <![CDATA[Construct from another text.]]>
  13479. </doc>
  13480. </constructor>
  13481. <constructor name="Text" type="byte[]"
  13482. static="false" final="false" visibility="public"
  13483. deprecated="not deprecated">
  13484. <doc>
  13485. <![CDATA[Construct from a byte array.]]>
  13486. </doc>
  13487. </constructor>
  13488. <method name="getBytes" return="byte[]"
  13489. abstract="false" native="false" synchronized="false"
  13490. static="false" final="false" visibility="public"
  13491. deprecated="not deprecated">
  13492. <doc>
  13493. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  13494. valid.]]>
  13495. </doc>
  13496. </method>
  13497. <method name="getLength" return="int"
  13498. abstract="false" native="false" synchronized="false"
  13499. static="false" final="false" visibility="public"
  13500. deprecated="not deprecated">
  13501. <doc>
  13502. <![CDATA[Returns the number of bytes in the byte array]]>
  13503. </doc>
  13504. </method>
  13505. <method name="charAt" return="int"
  13506. abstract="false" native="false" synchronized="false"
  13507. static="false" final="false" visibility="public"
  13508. deprecated="not deprecated">
  13509. <param name="position" type="int"/>
  13510. <doc>
  13511. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  13512. for the character at <code>position</code>. Note that this
  13513. method avoids using the converter or doing String instatiation
  13514. @return the Unicode scalar value at position or -1
  13515. if the position is invalid or points to a
  13516. trailing byte]]>
  13517. </doc>
  13518. </method>
  13519. <method name="find" return="int"
  13520. abstract="false" native="false" synchronized="false"
  13521. static="false" final="false" visibility="public"
  13522. deprecated="not deprecated">
  13523. <param name="what" type="java.lang.String"/>
  13524. </method>
  13525. <method name="find" return="int"
  13526. abstract="false" native="false" synchronized="false"
  13527. static="false" final="false" visibility="public"
  13528. deprecated="not deprecated">
  13529. <param name="what" type="java.lang.String"/>
  13530. <param name="start" type="int"/>
  13531. <doc>
  13532. <![CDATA[Finds any occurence of <code>what</code> in the backing
  13533. buffer, starting as position <code>start</code>. The starting
  13534. position is measured in bytes and the return value is in
  13535. terms of byte position in the buffer. The backing buffer is
  13536. not converted to a string for this operation.
  13537. @return byte position of the first occurence of the search
  13538. string in the UTF-8 buffer or -1 if not found]]>
  13539. </doc>
  13540. </method>
  13541. <method name="set"
  13542. abstract="false" native="false" synchronized="false"
  13543. static="false" final="false" visibility="public"
  13544. deprecated="not deprecated">
  13545. <param name="string" type="java.lang.String"/>
  13546. <doc>
  13547. <![CDATA[Set to contain the contents of a string.]]>
  13548. </doc>
  13549. </method>
  13550. <method name="set"
  13551. abstract="false" native="false" synchronized="false"
  13552. static="false" final="false" visibility="public"
  13553. deprecated="not deprecated">
  13554. <param name="utf8" type="byte[]"/>
  13555. <doc>
  13556. <![CDATA[Set to a utf8 byte array]]>
  13557. </doc>
  13558. </method>
  13559. <method name="set"
  13560. abstract="false" native="false" synchronized="false"
  13561. static="false" final="false" visibility="public"
  13562. deprecated="not deprecated">
  13563. <param name="other" type="org.apache.hadoop.io.Text"/>
  13564. <doc>
  13565. <![CDATA[copy a text.]]>
  13566. </doc>
  13567. </method>
  13568. <method name="set"
  13569. abstract="false" native="false" synchronized="false"
  13570. static="false" final="false" visibility="public"
  13571. deprecated="not deprecated">
  13572. <param name="utf8" type="byte[]"/>
  13573. <param name="start" type="int"/>
  13574. <param name="len" type="int"/>
  13575. <doc>
  13576. <![CDATA[Set the Text to range of bytes
  13577. @param utf8 the data to copy from
  13578. @param start the first position of the new string
  13579. @param len the number of bytes of the new string]]>
  13580. </doc>
  13581. </method>
  13582. <method name="append"
  13583. abstract="false" native="false" synchronized="false"
  13584. static="false" final="false" visibility="public"
  13585. deprecated="not deprecated">
  13586. <param name="utf8" type="byte[]"/>
  13587. <param name="start" type="int"/>
  13588. <param name="len" type="int"/>
  13589. <doc>
  13590. <![CDATA[Append a range of bytes to the end of the given text
  13591. @param utf8 the data to copy from
  13592. @param start the first position to append from utf8
  13593. @param len the number of bytes to append]]>
  13594. </doc>
  13595. </method>
  13596. <method name="clear"
  13597. abstract="false" native="false" synchronized="false"
  13598. static="false" final="false" visibility="public"
  13599. deprecated="not deprecated">
  13600. <doc>
  13601. <![CDATA[Clear the string to empty.]]>
  13602. </doc>
  13603. </method>
  13604. <method name="toString" return="java.lang.String"
  13605. abstract="false" native="false" synchronized="false"
  13606. static="false" final="false" visibility="public"
  13607. deprecated="not deprecated">
  13608. <doc>
  13609. <![CDATA[Convert text back to string
  13610. @see java.lang.Object#toString()]]>
  13611. </doc>
  13612. </method>
  13613. <method name="readFields"
  13614. abstract="false" native="false" synchronized="false"
  13615. static="false" final="false" visibility="public"
  13616. deprecated="not deprecated">
  13617. <param name="in" type="java.io.DataInput"/>
  13618. <exception name="IOException" type="java.io.IOException"/>
  13619. <doc>
  13620. <![CDATA[deserialize]]>
  13621. </doc>
  13622. </method>
  13623. <method name="skip"
  13624. abstract="false" native="false" synchronized="false"
  13625. static="true" final="false" visibility="public"
  13626. deprecated="not deprecated">
  13627. <param name="in" type="java.io.DataInput"/>
  13628. <exception name="IOException" type="java.io.IOException"/>
  13629. <doc>
  13630. <![CDATA[Skips over one Text in the input.]]>
  13631. </doc>
  13632. </method>
  13633. <method name="write"
  13634. abstract="false" native="false" synchronized="false"
  13635. static="false" final="false" visibility="public"
  13636. deprecated="not deprecated">
  13637. <param name="out" type="java.io.DataOutput"/>
  13638. <exception name="IOException" type="java.io.IOException"/>
  13639. <doc>
  13640. <![CDATA[serialize
  13641. write this object to out
  13642. length uses zero-compressed encoding
  13643. @see Writable#write(DataOutput)]]>
  13644. </doc>
  13645. </method>
  13646. <method name="equals" return="boolean"
  13647. abstract="false" native="false" synchronized="false"
  13648. static="false" final="false" visibility="public"
  13649. deprecated="not deprecated">
  13650. <param name="o" type="java.lang.Object"/>
  13651. <doc>
  13652. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  13653. </doc>
  13654. </method>
  13655. <method name="hashCode" return="int"
  13656. abstract="false" native="false" synchronized="false"
  13657. static="false" final="false" visibility="public"
  13658. deprecated="not deprecated">
  13659. </method>
  13660. <method name="decode" return="java.lang.String"
  13661. abstract="false" native="false" synchronized="false"
  13662. static="true" final="false" visibility="public"
  13663. deprecated="not deprecated">
  13664. <param name="utf8" type="byte[]"/>
  13665. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13666. <doc>
  13667. <![CDATA[Converts the provided byte array to a String using the
  13668. UTF-8 encoding. If the input is malformed,
  13669. replace by a default value.]]>
  13670. </doc>
  13671. </method>
  13672. <method name="decode" return="java.lang.String"
  13673. abstract="false" native="false" synchronized="false"
  13674. static="true" final="false" visibility="public"
  13675. deprecated="not deprecated">
  13676. <param name="utf8" type="byte[]"/>
  13677. <param name="start" type="int"/>
  13678. <param name="length" type="int"/>
  13679. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13680. </method>
  13681. <method name="decode" return="java.lang.String"
  13682. abstract="false" native="false" synchronized="false"
  13683. static="true" final="false" visibility="public"
  13684. deprecated="not deprecated">
  13685. <param name="utf8" type="byte[]"/>
  13686. <param name="start" type="int"/>
  13687. <param name="length" type="int"/>
  13688. <param name="replace" type="boolean"/>
  13689. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13690. <doc>
  13691. <![CDATA[Converts the provided byte array to a String using the
  13692. UTF-8 encoding. If <code>replace</code> is true, then
  13693. malformed input is replaced with the
  13694. substitution character, which is U+FFFD. Otherwise the
  13695. method throws a MalformedInputException.]]>
  13696. </doc>
  13697. </method>
  13698. <method name="encode" return="java.nio.ByteBuffer"
  13699. abstract="false" native="false" synchronized="false"
  13700. static="true" final="false" visibility="public"
  13701. deprecated="not deprecated">
  13702. <param name="string" type="java.lang.String"/>
  13703. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13704. <doc>
  13705. <![CDATA[Converts the provided String to bytes using the
  13706. UTF-8 encoding. If the input is malformed,
  13707. invalid chars are replaced by a default value.
  13708. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13709. and length is ByteBuffer.limit()]]>
  13710. </doc>
  13711. </method>
  13712. <method name="encode" return="java.nio.ByteBuffer"
  13713. abstract="false" native="false" synchronized="false"
  13714. static="true" final="false" visibility="public"
  13715. deprecated="not deprecated">
  13716. <param name="string" type="java.lang.String"/>
  13717. <param name="replace" type="boolean"/>
  13718. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13719. <doc>
  13720. <![CDATA[Converts the provided String to bytes using the
  13721. UTF-8 encoding. If <code>replace</code> is true, then
  13722. malformed input is replaced with the
  13723. substitution character, which is U+FFFD. Otherwise the
  13724. method throws a MalformedInputException.
  13725. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13726. and length is ByteBuffer.limit()]]>
  13727. </doc>
  13728. </method>
  13729. <method name="readString" return="java.lang.String"
  13730. abstract="false" native="false" synchronized="false"
  13731. static="true" final="false" visibility="public"
  13732. deprecated="not deprecated">
  13733. <param name="in" type="java.io.DataInput"/>
  13734. <exception name="IOException" type="java.io.IOException"/>
  13735. <doc>
  13736. <![CDATA[Read a UTF8 encoded string from in]]>
  13737. </doc>
  13738. </method>
  13739. <method name="writeString" return="int"
  13740. abstract="false" native="false" synchronized="false"
  13741. static="true" final="false" visibility="public"
  13742. deprecated="not deprecated">
  13743. <param name="out" type="java.io.DataOutput"/>
  13744. <param name="s" type="java.lang.String"/>
  13745. <exception name="IOException" type="java.io.IOException"/>
  13746. <doc>
  13747. <![CDATA[Write a UTF8 encoded string to out]]>
  13748. </doc>
  13749. </method>
  13750. <method name="validateUTF8"
  13751. abstract="false" native="false" synchronized="false"
  13752. static="true" final="false" visibility="public"
  13753. deprecated="not deprecated">
  13754. <param name="utf8" type="byte[]"/>
  13755. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13756. <doc>
  13757. <![CDATA[Check if a byte array contains valid utf-8
  13758. @param utf8 byte array
  13759. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  13760. </doc>
  13761. </method>
  13762. <method name="validateUTF8"
  13763. abstract="false" native="false" synchronized="false"
  13764. static="true" final="false" visibility="public"
  13765. deprecated="not deprecated">
  13766. <param name="utf8" type="byte[]"/>
  13767. <param name="start" type="int"/>
  13768. <param name="len" type="int"/>
  13769. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13770. <doc>
  13771. <![CDATA[Check to see if a byte array is valid utf-8
  13772. @param utf8 the array of bytes
  13773. @param start the offset of the first byte in the array
  13774. @param len the length of the byte sequence
  13775. @throws MalformedInputException if the byte array contains invalid bytes]]>
  13776. </doc>
  13777. </method>
  13778. <method name="bytesToCodePoint" return="int"
  13779. abstract="false" native="false" synchronized="false"
  13780. static="true" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <param name="bytes" type="java.nio.ByteBuffer"/>
  13783. <doc>
  13784. <![CDATA[Returns the next code point at the current position in
  13785. the buffer. The buffer's position will be incremented.
  13786. Any mark set on this buffer will be changed by this method!]]>
  13787. </doc>
  13788. </method>
  13789. <method name="utf8Length" return="int"
  13790. abstract="false" native="false" synchronized="false"
  13791. static="true" final="false" visibility="public"
  13792. deprecated="not deprecated">
  13793. <param name="string" type="java.lang.String"/>
  13794. <doc>
  13795. <![CDATA[For the given string, returns the number of UTF-8 bytes
  13796. required to encode the string.
  13797. @param string text to encode
  13798. @return number of UTF-8 bytes required to encode]]>
  13799. </doc>
  13800. </method>
  13801. <doc>
  13802. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  13803. to serialize, deserialize, and compare texts at byte level. The type of
  13804. length is integer and is serialized using zero-compressed format. <p>In
  13805. addition, it provides methods for string traversal without converting the
  13806. byte array to a string. <p>Also includes utilities for
  13807. serializing/deserialing a string, coding/decoding a string, checking if a
  13808. byte array contains valid UTF8 code, calculating the length of an encoded
  13809. string.]]>
  13810. </doc>
  13811. </class>
  13812. <!-- end class org.apache.hadoop.io.Text -->
  13813. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  13814. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13815. abstract="false"
  13816. static="true" final="false" visibility="public"
  13817. deprecated="not deprecated">
  13818. <constructor name="Text.Comparator"
  13819. static="false" final="false" visibility="public"
  13820. deprecated="not deprecated">
  13821. </constructor>
  13822. <method name="compare" return="int"
  13823. abstract="false" native="false" synchronized="false"
  13824. static="false" final="false" visibility="public"
  13825. deprecated="not deprecated">
  13826. <param name="b1" type="byte[]"/>
  13827. <param name="s1" type="int"/>
  13828. <param name="l1" type="int"/>
  13829. <param name="b2" type="byte[]"/>
  13830. <param name="s2" type="int"/>
  13831. <param name="l2" type="int"/>
  13832. </method>
  13833. <doc>
  13834. <![CDATA[A WritableComparator optimized for Text keys.]]>
  13835. </doc>
  13836. </class>
  13837. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  13838. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  13839. <class name="TwoDArrayWritable" extends="java.lang.Object"
  13840. abstract="false"
  13841. static="false" final="false" visibility="public"
  13842. deprecated="not deprecated">
  13843. <implements name="org.apache.hadoop.io.Writable"/>
  13844. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  13845. static="false" final="false" visibility="public"
  13846. deprecated="not deprecated">
  13847. </constructor>
  13848. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  13849. static="false" final="false" visibility="public"
  13850. deprecated="not deprecated">
  13851. </constructor>
  13852. <method name="toArray" return="java.lang.Object"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. </method>
  13857. <method name="set"
  13858. abstract="false" native="false" synchronized="false"
  13859. static="false" final="false" visibility="public"
  13860. deprecated="not deprecated">
  13861. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  13862. </method>
  13863. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  13864. abstract="false" native="false" synchronized="false"
  13865. static="false" final="false" visibility="public"
  13866. deprecated="not deprecated">
  13867. </method>
  13868. <method name="readFields"
  13869. abstract="false" native="false" synchronized="false"
  13870. static="false" final="false" visibility="public"
  13871. deprecated="not deprecated">
  13872. <param name="in" type="java.io.DataInput"/>
  13873. <exception name="IOException" type="java.io.IOException"/>
  13874. </method>
  13875. <method name="write"
  13876. abstract="false" native="false" synchronized="false"
  13877. static="false" final="false" visibility="public"
  13878. deprecated="not deprecated">
  13879. <param name="out" type="java.io.DataOutput"/>
  13880. <exception name="IOException" type="java.io.IOException"/>
  13881. </method>
  13882. <doc>
  13883. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  13884. </doc>
  13885. </class>
  13886. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  13887. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  13888. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13889. abstract="false"
  13890. static="true" final="false" visibility="public"
  13891. deprecated="not deprecated">
  13892. <constructor name="UTF8.Comparator"
  13893. static="false" final="false" visibility="public"
  13894. deprecated="not deprecated">
  13895. </constructor>
  13896. <method name="compare" return="int"
  13897. abstract="false" native="false" synchronized="false"
  13898. static="false" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <param name="b1" type="byte[]"/>
  13901. <param name="s1" type="int"/>
  13902. <param name="l1" type="int"/>
  13903. <param name="b2" type="byte[]"/>
  13904. <param name="s2" type="int"/>
  13905. <param name="l2" type="int"/>
  13906. </method>
  13907. <doc>
  13908. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  13909. </doc>
  13910. </class>
  13911. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  13912. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  13913. <class name="VersionedWritable" extends="java.lang.Object"
  13914. abstract="true"
  13915. static="false" final="false" visibility="public"
  13916. deprecated="not deprecated">
  13917. <implements name="org.apache.hadoop.io.Writable"/>
  13918. <constructor name="VersionedWritable"
  13919. static="false" final="false" visibility="public"
  13920. deprecated="not deprecated">
  13921. </constructor>
  13922. <method name="getVersion" return="byte"
  13923. abstract="true" native="false" synchronized="false"
  13924. static="false" final="false" visibility="public"
  13925. deprecated="not deprecated">
  13926. <doc>
  13927. <![CDATA[Return the version number of the current implementation.]]>
  13928. </doc>
  13929. </method>
  13930. <method name="write"
  13931. abstract="false" native="false" synchronized="false"
  13932. static="false" final="false" visibility="public"
  13933. deprecated="not deprecated">
  13934. <param name="out" type="java.io.DataOutput"/>
  13935. <exception name="IOException" type="java.io.IOException"/>
  13936. </method>
  13937. <method name="readFields"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <param name="in" type="java.io.DataInput"/>
  13942. <exception name="IOException" type="java.io.IOException"/>
  13943. </method>
  13944. <doc>
  13945. <![CDATA[A base class for Writables that provides version checking.
  13946. <p>This is useful when a class may evolve, so that instances written by the
  13947. old version of the class may still be processed by the new version. To
  13948. handle this situation, {@link #readFields(DataInput)}
  13949. implementations should catch {@link VersionMismatchException}.]]>
  13950. </doc>
  13951. </class>
  13952. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  13953. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  13954. <class name="VersionMismatchException" extends="java.io.IOException"
  13955. abstract="false"
  13956. static="false" final="false" visibility="public"
  13957. deprecated="not deprecated">
  13958. <constructor name="VersionMismatchException" type="byte, byte"
  13959. static="false" final="false" visibility="public"
  13960. deprecated="not deprecated">
  13961. </constructor>
  13962. <method name="toString" return="java.lang.String"
  13963. abstract="false" native="false" synchronized="false"
  13964. static="false" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <doc>
  13967. <![CDATA[Returns a string representation of this object.]]>
  13968. </doc>
  13969. </method>
  13970. <doc>
  13971. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  13972. version of an object being read does not match the current implementation
  13973. version as returned by {@link VersionedWritable#getVersion()}.]]>
  13974. </doc>
  13975. </class>
  13976. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  13977. <!-- start class org.apache.hadoop.io.VIntWritable -->
  13978. <class name="VIntWritable" extends="java.lang.Object"
  13979. abstract="false"
  13980. static="false" final="false" visibility="public"
  13981. deprecated="not deprecated">
  13982. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13983. <constructor name="VIntWritable"
  13984. static="false" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. </constructor>
  13987. <constructor name="VIntWritable" type="int"
  13988. static="false" final="false" visibility="public"
  13989. deprecated="not deprecated">
  13990. </constructor>
  13991. <method name="set"
  13992. abstract="false" native="false" synchronized="false"
  13993. static="false" final="false" visibility="public"
  13994. deprecated="not deprecated">
  13995. <param name="value" type="int"/>
  13996. <doc>
  13997. <![CDATA[Set the value of this VIntWritable.]]>
  13998. </doc>
  13999. </method>
  14000. <method name="get" return="int"
  14001. abstract="false" native="false" synchronized="false"
  14002. static="false" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <doc>
  14005. <![CDATA[Return the value of this VIntWritable.]]>
  14006. </doc>
  14007. </method>
  14008. <method name="readFields"
  14009. abstract="false" native="false" synchronized="false"
  14010. static="false" final="false" visibility="public"
  14011. deprecated="not deprecated">
  14012. <param name="in" type="java.io.DataInput"/>
  14013. <exception name="IOException" type="java.io.IOException"/>
  14014. </method>
  14015. <method name="write"
  14016. abstract="false" native="false" synchronized="false"
  14017. static="false" final="false" visibility="public"
  14018. deprecated="not deprecated">
  14019. <param name="out" type="java.io.DataOutput"/>
  14020. <exception name="IOException" type="java.io.IOException"/>
  14021. </method>
  14022. <method name="equals" return="boolean"
  14023. abstract="false" native="false" synchronized="false"
  14024. static="false" final="false" visibility="public"
  14025. deprecated="not deprecated">
  14026. <param name="o" type="java.lang.Object"/>
  14027. <doc>
  14028. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  14029. </doc>
  14030. </method>
  14031. <method name="hashCode" return="int"
  14032. abstract="false" native="false" synchronized="false"
  14033. static="false" final="false" visibility="public"
  14034. deprecated="not deprecated">
  14035. </method>
  14036. <method name="compareTo" return="int"
  14037. abstract="false" native="false" synchronized="false"
  14038. static="false" final="false" visibility="public"
  14039. deprecated="not deprecated">
  14040. <param name="o" type="java.lang.Object"/>
  14041. <doc>
  14042. <![CDATA[Compares two VIntWritables.]]>
  14043. </doc>
  14044. </method>
  14045. <method name="toString" return="java.lang.String"
  14046. abstract="false" native="false" synchronized="false"
  14047. static="false" final="false" visibility="public"
  14048. deprecated="not deprecated">
  14049. </method>
  14050. <doc>
  14051. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  14052. Such values take between one and five bytes. Smaller values take fewer bytes.
  14053. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  14054. </doc>
  14055. </class>
  14056. <!-- end class org.apache.hadoop.io.VIntWritable -->
  14057. <!-- start class org.apache.hadoop.io.VLongWritable -->
  14058. <class name="VLongWritable" extends="java.lang.Object"
  14059. abstract="false"
  14060. static="false" final="false" visibility="public"
  14061. deprecated="not deprecated">
  14062. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14063. <constructor name="VLongWritable"
  14064. static="false" final="false" visibility="public"
  14065. deprecated="not deprecated">
  14066. </constructor>
  14067. <constructor name="VLongWritable" type="long"
  14068. static="false" final="false" visibility="public"
  14069. deprecated="not deprecated">
  14070. </constructor>
  14071. <method name="set"
  14072. abstract="false" native="false" synchronized="false"
  14073. static="false" final="false" visibility="public"
  14074. deprecated="not deprecated">
  14075. <param name="value" type="long"/>
  14076. <doc>
  14077. <![CDATA[Set the value of this LongWritable.]]>
  14078. </doc>
  14079. </method>
  14080. <method name="get" return="long"
  14081. abstract="false" native="false" synchronized="false"
  14082. static="false" final="false" visibility="public"
  14083. deprecated="not deprecated">
  14084. <doc>
  14085. <![CDATA[Return the value of this LongWritable.]]>
  14086. </doc>
  14087. </method>
  14088. <method name="readFields"
  14089. abstract="false" native="false" synchronized="false"
  14090. static="false" final="false" visibility="public"
  14091. deprecated="not deprecated">
  14092. <param name="in" type="java.io.DataInput"/>
  14093. <exception name="IOException" type="java.io.IOException"/>
  14094. </method>
  14095. <method name="write"
  14096. abstract="false" native="false" synchronized="false"
  14097. static="false" final="false" visibility="public"
  14098. deprecated="not deprecated">
  14099. <param name="out" type="java.io.DataOutput"/>
  14100. <exception name="IOException" type="java.io.IOException"/>
  14101. </method>
  14102. <method name="equals" return="boolean"
  14103. abstract="false" native="false" synchronized="false"
  14104. static="false" final="false" visibility="public"
  14105. deprecated="not deprecated">
  14106. <param name="o" type="java.lang.Object"/>
  14107. <doc>
  14108. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  14109. </doc>
  14110. </method>
  14111. <method name="hashCode" return="int"
  14112. abstract="false" native="false" synchronized="false"
  14113. static="false" final="false" visibility="public"
  14114. deprecated="not deprecated">
  14115. </method>
  14116. <method name="compareTo" return="int"
  14117. abstract="false" native="false" synchronized="false"
  14118. static="false" final="false" visibility="public"
  14119. deprecated="not deprecated">
  14120. <param name="o" type="java.lang.Object"/>
  14121. <doc>
  14122. <![CDATA[Compares two VLongWritables.]]>
  14123. </doc>
  14124. </method>
  14125. <method name="toString" return="java.lang.String"
  14126. abstract="false" native="false" synchronized="false"
  14127. static="false" final="false" visibility="public"
  14128. deprecated="not deprecated">
  14129. </method>
  14130. <doc>
  14131. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  14132. between one and five bytes. Smaller values take fewer bytes.
  14133. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  14134. </doc>
  14135. </class>
  14136. <!-- end class org.apache.hadoop.io.VLongWritable -->
  14137. <!-- start interface org.apache.hadoop.io.Writable -->
  14138. <interface name="Writable" abstract="true"
  14139. static="false" final="false" visibility="public"
  14140. deprecated="not deprecated">
  14141. <method name="write"
  14142. abstract="false" native="false" synchronized="false"
  14143. static="false" final="false" visibility="public"
  14144. deprecated="not deprecated">
  14145. <param name="out" type="java.io.DataOutput"/>
  14146. <exception name="IOException" type="java.io.IOException"/>
  14147. <doc>
  14148. <![CDATA[Serialize the fields of this object to <code>out</code>.
  14149. @param out <code>DataOuput</code> to serialize this object into.
  14150. @throws IOException]]>
  14151. </doc>
  14152. </method>
  14153. <method name="readFields"
  14154. abstract="false" native="false" synchronized="false"
  14155. static="false" final="false" visibility="public"
  14156. deprecated="not deprecated">
  14157. <param name="in" type="java.io.DataInput"/>
  14158. <exception name="IOException" type="java.io.IOException"/>
  14159. <doc>
  14160. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  14161. <p>For efficiency, implementations should attempt to re-use storage in the
  14162. existing object where possible.</p>
  14163. @param in <code>DataInput</code> to deseriablize this object from.
  14164. @throws IOException]]>
  14165. </doc>
  14166. </method>
  14167. <doc>
  14168. <![CDATA[A serializable object which implements a simple, efficient, serialization
  14169. protocol, based on {@link DataInput} and {@link DataOutput}.
  14170. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  14171. framework implements this interface.</p>
  14172. <p>Implementations typically implement a static <code>read(DataInput)</code>
  14173. method which constructs a new instance, calls {@link #readFields(DataInput)}
  14174. and returns the instance.</p>
  14175. <p>Example:</p>
  14176. <p><blockquote><pre>
  14177. public class MyWritable implements Writable {
  14178. // Some data
  14179. private int counter;
  14180. private long timestamp;
  14181. public void write(DataOutput out) throws IOException {
  14182. out.writeInt(counter);
  14183. out.writeLong(timestamp);
  14184. }
  14185. public void readFields(DataInput in) throws IOException {
  14186. counter = in.readInt();
  14187. timestamp = in.readLong();
  14188. }
  14189. public static MyWritable read(DataInput in) throws IOException {
  14190. MyWritable w = new MyWritable();
  14191. w.readFields(in);
  14192. return w;
  14193. }
  14194. }
  14195. </pre></blockquote></p>]]>
  14196. </doc>
  14197. </interface>
  14198. <!-- end interface org.apache.hadoop.io.Writable -->
  14199. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  14200. <interface name="WritableComparable" abstract="true"
  14201. static="false" final="false" visibility="public"
  14202. deprecated="not deprecated">
  14203. <implements name="org.apache.hadoop.io.Writable"/>
  14204. <implements name="java.lang.Comparable"/>
  14205. <doc>
  14206. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  14207. <p><code>WritableComparable</code>s can be compared to each other, typically
  14208. via <code>Comparator</code>s. Any type which is to be used as a
  14209. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  14210. interface.</p>
  14211. <p>Example:</p>
  14212. <p><blockquote><pre>
  14213. public class MyWritableComparable implements
  14214. WritableComparable&lt;MyWritableComparable&gt; {
  14215. // Some data
  14216. private int counter;
  14217. private long timestamp;
  14218. public void write(DataOutput out) throws IOException {
  14219. out.writeInt(counter);
  14220. out.writeLong(timestamp);
  14221. }
  14222. public void readFields(DataInput in) throws IOException {
  14223. counter = in.readInt();
  14224. timestamp = in.readLong();
  14225. }
  14226. public int compareTo(MyWritableComparable other) {
  14227. int thisValue = this.counter;
  14228. int thatValue = other.counter;
  14229. return (thisValue &lt; thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
  14230. }
  14231. }
  14232. </pre></blockquote></p>]]>
  14233. </doc>
  14234. </interface>
  14235. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  14236. <!-- start class org.apache.hadoop.io.WritableComparator -->
  14237. <class name="WritableComparator" extends="java.lang.Object"
  14238. abstract="false"
  14239. static="false" final="false" visibility="public"
  14240. deprecated="not deprecated">
  14241. <implements name="org.apache.hadoop.io.RawComparator"/>
  14242. <constructor name="WritableComparator" type="java.lang.Class"
  14243. static="false" final="false" visibility="protected"
  14244. deprecated="not deprecated">
  14245. <doc>
  14246. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  14247. </doc>
  14248. </constructor>
  14249. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  14250. static="false" final="false" visibility="protected"
  14251. deprecated="not deprecated">
  14252. </constructor>
  14253. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  14254. abstract="false" native="false" synchronized="true"
  14255. static="true" final="false" visibility="public"
  14256. deprecated="not deprecated">
  14257. <param name="c" type="java.lang.Class"/>
  14258. <doc>
  14259. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  14260. </doc>
  14261. </method>
  14262. <method name="define"
  14263. abstract="false" native="false" synchronized="true"
  14264. static="true" final="false" visibility="public"
  14265. deprecated="not deprecated">
  14266. <param name="c" type="java.lang.Class"/>
  14267. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  14268. <doc>
  14269. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  14270. implementation.]]>
  14271. </doc>
  14272. </method>
  14273. <method name="getKeyClass" return="java.lang.Class"
  14274. abstract="false" native="false" synchronized="false"
  14275. static="false" final="false" visibility="public"
  14276. deprecated="not deprecated">
  14277. <doc>
  14278. <![CDATA[Returns the WritableComparable implementation class.]]>
  14279. </doc>
  14280. </method>
  14281. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  14282. abstract="false" native="false" synchronized="false"
  14283. static="false" final="false" visibility="public"
  14284. deprecated="not deprecated">
  14285. <doc>
  14286. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  14287. </doc>
  14288. </method>
  14289. <method name="compare" return="int"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <param name="b1" type="byte[]"/>
  14294. <param name="s1" type="int"/>
  14295. <param name="l1" type="int"/>
  14296. <param name="b2" type="byte[]"/>
  14297. <param name="s2" type="int"/>
  14298. <param name="l2" type="int"/>
  14299. <doc>
  14300. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  14301. <p>The default implementation reads the data into two {@link
  14302. WritableComparable}s (using {@link
  14303. Writable#readFields(DataInput)}, then calls {@link
  14304. #compare(WritableComparable,WritableComparable)}.]]>
  14305. </doc>
  14306. </method>
  14307. <method name="compare" return="int"
  14308. abstract="false" native="false" synchronized="false"
  14309. static="false" final="false" visibility="public"
  14310. deprecated="not deprecated">
  14311. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  14312. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  14313. <doc>
  14314. <![CDATA[Compare two WritableComparables.
  14315. <p> The default implementation uses the natural ordering, calling {@link
  14316. Comparable#compareTo(Object)}.]]>
  14317. </doc>
  14318. </method>
  14319. <method name="compare" return="int"
  14320. abstract="false" native="false" synchronized="false"
  14321. static="false" final="false" visibility="public"
  14322. deprecated="not deprecated">
  14323. <param name="a" type="java.lang.Object"/>
  14324. <param name="b" type="java.lang.Object"/>
  14325. </method>
  14326. <method name="compareBytes" return="int"
  14327. abstract="false" native="false" synchronized="false"
  14328. static="true" final="false" visibility="public"
  14329. deprecated="not deprecated">
  14330. <param name="b1" type="byte[]"/>
  14331. <param name="s1" type="int"/>
  14332. <param name="l1" type="int"/>
  14333. <param name="b2" type="byte[]"/>
  14334. <param name="s2" type="int"/>
  14335. <param name="l2" type="int"/>
  14336. <doc>
  14337. <![CDATA[Lexicographic order of binary data.]]>
  14338. </doc>
  14339. </method>
  14340. <method name="hashBytes" return="int"
  14341. abstract="false" native="false" synchronized="false"
  14342. static="true" final="false" visibility="public"
  14343. deprecated="not deprecated">
  14344. <param name="bytes" type="byte[]"/>
  14345. <param name="offset" type="int"/>
  14346. <param name="length" type="int"/>
  14347. <doc>
  14348. <![CDATA[Compute hash for binary data.]]>
  14349. </doc>
  14350. </method>
  14351. <method name="hashBytes" return="int"
  14352. abstract="false" native="false" synchronized="false"
  14353. static="true" final="false" visibility="public"
  14354. deprecated="not deprecated">
  14355. <param name="bytes" type="byte[]"/>
  14356. <param name="length" type="int"/>
  14357. <doc>
  14358. <![CDATA[Compute hash for binary data.]]>
  14359. </doc>
  14360. </method>
  14361. <method name="readUnsignedShort" return="int"
  14362. abstract="false" native="false" synchronized="false"
  14363. static="true" final="false" visibility="public"
  14364. deprecated="not deprecated">
  14365. <param name="bytes" type="byte[]"/>
  14366. <param name="start" type="int"/>
  14367. <doc>
  14368. <![CDATA[Parse an unsigned short from a byte array.]]>
  14369. </doc>
  14370. </method>
  14371. <method name="readInt" return="int"
  14372. abstract="false" native="false" synchronized="false"
  14373. static="true" final="false" visibility="public"
  14374. deprecated="not deprecated">
  14375. <param name="bytes" type="byte[]"/>
  14376. <param name="start" type="int"/>
  14377. <doc>
  14378. <![CDATA[Parse an integer from a byte array.]]>
  14379. </doc>
  14380. </method>
  14381. <method name="readFloat" return="float"
  14382. abstract="false" native="false" synchronized="false"
  14383. static="true" final="false" visibility="public"
  14384. deprecated="not deprecated">
  14385. <param name="bytes" type="byte[]"/>
  14386. <param name="start" type="int"/>
  14387. <doc>
  14388. <![CDATA[Parse a float from a byte array.]]>
  14389. </doc>
  14390. </method>
  14391. <method name="readLong" return="long"
  14392. abstract="false" native="false" synchronized="false"
  14393. static="true" final="false" visibility="public"
  14394. deprecated="not deprecated">
  14395. <param name="bytes" type="byte[]"/>
  14396. <param name="start" type="int"/>
  14397. <doc>
  14398. <![CDATA[Parse a long from a byte array.]]>
  14399. </doc>
  14400. </method>
  14401. <method name="readDouble" return="double"
  14402. abstract="false" native="false" synchronized="false"
  14403. static="true" final="false" visibility="public"
  14404. deprecated="not deprecated">
  14405. <param name="bytes" type="byte[]"/>
  14406. <param name="start" type="int"/>
  14407. <doc>
  14408. <![CDATA[Parse a double from a byte array.]]>
  14409. </doc>
  14410. </method>
  14411. <method name="readVLong" return="long"
  14412. abstract="false" native="false" synchronized="false"
  14413. static="true" final="false" visibility="public"
  14414. deprecated="not deprecated">
  14415. <param name="bytes" type="byte[]"/>
  14416. <param name="start" type="int"/>
  14417. <exception name="IOException" type="java.io.IOException"/>
  14418. <doc>
  14419. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  14420. @param bytes byte array with decode long
  14421. @param start starting index
  14422. @throws java.io.IOException
  14423. @return deserialized long]]>
  14424. </doc>
  14425. </method>
  14426. <method name="readVInt" return="int"
  14427. abstract="false" native="false" synchronized="false"
  14428. static="true" final="false" visibility="public"
  14429. deprecated="not deprecated">
  14430. <param name="bytes" type="byte[]"/>
  14431. <param name="start" type="int"/>
  14432. <exception name="IOException" type="java.io.IOException"/>
  14433. <doc>
  14434. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  14435. @param bytes byte array with the encoded integer
  14436. @param start start index
  14437. @throws java.io.IOException
  14438. @return deserialized integer]]>
  14439. </doc>
  14440. </method>
  14441. <doc>
  14442. <![CDATA[A Comparator for {@link WritableComparable}s.
  14443. <p>This base implemenation uses the natural ordering. To define alternate
  14444. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  14445. <p>One may optimize compare-intensive operations by overriding
  14446. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  14447. provided to assist in optimized implementations of this method.]]>
  14448. </doc>
  14449. </class>
  14450. <!-- end class org.apache.hadoop.io.WritableComparator -->
  14451. <!-- start class org.apache.hadoop.io.WritableFactories -->
  14452. <class name="WritableFactories" extends="java.lang.Object"
  14453. abstract="false"
  14454. static="false" final="false" visibility="public"
  14455. deprecated="not deprecated">
  14456. <method name="setFactory"
  14457. abstract="false" native="false" synchronized="true"
  14458. static="true" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. <param name="c" type="java.lang.Class"/>
  14461. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  14462. <doc>
  14463. <![CDATA[Define a factory for a class.]]>
  14464. </doc>
  14465. </method>
  14466. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  14467. abstract="false" native="false" synchronized="true"
  14468. static="true" final="false" visibility="public"
  14469. deprecated="not deprecated">
  14470. <param name="c" type="java.lang.Class"/>
  14471. <doc>
  14472. <![CDATA[Define a factory for a class.]]>
  14473. </doc>
  14474. </method>
  14475. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14476. abstract="false" native="false" synchronized="false"
  14477. static="true" final="false" visibility="public"
  14478. deprecated="not deprecated">
  14479. <param name="c" type="java.lang.Class"/>
  14480. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14481. <doc>
  14482. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14483. </doc>
  14484. </method>
  14485. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14486. abstract="false" native="false" synchronized="false"
  14487. static="true" final="false" visibility="public"
  14488. deprecated="not deprecated">
  14489. <param name="c" type="java.lang.Class"/>
  14490. <doc>
  14491. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14492. </doc>
  14493. </method>
  14494. <doc>
  14495. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  14496. ObjectWritable} to be able to construct instances of non-public classes.]]>
  14497. </doc>
  14498. </class>
  14499. <!-- end class org.apache.hadoop.io.WritableFactories -->
  14500. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  14501. <interface name="WritableFactory" abstract="true"
  14502. static="false" final="false" visibility="public"
  14503. deprecated="not deprecated">
  14504. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14505. abstract="false" native="false" synchronized="false"
  14506. static="false" final="false" visibility="public"
  14507. deprecated="not deprecated">
  14508. <doc>
  14509. <![CDATA[Return a new instance.]]>
  14510. </doc>
  14511. </method>
  14512. <doc>
  14513. <![CDATA[A factory for a class of Writable.
  14514. @see WritableFactories]]>
  14515. </doc>
  14516. </interface>
  14517. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  14518. <!-- start class org.apache.hadoop.io.WritableUtils -->
  14519. <class name="WritableUtils" extends="java.lang.Object"
  14520. abstract="false"
  14521. static="false" final="true" visibility="public"
  14522. deprecated="not deprecated">
  14523. <constructor name="WritableUtils"
  14524. static="false" final="false" visibility="public"
  14525. deprecated="not deprecated">
  14526. </constructor>
  14527. <method name="readCompressedByteArray" return="byte[]"
  14528. abstract="false" native="false" synchronized="false"
  14529. static="true" final="false" visibility="public"
  14530. deprecated="not deprecated">
  14531. <param name="in" type="java.io.DataInput"/>
  14532. <exception name="IOException" type="java.io.IOException"/>
  14533. </method>
  14534. <method name="skipCompressedByteArray"
  14535. abstract="false" native="false" synchronized="false"
  14536. static="true" final="false" visibility="public"
  14537. deprecated="not deprecated">
  14538. <param name="in" type="java.io.DataInput"/>
  14539. <exception name="IOException" type="java.io.IOException"/>
  14540. </method>
  14541. <method name="writeCompressedByteArray" return="int"
  14542. abstract="false" native="false" synchronized="false"
  14543. static="true" final="false" visibility="public"
  14544. deprecated="not deprecated">
  14545. <param name="out" type="java.io.DataOutput"/>
  14546. <param name="bytes" type="byte[]"/>
  14547. <exception name="IOException" type="java.io.IOException"/>
  14548. </method>
  14549. <method name="readCompressedString" return="java.lang.String"
  14550. abstract="false" native="false" synchronized="false"
  14551. static="true" final="false" visibility="public"
  14552. deprecated="not deprecated">
  14553. <param name="in" type="java.io.DataInput"/>
  14554. <exception name="IOException" type="java.io.IOException"/>
  14555. </method>
  14556. <method name="writeCompressedString" return="int"
  14557. abstract="false" native="false" synchronized="false"
  14558. static="true" final="false" visibility="public"
  14559. deprecated="not deprecated">
  14560. <param name="out" type="java.io.DataOutput"/>
  14561. <param name="s" type="java.lang.String"/>
  14562. <exception name="IOException" type="java.io.IOException"/>
  14563. </method>
  14564. <method name="writeString"
  14565. abstract="false" native="false" synchronized="false"
  14566. static="true" final="false" visibility="public"
  14567. deprecated="not deprecated">
  14568. <param name="out" type="java.io.DataOutput"/>
  14569. <param name="s" type="java.lang.String"/>
  14570. <exception name="IOException" type="java.io.IOException"/>
  14571. </method>
  14572. <method name="readString" return="java.lang.String"
  14573. abstract="false" native="false" synchronized="false"
  14574. static="true" final="false" visibility="public"
  14575. deprecated="not deprecated">
  14576. <param name="in" type="java.io.DataInput"/>
  14577. <exception name="IOException" type="java.io.IOException"/>
  14578. </method>
  14579. <method name="writeStringArray"
  14580. abstract="false" native="false" synchronized="false"
  14581. static="true" final="false" visibility="public"
  14582. deprecated="not deprecated">
  14583. <param name="out" type="java.io.DataOutput"/>
  14584. <param name="s" type="java.lang.String[]"/>
  14585. <exception name="IOException" type="java.io.IOException"/>
  14586. </method>
  14587. <method name="writeCompressedStringArray"
  14588. abstract="false" native="false" synchronized="false"
  14589. static="true" final="false" visibility="public"
  14590. deprecated="not deprecated">
  14591. <param name="out" type="java.io.DataOutput"/>
  14592. <param name="s" type="java.lang.String[]"/>
  14593. <exception name="IOException" type="java.io.IOException"/>
  14594. </method>
  14595. <method name="readStringArray" return="java.lang.String[]"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="true" final="false" visibility="public"
  14598. deprecated="not deprecated">
  14599. <param name="in" type="java.io.DataInput"/>
  14600. <exception name="IOException" type="java.io.IOException"/>
  14601. </method>
  14602. <method name="readCompressedStringArray" return="java.lang.String[]"
  14603. abstract="false" native="false" synchronized="false"
  14604. static="true" final="false" visibility="public"
  14605. deprecated="not deprecated">
  14606. <param name="in" type="java.io.DataInput"/>
  14607. <exception name="IOException" type="java.io.IOException"/>
  14608. </method>
  14609. <method name="displayByteArray"
  14610. abstract="false" native="false" synchronized="false"
  14611. static="true" final="false" visibility="public"
  14612. deprecated="not deprecated">
  14613. <param name="record" type="byte[]"/>
  14614. </method>
  14615. <method name="clone" return="T"
  14616. abstract="false" native="false" synchronized="false"
  14617. static="true" final="false" visibility="public"
  14618. deprecated="not deprecated">
  14619. <param name="orig" type="T"/>
  14620. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14621. <doc>
  14622. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  14623. @param orig The object to copy
  14624. @return The copied object]]>
  14625. </doc>
  14626. </method>
  14627. <method name="cloneInto"
  14628. abstract="false" native="false" synchronized="false"
  14629. static="true" final="false" visibility="public"
  14630. deprecated="use ReflectionUtils.cloneInto instead.">
  14631. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  14632. <param name="src" type="org.apache.hadoop.io.Writable"/>
  14633. <exception name="IOException" type="java.io.IOException"/>
  14634. <doc>
  14635. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  14636. @param dst the object to copy from
  14637. @param src the object to copy into, which is destroyed
  14638. @throws IOException
  14639. @deprecated use ReflectionUtils.cloneInto instead.]]>
  14640. </doc>
  14641. </method>
  14642. <method name="writeVInt"
  14643. abstract="false" native="false" synchronized="false"
  14644. static="true" final="false" visibility="public"
  14645. deprecated="not deprecated">
  14646. <param name="stream" type="java.io.DataOutput"/>
  14647. <param name="i" type="int"/>
  14648. <exception name="IOException" type="java.io.IOException"/>
  14649. <doc>
  14650. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  14651. For -120 <= i <= 127, only one byte is used with the actual value.
  14652. For other values of i, the first byte value indicates whether the
  14653. integer is positive or negative, and the number of bytes that follow.
  14654. If the first byte value v is between -121 and -124, the following integer
  14655. is positive, with number of bytes that follow are -(v+120).
  14656. If the first byte value v is between -125 and -128, the following integer
  14657. is negative, with number of bytes that follow are -(v+124). Bytes are
  14658. stored in the high-non-zero-byte-first order.
  14659. @param stream Binary output stream
  14660. @param i Integer to be serialized
  14661. @throws java.io.IOException]]>
  14662. </doc>
  14663. </method>
  14664. <method name="writeVLong"
  14665. abstract="false" native="false" synchronized="false"
  14666. static="true" final="false" visibility="public"
  14667. deprecated="not deprecated">
  14668. <param name="stream" type="java.io.DataOutput"/>
  14669. <param name="i" type="long"/>
  14670. <exception name="IOException" type="java.io.IOException"/>
  14671. <doc>
  14672. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  14673. For -112 <= i <= 127, only one byte is used with the actual value.
  14674. For other values of i, the first byte value indicates whether the
  14675. long is positive or negative, and the number of bytes that follow.
  14676. If the first byte value v is between -113 and -120, the following long
  14677. is positive, with number of bytes that follow are -(v+112).
  14678. If the first byte value v is between -121 and -128, the following long
  14679. is negative, with number of bytes that follow are -(v+120). Bytes are
  14680. stored in the high-non-zero-byte-first order.
  14681. @param stream Binary output stream
  14682. @param i Long to be serialized
  14683. @throws java.io.IOException]]>
  14684. </doc>
  14685. </method>
  14686. <method name="readVLong" return="long"
  14687. abstract="false" native="false" synchronized="false"
  14688. static="true" final="false" visibility="public"
  14689. deprecated="not deprecated">
  14690. <param name="stream" type="java.io.DataInput"/>
  14691. <exception name="IOException" type="java.io.IOException"/>
  14692. <doc>
  14693. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  14694. @param stream Binary input stream
  14695. @throws java.io.IOException
  14696. @return deserialized long from stream.]]>
  14697. </doc>
  14698. </method>
  14699. <method name="readVInt" return="int"
  14700. abstract="false" native="false" synchronized="false"
  14701. static="true" final="false" visibility="public"
  14702. deprecated="not deprecated">
  14703. <param name="stream" type="java.io.DataInput"/>
  14704. <exception name="IOException" type="java.io.IOException"/>
  14705. <doc>
  14706. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  14707. @param stream Binary input stream
  14708. @throws java.io.IOException
  14709. @return deserialized integer from stream.]]>
  14710. </doc>
  14711. </method>
  14712. <method name="isNegativeVInt" return="boolean"
  14713. abstract="false" native="false" synchronized="false"
  14714. static="true" final="false" visibility="public"
  14715. deprecated="not deprecated">
  14716. <param name="value" type="byte"/>
  14717. <doc>
  14718. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  14719. @param value the first byte
  14720. @return is the value negative]]>
  14721. </doc>
  14722. </method>
  14723. <method name="decodeVIntSize" return="int"
  14724. abstract="false" native="false" synchronized="false"
  14725. static="true" final="false" visibility="public"
  14726. deprecated="not deprecated">
  14727. <param name="value" type="byte"/>
  14728. <doc>
  14729. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  14730. @param value the first byte of the vint/vlong
  14731. @return the total number of bytes (1 to 9)]]>
  14732. </doc>
  14733. </method>
  14734. <method name="getVIntSize" return="int"
  14735. abstract="false" native="false" synchronized="false"
  14736. static="true" final="false" visibility="public"
  14737. deprecated="not deprecated">
  14738. <param name="i" type="long"/>
  14739. <doc>
  14740. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  14741. @return the encoded length]]>
  14742. </doc>
  14743. </method>
  14744. <method name="readEnum" return="T"
  14745. abstract="false" native="false" synchronized="false"
  14746. static="true" final="false" visibility="public"
  14747. deprecated="not deprecated">
  14748. <param name="in" type="java.io.DataInput"/>
  14749. <param name="enumType" type="java.lang.Class"/>
  14750. <exception name="IOException" type="java.io.IOException"/>
  14751. <doc>
  14752. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  14753. using String values.
  14754. @param <T> Enum type
  14755. @param in DataInput to read from
  14756. @param enumType Class type of Enum
  14757. @return Enum represented by String read from DataInput
  14758. @throws IOException]]>
  14759. </doc>
  14760. </method>
  14761. <method name="writeEnum"
  14762. abstract="false" native="false" synchronized="false"
  14763. static="true" final="false" visibility="public"
  14764. deprecated="not deprecated">
  14765. <param name="out" type="java.io.DataOutput"/>
  14766. <param name="enumVal" type="java.lang.Enum"/>
  14767. <exception name="IOException" type="java.io.IOException"/>
  14768. <doc>
  14769. <![CDATA[writes String value of enum to DataOutput.
  14770. @param out Dataoutput stream
  14771. @param enumVal enum value
  14772. @throws IOException]]>
  14773. </doc>
  14774. </method>
  14775. <method name="skipFully"
  14776. abstract="false" native="false" synchronized="false"
  14777. static="true" final="false" visibility="public"
  14778. deprecated="not deprecated">
  14779. <param name="in" type="java.io.DataInput"/>
  14780. <param name="len" type="int"/>
  14781. <exception name="IOException" type="java.io.IOException"/>
  14782. <doc>
  14783. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  14784. @param in input stream
  14785. @param len number of bytes to skip
  14786. @throws IOException when skipped less number of bytes]]>
  14787. </doc>
  14788. </method>
  14789. <method name="toByteArray" return="byte[]"
  14790. abstract="false" native="false" synchronized="false"
  14791. static="true" final="false" visibility="public"
  14792. deprecated="not deprecated">
  14793. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  14794. <doc>
  14795. <![CDATA[Convert writables to a byte array]]>
  14796. </doc>
  14797. </method>
  14798. <method name="readStringSafely" return="java.lang.String"
  14799. abstract="false" native="false" synchronized="false"
  14800. static="true" final="false" visibility="public"
  14801. deprecated="not deprecated">
  14802. <param name="in" type="java.io.DataInput"/>
  14803. <param name="maxLength" type="int"/>
  14804. <exception name="IOException" type="java.io.IOException"/>
  14805. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14806. <doc>
  14807. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  14808. followed by the given number of bytes.
  14809. @param in the stream to read from
  14810. @param maxLength the largest acceptable length of the encoded string
  14811. @return the bytes as a string
  14812. @throws IOException if reading from the DataInput fails
  14813. @throws IllegalArgumentException if the encoded byte size for string
  14814. is negative or larger than maxSize. Only the vint is read.]]>
  14815. </doc>
  14816. </method>
  14817. </class>
  14818. <!-- end class org.apache.hadoop.io.WritableUtils -->
  14819. <doc>
  14820. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  14821. to databases, and to files.]]>
  14822. </doc>
  14823. </package>
  14824. <package name="org.apache.hadoop.io.compress">
  14825. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  14826. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  14827. abstract="false"
  14828. static="false" final="false" visibility="public"
  14829. deprecated="not deprecated">
  14830. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  14831. static="false" final="false" visibility="public"
  14832. deprecated="not deprecated">
  14833. <doc>
  14834. <![CDATA[Create a {@link BlockCompressorStream}.
  14835. @param out stream
  14836. @param compressor compressor to be used
  14837. @param bufferSize size of buffer
  14838. @param compressionOverhead maximum 'overhead' of the compression
  14839. algorithm with given bufferSize]]>
  14840. </doc>
  14841. </constructor>
  14842. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  14843. static="false" final="false" visibility="public"
  14844. deprecated="not deprecated">
  14845. <doc>
  14846. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  14847. compressor.
  14848. Use default of 512 as bufferSize and compressionOverhead of
  14849. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  14850. @param out stream
  14851. @param compressor compressor to be used]]>
  14852. </doc>
  14853. </constructor>
  14854. <method name="write"
  14855. abstract="false" native="false" synchronized="false"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. <param name="b" type="byte[]"/>
  14859. <param name="off" type="int"/>
  14860. <param name="len" type="int"/>
  14861. <exception name="IOException" type="java.io.IOException"/>
  14862. <doc>
  14863. <![CDATA[Write the data provided to the compression codec, compressing no more
  14864. than the buffer size less the compression overhead as specified during
  14865. construction for each block.
  14866. Each block contains the uncompressed length for the block, followed by
  14867. one or more length-prefixed blocks of compressed data.]]>
  14868. </doc>
  14869. </method>
  14870. <method name="finish"
  14871. abstract="false" native="false" synchronized="false"
  14872. static="false" final="false" visibility="public"
  14873. deprecated="not deprecated">
  14874. <exception name="IOException" type="java.io.IOException"/>
  14875. </method>
  14876. <method name="compress"
  14877. abstract="false" native="false" synchronized="false"
  14878. static="false" final="false" visibility="protected"
  14879. deprecated="not deprecated">
  14880. <exception name="IOException" type="java.io.IOException"/>
  14881. </method>
  14882. <doc>
  14883. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  14884. with 'block-based' based compression algorithms, as opposed to
  14885. 'stream-based' compression algorithms.
  14886. It should be noted that this wrapper does not guarantee that blocks will
  14887. be sized for the compressor. If the
  14888. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  14889. effect meaningful compression, it is responsible for it.]]>
  14890. </doc>
  14891. </class>
  14892. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  14893. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  14894. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  14895. abstract="false"
  14896. static="false" final="false" visibility="public"
  14897. deprecated="not deprecated">
  14898. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  14899. static="false" final="false" visibility="public"
  14900. deprecated="not deprecated">
  14901. <exception name="IOException" type="java.io.IOException"/>
  14902. <doc>
  14903. <![CDATA[Create a {@link BlockDecompressorStream}.
  14904. @param in input stream
  14905. @param decompressor decompressor to use
  14906. @param bufferSize size of buffer
  14907. @throws IOException]]>
  14908. </doc>
  14909. </constructor>
  14910. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  14911. static="false" final="false" visibility="public"
  14912. deprecated="not deprecated">
  14913. <exception name="IOException" type="java.io.IOException"/>
  14914. <doc>
  14915. <![CDATA[Create a {@link BlockDecompressorStream}.
  14916. @param in input stream
  14917. @param decompressor decompressor to use
  14918. @throws IOException]]>
  14919. </doc>
  14920. </constructor>
  14921. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  14922. static="false" final="false" visibility="protected"
  14923. deprecated="not deprecated">
  14924. <exception name="IOException" type="java.io.IOException"/>
  14925. </constructor>
  14926. <method name="decompress" return="int"
  14927. abstract="false" native="false" synchronized="false"
  14928. static="false" final="false" visibility="protected"
  14929. deprecated="not deprecated">
  14930. <param name="b" type="byte[]"/>
  14931. <param name="off" type="int"/>
  14932. <param name="len" type="int"/>
  14933. <exception name="IOException" type="java.io.IOException"/>
  14934. </method>
  14935. <method name="getCompressedData"
  14936. abstract="false" native="false" synchronized="false"
  14937. static="false" final="false" visibility="protected"
  14938. deprecated="not deprecated">
  14939. <exception name="IOException" type="java.io.IOException"/>
  14940. </method>
  14941. <method name="resetState"
  14942. abstract="false" native="false" synchronized="false"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <exception name="IOException" type="java.io.IOException"/>
  14946. </method>
  14947. <doc>
  14948. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  14949. with 'block-based' based compression algorithms, as opposed to
  14950. 'stream-based' compression algorithms.]]>
  14951. </doc>
  14952. </class>
  14953. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  14954. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  14955. <class name="BZip2Codec" extends="java.lang.Object"
  14956. abstract="false"
  14957. static="false" final="false" visibility="public"
  14958. deprecated="not deprecated">
  14959. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  14960. <constructor name="BZip2Codec"
  14961. static="false" final="false" visibility="public"
  14962. deprecated="not deprecated">
  14963. <doc>
  14964. <![CDATA[Creates a new instance of BZip2Codec]]>
  14965. </doc>
  14966. </constructor>
  14967. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14968. abstract="false" native="false" synchronized="false"
  14969. static="false" final="false" visibility="public"
  14970. deprecated="not deprecated">
  14971. <param name="out" type="java.io.OutputStream"/>
  14972. <exception name="IOException" type="java.io.IOException"/>
  14973. <doc>
  14974. <![CDATA[Creates CompressionOutputStream for BZip2
  14975. @param out
  14976. The output Stream
  14977. @return The BZip2 CompressionOutputStream
  14978. @throws java.io.IOException
  14979. Throws IO exception]]>
  14980. </doc>
  14981. </method>
  14982. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14983. abstract="false" native="false" synchronized="false"
  14984. static="false" final="false" visibility="public"
  14985. deprecated="not deprecated">
  14986. <param name="out" type="java.io.OutputStream"/>
  14987. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14988. <exception name="IOException" type="java.io.IOException"/>
  14989. <doc>
  14990. <![CDATA[Creates a compressor using given OutputStream.
  14991. @return CompressionOutputStream
  14992. @throws java.io.IOException]]>
  14993. </doc>
  14994. </method>
  14995. <method name="getCompressorType" return="java.lang.Class"
  14996. abstract="false" native="false" synchronized="false"
  14997. static="false" final="false" visibility="public"
  14998. deprecated="not deprecated">
  14999. <doc>
  15000. <![CDATA[This functionality is currently not supported.
  15001. @return BZip2DummyCompressor.class]]>
  15002. </doc>
  15003. </method>
  15004. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15005. abstract="false" native="false" synchronized="false"
  15006. static="false" final="false" visibility="public"
  15007. deprecated="not deprecated">
  15008. <doc>
  15009. <![CDATA[This functionality is currently not supported.
  15010. @return Compressor]]>
  15011. </doc>
  15012. </method>
  15013. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15014. abstract="false" native="false" synchronized="false"
  15015. static="false" final="false" visibility="public"
  15016. deprecated="not deprecated">
  15017. <param name="in" type="java.io.InputStream"/>
  15018. <exception name="IOException" type="java.io.IOException"/>
  15019. <doc>
  15020. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  15021. @param in
  15022. The InputStream
  15023. @return Returns CompressionInputStream for BZip2
  15024. @throws java.io.IOException
  15025. Throws IOException]]>
  15026. </doc>
  15027. </method>
  15028. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15029. abstract="false" native="false" synchronized="false"
  15030. static="false" final="false" visibility="public"
  15031. deprecated="not deprecated">
  15032. <param name="in" type="java.io.InputStream"/>
  15033. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15034. <exception name="IOException" type="java.io.IOException"/>
  15035. <doc>
  15036. <![CDATA[This functionality is currently not supported.
  15037. @return CompressionInputStream]]>
  15038. </doc>
  15039. </method>
  15040. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  15041. abstract="false" native="false" synchronized="false"
  15042. static="false" final="false" visibility="public"
  15043. deprecated="not deprecated">
  15044. <param name="seekableIn" type="java.io.InputStream"/>
  15045. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15046. <param name="start" type="long"/>
  15047. <param name="end" type="long"/>
  15048. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  15049. <exception name="IOException" type="java.io.IOException"/>
  15050. <doc>
  15051. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  15052. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  15053. @param seekableIn The InputStream
  15054. @param start The start offset into the compressed stream
  15055. @param end The end offset into the compressed stream
  15056. @param readMode Controls whether progress is reported continuously or
  15057. only at block boundaries.
  15058. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  15059. </doc>
  15060. </method>
  15061. <method name="getDecompressorType" return="java.lang.Class"
  15062. abstract="false" native="false" synchronized="false"
  15063. static="false" final="false" visibility="public"
  15064. deprecated="not deprecated">
  15065. <doc>
  15066. <![CDATA[This functionality is currently not supported.
  15067. @return BZip2DummyDecompressor.class]]>
  15068. </doc>
  15069. </method>
  15070. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15071. abstract="false" native="false" synchronized="false"
  15072. static="false" final="false" visibility="public"
  15073. deprecated="not deprecated">
  15074. <doc>
  15075. <![CDATA[This functionality is currently not supported.
  15076. @return Decompressor]]>
  15077. </doc>
  15078. </method>
  15079. <method name="getDefaultExtension" return="java.lang.String"
  15080. abstract="false" native="false" synchronized="false"
  15081. static="false" final="false" visibility="public"
  15082. deprecated="not deprecated">
  15083. <doc>
  15084. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  15085. @return A String telling the default bzip2 file extension]]>
  15086. </doc>
  15087. </method>
  15088. <doc>
  15089. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  15090. compression and decompression. Currently we dont have an implementation of
  15091. the Compressor and Decompressor interfaces, so those methods of
  15092. CompressionCodec which have a Compressor or Decompressor type argument, throw
  15093. UnsupportedOperationException.]]>
  15094. </doc>
  15095. </class>
  15096. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  15097. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  15098. <class name="CodecPool" extends="java.lang.Object"
  15099. abstract="false"
  15100. static="false" final="false" visibility="public"
  15101. deprecated="not deprecated">
  15102. <constructor name="CodecPool"
  15103. static="false" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. </constructor>
  15106. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15107. abstract="false" native="false" synchronized="false"
  15108. static="true" final="false" visibility="public"
  15109. deprecated="not deprecated">
  15110. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15112. <doc>
  15113. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  15114. pool or a new one.
  15115. @param codec the <code>CompressionCodec</code> for which to get the
  15116. <code>Compressor</code>
  15117. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  15118. @return <code>Compressor</code> for the given
  15119. <code>CompressionCodec</code> from the pool or a new one]]>
  15120. </doc>
  15121. </method>
  15122. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15123. abstract="false" native="false" synchronized="false"
  15124. static="true" final="false" visibility="public"
  15125. deprecated="not deprecated">
  15126. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15127. </method>
  15128. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15129. abstract="false" native="false" synchronized="false"
  15130. static="true" final="false" visibility="public"
  15131. deprecated="not deprecated">
  15132. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  15133. <doc>
  15134. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  15135. pool or a new one.
  15136. @param codec the <code>CompressionCodec</code> for which to get the
  15137. <code>Decompressor</code>
  15138. @return <code>Decompressor</code> for the given
  15139. <code>CompressionCodec</code> the pool or a new one]]>
  15140. </doc>
  15141. </method>
  15142. <method name="returnCompressor"
  15143. abstract="false" native="false" synchronized="false"
  15144. static="true" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15147. <doc>
  15148. <![CDATA[Return the {@link Compressor} to the pool.
  15149. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  15150. </doc>
  15151. </method>
  15152. <method name="returnDecompressor"
  15153. abstract="false" native="false" synchronized="false"
  15154. static="true" final="false" visibility="public"
  15155. deprecated="not deprecated">
  15156. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15157. <doc>
  15158. <![CDATA[Return the {@link Decompressor} to the pool.
  15159. @param decompressor the <code>Decompressor</code> to be returned to the
  15160. pool]]>
  15161. </doc>
  15162. </method>
  15163. <doc>
  15164. <![CDATA[A global compressor/decompressor pool used to save and reuse
  15165. (possibly native) compression/decompression codecs.]]>
  15166. </doc>
  15167. </class>
  15168. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  15169. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  15170. <interface name="CompressionCodec" abstract="true"
  15171. static="false" final="false" visibility="public"
  15172. deprecated="not deprecated">
  15173. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15174. abstract="false" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. <param name="out" type="java.io.OutputStream"/>
  15178. <exception name="IOException" type="java.io.IOException"/>
  15179. <doc>
  15180. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  15181. {@link OutputStream}.
  15182. @param out the location for the final output stream
  15183. @return a stream the user can write uncompressed data to have it compressed
  15184. @throws IOException]]>
  15185. </doc>
  15186. </method>
  15187. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15188. abstract="false" native="false" synchronized="false"
  15189. static="false" final="false" visibility="public"
  15190. deprecated="not deprecated">
  15191. <param name="out" type="java.io.OutputStream"/>
  15192. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15193. <exception name="IOException" type="java.io.IOException"/>
  15194. <doc>
  15195. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  15196. {@link OutputStream} with the given {@link Compressor}.
  15197. @param out the location for the final output stream
  15198. @param compressor compressor to use
  15199. @return a stream the user can write uncompressed data to have it compressed
  15200. @throws IOException]]>
  15201. </doc>
  15202. </method>
  15203. <method name="getCompressorType" return="java.lang.Class"
  15204. abstract="false" native="false" synchronized="false"
  15205. static="false" final="false" visibility="public"
  15206. deprecated="not deprecated">
  15207. <doc>
  15208. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  15209. @return the type of compressor needed by this codec.]]>
  15210. </doc>
  15211. </method>
  15212. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15213. abstract="false" native="false" synchronized="false"
  15214. static="false" final="false" visibility="public"
  15215. deprecated="not deprecated">
  15216. <doc>
  15217. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  15218. @return a new compressor for use by this codec]]>
  15219. </doc>
  15220. </method>
  15221. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15222. abstract="false" native="false" synchronized="false"
  15223. static="false" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <param name="in" type="java.io.InputStream"/>
  15226. <exception name="IOException" type="java.io.IOException"/>
  15227. <doc>
  15228. <![CDATA[Create a stream decompressor that will read from the given input stream.
  15229. @param in the stream to read compressed bytes from
  15230. @return a stream to read uncompressed bytes from
  15231. @throws IOException]]>
  15232. </doc>
  15233. </method>
  15234. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15235. abstract="false" native="false" synchronized="false"
  15236. static="false" final="false" visibility="public"
  15237. deprecated="not deprecated">
  15238. <param name="in" type="java.io.InputStream"/>
  15239. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15240. <exception name="IOException" type="java.io.IOException"/>
  15241. <doc>
  15242. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  15243. {@link InputStream} with the given {@link Decompressor}.
  15244. @param in the stream to read compressed bytes from
  15245. @param decompressor decompressor to use
  15246. @return a stream to read uncompressed bytes from
  15247. @throws IOException]]>
  15248. </doc>
  15249. </method>
  15250. <method name="getDecompressorType" return="java.lang.Class"
  15251. abstract="false" native="false" synchronized="false"
  15252. static="false" final="false" visibility="public"
  15253. deprecated="not deprecated">
  15254. <doc>
  15255. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  15256. @return the type of decompressor needed by this codec.]]>
  15257. </doc>
  15258. </method>
  15259. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15260. abstract="false" native="false" synchronized="false"
  15261. static="false" final="false" visibility="public"
  15262. deprecated="not deprecated">
  15263. <doc>
  15264. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  15265. @return a new decompressor for use by this codec]]>
  15266. </doc>
  15267. </method>
  15268. <method name="getDefaultExtension" return="java.lang.String"
  15269. abstract="false" native="false" synchronized="false"
  15270. static="false" final="false" visibility="public"
  15271. deprecated="not deprecated">
  15272. <doc>
  15273. <![CDATA[Get the default filename extension for this kind of compression.
  15274. @return the extension including the '.']]>
  15275. </doc>
  15276. </method>
  15277. <doc>
  15278. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  15279. </doc>
  15280. </interface>
  15281. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  15282. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  15283. <class name="CompressionCodecFactory" extends="java.lang.Object"
  15284. abstract="false"
  15285. static="false" final="false" visibility="public"
  15286. deprecated="not deprecated">
  15287. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  15288. static="false" final="false" visibility="public"
  15289. deprecated="not deprecated">
  15290. <doc>
  15291. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  15292. and register them. Defaults to gzip and zip.]]>
  15293. </doc>
  15294. </constructor>
  15295. <method name="toString" return="java.lang.String"
  15296. abstract="false" native="false" synchronized="false"
  15297. static="false" final="false" visibility="public"
  15298. deprecated="not deprecated">
  15299. <doc>
  15300. <![CDATA[Print the extension map out as a string.]]>
  15301. </doc>
  15302. </method>
  15303. <method name="getCodecClasses" return="java.util.List"
  15304. abstract="false" native="false" synchronized="false"
  15305. static="true" final="false" visibility="public"
  15306. deprecated="not deprecated">
  15307. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15308. <doc>
  15309. <![CDATA[Get the list of codecs listed in the configuration
  15310. @param conf the configuration to look in
  15311. @return a list of the Configuration classes or null if the attribute
  15312. was not set]]>
  15313. </doc>
  15314. </method>
  15315. <method name="setCodecClasses"
  15316. abstract="false" native="false" synchronized="false"
  15317. static="true" final="false" visibility="public"
  15318. deprecated="not deprecated">
  15319. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15320. <param name="classes" type="java.util.List"/>
  15321. <doc>
  15322. <![CDATA[Sets a list of codec classes in the configuration.
  15323. @param conf the configuration to modify
  15324. @param classes the list of classes to set]]>
  15325. </doc>
  15326. </method>
  15327. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  15328. abstract="false" native="false" synchronized="false"
  15329. static="false" final="false" visibility="public"
  15330. deprecated="not deprecated">
  15331. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15332. <doc>
  15333. <![CDATA[Find the relevant compression codec for the given file based on its
  15334. filename suffix.
  15335. @param file the filename to check
  15336. @return the codec object]]>
  15337. </doc>
  15338. </method>
  15339. <method name="removeSuffix" return="java.lang.String"
  15340. abstract="false" native="false" synchronized="false"
  15341. static="true" final="false" visibility="public"
  15342. deprecated="not deprecated">
  15343. <param name="filename" type="java.lang.String"/>
  15344. <param name="suffix" type="java.lang.String"/>
  15345. <doc>
  15346. <![CDATA[Removes a suffix from a filename, if it has it.
  15347. @param filename the filename to strip
  15348. @param suffix the suffix to remove
  15349. @return the shortened filename]]>
  15350. </doc>
  15351. </method>
  15352. <method name="main"
  15353. abstract="false" native="false" synchronized="false"
  15354. static="true" final="false" visibility="public"
  15355. deprecated="not deprecated">
  15356. <param name="args" type="java.lang.String[]"/>
  15357. <exception name="Exception" type="java.lang.Exception"/>
  15358. <doc>
  15359. <![CDATA[A little test program.
  15360. @param args]]>
  15361. </doc>
  15362. </method>
  15363. <field name="LOG" type="org.apache.commons.logging.Log"
  15364. transient="false" volatile="false"
  15365. static="true" final="true" visibility="public"
  15366. deprecated="not deprecated">
  15367. </field>
  15368. <doc>
  15369. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  15370. </doc>
  15371. </class>
  15372. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  15373. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  15374. <class name="CompressionInputStream" extends="java.io.InputStream"
  15375. abstract="true"
  15376. static="false" final="false" visibility="public"
  15377. deprecated="not deprecated">
  15378. <implements name="org.apache.hadoop.fs.Seekable"/>
  15379. <constructor name="CompressionInputStream" type="java.io.InputStream"
  15380. static="false" final="false" visibility="protected"
  15381. deprecated="not deprecated">
  15382. <exception name="IOException" type="java.io.IOException"/>
  15383. <doc>
  15384. <![CDATA[Create a compression input stream that reads
  15385. the decompressed bytes from the given stream.
  15386. @param in The input stream to be compressed.
  15387. @throws IOException]]>
  15388. </doc>
  15389. </constructor>
  15390. <method name="close"
  15391. abstract="false" native="false" synchronized="false"
  15392. static="false" final="false" visibility="public"
  15393. deprecated="not deprecated">
  15394. <exception name="IOException" type="java.io.IOException"/>
  15395. </method>
  15396. <method name="read" return="int"
  15397. abstract="true" native="false" synchronized="false"
  15398. static="false" final="false" visibility="public"
  15399. deprecated="not deprecated">
  15400. <param name="b" type="byte[]"/>
  15401. <param name="off" type="int"/>
  15402. <param name="len" type="int"/>
  15403. <exception name="IOException" type="java.io.IOException"/>
  15404. <doc>
  15405. <![CDATA[Read bytes from the stream.
  15406. Made abstract to prevent leakage to underlying stream.]]>
  15407. </doc>
  15408. </method>
  15409. <method name="resetState"
  15410. abstract="true" native="false" synchronized="false"
  15411. static="false" final="false" visibility="public"
  15412. deprecated="not deprecated">
  15413. <exception name="IOException" type="java.io.IOException"/>
  15414. <doc>
  15415. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  15416. as the underlying stream may have been repositioned.]]>
  15417. </doc>
  15418. </method>
  15419. <method name="getPos" return="long"
  15420. abstract="false" native="false" synchronized="false"
  15421. static="false" final="false" visibility="public"
  15422. deprecated="not deprecated">
  15423. <exception name="IOException" type="java.io.IOException"/>
  15424. <doc>
  15425. <![CDATA[This method returns the current position in the stream.
  15426. @return Current position in stream as a long]]>
  15427. </doc>
  15428. </method>
  15429. <method name="seek"
  15430. abstract="false" native="false" synchronized="false"
  15431. static="false" final="false" visibility="public"
  15432. deprecated="not deprecated">
  15433. <param name="pos" type="long"/>
  15434. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  15435. <doc>
  15436. <![CDATA[This method is current not supported.
  15437. @throws UnsupportedOperationException]]>
  15438. </doc>
  15439. </method>
  15440. <method name="seekToNewSource" return="boolean"
  15441. abstract="false" native="false" synchronized="false"
  15442. static="false" final="false" visibility="public"
  15443. deprecated="not deprecated">
  15444. <param name="targetPos" type="long"/>
  15445. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  15446. <doc>
  15447. <![CDATA[This method is current not supported.
  15448. @throws UnsupportedOperationException]]>
  15449. </doc>
  15450. </method>
  15451. <field name="in" type="java.io.InputStream"
  15452. transient="false" volatile="false"
  15453. static="false" final="true" visibility="protected"
  15454. deprecated="not deprecated">
  15455. <doc>
  15456. <![CDATA[The input stream to be compressed.]]>
  15457. </doc>
  15458. </field>
  15459. <field name="maxAvailableData" type="long"
  15460. transient="false" volatile="false"
  15461. static="false" final="false" visibility="protected"
  15462. deprecated="not deprecated">
  15463. </field>
  15464. <doc>
  15465. <![CDATA[A compression input stream.
  15466. <p>Implementations are assumed to be buffered. This permits clients to
  15467. reposition the underlying input stream then call {@link #resetState()},
  15468. without having to also synchronize client buffers.]]>
  15469. </doc>
  15470. </class>
  15471. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  15472. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  15473. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  15474. abstract="true"
  15475. static="false" final="false" visibility="public"
  15476. deprecated="not deprecated">
  15477. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  15478. static="false" final="false" visibility="protected"
  15479. deprecated="not deprecated">
  15480. <doc>
  15481. <![CDATA[Create a compression output stream that writes
  15482. the compressed bytes to the given stream.
  15483. @param out]]>
  15484. </doc>
  15485. </constructor>
  15486. <method name="close"
  15487. abstract="false" native="false" synchronized="false"
  15488. static="false" final="false" visibility="public"
  15489. deprecated="not deprecated">
  15490. <exception name="IOException" type="java.io.IOException"/>
  15491. </method>
  15492. <method name="flush"
  15493. abstract="false" native="false" synchronized="false"
  15494. static="false" final="false" visibility="public"
  15495. deprecated="not deprecated">
  15496. <exception name="IOException" type="java.io.IOException"/>
  15497. </method>
  15498. <method name="write"
  15499. abstract="true" native="false" synchronized="false"
  15500. static="false" final="false" visibility="public"
  15501. deprecated="not deprecated">
  15502. <param name="b" type="byte[]"/>
  15503. <param name="off" type="int"/>
  15504. <param name="len" type="int"/>
  15505. <exception name="IOException" type="java.io.IOException"/>
  15506. <doc>
  15507. <![CDATA[Write compressed bytes to the stream.
  15508. Made abstract to prevent leakage to underlying stream.]]>
  15509. </doc>
  15510. </method>
  15511. <method name="finish"
  15512. abstract="true" native="false" synchronized="false"
  15513. static="false" final="false" visibility="public"
  15514. deprecated="not deprecated">
  15515. <exception name="IOException" type="java.io.IOException"/>
  15516. <doc>
  15517. <![CDATA[Finishes writing compressed data to the output stream
  15518. without closing the underlying stream.]]>
  15519. </doc>
  15520. </method>
  15521. <method name="resetState"
  15522. abstract="true" native="false" synchronized="false"
  15523. static="false" final="false" visibility="public"
  15524. deprecated="not deprecated">
  15525. <exception name="IOException" type="java.io.IOException"/>
  15526. <doc>
  15527. <![CDATA[Reset the compression to the initial state.
  15528. Does not reset the underlying stream.]]>
  15529. </doc>
  15530. </method>
  15531. <field name="out" type="java.io.OutputStream"
  15532. transient="false" volatile="false"
  15533. static="false" final="true" visibility="protected"
  15534. deprecated="not deprecated">
  15535. <doc>
  15536. <![CDATA[The output stream to be compressed.]]>
  15537. </doc>
  15538. </field>
  15539. <doc>
  15540. <![CDATA[A compression output stream.]]>
  15541. </doc>
  15542. </class>
  15543. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  15544. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  15545. <interface name="Compressor" abstract="true"
  15546. static="false" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <method name="setInput"
  15549. abstract="false" native="false" synchronized="false"
  15550. static="false" final="false" visibility="public"
  15551. deprecated="not deprecated">
  15552. <param name="b" type="byte[]"/>
  15553. <param name="off" type="int"/>
  15554. <param name="len" type="int"/>
  15555. <doc>
  15556. <![CDATA[Sets input data for compression.
  15557. This should be called whenever #needsInput() returns
  15558. <code>true</code> indicating that more input data is required.
  15559. @param b Input data
  15560. @param off Start offset
  15561. @param len Length]]>
  15562. </doc>
  15563. </method>
  15564. <method name="needsInput" return="boolean"
  15565. abstract="false" native="false" synchronized="false"
  15566. static="false" final="false" visibility="public"
  15567. deprecated="not deprecated">
  15568. <doc>
  15569. <![CDATA[Returns true if the input data buffer is empty and
  15570. #setInput() should be called to provide more input.
  15571. @return <code>true</code> if the input data buffer is empty and
  15572. #setInput() should be called in order to provide more input.]]>
  15573. </doc>
  15574. </method>
  15575. <method name="setDictionary"
  15576. abstract="false" native="false" synchronized="false"
  15577. static="false" final="false" visibility="public"
  15578. deprecated="not deprecated">
  15579. <param name="b" type="byte[]"/>
  15580. <param name="off" type="int"/>
  15581. <param name="len" type="int"/>
  15582. <doc>
  15583. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15584. is used when the history buffer can be predetermined.
  15585. @param b Dictionary data bytes
  15586. @param off Start offset
  15587. @param len Length]]>
  15588. </doc>
  15589. </method>
  15590. <method name="getBytesRead" return="long"
  15591. abstract="false" native="false" synchronized="false"
  15592. static="false" final="false" visibility="public"
  15593. deprecated="not deprecated">
  15594. <doc>
  15595. <![CDATA[Return number of uncompressed bytes input so far.]]>
  15596. </doc>
  15597. </method>
  15598. <method name="getBytesWritten" return="long"
  15599. abstract="false" native="false" synchronized="false"
  15600. static="false" final="false" visibility="public"
  15601. deprecated="not deprecated">
  15602. <doc>
  15603. <![CDATA[Return number of compressed bytes output so far.]]>
  15604. </doc>
  15605. </method>
  15606. <method name="finish"
  15607. abstract="false" native="false" synchronized="false"
  15608. static="false" final="false" visibility="public"
  15609. deprecated="not deprecated">
  15610. <doc>
  15611. <![CDATA[When called, indicates that compression should end
  15612. with the current contents of the input buffer.]]>
  15613. </doc>
  15614. </method>
  15615. <method name="finished" return="boolean"
  15616. abstract="false" native="false" synchronized="false"
  15617. static="false" final="false" visibility="public"
  15618. deprecated="not deprecated">
  15619. <doc>
  15620. <![CDATA[Returns true if the end of the compressed
  15621. data output stream has been reached.
  15622. @return <code>true</code> if the end of the compressed
  15623. data output stream has been reached.]]>
  15624. </doc>
  15625. </method>
  15626. <method name="compress" return="int"
  15627. abstract="false" native="false" synchronized="false"
  15628. static="false" final="false" visibility="public"
  15629. deprecated="not deprecated">
  15630. <param name="b" type="byte[]"/>
  15631. <param name="off" type="int"/>
  15632. <param name="len" type="int"/>
  15633. <exception name="IOException" type="java.io.IOException"/>
  15634. <doc>
  15635. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  15636. of bytes of compressed data. A return value of 0 indicates that
  15637. needsInput() should be called in order to determine if more input
  15638. data is required.
  15639. @param b Buffer for the compressed data
  15640. @param off Start offset of the data
  15641. @param len Size of the buffer
  15642. @return The actual number of bytes of compressed data.]]>
  15643. </doc>
  15644. </method>
  15645. <method name="reset"
  15646. abstract="false" native="false" synchronized="false"
  15647. static="false" final="false" visibility="public"
  15648. deprecated="not deprecated">
  15649. <doc>
  15650. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  15651. </doc>
  15652. </method>
  15653. <method name="end"
  15654. abstract="false" native="false" synchronized="false"
  15655. static="false" final="false" visibility="public"
  15656. deprecated="not deprecated">
  15657. <doc>
  15658. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  15659. </doc>
  15660. </method>
  15661. <method name="reinit"
  15662. abstract="false" native="false" synchronized="false"
  15663. static="false" final="false" visibility="public"
  15664. deprecated="not deprecated">
  15665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15666. <doc>
  15667. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  15668. the given Configuration
  15669. @param conf Configuration from which new setting are fetched]]>
  15670. </doc>
  15671. </method>
  15672. <doc>
  15673. <![CDATA[Specification of a stream-based 'compressor' which can be
  15674. plugged into a {@link CompressionOutputStream} to compress data.
  15675. This is modelled after {@link java.util.zip.Deflater}]]>
  15676. </doc>
  15677. </interface>
  15678. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  15679. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  15680. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  15681. abstract="false"
  15682. static="false" final="false" visibility="public"
  15683. deprecated="not deprecated">
  15684. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  15685. static="false" final="false" visibility="public"
  15686. deprecated="not deprecated">
  15687. </constructor>
  15688. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15689. static="false" final="false" visibility="public"
  15690. deprecated="not deprecated">
  15691. </constructor>
  15692. <constructor name="CompressorStream" type="java.io.OutputStream"
  15693. static="false" final="false" visibility="protected"
  15694. deprecated="not deprecated">
  15695. <doc>
  15696. <![CDATA[Allow derived classes to directly set the underlying stream.
  15697. @param out Underlying output stream.]]>
  15698. </doc>
  15699. </constructor>
  15700. <method name="write"
  15701. abstract="false" native="false" synchronized="false"
  15702. static="false" final="false" visibility="public"
  15703. deprecated="not deprecated">
  15704. <param name="b" type="byte[]"/>
  15705. <param name="off" type="int"/>
  15706. <param name="len" type="int"/>
  15707. <exception name="IOException" type="java.io.IOException"/>
  15708. </method>
  15709. <method name="compress"
  15710. abstract="false" native="false" synchronized="false"
  15711. static="false" final="false" visibility="protected"
  15712. deprecated="not deprecated">
  15713. <exception name="IOException" type="java.io.IOException"/>
  15714. </method>
  15715. <method name="finish"
  15716. abstract="false" native="false" synchronized="false"
  15717. static="false" final="false" visibility="public"
  15718. deprecated="not deprecated">
  15719. <exception name="IOException" type="java.io.IOException"/>
  15720. </method>
  15721. <method name="resetState"
  15722. abstract="false" native="false" synchronized="false"
  15723. static="false" final="false" visibility="public"
  15724. deprecated="not deprecated">
  15725. <exception name="IOException" type="java.io.IOException"/>
  15726. </method>
  15727. <method name="close"
  15728. abstract="false" native="false" synchronized="false"
  15729. static="false" final="false" visibility="public"
  15730. deprecated="not deprecated">
  15731. <exception name="IOException" type="java.io.IOException"/>
  15732. </method>
  15733. <method name="write"
  15734. abstract="false" native="false" synchronized="false"
  15735. static="false" final="false" visibility="public"
  15736. deprecated="not deprecated">
  15737. <param name="b" type="int"/>
  15738. <exception name="IOException" type="java.io.IOException"/>
  15739. </method>
  15740. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  15741. transient="false" volatile="false"
  15742. static="false" final="false" visibility="protected"
  15743. deprecated="not deprecated">
  15744. </field>
  15745. <field name="buffer" type="byte[]"
  15746. transient="false" volatile="false"
  15747. static="false" final="false" visibility="protected"
  15748. deprecated="not deprecated">
  15749. </field>
  15750. <field name="closed" type="boolean"
  15751. transient="false" volatile="false"
  15752. static="false" final="false" visibility="protected"
  15753. deprecated="not deprecated">
  15754. </field>
  15755. </class>
  15756. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  15757. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  15758. <interface name="Decompressor" abstract="true"
  15759. static="false" final="false" visibility="public"
  15760. deprecated="not deprecated">
  15761. <method name="setInput"
  15762. abstract="false" native="false" synchronized="false"
  15763. static="false" final="false" visibility="public"
  15764. deprecated="not deprecated">
  15765. <param name="b" type="byte[]"/>
  15766. <param name="off" type="int"/>
  15767. <param name="len" type="int"/>
  15768. <doc>
  15769. <![CDATA[Sets input data for decompression.
  15770. This should be called whenever #needsInput() returns
  15771. <code>true</code> indicating that more input data is required.
  15772. @param b Input data
  15773. @param off Start offset
  15774. @param len Length]]>
  15775. </doc>
  15776. </method>
  15777. <method name="needsInput" return="boolean"
  15778. abstract="false" native="false" synchronized="false"
  15779. static="false" final="false" visibility="public"
  15780. deprecated="not deprecated">
  15781. <doc>
  15782. <![CDATA[Returns true if the input data buffer is empty and
  15783. #setInput() should be called to provide more input.
  15784. @return <code>true</code> if the input data buffer is empty and
  15785. #setInput() should be called in order to provide more input.]]>
  15786. </doc>
  15787. </method>
  15788. <method name="setDictionary"
  15789. abstract="false" native="false" synchronized="false"
  15790. static="false" final="false" visibility="public"
  15791. deprecated="not deprecated">
  15792. <param name="b" type="byte[]"/>
  15793. <param name="off" type="int"/>
  15794. <param name="len" type="int"/>
  15795. <doc>
  15796. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15797. is used when the history buffer can be predetermined.
  15798. @param b Dictionary data bytes
  15799. @param off Start offset
  15800. @param len Length]]>
  15801. </doc>
  15802. </method>
  15803. <method name="needsDictionary" return="boolean"
  15804. abstract="false" native="false" synchronized="false"
  15805. static="false" final="false" visibility="public"
  15806. deprecated="not deprecated">
  15807. <doc>
  15808. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  15809. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  15810. </doc>
  15811. </method>
  15812. <method name="finished" return="boolean"
  15813. abstract="false" native="false" synchronized="false"
  15814. static="false" final="false" visibility="public"
  15815. deprecated="not deprecated">
  15816. <doc>
  15817. <![CDATA[Returns true if the end of the compressed
  15818. data output stream has been reached.
  15819. @return <code>true</code> if the end of the compressed
  15820. data output stream has been reached.]]>
  15821. </doc>
  15822. </method>
  15823. <method name="decompress" return="int"
  15824. abstract="false" native="false" synchronized="false"
  15825. static="false" final="false" visibility="public"
  15826. deprecated="not deprecated">
  15827. <param name="b" type="byte[]"/>
  15828. <param name="off" type="int"/>
  15829. <param name="len" type="int"/>
  15830. <exception name="IOException" type="java.io.IOException"/>
  15831. <doc>
  15832. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  15833. of bytes of uncompressed data. A return value of 0 indicates that
  15834. #needsInput() should be called in order to determine if more input
  15835. data is required.
  15836. @param b Buffer for the compressed data
  15837. @param off Start offset of the data
  15838. @param len Size of the buffer
  15839. @return The actual number of bytes of compressed data.
  15840. @throws IOException]]>
  15841. </doc>
  15842. </method>
  15843. <method name="reset"
  15844. abstract="false" native="false" synchronized="false"
  15845. static="false" final="false" visibility="public"
  15846. deprecated="not deprecated">
  15847. <doc>
  15848. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  15849. </doc>
  15850. </method>
  15851. <method name="end"
  15852. abstract="false" native="false" synchronized="false"
  15853. static="false" final="false" visibility="public"
  15854. deprecated="not deprecated">
  15855. <doc>
  15856. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  15857. </doc>
  15858. </method>
  15859. <doc>
  15860. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  15861. plugged into a {@link CompressionInputStream} to compress data.
  15862. This is modelled after {@link java.util.zip.Inflater}]]>
  15863. </doc>
  15864. </interface>
  15865. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  15866. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  15867. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  15868. abstract="false"
  15869. static="false" final="false" visibility="public"
  15870. deprecated="not deprecated">
  15871. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15872. static="false" final="false" visibility="public"
  15873. deprecated="not deprecated">
  15874. <exception name="IOException" type="java.io.IOException"/>
  15875. </constructor>
  15876. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15877. static="false" final="false" visibility="public"
  15878. deprecated="not deprecated">
  15879. <exception name="IOException" type="java.io.IOException"/>
  15880. </constructor>
  15881. <constructor name="DecompressorStream" type="java.io.InputStream"
  15882. static="false" final="false" visibility="protected"
  15883. deprecated="not deprecated">
  15884. <exception name="IOException" type="java.io.IOException"/>
  15885. <doc>
  15886. <![CDATA[Allow derived classes to directly set the underlying stream.
  15887. @param in Underlying input stream.
  15888. @throws IOException]]>
  15889. </doc>
  15890. </constructor>
  15891. <method name="read" return="int"
  15892. abstract="false" native="false" synchronized="false"
  15893. static="false" final="false" visibility="public"
  15894. deprecated="not deprecated">
  15895. <exception name="IOException" type="java.io.IOException"/>
  15896. </method>
  15897. <method name="read" return="int"
  15898. abstract="false" native="false" synchronized="false"
  15899. static="false" final="false" visibility="public"
  15900. deprecated="not deprecated">
  15901. <param name="b" type="byte[]"/>
  15902. <param name="off" type="int"/>
  15903. <param name="len" type="int"/>
  15904. <exception name="IOException" type="java.io.IOException"/>
  15905. </method>
  15906. <method name="decompress" return="int"
  15907. abstract="false" native="false" synchronized="false"
  15908. static="false" final="false" visibility="protected"
  15909. deprecated="not deprecated">
  15910. <param name="b" type="byte[]"/>
  15911. <param name="off" type="int"/>
  15912. <param name="len" type="int"/>
  15913. <exception name="IOException" type="java.io.IOException"/>
  15914. </method>
  15915. <method name="getCompressedData"
  15916. abstract="false" native="false" synchronized="false"
  15917. static="false" final="false" visibility="protected"
  15918. deprecated="not deprecated">
  15919. <exception name="IOException" type="java.io.IOException"/>
  15920. </method>
  15921. <method name="checkStream"
  15922. abstract="false" native="false" synchronized="false"
  15923. static="false" final="false" visibility="protected"
  15924. deprecated="not deprecated">
  15925. <exception name="IOException" type="java.io.IOException"/>
  15926. </method>
  15927. <method name="resetState"
  15928. abstract="false" native="false" synchronized="false"
  15929. static="false" final="false" visibility="public"
  15930. deprecated="not deprecated">
  15931. <exception name="IOException" type="java.io.IOException"/>
  15932. </method>
  15933. <method name="skip" return="long"
  15934. abstract="false" native="false" synchronized="false"
  15935. static="false" final="false" visibility="public"
  15936. deprecated="not deprecated">
  15937. <param name="n" type="long"/>
  15938. <exception name="IOException" type="java.io.IOException"/>
  15939. </method>
  15940. <method name="available" return="int"
  15941. abstract="false" native="false" synchronized="false"
  15942. static="false" final="false" visibility="public"
  15943. deprecated="not deprecated">
  15944. <exception name="IOException" type="java.io.IOException"/>
  15945. </method>
  15946. <method name="close"
  15947. abstract="false" native="false" synchronized="false"
  15948. static="false" final="false" visibility="public"
  15949. deprecated="not deprecated">
  15950. <exception name="IOException" type="java.io.IOException"/>
  15951. </method>
  15952. <method name="markSupported" return="boolean"
  15953. abstract="false" native="false" synchronized="false"
  15954. static="false" final="false" visibility="public"
  15955. deprecated="not deprecated">
  15956. </method>
  15957. <method name="mark"
  15958. abstract="false" native="false" synchronized="true"
  15959. static="false" final="false" visibility="public"
  15960. deprecated="not deprecated">
  15961. <param name="readlimit" type="int"/>
  15962. </method>
  15963. <method name="reset"
  15964. abstract="false" native="false" synchronized="true"
  15965. static="false" final="false" visibility="public"
  15966. deprecated="not deprecated">
  15967. <exception name="IOException" type="java.io.IOException"/>
  15968. </method>
  15969. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  15970. transient="false" volatile="false"
  15971. static="false" final="false" visibility="protected"
  15972. deprecated="not deprecated">
  15973. </field>
  15974. <field name="buffer" type="byte[]"
  15975. transient="false" volatile="false"
  15976. static="false" final="false" visibility="protected"
  15977. deprecated="not deprecated">
  15978. </field>
  15979. <field name="eof" type="boolean"
  15980. transient="false" volatile="false"
  15981. static="false" final="false" visibility="protected"
  15982. deprecated="not deprecated">
  15983. </field>
  15984. <field name="closed" type="boolean"
  15985. transient="false" volatile="false"
  15986. static="false" final="false" visibility="protected"
  15987. deprecated="not deprecated">
  15988. </field>
  15989. </class>
  15990. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  15991. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  15992. <class name="DefaultCodec" extends="java.lang.Object"
  15993. abstract="false"
  15994. static="false" final="false" visibility="public"
  15995. deprecated="not deprecated">
  15996. <implements name="org.apache.hadoop.conf.Configurable"/>
  15997. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15998. <constructor name="DefaultCodec"
  15999. static="false" final="false" visibility="public"
  16000. deprecated="not deprecated">
  16001. </constructor>
  16002. <method name="setConf"
  16003. abstract="false" native="false" synchronized="false"
  16004. static="false" final="false" visibility="public"
  16005. deprecated="not deprecated">
  16006. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16007. </method>
  16008. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16009. abstract="false" native="false" synchronized="false"
  16010. static="false" final="false" visibility="public"
  16011. deprecated="not deprecated">
  16012. </method>
  16013. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16014. abstract="false" native="false" synchronized="false"
  16015. static="false" final="false" visibility="public"
  16016. deprecated="not deprecated">
  16017. <param name="out" type="java.io.OutputStream"/>
  16018. <exception name="IOException" type="java.io.IOException"/>
  16019. </method>
  16020. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16021. abstract="false" native="false" synchronized="false"
  16022. static="false" final="false" visibility="public"
  16023. deprecated="not deprecated">
  16024. <param name="out" type="java.io.OutputStream"/>
  16025. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16026. <exception name="IOException" type="java.io.IOException"/>
  16027. </method>
  16028. <method name="getCompressorType" return="java.lang.Class"
  16029. abstract="false" native="false" synchronized="false"
  16030. static="false" final="false" visibility="public"
  16031. deprecated="not deprecated">
  16032. </method>
  16033. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16034. abstract="false" native="false" synchronized="false"
  16035. static="false" final="false" visibility="public"
  16036. deprecated="not deprecated">
  16037. </method>
  16038. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16039. abstract="false" native="false" synchronized="false"
  16040. static="false" final="false" visibility="public"
  16041. deprecated="not deprecated">
  16042. <param name="in" type="java.io.InputStream"/>
  16043. <exception name="IOException" type="java.io.IOException"/>
  16044. </method>
  16045. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16046. abstract="false" native="false" synchronized="false"
  16047. static="false" final="false" visibility="public"
  16048. deprecated="not deprecated">
  16049. <param name="in" type="java.io.InputStream"/>
  16050. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16051. <exception name="IOException" type="java.io.IOException"/>
  16052. </method>
  16053. <method name="getDecompressorType" return="java.lang.Class"
  16054. abstract="false" native="false" synchronized="false"
  16055. static="false" final="false" visibility="public"
  16056. deprecated="not deprecated">
  16057. </method>
  16058. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16059. abstract="false" native="false" synchronized="false"
  16060. static="false" final="false" visibility="public"
  16061. deprecated="not deprecated">
  16062. </method>
  16063. <method name="getDefaultExtension" return="java.lang.String"
  16064. abstract="false" native="false" synchronized="false"
  16065. static="false" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. </method>
  16068. </class>
  16069. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  16070. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  16071. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  16072. abstract="false"
  16073. static="false" final="false" visibility="public"
  16074. deprecated="not deprecated">
  16075. <constructor name="GzipCodec"
  16076. static="false" final="false" visibility="public"
  16077. deprecated="not deprecated">
  16078. </constructor>
  16079. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16080. abstract="false" native="false" synchronized="false"
  16081. static="false" final="false" visibility="public"
  16082. deprecated="not deprecated">
  16083. <param name="out" type="java.io.OutputStream"/>
  16084. <exception name="IOException" type="java.io.IOException"/>
  16085. </method>
  16086. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16087. abstract="false" native="false" synchronized="false"
  16088. static="false" final="false" visibility="public"
  16089. deprecated="not deprecated">
  16090. <param name="out" type="java.io.OutputStream"/>
  16091. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16092. <exception name="IOException" type="java.io.IOException"/>
  16093. </method>
  16094. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16095. abstract="false" native="false" synchronized="false"
  16096. static="false" final="false" visibility="public"
  16097. deprecated="not deprecated">
  16098. </method>
  16099. <method name="getCompressorType" return="java.lang.Class"
  16100. abstract="false" native="false" synchronized="false"
  16101. static="false" final="false" visibility="public"
  16102. deprecated="not deprecated">
  16103. </method>
  16104. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16105. abstract="false" native="false" synchronized="false"
  16106. static="false" final="false" visibility="public"
  16107. deprecated="not deprecated">
  16108. <param name="in" type="java.io.InputStream"/>
  16109. <exception name="IOException" type="java.io.IOException"/>
  16110. </method>
  16111. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16112. abstract="false" native="false" synchronized="false"
  16113. static="false" final="false" visibility="public"
  16114. deprecated="not deprecated">
  16115. <param name="in" type="java.io.InputStream"/>
  16116. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16117. <exception name="IOException" type="java.io.IOException"/>
  16118. </method>
  16119. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16120. abstract="false" native="false" synchronized="false"
  16121. static="false" final="false" visibility="public"
  16122. deprecated="not deprecated">
  16123. </method>
  16124. <method name="getDecompressorType" return="java.lang.Class"
  16125. abstract="false" native="false" synchronized="false"
  16126. static="false" final="false" visibility="public"
  16127. deprecated="not deprecated">
  16128. </method>
  16129. <method name="getDefaultExtension" return="java.lang.String"
  16130. abstract="false" native="false" synchronized="false"
  16131. static="false" final="false" visibility="public"
  16132. deprecated="not deprecated">
  16133. </method>
  16134. <doc>
  16135. <![CDATA[This class creates gzip compressors/decompressors.]]>
  16136. </doc>
  16137. </class>
  16138. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  16139. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  16140. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16141. abstract="false"
  16142. static="true" final="false" visibility="protected"
  16143. deprecated="not deprecated">
  16144. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  16145. static="false" final="false" visibility="public"
  16146. deprecated="not deprecated">
  16147. <exception name="IOException" type="java.io.IOException"/>
  16148. </constructor>
  16149. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  16150. static="false" final="false" visibility="protected"
  16151. deprecated="not deprecated">
  16152. <exception name="IOException" type="java.io.IOException"/>
  16153. <doc>
  16154. <![CDATA[Allow subclasses to directly set the inflater stream.
  16155. @throws IOException]]>
  16156. </doc>
  16157. </constructor>
  16158. <method name="available" return="int"
  16159. abstract="false" native="false" synchronized="false"
  16160. static="false" final="false" visibility="public"
  16161. deprecated="not deprecated">
  16162. <exception name="IOException" type="java.io.IOException"/>
  16163. </method>
  16164. <method name="close"
  16165. abstract="false" native="false" synchronized="false"
  16166. static="false" final="false" visibility="public"
  16167. deprecated="not deprecated">
  16168. <exception name="IOException" type="java.io.IOException"/>
  16169. </method>
  16170. <method name="read" return="int"
  16171. abstract="false" native="false" synchronized="false"
  16172. static="false" final="false" visibility="public"
  16173. deprecated="not deprecated">
  16174. <exception name="IOException" type="java.io.IOException"/>
  16175. </method>
  16176. <method name="read" return="int"
  16177. abstract="false" native="false" synchronized="false"
  16178. static="false" final="false" visibility="public"
  16179. deprecated="not deprecated">
  16180. <param name="data" type="byte[]"/>
  16181. <param name="offset" type="int"/>
  16182. <param name="len" type="int"/>
  16183. <exception name="IOException" type="java.io.IOException"/>
  16184. </method>
  16185. <method name="skip" return="long"
  16186. abstract="false" native="false" synchronized="false"
  16187. static="false" final="false" visibility="public"
  16188. deprecated="not deprecated">
  16189. <param name="offset" type="long"/>
  16190. <exception name="IOException" type="java.io.IOException"/>
  16191. </method>
  16192. <method name="resetState"
  16193. abstract="false" native="false" synchronized="false"
  16194. static="false" final="false" visibility="public"
  16195. deprecated="not deprecated">
  16196. <exception name="IOException" type="java.io.IOException"/>
  16197. </method>
  16198. </class>
  16199. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  16200. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16201. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16202. abstract="false"
  16203. static="true" final="false" visibility="protected"
  16204. deprecated="not deprecated">
  16205. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  16206. static="false" final="false" visibility="public"
  16207. deprecated="not deprecated">
  16208. <exception name="IOException" type="java.io.IOException"/>
  16209. </constructor>
  16210. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  16211. static="false" final="false" visibility="protected"
  16212. deprecated="not deprecated">
  16213. <doc>
  16214. <![CDATA[Allow children types to put a different type in here.
  16215. @param out the Deflater stream to use]]>
  16216. </doc>
  16217. </constructor>
  16218. <method name="close"
  16219. abstract="false" native="false" synchronized="false"
  16220. static="false" final="false" visibility="public"
  16221. deprecated="not deprecated">
  16222. <exception name="IOException" type="java.io.IOException"/>
  16223. </method>
  16224. <method name="flush"
  16225. abstract="false" native="false" synchronized="false"
  16226. static="false" final="false" visibility="public"
  16227. deprecated="not deprecated">
  16228. <exception name="IOException" type="java.io.IOException"/>
  16229. </method>
  16230. <method name="write"
  16231. abstract="false" native="false" synchronized="false"
  16232. static="false" final="false" visibility="public"
  16233. deprecated="not deprecated">
  16234. <param name="b" type="int"/>
  16235. <exception name="IOException" type="java.io.IOException"/>
  16236. </method>
  16237. <method name="write"
  16238. abstract="false" native="false" synchronized="false"
  16239. static="false" final="false" visibility="public"
  16240. deprecated="not deprecated">
  16241. <param name="data" type="byte[]"/>
  16242. <param name="offset" type="int"/>
  16243. <param name="length" type="int"/>
  16244. <exception name="IOException" type="java.io.IOException"/>
  16245. </method>
  16246. <method name="finish"
  16247. abstract="false" native="false" synchronized="false"
  16248. static="false" final="false" visibility="public"
  16249. deprecated="not deprecated">
  16250. <exception name="IOException" type="java.io.IOException"/>
  16251. </method>
  16252. <method name="resetState"
  16253. abstract="false" native="false" synchronized="false"
  16254. static="false" final="false" visibility="public"
  16255. deprecated="not deprecated">
  16256. <exception name="IOException" type="java.io.IOException"/>
  16257. </method>
  16258. <doc>
  16259. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  16260. a CompressionOutputStream.]]>
  16261. </doc>
  16262. </class>
  16263. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  16264. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  16265. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  16266. abstract="true"
  16267. static="false" final="false" visibility="public"
  16268. deprecated="not deprecated">
  16269. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  16270. static="false" final="false" visibility="public"
  16271. deprecated="not deprecated">
  16272. <exception name="IOException" type="java.io.IOException"/>
  16273. </constructor>
  16274. <method name="setStart"
  16275. abstract="false" native="false" synchronized="false"
  16276. static="false" final="false" visibility="protected"
  16277. deprecated="not deprecated">
  16278. <param name="start" type="long"/>
  16279. </method>
  16280. <method name="setEnd"
  16281. abstract="false" native="false" synchronized="false"
  16282. static="false" final="false" visibility="protected"
  16283. deprecated="not deprecated">
  16284. <param name="end" type="long"/>
  16285. </method>
  16286. <method name="getAdjustedStart" return="long"
  16287. abstract="false" native="false" synchronized="false"
  16288. static="false" final="false" visibility="public"
  16289. deprecated="not deprecated">
  16290. <doc>
  16291. <![CDATA[After calling createInputStream, the values of start or end
  16292. might change. So this method can be used to get the new value of start.
  16293. @return The changed value of start]]>
  16294. </doc>
  16295. </method>
  16296. <method name="getAdjustedEnd" return="long"
  16297. abstract="false" native="false" synchronized="false"
  16298. static="false" final="false" visibility="public"
  16299. deprecated="not deprecated">
  16300. <doc>
  16301. <![CDATA[After calling createInputStream, the values of start or end
  16302. might change. So this method can be used to get the new value of end.
  16303. @return The changed value of end]]>
  16304. </doc>
  16305. </method>
  16306. <doc>
  16307. <![CDATA[An InputStream covering a range of compressed data. The start and end
  16308. offsets requested by a client may be modified by the codec to fit block
  16309. boundaries or other algorithm-dependent requirements.]]>
  16310. </doc>
  16311. </class>
  16312. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  16313. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  16314. <interface name="SplittableCompressionCodec" abstract="true"
  16315. static="false" final="false" visibility="public"
  16316. deprecated="not deprecated">
  16317. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  16318. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16319. abstract="false" native="false" synchronized="false"
  16320. static="false" final="false" visibility="public"
  16321. deprecated="not deprecated">
  16322. <param name="seekableIn" type="java.io.InputStream"/>
  16323. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16324. <param name="start" type="long"/>
  16325. <param name="end" type="long"/>
  16326. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16327. <exception name="IOException" type="java.io.IOException"/>
  16328. <doc>
  16329. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  16330. the codecs wants the ability to work with the underlying stream positions.
  16331. @param seekableIn The seekable input stream (seeks in compressed data)
  16332. @param start The start offset into the compressed stream. May be changed
  16333. by the underlying codec.
  16334. @param end The end offset into the compressed stream. May be changed by
  16335. the underlying codec.
  16336. @param readMode Controls whether stream position is reported continuously
  16337. from the compressed stream only only at block boundaries.
  16338. @return a stream to read uncompressed bytes from]]>
  16339. </doc>
  16340. </method>
  16341. <doc>
  16342. <![CDATA[This interface is meant to be implemented by those compression codecs
  16343. which are capable to compress / de-compress a stream starting at any
  16344. arbitrary position.
  16345. Especially the process of de-compressing a stream starting at some arbitrary
  16346. position is challenging. Most of the codecs are only able to successfully
  16347. de-compress a stream, if they start from the very beginning till the end.
  16348. One of the reasons is the stored state at the beginning of the stream which
  16349. is crucial for de-compression.
  16350. Yet there are few codecs which do not save the whole state at the beginning
  16351. of the stream and hence can be used to de-compress stream starting at any
  16352. arbitrary points. This interface is meant to be used by such codecs. Such
  16353. codecs are highly valuable, especially in the context of Hadoop, because
  16354. an input compressed file can be split and hence can be worked on by multiple
  16355. machines in parallel.]]>
  16356. </doc>
  16357. </interface>
  16358. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  16359. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  16360. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  16361. abstract="false"
  16362. static="true" final="true" visibility="public"
  16363. deprecated="not deprecated">
  16364. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  16365. abstract="false" native="false" synchronized="false"
  16366. static="true" final="false" visibility="public"
  16367. deprecated="not deprecated">
  16368. </method>
  16369. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  16370. abstract="false" native="false" synchronized="false"
  16371. static="true" final="false" visibility="public"
  16372. deprecated="not deprecated">
  16373. <param name="name" type="java.lang.String"/>
  16374. </method>
  16375. <doc>
  16376. <![CDATA[During decompression, data can be read off from the decompressor in two
  16377. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  16378. of compressing data in blocks and then decompressing the blocks. In
  16379. Blocked reading mode codecs inform 'end of block' events to its caller.
  16380. While in continuous mode, the caller of codecs is unaware about the blocks
  16381. and uncompressed data is spilled out like a continuous stream.]]>
  16382. </doc>
  16383. </class>
  16384. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  16385. </package>
  16386. <package name="org.apache.hadoop.io.file.tfile">
  16387. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  16388. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  16389. abstract="false"
  16390. static="false" final="false" visibility="public"
  16391. deprecated="not deprecated">
  16392. <doc>
  16393. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  16394. </doc>
  16395. </class>
  16396. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  16397. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  16398. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  16399. abstract="false"
  16400. static="false" final="false" visibility="public"
  16401. deprecated="not deprecated">
  16402. <doc>
  16403. <![CDATA[Exception - No such Meta Block with the given name.]]>
  16404. </doc>
  16405. </class>
  16406. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  16407. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  16408. <interface name="RawComparable" abstract="true"
  16409. static="false" final="false" visibility="public"
  16410. deprecated="not deprecated">
  16411. <method name="buffer" return="byte[]"
  16412. abstract="false" native="false" synchronized="false"
  16413. static="false" final="false" visibility="public"
  16414. deprecated="not deprecated">
  16415. <doc>
  16416. <![CDATA[Get the underlying byte array.
  16417. @return The underlying byte array.]]>
  16418. </doc>
  16419. </method>
  16420. <method name="offset" return="int"
  16421. abstract="false" native="false" synchronized="false"
  16422. static="false" final="false" visibility="public"
  16423. deprecated="not deprecated">
  16424. <doc>
  16425. <![CDATA[Get the offset of the first byte in the byte array.
  16426. @return The offset of the first byte in the byte array.]]>
  16427. </doc>
  16428. </method>
  16429. <method name="size" return="int"
  16430. abstract="false" native="false" synchronized="false"
  16431. static="false" final="false" visibility="public"
  16432. deprecated="not deprecated">
  16433. <doc>
  16434. <![CDATA[Get the size of the byte range in the byte array.
  16435. @return The size of the byte range in the byte array.]]>
  16436. </doc>
  16437. </method>
  16438. <doc>
  16439. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  16440. This is useful in places where we need a single object reference to specify a
  16441. range of bytes in a byte array, such as {@link Comparable} or
  16442. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  16443. The actual comparison among RawComparable's requires an external
  16444. RawComparator and it is applications' responsibility to ensure two
  16445. RawComparable are supposed to be semantically comparable with the same
  16446. RawComparator.]]>
  16447. </doc>
  16448. </interface>
  16449. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  16450. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  16451. <class name="TFile" extends="java.lang.Object"
  16452. abstract="false"
  16453. static="false" final="false" visibility="public"
  16454. deprecated="not deprecated">
  16455. <method name="makeComparator" return="java.util.Comparator"
  16456. abstract="false" native="false" synchronized="false"
  16457. static="true" final="false" visibility="public"
  16458. deprecated="not deprecated">
  16459. <param name="name" type="java.lang.String"/>
  16460. <doc>
  16461. <![CDATA[Make a raw comparator from a string name.
  16462. @param name
  16463. Comparator name
  16464. @return A RawComparable comparator.]]>
  16465. </doc>
  16466. </method>
  16467. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  16468. abstract="false" native="false" synchronized="false"
  16469. static="true" final="false" visibility="public"
  16470. deprecated="not deprecated">
  16471. <doc>
  16472. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  16473. TFile.Writer.
  16474. @return Array of strings, each represents a supported compression
  16475. algorithm. Currently, the following compression algorithms are
  16476. supported.
  16477. <ul>
  16478. <li>"none" - No compression.
  16479. <li>"lzo" - LZO compression.
  16480. <li>"gz" - GZIP compression.
  16481. </ul>]]>
  16482. </doc>
  16483. </method>
  16484. <method name="main"
  16485. abstract="false" native="false" synchronized="false"
  16486. static="true" final="false" visibility="public"
  16487. deprecated="not deprecated">
  16488. <param name="args" type="java.lang.String[]"/>
  16489. <doc>
  16490. <![CDATA[Dumping the TFile information.
  16491. @param args
  16492. A list of TFile paths.]]>
  16493. </doc>
  16494. </method>
  16495. <field name="COMPRESSION_GZ" type="java.lang.String"
  16496. transient="false" volatile="false"
  16497. static="true" final="true" visibility="public"
  16498. deprecated="not deprecated">
  16499. <doc>
  16500. <![CDATA[compression: gzip]]>
  16501. </doc>
  16502. </field>
  16503. <field name="COMPRESSION_LZO" type="java.lang.String"
  16504. transient="false" volatile="false"
  16505. static="true" final="true" visibility="public"
  16506. deprecated="not deprecated">
  16507. <doc>
  16508. <![CDATA[compression: lzo]]>
  16509. </doc>
  16510. </field>
  16511. <field name="COMPRESSION_NONE" type="java.lang.String"
  16512. transient="false" volatile="false"
  16513. static="true" final="true" visibility="public"
  16514. deprecated="not deprecated">
  16515. <doc>
  16516. <![CDATA[compression: none]]>
  16517. </doc>
  16518. </field>
  16519. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  16520. transient="false" volatile="false"
  16521. static="true" final="true" visibility="public"
  16522. deprecated="not deprecated">
  16523. <doc>
  16524. <![CDATA[comparator: memcmp]]>
  16525. </doc>
  16526. </field>
  16527. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  16528. transient="false" volatile="false"
  16529. static="true" final="true" visibility="public"
  16530. deprecated="not deprecated">
  16531. <doc>
  16532. <![CDATA[comparator prefix: java class]]>
  16533. </doc>
  16534. </field>
  16535. <doc>
  16536. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  16537. bytes. Keys are restricted to 64KB, value length is not restricted
  16538. (practically limited to the available disk storage). TFile further provides
  16539. the following features:
  16540. <ul>
  16541. <li>Block Compression.
  16542. <li>Named meta data blocks.
  16543. <li>Sorted or unsorted keys.
  16544. <li>Seek by key or by file offset.
  16545. </ul>
  16546. The memory footprint of a TFile includes the following:
  16547. <ul>
  16548. <li>Some constant overhead of reading or writing a compressed block.
  16549. <ul>
  16550. <li>Each compressed block requires one compression/decompression codec for
  16551. I/O.
  16552. <li>Temporary space to buffer the key.
  16553. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  16554. chunk encoded, so that we buffer at most one chunk of user data. By default,
  16555. the chunk buffer is 1MB. Reading chunked value does not require additional
  16556. memory.
  16557. </ul>
  16558. <li>TFile index, which is proportional to the total number of Data Blocks.
  16559. The total amount of memory needed to hold the index can be estimated as
  16560. (56+AvgKeySize)*NumBlocks.
  16561. <li>MetaBlock index, which is proportional to the total number of Meta
  16562. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  16563. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  16564. </ul>
  16565. <p>
  16566. The behavior of TFile can be customized by the following variables through
  16567. Configuration:
  16568. <ul>
  16569. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  16570. to 1MB. Values of the length less than the chunk size is guaranteed to have
  16571. known value length in read time (See
  16572. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  16573. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  16574. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  16575. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  16576. FSDataInputStream. Integer (in bytes). Default to 256KB.
  16577. </ul>
  16578. <p>
  16579. Suggestions on performance optimization.
  16580. <ul>
  16581. <li>Minimum block size. We recommend a setting of minimum block size between
  16582. 256KB to 1MB for general usage. Larger block size is preferred if files are
  16583. primarily for sequential access. However, it would lead to inefficient random
  16584. access (because there are more data to decompress). Smaller blocks are good
  16585. for random access, but require more memory to hold the block index, and may
  16586. be slower to create (because we must flush the compressor stream at the
  16587. conclusion of each data block, which leads to an FS I/O flush). Further, due
  16588. to the internal caching in Compression codec, the smallest possible block
  16589. size would be around 20KB-30KB.
  16590. <li>The current implementation does not offer true multi-threading for
  16591. reading. The implementation uses FSDataInputStream seek()+read(), which is
  16592. shown to be much faster than positioned-read call in single thread mode.
  16593. However, it also means that if multiple threads attempt to access the same
  16594. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  16595. sequentially even if they access different DFS blocks.
  16596. <li>Compression codec. Use "none" if the data is not very compressable (by
  16597. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  16598. as the starting point for experimenting. "gz" overs slightly better
  16599. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  16600. decompress, comparing to "lzo".
  16601. <li>File system buffering, if the underlying FSDataInputStream and
  16602. FSDataOutputStream is already adequately buffered; or if applications
  16603. reads/writes keys and values in large buffers, we can reduce the sizes of
  16604. input/output buffering in TFile layer by setting the configuration parameters
  16605. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  16606. </ul>
  16607. Some design rationale behind TFile can be found at <a
  16608. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  16609. </doc>
  16610. </class>
  16611. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  16612. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  16613. <class name="TFile.Reader" extends="java.lang.Object"
  16614. abstract="false"
  16615. static="true" final="false" visibility="public"
  16616. deprecated="not deprecated">
  16617. <implements name="java.io.Closeable"/>
  16618. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  16619. static="false" final="false" visibility="public"
  16620. deprecated="not deprecated">
  16621. <exception name="IOException" type="java.io.IOException"/>
  16622. <doc>
  16623. <![CDATA[Constructor
  16624. @param fsdis
  16625. FS input stream of the TFile.
  16626. @param fileLength
  16627. The length of TFile. This is required because we have no easy
  16628. way of knowing the actual size of the input file through the
  16629. File input stream.
  16630. @param conf
  16631. @throws IOException]]>
  16632. </doc>
  16633. </constructor>
  16634. <method name="close"
  16635. abstract="false" native="false" synchronized="false"
  16636. static="false" final="false" visibility="public"
  16637. deprecated="not deprecated">
  16638. <exception name="IOException" type="java.io.IOException"/>
  16639. <doc>
  16640. <![CDATA[Close the reader. The state of the Reader object is undefined after
  16641. close. Calling close() for multiple times has no effect.]]>
  16642. </doc>
  16643. </method>
  16644. <method name="getComparatorName" return="java.lang.String"
  16645. abstract="false" native="false" synchronized="false"
  16646. static="false" final="false" visibility="public"
  16647. deprecated="not deprecated">
  16648. <doc>
  16649. <![CDATA[Get the string representation of the comparator.
  16650. @return If the TFile is not sorted by keys, an empty string will be
  16651. returned. Otherwise, the actual comparator string that is
  16652. provided during the TFile creation time will be returned.]]>
  16653. </doc>
  16654. </method>
  16655. <method name="isSorted" return="boolean"
  16656. abstract="false" native="false" synchronized="false"
  16657. static="false" final="false" visibility="public"
  16658. deprecated="not deprecated">
  16659. <doc>
  16660. <![CDATA[Is the TFile sorted?
  16661. @return true if TFile is sorted.]]>
  16662. </doc>
  16663. </method>
  16664. <method name="getEntryCount" return="long"
  16665. abstract="false" native="false" synchronized="false"
  16666. static="false" final="false" visibility="public"
  16667. deprecated="not deprecated">
  16668. <doc>
  16669. <![CDATA[Get the number of key-value pair entries in TFile.
  16670. @return the number of key-value pairs in TFile]]>
  16671. </doc>
  16672. </method>
  16673. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  16674. abstract="false" native="false" synchronized="false"
  16675. static="false" final="false" visibility="public"
  16676. deprecated="not deprecated">
  16677. <exception name="IOException" type="java.io.IOException"/>
  16678. <doc>
  16679. <![CDATA[Get the first key in the TFile.
  16680. @return The first key in the TFile.
  16681. @throws IOException]]>
  16682. </doc>
  16683. </method>
  16684. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  16685. abstract="false" native="false" synchronized="false"
  16686. static="false" final="false" visibility="public"
  16687. deprecated="not deprecated">
  16688. <exception name="IOException" type="java.io.IOException"/>
  16689. <doc>
  16690. <![CDATA[Get the last key in the TFile.
  16691. @return The last key in the TFile.
  16692. @throws IOException]]>
  16693. </doc>
  16694. </method>
  16695. <method name="getEntryComparator" return="java.util.Comparator"
  16696. abstract="false" native="false" synchronized="false"
  16697. static="false" final="false" visibility="public"
  16698. deprecated="not deprecated">
  16699. <doc>
  16700. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  16701. stores the entries in a collection (such as PriorityQueue) and perform
  16702. sorting or comparison among entries based on the keys without copying out
  16703. the key.
  16704. @return An Entry Comparator..]]>
  16705. </doc>
  16706. </method>
  16707. <method name="getComparator" return="java.util.Comparator"
  16708. abstract="false" native="false" synchronized="false"
  16709. static="false" final="false" visibility="public"
  16710. deprecated="not deprecated">
  16711. <doc>
  16712. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  16713. string comparator representation.
  16714. @return a Comparator that can compare RawComparable's.]]>
  16715. </doc>
  16716. </method>
  16717. <method name="getMetaBlock" return="java.io.DataInputStream"
  16718. abstract="false" native="false" synchronized="false"
  16719. static="false" final="false" visibility="public"
  16720. deprecated="not deprecated">
  16721. <param name="name" type="java.lang.String"/>
  16722. <exception name="IOException" type="java.io.IOException"/>
  16723. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  16724. <doc>
  16725. <![CDATA[Stream access to a meta block.``
  16726. @param name
  16727. The name of the meta block.
  16728. @return The input stream.
  16729. @throws IOException
  16730. on I/O error.
  16731. @throws MetaBlockDoesNotExist
  16732. If the meta block with the name does not exist.]]>
  16733. </doc>
  16734. </method>
  16735. <method name="getRecordNumNear" return="long"
  16736. abstract="false" native="false" synchronized="false"
  16737. static="false" final="false" visibility="public"
  16738. deprecated="not deprecated">
  16739. <param name="offset" type="long"/>
  16740. <exception name="IOException" type="java.io.IOException"/>
  16741. <doc>
  16742. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  16743. whose byte offset in the TFile is greater than or equal to the specified
  16744. offset.
  16745. @param offset
  16746. the user supplied offset.
  16747. @return the RecordNum to the corresponding entry. If no such entry
  16748. exists, it returns the total entry count.
  16749. @throws IOException]]>
  16750. </doc>
  16751. </method>
  16752. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  16753. abstract="false" native="false" synchronized="false"
  16754. static="false" final="false" visibility="public"
  16755. deprecated="not deprecated">
  16756. <param name="offset" type="long"/>
  16757. <exception name="IOException" type="java.io.IOException"/>
  16758. <doc>
  16759. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  16760. than or equal to the specified offset.
  16761. @param offset
  16762. The file offset.
  16763. @return the key that fits the requirement; or null if no such key exists
  16764. (which could happen if the offset is close to the end of the
  16765. TFile).
  16766. @throws IOException]]>
  16767. </doc>
  16768. </method>
  16769. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16770. abstract="false" native="false" synchronized="false"
  16771. static="false" final="false" visibility="public"
  16772. deprecated="not deprecated">
  16773. <exception name="IOException" type="java.io.IOException"/>
  16774. <doc>
  16775. <![CDATA[Get a scanner than can scan the whole TFile.
  16776. @return The scanner object. A valid Scanner is always returned even if
  16777. the TFile is empty.
  16778. @throws IOException]]>
  16779. </doc>
  16780. </method>
  16781. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16782. abstract="false" native="false" synchronized="false"
  16783. static="false" final="false" visibility="public"
  16784. deprecated="not deprecated">
  16785. <param name="offset" type="long"/>
  16786. <param name="length" type="long"/>
  16787. <exception name="IOException" type="java.io.IOException"/>
  16788. <doc>
  16789. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  16790. @param offset
  16791. The beginning byte offset in the TFile.
  16792. @param length
  16793. The length of the region.
  16794. @return The actual coverage of the returned scanner tries to match the
  16795. specified byte-region but always round up to the compression
  16796. block boundaries. It is possible that the returned scanner
  16797. contains zero key-value pairs even if length is positive.
  16798. @throws IOException]]>
  16799. </doc>
  16800. </method>
  16801. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16802. abstract="false" native="false" synchronized="false"
  16803. static="false" final="false" visibility="public"
  16804. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  16805. <param name="beginKey" type="byte[]"/>
  16806. <param name="endKey" type="byte[]"/>
  16807. <exception name="IOException" type="java.io.IOException"/>
  16808. <doc>
  16809. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  16810. @param beginKey
  16811. Begin key of the scan (inclusive). If null, scan from the first
  16812. key-value entry of the TFile.
  16813. @param endKey
  16814. End key of the scan (exclusive). If null, scan up to the last
  16815. key-value entry of the TFile.
  16816. @return The actual coverage of the returned scanner will cover all keys
  16817. greater than or equal to the beginKey and less than the endKey.
  16818. @throws IOException
  16819. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  16820. </doc>
  16821. </method>
  16822. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16823. abstract="false" native="false" synchronized="false"
  16824. static="false" final="false" visibility="public"
  16825. deprecated="not deprecated">
  16826. <param name="beginKey" type="byte[]"/>
  16827. <param name="endKey" type="byte[]"/>
  16828. <exception name="IOException" type="java.io.IOException"/>
  16829. <doc>
  16830. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  16831. @param beginKey
  16832. Begin key of the scan (inclusive). If null, scan from the first
  16833. key-value entry of the TFile.
  16834. @param endKey
  16835. End key of the scan (exclusive). If null, scan up to the last
  16836. key-value entry of the TFile.
  16837. @return The actual coverage of the returned scanner will cover all keys
  16838. greater than or equal to the beginKey and less than the endKey.
  16839. @throws IOException]]>
  16840. </doc>
  16841. </method>
  16842. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16843. abstract="false" native="false" synchronized="false"
  16844. static="false" final="false" visibility="public"
  16845. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  16846. instead.">
  16847. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  16848. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  16849. <exception name="IOException" type="java.io.IOException"/>
  16850. <doc>
  16851. <![CDATA[Get a scanner that covers a specific key range.
  16852. @param beginKey
  16853. Begin key of the scan (inclusive). If null, scan from the first
  16854. key-value entry of the TFile.
  16855. @param endKey
  16856. End key of the scan (exclusive). If null, scan up to the last
  16857. key-value entry of the TFile.
  16858. @return The actual coverage of the returned scanner will cover all keys
  16859. greater than or equal to the beginKey and less than the endKey.
  16860. @throws IOException
  16861. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  16862. instead.]]>
  16863. </doc>
  16864. </method>
  16865. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16866. abstract="false" native="false" synchronized="false"
  16867. static="false" final="false" visibility="public"
  16868. deprecated="not deprecated">
  16869. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  16870. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  16871. <exception name="IOException" type="java.io.IOException"/>
  16872. <doc>
  16873. <![CDATA[Get a scanner that covers a specific key range.
  16874. @param beginKey
  16875. Begin key of the scan (inclusive). If null, scan from the first
  16876. key-value entry of the TFile.
  16877. @param endKey
  16878. End key of the scan (exclusive). If null, scan up to the last
  16879. key-value entry of the TFile.
  16880. @return The actual coverage of the returned scanner will cover all keys
  16881. greater than or equal to the beginKey and less than the endKey.
  16882. @throws IOException]]>
  16883. </doc>
  16884. </method>
  16885. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  16886. abstract="false" native="false" synchronized="false"
  16887. static="false" final="false" visibility="public"
  16888. deprecated="not deprecated">
  16889. <param name="beginRecNum" type="long"/>
  16890. <param name="endRecNum" type="long"/>
  16891. <exception name="IOException" type="java.io.IOException"/>
  16892. <doc>
  16893. <![CDATA[Create a scanner that covers a range of records.
  16894. @param beginRecNum
  16895. The RecordNum for the first record (inclusive).
  16896. @param endRecNum
  16897. The RecordNum for the last record (exclusive). To scan the whole
  16898. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  16899. @return The TFile scanner that covers the specified range of records.
  16900. @throws IOException]]>
  16901. </doc>
  16902. </method>
  16903. <doc>
  16904. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  16905. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  16906. ) , a portion of TFile based on byte offsets (
  16907. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  16908. fall in a certain key range (for sorted TFile only,
  16909. {@link Reader#createScannerByKey(byte[], byte[])} or
  16910. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  16911. </doc>
  16912. </class>
  16913. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  16914. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  16915. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  16916. abstract="false"
  16917. static="true" final="false" visibility="public"
  16918. deprecated="not deprecated">
  16919. <implements name="java.io.Closeable"/>
  16920. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  16921. static="false" final="false" visibility="protected"
  16922. deprecated="not deprecated">
  16923. <exception name="IOException" type="java.io.IOException"/>
  16924. <doc>
  16925. <![CDATA[Constructor
  16926. @param reader
  16927. The TFile reader object.
  16928. @param offBegin
  16929. Begin byte-offset of the scan.
  16930. @param offEnd
  16931. End byte-offset of the scan.
  16932. @throws IOException
  16933. The offsets will be rounded to the beginning of a compressed
  16934. block whose offset is greater than or equal to the specified
  16935. offset.]]>
  16936. </doc>
  16937. </constructor>
  16938. <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"
  16939. static="false" final="false" visibility="protected"
  16940. deprecated="not deprecated">
  16941. <exception name="IOException" type="java.io.IOException"/>
  16942. <doc>
  16943. <![CDATA[Constructor
  16944. @param reader
  16945. The TFile reader object.
  16946. @param beginKey
  16947. Begin key of the scan. If null, scan from the first <K,V>
  16948. entry of the TFile.
  16949. @param endKey
  16950. End key of the scan. If null, scan up to the last <K, V> entry
  16951. of the TFile.
  16952. @throws IOException]]>
  16953. </doc>
  16954. </constructor>
  16955. <method name="seekTo" return="boolean"
  16956. abstract="false" native="false" synchronized="false"
  16957. static="false" final="false" visibility="public"
  16958. deprecated="not deprecated">
  16959. <param name="key" type="byte[]"/>
  16960. <exception name="IOException" type="java.io.IOException"/>
  16961. <doc>
  16962. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  16963. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  16964. returned by the previous entry() call will be invalid.
  16965. @param key
  16966. The input key
  16967. @return true if we find an equal key.
  16968. @throws IOException]]>
  16969. </doc>
  16970. </method>
  16971. <method name="seekTo" return="boolean"
  16972. abstract="false" native="false" synchronized="false"
  16973. static="false" final="false" visibility="public"
  16974. deprecated="not deprecated">
  16975. <param name="key" type="byte[]"/>
  16976. <param name="keyOffset" type="int"/>
  16977. <param name="keyLen" type="int"/>
  16978. <exception name="IOException" type="java.io.IOException"/>
  16979. <doc>
  16980. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  16981. to the input key. The entry returned by the previous entry() call will
  16982. be invalid.
  16983. @param key
  16984. The input key
  16985. @param keyOffset
  16986. offset in the key buffer.
  16987. @param keyLen
  16988. key buffer length.
  16989. @return true if we find an equal key; false otherwise.
  16990. @throws IOException]]>
  16991. </doc>
  16992. </method>
  16993. <method name="rewind"
  16994. abstract="false" native="false" synchronized="false"
  16995. static="false" final="false" visibility="public"
  16996. deprecated="not deprecated">
  16997. <exception name="IOException" type="java.io.IOException"/>
  16998. <doc>
  16999. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  17000. previous entry() call will be invalid.
  17001. @throws IOException]]>
  17002. </doc>
  17003. </method>
  17004. <method name="seekToEnd"
  17005. abstract="false" native="false" synchronized="false"
  17006. static="false" final="false" visibility="public"
  17007. deprecated="not deprecated">
  17008. <exception name="IOException" type="java.io.IOException"/>
  17009. <doc>
  17010. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  17011. entry() call will be invalid.
  17012. @throws IOException]]>
  17013. </doc>
  17014. </method>
  17015. <method name="lowerBound"
  17016. abstract="false" native="false" synchronized="false"
  17017. static="false" final="false" visibility="public"
  17018. deprecated="not deprecated">
  17019. <param name="key" type="byte[]"/>
  17020. <exception name="IOException" type="java.io.IOException"/>
  17021. <doc>
  17022. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  17023. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  17024. entry returned by the previous entry() call will be invalid.
  17025. @param key
  17026. The input key
  17027. @throws IOException]]>
  17028. </doc>
  17029. </method>
  17030. <method name="lowerBound"
  17031. abstract="false" native="false" synchronized="false"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. <param name="key" type="byte[]"/>
  17035. <param name="keyOffset" type="int"/>
  17036. <param name="keyLen" type="int"/>
  17037. <exception name="IOException" type="java.io.IOException"/>
  17038. <doc>
  17039. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  17040. to the input key. The entry returned by the previous entry() call will
  17041. be invalid.
  17042. @param key
  17043. The input key
  17044. @param keyOffset
  17045. offset in the key buffer.
  17046. @param keyLen
  17047. key buffer length.
  17048. @throws IOException]]>
  17049. </doc>
  17050. </method>
  17051. <method name="upperBound"
  17052. abstract="false" native="false" synchronized="false"
  17053. static="false" final="false" visibility="public"
  17054. deprecated="not deprecated">
  17055. <param name="key" type="byte[]"/>
  17056. <exception name="IOException" type="java.io.IOException"/>
  17057. <doc>
  17058. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  17059. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  17060. returned by the previous entry() call will be invalid.
  17061. @param key
  17062. The input key
  17063. @throws IOException]]>
  17064. </doc>
  17065. </method>
  17066. <method name="upperBound"
  17067. abstract="false" native="false" synchronized="false"
  17068. static="false" final="false" visibility="public"
  17069. deprecated="not deprecated">
  17070. <param name="key" type="byte[]"/>
  17071. <param name="keyOffset" type="int"/>
  17072. <param name="keyLen" type="int"/>
  17073. <exception name="IOException" type="java.io.IOException"/>
  17074. <doc>
  17075. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  17076. the input key. The entry returned by the previous entry() call will be
  17077. invalid.
  17078. @param key
  17079. The input key
  17080. @param keyOffset
  17081. offset in the key buffer.
  17082. @param keyLen
  17083. key buffer length.
  17084. @throws IOException]]>
  17085. </doc>
  17086. </method>
  17087. <method name="advance" return="boolean"
  17088. abstract="false" native="false" synchronized="false"
  17089. static="false" final="false" visibility="public"
  17090. deprecated="not deprecated">
  17091. <exception name="IOException" type="java.io.IOException"/>
  17092. <doc>
  17093. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  17094. previous entry() call will be invalid.
  17095. @return true if the cursor successfully moves. False when cursor is
  17096. already at the end location and cannot be advanced.
  17097. @throws IOException]]>
  17098. </doc>
  17099. </method>
  17100. <method name="close"
  17101. abstract="false" native="false" synchronized="false"
  17102. static="false" final="false" visibility="public"
  17103. deprecated="not deprecated">
  17104. <exception name="IOException" type="java.io.IOException"/>
  17105. <doc>
  17106. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  17107. scanner after calling close is not defined. The entry returned by the
  17108. previous entry() call will be invalid.]]>
  17109. </doc>
  17110. </method>
  17111. <method name="atEnd" return="boolean"
  17112. abstract="false" native="false" synchronized="false"
  17113. static="false" final="false" visibility="public"
  17114. deprecated="not deprecated">
  17115. <doc>
  17116. <![CDATA[Is cursor at the end location?
  17117. @return true if the cursor is at the end location.]]>
  17118. </doc>
  17119. </method>
  17120. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  17121. abstract="false" native="false" synchronized="false"
  17122. static="false" final="false" visibility="public"
  17123. deprecated="not deprecated">
  17124. <exception name="IOException" type="java.io.IOException"/>
  17125. <doc>
  17126. <![CDATA[Get an entry to access the key and value.
  17127. @return The Entry object to access the key and value.
  17128. @throws IOException]]>
  17129. </doc>
  17130. </method>
  17131. <method name="getRecordNum" return="long"
  17132. abstract="false" native="false" synchronized="false"
  17133. static="false" final="false" visibility="public"
  17134. deprecated="not deprecated">
  17135. <exception name="IOException" type="java.io.IOException"/>
  17136. <doc>
  17137. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  17138. @return The RecordNum corresponding to the entry pointed by the cursor.
  17139. @throws IOException]]>
  17140. </doc>
  17141. </method>
  17142. <doc>
  17143. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  17144. creation, points to the first key-value pair in the scan range. If the
  17145. scan range is empty, the cursor will point to the end of the scan range.
  17146. <p>
  17147. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  17148. location of the scanner.
  17149. <p>
  17150. Use {@link Scanner#advance()} to move the cursor to the next key-value
  17151. pair (or end if none exists). Use seekTo methods (
  17152. {@link Scanner#seekTo(byte[])} or
  17153. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  17154. location in the covered range (including backward seeking). Use
  17155. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  17156. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  17157. <p>
  17158. Actual keys and values may be obtained through {@link Scanner.Entry}
  17159. object, which is obtained through {@link Scanner#entry()}.]]>
  17160. </doc>
  17161. </class>
  17162. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  17163. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  17164. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  17165. abstract="false"
  17166. static="false" final="false" visibility="public"
  17167. deprecated="not deprecated">
  17168. <implements name="java.lang.Comparable"/>
  17169. <constructor name="TFile.Reader.Scanner.Entry"
  17170. static="false" final="false" visibility="public"
  17171. deprecated="not deprecated">
  17172. </constructor>
  17173. <method name="getKeyLength" return="int"
  17174. abstract="false" native="false" synchronized="false"
  17175. static="false" final="false" visibility="public"
  17176. deprecated="not deprecated">
  17177. <doc>
  17178. <![CDATA[Get the length of the key.
  17179. @return the length of the key.]]>
  17180. </doc>
  17181. </method>
  17182. <method name="get"
  17183. abstract="false" native="false" synchronized="false"
  17184. static="false" final="false" visibility="public"
  17185. deprecated="not deprecated">
  17186. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  17187. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  17188. <exception name="IOException" type="java.io.IOException"/>
  17189. <doc>
  17190. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  17191. equivalent to getKey(key); getValue(value);
  17192. @param key
  17193. BytesWritable to hold key.
  17194. @param value
  17195. BytesWritable to hold value
  17196. @throws IOException]]>
  17197. </doc>
  17198. </method>
  17199. <method name="getKey" return="int"
  17200. abstract="false" native="false" synchronized="false"
  17201. static="false" final="false" visibility="public"
  17202. deprecated="not deprecated">
  17203. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  17204. <exception name="IOException" type="java.io.IOException"/>
  17205. <doc>
  17206. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  17207. automatically resized to the actual key size.
  17208. @param key
  17209. BytesWritable to hold the key.
  17210. @throws IOException]]>
  17211. </doc>
  17212. </method>
  17213. <method name="getValue" return="long"
  17214. abstract="false" native="false" synchronized="false"
  17215. static="false" final="false" visibility="public"
  17216. deprecated="not deprecated">
  17217. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  17218. <exception name="IOException" type="java.io.IOException"/>
  17219. <doc>
  17220. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  17221. automatically resized to the actual value size. The implementation
  17222. directly uses the buffer inside BytesWritable for storing the value.
  17223. The call does not require the value length to be known.
  17224. @param value
  17225. @throws IOException]]>
  17226. </doc>
  17227. </method>
  17228. <method name="writeKey" return="int"
  17229. abstract="false" native="false" synchronized="false"
  17230. static="false" final="false" visibility="public"
  17231. deprecated="not deprecated">
  17232. <param name="out" type="java.io.OutputStream"/>
  17233. <exception name="IOException" type="java.io.IOException"/>
  17234. <doc>
  17235. <![CDATA[Writing the key to the output stream. This method avoids copying key
  17236. buffer from Scanner into user buffer, then writing to the output
  17237. stream.
  17238. @param out
  17239. The output stream
  17240. @return the length of the key.
  17241. @throws IOException]]>
  17242. </doc>
  17243. </method>
  17244. <method name="writeValue" return="long"
  17245. abstract="false" native="false" synchronized="false"
  17246. static="false" final="false" visibility="public"
  17247. deprecated="not deprecated">
  17248. <param name="out" type="java.io.OutputStream"/>
  17249. <exception name="IOException" type="java.io.IOException"/>
  17250. <doc>
  17251. <![CDATA[Writing the value to the output stream. This method avoids copying
  17252. value data from Scanner into user buffer, then writing to the output
  17253. stream. It does not require the value length to be known.
  17254. @param out
  17255. The output stream
  17256. @return the length of the value
  17257. @throws IOException]]>
  17258. </doc>
  17259. </method>
  17260. <method name="getKey" return="int"
  17261. abstract="false" native="false" synchronized="false"
  17262. static="false" final="false" visibility="public"
  17263. deprecated="not deprecated">
  17264. <param name="buf" type="byte[]"/>
  17265. <exception name="IOException" type="java.io.IOException"/>
  17266. <doc>
  17267. <![CDATA[Copy the key into user supplied buffer.
  17268. @param buf
  17269. The buffer supplied by user. The length of the buffer must
  17270. not be shorter than the key length.
  17271. @return The length of the key.
  17272. @throws IOException]]>
  17273. </doc>
  17274. </method>
  17275. <method name="getKey" return="int"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. <param name="buf" type="byte[]"/>
  17280. <param name="offset" type="int"/>
  17281. <exception name="IOException" type="java.io.IOException"/>
  17282. <doc>
  17283. <![CDATA[Copy the key into user supplied buffer.
  17284. @param buf
  17285. The buffer supplied by user.
  17286. @param offset
  17287. The starting offset of the user buffer where we should copy
  17288. the key into. Requiring the key-length + offset no greater
  17289. than the buffer length.
  17290. @return The length of the key.
  17291. @throws IOException]]>
  17292. </doc>
  17293. </method>
  17294. <method name="getKeyStream" return="java.io.DataInputStream"
  17295. abstract="false" native="false" synchronized="false"
  17296. static="false" final="false" visibility="public"
  17297. deprecated="not deprecated">
  17298. <doc>
  17299. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  17300. user objects.
  17301. @return The input stream.]]>
  17302. </doc>
  17303. </method>
  17304. <method name="getValueLength" return="int"
  17305. abstract="false" native="false" synchronized="false"
  17306. static="false" final="false" visibility="public"
  17307. deprecated="not deprecated">
  17308. <doc>
  17309. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  17310. true.
  17311. @return the length of the value.]]>
  17312. </doc>
  17313. </method>
  17314. <method name="getValue" return="int"
  17315. abstract="false" native="false" synchronized="false"
  17316. static="false" final="false" visibility="public"
  17317. deprecated="not deprecated">
  17318. <param name="buf" type="byte[]"/>
  17319. <exception name="IOException" type="java.io.IOException"/>
  17320. <doc>
  17321. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  17322. large enough to hold the whole value. The value part of the key-value
  17323. pair pointed by the current cursor is not cached and can only be
  17324. examined once. Calling any of the following functions more than once
  17325. without moving the cursor will result in exception:
  17326. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  17327. {@link #getValueStream}.
  17328. @return the length of the value. Does not require
  17329. isValueLengthKnown() to be true.
  17330. @throws IOException]]>
  17331. </doc>
  17332. </method>
  17333. <method name="getValue" return="int"
  17334. abstract="false" native="false" synchronized="false"
  17335. static="false" final="false" visibility="public"
  17336. deprecated="not deprecated">
  17337. <param name="buf" type="byte[]"/>
  17338. <param name="offset" type="int"/>
  17339. <exception name="IOException" type="java.io.IOException"/>
  17340. <doc>
  17341. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  17342. large enough to hold the whole value (starting from the offset). The
  17343. value part of the key-value pair pointed by the current cursor is not
  17344. cached and can only be examined once. Calling any of the following
  17345. functions more than once without moving the cursor will result in
  17346. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  17347. {@link #getValueStream}.
  17348. @return the length of the value. Does not require
  17349. isValueLengthKnown() to be true.
  17350. @throws IOException]]>
  17351. </doc>
  17352. </method>
  17353. <method name="getValueStream" return="java.io.DataInputStream"
  17354. abstract="false" native="false" synchronized="false"
  17355. static="false" final="false" visibility="public"
  17356. deprecated="not deprecated">
  17357. <exception name="IOException" type="java.io.IOException"/>
  17358. <doc>
  17359. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  17360. by the current cursor is not cached and can only be examined once.
  17361. Calling any of the following functions more than once without moving
  17362. the cursor will result in exception: {@link #getValue(byte[])},
  17363. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  17364. @return The input stream for reading the value.
  17365. @throws IOException]]>
  17366. </doc>
  17367. </method>
  17368. <method name="isValueLengthKnown" return="boolean"
  17369. abstract="false" native="false" synchronized="false"
  17370. static="false" final="false" visibility="public"
  17371. deprecated="not deprecated">
  17372. <doc>
  17373. <![CDATA[Check whether it is safe to call getValueLength().
  17374. @return true if value length is known before hand. Values less than
  17375. the chunk size will always have their lengths known before
  17376. hand. Values that are written out as a whole (with advertised
  17377. length up-front) will always have their lengths known in
  17378. read.]]>
  17379. </doc>
  17380. </method>
  17381. <method name="compareTo" return="int"
  17382. abstract="false" native="false" synchronized="false"
  17383. static="false" final="false" visibility="public"
  17384. deprecated="not deprecated">
  17385. <param name="buf" type="byte[]"/>
  17386. <doc>
  17387. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  17388. key.length).
  17389. @param buf
  17390. The key buffer.
  17391. @return comparison result between the entry key with the input key.]]>
  17392. </doc>
  17393. </method>
  17394. <method name="compareTo" return="int"
  17395. abstract="false" native="false" synchronized="false"
  17396. static="false" final="false" visibility="public"
  17397. deprecated="not deprecated">
  17398. <param name="buf" type="byte[]"/>
  17399. <param name="offset" type="int"/>
  17400. <param name="length" type="int"/>
  17401. <doc>
  17402. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  17403. ByteArray(buf, offset, length)
  17404. @param buf
  17405. The key buffer
  17406. @param offset
  17407. offset into the key buffer.
  17408. @param length
  17409. the length of the key.
  17410. @return comparison result between the entry key with the input key.]]>
  17411. </doc>
  17412. </method>
  17413. <method name="compareTo" return="int"
  17414. abstract="false" native="false" synchronized="false"
  17415. static="false" final="false" visibility="public"
  17416. deprecated="not deprecated">
  17417. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  17418. <doc>
  17419. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  17420. Entries are stored in a collection, and we want to compare a user
  17421. supplied key.]]>
  17422. </doc>
  17423. </method>
  17424. <method name="equals" return="boolean"
  17425. abstract="false" native="false" synchronized="false"
  17426. static="false" final="false" visibility="public"
  17427. deprecated="not deprecated">
  17428. <param name="other" type="java.lang.Object"/>
  17429. <doc>
  17430. <![CDATA[Compare whether this and other points to the same key value.]]>
  17431. </doc>
  17432. </method>
  17433. <method name="hashCode" return="int"
  17434. abstract="false" native="false" synchronized="false"
  17435. static="false" final="false" visibility="public"
  17436. deprecated="not deprecated">
  17437. </method>
  17438. <doc>
  17439. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  17440. </doc>
  17441. </class>
  17442. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  17443. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  17444. <class name="TFile.Writer" extends="java.lang.Object"
  17445. abstract="false"
  17446. static="true" final="false" visibility="public"
  17447. deprecated="not deprecated">
  17448. <implements name="java.io.Closeable"/>
  17449. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  17450. static="false" final="false" visibility="public"
  17451. deprecated="not deprecated">
  17452. <exception name="IOException" type="java.io.IOException"/>
  17453. <doc>
  17454. <![CDATA[Constructor
  17455. @param fsdos
  17456. output stream for writing. Must be at position 0.
  17457. @param minBlockSize
  17458. Minimum compressed block size in bytes. A compression block will
  17459. not be closed until it reaches this size except for the last
  17460. block.
  17461. @param compressName
  17462. Name of the compression algorithm. Must be one of the strings
  17463. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  17464. @param comparator
  17465. Leave comparator as null or empty string if TFile is not sorted.
  17466. Otherwise, provide the string name for the comparison algorithm
  17467. for keys. Two kinds of comparators are supported.
  17468. <ul>
  17469. <li>Algorithmic comparator: binary comparators that is language
  17470. independent. Currently, only "memcmp" is supported.
  17471. <li>Language-specific comparator: binary comparators that can
  17472. only be constructed in specific language. For Java, the syntax
  17473. is "jclass:", followed by the class name of the RawComparator.
  17474. Currently, we only support RawComparators that can be
  17475. constructed through the default constructor (with no
  17476. parameters). Parameterized RawComparators such as
  17477. {@link WritableComparator} or
  17478. {@link JavaSerializationComparator} may not be directly used.
  17479. One should write a wrapper class that inherits from such classes
  17480. and use its default constructor to perform proper
  17481. initialization.
  17482. </ul>
  17483. @param conf
  17484. The configuration object.
  17485. @throws IOException]]>
  17486. </doc>
  17487. </constructor>
  17488. <method name="close"
  17489. abstract="false" native="false" synchronized="false"
  17490. static="false" final="false" visibility="public"
  17491. deprecated="not deprecated">
  17492. <exception name="IOException" type="java.io.IOException"/>
  17493. <doc>
  17494. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  17495. being thrown. Future close calls will have no effect.
  17496. The underlying FSDataOutputStream is not closed.]]>
  17497. </doc>
  17498. </method>
  17499. <method name="append"
  17500. abstract="false" native="false" synchronized="false"
  17501. static="false" final="false" visibility="public"
  17502. deprecated="not deprecated">
  17503. <param name="key" type="byte[]"/>
  17504. <param name="value" type="byte[]"/>
  17505. <exception name="IOException" type="java.io.IOException"/>
  17506. <doc>
  17507. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  17508. append(key, 0, key.length, value, 0, value.length)
  17509. @param key
  17510. Buffer for key.
  17511. @param value
  17512. Buffer for value.
  17513. @throws IOException]]>
  17514. </doc>
  17515. </method>
  17516. <method name="append"
  17517. abstract="false" native="false" synchronized="false"
  17518. static="false" final="false" visibility="public"
  17519. deprecated="not deprecated">
  17520. <param name="key" type="byte[]"/>
  17521. <param name="koff" type="int"/>
  17522. <param name="klen" type="int"/>
  17523. <param name="value" type="byte[]"/>
  17524. <param name="voff" type="int"/>
  17525. <param name="vlen" type="int"/>
  17526. <exception name="IOException" type="java.io.IOException"/>
  17527. <doc>
  17528. <![CDATA[Adding a new key-value pair to TFile.
  17529. @param key
  17530. buffer for key.
  17531. @param koff
  17532. offset in key buffer.
  17533. @param klen
  17534. length of key.
  17535. @param value
  17536. buffer for value.
  17537. @param voff
  17538. offset in value buffer.
  17539. @param vlen
  17540. length of value.
  17541. @throws IOException
  17542. Upon IO errors.
  17543. <p>
  17544. If an exception is thrown, the TFile will be in an inconsistent
  17545. state. The only legitimate call after that would be close]]>
  17546. </doc>
  17547. </method>
  17548. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  17549. abstract="false" native="false" synchronized="false"
  17550. static="false" final="false" visibility="public"
  17551. deprecated="not deprecated">
  17552. <param name="length" type="int"/>
  17553. <exception name="IOException" type="java.io.IOException"/>
  17554. <doc>
  17555. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  17556. called when there is no active Key appending stream or value appending
  17557. stream.
  17558. @param length
  17559. The expected length of the key. If length of the key is not
  17560. known, set length = -1. Otherwise, the application must write
  17561. exactly as many bytes as specified here before calling close on
  17562. the returned output stream.
  17563. @return The key appending output stream.
  17564. @throws IOException]]>
  17565. </doc>
  17566. </method>
  17567. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  17568. abstract="false" native="false" synchronized="false"
  17569. static="false" final="false" visibility="public"
  17570. deprecated="not deprecated">
  17571. <param name="length" type="int"/>
  17572. <exception name="IOException" type="java.io.IOException"/>
  17573. <doc>
  17574. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  17575. called right after a key appending operation (the key append stream must
  17576. be closed).
  17577. @param length
  17578. The expected length of the value. If length of the value is not
  17579. known, set length = -1. Otherwise, the application must write
  17580. exactly as many bytes as specified here before calling close on
  17581. the returned output stream. Advertising the value size up-front
  17582. guarantees that the value is encoded in one chunk, and avoids
  17583. intermediate chunk buffering.
  17584. @throws IOException]]>
  17585. </doc>
  17586. </method>
  17587. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  17588. abstract="false" native="false" synchronized="false"
  17589. static="false" final="false" visibility="public"
  17590. deprecated="not deprecated">
  17591. <param name="name" type="java.lang.String"/>
  17592. <param name="compressName" type="java.lang.String"/>
  17593. <exception name="IOException" type="java.io.IOException"/>
  17594. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  17595. <doc>
  17596. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  17597. be called when there is a key append stream or value append stream
  17598. active. No more key-value insertion is allowed after a meta data block
  17599. has been added to TFile.
  17600. @param name
  17601. Name of the meta block.
  17602. @param compressName
  17603. Name of the compression algorithm to be used. Must be one of the
  17604. strings returned by
  17605. {@link TFile#getSupportedCompressionAlgorithms()}.
  17606. @return A DataOutputStream that can be used to write Meta Block data.
  17607. Closing the stream would signal the ending of the block.
  17608. @throws IOException
  17609. @throws MetaBlockAlreadyExists
  17610. the Meta Block with the same name already exists.]]>
  17611. </doc>
  17612. </method>
  17613. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  17614. abstract="false" native="false" synchronized="false"
  17615. static="false" final="false" visibility="public"
  17616. deprecated="not deprecated">
  17617. <param name="name" type="java.lang.String"/>
  17618. <exception name="IOException" type="java.io.IOException"/>
  17619. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  17620. <doc>
  17621. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  17622. be called when there is a key append stream or value append stream
  17623. active. No more key-value insertion is allowed after a meta data block
  17624. has been added to TFile. Data will be compressed using the default
  17625. compressor as defined in Writer's constructor.
  17626. @param name
  17627. Name of the meta block.
  17628. @return A DataOutputStream that can be used to write Meta Block data.
  17629. Closing the stream would signal the ending of the block.
  17630. @throws IOException
  17631. @throws MetaBlockAlreadyExists
  17632. the Meta Block with the same name already exists.]]>
  17633. </doc>
  17634. </method>
  17635. <doc>
  17636. <![CDATA[TFile Writer.]]>
  17637. </doc>
  17638. </class>
  17639. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  17640. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  17641. <class name="Utils" extends="java.lang.Object"
  17642. abstract="false"
  17643. static="false" final="true" visibility="public"
  17644. deprecated="not deprecated">
  17645. <method name="writeVInt"
  17646. abstract="false" native="false" synchronized="false"
  17647. static="true" final="false" visibility="public"
  17648. deprecated="not deprecated">
  17649. <param name="out" type="java.io.DataOutput"/>
  17650. <param name="n" type="int"/>
  17651. <exception name="IOException" type="java.io.IOException"/>
  17652. <doc>
  17653. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  17654. <code>Utils#writeVLong(out, n)</code>.
  17655. @param out
  17656. output stream
  17657. @param n
  17658. The integer to be encoded
  17659. @throws IOException
  17660. @see Utils#writeVLong(DataOutput, long)]]>
  17661. </doc>
  17662. </method>
  17663. <method name="writeVLong"
  17664. abstract="false" native="false" synchronized="false"
  17665. static="true" final="false" visibility="public"
  17666. deprecated="not deprecated">
  17667. <param name="out" type="java.io.DataOutput"/>
  17668. <param name="n" type="long"/>
  17669. <exception name="IOException" type="java.io.IOException"/>
  17670. <doc>
  17671. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  17672. <ul>
  17673. <li>if n in [-32, 127): encode in one byte with the actual value.
  17674. Otherwise,
  17675. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  17676. byte[1]=n&0xff. Otherwise,
  17677. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  17678. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  17679. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  17680. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  17681. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  17682. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  17683. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  17684. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  17685. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  17686. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  17687. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  17688. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  17689. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  17690. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  17691. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  17692. byte[7]=n&0xff;
  17693. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  17694. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  17695. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  17696. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  17697. </ul>
  17698. @param out
  17699. output stream
  17700. @param n
  17701. the integer number
  17702. @throws IOException]]>
  17703. </doc>
  17704. </method>
  17705. <method name="readVInt" return="int"
  17706. abstract="false" native="false" synchronized="false"
  17707. static="true" final="false" visibility="public"
  17708. deprecated="not deprecated">
  17709. <param name="in" type="java.io.DataInput"/>
  17710. <exception name="IOException" type="java.io.IOException"/>
  17711. <doc>
  17712. <![CDATA[Decoding the variable-length integer. Synonymous to
  17713. <code>(int)Utils#readVLong(in)</code>.
  17714. @param in
  17715. input stream
  17716. @return the decoded integer
  17717. @throws IOException
  17718. @see Utils#readVLong(DataInput)]]>
  17719. </doc>
  17720. </method>
  17721. <method name="readVLong" return="long"
  17722. abstract="false" native="false" synchronized="false"
  17723. static="true" final="false" visibility="public"
  17724. deprecated="not deprecated">
  17725. <param name="in" type="java.io.DataInput"/>
  17726. <exception name="IOException" type="java.io.IOException"/>
  17727. <doc>
  17728. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  17729. is FB, and the following bytes are NB[*].
  17730. <ul>
  17731. <li>if (FB >= -32), return (long)FB;
  17732. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  17733. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  17734. NB[1]&0xff;
  17735. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  17736. (NB[1]&0xff)<<8 + NB[2]&0xff;
  17737. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  17738. big-endian integer.
  17739. @param in
  17740. input stream
  17741. @return the decoded long integer.
  17742. @throws IOException]]>
  17743. </doc>
  17744. </method>
  17745. <method name="writeString"
  17746. abstract="false" native="false" synchronized="false"
  17747. static="true" final="false" visibility="public"
  17748. deprecated="not deprecated">
  17749. <param name="out" type="java.io.DataOutput"/>
  17750. <param name="s" type="java.lang.String"/>
  17751. <exception name="IOException" type="java.io.IOException"/>
  17752. <doc>
  17753. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  17754. @param out
  17755. @param s
  17756. @throws IOException]]>
  17757. </doc>
  17758. </method>
  17759. <method name="readString" return="java.lang.String"
  17760. abstract="false" native="false" synchronized="false"
  17761. static="true" final="false" visibility="public"
  17762. deprecated="not deprecated">
  17763. <param name="in" type="java.io.DataInput"/>
  17764. <exception name="IOException" type="java.io.IOException"/>
  17765. <doc>
  17766. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  17767. @param in
  17768. The input stream.
  17769. @return The string
  17770. @throws IOException]]>
  17771. </doc>
  17772. </method>
  17773. <method name="lowerBound" return="int"
  17774. abstract="false" native="false" synchronized="false"
  17775. static="true" final="false" visibility="public"
  17776. deprecated="not deprecated">
  17777. <param name="list" type="java.util.List"/>
  17778. <param name="key" type="T"/>
  17779. <param name="cmp" type="java.util.Comparator"/>
  17780. <doc>
  17781. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  17782. that compares greater than or equal to key.
  17783. @param <T>
  17784. Type of the input key.
  17785. @param list
  17786. The list
  17787. @param key
  17788. The input key.
  17789. @param cmp
  17790. Comparator for the key.
  17791. @return The index to the desired element if it exists; or list.size()
  17792. otherwise.]]>
  17793. </doc>
  17794. </method>
  17795. <method name="upperBound" return="int"
  17796. abstract="false" native="false" synchronized="false"
  17797. static="true" final="false" visibility="public"
  17798. deprecated="not deprecated">
  17799. <param name="list" type="java.util.List"/>
  17800. <param name="key" type="T"/>
  17801. <param name="cmp" type="java.util.Comparator"/>
  17802. <doc>
  17803. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  17804. that compares greater than the input key.
  17805. @param <T>
  17806. Type of the input key.
  17807. @param list
  17808. The list
  17809. @param key
  17810. The input key.
  17811. @param cmp
  17812. Comparator for the key.
  17813. @return The index to the desired element if it exists; or list.size()
  17814. otherwise.]]>
  17815. </doc>
  17816. </method>
  17817. <method name="lowerBound" return="int"
  17818. abstract="false" native="false" synchronized="false"
  17819. static="true" final="false" visibility="public"
  17820. deprecated="not deprecated">
  17821. <param name="list" type="java.util.List"/>
  17822. <param name="key" type="T"/>
  17823. <doc>
  17824. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  17825. that compares greater than or equal to key.
  17826. @param <T>
  17827. Type of the input key.
  17828. @param list
  17829. The list
  17830. @param key
  17831. The input key.
  17832. @return The index to the desired element if it exists; or list.size()
  17833. otherwise.]]>
  17834. </doc>
  17835. </method>
  17836. <method name="upperBound" return="int"
  17837. abstract="false" native="false" synchronized="false"
  17838. static="true" final="false" visibility="public"
  17839. deprecated="not deprecated">
  17840. <param name="list" type="java.util.List"/>
  17841. <param name="key" type="T"/>
  17842. <doc>
  17843. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  17844. that compares greater than the input key.
  17845. @param <T>
  17846. Type of the input key.
  17847. @param list
  17848. The list
  17849. @param key
  17850. The input key.
  17851. @return The index to the desired element if it exists; or list.size()
  17852. otherwise.]]>
  17853. </doc>
  17854. </method>
  17855. <doc>
  17856. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  17857. </doc>
  17858. </class>
  17859. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  17860. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  17861. <class name="Utils.Version" extends="java.lang.Object"
  17862. abstract="false"
  17863. static="true" final="true" visibility="public"
  17864. deprecated="not deprecated">
  17865. <implements name="java.lang.Comparable"/>
  17866. <constructor name="Utils.Version" type="java.io.DataInput"
  17867. static="false" final="false" visibility="public"
  17868. deprecated="not deprecated">
  17869. <exception name="IOException" type="java.io.IOException"/>
  17870. <doc>
  17871. <![CDATA[Construct the Version object by reading from the input stream.
  17872. @param in
  17873. input stream
  17874. @throws IOException]]>
  17875. </doc>
  17876. </constructor>
  17877. <constructor name="Utils.Version" type="short, short"
  17878. static="false" final="false" visibility="public"
  17879. deprecated="not deprecated">
  17880. <doc>
  17881. <![CDATA[Constructor.
  17882. @param major
  17883. major version.
  17884. @param minor
  17885. minor version.]]>
  17886. </doc>
  17887. </constructor>
  17888. <method name="write"
  17889. abstract="false" native="false" synchronized="false"
  17890. static="false" final="false" visibility="public"
  17891. deprecated="not deprecated">
  17892. <param name="out" type="java.io.DataOutput"/>
  17893. <exception name="IOException" type="java.io.IOException"/>
  17894. <doc>
  17895. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  17896. major version followed by minor version, both as big-endian short
  17897. integers.
  17898. @param out
  17899. The DataOutput object.
  17900. @throws IOException]]>
  17901. </doc>
  17902. </method>
  17903. <method name="getMajor" return="int"
  17904. abstract="false" native="false" synchronized="false"
  17905. static="false" final="false" visibility="public"
  17906. deprecated="not deprecated">
  17907. <doc>
  17908. <![CDATA[Get the major version.
  17909. @return Major version.]]>
  17910. </doc>
  17911. </method>
  17912. <method name="getMinor" return="int"
  17913. abstract="false" native="false" synchronized="false"
  17914. static="false" final="false" visibility="public"
  17915. deprecated="not deprecated">
  17916. <doc>
  17917. <![CDATA[Get the minor version.
  17918. @return The minor version.]]>
  17919. </doc>
  17920. </method>
  17921. <method name="size" return="int"
  17922. abstract="false" native="false" synchronized="false"
  17923. static="true" final="false" visibility="public"
  17924. deprecated="not deprecated">
  17925. <doc>
  17926. <![CDATA[Get the size of the serialized Version object.
  17927. @return serialized size of the version object.]]>
  17928. </doc>
  17929. </method>
  17930. <method name="toString" return="java.lang.String"
  17931. abstract="false" native="false" synchronized="false"
  17932. static="false" final="false" visibility="public"
  17933. deprecated="not deprecated">
  17934. <doc>
  17935. <![CDATA[Return a string representation of the version.]]>
  17936. </doc>
  17937. </method>
  17938. <method name="compatibleWith" return="boolean"
  17939. abstract="false" native="false" synchronized="false"
  17940. static="false" final="false" visibility="public"
  17941. deprecated="not deprecated">
  17942. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  17943. <doc>
  17944. <![CDATA[Test compatibility.
  17945. @param other
  17946. The Version object to test compatibility with.
  17947. @return true if both versions have the same major version number; false
  17948. otherwise.]]>
  17949. </doc>
  17950. </method>
  17951. <method name="compareTo" return="int"
  17952. abstract="false" native="false" synchronized="false"
  17953. static="false" final="false" visibility="public"
  17954. deprecated="not deprecated">
  17955. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  17956. <doc>
  17957. <![CDATA[Compare this version with another version.]]>
  17958. </doc>
  17959. </method>
  17960. <method name="equals" return="boolean"
  17961. abstract="false" native="false" synchronized="false"
  17962. static="false" final="false" visibility="public"
  17963. deprecated="not deprecated">
  17964. <param name="other" type="java.lang.Object"/>
  17965. </method>
  17966. <method name="hashCode" return="int"
  17967. abstract="false" native="false" synchronized="false"
  17968. static="false" final="false" visibility="public"
  17969. deprecated="not deprecated">
  17970. </method>
  17971. <doc>
  17972. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  17973. this class to maintain version information in their meta blocks.
  17974. A version number consists of a major version and a minor version. The
  17975. suggested usage of major and minor version number is to increment major
  17976. version number when the new storage format is not backward compatible, and
  17977. increment the minor version otherwise.]]>
  17978. </doc>
  17979. </class>
  17980. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  17981. </package>
  17982. <package name="org.apache.hadoop.io.serializer">
  17983. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  17984. <class name="JavaSerialization" extends="java.lang.Object"
  17985. abstract="false"
  17986. static="false" final="false" visibility="public"
  17987. deprecated="not deprecated">
  17988. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  17989. <constructor name="JavaSerialization"
  17990. static="false" final="false" visibility="public"
  17991. deprecated="not deprecated">
  17992. </constructor>
  17993. <method name="accept" return="boolean"
  17994. abstract="false" native="false" synchronized="false"
  17995. static="false" final="false" visibility="public"
  17996. deprecated="not deprecated">
  17997. <param name="c" type="java.lang.Class"/>
  17998. </method>
  17999. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  18000. abstract="false" native="false" synchronized="false"
  18001. static="false" final="false" visibility="public"
  18002. deprecated="not deprecated">
  18003. <param name="c" type="java.lang.Class"/>
  18004. </method>
  18005. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  18006. abstract="false" native="false" synchronized="false"
  18007. static="false" final="false" visibility="public"
  18008. deprecated="not deprecated">
  18009. <param name="c" type="java.lang.Class"/>
  18010. </method>
  18011. <doc>
  18012. <![CDATA[<p>
  18013. An experimental {@link Serialization} for Java {@link Serializable} classes.
  18014. </p>
  18015. @see JavaSerializationComparator]]>
  18016. </doc>
  18017. </class>
  18018. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  18019. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  18020. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  18021. abstract="false"
  18022. static="false" final="false" visibility="public"
  18023. deprecated="not deprecated">
  18024. <constructor name="JavaSerializationComparator"
  18025. static="false" final="false" visibility="public"
  18026. deprecated="not deprecated">
  18027. <exception name="IOException" type="java.io.IOException"/>
  18028. </constructor>
  18029. <method name="compare" return="int"
  18030. abstract="false" native="false" synchronized="false"
  18031. static="false" final="false" visibility="public"
  18032. deprecated="not deprecated">
  18033. <param name="o1" type="T"/>
  18034. <param name="o2" type="T"/>
  18035. </method>
  18036. <doc>
  18037. <![CDATA[<p>
  18038. A {@link RawComparator} that uses a {@link JavaSerialization}
  18039. {@link Deserializer} to deserialize objects that are then compared via
  18040. their {@link Comparable} interfaces.
  18041. </p>
  18042. @param <T>
  18043. @see JavaSerialization]]>
  18044. </doc>
  18045. </class>
  18046. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  18047. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  18048. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  18049. abstract="false"
  18050. static="false" final="false" visibility="public"
  18051. deprecated="not deprecated">
  18052. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  18053. <constructor name="WritableSerialization"
  18054. static="false" final="false" visibility="public"
  18055. deprecated="not deprecated">
  18056. </constructor>
  18057. <method name="accept" return="boolean"
  18058. abstract="false" native="false" synchronized="false"
  18059. static="false" final="false" visibility="public"
  18060. deprecated="not deprecated">
  18061. <param name="c" type="java.lang.Class"/>
  18062. </method>
  18063. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  18064. abstract="false" native="false" synchronized="false"
  18065. static="false" final="false" visibility="public"
  18066. deprecated="not deprecated">
  18067. <param name="c" type="java.lang.Class"/>
  18068. </method>
  18069. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  18070. abstract="false" native="false" synchronized="false"
  18071. static="false" final="false" visibility="public"
  18072. deprecated="not deprecated">
  18073. <param name="c" type="java.lang.Class"/>
  18074. </method>
  18075. <doc>
  18076. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  18077. {@link Writable#write(java.io.DataOutput)} and
  18078. {@link Writable#readFields(java.io.DataInput)}.]]>
  18079. </doc>
  18080. </class>
  18081. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  18082. <doc>
  18083. <![CDATA[<p>
  18084. This package provides a mechanism for using different serialization frameworks
  18085. in Hadoop. The property "io.serializations" defines a list of
  18086. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  18087. {@link org.apache.hadoop.io.serializer.Serializer}s and
  18088. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  18089. </p>
  18090. <p>
  18091. To add a new serialization framework write an implementation of
  18092. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  18093. "io.serializations" property.
  18094. </p>]]>
  18095. </doc>
  18096. </package>
  18097. <package name="org.apache.hadoop.io.serializer.avro">
  18098. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  18099. <interface name="AvroReflectSerializable" abstract="true"
  18100. static="false" final="false" visibility="public"
  18101. deprecated="not deprecated">
  18102. <doc>
  18103. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  18104. this interface can be serialized/deserialized using
  18105. {@link AvroReflectSerialization}.]]>
  18106. </doc>
  18107. </interface>
  18108. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  18109. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  18110. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  18111. abstract="false"
  18112. static="false" final="false" visibility="public"
  18113. deprecated="not deprecated">
  18114. <constructor name="AvroReflectSerialization"
  18115. static="false" final="false" visibility="public"
  18116. deprecated="not deprecated">
  18117. </constructor>
  18118. <method name="accept" return="boolean"
  18119. abstract="false" native="false" synchronized="true"
  18120. static="false" final="false" visibility="public"
  18121. deprecated="not deprecated">
  18122. <param name="c" type="java.lang.Class"/>
  18123. </method>
  18124. <method name="getReader" return="org.apache.avro.io.DatumReader"
  18125. abstract="false" native="false" synchronized="false"
  18126. static="false" final="false" visibility="public"
  18127. deprecated="not deprecated">
  18128. <param name="clazz" type="java.lang.Class"/>
  18129. </method>
  18130. <method name="getSchema" return="org.apache.avro.Schema"
  18131. abstract="false" native="false" synchronized="false"
  18132. static="false" final="false" visibility="public"
  18133. deprecated="not deprecated">
  18134. <param name="t" type="java.lang.Object"/>
  18135. </method>
  18136. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  18137. abstract="false" native="false" synchronized="false"
  18138. static="false" final="false" visibility="public"
  18139. deprecated="not deprecated">
  18140. <param name="clazz" type="java.lang.Class"/>
  18141. </method>
  18142. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  18143. transient="false" volatile="false"
  18144. static="true" final="true" visibility="public"
  18145. deprecated="not deprecated">
  18146. <doc>
  18147. <![CDATA[Key to configure packages that contain classes to be serialized and
  18148. deserialized using this class. Multiple packages can be specified using
  18149. comma-separated list.]]>
  18150. </doc>
  18151. </field>
  18152. <doc>
  18153. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  18154. serialization, it must either be in the package list configured via
  18155. <code>avro.reflect.pkgs</code> or implement
  18156. {@link AvroReflectSerializable} interface.]]>
  18157. </doc>
  18158. </class>
  18159. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  18160. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  18161. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  18162. abstract="true"
  18163. static="false" final="false" visibility="public"
  18164. deprecated="not deprecated">
  18165. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  18166. <constructor name="AvroSerialization"
  18167. static="false" final="false" visibility="public"
  18168. deprecated="not deprecated">
  18169. </constructor>
  18170. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  18171. abstract="false" native="false" synchronized="false"
  18172. static="false" final="false" visibility="public"
  18173. deprecated="not deprecated">
  18174. <param name="c" type="java.lang.Class"/>
  18175. </method>
  18176. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  18177. abstract="false" native="false" synchronized="false"
  18178. static="false" final="false" visibility="public"
  18179. deprecated="not deprecated">
  18180. <param name="c" type="java.lang.Class"/>
  18181. </method>
  18182. <method name="getSchema" return="org.apache.avro.Schema"
  18183. abstract="true" native="false" synchronized="false"
  18184. static="false" final="false" visibility="public"
  18185. deprecated="not deprecated">
  18186. <param name="t" type="T"/>
  18187. <doc>
  18188. <![CDATA[Return an Avro Schema instance for the given class.]]>
  18189. </doc>
  18190. </method>
  18191. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  18192. abstract="true" native="false" synchronized="false"
  18193. static="false" final="false" visibility="public"
  18194. deprecated="not deprecated">
  18195. <param name="clazz" type="java.lang.Class"/>
  18196. <doc>
  18197. <![CDATA[Create and return Avro DatumWriter for the given class.]]>
  18198. </doc>
  18199. </method>
  18200. <method name="getReader" return="org.apache.avro.io.DatumReader"
  18201. abstract="true" native="false" synchronized="false"
  18202. static="false" final="false" visibility="public"
  18203. deprecated="not deprecated">
  18204. <param name="clazz" type="java.lang.Class"/>
  18205. <doc>
  18206. <![CDATA[Create and return Avro DatumReader for the given class.]]>
  18207. </doc>
  18208. </method>
  18209. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  18210. transient="false" volatile="false"
  18211. static="true" final="true" visibility="public"
  18212. deprecated="not deprecated">
  18213. </field>
  18214. <doc>
  18215. <![CDATA[Base class for providing serialization to Avro types.]]>
  18216. </doc>
  18217. </class>
  18218. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  18219. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  18220. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  18221. abstract="false"
  18222. static="false" final="false" visibility="public"
  18223. deprecated="not deprecated">
  18224. <constructor name="AvroSpecificSerialization"
  18225. static="false" final="false" visibility="public"
  18226. deprecated="not deprecated">
  18227. </constructor>
  18228. <method name="accept" return="boolean"
  18229. abstract="false" native="false" synchronized="false"
  18230. static="false" final="false" visibility="public"
  18231. deprecated="not deprecated">
  18232. <param name="c" type="java.lang.Class"/>
  18233. </method>
  18234. <method name="getReader" return="org.apache.avro.io.DatumReader"
  18235. abstract="false" native="false" synchronized="false"
  18236. static="false" final="false" visibility="public"
  18237. deprecated="not deprecated">
  18238. <param name="clazz" type="java.lang.Class"/>
  18239. </method>
  18240. <method name="getSchema" return="org.apache.avro.Schema"
  18241. abstract="false" native="false" synchronized="false"
  18242. static="false" final="false" visibility="public"
  18243. deprecated="not deprecated">
  18244. <param name="t" type="org.apache.avro.specific.SpecificRecord"/>
  18245. </method>
  18246. <method name="getWriter" return="org.apache.avro.io.DatumWriter"
  18247. abstract="false" native="false" synchronized="false"
  18248. static="false" final="false" visibility="public"
  18249. deprecated="not deprecated">
  18250. <param name="clazz" type="java.lang.Class"/>
  18251. </method>
  18252. <doc>
  18253. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  18254. for classes generated by Avro's 'specific' compiler.]]>
  18255. </doc>
  18256. </class>
  18257. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  18258. <doc>
  18259. <![CDATA[<p>
  18260. This package provides Avro serialization in Hadoop. This can be used to
  18261. serialize/deserialize Avro types in Hadoop.
  18262. </p>
  18263. <p>
  18264. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  18265. serialization of classes generated by Avro's 'specific' compiler.
  18266. </p>
  18267. <p>
  18268. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  18269. other classes.
  18270. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  18271. any class which is either in the package list configured via
  18272. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  18273. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  18274. interface.
  18275. </p>]]>
  18276. </doc>
  18277. </package>
  18278. <package name="org.apache.hadoop.log">
  18279. <!-- start class org.apache.hadoop.log.LogLevel -->
  18280. <class name="LogLevel" extends="java.lang.Object"
  18281. abstract="false"
  18282. static="false" final="false" visibility="public"
  18283. deprecated="not deprecated">
  18284. <constructor name="LogLevel"
  18285. static="false" final="false" visibility="public"
  18286. deprecated="not deprecated">
  18287. </constructor>
  18288. <method name="main"
  18289. abstract="false" native="false" synchronized="false"
  18290. static="true" final="false" visibility="public"
  18291. deprecated="not deprecated">
  18292. <param name="args" type="java.lang.String[]"/>
  18293. <doc>
  18294. <![CDATA[A command line implementation]]>
  18295. </doc>
  18296. </method>
  18297. <field name="USAGES" type="java.lang.String"
  18298. transient="false" volatile="false"
  18299. static="true" final="true" visibility="public"
  18300. deprecated="not deprecated">
  18301. </field>
  18302. <doc>
  18303. <![CDATA[Change log level in runtime.]]>
  18304. </doc>
  18305. </class>
  18306. <!-- end class org.apache.hadoop.log.LogLevel -->
  18307. </package>
  18308. <package name="org.apache.hadoop.metrics">
  18309. <doc>
  18310. <![CDATA[This package defines an API for reporting performance metric information.
  18311. <p/>
  18312. The API is abstract so that it can be implemented on top of
  18313. a variety of metrics client libraries. The choice of
  18314. client library is a configuration option, and different
  18315. modules within the same application can use
  18316. different metrics implementation libraries.
  18317. <p/>
  18318. Sub-packages:
  18319. <dl>
  18320. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  18321. <dd>The abstract Server Provider Interface package. Those wishing to
  18322. integrate the metrics API with a particular metrics client library should
  18323. extend this package.</dd>
  18324. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  18325. <dd>An implementation package which writes the metric data to
  18326. a file, or sends it to the standard output stream.</dd>
  18327. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  18328. <dd>An implementation package which sends metric data to
  18329. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  18330. </dl>
  18331. <h3>Introduction to the Metrics API</h3>
  18332. Here is a simple example of how to use this package to report a single
  18333. metric value:
  18334. <pre>
  18335. private ContextFactory contextFactory = ContextFactory.getFactory();
  18336. void reportMyMetric(float myMetric) {
  18337. MetricsContext myContext = contextFactory.getContext("myContext");
  18338. MetricsRecord myRecord = myContext.getRecord("myRecord");
  18339. myRecord.setMetric("myMetric", myMetric);
  18340. myRecord.update();
  18341. }
  18342. </pre>
  18343. In this example there are three names:
  18344. <dl>
  18345. <dt><i>myContext</i></dt>
  18346. <dd>The context name will typically identify either the application, or else a
  18347. module within an application or library.</dd>
  18348. <dt><i>myRecord</i></dt>
  18349. <dd>The record name generally identifies some entity for which a set of
  18350. metrics are to be reported. For example, you could have a record named
  18351. "cacheStats" for reporting a number of statistics relating to the usage of
  18352. some cache in your application.</dd>
  18353. <dt><i>myMetric</i></dt>
  18354. <dd>This identifies a particular metric. For example, you might have metrics
  18355. named "cache_hits" and "cache_misses".
  18356. </dd>
  18357. </dl>
  18358. <h3>Tags</h3>
  18359. In some cases it is useful to have multiple records with the same name. For
  18360. example, suppose that you want to report statistics about each disk on a computer.
  18361. In this case, the record name would be something like "diskStats", but you also
  18362. need to identify the disk which is done by adding a <i>tag</i> to the record.
  18363. The code could look something like this:
  18364. <pre>
  18365. private MetricsRecord diskStats =
  18366. contextFactory.getContext("myContext").getRecord("diskStats");
  18367. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  18368. diskStats.setTag("diskName", diskName);
  18369. diskStats.setMetric("diskBusy", diskBusy);
  18370. diskStats.setMetric("diskUsed", diskUsed);
  18371. diskStats.update();
  18372. }
  18373. </pre>
  18374. <h3>Buffering and Callbacks</h3>
  18375. Data is not sent immediately to the metrics system when
  18376. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  18377. internal table, and the contents of the table are sent periodically.
  18378. This can be important for two reasons:
  18379. <ol>
  18380. <li>It means that a programmer is free to put calls to this API in an
  18381. inner loop, since updates can be very frequent without slowing down
  18382. the application significantly.</li>
  18383. <li>Some implementations can gain efficiency by combining many metrics
  18384. into a single UDP message.</li>
  18385. </ol>
  18386. The API provides a timer-based callback via the
  18387. <code>registerUpdater()</code> method. The benefit of this
  18388. versus using <code>java.util.Timer</code> is that the callbacks will be done
  18389. immediately before sending the data, making the data as current as possible.
  18390. <h3>Configuration</h3>
  18391. It is possible to programmatically examine and modify configuration data
  18392. before creating a context, like this:
  18393. <pre>
  18394. ContextFactory factory = ContextFactory.getFactory();
  18395. ... examine and/or modify factory attributes ...
  18396. MetricsContext context = factory.getContext("myContext");
  18397. </pre>
  18398. The factory attributes can be examined and modified using the following
  18399. <code>ContextFactory</code>methods:
  18400. <ul>
  18401. <li><code>Object getAttribute(String attributeName)</code></li>
  18402. <li><code>String[] getAttributeNames()</code></li>
  18403. <li><code>void setAttribute(String name, Object value)</code></li>
  18404. <li><code>void removeAttribute(attributeName)</code></li>
  18405. </ul>
  18406. <p/>
  18407. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  18408. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  18409. on the class path.
  18410. <p/>
  18411. A factory attribute named:
  18412. <pre>
  18413. <i>contextName</i>.class
  18414. </pre>
  18415. should have as its value the fully qualified name of the class to be
  18416. instantiated by a call of the <code>CodeFactory</code> method
  18417. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  18418. specified, the default is to instantiate
  18419. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  18420. <p/>
  18421. Other factory attributes are specific to a particular implementation of this
  18422. API and are documented elsewhere. For example, configuration attributes for
  18423. the file and Ganglia implementations can be found in the javadoc for
  18424. their respective packages.]]>
  18425. </doc>
  18426. </package>
  18427. <package name="org.apache.hadoop.metrics.file">
  18428. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  18429. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  18430. abstract="false"
  18431. static="false" final="false" visibility="public"
  18432. deprecated="not deprecated">
  18433. <constructor name="FileContext"
  18434. static="false" final="false" visibility="public"
  18435. deprecated="not deprecated">
  18436. <doc>
  18437. <![CDATA[Creates a new instance of FileContext]]>
  18438. </doc>
  18439. </constructor>
  18440. <method name="init"
  18441. abstract="false" native="false" synchronized="false"
  18442. static="false" final="false" visibility="public"
  18443. deprecated="not deprecated">
  18444. <param name="contextName" type="java.lang.String"/>
  18445. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  18446. </method>
  18447. <method name="getFileName" return="java.lang.String"
  18448. abstract="false" native="false" synchronized="false"
  18449. static="false" final="false" visibility="public"
  18450. deprecated="not deprecated">
  18451. <doc>
  18452. <![CDATA[Returns the configured file name, or null.]]>
  18453. </doc>
  18454. </method>
  18455. <method name="startMonitoring"
  18456. abstract="false" native="false" synchronized="false"
  18457. static="false" final="false" visibility="public"
  18458. deprecated="not deprecated">
  18459. <exception name="IOException" type="java.io.IOException"/>
  18460. <doc>
  18461. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  18462. file specified by the <code>fileName</code> attribute,
  18463. if specified. Otherwise the data will be written to standard
  18464. output.]]>
  18465. </doc>
  18466. </method>
  18467. <method name="stopMonitoring"
  18468. abstract="false" native="false" synchronized="false"
  18469. static="false" final="false" visibility="public"
  18470. deprecated="not deprecated">
  18471. <doc>
  18472. <![CDATA[Stops monitoring, closing the file.
  18473. @see #close()]]>
  18474. </doc>
  18475. </method>
  18476. <method name="emitRecord"
  18477. abstract="false" native="false" synchronized="false"
  18478. static="false" final="false" visibility="public"
  18479. deprecated="not deprecated">
  18480. <param name="contextName" type="java.lang.String"/>
  18481. <param name="recordName" type="java.lang.String"/>
  18482. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  18483. <doc>
  18484. <![CDATA[Emits a metrics record to a file.]]>
  18485. </doc>
  18486. </method>
  18487. <method name="flush"
  18488. abstract="false" native="false" synchronized="false"
  18489. static="false" final="false" visibility="public"
  18490. deprecated="not deprecated">
  18491. <doc>
  18492. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  18493. </doc>
  18494. </method>
  18495. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  18496. transient="false" volatile="false"
  18497. static="true" final="true" visibility="protected"
  18498. deprecated="not deprecated">
  18499. </field>
  18500. <field name="PERIOD_PROPERTY" type="java.lang.String"
  18501. transient="false" volatile="false"
  18502. static="true" final="true" visibility="protected"
  18503. deprecated="not deprecated">
  18504. </field>
  18505. <doc>
  18506. <![CDATA[Metrics context for writing metrics to a file.<p/>
  18507. This class is configured by setting ContextFactory attributes which in turn
  18508. are usually configured through a properties file. All the attributes are
  18509. prefixed by the contextName. For example, the properties file might contain:
  18510. <pre>
  18511. myContextName.fileName=/tmp/metrics.log
  18512. myContextName.period=5
  18513. </pre>]]>
  18514. </doc>
  18515. </class>
  18516. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  18517. <doc>
  18518. <![CDATA[Implementation of the metrics package that writes the metrics to a file.
  18519. Programmers should not normally need to use this package directly. Instead
  18520. they should use org.hadoop.metrics.
  18521. <p/>
  18522. These are the implementation specific factory attributes
  18523. (See ContextFactory.getFactory()):
  18524. <dl>
  18525. <dt><i>contextName</i>.fileName</dt>
  18526. <dd>The path of the file to which metrics in context <i>contextName</i>
  18527. are to be appended. If this attribute is not specified, the metrics
  18528. are written to standard output by default.</dd>
  18529. <dt><i>contextName</i>.period</dt>
  18530. <dd>The period in seconds on which the metric data is written to the
  18531. file.</dd>
  18532. </dl>]]>
  18533. </doc>
  18534. </package>
  18535. <package name="org.apache.hadoop.metrics.ganglia">
  18536. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  18537. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  18538. abstract="false"
  18539. static="false" final="false" visibility="public"
  18540. deprecated="not deprecated">
  18541. <constructor name="GangliaContext"
  18542. static="false" final="false" visibility="public"
  18543. deprecated="not deprecated">
  18544. <doc>
  18545. <![CDATA[Creates a new instance of GangliaContext]]>
  18546. </doc>
  18547. </constructor>
  18548. <method name="init"
  18549. abstract="false" native="false" synchronized="false"
  18550. static="false" final="false" visibility="public"
  18551. deprecated="not deprecated">
  18552. <param name="contextName" type="java.lang.String"/>
  18553. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  18554. </method>
  18555. <method name="emitRecord"
  18556. abstract="false" native="false" synchronized="false"
  18557. static="false" final="false" visibility="public"
  18558. deprecated="not deprecated">
  18559. <param name="contextName" type="java.lang.String"/>
  18560. <param name="recordName" type="java.lang.String"/>
  18561. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  18562. <exception name="IOException" type="java.io.IOException"/>
  18563. </method>
  18564. <doc>
  18565. <![CDATA[Context for sending metrics to Ganglia.]]>
  18566. </doc>
  18567. </class>
  18568. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  18569. <doc>
  18570. <![CDATA[<!--
  18571. * Licensed to the Apache Software Foundation (ASF) under one
  18572. * or more contributor license agreements. See the NOTICE file
  18573. * distributed with this work for additional information
  18574. * regarding copyright ownership. The ASF licenses this file
  18575. * to you under the Apache License, Version 2.0 (the
  18576. * "License"); you may not use this file except in compliance
  18577. * with the License. You may obtain a copy of the License at
  18578. *
  18579. * http://www.apache.org/licenses/LICENSE-2.0
  18580. *
  18581. * Unless required by applicable law or agreed to in writing, software
  18582. * distributed under the License is distributed on an "AS IS" BASIS,
  18583. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18584. * See the License for the specific language governing permissions and
  18585. * limitations under the License.
  18586. -->
  18587. Implementation of the metrics package that sends metric data to
  18588. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  18589. Programmers should not normally need to use this package directly. Instead
  18590. they should use org.hadoop.metrics.
  18591. <p/>
  18592. These are the implementation specific factory attributes
  18593. (See ContextFactory.getFactory()):
  18594. <dl>
  18595. <dt><i>contextName</i>.servers</dt>
  18596. <dd>Space and/or comma separated sequence of servers to which UDP
  18597. messages should be sent.</dd>
  18598. <dt><i>contextName</i>.period</dt>
  18599. <dd>The period in seconds on which the metric data is sent to the
  18600. server(s).</dd>
  18601. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  18602. <dd>The units for the specified metric in the specified record.</dd>
  18603. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  18604. <dd>The slope for the specified metric in the specified record.</dd>
  18605. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  18606. <dd>The tmax for the specified metric in the specified record.</dd>
  18607. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  18608. <dd>The dmax for the specified metric in the specified record.</dd>
  18609. </dl>]]>
  18610. </doc>
  18611. </package>
  18612. <package name="org.apache.hadoop.metrics.spi">
  18613. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  18614. <class name="AbstractMetricsContext" extends="java.lang.Object"
  18615. abstract="true"
  18616. static="false" final="false" visibility="public"
  18617. deprecated="not deprecated">
  18618. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  18619. <constructor name="AbstractMetricsContext"
  18620. static="false" final="false" visibility="protected"
  18621. deprecated="not deprecated">
  18622. <doc>
  18623. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  18624. </doc>
  18625. </constructor>
  18626. <method name="init"
  18627. abstract="false" native="false" synchronized="false"
  18628. static="false" final="false" visibility="public"
  18629. deprecated="not deprecated">
  18630. <param name="contextName" type="java.lang.String"/>
  18631. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  18632. <doc>
  18633. <![CDATA[Initializes the context.]]>
  18634. </doc>
  18635. </method>
  18636. <method name="getAttribute" return="java.lang.String"
  18637. abstract="false" native="false" synchronized="false"
  18638. static="false" final="false" visibility="protected"
  18639. deprecated="not deprecated">
  18640. <param name="attributeName" type="java.lang.String"/>
  18641. <doc>
  18642. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  18643. </doc>
  18644. </method>
  18645. <method name="getAttributeTable" return="java.util.Map"
  18646. abstract="false" native="false" synchronized="false"
  18647. static="false" final="false" visibility="protected"
  18648. deprecated="not deprecated">
  18649. <param name="tableName" type="java.lang.String"/>
  18650. <doc>
  18651. <![CDATA[Returns an attribute-value map derived from the factory attributes
  18652. by finding all factory attributes that begin with
  18653. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  18654. those attributes with the contextName and tableName stripped off.]]>
  18655. </doc>
  18656. </method>
  18657. <method name="getContextName" return="java.lang.String"
  18658. abstract="false" native="false" synchronized="false"
  18659. static="false" final="false" visibility="public"
  18660. deprecated="not deprecated">
  18661. <doc>
  18662. <![CDATA[Returns the context name.]]>
  18663. </doc>
  18664. </method>
  18665. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  18666. abstract="false" native="false" synchronized="false"
  18667. static="false" final="false" visibility="public"
  18668. deprecated="not deprecated">
  18669. <doc>
  18670. <![CDATA[Returns the factory by which this context was created.]]>
  18671. </doc>
  18672. </method>
  18673. <method name="startMonitoring"
  18674. abstract="false" native="false" synchronized="true"
  18675. static="false" final="false" visibility="public"
  18676. deprecated="not deprecated">
  18677. <exception name="IOException" type="java.io.IOException"/>
  18678. <doc>
  18679. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  18680. </doc>
  18681. </method>
  18682. <method name="stopMonitoring"
  18683. abstract="false" native="false" synchronized="true"
  18684. static="false" final="false" visibility="public"
  18685. deprecated="not deprecated">
  18686. <doc>
  18687. <![CDATA[Stops monitoring. This does not free buffered data.
  18688. @see #close()]]>
  18689. </doc>
  18690. </method>
  18691. <method name="isMonitoring" return="boolean"
  18692. abstract="false" native="false" synchronized="false"
  18693. static="false" final="false" visibility="public"
  18694. deprecated="not deprecated">
  18695. <doc>
  18696. <![CDATA[Returns true if monitoring is currently in progress.]]>
  18697. </doc>
  18698. </method>
  18699. <method name="close"
  18700. abstract="false" native="false" synchronized="true"
  18701. static="false" final="false" visibility="public"
  18702. deprecated="not deprecated">
  18703. <doc>
  18704. <![CDATA[Stops monitoring and frees buffered data, returning this
  18705. object to its initial state.]]>
  18706. </doc>
  18707. </method>
  18708. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  18709. abstract="false" native="false" synchronized="true"
  18710. static="false" final="true" visibility="public"
  18711. deprecated="not deprecated">
  18712. <param name="recordName" type="java.lang.String"/>
  18713. <doc>
  18714. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  18715. Throws an exception if the metrics implementation is configured with a fixed
  18716. set of record names and <code>recordName</code> is not in that set.
  18717. @param recordName the name of the record
  18718. @throws MetricsException if recordName conflicts with configuration data]]>
  18719. </doc>
  18720. </method>
  18721. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  18722. abstract="false" native="false" synchronized="false"
  18723. static="false" final="false" visibility="protected"
  18724. deprecated="not deprecated">
  18725. <param name="recordName" type="java.lang.String"/>
  18726. <doc>
  18727. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  18728. @param recordName the name of the record
  18729. @return newly created instance of MetricsRecordImpl or subclass]]>
  18730. </doc>
  18731. </method>
  18732. <method name="registerUpdater"
  18733. abstract="false" native="false" synchronized="true"
  18734. static="false" final="false" visibility="public"
  18735. deprecated="not deprecated">
  18736. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  18737. <doc>
  18738. <![CDATA[Registers a callback to be called at time intervals determined by
  18739. the configuration.
  18740. @param updater object to be run periodically; it should update
  18741. some metrics records]]>
  18742. </doc>
  18743. </method>
  18744. <method name="unregisterUpdater"
  18745. abstract="false" native="false" synchronized="true"
  18746. static="false" final="false" visibility="public"
  18747. deprecated="not deprecated">
  18748. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  18749. <doc>
  18750. <![CDATA[Removes a callback, if it exists.
  18751. @param updater object to be removed from the callback list]]>
  18752. </doc>
  18753. </method>
  18754. <method name="getAllRecords" return="java.util.Map"
  18755. abstract="false" native="false" synchronized="true"
  18756. static="false" final="false" visibility="public"
  18757. deprecated="not deprecated">
  18758. <doc>
  18759. <![CDATA[Retrieves all the records managed by this MetricsContext.
  18760. Useful for monitoring systems that are polling-based.
  18761. @return A non-null collection of all monitoring records.]]>
  18762. </doc>
  18763. </method>
  18764. <method name="emitRecord"
  18765. abstract="true" native="false" synchronized="false"
  18766. static="false" final="false" visibility="protected"
  18767. deprecated="not deprecated">
  18768. <param name="contextName" type="java.lang.String"/>
  18769. <param name="recordName" type="java.lang.String"/>
  18770. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  18771. <exception name="IOException" type="java.io.IOException"/>
  18772. <doc>
  18773. <![CDATA[Sends a record to the metrics system.]]>
  18774. </doc>
  18775. </method>
  18776. <method name="flush"
  18777. abstract="false" native="false" synchronized="false"
  18778. static="false" final="false" visibility="protected"
  18779. deprecated="not deprecated">
  18780. <exception name="IOException" type="java.io.IOException"/>
  18781. <doc>
  18782. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  18783. Subclasses may override it in order to perform some kind of flush.]]>
  18784. </doc>
  18785. </method>
  18786. <method name="update"
  18787. abstract="false" native="false" synchronized="false"
  18788. static="false" final="false" visibility="protected"
  18789. deprecated="not deprecated">
  18790. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  18791. <doc>
  18792. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  18793. the internal table of metric data.]]>
  18794. </doc>
  18795. </method>
  18796. <method name="remove"
  18797. abstract="false" native="false" synchronized="false"
  18798. static="false" final="false" visibility="protected"
  18799. deprecated="not deprecated">
  18800. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  18801. <doc>
  18802. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  18803. the internal table of metric data. A row matches if it has the same
  18804. tag names and values as record, but it may also have additional
  18805. tags.]]>
  18806. </doc>
  18807. </method>
  18808. <method name="getPeriod" return="int"
  18809. abstract="false" native="false" synchronized="false"
  18810. static="false" final="false" visibility="public"
  18811. deprecated="not deprecated">
  18812. <doc>
  18813. <![CDATA[Returns the timer period.]]>
  18814. </doc>
  18815. </method>
  18816. <method name="setPeriod"
  18817. abstract="false" native="false" synchronized="false"
  18818. static="false" final="false" visibility="protected"
  18819. deprecated="not deprecated">
  18820. <param name="period" type="int"/>
  18821. <doc>
  18822. <![CDATA[Sets the timer period]]>
  18823. </doc>
  18824. </method>
  18825. <method name="parseAndSetPeriod"
  18826. abstract="false" native="false" synchronized="false"
  18827. static="false" final="false" visibility="protected"
  18828. deprecated="not deprecated">
  18829. <param name="attributeName" type="java.lang.String"/>
  18830. <doc>
  18831. <![CDATA[If a period is set in the attribute passed in, override
  18832. the default with it.]]>
  18833. </doc>
  18834. </method>
  18835. <doc>
  18836. <![CDATA[The main class of the Service Provider Interface. This class should be
  18837. extended in order to integrate the Metrics API with a specific metrics
  18838. client library. <p/>
  18839. This class implements the internal table of metric data, and the timer
  18840. on which data is to be sent to the metrics system. Subclasses must
  18841. override the abstract <code>emitRecord</code> method in order to transmit
  18842. the data. <p/>]]>
  18843. </doc>
  18844. </class>
  18845. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  18846. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  18847. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  18848. abstract="false"
  18849. static="false" final="false" visibility="public"
  18850. deprecated="not deprecated">
  18851. <constructor name="CompositeContext"
  18852. static="false" final="false" visibility="public"
  18853. deprecated="not deprecated">
  18854. </constructor>
  18855. <method name="init"
  18856. abstract="false" native="false" synchronized="false"
  18857. static="false" final="false" visibility="public"
  18858. deprecated="not deprecated">
  18859. <param name="contextName" type="java.lang.String"/>
  18860. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  18861. </method>
  18862. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  18863. abstract="false" native="false" synchronized="false"
  18864. static="false" final="false" visibility="public"
  18865. deprecated="not deprecated">
  18866. <param name="recordName" type="java.lang.String"/>
  18867. </method>
  18868. <method name="emitRecord"
  18869. abstract="false" native="false" synchronized="false"
  18870. static="false" final="false" visibility="protected"
  18871. deprecated="not deprecated">
  18872. <param name="contextName" type="java.lang.String"/>
  18873. <param name="recordName" type="java.lang.String"/>
  18874. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  18875. <exception name="IOException" type="java.io.IOException"/>
  18876. </method>
  18877. <method name="flush"
  18878. abstract="false" native="false" synchronized="false"
  18879. static="false" final="false" visibility="protected"
  18880. deprecated="not deprecated">
  18881. <exception name="IOException" type="java.io.IOException"/>
  18882. </method>
  18883. <method name="startMonitoring"
  18884. abstract="false" native="false" synchronized="false"
  18885. static="false" final="false" visibility="public"
  18886. deprecated="not deprecated">
  18887. <exception name="IOException" type="java.io.IOException"/>
  18888. </method>
  18889. <method name="stopMonitoring"
  18890. abstract="false" native="false" synchronized="false"
  18891. static="false" final="false" visibility="public"
  18892. deprecated="not deprecated">
  18893. </method>
  18894. <method name="isMonitoring" return="boolean"
  18895. abstract="false" native="false" synchronized="false"
  18896. static="false" final="false" visibility="public"
  18897. deprecated="not deprecated">
  18898. <doc>
  18899. <![CDATA[Return true if all subcontexts are monitoring.]]>
  18900. </doc>
  18901. </method>
  18902. <method name="close"
  18903. abstract="false" native="false" synchronized="false"
  18904. static="false" final="false" visibility="public"
  18905. deprecated="not deprecated">
  18906. </method>
  18907. <method name="registerUpdater"
  18908. abstract="false" native="false" synchronized="false"
  18909. static="false" final="false" visibility="public"
  18910. deprecated="not deprecated">
  18911. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  18912. </method>
  18913. <method name="unregisterUpdater"
  18914. abstract="false" native="false" synchronized="false"
  18915. static="false" final="false" visibility="public"
  18916. deprecated="not deprecated">
  18917. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  18918. </method>
  18919. </class>
  18920. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  18921. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  18922. <class name="MetricsRecordImpl" extends="java.lang.Object"
  18923. abstract="false"
  18924. static="false" final="false" visibility="public"
  18925. deprecated="not deprecated">
  18926. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  18927. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  18928. static="false" final="false" visibility="protected"
  18929. deprecated="not deprecated">
  18930. <doc>
  18931. <![CDATA[Creates a new instance of FileRecord]]>
  18932. </doc>
  18933. </constructor>
  18934. <method name="getRecordName" return="java.lang.String"
  18935. abstract="false" native="false" synchronized="false"
  18936. static="false" final="false" visibility="public"
  18937. deprecated="not deprecated">
  18938. <doc>
  18939. <![CDATA[Returns the record name.
  18940. @return the record name]]>
  18941. </doc>
  18942. </method>
  18943. <method name="setTag"
  18944. abstract="false" native="false" synchronized="false"
  18945. static="false" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <param name="tagName" type="java.lang.String"/>
  18948. <param name="tagValue" type="java.lang.String"/>
  18949. <doc>
  18950. <![CDATA[Sets the named tag to the specified value.
  18951. @param tagName name of the tag
  18952. @param tagValue new value of the tag
  18953. @throws MetricsException if the tagName conflicts with the configuration]]>
  18954. </doc>
  18955. </method>
  18956. <method name="setTag"
  18957. abstract="false" native="false" synchronized="false"
  18958. static="false" final="false" visibility="public"
  18959. deprecated="not deprecated">
  18960. <param name="tagName" type="java.lang.String"/>
  18961. <param name="tagValue" type="int"/>
  18962. <doc>
  18963. <![CDATA[Sets the named tag to the specified value.
  18964. @param tagName name of the tag
  18965. @param tagValue new value of the tag
  18966. @throws MetricsException if the tagName conflicts with the configuration]]>
  18967. </doc>
  18968. </method>
  18969. <method name="setTag"
  18970. abstract="false" native="false" synchronized="false"
  18971. static="false" final="false" visibility="public"
  18972. deprecated="not deprecated">
  18973. <param name="tagName" type="java.lang.String"/>
  18974. <param name="tagValue" type="long"/>
  18975. <doc>
  18976. <![CDATA[Sets the named tag to the specified value.
  18977. @param tagName name of the tag
  18978. @param tagValue new value of the tag
  18979. @throws MetricsException if the tagName conflicts with the configuration]]>
  18980. </doc>
  18981. </method>
  18982. <method name="setTag"
  18983. abstract="false" native="false" synchronized="false"
  18984. static="false" final="false" visibility="public"
  18985. deprecated="not deprecated">
  18986. <param name="tagName" type="java.lang.String"/>
  18987. <param name="tagValue" type="short"/>
  18988. <doc>
  18989. <![CDATA[Sets the named tag to the specified value.
  18990. @param tagName name of the tag
  18991. @param tagValue new value of the tag
  18992. @throws MetricsException if the tagName conflicts with the configuration]]>
  18993. </doc>
  18994. </method>
  18995. <method name="setTag"
  18996. abstract="false" native="false" synchronized="false"
  18997. static="false" final="false" visibility="public"
  18998. deprecated="not deprecated">
  18999. <param name="tagName" type="java.lang.String"/>
  19000. <param name="tagValue" type="byte"/>
  19001. <doc>
  19002. <![CDATA[Sets the named tag to the specified value.
  19003. @param tagName name of the tag
  19004. @param tagValue new value of the tag
  19005. @throws MetricsException if the tagName conflicts with the configuration]]>
  19006. </doc>
  19007. </method>
  19008. <method name="removeTag"
  19009. abstract="false" native="false" synchronized="false"
  19010. static="false" final="false" visibility="public"
  19011. deprecated="not deprecated">
  19012. <param name="tagName" type="java.lang.String"/>
  19013. <doc>
  19014. <![CDATA[Removes any tag of the specified name.]]>
  19015. </doc>
  19016. </method>
  19017. <method name="setMetric"
  19018. abstract="false" native="false" synchronized="false"
  19019. static="false" final="false" visibility="public"
  19020. deprecated="not deprecated">
  19021. <param name="metricName" type="java.lang.String"/>
  19022. <param name="metricValue" type="int"/>
  19023. <doc>
  19024. <![CDATA[Sets the named metric to the specified value.
  19025. @param metricName name of the metric
  19026. @param metricValue new value of the metric
  19027. @throws MetricsException if the metricName or the type of the metricValue
  19028. conflicts with the configuration]]>
  19029. </doc>
  19030. </method>
  19031. <method name="setMetric"
  19032. abstract="false" native="false" synchronized="false"
  19033. static="false" final="false" visibility="public"
  19034. deprecated="not deprecated">
  19035. <param name="metricName" type="java.lang.String"/>
  19036. <param name="metricValue" type="long"/>
  19037. <doc>
  19038. <![CDATA[Sets the named metric to the specified value.
  19039. @param metricName name of the metric
  19040. @param metricValue new value of the metric
  19041. @throws MetricsException if the metricName or the type of the metricValue
  19042. conflicts with the configuration]]>
  19043. </doc>
  19044. </method>
  19045. <method name="setMetric"
  19046. abstract="false" native="false" synchronized="false"
  19047. static="false" final="false" visibility="public"
  19048. deprecated="not deprecated">
  19049. <param name="metricName" type="java.lang.String"/>
  19050. <param name="metricValue" type="short"/>
  19051. <doc>
  19052. <![CDATA[Sets the named metric to the specified value.
  19053. @param metricName name of the metric
  19054. @param metricValue new value of the metric
  19055. @throws MetricsException if the metricName or the type of the metricValue
  19056. conflicts with the configuration]]>
  19057. </doc>
  19058. </method>
  19059. <method name="setMetric"
  19060. abstract="false" native="false" synchronized="false"
  19061. static="false" final="false" visibility="public"
  19062. deprecated="not deprecated">
  19063. <param name="metricName" type="java.lang.String"/>
  19064. <param name="metricValue" type="byte"/>
  19065. <doc>
  19066. <![CDATA[Sets the named metric to the specified value.
  19067. @param metricName name of the metric
  19068. @param metricValue new value of the metric
  19069. @throws MetricsException if the metricName or the type of the metricValue
  19070. conflicts with the configuration]]>
  19071. </doc>
  19072. </method>
  19073. <method name="setMetric"
  19074. abstract="false" native="false" synchronized="false"
  19075. static="false" final="false" visibility="public"
  19076. deprecated="not deprecated">
  19077. <param name="metricName" type="java.lang.String"/>
  19078. <param name="metricValue" type="float"/>
  19079. <doc>
  19080. <![CDATA[Sets the named metric to the specified value.
  19081. @param metricName name of the metric
  19082. @param metricValue new value of the metric
  19083. @throws MetricsException if the metricName or the type of the metricValue
  19084. conflicts with the configuration]]>
  19085. </doc>
  19086. </method>
  19087. <method name="incrMetric"
  19088. abstract="false" native="false" synchronized="false"
  19089. static="false" final="false" visibility="public"
  19090. deprecated="not deprecated">
  19091. <param name="metricName" type="java.lang.String"/>
  19092. <param name="metricValue" type="int"/>
  19093. <doc>
  19094. <![CDATA[Increments the named metric by the specified value.
  19095. @param metricName name of the metric
  19096. @param metricValue incremental value
  19097. @throws MetricsException if the metricName or the type of the metricValue
  19098. conflicts with the configuration]]>
  19099. </doc>
  19100. </method>
  19101. <method name="incrMetric"
  19102. abstract="false" native="false" synchronized="false"
  19103. static="false" final="false" visibility="public"
  19104. deprecated="not deprecated">
  19105. <param name="metricName" type="java.lang.String"/>
  19106. <param name="metricValue" type="long"/>
  19107. <doc>
  19108. <![CDATA[Increments the named metric by the specified value.
  19109. @param metricName name of the metric
  19110. @param metricValue incremental value
  19111. @throws MetricsException if the metricName or the type of the metricValue
  19112. conflicts with the configuration]]>
  19113. </doc>
  19114. </method>
  19115. <method name="incrMetric"
  19116. abstract="false" native="false" synchronized="false"
  19117. static="false" final="false" visibility="public"
  19118. deprecated="not deprecated">
  19119. <param name="metricName" type="java.lang.String"/>
  19120. <param name="metricValue" type="short"/>
  19121. <doc>
  19122. <![CDATA[Increments the named metric by the specified value.
  19123. @param metricName name of the metric
  19124. @param metricValue incremental value
  19125. @throws MetricsException if the metricName or the type of the metricValue
  19126. conflicts with the configuration]]>
  19127. </doc>
  19128. </method>
  19129. <method name="incrMetric"
  19130. abstract="false" native="false" synchronized="false"
  19131. static="false" final="false" visibility="public"
  19132. deprecated="not deprecated">
  19133. <param name="metricName" type="java.lang.String"/>
  19134. <param name="metricValue" type="byte"/>
  19135. <doc>
  19136. <![CDATA[Increments the named metric by the specified value.
  19137. @param metricName name of the metric
  19138. @param metricValue incremental value
  19139. @throws MetricsException if the metricName or the type of the metricValue
  19140. conflicts with the configuration]]>
  19141. </doc>
  19142. </method>
  19143. <method name="incrMetric"
  19144. abstract="false" native="false" synchronized="false"
  19145. static="false" final="false" visibility="public"
  19146. deprecated="not deprecated">
  19147. <param name="metricName" type="java.lang.String"/>
  19148. <param name="metricValue" type="float"/>
  19149. <doc>
  19150. <![CDATA[Increments the named metric by the specified value.
  19151. @param metricName name of the metric
  19152. @param metricValue incremental value
  19153. @throws MetricsException if the metricName or the type of the metricValue
  19154. conflicts with the configuration]]>
  19155. </doc>
  19156. </method>
  19157. <method name="update"
  19158. abstract="false" native="false" synchronized="false"
  19159. static="false" final="false" visibility="public"
  19160. deprecated="not deprecated">
  19161. <doc>
  19162. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  19163. If the tag values match an existing row, that row is updated;
  19164. otherwise, a new row is added.]]>
  19165. </doc>
  19166. </method>
  19167. <method name="remove"
  19168. abstract="false" native="false" synchronized="false"
  19169. static="false" final="false" visibility="public"
  19170. deprecated="not deprecated">
  19171. <doc>
  19172. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  19173. that equal the tags that have been set on this record.]]>
  19174. </doc>
  19175. </method>
  19176. <doc>
  19177. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  19178. from which it was created, and delegates back to it on <code>update</code>
  19179. and <code>remove()</code>.]]>
  19180. </doc>
  19181. </class>
  19182. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  19183. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  19184. <class name="MetricValue" extends="java.lang.Object"
  19185. abstract="false"
  19186. static="false" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. <constructor name="MetricValue" type="java.lang.Number, boolean"
  19189. static="false" final="false" visibility="public"
  19190. deprecated="not deprecated">
  19191. <doc>
  19192. <![CDATA[Creates a new instance of MetricValue]]>
  19193. </doc>
  19194. </constructor>
  19195. <method name="isIncrement" return="boolean"
  19196. abstract="false" native="false" synchronized="false"
  19197. static="false" final="false" visibility="public"
  19198. deprecated="not deprecated">
  19199. </method>
  19200. <method name="isAbsolute" return="boolean"
  19201. abstract="false" native="false" synchronized="false"
  19202. static="false" final="false" visibility="public"
  19203. deprecated="not deprecated">
  19204. </method>
  19205. <method name="getNumber" return="java.lang.Number"
  19206. abstract="false" native="false" synchronized="false"
  19207. static="false" final="false" visibility="public"
  19208. deprecated="not deprecated">
  19209. </method>
  19210. <field name="ABSOLUTE" type="boolean"
  19211. transient="false" volatile="false"
  19212. static="true" final="true" visibility="public"
  19213. deprecated="not deprecated">
  19214. </field>
  19215. <field name="INCREMENT" type="boolean"
  19216. transient="false" volatile="false"
  19217. static="true" final="true" visibility="public"
  19218. deprecated="not deprecated">
  19219. </field>
  19220. <doc>
  19221. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  19222. </doc>
  19223. </class>
  19224. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  19225. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  19226. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19227. abstract="false"
  19228. static="false" final="false" visibility="public"
  19229. deprecated="not deprecated">
  19230. <constructor name="NoEmitMetricsContext"
  19231. static="false" final="false" visibility="public"
  19232. deprecated="not deprecated">
  19233. <doc>
  19234. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  19235. </doc>
  19236. </constructor>
  19237. <method name="init"
  19238. abstract="false" native="false" synchronized="false"
  19239. static="false" final="false" visibility="public"
  19240. deprecated="not deprecated">
  19241. <param name="contextName" type="java.lang.String"/>
  19242. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19243. </method>
  19244. <method name="emitRecord"
  19245. abstract="false" native="false" synchronized="false"
  19246. static="false" final="false" visibility="protected"
  19247. deprecated="not deprecated">
  19248. <param name="contextName" type="java.lang.String"/>
  19249. <param name="recordName" type="java.lang.String"/>
  19250. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19251. <doc>
  19252. <![CDATA[Do-nothing version of emitRecord]]>
  19253. </doc>
  19254. </method>
  19255. <doc>
  19256. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  19257. does save it for retrieval with getAllRecords().
  19258. This is useful if you want to support {@link MetricsServlet}, but
  19259. not emit metrics in any other way.]]>
  19260. </doc>
  19261. </class>
  19262. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  19263. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  19264. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19265. abstract="false"
  19266. static="false" final="false" visibility="public"
  19267. deprecated="not deprecated">
  19268. <constructor name="NullContext"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. <doc>
  19272. <![CDATA[Creates a new instance of NullContext]]>
  19273. </doc>
  19274. </constructor>
  19275. <method name="startMonitoring"
  19276. abstract="false" native="false" synchronized="false"
  19277. static="false" final="false" visibility="public"
  19278. deprecated="not deprecated">
  19279. <doc>
  19280. <![CDATA[Do-nothing version of startMonitoring]]>
  19281. </doc>
  19282. </method>
  19283. <method name="emitRecord"
  19284. abstract="false" native="false" synchronized="false"
  19285. static="false" final="false" visibility="protected"
  19286. deprecated="not deprecated">
  19287. <param name="contextName" type="java.lang.String"/>
  19288. <param name="recordName" type="java.lang.String"/>
  19289. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19290. <doc>
  19291. <![CDATA[Do-nothing version of emitRecord]]>
  19292. </doc>
  19293. </method>
  19294. <method name="update"
  19295. abstract="false" native="false" synchronized="false"
  19296. static="false" final="false" visibility="protected"
  19297. deprecated="not deprecated">
  19298. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  19299. <doc>
  19300. <![CDATA[Do-nothing version of update]]>
  19301. </doc>
  19302. </method>
  19303. <method name="remove"
  19304. abstract="false" native="false" synchronized="false"
  19305. static="false" final="false" visibility="protected"
  19306. deprecated="not deprecated">
  19307. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  19308. <doc>
  19309. <![CDATA[Do-nothing version of remove]]>
  19310. </doc>
  19311. </method>
  19312. <doc>
  19313. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  19314. default context, so that no performance data is emitted if no configuration
  19315. data is found.]]>
  19316. </doc>
  19317. </class>
  19318. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  19319. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  19320. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  19321. abstract="false"
  19322. static="false" final="false" visibility="public"
  19323. deprecated="not deprecated">
  19324. <constructor name="NullContextWithUpdateThread"
  19325. static="false" final="false" visibility="public"
  19326. deprecated="not deprecated">
  19327. <doc>
  19328. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  19329. </doc>
  19330. </constructor>
  19331. <method name="init"
  19332. abstract="false" native="false" synchronized="false"
  19333. static="false" final="false" visibility="public"
  19334. deprecated="not deprecated">
  19335. <param name="contextName" type="java.lang.String"/>
  19336. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  19337. </method>
  19338. <method name="emitRecord"
  19339. abstract="false" native="false" synchronized="false"
  19340. static="false" final="false" visibility="protected"
  19341. deprecated="not deprecated">
  19342. <param name="contextName" type="java.lang.String"/>
  19343. <param name="recordName" type="java.lang.String"/>
  19344. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  19345. <doc>
  19346. <![CDATA[Do-nothing version of emitRecord]]>
  19347. </doc>
  19348. </method>
  19349. <method name="update"
  19350. abstract="false" native="false" synchronized="false"
  19351. static="false" final="false" visibility="protected"
  19352. deprecated="not deprecated">
  19353. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  19354. <doc>
  19355. <![CDATA[Do-nothing version of update]]>
  19356. </doc>
  19357. </method>
  19358. <method name="remove"
  19359. abstract="false" native="false" synchronized="false"
  19360. static="false" final="false" visibility="protected"
  19361. deprecated="not deprecated">
  19362. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  19363. <doc>
  19364. <![CDATA[Do-nothing version of remove]]>
  19365. </doc>
  19366. </method>
  19367. <doc>
  19368. <![CDATA[A null context which has a thread calling
  19369. periodically when monitoring is started. This keeps the data sampled
  19370. correctly.
  19371. In all other respects, this is like the NULL context: No data is emitted.
  19372. This is suitable for Monitoring systems like JMX which reads the metrics
  19373. when someone reads the data from JMX.
  19374. The default impl of start and stop monitoring:
  19375. is the AbstractMetricsContext is good enough.]]>
  19376. </doc>
  19377. </class>
  19378. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  19379. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  19380. <class name="OutputRecord" extends="java.lang.Object"
  19381. abstract="false"
  19382. static="false" final="false" visibility="public"
  19383. deprecated="not deprecated">
  19384. <method name="getTagNames" return="java.util.Set"
  19385. abstract="false" native="false" synchronized="false"
  19386. static="false" final="false" visibility="public"
  19387. deprecated="not deprecated">
  19388. <doc>
  19389. <![CDATA[Returns the set of tag names]]>
  19390. </doc>
  19391. </method>
  19392. <method name="getTag" return="java.lang.Object"
  19393. abstract="false" native="false" synchronized="false"
  19394. static="false" final="false" visibility="public"
  19395. deprecated="not deprecated">
  19396. <param name="name" type="java.lang.String"/>
  19397. <doc>
  19398. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  19399. @return the tag value, or null if there is no such tag]]>
  19400. </doc>
  19401. </method>
  19402. <method name="getMetricNames" return="java.util.Set"
  19403. abstract="false" native="false" synchronized="false"
  19404. static="false" final="false" visibility="public"
  19405. deprecated="not deprecated">
  19406. <doc>
  19407. <![CDATA[Returns the set of metric names.]]>
  19408. </doc>
  19409. </method>
  19410. <method name="getMetric" return="java.lang.Number"
  19411. abstract="false" native="false" synchronized="false"
  19412. static="false" final="false" visibility="public"
  19413. deprecated="not deprecated">
  19414. <param name="name" type="java.lang.String"/>
  19415. <doc>
  19416. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  19417. </doc>
  19418. </method>
  19419. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  19420. abstract="false" native="false" synchronized="false"
  19421. static="false" final="false" visibility="public"
  19422. deprecated="not deprecated">
  19423. <doc>
  19424. <![CDATA[Returns a copy of this record's tags.]]>
  19425. </doc>
  19426. </method>
  19427. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  19428. abstract="false" native="false" synchronized="false"
  19429. static="false" final="false" visibility="public"
  19430. deprecated="not deprecated">
  19431. <doc>
  19432. <![CDATA[Returns a copy of this record's metrics.]]>
  19433. </doc>
  19434. </method>
  19435. <doc>
  19436. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  19437. </doc>
  19438. </class>
  19439. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  19440. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  19441. <class name="Util" extends="java.lang.Object"
  19442. abstract="false"
  19443. static="false" final="false" visibility="public"
  19444. deprecated="not deprecated">
  19445. <method name="parse" return="java.util.List"
  19446. abstract="false" native="false" synchronized="false"
  19447. static="true" final="false" visibility="public"
  19448. deprecated="not deprecated">
  19449. <param name="specs" type="java.lang.String"/>
  19450. <param name="defaultPort" type="int"/>
  19451. <doc>
  19452. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  19453. of the form <i>hostname</i> or <i>hostname:port</i>. If
  19454. the specs string is null, defaults to localhost:defaultPort.
  19455. @return a list of InetSocketAddress objects.]]>
  19456. </doc>
  19457. </method>
  19458. <doc>
  19459. <![CDATA[Static utility methods]]>
  19460. </doc>
  19461. </class>
  19462. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  19463. <doc>
  19464. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  19465. an interface allowing a variety of metrics reporting implementations to be
  19466. plugged in to the Metrics API. Examples of such implementations can be found
  19467. in the packages <code>org.apache.hadoop.metrics.file</code> and
  19468. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  19469. Plugging in an implementation involves writing a concrete subclass of
  19470. <code>AbstractMetricsContext</code>. The subclass should get its
  19471. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  19472. method.]]>
  19473. </doc>
  19474. </package>
  19475. <package name="org.apache.hadoop.net">
  19476. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  19477. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  19478. abstract="false"
  19479. static="false" final="false" visibility="public"
  19480. deprecated="not deprecated">
  19481. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  19482. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  19483. static="false" final="false" visibility="public"
  19484. deprecated="not deprecated">
  19485. </constructor>
  19486. <method name="resolve" return="java.util.List"
  19487. abstract="false" native="false" synchronized="false"
  19488. static="false" final="false" visibility="public"
  19489. deprecated="not deprecated">
  19490. <param name="names" type="java.util.List"/>
  19491. </method>
  19492. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  19493. transient="false" volatile="false"
  19494. static="false" final="false" visibility="protected"
  19495. deprecated="not deprecated">
  19496. </field>
  19497. <doc>
  19498. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  19499. raw DNSToSwitchMapping and stores the resolved network location in
  19500. a cache. The following calls to a resolved network location
  19501. will get its location from the cache.]]>
  19502. </doc>
  19503. </class>
  19504. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  19505. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  19506. <interface name="DNSToSwitchMapping" abstract="true"
  19507. static="false" final="false" visibility="public"
  19508. deprecated="not deprecated">
  19509. <method name="resolve" return="java.util.List"
  19510. abstract="false" native="false" synchronized="false"
  19511. static="false" final="false" visibility="public"
  19512. deprecated="not deprecated">
  19513. <param name="names" type="java.util.List"/>
  19514. <doc>
  19515. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  19516. switch information (network paths). One-to-one correspondence must be
  19517. maintained between the elements in the lists.
  19518. Consider an element in the argument list - x.y.com. The switch information
  19519. that is returned must be a network path of the form /foo/rack,
  19520. where / is the root, and 'foo' is the switch where 'rack' is connected.
  19521. Note the hostname/ip-address is not part of the returned path.
  19522. The network topology of the cluster would determine the number of
  19523. components in the network path.
  19524. @param names
  19525. @return list of resolved network paths]]>
  19526. </doc>
  19527. </method>
  19528. <doc>
  19529. <![CDATA[An interface that should be implemented to allow pluggable
  19530. DNS-name/IP-address to RackID resolvers.]]>
  19531. </doc>
  19532. </interface>
  19533. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  19534. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  19535. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  19536. abstract="false"
  19537. static="false" final="true" visibility="public"
  19538. deprecated="not deprecated">
  19539. <implements name="org.apache.hadoop.conf.Configurable"/>
  19540. <constructor name="ScriptBasedMapping"
  19541. static="false" final="false" visibility="public"
  19542. deprecated="not deprecated">
  19543. </constructor>
  19544. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  19545. static="false" final="false" visibility="public"
  19546. deprecated="not deprecated">
  19547. </constructor>
  19548. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19549. abstract="false" native="false" synchronized="false"
  19550. static="false" final="false" visibility="public"
  19551. deprecated="not deprecated">
  19552. </method>
  19553. <method name="setConf"
  19554. abstract="false" native="false" synchronized="false"
  19555. static="false" final="false" visibility="public"
  19556. deprecated="not deprecated">
  19557. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19558. </method>
  19559. <doc>
  19560. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  19561. script configured via net.topology.script.file.name .]]>
  19562. </doc>
  19563. </class>
  19564. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  19565. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  19566. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  19567. abstract="false"
  19568. static="false" final="false" visibility="public"
  19569. deprecated="not deprecated">
  19570. <implements name="org.apache.hadoop.conf.Configurable"/>
  19571. <constructor name="SocksSocketFactory"
  19572. static="false" final="false" visibility="public"
  19573. deprecated="not deprecated">
  19574. <doc>
  19575. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  19576. </doc>
  19577. </constructor>
  19578. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  19579. static="false" final="false" visibility="public"
  19580. deprecated="not deprecated">
  19581. <doc>
  19582. <![CDATA[Constructor with a supplied Proxy
  19583. @param proxy the proxy to use to create sockets]]>
  19584. </doc>
  19585. </constructor>
  19586. <method name="createSocket" return="java.net.Socket"
  19587. abstract="false" native="false" synchronized="false"
  19588. static="false" final="false" visibility="public"
  19589. deprecated="not deprecated">
  19590. <exception name="IOException" type="java.io.IOException"/>
  19591. </method>
  19592. <method name="createSocket" return="java.net.Socket"
  19593. abstract="false" native="false" synchronized="false"
  19594. static="false" final="false" visibility="public"
  19595. deprecated="not deprecated">
  19596. <param name="addr" type="java.net.InetAddress"/>
  19597. <param name="port" type="int"/>
  19598. <exception name="IOException" type="java.io.IOException"/>
  19599. </method>
  19600. <method name="createSocket" return="java.net.Socket"
  19601. abstract="false" native="false" synchronized="false"
  19602. static="false" final="false" visibility="public"
  19603. deprecated="not deprecated">
  19604. <param name="addr" type="java.net.InetAddress"/>
  19605. <param name="port" type="int"/>
  19606. <param name="localHostAddr" type="java.net.InetAddress"/>
  19607. <param name="localPort" type="int"/>
  19608. <exception name="IOException" type="java.io.IOException"/>
  19609. </method>
  19610. <method name="createSocket" return="java.net.Socket"
  19611. abstract="false" native="false" synchronized="false"
  19612. static="false" final="false" visibility="public"
  19613. deprecated="not deprecated">
  19614. <param name="host" type="java.lang.String"/>
  19615. <param name="port" type="int"/>
  19616. <exception name="IOException" type="java.io.IOException"/>
  19617. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  19618. </method>
  19619. <method name="createSocket" return="java.net.Socket"
  19620. abstract="false" native="false" synchronized="false"
  19621. static="false" final="false" visibility="public"
  19622. deprecated="not deprecated">
  19623. <param name="host" type="java.lang.String"/>
  19624. <param name="port" type="int"/>
  19625. <param name="localHostAddr" type="java.net.InetAddress"/>
  19626. <param name="localPort" type="int"/>
  19627. <exception name="IOException" type="java.io.IOException"/>
  19628. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  19629. </method>
  19630. <method name="hashCode" return="int"
  19631. abstract="false" native="false" synchronized="false"
  19632. static="false" final="false" visibility="public"
  19633. deprecated="not deprecated">
  19634. </method>
  19635. <method name="equals" return="boolean"
  19636. abstract="false" native="false" synchronized="false"
  19637. static="false" final="false" visibility="public"
  19638. deprecated="not deprecated">
  19639. <param name="obj" type="java.lang.Object"/>
  19640. </method>
  19641. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  19642. abstract="false" native="false" synchronized="false"
  19643. static="false" final="false" visibility="public"
  19644. deprecated="not deprecated">
  19645. </method>
  19646. <method name="setConf"
  19647. abstract="false" native="false" synchronized="false"
  19648. static="false" final="false" visibility="public"
  19649. deprecated="not deprecated">
  19650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19651. </method>
  19652. <doc>
  19653. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  19654. </doc>
  19655. </class>
  19656. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  19657. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  19658. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  19659. abstract="false"
  19660. static="false" final="false" visibility="public"
  19661. deprecated="not deprecated">
  19662. <constructor name="StandardSocketFactory"
  19663. static="false" final="false" visibility="public"
  19664. deprecated="not deprecated">
  19665. <doc>
  19666. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  19667. </doc>
  19668. </constructor>
  19669. <method name="createSocket" return="java.net.Socket"
  19670. abstract="false" native="false" synchronized="false"
  19671. static="false" final="false" visibility="public"
  19672. deprecated="not deprecated">
  19673. <exception name="IOException" type="java.io.IOException"/>
  19674. </method>
  19675. <method name="createSocket" return="java.net.Socket"
  19676. abstract="false" native="false" synchronized="false"
  19677. static="false" final="false" visibility="public"
  19678. deprecated="not deprecated">
  19679. <param name="addr" type="java.net.InetAddress"/>
  19680. <param name="port" type="int"/>
  19681. <exception name="IOException" type="java.io.IOException"/>
  19682. </method>
  19683. <method name="createSocket" return="java.net.Socket"
  19684. abstract="false" native="false" synchronized="false"
  19685. static="false" final="false" visibility="public"
  19686. deprecated="not deprecated">
  19687. <param name="addr" type="java.net.InetAddress"/>
  19688. <param name="port" type="int"/>
  19689. <param name="localHostAddr" type="java.net.InetAddress"/>
  19690. <param name="localPort" type="int"/>
  19691. <exception name="IOException" type="java.io.IOException"/>
  19692. </method>
  19693. <method name="createSocket" return="java.net.Socket"
  19694. abstract="false" native="false" synchronized="false"
  19695. static="false" final="false" visibility="public"
  19696. deprecated="not deprecated">
  19697. <param name="host" type="java.lang.String"/>
  19698. <param name="port" type="int"/>
  19699. <exception name="IOException" type="java.io.IOException"/>
  19700. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  19701. </method>
  19702. <method name="createSocket" return="java.net.Socket"
  19703. abstract="false" native="false" synchronized="false"
  19704. static="false" final="false" visibility="public"
  19705. deprecated="not deprecated">
  19706. <param name="host" type="java.lang.String"/>
  19707. <param name="port" type="int"/>
  19708. <param name="localHostAddr" type="java.net.InetAddress"/>
  19709. <param name="localPort" type="int"/>
  19710. <exception name="IOException" type="java.io.IOException"/>
  19711. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  19712. </method>
  19713. <method name="equals" return="boolean"
  19714. abstract="false" native="false" synchronized="false"
  19715. static="false" final="false" visibility="public"
  19716. deprecated="not deprecated">
  19717. <param name="obj" type="java.lang.Object"/>
  19718. </method>
  19719. <method name="hashCode" return="int"
  19720. abstract="false" native="false" synchronized="false"
  19721. static="false" final="false" visibility="public"
  19722. deprecated="not deprecated">
  19723. </method>
  19724. <doc>
  19725. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  19726. </doc>
  19727. </class>
  19728. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  19729. <doc>
  19730. <![CDATA[Network-related classes.]]>
  19731. </doc>
  19732. </package>
  19733. <package name="org.apache.hadoop.record">
  19734. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  19735. <class name="BinaryRecordInput" extends="java.lang.Object"
  19736. abstract="false"
  19737. static="false" final="false" visibility="public"
  19738. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  19739. <implements name="org.apache.hadoop.record.RecordInput"/>
  19740. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  19741. static="false" final="false" visibility="public"
  19742. deprecated="not deprecated">
  19743. <doc>
  19744. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  19745. </doc>
  19746. </constructor>
  19747. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  19748. static="false" final="false" visibility="public"
  19749. deprecated="not deprecated">
  19750. <doc>
  19751. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  19752. </doc>
  19753. </constructor>
  19754. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  19755. abstract="false" native="false" synchronized="false"
  19756. static="true" final="false" visibility="public"
  19757. deprecated="not deprecated">
  19758. <param name="inp" type="java.io.DataInput"/>
  19759. <doc>
  19760. <![CDATA[Get a thread-local record input for the supplied DataInput.
  19761. @param inp data input stream
  19762. @return binary record input corresponding to the supplied DataInput.]]>
  19763. </doc>
  19764. </method>
  19765. <method name="readByte" return="byte"
  19766. abstract="false" native="false" synchronized="false"
  19767. static="false" final="false" visibility="public"
  19768. deprecated="not deprecated">
  19769. <param name="tag" type="java.lang.String"/>
  19770. <exception name="IOException" type="java.io.IOException"/>
  19771. </method>
  19772. <method name="readBool" return="boolean"
  19773. abstract="false" native="false" synchronized="false"
  19774. static="false" final="false" visibility="public"
  19775. deprecated="not deprecated">
  19776. <param name="tag" type="java.lang.String"/>
  19777. <exception name="IOException" type="java.io.IOException"/>
  19778. </method>
  19779. <method name="readInt" return="int"
  19780. abstract="false" native="false" synchronized="false"
  19781. static="false" final="false" visibility="public"
  19782. deprecated="not deprecated">
  19783. <param name="tag" type="java.lang.String"/>
  19784. <exception name="IOException" type="java.io.IOException"/>
  19785. </method>
  19786. <method name="readLong" return="long"
  19787. abstract="false" native="false" synchronized="false"
  19788. static="false" final="false" visibility="public"
  19789. deprecated="not deprecated">
  19790. <param name="tag" type="java.lang.String"/>
  19791. <exception name="IOException" type="java.io.IOException"/>
  19792. </method>
  19793. <method name="readFloat" return="float"
  19794. abstract="false" native="false" synchronized="false"
  19795. static="false" final="false" visibility="public"
  19796. deprecated="not deprecated">
  19797. <param name="tag" type="java.lang.String"/>
  19798. <exception name="IOException" type="java.io.IOException"/>
  19799. </method>
  19800. <method name="readDouble" return="double"
  19801. abstract="false" native="false" synchronized="false"
  19802. static="false" final="false" visibility="public"
  19803. deprecated="not deprecated">
  19804. <param name="tag" type="java.lang.String"/>
  19805. <exception name="IOException" type="java.io.IOException"/>
  19806. </method>
  19807. <method name="readString" return="java.lang.String"
  19808. abstract="false" native="false" synchronized="false"
  19809. static="false" final="false" visibility="public"
  19810. deprecated="not deprecated">
  19811. <param name="tag" type="java.lang.String"/>
  19812. <exception name="IOException" type="java.io.IOException"/>
  19813. </method>
  19814. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  19815. abstract="false" native="false" synchronized="false"
  19816. static="false" final="false" visibility="public"
  19817. deprecated="not deprecated">
  19818. <param name="tag" type="java.lang.String"/>
  19819. <exception name="IOException" type="java.io.IOException"/>
  19820. </method>
  19821. <method name="startRecord"
  19822. abstract="false" native="false" synchronized="false"
  19823. static="false" final="false" visibility="public"
  19824. deprecated="not deprecated">
  19825. <param name="tag" type="java.lang.String"/>
  19826. <exception name="IOException" type="java.io.IOException"/>
  19827. </method>
  19828. <method name="endRecord"
  19829. abstract="false" native="false" synchronized="false"
  19830. static="false" final="false" visibility="public"
  19831. deprecated="not deprecated">
  19832. <param name="tag" type="java.lang.String"/>
  19833. <exception name="IOException" type="java.io.IOException"/>
  19834. </method>
  19835. <method name="startVector" return="org.apache.hadoop.record.Index"
  19836. abstract="false" native="false" synchronized="false"
  19837. static="false" final="false" visibility="public"
  19838. deprecated="not deprecated">
  19839. <param name="tag" type="java.lang.String"/>
  19840. <exception name="IOException" type="java.io.IOException"/>
  19841. </method>
  19842. <method name="endVector"
  19843. abstract="false" native="false" synchronized="false"
  19844. static="false" final="false" visibility="public"
  19845. deprecated="not deprecated">
  19846. <param name="tag" type="java.lang.String"/>
  19847. <exception name="IOException" type="java.io.IOException"/>
  19848. </method>
  19849. <method name="startMap" return="org.apache.hadoop.record.Index"
  19850. abstract="false" native="false" synchronized="false"
  19851. static="false" final="false" visibility="public"
  19852. deprecated="not deprecated">
  19853. <param name="tag" type="java.lang.String"/>
  19854. <exception name="IOException" type="java.io.IOException"/>
  19855. </method>
  19856. <method name="endMap"
  19857. abstract="false" native="false" synchronized="false"
  19858. static="false" final="false" visibility="public"
  19859. deprecated="not deprecated">
  19860. <param name="tag" type="java.lang.String"/>
  19861. <exception name="IOException" type="java.io.IOException"/>
  19862. </method>
  19863. <doc>
  19864. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  19865. </doc>
  19866. </class>
  19867. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  19868. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  19869. <class name="BinaryRecordOutput" extends="java.lang.Object"
  19870. abstract="false"
  19871. static="false" final="false" visibility="public"
  19872. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  19873. <implements name="org.apache.hadoop.record.RecordOutput"/>
  19874. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  19875. static="false" final="false" visibility="public"
  19876. deprecated="not deprecated">
  19877. <doc>
  19878. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  19879. </doc>
  19880. </constructor>
  19881. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  19882. static="false" final="false" visibility="public"
  19883. deprecated="not deprecated">
  19884. <doc>
  19885. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  19886. </doc>
  19887. </constructor>
  19888. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  19889. abstract="false" native="false" synchronized="false"
  19890. static="true" final="false" visibility="public"
  19891. deprecated="not deprecated">
  19892. <param name="out" type="java.io.DataOutput"/>
  19893. <doc>
  19894. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  19895. @param out data output stream
  19896. @return binary record output corresponding to the supplied DataOutput.]]>
  19897. </doc>
  19898. </method>
  19899. <method name="writeByte"
  19900. abstract="false" native="false" synchronized="false"
  19901. static="false" final="false" visibility="public"
  19902. deprecated="not deprecated">
  19903. <param name="b" type="byte"/>
  19904. <param name="tag" type="java.lang.String"/>
  19905. <exception name="IOException" type="java.io.IOException"/>
  19906. </method>
  19907. <method name="writeBool"
  19908. abstract="false" native="false" synchronized="false"
  19909. static="false" final="false" visibility="public"
  19910. deprecated="not deprecated">
  19911. <param name="b" type="boolean"/>
  19912. <param name="tag" type="java.lang.String"/>
  19913. <exception name="IOException" type="java.io.IOException"/>
  19914. </method>
  19915. <method name="writeInt"
  19916. abstract="false" native="false" synchronized="false"
  19917. static="false" final="false" visibility="public"
  19918. deprecated="not deprecated">
  19919. <param name="i" type="int"/>
  19920. <param name="tag" type="java.lang.String"/>
  19921. <exception name="IOException" type="java.io.IOException"/>
  19922. </method>
  19923. <method name="writeLong"
  19924. abstract="false" native="false" synchronized="false"
  19925. static="false" final="false" visibility="public"
  19926. deprecated="not deprecated">
  19927. <param name="l" type="long"/>
  19928. <param name="tag" type="java.lang.String"/>
  19929. <exception name="IOException" type="java.io.IOException"/>
  19930. </method>
  19931. <method name="writeFloat"
  19932. abstract="false" native="false" synchronized="false"
  19933. static="false" final="false" visibility="public"
  19934. deprecated="not deprecated">
  19935. <param name="f" type="float"/>
  19936. <param name="tag" type="java.lang.String"/>
  19937. <exception name="IOException" type="java.io.IOException"/>
  19938. </method>
  19939. <method name="writeDouble"
  19940. abstract="false" native="false" synchronized="false"
  19941. static="false" final="false" visibility="public"
  19942. deprecated="not deprecated">
  19943. <param name="d" type="double"/>
  19944. <param name="tag" type="java.lang.String"/>
  19945. <exception name="IOException" type="java.io.IOException"/>
  19946. </method>
  19947. <method name="writeString"
  19948. abstract="false" native="false" synchronized="false"
  19949. static="false" final="false" visibility="public"
  19950. deprecated="not deprecated">
  19951. <param name="s" type="java.lang.String"/>
  19952. <param name="tag" type="java.lang.String"/>
  19953. <exception name="IOException" type="java.io.IOException"/>
  19954. </method>
  19955. <method name="writeBuffer"
  19956. abstract="false" native="false" synchronized="false"
  19957. static="false" final="false" visibility="public"
  19958. deprecated="not deprecated">
  19959. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  19960. <param name="tag" type="java.lang.String"/>
  19961. <exception name="IOException" type="java.io.IOException"/>
  19962. </method>
  19963. <method name="startRecord"
  19964. abstract="false" native="false" synchronized="false"
  19965. static="false" final="false" visibility="public"
  19966. deprecated="not deprecated">
  19967. <param name="r" type="org.apache.hadoop.record.Record"/>
  19968. <param name="tag" type="java.lang.String"/>
  19969. <exception name="IOException" type="java.io.IOException"/>
  19970. </method>
  19971. <method name="endRecord"
  19972. abstract="false" native="false" synchronized="false"
  19973. static="false" final="false" visibility="public"
  19974. deprecated="not deprecated">
  19975. <param name="r" type="org.apache.hadoop.record.Record"/>
  19976. <param name="tag" type="java.lang.String"/>
  19977. <exception name="IOException" type="java.io.IOException"/>
  19978. </method>
  19979. <method name="startVector"
  19980. abstract="false" native="false" synchronized="false"
  19981. static="false" final="false" visibility="public"
  19982. deprecated="not deprecated">
  19983. <param name="v" type="java.util.ArrayList"/>
  19984. <param name="tag" type="java.lang.String"/>
  19985. <exception name="IOException" type="java.io.IOException"/>
  19986. </method>
  19987. <method name="endVector"
  19988. abstract="false" native="false" synchronized="false"
  19989. static="false" final="false" visibility="public"
  19990. deprecated="not deprecated">
  19991. <param name="v" type="java.util.ArrayList"/>
  19992. <param name="tag" type="java.lang.String"/>
  19993. <exception name="IOException" type="java.io.IOException"/>
  19994. </method>
  19995. <method name="startMap"
  19996. abstract="false" native="false" synchronized="false"
  19997. static="false" final="false" visibility="public"
  19998. deprecated="not deprecated">
  19999. <param name="v" type="java.util.TreeMap"/>
  20000. <param name="tag" type="java.lang.String"/>
  20001. <exception name="IOException" type="java.io.IOException"/>
  20002. </method>
  20003. <method name="endMap"
  20004. abstract="false" native="false" synchronized="false"
  20005. static="false" final="false" visibility="public"
  20006. deprecated="not deprecated">
  20007. <param name="v" type="java.util.TreeMap"/>
  20008. <param name="tag" type="java.lang.String"/>
  20009. <exception name="IOException" type="java.io.IOException"/>
  20010. </method>
  20011. <doc>
  20012. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20013. </doc>
  20014. </class>
  20015. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  20016. <!-- start class org.apache.hadoop.record.Buffer -->
  20017. <class name="Buffer" extends="java.lang.Object"
  20018. abstract="false"
  20019. static="false" final="false" visibility="public"
  20020. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20021. <implements name="java.lang.Comparable"/>
  20022. <implements name="java.lang.Cloneable"/>
  20023. <constructor name="Buffer"
  20024. static="false" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <doc>
  20027. <![CDATA[Create a zero-count sequence.]]>
  20028. </doc>
  20029. </constructor>
  20030. <constructor name="Buffer" type="byte[]"
  20031. static="false" final="false" visibility="public"
  20032. deprecated="not deprecated">
  20033. <doc>
  20034. <![CDATA[Create a Buffer using the byte array as the initial value.
  20035. @param bytes This array becomes the backing storage for the object.]]>
  20036. </doc>
  20037. </constructor>
  20038. <constructor name="Buffer" type="byte[], int, int"
  20039. static="false" final="false" visibility="public"
  20040. deprecated="not deprecated">
  20041. <doc>
  20042. <![CDATA[Create a Buffer using the byte range as the initial value.
  20043. @param bytes Copy of this array becomes the backing storage for the object.
  20044. @param offset offset into byte array
  20045. @param length length of data]]>
  20046. </doc>
  20047. </constructor>
  20048. <method name="set"
  20049. abstract="false" native="false" synchronized="false"
  20050. static="false" final="false" visibility="public"
  20051. deprecated="not deprecated">
  20052. <param name="bytes" type="byte[]"/>
  20053. <doc>
  20054. <![CDATA[Use the specified bytes array as underlying sequence.
  20055. @param bytes byte sequence]]>
  20056. </doc>
  20057. </method>
  20058. <method name="copy"
  20059. abstract="false" native="false" synchronized="false"
  20060. static="false" final="true" visibility="public"
  20061. deprecated="not deprecated">
  20062. <param name="bytes" type="byte[]"/>
  20063. <param name="offset" type="int"/>
  20064. <param name="length" type="int"/>
  20065. <doc>
  20066. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  20067. @param bytes byte array to be assigned
  20068. @param offset offset into byte array
  20069. @param length length of data]]>
  20070. </doc>
  20071. </method>
  20072. <method name="get" return="byte[]"
  20073. abstract="false" native="false" synchronized="false"
  20074. static="false" final="false" visibility="public"
  20075. deprecated="not deprecated">
  20076. <doc>
  20077. <![CDATA[Get the data from the Buffer.
  20078. @return The data is only valid between 0 and getCount() - 1.]]>
  20079. </doc>
  20080. </method>
  20081. <method name="getCount" return="int"
  20082. abstract="false" native="false" synchronized="false"
  20083. static="false" final="false" visibility="public"
  20084. deprecated="not deprecated">
  20085. <doc>
  20086. <![CDATA[Get the current count of the buffer.]]>
  20087. </doc>
  20088. </method>
  20089. <method name="getCapacity" return="int"
  20090. abstract="false" native="false" synchronized="false"
  20091. static="false" final="false" visibility="public"
  20092. deprecated="not deprecated">
  20093. <doc>
  20094. <![CDATA[Get the capacity, which is the maximum count that could handled without
  20095. resizing the backing storage.
  20096. @return The number of bytes]]>
  20097. </doc>
  20098. </method>
  20099. <method name="setCapacity"
  20100. abstract="false" native="false" synchronized="false"
  20101. static="false" final="false" visibility="public"
  20102. deprecated="not deprecated">
  20103. <param name="newCapacity" type="int"/>
  20104. <doc>
  20105. <![CDATA[Change the capacity of the backing storage.
  20106. The data is preserved if newCapacity >= getCount().
  20107. @param newCapacity The new capacity in bytes.]]>
  20108. </doc>
  20109. </method>
  20110. <method name="reset"
  20111. abstract="false" native="false" synchronized="false"
  20112. static="false" final="false" visibility="public"
  20113. deprecated="not deprecated">
  20114. <doc>
  20115. <![CDATA[Reset the buffer to 0 size]]>
  20116. </doc>
  20117. </method>
  20118. <method name="truncate"
  20119. abstract="false" native="false" synchronized="false"
  20120. static="false" final="false" visibility="public"
  20121. deprecated="not deprecated">
  20122. <doc>
  20123. <![CDATA[Change the capacity of the backing store to be the same as the current
  20124. count of buffer.]]>
  20125. </doc>
  20126. </method>
  20127. <method name="append"
  20128. abstract="false" native="false" synchronized="false"
  20129. static="false" final="false" visibility="public"
  20130. deprecated="not deprecated">
  20131. <param name="bytes" type="byte[]"/>
  20132. <param name="offset" type="int"/>
  20133. <param name="length" type="int"/>
  20134. <doc>
  20135. <![CDATA[Append specified bytes to the buffer.
  20136. @param bytes byte array to be appended
  20137. @param offset offset into byte array
  20138. @param length length of data]]>
  20139. </doc>
  20140. </method>
  20141. <method name="append"
  20142. abstract="false" native="false" synchronized="false"
  20143. static="false" final="false" visibility="public"
  20144. deprecated="not deprecated">
  20145. <param name="bytes" type="byte[]"/>
  20146. <doc>
  20147. <![CDATA[Append specified bytes to the buffer
  20148. @param bytes byte array to be appended]]>
  20149. </doc>
  20150. </method>
  20151. <method name="hashCode" return="int"
  20152. abstract="false" native="false" synchronized="false"
  20153. static="false" final="false" visibility="public"
  20154. deprecated="not deprecated">
  20155. </method>
  20156. <method name="compareTo" return="int"
  20157. abstract="false" native="false" synchronized="false"
  20158. static="false" final="false" visibility="public"
  20159. deprecated="not deprecated">
  20160. <param name="other" type="java.lang.Object"/>
  20161. <doc>
  20162. <![CDATA[Define the sort order of the Buffer.
  20163. @param other The other buffer
  20164. @return Positive if this is bigger than other, 0 if they are equal, and
  20165. negative if this is smaller than other.]]>
  20166. </doc>
  20167. </method>
  20168. <method name="equals" return="boolean"
  20169. abstract="false" native="false" synchronized="false"
  20170. static="false" final="false" visibility="public"
  20171. deprecated="not deprecated">
  20172. <param name="other" type="java.lang.Object"/>
  20173. </method>
  20174. <method name="toString" return="java.lang.String"
  20175. abstract="false" native="false" synchronized="false"
  20176. static="false" final="false" visibility="public"
  20177. deprecated="not deprecated">
  20178. </method>
  20179. <method name="toString" return="java.lang.String"
  20180. abstract="false" native="false" synchronized="false"
  20181. static="false" final="false" visibility="public"
  20182. deprecated="not deprecated">
  20183. <param name="charsetName" type="java.lang.String"/>
  20184. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  20185. <doc>
  20186. <![CDATA[Convert the byte buffer to a string an specific character encoding
  20187. @param charsetName Valid Java Character Set Name]]>
  20188. </doc>
  20189. </method>
  20190. <method name="clone" return="java.lang.Object"
  20191. abstract="false" native="false" synchronized="false"
  20192. static="false" final="false" visibility="public"
  20193. deprecated="not deprecated">
  20194. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  20195. </method>
  20196. <doc>
  20197. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  20198. It is resizable and distinguishes between the count of the seqeunce and
  20199. the current capacity.
  20200. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20201. </doc>
  20202. </class>
  20203. <!-- end class org.apache.hadoop.record.Buffer -->
  20204. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  20205. <class name="CsvRecordInput" extends="java.lang.Object"
  20206. abstract="false"
  20207. static="false" final="false" visibility="public"
  20208. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20209. <implements name="org.apache.hadoop.record.RecordInput"/>
  20210. <constructor name="CsvRecordInput" type="java.io.InputStream"
  20211. static="false" final="false" visibility="public"
  20212. deprecated="not deprecated">
  20213. <doc>
  20214. <![CDATA[Creates a new instance of CsvRecordInput]]>
  20215. </doc>
  20216. </constructor>
  20217. <method name="readByte" return="byte"
  20218. abstract="false" native="false" synchronized="false"
  20219. static="false" final="false" visibility="public"
  20220. deprecated="not deprecated">
  20221. <param name="tag" type="java.lang.String"/>
  20222. <exception name="IOException" type="java.io.IOException"/>
  20223. </method>
  20224. <method name="readBool" return="boolean"
  20225. abstract="false" native="false" synchronized="false"
  20226. static="false" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. <param name="tag" type="java.lang.String"/>
  20229. <exception name="IOException" type="java.io.IOException"/>
  20230. </method>
  20231. <method name="readInt" return="int"
  20232. abstract="false" native="false" synchronized="false"
  20233. static="false" final="false" visibility="public"
  20234. deprecated="not deprecated">
  20235. <param name="tag" type="java.lang.String"/>
  20236. <exception name="IOException" type="java.io.IOException"/>
  20237. </method>
  20238. <method name="readLong" return="long"
  20239. abstract="false" native="false" synchronized="false"
  20240. static="false" final="false" visibility="public"
  20241. deprecated="not deprecated">
  20242. <param name="tag" type="java.lang.String"/>
  20243. <exception name="IOException" type="java.io.IOException"/>
  20244. </method>
  20245. <method name="readFloat" return="float"
  20246. abstract="false" native="false" synchronized="false"
  20247. static="false" final="false" visibility="public"
  20248. deprecated="not deprecated">
  20249. <param name="tag" type="java.lang.String"/>
  20250. <exception name="IOException" type="java.io.IOException"/>
  20251. </method>
  20252. <method name="readDouble" return="double"
  20253. abstract="false" native="false" synchronized="false"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <param name="tag" type="java.lang.String"/>
  20257. <exception name="IOException" type="java.io.IOException"/>
  20258. </method>
  20259. <method name="readString" return="java.lang.String"
  20260. abstract="false" native="false" synchronized="false"
  20261. static="false" final="false" visibility="public"
  20262. deprecated="not deprecated">
  20263. <param name="tag" type="java.lang.String"/>
  20264. <exception name="IOException" type="java.io.IOException"/>
  20265. </method>
  20266. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  20267. abstract="false" native="false" synchronized="false"
  20268. static="false" final="false" visibility="public"
  20269. deprecated="not deprecated">
  20270. <param name="tag" type="java.lang.String"/>
  20271. <exception name="IOException" type="java.io.IOException"/>
  20272. </method>
  20273. <method name="startRecord"
  20274. abstract="false" native="false" synchronized="false"
  20275. static="false" final="false" visibility="public"
  20276. deprecated="not deprecated">
  20277. <param name="tag" type="java.lang.String"/>
  20278. <exception name="IOException" type="java.io.IOException"/>
  20279. </method>
  20280. <method name="endRecord"
  20281. abstract="false" native="false" synchronized="false"
  20282. static="false" final="false" visibility="public"
  20283. deprecated="not deprecated">
  20284. <param name="tag" type="java.lang.String"/>
  20285. <exception name="IOException" type="java.io.IOException"/>
  20286. </method>
  20287. <method name="startVector" return="org.apache.hadoop.record.Index"
  20288. abstract="false" native="false" synchronized="false"
  20289. static="false" final="false" visibility="public"
  20290. deprecated="not deprecated">
  20291. <param name="tag" type="java.lang.String"/>
  20292. <exception name="IOException" type="java.io.IOException"/>
  20293. </method>
  20294. <method name="endVector"
  20295. abstract="false" native="false" synchronized="false"
  20296. static="false" final="false" visibility="public"
  20297. deprecated="not deprecated">
  20298. <param name="tag" type="java.lang.String"/>
  20299. <exception name="IOException" type="java.io.IOException"/>
  20300. </method>
  20301. <method name="startMap" return="org.apache.hadoop.record.Index"
  20302. abstract="false" native="false" synchronized="false"
  20303. static="false" final="false" visibility="public"
  20304. deprecated="not deprecated">
  20305. <param name="tag" type="java.lang.String"/>
  20306. <exception name="IOException" type="java.io.IOException"/>
  20307. </method>
  20308. <method name="endMap"
  20309. abstract="false" native="false" synchronized="false"
  20310. static="false" final="false" visibility="public"
  20311. deprecated="not deprecated">
  20312. <param name="tag" type="java.lang.String"/>
  20313. <exception name="IOException" type="java.io.IOException"/>
  20314. </method>
  20315. <doc>
  20316. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20317. </doc>
  20318. </class>
  20319. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  20320. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  20321. <class name="CsvRecordOutput" extends="java.lang.Object"
  20322. abstract="false"
  20323. static="false" final="false" visibility="public"
  20324. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20325. <implements name="org.apache.hadoop.record.RecordOutput"/>
  20326. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  20327. static="false" final="false" visibility="public"
  20328. deprecated="not deprecated">
  20329. <doc>
  20330. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  20331. </doc>
  20332. </constructor>
  20333. <method name="writeByte"
  20334. abstract="false" native="false" synchronized="false"
  20335. static="false" final="false" visibility="public"
  20336. deprecated="not deprecated">
  20337. <param name="b" type="byte"/>
  20338. <param name="tag" type="java.lang.String"/>
  20339. <exception name="IOException" type="java.io.IOException"/>
  20340. </method>
  20341. <method name="writeBool"
  20342. abstract="false" native="false" synchronized="false"
  20343. static="false" final="false" visibility="public"
  20344. deprecated="not deprecated">
  20345. <param name="b" type="boolean"/>
  20346. <param name="tag" type="java.lang.String"/>
  20347. <exception name="IOException" type="java.io.IOException"/>
  20348. </method>
  20349. <method name="writeInt"
  20350. abstract="false" native="false" synchronized="false"
  20351. static="false" final="false" visibility="public"
  20352. deprecated="not deprecated">
  20353. <param name="i" type="int"/>
  20354. <param name="tag" type="java.lang.String"/>
  20355. <exception name="IOException" type="java.io.IOException"/>
  20356. </method>
  20357. <method name="writeLong"
  20358. abstract="false" native="false" synchronized="false"
  20359. static="false" final="false" visibility="public"
  20360. deprecated="not deprecated">
  20361. <param name="l" type="long"/>
  20362. <param name="tag" type="java.lang.String"/>
  20363. <exception name="IOException" type="java.io.IOException"/>
  20364. </method>
  20365. <method name="writeFloat"
  20366. abstract="false" native="false" synchronized="false"
  20367. static="false" final="false" visibility="public"
  20368. deprecated="not deprecated">
  20369. <param name="f" type="float"/>
  20370. <param name="tag" type="java.lang.String"/>
  20371. <exception name="IOException" type="java.io.IOException"/>
  20372. </method>
  20373. <method name="writeDouble"
  20374. abstract="false" native="false" synchronized="false"
  20375. static="false" final="false" visibility="public"
  20376. deprecated="not deprecated">
  20377. <param name="d" type="double"/>
  20378. <param name="tag" type="java.lang.String"/>
  20379. <exception name="IOException" type="java.io.IOException"/>
  20380. </method>
  20381. <method name="writeString"
  20382. abstract="false" native="false" synchronized="false"
  20383. static="false" final="false" visibility="public"
  20384. deprecated="not deprecated">
  20385. <param name="s" type="java.lang.String"/>
  20386. <param name="tag" type="java.lang.String"/>
  20387. <exception name="IOException" type="java.io.IOException"/>
  20388. </method>
  20389. <method name="writeBuffer"
  20390. abstract="false" native="false" synchronized="false"
  20391. static="false" final="false" visibility="public"
  20392. deprecated="not deprecated">
  20393. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  20394. <param name="tag" type="java.lang.String"/>
  20395. <exception name="IOException" type="java.io.IOException"/>
  20396. </method>
  20397. <method name="startRecord"
  20398. abstract="false" native="false" synchronized="false"
  20399. static="false" final="false" visibility="public"
  20400. deprecated="not deprecated">
  20401. <param name="r" type="org.apache.hadoop.record.Record"/>
  20402. <param name="tag" type="java.lang.String"/>
  20403. <exception name="IOException" type="java.io.IOException"/>
  20404. </method>
  20405. <method name="endRecord"
  20406. abstract="false" native="false" synchronized="false"
  20407. static="false" final="false" visibility="public"
  20408. deprecated="not deprecated">
  20409. <param name="r" type="org.apache.hadoop.record.Record"/>
  20410. <param name="tag" type="java.lang.String"/>
  20411. <exception name="IOException" type="java.io.IOException"/>
  20412. </method>
  20413. <method name="startVector"
  20414. abstract="false" native="false" synchronized="false"
  20415. static="false" final="false" visibility="public"
  20416. deprecated="not deprecated">
  20417. <param name="v" type="java.util.ArrayList"/>
  20418. <param name="tag" type="java.lang.String"/>
  20419. <exception name="IOException" type="java.io.IOException"/>
  20420. </method>
  20421. <method name="endVector"
  20422. abstract="false" native="false" synchronized="false"
  20423. static="false" final="false" visibility="public"
  20424. deprecated="not deprecated">
  20425. <param name="v" type="java.util.ArrayList"/>
  20426. <param name="tag" type="java.lang.String"/>
  20427. <exception name="IOException" type="java.io.IOException"/>
  20428. </method>
  20429. <method name="startMap"
  20430. abstract="false" native="false" synchronized="false"
  20431. static="false" final="false" visibility="public"
  20432. deprecated="not deprecated">
  20433. <param name="v" type="java.util.TreeMap"/>
  20434. <param name="tag" type="java.lang.String"/>
  20435. <exception name="IOException" type="java.io.IOException"/>
  20436. </method>
  20437. <method name="endMap"
  20438. abstract="false" native="false" synchronized="false"
  20439. static="false" final="false" visibility="public"
  20440. deprecated="not deprecated">
  20441. <param name="v" type="java.util.TreeMap"/>
  20442. <param name="tag" type="java.lang.String"/>
  20443. <exception name="IOException" type="java.io.IOException"/>
  20444. </method>
  20445. <doc>
  20446. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20447. </doc>
  20448. </class>
  20449. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  20450. <!-- start interface org.apache.hadoop.record.Index -->
  20451. <interface name="Index" abstract="true"
  20452. static="false" final="false" visibility="public"
  20453. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20454. <method name="done" return="boolean"
  20455. abstract="false" native="false" synchronized="false"
  20456. static="false" final="false" visibility="public"
  20457. deprecated="not deprecated">
  20458. </method>
  20459. <method name="incr"
  20460. abstract="false" native="false" synchronized="false"
  20461. static="false" final="false" visibility="public"
  20462. deprecated="not deprecated">
  20463. </method>
  20464. <doc>
  20465. <![CDATA[Interface that acts as an iterator for deserializing maps.
  20466. The deserializer returns an instance that the record uses to
  20467. read vectors and maps. An example of usage is as follows:
  20468. <code>
  20469. Index idx = startVector(...);
  20470. while (!idx.done()) {
  20471. .... // read element of a vector
  20472. idx.incr();
  20473. }
  20474. </code>
  20475. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20476. </doc>
  20477. </interface>
  20478. <!-- end interface org.apache.hadoop.record.Index -->
  20479. <!-- start class org.apache.hadoop.record.Record -->
  20480. <class name="Record" extends="java.lang.Object"
  20481. abstract="true"
  20482. static="false" final="false" visibility="public"
  20483. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20484. <implements name="org.apache.hadoop.io.WritableComparable"/>
  20485. <implements name="java.lang.Cloneable"/>
  20486. <constructor name="Record"
  20487. static="false" final="false" visibility="public"
  20488. deprecated="not deprecated">
  20489. </constructor>
  20490. <method name="serialize"
  20491. abstract="true" native="false" synchronized="false"
  20492. static="false" final="false" visibility="public"
  20493. deprecated="not deprecated">
  20494. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  20495. <param name="tag" type="java.lang.String"/>
  20496. <exception name="IOException" type="java.io.IOException"/>
  20497. <doc>
  20498. <![CDATA[Serialize a record with tag (ususally field name)
  20499. @param rout Record output destination
  20500. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  20501. </doc>
  20502. </method>
  20503. <method name="deserialize"
  20504. abstract="true" native="false" synchronized="false"
  20505. static="false" final="false" visibility="public"
  20506. deprecated="not deprecated">
  20507. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  20508. <param name="tag" type="java.lang.String"/>
  20509. <exception name="IOException" type="java.io.IOException"/>
  20510. <doc>
  20511. <![CDATA[Deserialize a record with a tag (usually field name)
  20512. @param rin Record input source
  20513. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  20514. </doc>
  20515. </method>
  20516. <method name="compareTo" return="int"
  20517. abstract="true" native="false" synchronized="false"
  20518. static="false" final="false" visibility="public"
  20519. deprecated="not deprecated">
  20520. <param name="peer" type="java.lang.Object"/>
  20521. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  20522. </method>
  20523. <method name="serialize"
  20524. abstract="false" native="false" synchronized="false"
  20525. static="false" final="false" visibility="public"
  20526. deprecated="not deprecated">
  20527. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  20528. <exception name="IOException" type="java.io.IOException"/>
  20529. <doc>
  20530. <![CDATA[Serialize a record without a tag
  20531. @param rout Record output destination]]>
  20532. </doc>
  20533. </method>
  20534. <method name="deserialize"
  20535. abstract="false" native="false" synchronized="false"
  20536. static="false" final="false" visibility="public"
  20537. deprecated="not deprecated">
  20538. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  20539. <exception name="IOException" type="java.io.IOException"/>
  20540. <doc>
  20541. <![CDATA[Deserialize a record without a tag
  20542. @param rin Record input source]]>
  20543. </doc>
  20544. </method>
  20545. <method name="write"
  20546. abstract="false" native="false" synchronized="false"
  20547. static="false" final="false" visibility="public"
  20548. deprecated="not deprecated">
  20549. <param name="out" type="java.io.DataOutput"/>
  20550. <exception name="IOException" type="java.io.IOException"/>
  20551. </method>
  20552. <method name="readFields"
  20553. abstract="false" native="false" synchronized="false"
  20554. static="false" final="false" visibility="public"
  20555. deprecated="not deprecated">
  20556. <param name="din" type="java.io.DataInput"/>
  20557. <exception name="IOException" type="java.io.IOException"/>
  20558. </method>
  20559. <method name="toString" return="java.lang.String"
  20560. abstract="false" native="false" synchronized="false"
  20561. static="false" final="false" visibility="public"
  20562. deprecated="not deprecated">
  20563. </method>
  20564. <doc>
  20565. <![CDATA[Abstract class that is extended by generated classes.
  20566. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20567. </doc>
  20568. </class>
  20569. <!-- end class org.apache.hadoop.record.Record -->
  20570. <!-- start class org.apache.hadoop.record.RecordComparator -->
  20571. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  20572. abstract="true"
  20573. static="false" final="false" visibility="public"
  20574. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20575. <constructor name="RecordComparator" type="java.lang.Class"
  20576. static="false" final="false" visibility="protected"
  20577. deprecated="not deprecated">
  20578. <doc>
  20579. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  20580. </doc>
  20581. </constructor>
  20582. <method name="compare" return="int"
  20583. abstract="true" native="false" synchronized="false"
  20584. static="false" final="false" visibility="public"
  20585. deprecated="not deprecated">
  20586. <param name="b1" type="byte[]"/>
  20587. <param name="s1" type="int"/>
  20588. <param name="l1" type="int"/>
  20589. <param name="b2" type="byte[]"/>
  20590. <param name="s2" type="int"/>
  20591. <param name="l2" type="int"/>
  20592. </method>
  20593. <method name="define"
  20594. abstract="false" native="false" synchronized="true"
  20595. static="true" final="false" visibility="public"
  20596. deprecated="not deprecated">
  20597. <param name="c" type="java.lang.Class"/>
  20598. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  20599. <doc>
  20600. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  20601. @param c record classs for which a raw comparator is provided
  20602. @param comparator Raw comparator instance for class c]]>
  20603. </doc>
  20604. </method>
  20605. <doc>
  20606. <![CDATA[A raw record comparator base class
  20607. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20608. </doc>
  20609. </class>
  20610. <!-- end class org.apache.hadoop.record.RecordComparator -->
  20611. <!-- start interface org.apache.hadoop.record.RecordInput -->
  20612. <interface name="RecordInput" abstract="true"
  20613. static="false" final="false" visibility="public"
  20614. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20615. <method name="readByte" return="byte"
  20616. abstract="false" native="false" synchronized="false"
  20617. static="false" final="false" visibility="public"
  20618. deprecated="not deprecated">
  20619. <param name="tag" type="java.lang.String"/>
  20620. <exception name="IOException" type="java.io.IOException"/>
  20621. <doc>
  20622. <![CDATA[Read a byte from serialized record.
  20623. @param tag Used by tagged serialization formats (such as XML)
  20624. @return value read from serialized record.]]>
  20625. </doc>
  20626. </method>
  20627. <method name="readBool" return="boolean"
  20628. abstract="false" native="false" synchronized="false"
  20629. static="false" final="false" visibility="public"
  20630. deprecated="not deprecated">
  20631. <param name="tag" type="java.lang.String"/>
  20632. <exception name="IOException" type="java.io.IOException"/>
  20633. <doc>
  20634. <![CDATA[Read a boolean from serialized record.
  20635. @param tag Used by tagged serialization formats (such as XML)
  20636. @return value read from serialized record.]]>
  20637. </doc>
  20638. </method>
  20639. <method name="readInt" return="int"
  20640. abstract="false" native="false" synchronized="false"
  20641. static="false" final="false" visibility="public"
  20642. deprecated="not deprecated">
  20643. <param name="tag" type="java.lang.String"/>
  20644. <exception name="IOException" type="java.io.IOException"/>
  20645. <doc>
  20646. <![CDATA[Read an integer from serialized record.
  20647. @param tag Used by tagged serialization formats (such as XML)
  20648. @return value read from serialized record.]]>
  20649. </doc>
  20650. </method>
  20651. <method name="readLong" return="long"
  20652. abstract="false" native="false" synchronized="false"
  20653. static="false" final="false" visibility="public"
  20654. deprecated="not deprecated">
  20655. <param name="tag" type="java.lang.String"/>
  20656. <exception name="IOException" type="java.io.IOException"/>
  20657. <doc>
  20658. <![CDATA[Read a long integer from serialized record.
  20659. @param tag Used by tagged serialization formats (such as XML)
  20660. @return value read from serialized record.]]>
  20661. </doc>
  20662. </method>
  20663. <method name="readFloat" return="float"
  20664. abstract="false" native="false" synchronized="false"
  20665. static="false" final="false" visibility="public"
  20666. deprecated="not deprecated">
  20667. <param name="tag" type="java.lang.String"/>
  20668. <exception name="IOException" type="java.io.IOException"/>
  20669. <doc>
  20670. <![CDATA[Read a single-precision float from serialized record.
  20671. @param tag Used by tagged serialization formats (such as XML)
  20672. @return value read from serialized record.]]>
  20673. </doc>
  20674. </method>
  20675. <method name="readDouble" return="double"
  20676. abstract="false" native="false" synchronized="false"
  20677. static="false" final="false" visibility="public"
  20678. deprecated="not deprecated">
  20679. <param name="tag" type="java.lang.String"/>
  20680. <exception name="IOException" type="java.io.IOException"/>
  20681. <doc>
  20682. <![CDATA[Read a double-precision number from serialized record.
  20683. @param tag Used by tagged serialization formats (such as XML)
  20684. @return value read from serialized record.]]>
  20685. </doc>
  20686. </method>
  20687. <method name="readString" return="java.lang.String"
  20688. abstract="false" native="false" synchronized="false"
  20689. static="false" final="false" visibility="public"
  20690. deprecated="not deprecated">
  20691. <param name="tag" type="java.lang.String"/>
  20692. <exception name="IOException" type="java.io.IOException"/>
  20693. <doc>
  20694. <![CDATA[Read a UTF-8 encoded string from serialized record.
  20695. @param tag Used by tagged serialization formats (such as XML)
  20696. @return value read from serialized record.]]>
  20697. </doc>
  20698. </method>
  20699. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  20700. abstract="false" native="false" synchronized="false"
  20701. static="false" final="false" visibility="public"
  20702. deprecated="not deprecated">
  20703. <param name="tag" type="java.lang.String"/>
  20704. <exception name="IOException" type="java.io.IOException"/>
  20705. <doc>
  20706. <![CDATA[Read byte array from serialized record.
  20707. @param tag Used by tagged serialization formats (such as XML)
  20708. @return value read from serialized record.]]>
  20709. </doc>
  20710. </method>
  20711. <method name="startRecord"
  20712. abstract="false" native="false" synchronized="false"
  20713. static="false" final="false" visibility="public"
  20714. deprecated="not deprecated">
  20715. <param name="tag" type="java.lang.String"/>
  20716. <exception name="IOException" type="java.io.IOException"/>
  20717. <doc>
  20718. <![CDATA[Check the mark for start of the serialized record.
  20719. @param tag Used by tagged serialization formats (such as XML)]]>
  20720. </doc>
  20721. </method>
  20722. <method name="endRecord"
  20723. abstract="false" native="false" synchronized="false"
  20724. static="false" final="false" visibility="public"
  20725. deprecated="not deprecated">
  20726. <param name="tag" type="java.lang.String"/>
  20727. <exception name="IOException" type="java.io.IOException"/>
  20728. <doc>
  20729. <![CDATA[Check the mark for end of the serialized record.
  20730. @param tag Used by tagged serialization formats (such as XML)]]>
  20731. </doc>
  20732. </method>
  20733. <method name="startVector" return="org.apache.hadoop.record.Index"
  20734. abstract="false" native="false" synchronized="false"
  20735. static="false" final="false" visibility="public"
  20736. deprecated="not deprecated">
  20737. <param name="tag" type="java.lang.String"/>
  20738. <exception name="IOException" type="java.io.IOException"/>
  20739. <doc>
  20740. <![CDATA[Check the mark for start of the serialized vector.
  20741. @param tag Used by tagged serialization formats (such as XML)
  20742. @return Index that is used to count the number of elements.]]>
  20743. </doc>
  20744. </method>
  20745. <method name="endVector"
  20746. abstract="false" native="false" synchronized="false"
  20747. static="false" final="false" visibility="public"
  20748. deprecated="not deprecated">
  20749. <param name="tag" type="java.lang.String"/>
  20750. <exception name="IOException" type="java.io.IOException"/>
  20751. <doc>
  20752. <![CDATA[Check the mark for end of the serialized vector.
  20753. @param tag Used by tagged serialization formats (such as XML)]]>
  20754. </doc>
  20755. </method>
  20756. <method name="startMap" return="org.apache.hadoop.record.Index"
  20757. abstract="false" native="false" synchronized="false"
  20758. static="false" final="false" visibility="public"
  20759. deprecated="not deprecated">
  20760. <param name="tag" type="java.lang.String"/>
  20761. <exception name="IOException" type="java.io.IOException"/>
  20762. <doc>
  20763. <![CDATA[Check the mark for start of the serialized map.
  20764. @param tag Used by tagged serialization formats (such as XML)
  20765. @return Index that is used to count the number of map entries.]]>
  20766. </doc>
  20767. </method>
  20768. <method name="endMap"
  20769. abstract="false" native="false" synchronized="false"
  20770. static="false" final="false" visibility="public"
  20771. deprecated="not deprecated">
  20772. <param name="tag" type="java.lang.String"/>
  20773. <exception name="IOException" type="java.io.IOException"/>
  20774. <doc>
  20775. <![CDATA[Check the mark for end of the serialized map.
  20776. @param tag Used by tagged serialization formats (such as XML)]]>
  20777. </doc>
  20778. </method>
  20779. <doc>
  20780. <![CDATA[Interface that all the Deserializers have to implement.
  20781. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20782. </doc>
  20783. </interface>
  20784. <!-- end interface org.apache.hadoop.record.RecordInput -->
  20785. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  20786. <interface name="RecordOutput" abstract="true"
  20787. static="false" final="false" visibility="public"
  20788. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20789. <method name="writeByte"
  20790. abstract="false" native="false" synchronized="false"
  20791. static="false" final="false" visibility="public"
  20792. deprecated="not deprecated">
  20793. <param name="b" type="byte"/>
  20794. <param name="tag" type="java.lang.String"/>
  20795. <exception name="IOException" type="java.io.IOException"/>
  20796. <doc>
  20797. <![CDATA[Write a byte to serialized record.
  20798. @param b Byte to be serialized
  20799. @param tag Used by tagged serialization formats (such as XML)
  20800. @throws IOException Indicates error in serialization]]>
  20801. </doc>
  20802. </method>
  20803. <method name="writeBool"
  20804. abstract="false" native="false" synchronized="false"
  20805. static="false" final="false" visibility="public"
  20806. deprecated="not deprecated">
  20807. <param name="b" type="boolean"/>
  20808. <param name="tag" type="java.lang.String"/>
  20809. <exception name="IOException" type="java.io.IOException"/>
  20810. <doc>
  20811. <![CDATA[Write a boolean to serialized record.
  20812. @param b Boolean to be serialized
  20813. @param tag Used by tagged serialization formats (such as XML)
  20814. @throws IOException Indicates error in serialization]]>
  20815. </doc>
  20816. </method>
  20817. <method name="writeInt"
  20818. abstract="false" native="false" synchronized="false"
  20819. static="false" final="false" visibility="public"
  20820. deprecated="not deprecated">
  20821. <param name="i" type="int"/>
  20822. <param name="tag" type="java.lang.String"/>
  20823. <exception name="IOException" type="java.io.IOException"/>
  20824. <doc>
  20825. <![CDATA[Write an integer to serialized record.
  20826. @param i Integer to be serialized
  20827. @param tag Used by tagged serialization formats (such as XML)
  20828. @throws IOException Indicates error in serialization]]>
  20829. </doc>
  20830. </method>
  20831. <method name="writeLong"
  20832. abstract="false" native="false" synchronized="false"
  20833. static="false" final="false" visibility="public"
  20834. deprecated="not deprecated">
  20835. <param name="l" type="long"/>
  20836. <param name="tag" type="java.lang.String"/>
  20837. <exception name="IOException" type="java.io.IOException"/>
  20838. <doc>
  20839. <![CDATA[Write a long integer to serialized record.
  20840. @param l Long to be serialized
  20841. @param tag Used by tagged serialization formats (such as XML)
  20842. @throws IOException Indicates error in serialization]]>
  20843. </doc>
  20844. </method>
  20845. <method name="writeFloat"
  20846. abstract="false" native="false" synchronized="false"
  20847. static="false" final="false" visibility="public"
  20848. deprecated="not deprecated">
  20849. <param name="f" type="float"/>
  20850. <param name="tag" type="java.lang.String"/>
  20851. <exception name="IOException" type="java.io.IOException"/>
  20852. <doc>
  20853. <![CDATA[Write a single-precision float to serialized record.
  20854. @param f Float to be serialized
  20855. @param tag Used by tagged serialization formats (such as XML)
  20856. @throws IOException Indicates error in serialization]]>
  20857. </doc>
  20858. </method>
  20859. <method name="writeDouble"
  20860. abstract="false" native="false" synchronized="false"
  20861. static="false" final="false" visibility="public"
  20862. deprecated="not deprecated">
  20863. <param name="d" type="double"/>
  20864. <param name="tag" type="java.lang.String"/>
  20865. <exception name="IOException" type="java.io.IOException"/>
  20866. <doc>
  20867. <![CDATA[Write a double precision floating point number to serialized record.
  20868. @param d Double to be serialized
  20869. @param tag Used by tagged serialization formats (such as XML)
  20870. @throws IOException Indicates error in serialization]]>
  20871. </doc>
  20872. </method>
  20873. <method name="writeString"
  20874. abstract="false" native="false" synchronized="false"
  20875. static="false" final="false" visibility="public"
  20876. deprecated="not deprecated">
  20877. <param name="s" type="java.lang.String"/>
  20878. <param name="tag" type="java.lang.String"/>
  20879. <exception name="IOException" type="java.io.IOException"/>
  20880. <doc>
  20881. <![CDATA[Write a unicode string to serialized record.
  20882. @param s String to be serialized
  20883. @param tag Used by tagged serialization formats (such as XML)
  20884. @throws IOException Indicates error in serialization]]>
  20885. </doc>
  20886. </method>
  20887. <method name="writeBuffer"
  20888. abstract="false" native="false" synchronized="false"
  20889. static="false" final="false" visibility="public"
  20890. deprecated="not deprecated">
  20891. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  20892. <param name="tag" type="java.lang.String"/>
  20893. <exception name="IOException" type="java.io.IOException"/>
  20894. <doc>
  20895. <![CDATA[Write a buffer to serialized record.
  20896. @param buf Buffer to be serialized
  20897. @param tag Used by tagged serialization formats (such as XML)
  20898. @throws IOException Indicates error in serialization]]>
  20899. </doc>
  20900. </method>
  20901. <method name="startRecord"
  20902. abstract="false" native="false" synchronized="false"
  20903. static="false" final="false" visibility="public"
  20904. deprecated="not deprecated">
  20905. <param name="r" type="org.apache.hadoop.record.Record"/>
  20906. <param name="tag" type="java.lang.String"/>
  20907. <exception name="IOException" type="java.io.IOException"/>
  20908. <doc>
  20909. <![CDATA[Mark the start of a record to be serialized.
  20910. @param r Record to be serialized
  20911. @param tag Used by tagged serialization formats (such as XML)
  20912. @throws IOException Indicates error in serialization]]>
  20913. </doc>
  20914. </method>
  20915. <method name="endRecord"
  20916. abstract="false" native="false" synchronized="false"
  20917. static="false" final="false" visibility="public"
  20918. deprecated="not deprecated">
  20919. <param name="r" type="org.apache.hadoop.record.Record"/>
  20920. <param name="tag" type="java.lang.String"/>
  20921. <exception name="IOException" type="java.io.IOException"/>
  20922. <doc>
  20923. <![CDATA[Mark the end of a serialized record.
  20924. @param r Record to be serialized
  20925. @param tag Used by tagged serialization formats (such as XML)
  20926. @throws IOException Indicates error in serialization]]>
  20927. </doc>
  20928. </method>
  20929. <method name="startVector"
  20930. abstract="false" native="false" synchronized="false"
  20931. static="false" final="false" visibility="public"
  20932. deprecated="not deprecated">
  20933. <param name="v" type="java.util.ArrayList"/>
  20934. <param name="tag" type="java.lang.String"/>
  20935. <exception name="IOException" type="java.io.IOException"/>
  20936. <doc>
  20937. <![CDATA[Mark the start of a vector to be serialized.
  20938. @param v Vector to be serialized
  20939. @param tag Used by tagged serialization formats (such as XML)
  20940. @throws IOException Indicates error in serialization]]>
  20941. </doc>
  20942. </method>
  20943. <method name="endVector"
  20944. abstract="false" native="false" synchronized="false"
  20945. static="false" final="false" visibility="public"
  20946. deprecated="not deprecated">
  20947. <param name="v" type="java.util.ArrayList"/>
  20948. <param name="tag" type="java.lang.String"/>
  20949. <exception name="IOException" type="java.io.IOException"/>
  20950. <doc>
  20951. <![CDATA[Mark the end of a serialized vector.
  20952. @param v Vector to be serialized
  20953. @param tag Used by tagged serialization formats (such as XML)
  20954. @throws IOException Indicates error in serialization]]>
  20955. </doc>
  20956. </method>
  20957. <method name="startMap"
  20958. abstract="false" native="false" synchronized="false"
  20959. static="false" final="false" visibility="public"
  20960. deprecated="not deprecated">
  20961. <param name="m" type="java.util.TreeMap"/>
  20962. <param name="tag" type="java.lang.String"/>
  20963. <exception name="IOException" type="java.io.IOException"/>
  20964. <doc>
  20965. <![CDATA[Mark the start of a map to be serialized.
  20966. @param m Map to be serialized
  20967. @param tag Used by tagged serialization formats (such as XML)
  20968. @throws IOException Indicates error in serialization]]>
  20969. </doc>
  20970. </method>
  20971. <method name="endMap"
  20972. abstract="false" native="false" synchronized="false"
  20973. static="false" final="false" visibility="public"
  20974. deprecated="not deprecated">
  20975. <param name="m" type="java.util.TreeMap"/>
  20976. <param name="tag" type="java.lang.String"/>
  20977. <exception name="IOException" type="java.io.IOException"/>
  20978. <doc>
  20979. <![CDATA[Mark the end of a serialized map.
  20980. @param m Map to be serialized
  20981. @param tag Used by tagged serialization formats (such as XML)
  20982. @throws IOException Indicates error in serialization]]>
  20983. </doc>
  20984. </method>
  20985. <doc>
  20986. <![CDATA[Interface that alll the serializers have to implement.
  20987. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  20988. </doc>
  20989. </interface>
  20990. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  20991. <!-- start class org.apache.hadoop.record.Utils -->
  20992. <class name="Utils" extends="java.lang.Object"
  20993. abstract="false"
  20994. static="false" final="false" visibility="public"
  20995. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  20996. <method name="readFloat" return="float"
  20997. abstract="false" native="false" synchronized="false"
  20998. static="true" final="false" visibility="public"
  20999. deprecated="not deprecated">
  21000. <param name="bytes" type="byte[]"/>
  21001. <param name="start" type="int"/>
  21002. <doc>
  21003. <![CDATA[Parse a float from a byte array.]]>
  21004. </doc>
  21005. </method>
  21006. <method name="readDouble" return="double"
  21007. abstract="false" native="false" synchronized="false"
  21008. static="true" final="false" visibility="public"
  21009. deprecated="not deprecated">
  21010. <param name="bytes" type="byte[]"/>
  21011. <param name="start" type="int"/>
  21012. <doc>
  21013. <![CDATA[Parse a double from a byte array.]]>
  21014. </doc>
  21015. </method>
  21016. <method name="readVLong" return="long"
  21017. abstract="false" native="false" synchronized="false"
  21018. static="true" final="false" visibility="public"
  21019. deprecated="not deprecated">
  21020. <param name="bytes" type="byte[]"/>
  21021. <param name="start" type="int"/>
  21022. <exception name="IOException" type="java.io.IOException"/>
  21023. <doc>
  21024. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  21025. @param bytes byte array with decode long
  21026. @param start starting index
  21027. @throws java.io.IOException
  21028. @return deserialized long]]>
  21029. </doc>
  21030. </method>
  21031. <method name="readVInt" return="int"
  21032. abstract="false" native="false" synchronized="false"
  21033. static="true" final="false" visibility="public"
  21034. deprecated="not deprecated">
  21035. <param name="bytes" type="byte[]"/>
  21036. <param name="start" type="int"/>
  21037. <exception name="IOException" type="java.io.IOException"/>
  21038. <doc>
  21039. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  21040. @param bytes byte array with the encoded integer
  21041. @param start start index
  21042. @throws java.io.IOException
  21043. @return deserialized integer]]>
  21044. </doc>
  21045. </method>
  21046. <method name="readVLong" return="long"
  21047. abstract="false" native="false" synchronized="false"
  21048. static="true" final="false" visibility="public"
  21049. deprecated="not deprecated">
  21050. <param name="in" type="java.io.DataInput"/>
  21051. <exception name="IOException" type="java.io.IOException"/>
  21052. <doc>
  21053. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  21054. @param in input stream
  21055. @throws java.io.IOException
  21056. @return deserialized long]]>
  21057. </doc>
  21058. </method>
  21059. <method name="readVInt" return="int"
  21060. abstract="false" native="false" synchronized="false"
  21061. static="true" final="false" visibility="public"
  21062. deprecated="not deprecated">
  21063. <param name="in" type="java.io.DataInput"/>
  21064. <exception name="IOException" type="java.io.IOException"/>
  21065. <doc>
  21066. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  21067. @param in input stream
  21068. @throws java.io.IOException
  21069. @return deserialized integer]]>
  21070. </doc>
  21071. </method>
  21072. <method name="getVIntSize" return="int"
  21073. abstract="false" native="false" synchronized="false"
  21074. static="true" final="false" visibility="public"
  21075. deprecated="not deprecated">
  21076. <param name="i" type="long"/>
  21077. <doc>
  21078. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  21079. @return the encoded length]]>
  21080. </doc>
  21081. </method>
  21082. <method name="writeVLong"
  21083. abstract="false" native="false" synchronized="false"
  21084. static="true" final="false" visibility="public"
  21085. deprecated="not deprecated">
  21086. <param name="stream" type="java.io.DataOutput"/>
  21087. <param name="i" type="long"/>
  21088. <exception name="IOException" type="java.io.IOException"/>
  21089. <doc>
  21090. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  21091. For -112 <= i <= 127, only one byte is used with the actual value.
  21092. For other values of i, the first byte value indicates whether the
  21093. long is positive or negative, and the number of bytes that follow.
  21094. If the first byte value v is between -113 and -120, the following long
  21095. is positive, with number of bytes that follow are -(v+112).
  21096. If the first byte value v is between -121 and -128, the following long
  21097. is negative, with number of bytes that follow are -(v+120). Bytes are
  21098. stored in the high-non-zero-byte-first order.
  21099. @param stream Binary output stream
  21100. @param i Long to be serialized
  21101. @throws java.io.IOException]]>
  21102. </doc>
  21103. </method>
  21104. <method name="writeVInt"
  21105. abstract="false" native="false" synchronized="false"
  21106. static="true" final="false" visibility="public"
  21107. deprecated="not deprecated">
  21108. <param name="stream" type="java.io.DataOutput"/>
  21109. <param name="i" type="int"/>
  21110. <exception name="IOException" type="java.io.IOException"/>
  21111. <doc>
  21112. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  21113. @param stream Binary output stream
  21114. @param i int to be serialized
  21115. @throws java.io.IOException]]>
  21116. </doc>
  21117. </method>
  21118. <method name="compareBytes" return="int"
  21119. abstract="false" native="false" synchronized="false"
  21120. static="true" final="false" visibility="public"
  21121. deprecated="not deprecated">
  21122. <param name="b1" type="byte[]"/>
  21123. <param name="s1" type="int"/>
  21124. <param name="l1" type="int"/>
  21125. <param name="b2" type="byte[]"/>
  21126. <param name="s2" type="int"/>
  21127. <param name="l2" type="int"/>
  21128. <doc>
  21129. <![CDATA[Lexicographic order of binary data.]]>
  21130. </doc>
  21131. </method>
  21132. <field name="hexchars" type="char[]"
  21133. transient="false" volatile="false"
  21134. static="true" final="true" visibility="public"
  21135. deprecated="not deprecated">
  21136. </field>
  21137. <doc>
  21138. <![CDATA[Various utility functions for Hadooop record I/O runtime.
  21139. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  21140. </doc>
  21141. </class>
  21142. <!-- end class org.apache.hadoop.record.Utils -->
  21143. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  21144. <class name="XmlRecordInput" extends="java.lang.Object"
  21145. abstract="false"
  21146. static="false" final="false" visibility="public"
  21147. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  21148. <implements name="org.apache.hadoop.record.RecordInput"/>
  21149. <constructor name="XmlRecordInput" type="java.io.InputStream"
  21150. static="false" final="false" visibility="public"
  21151. deprecated="not deprecated">
  21152. <doc>
  21153. <![CDATA[Creates a new instance of XmlRecordInput]]>
  21154. </doc>
  21155. </constructor>
  21156. <method name="readByte" return="byte"
  21157. abstract="false" native="false" synchronized="false"
  21158. static="false" final="false" visibility="public"
  21159. deprecated="not deprecated">
  21160. <param name="tag" type="java.lang.String"/>
  21161. <exception name="IOException" type="java.io.IOException"/>
  21162. </method>
  21163. <method name="readBool" return="boolean"
  21164. abstract="false" native="false" synchronized="false"
  21165. static="false" final="false" visibility="public"
  21166. deprecated="not deprecated">
  21167. <param name="tag" type="java.lang.String"/>
  21168. <exception name="IOException" type="java.io.IOException"/>
  21169. </method>
  21170. <method name="readInt" return="int"
  21171. abstract="false" native="false" synchronized="false"
  21172. static="false" final="false" visibility="public"
  21173. deprecated="not deprecated">
  21174. <param name="tag" type="java.lang.String"/>
  21175. <exception name="IOException" type="java.io.IOException"/>
  21176. </method>
  21177. <method name="readLong" return="long"
  21178. abstract="false" native="false" synchronized="false"
  21179. static="false" final="false" visibility="public"
  21180. deprecated="not deprecated">
  21181. <param name="tag" type="java.lang.String"/>
  21182. <exception name="IOException" type="java.io.IOException"/>
  21183. </method>
  21184. <method name="readFloat" return="float"
  21185. abstract="false" native="false" synchronized="false"
  21186. static="false" final="false" visibility="public"
  21187. deprecated="not deprecated">
  21188. <param name="tag" type="java.lang.String"/>
  21189. <exception name="IOException" type="java.io.IOException"/>
  21190. </method>
  21191. <method name="readDouble" return="double"
  21192. abstract="false" native="false" synchronized="false"
  21193. static="false" final="false" visibility="public"
  21194. deprecated="not deprecated">
  21195. <param name="tag" type="java.lang.String"/>
  21196. <exception name="IOException" type="java.io.IOException"/>
  21197. </method>
  21198. <method name="readString" return="java.lang.String"
  21199. abstract="false" native="false" synchronized="false"
  21200. static="false" final="false" visibility="public"
  21201. deprecated="not deprecated">
  21202. <param name="tag" type="java.lang.String"/>
  21203. <exception name="IOException" type="java.io.IOException"/>
  21204. </method>
  21205. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  21206. abstract="false" native="false" synchronized="false"
  21207. static="false" final="false" visibility="public"
  21208. deprecated="not deprecated">
  21209. <param name="tag" type="java.lang.String"/>
  21210. <exception name="IOException" type="java.io.IOException"/>
  21211. </method>
  21212. <method name="startRecord"
  21213. abstract="false" native="false" synchronized="false"
  21214. static="false" final="false" visibility="public"
  21215. deprecated="not deprecated">
  21216. <param name="tag" type="java.lang.String"/>
  21217. <exception name="IOException" type="java.io.IOException"/>
  21218. </method>
  21219. <method name="endRecord"
  21220. abstract="false" native="false" synchronized="false"
  21221. static="false" final="false" visibility="public"
  21222. deprecated="not deprecated">
  21223. <param name="tag" type="java.lang.String"/>
  21224. <exception name="IOException" type="java.io.IOException"/>
  21225. </method>
  21226. <method name="startVector" return="org.apache.hadoop.record.Index"
  21227. abstract="false" native="false" synchronized="false"
  21228. static="false" final="false" visibility="public"
  21229. deprecated="not deprecated">
  21230. <param name="tag" type="java.lang.String"/>
  21231. <exception name="IOException" type="java.io.IOException"/>
  21232. </method>
  21233. <method name="endVector"
  21234. abstract="false" native="false" synchronized="false"
  21235. static="false" final="false" visibility="public"
  21236. deprecated="not deprecated">
  21237. <param name="tag" type="java.lang.String"/>
  21238. <exception name="IOException" type="java.io.IOException"/>
  21239. </method>
  21240. <method name="startMap" return="org.apache.hadoop.record.Index"
  21241. abstract="false" native="false" synchronized="false"
  21242. static="false" final="false" visibility="public"
  21243. deprecated="not deprecated">
  21244. <param name="tag" type="java.lang.String"/>
  21245. <exception name="IOException" type="java.io.IOException"/>
  21246. </method>
  21247. <method name="endMap"
  21248. abstract="false" native="false" synchronized="false"
  21249. static="false" final="false" visibility="public"
  21250. deprecated="not deprecated">
  21251. <param name="tag" type="java.lang.String"/>
  21252. <exception name="IOException" type="java.io.IOException"/>
  21253. </method>
  21254. <doc>
  21255. <![CDATA[XML Deserializer.
  21256. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  21257. </doc>
  21258. </class>
  21259. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  21260. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  21261. <class name="XmlRecordOutput" extends="java.lang.Object"
  21262. abstract="false"
  21263. static="false" final="false" visibility="public"
  21264. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  21265. <implements name="org.apache.hadoop.record.RecordOutput"/>
  21266. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  21267. static="false" final="false" visibility="public"
  21268. deprecated="not deprecated">
  21269. <doc>
  21270. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  21271. </doc>
  21272. </constructor>
  21273. <method name="writeByte"
  21274. abstract="false" native="false" synchronized="false"
  21275. static="false" final="false" visibility="public"
  21276. deprecated="not deprecated">
  21277. <param name="b" type="byte"/>
  21278. <param name="tag" type="java.lang.String"/>
  21279. <exception name="IOException" type="java.io.IOException"/>
  21280. </method>
  21281. <method name="writeBool"
  21282. abstract="false" native="false" synchronized="false"
  21283. static="false" final="false" visibility="public"
  21284. deprecated="not deprecated">
  21285. <param name="b" type="boolean"/>
  21286. <param name="tag" type="java.lang.String"/>
  21287. <exception name="IOException" type="java.io.IOException"/>
  21288. </method>
  21289. <method name="writeInt"
  21290. abstract="false" native="false" synchronized="false"
  21291. static="false" final="false" visibility="public"
  21292. deprecated="not deprecated">
  21293. <param name="i" type="int"/>
  21294. <param name="tag" type="java.lang.String"/>
  21295. <exception name="IOException" type="java.io.IOException"/>
  21296. </method>
  21297. <method name="writeLong"
  21298. abstract="false" native="false" synchronized="false"
  21299. static="false" final="false" visibility="public"
  21300. deprecated="not deprecated">
  21301. <param name="l" type="long"/>
  21302. <param name="tag" type="java.lang.String"/>
  21303. <exception name="IOException" type="java.io.IOException"/>
  21304. </method>
  21305. <method name="writeFloat"
  21306. abstract="false" native="false" synchronized="false"
  21307. static="false" final="false" visibility="public"
  21308. deprecated="not deprecated">
  21309. <param name="f" type="float"/>
  21310. <param name="tag" type="java.lang.String"/>
  21311. <exception name="IOException" type="java.io.IOException"/>
  21312. </method>
  21313. <method name="writeDouble"
  21314. abstract="false" native="false" synchronized="false"
  21315. static="false" final="false" visibility="public"
  21316. deprecated="not deprecated">
  21317. <param name="d" type="double"/>
  21318. <param name="tag" type="java.lang.String"/>
  21319. <exception name="IOException" type="java.io.IOException"/>
  21320. </method>
  21321. <method name="writeString"
  21322. abstract="false" native="false" synchronized="false"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <param name="s" type="java.lang.String"/>
  21326. <param name="tag" type="java.lang.String"/>
  21327. <exception name="IOException" type="java.io.IOException"/>
  21328. </method>
  21329. <method name="writeBuffer"
  21330. abstract="false" native="false" synchronized="false"
  21331. static="false" final="false" visibility="public"
  21332. deprecated="not deprecated">
  21333. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  21334. <param name="tag" type="java.lang.String"/>
  21335. <exception name="IOException" type="java.io.IOException"/>
  21336. </method>
  21337. <method name="startRecord"
  21338. abstract="false" native="false" synchronized="false"
  21339. static="false" final="false" visibility="public"
  21340. deprecated="not deprecated">
  21341. <param name="r" type="org.apache.hadoop.record.Record"/>
  21342. <param name="tag" type="java.lang.String"/>
  21343. <exception name="IOException" type="java.io.IOException"/>
  21344. </method>
  21345. <method name="endRecord"
  21346. abstract="false" native="false" synchronized="false"
  21347. static="false" final="false" visibility="public"
  21348. deprecated="not deprecated">
  21349. <param name="r" type="org.apache.hadoop.record.Record"/>
  21350. <param name="tag" type="java.lang.String"/>
  21351. <exception name="IOException" type="java.io.IOException"/>
  21352. </method>
  21353. <method name="startVector"
  21354. abstract="false" native="false" synchronized="false"
  21355. static="false" final="false" visibility="public"
  21356. deprecated="not deprecated">
  21357. <param name="v" type="java.util.ArrayList"/>
  21358. <param name="tag" type="java.lang.String"/>
  21359. <exception name="IOException" type="java.io.IOException"/>
  21360. </method>
  21361. <method name="endVector"
  21362. abstract="false" native="false" synchronized="false"
  21363. static="false" final="false" visibility="public"
  21364. deprecated="not deprecated">
  21365. <param name="v" type="java.util.ArrayList"/>
  21366. <param name="tag" type="java.lang.String"/>
  21367. <exception name="IOException" type="java.io.IOException"/>
  21368. </method>
  21369. <method name="startMap"
  21370. abstract="false" native="false" synchronized="false"
  21371. static="false" final="false" visibility="public"
  21372. deprecated="not deprecated">
  21373. <param name="v" type="java.util.TreeMap"/>
  21374. <param name="tag" type="java.lang.String"/>
  21375. <exception name="IOException" type="java.io.IOException"/>
  21376. </method>
  21377. <method name="endMap"
  21378. abstract="false" native="false" synchronized="false"
  21379. static="false" final="false" visibility="public"
  21380. deprecated="not deprecated">
  21381. <param name="v" type="java.util.TreeMap"/>
  21382. <param name="tag" type="java.lang.String"/>
  21383. <exception name="IOException" type="java.io.IOException"/>
  21384. </method>
  21385. <doc>
  21386. <![CDATA[XML Serializer.
  21387. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  21388. </doc>
  21389. </class>
  21390. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  21391. <doc>
  21392. <![CDATA[<p>
  21393. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  21394. translator for simplifying serialization and deserialization of records in a
  21395. language-neutral manner.
  21396. </p>
  21397. <p>
  21398. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  21399. </p>
  21400. <h2>Introduction</h2>
  21401. Software systems of any significant complexity require mechanisms for data
  21402. interchange with the outside world. These interchanges typically involve the
  21403. marshaling and unmarshaling of logical units of data to and from data streams
  21404. (files, network connections, memory buffers etc.). Applications usually have
  21405. some code for serializing and deserializing the data types that they manipulate
  21406. embedded in them. The work of serialization has several features that make
  21407. automatic code generation for it worthwhile. Given a particular output encoding
  21408. (binary, XML, etc.), serialization of primitive types and simple compositions
  21409. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  21410. written serialization code can be susceptible to bugs especially when records
  21411. have a large number of fields or a record definition changes between software
  21412. versions. Lastly, it can be very useful for applications written in different
  21413. programming languages to be able to share and interchange data. This can be
  21414. made a lot easier by describing the data records manipulated by these
  21415. applications in a language agnostic manner and using the descriptions to derive
  21416. implementations of serialization in multiple target languages.
  21417. This document describes Hadoop Record I/O, a mechanism that is aimed
  21418. at
  21419. <ul>
  21420. <li> enabling the specification of simple serializable data types (records)
  21421. <li> enabling the generation of code in multiple target languages for
  21422. marshaling and unmarshaling such types
  21423. <li> providing target language specific support that will enable application
  21424. programmers to incorporate generated code into their applications
  21425. </ul>
  21426. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  21427. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  21428. the specification of most record types, they differ widely in what else they
  21429. focus on. The focus in Hadoop Record I/O is on data marshaling and
  21430. multi-lingual support. We take a translator-based approach to serialization.
  21431. Hadoop users have to describe their data in a simple data description
  21432. language. The Hadoop DDL translator rcc generates code that users
  21433. can invoke in order to read/write their data from/to simple stream
  21434. abstractions. Next we list explicitly some of the goals and non-goals of
  21435. Hadoop Record I/O.
  21436. <h3>Goals</h3>
  21437. <ul>
  21438. <li> Support for commonly used primitive types. Hadoop should include as
  21439. primitives commonly used builtin types from programming languages we intend to
  21440. support.
  21441. <li> Support for common data compositions (including recursive compositions).
  21442. Hadoop should support widely used composite types such as structs and
  21443. vectors.
  21444. <li> Code generation in multiple target languages. Hadoop should be capable of
  21445. generating serialization code in multiple target languages and should be
  21446. easily extensible to new target languages. The initial target languages are
  21447. C++ and Java.
  21448. <li> Support for generated target languages. Hadooop should include support
  21449. in the form of headers, libraries, packages for supported target languages
  21450. that enable easy inclusion and use of generated code in applications.
  21451. <li> Support for multiple output encodings. Candidates include
  21452. packed binary, comma-separated text, XML etc.
  21453. <li> Support for specifying record types in a backwards/forwards compatible
  21454. manner. This will probably be in the form of support for optional fields in
  21455. records. This version of the document does not include a description of the
  21456. planned mechanism, we intend to include it in the next iteration.
  21457. </ul>
  21458. <h3>Non-Goals</h3>
  21459. <ul>
  21460. <li> Serializing existing arbitrary C++ classes.
  21461. <li> Serializing complex data structures such as trees, linked lists etc.
  21462. <li> Built-in indexing schemes, compression, or check-sums.
  21463. <li> Dynamic construction of objects from an XML schema.
  21464. </ul>
  21465. The remainder of this document describes the features of Hadoop record I/O
  21466. in more detail. Section 2 describes the data types supported by the system.
  21467. Section 3 lays out the DDL syntax with some examples of simple records.
  21468. Section 4 describes the process of code generation with rcc. Section 5
  21469. describes target language mappings and support for Hadoop types. We include a
  21470. fairly complete description of C++ mappings with intent to include Java and
  21471. others in upcoming iterations of this document. The last section talks about
  21472. supported output encodings.
  21473. <h2>Data Types and Streams</h2>
  21474. This section describes the primitive and composite types supported by Hadoop.
  21475. We aim to support a set of types that can be used to simply and efficiently
  21476. express a wide range of record types in different programming languages.
  21477. <h3>Primitive Types</h3>
  21478. For the most part, the primitive types of Hadoop map directly to primitive
  21479. types in high level programming languages. Special cases are the
  21480. ustring (a Unicode string) and buffer types, which we believe
  21481. find wide use and which are usually implemented in library code and not
  21482. available as language built-ins. Hadoop also supplies these via library code
  21483. when a target language built-in is not present and there is no widely
  21484. adopted "standard" implementation. The complete list of primitive types is:
  21485. <ul>
  21486. <li> byte: An 8-bit unsigned integer.
  21487. <li> boolean: A boolean value.
  21488. <li> int: A 32-bit signed integer.
  21489. <li> long: A 64-bit signed integer.
  21490. <li> float: A single precision floating point number as described by
  21491. IEEE-754.
  21492. <li> double: A double precision floating point number as described by
  21493. IEEE-754.
  21494. <li> ustring: A string consisting of Unicode characters.
  21495. <li> buffer: An arbitrary sequence of bytes.
  21496. </ul>
  21497. <h3>Composite Types</h3>
  21498. Hadoop supports a small set of composite types that enable the description
  21499. of simple aggregate types and containers. A composite type is serialized
  21500. by sequentially serializing it constituent elements. The supported
  21501. composite types are:
  21502. <ul>
  21503. <li> record: An aggregate type like a C-struct. This is a list of
  21504. typed fields that are together considered a single unit of data. A record
  21505. is serialized by sequentially serializing its constituent fields. In addition
  21506. to serialization a record has comparison operations (equality and less-than)
  21507. implemented for it, these are defined as memberwise comparisons.
  21508. <li>vector: A sequence of entries of the same data type, primitive
  21509. or composite.
  21510. <li> map: An associative container mapping instances of a key type to
  21511. instances of a value type. The key and value types may themselves be primitive
  21512. or composite types.
  21513. </ul>
  21514. <h3>Streams</h3>
  21515. Hadoop generates code for serializing and deserializing record types to
  21516. abstract streams. For each target language Hadoop defines very simple input
  21517. and output stream interfaces. Application writers can usually develop
  21518. concrete implementations of these by putting a one method wrapper around
  21519. an existing stream implementation.
  21520. <h2>DDL Syntax and Examples</h2>
  21521. We now describe the syntax of the Hadoop data description language. This is
  21522. followed by a few examples of DDL usage.
  21523. <h3>Hadoop DDL Syntax</h3>
  21524. <pre><code>
  21525. recfile = *include module *record
  21526. include = "include" path
  21527. path = (relative-path / absolute-path)
  21528. module = "module" module-name
  21529. module-name = name *("." name)
  21530. record := "class" name "{" 1*(field) "}"
  21531. field := type name ";"
  21532. name := ALPHA (ALPHA / DIGIT / "_" )*
  21533. type := (ptype / ctype)
  21534. ptype := ("byte" / "boolean" / "int" |
  21535. "long" / "float" / "double"
  21536. "ustring" / "buffer")
  21537. ctype := (("vector" "<" type ">") /
  21538. ("map" "<" type "," type ">" ) ) / name)
  21539. </code></pre>
  21540. A DDL file describes one or more record types. It begins with zero or
  21541. more include declarations, a single mandatory module declaration
  21542. followed by zero or more class declarations. The semantics of each of
  21543. these declarations are described below:
  21544. <ul>
  21545. <li>include: An include declaration specifies a DDL file to be
  21546. referenced when generating code for types in the current DDL file. Record types
  21547. in the current compilation unit may refer to types in all included files.
  21548. File inclusion is recursive. An include does not trigger code
  21549. generation for the referenced file.
  21550. <li> module: Every Hadoop DDL file must have a single module
  21551. declaration that follows the list of includes and precedes all record
  21552. declarations. A module declaration identifies a scope within which
  21553. the names of all types in the current file are visible. Module names are
  21554. mapped to C++ namespaces, Java packages etc. in generated code.
  21555. <li> class: Records types are specified through class
  21556. declarations. A class declaration is like a Java class declaration.
  21557. It specifies a named record type and a list of fields that constitute records
  21558. of the type. Usage is illustrated in the following examples.
  21559. </ul>
  21560. <h3>Examples</h3>
  21561. <ul>
  21562. <li>A simple DDL file links.jr with just one record declaration.
  21563. <pre><code>
  21564. module links {
  21565. class Link {
  21566. ustring URL;
  21567. boolean isRelative;
  21568. ustring anchorText;
  21569. };
  21570. }
  21571. </code></pre>
  21572. <li> A DDL file outlinks.jr which includes another
  21573. <pre><code>
  21574. include "links.jr"
  21575. module outlinks {
  21576. class OutLinks {
  21577. ustring baseURL;
  21578. vector<links.Link> outLinks;
  21579. };
  21580. }
  21581. </code></pre>
  21582. </ul>
  21583. <h2>Code Generation</h2>
  21584. The Hadoop translator is written in Java. Invocation is done by executing a
  21585. wrapper shell script named named rcc. It takes a list of
  21586. record description files as a mandatory argument and an
  21587. optional language argument (the default is Java) --language or
  21588. -l. Thus a typical invocation would look like:
  21589. <pre><code>
  21590. $ rcc -l C++ <filename> ...
  21591. </code></pre>
  21592. <h2>Target Language Mappings and Support</h2>
  21593. For all target languages, the unit of code generation is a record type.
  21594. For each record type, Hadoop generates code for serialization and
  21595. deserialization, record comparison and access to record members.
  21596. <h3>C++</h3>
  21597. Support for including Hadoop generated C++ code in applications comes in the
  21598. form of a header file recordio.hh which needs to be included in source
  21599. that uses Hadoop types and a library librecordio.a which applications need
  21600. to be linked with. The header declares the Hadoop C++ namespace which defines
  21601. appropriate types for the various primitives, the basic interfaces for
  21602. records and streams and enumerates the supported serialization encodings.
  21603. Declarations of these interfaces and a description of their semantics follow:
  21604. <pre><code>
  21605. namespace hadoop {
  21606. enum RecFormat { kBinary, kXML, kCSV };
  21607. class InStream {
  21608. public:
  21609. virtual ssize_t read(void *buf, size_t n) = 0;
  21610. };
  21611. class OutStream {
  21612. public:
  21613. virtual ssize_t write(const void *buf, size_t n) = 0;
  21614. };
  21615. class IOError : public runtime_error {
  21616. public:
  21617. explicit IOError(const std::string& msg);
  21618. };
  21619. class IArchive;
  21620. class OArchive;
  21621. class RecordReader {
  21622. public:
  21623. RecordReader(InStream& in, RecFormat fmt);
  21624. virtual ~RecordReader(void);
  21625. virtual void read(Record& rec);
  21626. };
  21627. class RecordWriter {
  21628. public:
  21629. RecordWriter(OutStream& out, RecFormat fmt);
  21630. virtual ~RecordWriter(void);
  21631. virtual void write(Record& rec);
  21632. };
  21633. class Record {
  21634. public:
  21635. virtual std::string type(void) const = 0;
  21636. virtual std::string signature(void) const = 0;
  21637. protected:
  21638. virtual bool validate(void) const = 0;
  21639. virtual void
  21640. serialize(OArchive& oa, const std::string& tag) const = 0;
  21641. virtual void
  21642. deserialize(IArchive& ia, const std::string& tag) = 0;
  21643. };
  21644. }
  21645. </code></pre>
  21646. <ul>
  21647. <li> RecFormat: An enumeration of the serialization encodings supported
  21648. by this implementation of Hadoop.
  21649. <li> InStream: A simple abstraction for an input stream. This has a
  21650. single public read method that reads n bytes from the stream into
  21651. the buffer buf. Has the same semantics as a blocking read system
  21652. call. Returns the number of bytes read or -1 if an error occurs.
  21653. <li> OutStream: A simple abstraction for an output stream. This has a
  21654. single write method that writes n bytes to the stream from the
  21655. buffer buf. Has the same semantics as a blocking write system
  21656. call. Returns the number of bytes written or -1 if an error occurs.
  21657. <li> RecordReader: A RecordReader reads records one at a time from
  21658. an underlying stream in a specified record format. The reader is instantiated
  21659. with a stream and a serialization format. It has a read method that
  21660. takes an instance of a record and deserializes the record from the stream.
  21661. <li> RecordWriter: A RecordWriter writes records one at a
  21662. time to an underlying stream in a specified record format. The writer is
  21663. instantiated with a stream and a serialization format. It has a
  21664. write method that takes an instance of a record and serializes the
  21665. record to the stream.
  21666. <li> Record: The base class for all generated record types. This has two
  21667. public methods type and signature that return the typename and the
  21668. type signature of the record.
  21669. </ul>
  21670. Two files are generated for each record file (note: not for each record). If a
  21671. record file is named "name.jr", the generated files are
  21672. "name.jr.cc" and "name.jr.hh" containing serialization
  21673. implementations and record type declarations respectively.
  21674. For each record in the DDL file, the generated header file will contain a
  21675. class definition corresponding to the record type, method definitions for the
  21676. generated type will be present in the '.cc' file. The generated class will
  21677. inherit from the abstract class hadoop::Record. The DDL files
  21678. module declaration determines the namespace the record belongs to.
  21679. Each '.' delimited token in the module declaration results in the
  21680. creation of a namespace. For instance, the declaration module docs.links
  21681. results in the creation of a docs namespace and a nested
  21682. docs::links namespace. In the preceding examples, the Link class
  21683. is placed in the links namespace. The header file corresponding to
  21684. the links.jr file will contain:
  21685. <pre><code>
  21686. namespace links {
  21687. class Link : public hadoop::Record {
  21688. // ....
  21689. };
  21690. };
  21691. </code></pre>
  21692. Each field within the record will cause the generation of a private member
  21693. declaration of the appropriate type in the class declaration, and one or more
  21694. acccessor methods. The generated class will implement the serialize and
  21695. deserialize methods defined in hadoop::Record+. It will also
  21696. implement the inspection methods type and signature from
  21697. hadoop::Record. A default constructor and virtual destructor will also
  21698. be generated. Serialization code will read/write records into streams that
  21699. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  21700. For each member of a record an accessor method is generated that returns
  21701. either the member or a reference to the member. For members that are returned
  21702. by value, a setter method is also generated. This is true for primitive
  21703. data members of the types byte, int, long, boolean, float and
  21704. double. For example, for a int field called MyField the folowing
  21705. code is generated.
  21706. <pre><code>
  21707. ...
  21708. private:
  21709. int32_t mMyField;
  21710. ...
  21711. public:
  21712. int32_t getMyField(void) const {
  21713. return mMyField;
  21714. };
  21715. void setMyField(int32_t m) {
  21716. mMyField = m;
  21717. };
  21718. ...
  21719. </code></pre>
  21720. For a ustring or buffer or composite field. The generated code
  21721. only contains accessors that return a reference to the field. A const
  21722. and a non-const accessor are generated. For example:
  21723. <pre><code>
  21724. ...
  21725. private:
  21726. std::string mMyBuf;
  21727. ...
  21728. public:
  21729. std::string& getMyBuf() {
  21730. return mMyBuf;
  21731. };
  21732. const std::string& getMyBuf() const {
  21733. return mMyBuf;
  21734. };
  21735. ...
  21736. </code></pre>
  21737. <h4>Examples</h4>
  21738. Suppose the inclrec.jr file contains:
  21739. <pre><code>
  21740. module inclrec {
  21741. class RI {
  21742. int I32;
  21743. double D;
  21744. ustring S;
  21745. };
  21746. }
  21747. </code></pre>
  21748. and the testrec.jr file contains:
  21749. <pre><code>
  21750. include "inclrec.jr"
  21751. module testrec {
  21752. class R {
  21753. vector<float> VF;
  21754. RI Rec;
  21755. buffer Buf;
  21756. };
  21757. }
  21758. </code></pre>
  21759. Then the invocation of rcc such as:
  21760. <pre><code>
  21761. $ rcc -l c++ inclrec.jr testrec.jr
  21762. </code></pre>
  21763. will result in generation of four files:
  21764. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  21765. The inclrec.jr.hh will contain:
  21766. <pre><code>
  21767. #ifndef _INCLREC_JR_HH_
  21768. #define _INCLREC_JR_HH_
  21769. #include "recordio.hh"
  21770. namespace inclrec {
  21771. class RI : public hadoop::Record {
  21772. private:
  21773. int32_t I32;
  21774. double D;
  21775. std::string S;
  21776. public:
  21777. RI(void);
  21778. virtual ~RI(void);
  21779. virtual bool operator==(const RI& peer) const;
  21780. virtual bool operator<(const RI& peer) const;
  21781. virtual int32_t getI32(void) const { return I32; }
  21782. virtual void setI32(int32_t v) { I32 = v; }
  21783. virtual double getD(void) const { return D; }
  21784. virtual void setD(double v) { D = v; }
  21785. virtual std::string& getS(void) const { return S; }
  21786. virtual const std::string& getS(void) const { return S; }
  21787. virtual std::string type(void) const;
  21788. virtual std::string signature(void) const;
  21789. protected:
  21790. virtual void serialize(hadoop::OArchive& a) const;
  21791. virtual void deserialize(hadoop::IArchive& a);
  21792. };
  21793. } // end namespace inclrec
  21794. #endif /* _INCLREC_JR_HH_ */
  21795. </code></pre>
  21796. The testrec.jr.hh file will contain:
  21797. <pre><code>
  21798. #ifndef _TESTREC_JR_HH_
  21799. #define _TESTREC_JR_HH_
  21800. #include "inclrec.jr.hh"
  21801. namespace testrec {
  21802. class R : public hadoop::Record {
  21803. private:
  21804. std::vector<float> VF;
  21805. inclrec::RI Rec;
  21806. std::string Buf;
  21807. public:
  21808. R(void);
  21809. virtual ~R(void);
  21810. virtual bool operator==(const R& peer) const;
  21811. virtual bool operator<(const R& peer) const;
  21812. virtual std::vector<float>& getVF(void) const;
  21813. virtual const std::vector<float>& getVF(void) const;
  21814. virtual std::string& getBuf(void) const ;
  21815. virtual const std::string& getBuf(void) const;
  21816. virtual inclrec::RI& getRec(void) const;
  21817. virtual const inclrec::RI& getRec(void) const;
  21818. virtual bool serialize(hadoop::OutArchive& a) const;
  21819. virtual bool deserialize(hadoop::InArchive& a);
  21820. virtual std::string type(void) const;
  21821. virtual std::string signature(void) const;
  21822. };
  21823. }; // end namespace testrec
  21824. #endif /* _TESTREC_JR_HH_ */
  21825. </code></pre>
  21826. <h3>Java</h3>
  21827. Code generation for Java is similar to that for C++. A Java class is generated
  21828. for each record type with private members corresponding to the fields. Getters
  21829. and setters for fields are also generated. Some differences arise in the
  21830. way comparison is expressed and in the mapping of modules to packages and
  21831. classes to files. For equality testing, an equals method is generated
  21832. for each record type. As per Java requirements a hashCode method is also
  21833. generated. For comparison a compareTo method is generated for each
  21834. record type. This has the semantics as defined by the Java Comparable
  21835. interface, that is, the method returns a negative integer, zero, or a positive
  21836. integer as the invoked object is less than, equal to, or greater than the
  21837. comparison parameter.
  21838. A .java file is generated per record type as opposed to per DDL
  21839. file as in C++. The module declaration translates to a Java
  21840. package declaration. The module name maps to an identical Java package
  21841. name. In addition to this mapping, the DDL compiler creates the appropriate
  21842. directory hierarchy for the package and places the generated .java
  21843. files in the correct directories.
  21844. <h2>Mapping Summary</h2>
  21845. <pre><code>
  21846. DDL Type C++ Type Java Type
  21847. boolean bool boolean
  21848. byte int8_t byte
  21849. int int32_t int
  21850. long int64_t long
  21851. float float float
  21852. double double double
  21853. ustring std::string java.lang.String
  21854. buffer std::string org.apache.hadoop.record.Buffer
  21855. class type class type class type
  21856. vector<type> std::vector<type> java.util.ArrayList<type>
  21857. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  21858. </code></pre>
  21859. <h2>Data encodings</h2>
  21860. This section describes the format of the data encodings supported by Hadoop.
  21861. Currently, three data encodings are supported, namely binary, CSV and XML.
  21862. <h3>Binary Serialization Format</h3>
  21863. The binary data encoding format is fairly dense. Serialization of composite
  21864. types is simply defined as a concatenation of serializations of the constituent
  21865. elements (lengths are included in vectors and maps).
  21866. Composite types are serialized as follows:
  21867. <ul>
  21868. <li> class: Sequence of serialized members.
  21869. <li> vector: The number of elements serialized as an int. Followed by a
  21870. sequence of serialized elements.
  21871. <li> map: The number of key value pairs serialized as an int. Followed
  21872. by a sequence of serialized (key,value) pairs.
  21873. </ul>
  21874. Serialization of primitives is more interesting, with a zero compression
  21875. optimization for integral types and normalization to UTF-8 for strings.
  21876. Primitive types are serialized as follows:
  21877. <ul>
  21878. <li> byte: Represented by 1 byte, as is.
  21879. <li> boolean: Represented by 1-byte (0 or 1)
  21880. <li> int/long: Integers and longs are serialized zero compressed.
  21881. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  21882. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  21883. the number of trailing bytes, N, as the negative number (-120-N). For example,
  21884. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  21885. This doesn't help much for 4-byte integers but does a reasonably good job with
  21886. longs without bit twiddling.
  21887. <li> float/double: Serialized in IEEE 754 single and double precision
  21888. format in network byte order. This is the format used by Java.
  21889. <li> ustring: Serialized as 4-byte zero compressed length followed by
  21890. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  21891. language representation.
  21892. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  21893. raw bytes in the buffer.
  21894. </ul>
  21895. <h3>CSV Serialization Format</h3>
  21896. The CSV serialization format has a lot more structure than the "standard"
  21897. Excel CSV format, but we believe the additional structure is useful because
  21898. <ul>
  21899. <li> it makes parsing a lot easier without detracting too much from legibility
  21900. <li> the delimiters around composites make it obvious when one is reading a
  21901. sequence of Hadoop records
  21902. </ul>
  21903. Serialization formats for the various types are detailed in the grammar that
  21904. follows. The notable feature of the formats is the use of delimiters for
  21905. indicating the certain field types.
  21906. <ul>
  21907. <li> A string field begins with a single quote (').
  21908. <li> A buffer field begins with a sharp (#).
  21909. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  21910. ends with '}'.
  21911. </ul>
  21912. The CSV format can be described by the following grammar:
  21913. <pre><code>
  21914. record = primitive / struct / vector / map
  21915. primitive = boolean / int / long / float / double / ustring / buffer
  21916. boolean = "T" / "F"
  21917. int = ["-"] 1*DIGIT
  21918. long = ";" ["-"] 1*DIGIT
  21919. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  21920. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  21921. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  21922. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  21923. struct = "s{" record *("," record) "}"
  21924. vector = "v{" [record *("," record)] "}"
  21925. map = "m{" [*(record "," record)] "}"
  21926. </code></pre>
  21927. <h3>XML Serialization Format</h3>
  21928. The XML serialization format is the same used by Apache XML-RPC
  21929. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  21930. XML-RPC format and adds some additional data types. All record I/O types are
  21931. not directly expressible in this format, and access to a DDL is required in
  21932. order to convert these to valid types. All types primitive or composite are
  21933. represented by &lt;value&gt; elements. The particular XML-RPC type is
  21934. indicated by a nested element in the &lt;value&gt; element. The encoding for
  21935. records is always UTF-8. Primitive types are serialized as follows:
  21936. <ul>
  21937. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  21938. integers represented in US-ASCII
  21939. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  21940. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  21941. signed integers represented in US-ASCII.
  21942. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  21943. represented in US-ASCII.
  21944. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  21945. floating point numbers represented in US-ASCII.
  21946. <li> double: XML tag &lt;double&gt;. Values: Double precision
  21947. floating point numbers represented in US-ASCII.
  21948. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  21949. represented as UTF-8. XML does not permit all Unicode characters in literal
  21950. data. In particular, NULLs and control chars are not allowed. Additionally,
  21951. XML processors are required to replace carriage returns with line feeds and to
  21952. replace CRLF sequences with line feeds. Programming languages that we work
  21953. with do not impose these restrictions on string types. To work around these
  21954. restrictions, disallowed characters and CRs are percent escaped in strings.
  21955. The '%' character is also percent escaped.
  21956. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  21957. data. Represented as hexBinary, each byte is replaced by its 2-byte
  21958. hexadecimal representation.
  21959. </ul>
  21960. Composite types are serialized as follows:
  21961. <ul>
  21962. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  21963. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  21964. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  21965. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  21966. by a &lt;value&gt; element.
  21967. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  21968. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  21969. &lt;value&gt; elements each of which represents an element of the vector.
  21970. <li> map: XML tag &lt;array&gt;. Same as vector.
  21971. </ul>
  21972. For example:
  21973. <pre><code>
  21974. class {
  21975. int MY_INT; // value 5
  21976. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  21977. buffer MY_BUF; // value '\00\n\tabc%'
  21978. }
  21979. </code></pre>
  21980. is serialized as
  21981. <pre><code class="XML">
  21982. &lt;value&gt;
  21983. &lt;struct&gt;
  21984. &lt;member&gt;
  21985. &lt;name&gt;MY_INT&lt;/name&gt;
  21986. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  21987. &lt;/member&gt;
  21988. &lt;member&gt;
  21989. &lt;name&gt;MY_VEC&lt;/name&gt;
  21990. &lt;value&gt;
  21991. &lt;array&gt;
  21992. &lt;data&gt;
  21993. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  21994. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  21995. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  21996. &lt;/data&gt;
  21997. &lt;/array&gt;
  21998. &lt;/value&gt;
  21999. &lt;/member&gt;
  22000. &lt;member&gt;
  22001. &lt;name&gt;MY_BUF&lt;/name&gt;
  22002. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  22003. &lt;/member&gt;
  22004. &lt;/struct&gt;
  22005. &lt;/value&gt;
  22006. </code></pre>]]>
  22007. </doc>
  22008. </package>
  22009. <package name="org.apache.hadoop.record.compiler">
  22010. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  22011. <class name="CodeBuffer" extends="java.lang.Object"
  22012. abstract="false"
  22013. static="false" final="false" visibility="public"
  22014. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22015. <method name="toString" return="java.lang.String"
  22016. abstract="false" native="false" synchronized="false"
  22017. static="false" final="false" visibility="public"
  22018. deprecated="not deprecated">
  22019. </method>
  22020. <doc>
  22021. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  22022. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22023. </doc>
  22024. </class>
  22025. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  22026. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  22027. <class name="Consts" extends="java.lang.Object"
  22028. abstract="false"
  22029. static="false" final="false" visibility="public"
  22030. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22031. <field name="RIO_PREFIX" type="java.lang.String"
  22032. transient="false" volatile="false"
  22033. static="true" final="true" visibility="public"
  22034. deprecated="not deprecated">
  22035. </field>
  22036. <field name="RTI_VAR" type="java.lang.String"
  22037. transient="false" volatile="false"
  22038. static="true" final="true" visibility="public"
  22039. deprecated="not deprecated">
  22040. </field>
  22041. <field name="RTI_FILTER" type="java.lang.String"
  22042. transient="false" volatile="false"
  22043. static="true" final="true" visibility="public"
  22044. deprecated="not deprecated">
  22045. </field>
  22046. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  22047. transient="false" volatile="false"
  22048. static="true" final="true" visibility="public"
  22049. deprecated="not deprecated">
  22050. </field>
  22051. <field name="RECORD_OUTPUT" type="java.lang.String"
  22052. transient="false" volatile="false"
  22053. static="true" final="true" visibility="public"
  22054. deprecated="not deprecated">
  22055. </field>
  22056. <field name="RECORD_INPUT" type="java.lang.String"
  22057. transient="false" volatile="false"
  22058. static="true" final="true" visibility="public"
  22059. deprecated="not deprecated">
  22060. </field>
  22061. <field name="TAG" type="java.lang.String"
  22062. transient="false" volatile="false"
  22063. static="true" final="true" visibility="public"
  22064. deprecated="not deprecated">
  22065. </field>
  22066. <doc>
  22067. <![CDATA[const definitions for Record I/O compiler
  22068. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22069. </doc>
  22070. </class>
  22071. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  22072. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  22073. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  22074. abstract="false"
  22075. static="false" final="false" visibility="public"
  22076. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22077. <constructor name="JBoolean"
  22078. static="false" final="false" visibility="public"
  22079. deprecated="not deprecated">
  22080. <doc>
  22081. <![CDATA[Creates a new instance of JBoolean]]>
  22082. </doc>
  22083. </constructor>
  22084. <doc>
  22085. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22086. </doc>
  22087. </class>
  22088. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  22089. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  22090. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  22091. abstract="false"
  22092. static="false" final="false" visibility="public"
  22093. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22094. <constructor name="JBuffer"
  22095. static="false" final="false" visibility="public"
  22096. deprecated="not deprecated">
  22097. <doc>
  22098. <![CDATA[Creates a new instance of JBuffer]]>
  22099. </doc>
  22100. </constructor>
  22101. <doc>
  22102. <![CDATA[Code generator for "buffer" type.
  22103. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22104. </doc>
  22105. </class>
  22106. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  22107. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  22108. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  22109. abstract="false"
  22110. static="false" final="false" visibility="public"
  22111. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22112. <constructor name="JByte"
  22113. static="false" final="false" visibility="public"
  22114. deprecated="not deprecated">
  22115. </constructor>
  22116. <doc>
  22117. <![CDATA[Code generator for "byte" type.
  22118. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22119. </doc>
  22120. </class>
  22121. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  22122. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  22123. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  22124. abstract="false"
  22125. static="false" final="false" visibility="public"
  22126. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22127. <constructor name="JDouble"
  22128. static="false" final="false" visibility="public"
  22129. deprecated="not deprecated">
  22130. <doc>
  22131. <![CDATA[Creates a new instance of JDouble]]>
  22132. </doc>
  22133. </constructor>
  22134. <doc>
  22135. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22136. </doc>
  22137. </class>
  22138. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  22139. <!-- start class org.apache.hadoop.record.compiler.JField -->
  22140. <class name="JField" extends="java.lang.Object"
  22141. abstract="false"
  22142. static="false" final="false" visibility="public"
  22143. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22144. <constructor name="JField" type="java.lang.String, T"
  22145. static="false" final="false" visibility="public"
  22146. deprecated="not deprecated">
  22147. <doc>
  22148. <![CDATA[Creates a new instance of JField]]>
  22149. </doc>
  22150. </constructor>
  22151. <doc>
  22152. <![CDATA[A thin wrappper around record field.
  22153. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22154. </doc>
  22155. </class>
  22156. <!-- end class org.apache.hadoop.record.compiler.JField -->
  22157. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  22158. <class name="JFile" extends="java.lang.Object"
  22159. abstract="false"
  22160. static="false" final="false" visibility="public"
  22161. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22162. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  22163. static="false" final="false" visibility="public"
  22164. deprecated="not deprecated">
  22165. <doc>
  22166. <![CDATA[Creates a new instance of JFile
  22167. @param name possibly full pathname to the file
  22168. @param inclFiles included files (as JFile)
  22169. @param recList List of records defined within this file]]>
  22170. </doc>
  22171. </constructor>
  22172. <method name="genCode" return="int"
  22173. abstract="false" native="false" synchronized="false"
  22174. static="false" final="false" visibility="public"
  22175. deprecated="not deprecated">
  22176. <param name="language" type="java.lang.String"/>
  22177. <param name="destDir" type="java.lang.String"/>
  22178. <param name="options" type="java.util.ArrayList"/>
  22179. <exception name="IOException" type="java.io.IOException"/>
  22180. <doc>
  22181. <![CDATA[Generate record code in given language. Language should be all
  22182. lowercase.]]>
  22183. </doc>
  22184. </method>
  22185. <doc>
  22186. <![CDATA[Container for the Hadoop Record DDL.
  22187. The main components of the file are filename, list of included files,
  22188. and records defined in that file.
  22189. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22190. </doc>
  22191. </class>
  22192. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  22193. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  22194. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  22195. abstract="false"
  22196. static="false" final="false" visibility="public"
  22197. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22198. <constructor name="JFloat"
  22199. static="false" final="false" visibility="public"
  22200. deprecated="not deprecated">
  22201. <doc>
  22202. <![CDATA[Creates a new instance of JFloat]]>
  22203. </doc>
  22204. </constructor>
  22205. <doc>
  22206. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22207. </doc>
  22208. </class>
  22209. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  22210. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  22211. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  22212. abstract="false"
  22213. static="false" final="false" visibility="public"
  22214. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22215. <constructor name="JInt"
  22216. static="false" final="false" visibility="public"
  22217. deprecated="not deprecated">
  22218. <doc>
  22219. <![CDATA[Creates a new instance of JInt]]>
  22220. </doc>
  22221. </constructor>
  22222. <doc>
  22223. <![CDATA[Code generator for "int" type
  22224. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22225. </doc>
  22226. </class>
  22227. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  22228. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  22229. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  22230. abstract="false"
  22231. static="false" final="false" visibility="public"
  22232. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22233. <constructor name="JLong"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <doc>
  22237. <![CDATA[Creates a new instance of JLong]]>
  22238. </doc>
  22239. </constructor>
  22240. <doc>
  22241. <![CDATA[Code generator for "long" type
  22242. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22243. </doc>
  22244. </class>
  22245. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  22246. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  22247. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  22248. abstract="false"
  22249. static="false" final="false" visibility="public"
  22250. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22251. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  22252. static="false" final="false" visibility="public"
  22253. deprecated="not deprecated">
  22254. <doc>
  22255. <![CDATA[Creates a new instance of JMap]]>
  22256. </doc>
  22257. </constructor>
  22258. <doc>
  22259. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22260. </doc>
  22261. </class>
  22262. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  22263. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  22264. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  22265. abstract="false"
  22266. static="false" final="false" visibility="public"
  22267. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22268. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  22269. static="false" final="false" visibility="public"
  22270. deprecated="not deprecated">
  22271. <doc>
  22272. <![CDATA[Creates a new instance of JRecord]]>
  22273. </doc>
  22274. </constructor>
  22275. <doc>
  22276. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22277. </doc>
  22278. </class>
  22279. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  22280. <!-- start class org.apache.hadoop.record.compiler.JString -->
  22281. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  22282. abstract="false"
  22283. static="false" final="false" visibility="public"
  22284. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22285. <constructor name="JString"
  22286. static="false" final="false" visibility="public"
  22287. deprecated="not deprecated">
  22288. <doc>
  22289. <![CDATA[Creates a new instance of JString]]>
  22290. </doc>
  22291. </constructor>
  22292. <doc>
  22293. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22294. </doc>
  22295. </class>
  22296. <!-- end class org.apache.hadoop.record.compiler.JString -->
  22297. <!-- start class org.apache.hadoop.record.compiler.JType -->
  22298. <class name="JType" extends="java.lang.Object"
  22299. abstract="true"
  22300. static="false" final="false" visibility="public"
  22301. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22302. <constructor name="JType"
  22303. static="false" final="false" visibility="public"
  22304. deprecated="not deprecated">
  22305. </constructor>
  22306. <doc>
  22307. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  22308. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22309. </doc>
  22310. </class>
  22311. <!-- end class org.apache.hadoop.record.compiler.JType -->
  22312. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  22313. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  22314. abstract="false"
  22315. static="false" final="false" visibility="public"
  22316. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22317. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  22318. static="false" final="false" visibility="public"
  22319. deprecated="not deprecated">
  22320. <doc>
  22321. <![CDATA[Creates a new instance of JVector]]>
  22322. </doc>
  22323. </constructor>
  22324. <doc>
  22325. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22326. </doc>
  22327. </class>
  22328. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  22329. <doc>
  22330. <![CDATA[<p>
  22331. (DEPRECATED) This package contains classes needed for code generation
  22332. from the hadoop record compiler. CppGenerator and JavaGenerator
  22333. are the main entry points from the parser. There are classes
  22334. corrsponding to every primitive type and compound type
  22335. included in Hadoop record I/O syntax.
  22336. </p>
  22337. <p>
  22338. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  22339. </p>]]>
  22340. </doc>
  22341. </package>
  22342. <package name="org.apache.hadoop.record.compiler.ant">
  22343. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  22344. <class name="RccTask" extends="org.apache.tools.ant.Task"
  22345. abstract="false"
  22346. static="false" final="false" visibility="public"
  22347. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22348. <constructor name="RccTask"
  22349. static="false" final="false" visibility="public"
  22350. deprecated="not deprecated">
  22351. <doc>
  22352. <![CDATA[Creates a new instance of RccTask]]>
  22353. </doc>
  22354. </constructor>
  22355. <method name="setLanguage"
  22356. abstract="false" native="false" synchronized="false"
  22357. static="false" final="false" visibility="public"
  22358. deprecated="not deprecated">
  22359. <param name="language" type="java.lang.String"/>
  22360. <doc>
  22361. <![CDATA[Sets the output language option
  22362. @param language "java"/"c++"]]>
  22363. </doc>
  22364. </method>
  22365. <method name="setFile"
  22366. abstract="false" native="false" synchronized="false"
  22367. static="false" final="false" visibility="public"
  22368. deprecated="not deprecated">
  22369. <param name="file" type="java.io.File"/>
  22370. <doc>
  22371. <![CDATA[Sets the record definition file attribute
  22372. @param file record definition file]]>
  22373. </doc>
  22374. </method>
  22375. <method name="setFailonerror"
  22376. abstract="false" native="false" synchronized="false"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. <param name="flag" type="boolean"/>
  22380. <doc>
  22381. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  22382. @param flag true will throw build exception in case of failure (default)]]>
  22383. </doc>
  22384. </method>
  22385. <method name="setDestdir"
  22386. abstract="false" native="false" synchronized="false"
  22387. static="false" final="false" visibility="public"
  22388. deprecated="not deprecated">
  22389. <param name="dir" type="java.io.File"/>
  22390. <doc>
  22391. <![CDATA[Sets directory where output files will be generated
  22392. @param dir output directory]]>
  22393. </doc>
  22394. </method>
  22395. <method name="addFileset"
  22396. abstract="false" native="false" synchronized="false"
  22397. static="false" final="false" visibility="public"
  22398. deprecated="not deprecated">
  22399. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  22400. <doc>
  22401. <![CDATA[Adds a fileset that can consist of one or more files
  22402. @param set Set of record definition files]]>
  22403. </doc>
  22404. </method>
  22405. <method name="execute"
  22406. abstract="false" native="false" synchronized="false"
  22407. static="false" final="false" visibility="public"
  22408. deprecated="not deprecated">
  22409. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  22410. <doc>
  22411. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  22412. </doc>
  22413. </method>
  22414. <doc>
  22415. <![CDATA[Hadoop record compiler ant Task
  22416. <p> This task takes the given record definition files and compiles them into
  22417. java or c++
  22418. files. It is then up to the user to compile the generated files.
  22419. <p> The task requires the <code>file</code> or the nested fileset element to be
  22420. specified. Optional attributes are <code>language</code> (set the output
  22421. language, default is "java"),
  22422. <code>destdir</code> (name of the destination directory for generated java/c++
  22423. code, default is ".") and <code>failonerror</code> (specifies error handling
  22424. behavior. default is true).
  22425. <p><h4>Usage</h4>
  22426. <pre>
  22427. &lt;recordcc
  22428. destdir="${basedir}/gensrc"
  22429. language="java"&gt;
  22430. &lt;fileset include="**\/*.jr" /&gt;
  22431. &lt;/recordcc&gt;
  22432. </pre>
  22433. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22434. </doc>
  22435. </class>
  22436. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  22437. </package>
  22438. <package name="org.apache.hadoop.record.compiler.generated">
  22439. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  22440. <class name="ParseException" extends="java.lang.Exception"
  22441. abstract="false"
  22442. static="false" final="false" visibility="public"
  22443. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22444. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  22445. static="false" final="false" visibility="public"
  22446. deprecated="not deprecated">
  22447. <doc>
  22448. <![CDATA[This constructor is used by the method "generateParseException"
  22449. in the generated parser. Calling this constructor generates
  22450. a new object of this type with the fields "currentToken",
  22451. "expectedTokenSequences", and "tokenImage" set. The boolean
  22452. flag "specialConstructor" is also set to true to indicate that
  22453. this constructor was used to create this object.
  22454. This constructor calls its super class with the empty string
  22455. to force the "toString" method of parent class "Throwable" to
  22456. print the error message in the form:
  22457. ParseException: <result of getMessage>]]>
  22458. </doc>
  22459. </constructor>
  22460. <constructor name="ParseException"
  22461. static="false" final="false" visibility="public"
  22462. deprecated="not deprecated">
  22463. <doc>
  22464. <![CDATA[The following constructors are for use by you for whatever
  22465. purpose you can think of. Constructing the exception in this
  22466. manner makes the exception behave in the normal way - i.e., as
  22467. documented in the class "Throwable". The fields "errorToken",
  22468. "expectedTokenSequences", and "tokenImage" do not contain
  22469. relevant information. The JavaCC generated code does not use
  22470. these constructors.]]>
  22471. </doc>
  22472. </constructor>
  22473. <constructor name="ParseException" type="java.lang.String"
  22474. static="false" final="false" visibility="public"
  22475. deprecated="not deprecated">
  22476. </constructor>
  22477. <method name="getMessage" return="java.lang.String"
  22478. abstract="false" native="false" synchronized="false"
  22479. static="false" final="false" visibility="public"
  22480. deprecated="not deprecated">
  22481. <doc>
  22482. <![CDATA[This method has the standard behavior when this object has been
  22483. created using the standard constructors. Otherwise, it uses
  22484. "currentToken" and "expectedTokenSequences" to generate a parse
  22485. error message and returns it. If this object has been created
  22486. due to a parse error, and you do not catch it (it gets thrown
  22487. from the parser), then this method is called during the printing
  22488. of the final stack trace, and hence the correct error message
  22489. gets displayed.]]>
  22490. </doc>
  22491. </method>
  22492. <method name="add_escapes" return="java.lang.String"
  22493. abstract="false" native="false" synchronized="false"
  22494. static="false" final="false" visibility="protected"
  22495. deprecated="not deprecated">
  22496. <param name="str" type="java.lang.String"/>
  22497. <doc>
  22498. <![CDATA[Used to convert raw characters to their escaped version
  22499. when these raw version cannot be used as part of an ASCII
  22500. string literal.]]>
  22501. </doc>
  22502. </method>
  22503. <field name="specialConstructor" type="boolean"
  22504. transient="false" volatile="false"
  22505. static="false" final="false" visibility="protected"
  22506. deprecated="not deprecated">
  22507. <doc>
  22508. <![CDATA[This variable determines which constructor was used to create
  22509. this object and thereby affects the semantics of the
  22510. "getMessage" method (see below).]]>
  22511. </doc>
  22512. </field>
  22513. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  22514. transient="false" volatile="false"
  22515. static="false" final="false" visibility="public"
  22516. deprecated="not deprecated">
  22517. <doc>
  22518. <![CDATA[This is the last token that has been consumed successfully. If
  22519. this object has been created due to a parse error, the token
  22520. followng this token will (therefore) be the first error token.]]>
  22521. </doc>
  22522. </field>
  22523. <field name="expectedTokenSequences" type="int[][]"
  22524. transient="false" volatile="false"
  22525. static="false" final="false" visibility="public"
  22526. deprecated="not deprecated">
  22527. <doc>
  22528. <![CDATA[Each entry in this array is an array of integers. Each array
  22529. of integers represents a sequence of tokens (by their ordinal
  22530. values) that is expected at this point of the parse.]]>
  22531. </doc>
  22532. </field>
  22533. <field name="tokenImage" type="java.lang.String[]"
  22534. transient="false" volatile="false"
  22535. static="false" final="false" visibility="public"
  22536. deprecated="not deprecated">
  22537. <doc>
  22538. <![CDATA[This is a reference to the "tokenImage" array of the generated
  22539. parser within which the parse error occurred. This array is
  22540. defined in the generated ...Constants interface.]]>
  22541. </doc>
  22542. </field>
  22543. <field name="eol" type="java.lang.String"
  22544. transient="false" volatile="false"
  22545. static="false" final="false" visibility="protected"
  22546. deprecated="not deprecated">
  22547. <doc>
  22548. <![CDATA[The end of line string for this machine.]]>
  22549. </doc>
  22550. </field>
  22551. <doc>
  22552. <![CDATA[This exception is thrown when parse errors are encountered.
  22553. You can explicitly create objects of this exception type by
  22554. calling the method generateParseException in the generated
  22555. parser.
  22556. You can modify this class to customize your error reporting
  22557. mechanisms so long as you retain the public fields.
  22558. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22559. </doc>
  22560. </class>
  22561. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  22562. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  22563. <class name="Rcc" extends="java.lang.Object"
  22564. abstract="false"
  22565. static="false" final="false" visibility="public"
  22566. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22567. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  22568. <constructor name="Rcc" type="java.io.InputStream"
  22569. static="false" final="false" visibility="public"
  22570. deprecated="not deprecated">
  22571. </constructor>
  22572. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  22573. static="false" final="false" visibility="public"
  22574. deprecated="not deprecated">
  22575. </constructor>
  22576. <constructor name="Rcc" type="java.io.Reader"
  22577. static="false" final="false" visibility="public"
  22578. deprecated="not deprecated">
  22579. </constructor>
  22580. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  22581. static="false" final="false" visibility="public"
  22582. deprecated="not deprecated">
  22583. </constructor>
  22584. <method name="main"
  22585. abstract="false" native="false" synchronized="false"
  22586. static="true" final="false" visibility="public"
  22587. deprecated="not deprecated">
  22588. <param name="args" type="java.lang.String[]"/>
  22589. </method>
  22590. <method name="usage"
  22591. abstract="false" native="false" synchronized="false"
  22592. static="true" final="false" visibility="public"
  22593. deprecated="not deprecated">
  22594. </method>
  22595. <method name="driver" return="int"
  22596. abstract="false" native="false" synchronized="false"
  22597. static="true" final="false" visibility="public"
  22598. deprecated="not deprecated">
  22599. <param name="args" type="java.lang.String[]"/>
  22600. </method>
  22601. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  22602. abstract="false" native="false" synchronized="false"
  22603. static="false" final="true" visibility="public"
  22604. deprecated="not deprecated">
  22605. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22606. </method>
  22607. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  22608. abstract="false" native="false" synchronized="false"
  22609. static="false" final="true" visibility="public"
  22610. deprecated="not deprecated">
  22611. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22612. </method>
  22613. <method name="Module" return="java.util.ArrayList"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="false" final="true" visibility="public"
  22616. deprecated="not deprecated">
  22617. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22618. </method>
  22619. <method name="ModuleName" return="java.lang.String"
  22620. abstract="false" native="false" synchronized="false"
  22621. static="false" final="true" visibility="public"
  22622. deprecated="not deprecated">
  22623. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22624. </method>
  22625. <method name="RecordList" return="java.util.ArrayList"
  22626. abstract="false" native="false" synchronized="false"
  22627. static="false" final="true" visibility="public"
  22628. deprecated="not deprecated">
  22629. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22630. </method>
  22631. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  22632. abstract="false" native="false" synchronized="false"
  22633. static="false" final="true" visibility="public"
  22634. deprecated="not deprecated">
  22635. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22636. </method>
  22637. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  22638. abstract="false" native="false" synchronized="false"
  22639. static="false" final="true" visibility="public"
  22640. deprecated="not deprecated">
  22641. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22642. </method>
  22643. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  22644. abstract="false" native="false" synchronized="false"
  22645. static="false" final="true" visibility="public"
  22646. deprecated="not deprecated">
  22647. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22648. </method>
  22649. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  22650. abstract="false" native="false" synchronized="false"
  22651. static="false" final="true" visibility="public"
  22652. deprecated="not deprecated">
  22653. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22654. </method>
  22655. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  22656. abstract="false" native="false" synchronized="false"
  22657. static="false" final="true" visibility="public"
  22658. deprecated="not deprecated">
  22659. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  22660. </method>
  22661. <method name="ReInit"
  22662. abstract="false" native="false" synchronized="false"
  22663. static="false" final="false" visibility="public"
  22664. deprecated="not deprecated">
  22665. <param name="stream" type="java.io.InputStream"/>
  22666. </method>
  22667. <method name="ReInit"
  22668. abstract="false" native="false" synchronized="false"
  22669. static="false" final="false" visibility="public"
  22670. deprecated="not deprecated">
  22671. <param name="stream" type="java.io.InputStream"/>
  22672. <param name="encoding" type="java.lang.String"/>
  22673. </method>
  22674. <method name="ReInit"
  22675. abstract="false" native="false" synchronized="false"
  22676. static="false" final="false" visibility="public"
  22677. deprecated="not deprecated">
  22678. <param name="stream" type="java.io.Reader"/>
  22679. </method>
  22680. <method name="ReInit"
  22681. abstract="false" native="false" synchronized="false"
  22682. static="false" final="false" visibility="public"
  22683. deprecated="not deprecated">
  22684. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  22685. </method>
  22686. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  22687. abstract="false" native="false" synchronized="false"
  22688. static="false" final="true" visibility="public"
  22689. deprecated="not deprecated">
  22690. </method>
  22691. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  22692. abstract="false" native="false" synchronized="false"
  22693. static="false" final="true" visibility="public"
  22694. deprecated="not deprecated">
  22695. <param name="index" type="int"/>
  22696. </method>
  22697. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  22698. abstract="false" native="false" synchronized="false"
  22699. static="false" final="false" visibility="public"
  22700. deprecated="not deprecated">
  22701. </method>
  22702. <method name="enable_tracing"
  22703. abstract="false" native="false" synchronized="false"
  22704. static="false" final="true" visibility="public"
  22705. deprecated="not deprecated">
  22706. </method>
  22707. <method name="disable_tracing"
  22708. abstract="false" native="false" synchronized="false"
  22709. static="false" final="true" visibility="public"
  22710. deprecated="not deprecated">
  22711. </method>
  22712. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  22713. transient="false" volatile="false"
  22714. static="false" final="false" visibility="public"
  22715. deprecated="not deprecated">
  22716. </field>
  22717. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  22718. transient="false" volatile="false"
  22719. static="false" final="false" visibility="public"
  22720. deprecated="not deprecated">
  22721. </field>
  22722. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  22723. transient="false" volatile="false"
  22724. static="false" final="false" visibility="public"
  22725. deprecated="not deprecated">
  22726. </field>
  22727. <doc>
  22728. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22729. </doc>
  22730. </class>
  22731. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  22732. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  22733. <interface name="RccConstants" abstract="true"
  22734. static="false" final="false" visibility="public"
  22735. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22736. <field name="EOF" type="int"
  22737. transient="false" volatile="false"
  22738. static="true" final="true" visibility="public"
  22739. deprecated="not deprecated">
  22740. </field>
  22741. <field name="MODULE_TKN" type="int"
  22742. transient="false" volatile="false"
  22743. static="true" final="true" visibility="public"
  22744. deprecated="not deprecated">
  22745. </field>
  22746. <field name="RECORD_TKN" type="int"
  22747. transient="false" volatile="false"
  22748. static="true" final="true" visibility="public"
  22749. deprecated="not deprecated">
  22750. </field>
  22751. <field name="INCLUDE_TKN" type="int"
  22752. transient="false" volatile="false"
  22753. static="true" final="true" visibility="public"
  22754. deprecated="not deprecated">
  22755. </field>
  22756. <field name="BYTE_TKN" type="int"
  22757. transient="false" volatile="false"
  22758. static="true" final="true" visibility="public"
  22759. deprecated="not deprecated">
  22760. </field>
  22761. <field name="BOOLEAN_TKN" type="int"
  22762. transient="false" volatile="false"
  22763. static="true" final="true" visibility="public"
  22764. deprecated="not deprecated">
  22765. </field>
  22766. <field name="INT_TKN" type="int"
  22767. transient="false" volatile="false"
  22768. static="true" final="true" visibility="public"
  22769. deprecated="not deprecated">
  22770. </field>
  22771. <field name="LONG_TKN" type="int"
  22772. transient="false" volatile="false"
  22773. static="true" final="true" visibility="public"
  22774. deprecated="not deprecated">
  22775. </field>
  22776. <field name="FLOAT_TKN" type="int"
  22777. transient="false" volatile="false"
  22778. static="true" final="true" visibility="public"
  22779. deprecated="not deprecated">
  22780. </field>
  22781. <field name="DOUBLE_TKN" type="int"
  22782. transient="false" volatile="false"
  22783. static="true" final="true" visibility="public"
  22784. deprecated="not deprecated">
  22785. </field>
  22786. <field name="USTRING_TKN" type="int"
  22787. transient="false" volatile="false"
  22788. static="true" final="true" visibility="public"
  22789. deprecated="not deprecated">
  22790. </field>
  22791. <field name="BUFFER_TKN" type="int"
  22792. transient="false" volatile="false"
  22793. static="true" final="true" visibility="public"
  22794. deprecated="not deprecated">
  22795. </field>
  22796. <field name="VECTOR_TKN" type="int"
  22797. transient="false" volatile="false"
  22798. static="true" final="true" visibility="public"
  22799. deprecated="not deprecated">
  22800. </field>
  22801. <field name="MAP_TKN" type="int"
  22802. transient="false" volatile="false"
  22803. static="true" final="true" visibility="public"
  22804. deprecated="not deprecated">
  22805. </field>
  22806. <field name="LBRACE_TKN" type="int"
  22807. transient="false" volatile="false"
  22808. static="true" final="true" visibility="public"
  22809. deprecated="not deprecated">
  22810. </field>
  22811. <field name="RBRACE_TKN" type="int"
  22812. transient="false" volatile="false"
  22813. static="true" final="true" visibility="public"
  22814. deprecated="not deprecated">
  22815. </field>
  22816. <field name="LT_TKN" type="int"
  22817. transient="false" volatile="false"
  22818. static="true" final="true" visibility="public"
  22819. deprecated="not deprecated">
  22820. </field>
  22821. <field name="GT_TKN" type="int"
  22822. transient="false" volatile="false"
  22823. static="true" final="true" visibility="public"
  22824. deprecated="not deprecated">
  22825. </field>
  22826. <field name="SEMICOLON_TKN" type="int"
  22827. transient="false" volatile="false"
  22828. static="true" final="true" visibility="public"
  22829. deprecated="not deprecated">
  22830. </field>
  22831. <field name="COMMA_TKN" type="int"
  22832. transient="false" volatile="false"
  22833. static="true" final="true" visibility="public"
  22834. deprecated="not deprecated">
  22835. </field>
  22836. <field name="DOT_TKN" type="int"
  22837. transient="false" volatile="false"
  22838. static="true" final="true" visibility="public"
  22839. deprecated="not deprecated">
  22840. </field>
  22841. <field name="CSTRING_TKN" type="int"
  22842. transient="false" volatile="false"
  22843. static="true" final="true" visibility="public"
  22844. deprecated="not deprecated">
  22845. </field>
  22846. <field name="IDENT_TKN" type="int"
  22847. transient="false" volatile="false"
  22848. static="true" final="true" visibility="public"
  22849. deprecated="not deprecated">
  22850. </field>
  22851. <field name="DEFAULT" type="int"
  22852. transient="false" volatile="false"
  22853. static="true" final="true" visibility="public"
  22854. deprecated="not deprecated">
  22855. </field>
  22856. <field name="WithinOneLineComment" type="int"
  22857. transient="false" volatile="false"
  22858. static="true" final="true" visibility="public"
  22859. deprecated="not deprecated">
  22860. </field>
  22861. <field name="WithinMultiLineComment" type="int"
  22862. transient="false" volatile="false"
  22863. static="true" final="true" visibility="public"
  22864. deprecated="not deprecated">
  22865. </field>
  22866. <field name="tokenImage" type="java.lang.String[]"
  22867. transient="false" volatile="false"
  22868. static="true" final="true" visibility="public"
  22869. deprecated="not deprecated">
  22870. </field>
  22871. <doc>
  22872. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22873. </doc>
  22874. </interface>
  22875. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  22876. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  22877. <class name="RccTokenManager" extends="java.lang.Object"
  22878. abstract="false"
  22879. static="false" final="false" visibility="public"
  22880. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22881. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  22882. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  22883. static="false" final="false" visibility="public"
  22884. deprecated="not deprecated">
  22885. </constructor>
  22886. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  22887. static="false" final="false" visibility="public"
  22888. deprecated="not deprecated">
  22889. </constructor>
  22890. <method name="setDebugStream"
  22891. abstract="false" native="false" synchronized="false"
  22892. static="false" final="false" visibility="public"
  22893. deprecated="not deprecated">
  22894. <param name="ds" type="java.io.PrintStream"/>
  22895. </method>
  22896. <method name="ReInit"
  22897. abstract="false" native="false" synchronized="false"
  22898. static="false" final="false" visibility="public"
  22899. deprecated="not deprecated">
  22900. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  22901. </method>
  22902. <method name="ReInit"
  22903. abstract="false" native="false" synchronized="false"
  22904. static="false" final="false" visibility="public"
  22905. deprecated="not deprecated">
  22906. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  22907. <param name="lexState" type="int"/>
  22908. </method>
  22909. <method name="SwitchTo"
  22910. abstract="false" native="false" synchronized="false"
  22911. static="false" final="false" visibility="public"
  22912. deprecated="not deprecated">
  22913. <param name="lexState" type="int"/>
  22914. </method>
  22915. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  22916. abstract="false" native="false" synchronized="false"
  22917. static="false" final="false" visibility="protected"
  22918. deprecated="not deprecated">
  22919. </method>
  22920. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  22921. abstract="false" native="false" synchronized="false"
  22922. static="false" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. </method>
  22925. <field name="debugStream" type="java.io.PrintStream"
  22926. transient="false" volatile="false"
  22927. static="false" final="false" visibility="public"
  22928. deprecated="not deprecated">
  22929. </field>
  22930. <field name="jjstrLiteralImages" type="java.lang.String[]"
  22931. transient="false" volatile="false"
  22932. static="true" final="true" visibility="public"
  22933. deprecated="not deprecated">
  22934. </field>
  22935. <field name="lexStateNames" type="java.lang.String[]"
  22936. transient="false" volatile="false"
  22937. static="true" final="true" visibility="public"
  22938. deprecated="not deprecated">
  22939. </field>
  22940. <field name="jjnewLexState" type="int[]"
  22941. transient="false" volatile="false"
  22942. static="true" final="true" visibility="public"
  22943. deprecated="not deprecated">
  22944. </field>
  22945. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  22946. transient="false" volatile="false"
  22947. static="false" final="false" visibility="protected"
  22948. deprecated="not deprecated">
  22949. </field>
  22950. <field name="curChar" type="char"
  22951. transient="false" volatile="false"
  22952. static="false" final="false" visibility="protected"
  22953. deprecated="not deprecated">
  22954. </field>
  22955. <doc>
  22956. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  22957. </doc>
  22958. </class>
  22959. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  22960. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  22961. <class name="SimpleCharStream" extends="java.lang.Object"
  22962. abstract="false"
  22963. static="false" final="false" visibility="public"
  22964. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  22965. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  22966. static="false" final="false" visibility="public"
  22967. deprecated="not deprecated">
  22968. </constructor>
  22969. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  22970. static="false" final="false" visibility="public"
  22971. deprecated="not deprecated">
  22972. </constructor>
  22973. <constructor name="SimpleCharStream" type="java.io.Reader"
  22974. static="false" final="false" visibility="public"
  22975. deprecated="not deprecated">
  22976. </constructor>
  22977. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  22978. static="false" final="false" visibility="public"
  22979. deprecated="not deprecated">
  22980. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  22981. </constructor>
  22982. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  22983. static="false" final="false" visibility="public"
  22984. deprecated="not deprecated">
  22985. </constructor>
  22986. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  22987. static="false" final="false" visibility="public"
  22988. deprecated="not deprecated">
  22989. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  22990. </constructor>
  22991. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  22992. static="false" final="false" visibility="public"
  22993. deprecated="not deprecated">
  22994. </constructor>
  22995. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  22996. static="false" final="false" visibility="public"
  22997. deprecated="not deprecated">
  22998. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  22999. </constructor>
  23000. <constructor name="SimpleCharStream" type="java.io.InputStream"
  23001. static="false" final="false" visibility="public"
  23002. deprecated="not deprecated">
  23003. </constructor>
  23004. <method name="setTabSize"
  23005. abstract="false" native="false" synchronized="false"
  23006. static="false" final="false" visibility="protected"
  23007. deprecated="not deprecated">
  23008. <param name="i" type="int"/>
  23009. </method>
  23010. <method name="getTabSize" return="int"
  23011. abstract="false" native="false" synchronized="false"
  23012. static="false" final="false" visibility="protected"
  23013. deprecated="not deprecated">
  23014. <param name="i" type="int"/>
  23015. </method>
  23016. <method name="ExpandBuff"
  23017. abstract="false" native="false" synchronized="false"
  23018. static="false" final="false" visibility="protected"
  23019. deprecated="not deprecated">
  23020. <param name="wrapAround" type="boolean"/>
  23021. </method>
  23022. <method name="FillBuff"
  23023. abstract="false" native="false" synchronized="false"
  23024. static="false" final="false" visibility="protected"
  23025. deprecated="not deprecated">
  23026. <exception name="IOException" type="java.io.IOException"/>
  23027. </method>
  23028. <method name="BeginToken" return="char"
  23029. abstract="false" native="false" synchronized="false"
  23030. static="false" final="false" visibility="public"
  23031. deprecated="not deprecated">
  23032. <exception name="IOException" type="java.io.IOException"/>
  23033. </method>
  23034. <method name="UpdateLineColumn"
  23035. abstract="false" native="false" synchronized="false"
  23036. static="false" final="false" visibility="protected"
  23037. deprecated="not deprecated">
  23038. <param name="c" type="char"/>
  23039. </method>
  23040. <method name="readChar" return="char"
  23041. abstract="false" native="false" synchronized="false"
  23042. static="false" final="false" visibility="public"
  23043. deprecated="not deprecated">
  23044. <exception name="IOException" type="java.io.IOException"/>
  23045. </method>
  23046. <method name="getEndColumn" return="int"
  23047. abstract="false" native="false" synchronized="false"
  23048. static="false" final="false" visibility="public"
  23049. deprecated="not deprecated">
  23050. </method>
  23051. <method name="getEndLine" return="int"
  23052. abstract="false" native="false" synchronized="false"
  23053. static="false" final="false" visibility="public"
  23054. deprecated="not deprecated">
  23055. </method>
  23056. <method name="getBeginColumn" return="int"
  23057. abstract="false" native="false" synchronized="false"
  23058. static="false" final="false" visibility="public"
  23059. deprecated="not deprecated">
  23060. </method>
  23061. <method name="getBeginLine" return="int"
  23062. abstract="false" native="false" synchronized="false"
  23063. static="false" final="false" visibility="public"
  23064. deprecated="not deprecated">
  23065. </method>
  23066. <method name="backup"
  23067. abstract="false" native="false" synchronized="false"
  23068. static="false" final="false" visibility="public"
  23069. deprecated="not deprecated">
  23070. <param name="amount" type="int"/>
  23071. </method>
  23072. <method name="ReInit"
  23073. abstract="false" native="false" synchronized="false"
  23074. static="false" final="false" visibility="public"
  23075. deprecated="not deprecated">
  23076. <param name="dstream" type="java.io.Reader"/>
  23077. <param name="startline" type="int"/>
  23078. <param name="startcolumn" type="int"/>
  23079. <param name="buffersize" type="int"/>
  23080. </method>
  23081. <method name="ReInit"
  23082. abstract="false" native="false" synchronized="false"
  23083. static="false" final="false" visibility="public"
  23084. deprecated="not deprecated">
  23085. <param name="dstream" type="java.io.Reader"/>
  23086. <param name="startline" type="int"/>
  23087. <param name="startcolumn" type="int"/>
  23088. </method>
  23089. <method name="ReInit"
  23090. abstract="false" native="false" synchronized="false"
  23091. static="false" final="false" visibility="public"
  23092. deprecated="not deprecated">
  23093. <param name="dstream" type="java.io.Reader"/>
  23094. </method>
  23095. <method name="ReInit"
  23096. abstract="false" native="false" synchronized="false"
  23097. static="false" final="false" visibility="public"
  23098. deprecated="not deprecated">
  23099. <param name="dstream" type="java.io.InputStream"/>
  23100. <param name="encoding" type="java.lang.String"/>
  23101. <param name="startline" type="int"/>
  23102. <param name="startcolumn" type="int"/>
  23103. <param name="buffersize" type="int"/>
  23104. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  23105. </method>
  23106. <method name="ReInit"
  23107. abstract="false" native="false" synchronized="false"
  23108. static="false" final="false" visibility="public"
  23109. deprecated="not deprecated">
  23110. <param name="dstream" type="java.io.InputStream"/>
  23111. <param name="startline" type="int"/>
  23112. <param name="startcolumn" type="int"/>
  23113. <param name="buffersize" type="int"/>
  23114. </method>
  23115. <method name="ReInit"
  23116. abstract="false" native="false" synchronized="false"
  23117. static="false" final="false" visibility="public"
  23118. deprecated="not deprecated">
  23119. <param name="dstream" type="java.io.InputStream"/>
  23120. <param name="encoding" type="java.lang.String"/>
  23121. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  23122. </method>
  23123. <method name="ReInit"
  23124. abstract="false" native="false" synchronized="false"
  23125. static="false" final="false" visibility="public"
  23126. deprecated="not deprecated">
  23127. <param name="dstream" type="java.io.InputStream"/>
  23128. </method>
  23129. <method name="ReInit"
  23130. abstract="false" native="false" synchronized="false"
  23131. static="false" final="false" visibility="public"
  23132. deprecated="not deprecated">
  23133. <param name="dstream" type="java.io.InputStream"/>
  23134. <param name="encoding" type="java.lang.String"/>
  23135. <param name="startline" type="int"/>
  23136. <param name="startcolumn" type="int"/>
  23137. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  23138. </method>
  23139. <method name="ReInit"
  23140. abstract="false" native="false" synchronized="false"
  23141. static="false" final="false" visibility="public"
  23142. deprecated="not deprecated">
  23143. <param name="dstream" type="java.io.InputStream"/>
  23144. <param name="startline" type="int"/>
  23145. <param name="startcolumn" type="int"/>
  23146. </method>
  23147. <method name="GetImage" return="java.lang.String"
  23148. abstract="false" native="false" synchronized="false"
  23149. static="false" final="false" visibility="public"
  23150. deprecated="not deprecated">
  23151. </method>
  23152. <method name="GetSuffix" return="char[]"
  23153. abstract="false" native="false" synchronized="false"
  23154. static="false" final="false" visibility="public"
  23155. deprecated="not deprecated">
  23156. <param name="len" type="int"/>
  23157. </method>
  23158. <method name="Done"
  23159. abstract="false" native="false" synchronized="false"
  23160. static="false" final="false" visibility="public"
  23161. deprecated="not deprecated">
  23162. </method>
  23163. <method name="adjustBeginLineColumn"
  23164. abstract="false" native="false" synchronized="false"
  23165. static="false" final="false" visibility="public"
  23166. deprecated="not deprecated">
  23167. <param name="newLine" type="int"/>
  23168. <param name="newCol" type="int"/>
  23169. <doc>
  23170. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  23171. </doc>
  23172. </method>
  23173. <field name="staticFlag" type="boolean"
  23174. transient="false" volatile="false"
  23175. static="true" final="true" visibility="public"
  23176. deprecated="not deprecated">
  23177. </field>
  23178. <field name="bufpos" type="int"
  23179. transient="false" volatile="false"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. </field>
  23183. <field name="bufline" type="int[]"
  23184. transient="false" volatile="false"
  23185. static="false" final="false" visibility="protected"
  23186. deprecated="not deprecated">
  23187. </field>
  23188. <field name="bufcolumn" type="int[]"
  23189. transient="false" volatile="false"
  23190. static="false" final="false" visibility="protected"
  23191. deprecated="not deprecated">
  23192. </field>
  23193. <field name="column" type="int"
  23194. transient="false" volatile="false"
  23195. static="false" final="false" visibility="protected"
  23196. deprecated="not deprecated">
  23197. </field>
  23198. <field name="line" type="int"
  23199. transient="false" volatile="false"
  23200. static="false" final="false" visibility="protected"
  23201. deprecated="not deprecated">
  23202. </field>
  23203. <field name="prevCharIsCR" type="boolean"
  23204. transient="false" volatile="false"
  23205. static="false" final="false" visibility="protected"
  23206. deprecated="not deprecated">
  23207. </field>
  23208. <field name="prevCharIsLF" type="boolean"
  23209. transient="false" volatile="false"
  23210. static="false" final="false" visibility="protected"
  23211. deprecated="not deprecated">
  23212. </field>
  23213. <field name="inputStream" type="java.io.Reader"
  23214. transient="false" volatile="false"
  23215. static="false" final="false" visibility="protected"
  23216. deprecated="not deprecated">
  23217. </field>
  23218. <field name="buffer" type="char[]"
  23219. transient="false" volatile="false"
  23220. static="false" final="false" visibility="protected"
  23221. deprecated="not deprecated">
  23222. </field>
  23223. <field name="maxNextCharInd" type="int"
  23224. transient="false" volatile="false"
  23225. static="false" final="false" visibility="protected"
  23226. deprecated="not deprecated">
  23227. </field>
  23228. <field name="inBuf" type="int"
  23229. transient="false" volatile="false"
  23230. static="false" final="false" visibility="protected"
  23231. deprecated="not deprecated">
  23232. </field>
  23233. <field name="tabSize" type="int"
  23234. transient="false" volatile="false"
  23235. static="false" final="false" visibility="protected"
  23236. deprecated="not deprecated">
  23237. </field>
  23238. <doc>
  23239. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  23240. contain only ASCII characters (without unicode processing).
  23241. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23242. </doc>
  23243. </class>
  23244. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  23245. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  23246. <class name="Token" extends="java.lang.Object"
  23247. abstract="false"
  23248. static="false" final="false" visibility="public"
  23249. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23250. <constructor name="Token"
  23251. static="false" final="false" visibility="public"
  23252. deprecated="not deprecated">
  23253. </constructor>
  23254. <method name="toString" return="java.lang.String"
  23255. abstract="false" native="false" synchronized="false"
  23256. static="false" final="false" visibility="public"
  23257. deprecated="not deprecated">
  23258. <doc>
  23259. <![CDATA[Returns the image.]]>
  23260. </doc>
  23261. </method>
  23262. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  23263. abstract="false" native="false" synchronized="false"
  23264. static="true" final="true" visibility="public"
  23265. deprecated="not deprecated">
  23266. <param name="ofKind" type="int"/>
  23267. <doc>
  23268. <![CDATA[Returns a new Token object, by default. However, if you want, you
  23269. can create and return subclass objects based on the value of ofKind.
  23270. Simply add the cases to the switch for all those special cases.
  23271. For example, if you have a subclass of Token called IDToken that
  23272. you want to create if ofKind is ID, simlpy add something like :
  23273. case MyParserConstants.ID : return new IDToken();
  23274. to the following switch statement. Then you can cast matchedToken
  23275. variable to the appropriate type and use it in your lexical actions.]]>
  23276. </doc>
  23277. </method>
  23278. <field name="kind" type="int"
  23279. transient="false" volatile="false"
  23280. static="false" final="false" visibility="public"
  23281. deprecated="not deprecated">
  23282. <doc>
  23283. <![CDATA[An integer that describes the kind of this token. This numbering
  23284. system is determined by JavaCCParser, and a table of these numbers is
  23285. stored in the file ...Constants.java.]]>
  23286. </doc>
  23287. </field>
  23288. <field name="beginLine" type="int"
  23289. transient="false" volatile="false"
  23290. static="false" final="false" visibility="public"
  23291. deprecated="not deprecated">
  23292. <doc>
  23293. <![CDATA[beginLine and beginColumn describe the position of the first character
  23294. of this token; endLine and endColumn describe the position of the
  23295. last character of this token.]]>
  23296. </doc>
  23297. </field>
  23298. <field name="beginColumn" type="int"
  23299. transient="false" volatile="false"
  23300. static="false" final="false" visibility="public"
  23301. deprecated="not deprecated">
  23302. <doc>
  23303. <![CDATA[beginLine and beginColumn describe the position of the first character
  23304. of this token; endLine and endColumn describe the position of the
  23305. last character of this token.]]>
  23306. </doc>
  23307. </field>
  23308. <field name="endLine" type="int"
  23309. transient="false" volatile="false"
  23310. static="false" final="false" visibility="public"
  23311. deprecated="not deprecated">
  23312. <doc>
  23313. <![CDATA[beginLine and beginColumn describe the position of the first character
  23314. of this token; endLine and endColumn describe the position of the
  23315. last character of this token.]]>
  23316. </doc>
  23317. </field>
  23318. <field name="endColumn" type="int"
  23319. transient="false" volatile="false"
  23320. static="false" final="false" visibility="public"
  23321. deprecated="not deprecated">
  23322. <doc>
  23323. <![CDATA[beginLine and beginColumn describe the position of the first character
  23324. of this token; endLine and endColumn describe the position of the
  23325. last character of this token.]]>
  23326. </doc>
  23327. </field>
  23328. <field name="image" type="java.lang.String"
  23329. transient="false" volatile="false"
  23330. static="false" final="false" visibility="public"
  23331. deprecated="not deprecated">
  23332. <doc>
  23333. <![CDATA[The string image of the token.]]>
  23334. </doc>
  23335. </field>
  23336. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  23337. transient="false" volatile="false"
  23338. static="false" final="false" visibility="public"
  23339. deprecated="not deprecated">
  23340. <doc>
  23341. <![CDATA[A reference to the next regular (non-special) token from the input
  23342. stream. If this is the last token from the input stream, or if the
  23343. token manager has not read tokens beyond this one, this field is
  23344. set to null. This is true only if this token is also a regular
  23345. token. Otherwise, see below for a description of the contents of
  23346. this field.]]>
  23347. </doc>
  23348. </field>
  23349. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  23350. transient="false" volatile="false"
  23351. static="false" final="false" visibility="public"
  23352. deprecated="not deprecated">
  23353. <doc>
  23354. <![CDATA[This field is used to access special tokens that occur prior to this
  23355. token, but after the immediately preceding regular (non-special) token.
  23356. If there are no such special tokens, this field is set to null.
  23357. When there are more than one such special token, this field refers
  23358. to the last of these special tokens, which in turn refers to the next
  23359. previous special token through its specialToken field, and so on
  23360. until the first special token (whose specialToken field is null).
  23361. The next fields of special tokens refer to other special tokens that
  23362. immediately follow it (without an intervening regular token). If there
  23363. is no such token, this field is null.]]>
  23364. </doc>
  23365. </field>
  23366. <doc>
  23367. <![CDATA[Describes the input token stream.
  23368. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23369. </doc>
  23370. </class>
  23371. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  23372. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  23373. <class name="TokenMgrError" extends="java.lang.Error"
  23374. abstract="false"
  23375. static="false" final="false" visibility="public"
  23376. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23377. <constructor name="TokenMgrError"
  23378. static="false" final="false" visibility="public"
  23379. deprecated="not deprecated">
  23380. </constructor>
  23381. <constructor name="TokenMgrError" type="java.lang.String, int"
  23382. static="false" final="false" visibility="public"
  23383. deprecated="not deprecated">
  23384. </constructor>
  23385. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  23386. static="false" final="false" visibility="public"
  23387. deprecated="not deprecated">
  23388. </constructor>
  23389. <method name="addEscapes" return="java.lang.String"
  23390. abstract="false" native="false" synchronized="false"
  23391. static="true" final="true" visibility="protected"
  23392. deprecated="not deprecated">
  23393. <param name="str" type="java.lang.String"/>
  23394. <doc>
  23395. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  23396. equivalents in the given string]]>
  23397. </doc>
  23398. </method>
  23399. <method name="LexicalError" return="java.lang.String"
  23400. abstract="false" native="false" synchronized="false"
  23401. static="true" final="false" visibility="protected"
  23402. deprecated="not deprecated">
  23403. <param name="EOFSeen" type="boolean"/>
  23404. <param name="lexState" type="int"/>
  23405. <param name="errorLine" type="int"/>
  23406. <param name="errorColumn" type="int"/>
  23407. <param name="errorAfter" type="java.lang.String"/>
  23408. <param name="curChar" type="char"/>
  23409. <doc>
  23410. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  23411. token manager to indicate a lexical error.
  23412. Parameters :
  23413. EOFSeen : indicates if EOF caused the lexicl error
  23414. curLexState : lexical state in which this error occured
  23415. errorLine : line number when the error occured
  23416. errorColumn : column number when the error occured
  23417. errorAfter : prefix that was seen before this error occured
  23418. curchar : the offending character
  23419. Note: You can customize the lexical error message by modifying this method.]]>
  23420. </doc>
  23421. </method>
  23422. <method name="getMessage" return="java.lang.String"
  23423. abstract="false" native="false" synchronized="false"
  23424. static="false" final="false" visibility="public"
  23425. deprecated="not deprecated">
  23426. <doc>
  23427. <![CDATA[You can also modify the body of this method to customize your error messages.
  23428. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  23429. of end-users concern, so you can return something like :
  23430. "Internal Error : Please file a bug report .... "
  23431. from this method for such cases in the release version of your parser.]]>
  23432. </doc>
  23433. </method>
  23434. <doc>
  23435. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23436. </doc>
  23437. </class>
  23438. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  23439. <doc>
  23440. <![CDATA[<p>
  23441. (DEPRECATED) This package contains code generated by JavaCC from the
  23442. Hadoop record syntax file rcc.jj. For details about the
  23443. record file syntax please @see org.apache.hadoop.record.
  23444. </p>
  23445. <p>
  23446. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  23447. </p>]]>
  23448. </doc>
  23449. </package>
  23450. <package name="org.apache.hadoop.record.meta">
  23451. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  23452. <class name="FieldTypeInfo" extends="java.lang.Object"
  23453. abstract="false"
  23454. static="false" final="false" visibility="public"
  23455. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23456. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  23457. abstract="false" native="false" synchronized="false"
  23458. static="false" final="false" visibility="public"
  23459. deprecated="not deprecated">
  23460. <doc>
  23461. <![CDATA[get the field's TypeID object]]>
  23462. </doc>
  23463. </method>
  23464. <method name="getFieldID" return="java.lang.String"
  23465. abstract="false" native="false" synchronized="false"
  23466. static="false" final="false" visibility="public"
  23467. deprecated="not deprecated">
  23468. <doc>
  23469. <![CDATA[get the field's id (name)]]>
  23470. </doc>
  23471. </method>
  23472. <method name="equals" return="boolean"
  23473. abstract="false" native="false" synchronized="false"
  23474. static="false" final="false" visibility="public"
  23475. deprecated="not deprecated">
  23476. <param name="o" type="java.lang.Object"/>
  23477. <doc>
  23478. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  23479. </doc>
  23480. </method>
  23481. <method name="hashCode" return="int"
  23482. abstract="false" native="false" synchronized="false"
  23483. static="false" final="false" visibility="public"
  23484. deprecated="not deprecated">
  23485. <doc>
  23486. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  23487. be used as a hashmap key]]>
  23488. </doc>
  23489. </method>
  23490. <method name="equals" return="boolean"
  23491. abstract="false" native="false" synchronized="false"
  23492. static="false" final="false" visibility="public"
  23493. deprecated="not deprecated">
  23494. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  23495. </method>
  23496. <doc>
  23497. <![CDATA[Represents a type information for a field, which is made up of its
  23498. ID (name) and its type (a TypeID object).
  23499. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23500. </doc>
  23501. </class>
  23502. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  23503. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  23504. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  23505. abstract="false"
  23506. static="false" final="false" visibility="public"
  23507. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23508. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  23509. static="false" final="false" visibility="public"
  23510. deprecated="not deprecated">
  23511. </constructor>
  23512. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  23513. abstract="false" native="false" synchronized="false"
  23514. static="false" final="false" visibility="public"
  23515. deprecated="not deprecated">
  23516. <doc>
  23517. <![CDATA[get the TypeID of the map's key element]]>
  23518. </doc>
  23519. </method>
  23520. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  23521. abstract="false" native="false" synchronized="false"
  23522. static="false" final="false" visibility="public"
  23523. deprecated="not deprecated">
  23524. <doc>
  23525. <![CDATA[get the TypeID of the map's value element]]>
  23526. </doc>
  23527. </method>
  23528. <method name="equals" return="boolean"
  23529. abstract="false" native="false" synchronized="false"
  23530. static="false" final="false" visibility="public"
  23531. deprecated="not deprecated">
  23532. <param name="o" type="java.lang.Object"/>
  23533. <doc>
  23534. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  23535. same type]]>
  23536. </doc>
  23537. </method>
  23538. <method name="hashCode" return="int"
  23539. abstract="false" native="false" synchronized="false"
  23540. static="false" final="false" visibility="public"
  23541. deprecated="not deprecated">
  23542. <doc>
  23543. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  23544. be used as a hashmap key]]>
  23545. </doc>
  23546. </method>
  23547. <doc>
  23548. <![CDATA[Represents typeID for a Map
  23549. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23550. </doc>
  23551. </class>
  23552. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  23553. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  23554. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  23555. abstract="false"
  23556. static="false" final="false" visibility="public"
  23557. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23558. <constructor name="RecordTypeInfo"
  23559. static="false" final="false" visibility="public"
  23560. deprecated="not deprecated">
  23561. <doc>
  23562. <![CDATA[Create an empty RecordTypeInfo object.]]>
  23563. </doc>
  23564. </constructor>
  23565. <constructor name="RecordTypeInfo" type="java.lang.String"
  23566. static="false" final="false" visibility="public"
  23567. deprecated="not deprecated">
  23568. <doc>
  23569. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  23570. @param name Name of the record]]>
  23571. </doc>
  23572. </constructor>
  23573. <method name="getName" return="java.lang.String"
  23574. abstract="false" native="false" synchronized="false"
  23575. static="false" final="false" visibility="public"
  23576. deprecated="not deprecated">
  23577. <doc>
  23578. <![CDATA[return the name of the record]]>
  23579. </doc>
  23580. </method>
  23581. <method name="setName"
  23582. abstract="false" native="false" synchronized="false"
  23583. static="false" final="false" visibility="public"
  23584. deprecated="not deprecated">
  23585. <param name="name" type="java.lang.String"/>
  23586. <doc>
  23587. <![CDATA[set the name of the record]]>
  23588. </doc>
  23589. </method>
  23590. <method name="addField"
  23591. abstract="false" native="false" synchronized="false"
  23592. static="false" final="false" visibility="public"
  23593. deprecated="not deprecated">
  23594. <param name="fieldName" type="java.lang.String"/>
  23595. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  23596. <doc>
  23597. <![CDATA[Add a field.
  23598. @param fieldName Name of the field
  23599. @param tid Type ID of the field]]>
  23600. </doc>
  23601. </method>
  23602. <method name="getFieldTypeInfos" return="java.util.Collection"
  23603. abstract="false" native="false" synchronized="false"
  23604. static="false" final="false" visibility="public"
  23605. deprecated="not deprecated">
  23606. <doc>
  23607. <![CDATA[Return a collection of field type infos]]>
  23608. </doc>
  23609. </method>
  23610. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  23611. abstract="false" native="false" synchronized="false"
  23612. static="false" final="false" visibility="public"
  23613. deprecated="not deprecated">
  23614. <param name="name" type="java.lang.String"/>
  23615. <doc>
  23616. <![CDATA[Return the type info of a nested record. We only consider nesting
  23617. to one level.
  23618. @param name Name of the nested record]]>
  23619. </doc>
  23620. </method>
  23621. <method name="serialize"
  23622. abstract="false" native="false" synchronized="false"
  23623. static="false" final="false" visibility="public"
  23624. deprecated="not deprecated">
  23625. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  23626. <param name="tag" type="java.lang.String"/>
  23627. <exception name="IOException" type="java.io.IOException"/>
  23628. <doc>
  23629. <![CDATA[Serialize the type information for a record]]>
  23630. </doc>
  23631. </method>
  23632. <method name="deserialize"
  23633. abstract="false" native="false" synchronized="false"
  23634. static="false" final="false" visibility="public"
  23635. deprecated="not deprecated">
  23636. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  23637. <param name="tag" type="java.lang.String"/>
  23638. <exception name="IOException" type="java.io.IOException"/>
  23639. <doc>
  23640. <![CDATA[Deserialize the type information for a record]]>
  23641. </doc>
  23642. </method>
  23643. <method name="compareTo" return="int"
  23644. abstract="false" native="false" synchronized="false"
  23645. static="false" final="false" visibility="public"
  23646. deprecated="not deprecated">
  23647. <param name="peer_" type="java.lang.Object"/>
  23648. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  23649. <doc>
  23650. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  23651. for anything besides de/serializing.
  23652. So we always throw an exception.
  23653. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  23654. </doc>
  23655. </method>
  23656. <doc>
  23657. <![CDATA[A record's Type Information object which can read/write itself.
  23658. Type information for a record comprises metadata about the record,
  23659. as well as a collection of type information for each field in the record.
  23660. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23661. </doc>
  23662. </class>
  23663. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  23664. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  23665. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  23666. abstract="false"
  23667. static="false" final="false" visibility="public"
  23668. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23669. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  23670. static="false" final="false" visibility="public"
  23671. deprecated="not deprecated">
  23672. <doc>
  23673. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  23674. </doc>
  23675. </constructor>
  23676. <method name="getFieldTypeInfos" return="java.util.Collection"
  23677. abstract="false" native="false" synchronized="false"
  23678. static="false" final="false" visibility="public"
  23679. deprecated="not deprecated">
  23680. </method>
  23681. <method name="equals" return="boolean"
  23682. abstract="false" native="false" synchronized="false"
  23683. static="false" final="false" visibility="public"
  23684. deprecated="not deprecated">
  23685. <param name="o" type="java.lang.Object"/>
  23686. </method>
  23687. <method name="hashCode" return="int"
  23688. abstract="false" native="false" synchronized="false"
  23689. static="false" final="false" visibility="public"
  23690. deprecated="not deprecated">
  23691. </method>
  23692. <doc>
  23693. <![CDATA[Represents typeID for a struct
  23694. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23695. </doc>
  23696. </class>
  23697. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  23698. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  23699. <class name="TypeID" extends="java.lang.Object"
  23700. abstract="false"
  23701. static="false" final="false" visibility="public"
  23702. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23703. <method name="getTypeVal" return="byte"
  23704. abstract="false" native="false" synchronized="false"
  23705. static="false" final="false" visibility="public"
  23706. deprecated="not deprecated">
  23707. <doc>
  23708. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  23709. </doc>
  23710. </method>
  23711. <method name="equals" return="boolean"
  23712. abstract="false" native="false" synchronized="false"
  23713. static="false" final="false" visibility="public"
  23714. deprecated="not deprecated">
  23715. <param name="o" type="java.lang.Object"/>
  23716. <doc>
  23717. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  23718. </doc>
  23719. </method>
  23720. <method name="hashCode" return="int"
  23721. abstract="false" native="false" synchronized="false"
  23722. static="false" final="false" visibility="public"
  23723. deprecated="not deprecated">
  23724. <doc>
  23725. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  23726. be used as a hashmap key]]>
  23727. </doc>
  23728. </method>
  23729. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23730. transient="false" volatile="false"
  23731. static="true" final="true" visibility="public"
  23732. deprecated="not deprecated">
  23733. <doc>
  23734. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  23735. </doc>
  23736. </field>
  23737. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23738. transient="false" volatile="false"
  23739. static="true" final="true" visibility="public"
  23740. deprecated="not deprecated">
  23741. </field>
  23742. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23743. transient="false" volatile="false"
  23744. static="true" final="true" visibility="public"
  23745. deprecated="not deprecated">
  23746. </field>
  23747. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23748. transient="false" volatile="false"
  23749. static="true" final="true" visibility="public"
  23750. deprecated="not deprecated">
  23751. </field>
  23752. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23753. transient="false" volatile="false"
  23754. static="true" final="true" visibility="public"
  23755. deprecated="not deprecated">
  23756. </field>
  23757. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23758. transient="false" volatile="false"
  23759. static="true" final="true" visibility="public"
  23760. deprecated="not deprecated">
  23761. </field>
  23762. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23763. transient="false" volatile="false"
  23764. static="true" final="true" visibility="public"
  23765. deprecated="not deprecated">
  23766. </field>
  23767. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23768. transient="false" volatile="false"
  23769. static="true" final="true" visibility="public"
  23770. deprecated="not deprecated">
  23771. </field>
  23772. <field name="typeVal" type="byte"
  23773. transient="false" volatile="false"
  23774. static="false" final="false" visibility="protected"
  23775. deprecated="not deprecated">
  23776. </field>
  23777. <doc>
  23778. <![CDATA[Represents typeID for basic types.
  23779. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23780. </doc>
  23781. </class>
  23782. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  23783. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  23784. <class name="TypeID.RIOType" extends="java.lang.Object"
  23785. abstract="false"
  23786. static="true" final="true" visibility="public"
  23787. deprecated="not deprecated">
  23788. <constructor name="TypeID.RIOType"
  23789. static="false" final="false" visibility="public"
  23790. deprecated="not deprecated">
  23791. </constructor>
  23792. <field name="BOOL" type="byte"
  23793. transient="false" volatile="false"
  23794. static="true" final="true" visibility="public"
  23795. deprecated="not deprecated">
  23796. </field>
  23797. <field name="BUFFER" type="byte"
  23798. transient="false" volatile="false"
  23799. static="true" final="true" visibility="public"
  23800. deprecated="not deprecated">
  23801. </field>
  23802. <field name="BYTE" type="byte"
  23803. transient="false" volatile="false"
  23804. static="true" final="true" visibility="public"
  23805. deprecated="not deprecated">
  23806. </field>
  23807. <field name="DOUBLE" type="byte"
  23808. transient="false" volatile="false"
  23809. static="true" final="true" visibility="public"
  23810. deprecated="not deprecated">
  23811. </field>
  23812. <field name="FLOAT" type="byte"
  23813. transient="false" volatile="false"
  23814. static="true" final="true" visibility="public"
  23815. deprecated="not deprecated">
  23816. </field>
  23817. <field name="INT" type="byte"
  23818. transient="false" volatile="false"
  23819. static="true" final="true" visibility="public"
  23820. deprecated="not deprecated">
  23821. </field>
  23822. <field name="LONG" type="byte"
  23823. transient="false" volatile="false"
  23824. static="true" final="true" visibility="public"
  23825. deprecated="not deprecated">
  23826. </field>
  23827. <field name="MAP" type="byte"
  23828. transient="false" volatile="false"
  23829. static="true" final="true" visibility="public"
  23830. deprecated="not deprecated">
  23831. </field>
  23832. <field name="STRING" type="byte"
  23833. transient="false" volatile="false"
  23834. static="true" final="true" visibility="public"
  23835. deprecated="not deprecated">
  23836. </field>
  23837. <field name="STRUCT" type="byte"
  23838. transient="false" volatile="false"
  23839. static="true" final="true" visibility="public"
  23840. deprecated="not deprecated">
  23841. </field>
  23842. <field name="VECTOR" type="byte"
  23843. transient="false" volatile="false"
  23844. static="true" final="true" visibility="public"
  23845. deprecated="not deprecated">
  23846. </field>
  23847. <doc>
  23848. <![CDATA[constants representing the IDL types we support]]>
  23849. </doc>
  23850. </class>
  23851. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  23852. <!-- start class org.apache.hadoop.record.meta.Utils -->
  23853. <class name="Utils" extends="java.lang.Object"
  23854. abstract="false"
  23855. static="false" final="false" visibility="public"
  23856. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23857. <method name="skip"
  23858. abstract="false" native="false" synchronized="false"
  23859. static="true" final="false" visibility="public"
  23860. deprecated="not deprecated">
  23861. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  23862. <param name="tag" type="java.lang.String"/>
  23863. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  23864. <exception name="IOException" type="java.io.IOException"/>
  23865. <doc>
  23866. <![CDATA[read/skip bytes from stream based on a type]]>
  23867. </doc>
  23868. </method>
  23869. <doc>
  23870. <![CDATA[Various utility functions for Hadooop record I/O platform.
  23871. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23872. </doc>
  23873. </class>
  23874. <!-- end class org.apache.hadoop.record.meta.Utils -->
  23875. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  23876. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  23877. abstract="false"
  23878. static="false" final="false" visibility="public"
  23879. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  23880. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  23881. static="false" final="false" visibility="public"
  23882. deprecated="not deprecated">
  23883. </constructor>
  23884. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  23885. abstract="false" native="false" synchronized="false"
  23886. static="false" final="false" visibility="public"
  23887. deprecated="not deprecated">
  23888. </method>
  23889. <method name="equals" return="boolean"
  23890. abstract="false" native="false" synchronized="false"
  23891. static="false" final="false" visibility="public"
  23892. deprecated="not deprecated">
  23893. <param name="o" type="java.lang.Object"/>
  23894. <doc>
  23895. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  23896. same type]]>
  23897. </doc>
  23898. </method>
  23899. <method name="hashCode" return="int"
  23900. abstract="false" native="false" synchronized="false"
  23901. static="false" final="false" visibility="public"
  23902. deprecated="not deprecated">
  23903. <doc>
  23904. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  23905. be used as a hashmap key]]>
  23906. </doc>
  23907. </method>
  23908. <doc>
  23909. <![CDATA[Represents typeID for vector.
  23910. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  23911. </doc>
  23912. </class>
  23913. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  23914. </package>
  23915. <package name="org.apache.hadoop.security">
  23916. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  23917. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  23918. abstract="false"
  23919. static="true" final="true" visibility="public"
  23920. deprecated="not deprecated">
  23921. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  23922. abstract="false" native="false" synchronized="false"
  23923. static="true" final="false" visibility="public"
  23924. deprecated="not deprecated">
  23925. </method>
  23926. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  23927. abstract="false" native="false" synchronized="false"
  23928. static="true" final="false" visibility="public"
  23929. deprecated="not deprecated">
  23930. <param name="name" type="java.lang.String"/>
  23931. </method>
  23932. <method name="getMechanismName" return="java.lang.String"
  23933. abstract="false" native="false" synchronized="false"
  23934. static="false" final="false" visibility="public"
  23935. deprecated="not deprecated">
  23936. <doc>
  23937. <![CDATA[Return the SASL mechanism name]]>
  23938. </doc>
  23939. </method>
  23940. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  23941. abstract="false" native="false" synchronized="false"
  23942. static="true" final="false" visibility="public"
  23943. deprecated="not deprecated">
  23944. <param name="in" type="java.io.DataInput"/>
  23945. <exception name="IOException" type="java.io.IOException"/>
  23946. <doc>
  23947. <![CDATA[Read from in]]>
  23948. </doc>
  23949. </method>
  23950. <method name="write"
  23951. abstract="false" native="false" synchronized="false"
  23952. static="false" final="false" visibility="public"
  23953. deprecated="not deprecated">
  23954. <param name="out" type="java.io.DataOutput"/>
  23955. <exception name="IOException" type="java.io.IOException"/>
  23956. <doc>
  23957. <![CDATA[Write to out]]>
  23958. </doc>
  23959. </method>
  23960. <field name="code" type="byte"
  23961. transient="false" volatile="false"
  23962. static="false" final="true" visibility="public"
  23963. deprecated="not deprecated">
  23964. <doc>
  23965. <![CDATA[The code for this method.]]>
  23966. </doc>
  23967. </field>
  23968. <field name="mechanismName" type="java.lang.String"
  23969. transient="false" volatile="false"
  23970. static="false" final="true" visibility="public"
  23971. deprecated="not deprecated">
  23972. </field>
  23973. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  23974. transient="false" volatile="false"
  23975. static="false" final="true" visibility="public"
  23976. deprecated="not deprecated">
  23977. </field>
  23978. <doc>
  23979. <![CDATA[Authentication method]]>
  23980. </doc>
  23981. </class>
  23982. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  23983. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  23984. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  23985. abstract="false"
  23986. static="true" final="false" visibility="public"
  23987. deprecated="not deprecated">
  23988. <implements name="javax.security.auth.callback.CallbackHandler"/>
  23989. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  23990. static="false" final="false" visibility="public"
  23991. deprecated="not deprecated">
  23992. </constructor>
  23993. <method name="handle"
  23994. abstract="false" native="false" synchronized="false"
  23995. static="false" final="false" visibility="public"
  23996. deprecated="not deprecated">
  23997. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  23998. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  23999. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  24000. <doc>
  24001. <![CDATA[{@inheritDoc}]]>
  24002. </doc>
  24003. </method>
  24004. <doc>
  24005. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  24006. </doc>
  24007. </class>
  24008. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  24009. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  24010. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  24011. abstract="false"
  24012. static="true" final="false" visibility="public"
  24013. deprecated="not deprecated">
  24014. <implements name="javax.security.auth.callback.CallbackHandler"/>
  24015. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  24016. static="false" final="false" visibility="public"
  24017. deprecated="not deprecated">
  24018. </constructor>
  24019. <method name="handle"
  24020. abstract="false" native="false" synchronized="false"
  24021. static="false" final="false" visibility="public"
  24022. deprecated="not deprecated">
  24023. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  24024. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  24025. <doc>
  24026. <![CDATA[{@inheritDoc}]]>
  24027. </doc>
  24028. </method>
  24029. <doc>
  24030. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  24031. </doc>
  24032. </class>
  24033. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  24034. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  24035. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  24036. abstract="false"
  24037. static="true" final="true" visibility="public"
  24038. deprecated="not deprecated">
  24039. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  24040. abstract="false" native="false" synchronized="false"
  24041. static="true" final="false" visibility="public"
  24042. deprecated="not deprecated">
  24043. </method>
  24044. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  24045. abstract="false" native="false" synchronized="false"
  24046. static="true" final="false" visibility="public"
  24047. deprecated="not deprecated">
  24048. <param name="name" type="java.lang.String"/>
  24049. </method>
  24050. <field name="state" type="int"
  24051. transient="false" volatile="false"
  24052. static="false" final="true" visibility="public"
  24053. deprecated="not deprecated">
  24054. </field>
  24055. </class>
  24056. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  24057. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  24058. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  24059. abstract="false"
  24060. static="true" final="true" visibility="public"
  24061. deprecated="not deprecated">
  24062. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  24063. abstract="false" native="false" synchronized="false"
  24064. static="true" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. </method>
  24067. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  24068. abstract="false" native="false" synchronized="false"
  24069. static="true" final="false" visibility="public"
  24070. deprecated="not deprecated">
  24071. <param name="name" type="java.lang.String"/>
  24072. </method>
  24073. </class>
  24074. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  24075. </package>
  24076. <package name="org.apache.hadoop.security.authorize">
  24077. </package>
  24078. <package name="org.apache.hadoop.security.token">
  24079. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  24080. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  24081. abstract="false"
  24082. static="true" final="false" visibility="public"
  24083. deprecated="not deprecated">
  24084. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  24085. static="false" final="false" visibility="public"
  24086. deprecated="not deprecated">
  24087. </constructor>
  24088. <doc>
  24089. <![CDATA[The token was invalid and the message explains why.]]>
  24090. </doc>
  24091. </class>
  24092. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  24093. </package>
  24094. <package name="org.apache.hadoop.security.token.delegation">
  24095. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  24096. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  24097. abstract="false"
  24098. static="true" final="false" visibility="public"
  24099. deprecated="not deprecated">
  24100. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  24101. static="false" final="false" visibility="public"
  24102. deprecated="not deprecated">
  24103. </constructor>
  24104. <method name="getRenewDate" return="long"
  24105. abstract="false" native="false" synchronized="false"
  24106. static="false" final="false" visibility="public"
  24107. deprecated="not deprecated">
  24108. <doc>
  24109. <![CDATA[returns renew date]]>
  24110. </doc>
  24111. </method>
  24112. <doc>
  24113. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  24114. </doc>
  24115. </class>
  24116. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  24117. </package>
  24118. <package name="org.apache.hadoop.util">
  24119. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  24120. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  24121. abstract="false"
  24122. static="true" final="false" visibility="public"
  24123. deprecated="not deprecated">
  24124. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  24125. static="false" final="false" visibility="public"
  24126. deprecated="not deprecated">
  24127. </constructor>
  24128. </class>
  24129. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  24130. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  24131. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  24132. abstract="false"
  24133. static="true" final="false" visibility="public"
  24134. deprecated="not deprecated">
  24135. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  24136. static="false" final="false" visibility="public"
  24137. deprecated="not deprecated">
  24138. </constructor>
  24139. </class>
  24140. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  24141. <!-- start interface org.apache.hadoop.util.Progressable -->
  24142. <interface name="Progressable" abstract="true"
  24143. static="false" final="false" visibility="public"
  24144. deprecated="not deprecated">
  24145. <method name="progress"
  24146. abstract="false" native="false" synchronized="false"
  24147. static="false" final="false" visibility="public"
  24148. deprecated="not deprecated">
  24149. <doc>
  24150. <![CDATA[Report progress to the Hadoop framework.]]>
  24151. </doc>
  24152. </method>
  24153. <doc>
  24154. <![CDATA[A facility for reporting progress.
  24155. <p>Clients and/or applications can use the provided <code>Progressable</code>
  24156. to explicitly report progress to the Hadoop framework. This is especially
  24157. important for operations which take an insignificant amount of time since,
  24158. in-lieu of the reported progress, the framework has to assume that an error
  24159. has occured and time-out the operation.</p>]]>
  24160. </doc>
  24161. </interface>
  24162. <!-- end interface org.apache.hadoop.util.Progressable -->
  24163. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  24164. <class name="ReflectionUtils" extends="java.lang.Object"
  24165. abstract="false"
  24166. static="false" final="false" visibility="public"
  24167. deprecated="not deprecated">
  24168. <constructor name="ReflectionUtils"
  24169. static="false" final="false" visibility="public"
  24170. deprecated="not deprecated">
  24171. </constructor>
  24172. <method name="setConf"
  24173. abstract="false" native="false" synchronized="false"
  24174. static="true" final="false" visibility="public"
  24175. deprecated="not deprecated">
  24176. <param name="theObject" type="java.lang.Object"/>
  24177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24178. <doc>
  24179. <![CDATA[Check and set 'configuration' if necessary.
  24180. @param theObject object for which to set configuration
  24181. @param conf Configuration]]>
  24182. </doc>
  24183. </method>
  24184. <method name="newInstance" return="T"
  24185. abstract="false" native="false" synchronized="false"
  24186. static="true" final="false" visibility="public"
  24187. deprecated="not deprecated">
  24188. <param name="theClass" type="java.lang.Class"/>
  24189. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24190. <doc>
  24191. <![CDATA[Create an object for the given class and initialize it from conf
  24192. @param theClass class of which an object is created
  24193. @param conf Configuration
  24194. @return a new object]]>
  24195. </doc>
  24196. </method>
  24197. <method name="setContentionTracing"
  24198. abstract="false" native="false" synchronized="false"
  24199. static="true" final="false" visibility="public"
  24200. deprecated="not deprecated">
  24201. <param name="val" type="boolean"/>
  24202. </method>
  24203. <method name="printThreadInfo"
  24204. abstract="false" native="false" synchronized="false"
  24205. static="true" final="false" visibility="public"
  24206. deprecated="not deprecated">
  24207. <param name="stream" type="java.io.PrintWriter"/>
  24208. <param name="title" type="java.lang.String"/>
  24209. <doc>
  24210. <![CDATA[Print all of the thread's information and stack traces.
  24211. @param stream the stream to
  24212. @param title a string title for the stack trace]]>
  24213. </doc>
  24214. </method>
  24215. <method name="logThreadInfo"
  24216. abstract="false" native="false" synchronized="false"
  24217. static="true" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <param name="log" type="org.apache.commons.logging.Log"/>
  24220. <param name="title" type="java.lang.String"/>
  24221. <param name="minInterval" type="long"/>
  24222. <doc>
  24223. <![CDATA[Log the current thread stacks at INFO level.
  24224. @param log the logger that logs the stack trace
  24225. @param title a descriptive title for the call stacks
  24226. @param minInterval the minimum time from the last]]>
  24227. </doc>
  24228. </method>
  24229. <method name="getClass" return="java.lang.Class"
  24230. abstract="false" native="false" synchronized="false"
  24231. static="true" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <param name="o" type="T"/>
  24234. <doc>
  24235. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  24236. @param o object whose correctly-typed <code>Class</code> is to be obtained
  24237. @return the correctly typed <code>Class</code> of the given object.]]>
  24238. </doc>
  24239. </method>
  24240. <method name="copy" return="T"
  24241. abstract="false" native="false" synchronized="false"
  24242. static="true" final="false" visibility="public"
  24243. deprecated="not deprecated">
  24244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24245. <param name="src" type="T"/>
  24246. <param name="dst" type="T"/>
  24247. <exception name="IOException" type="java.io.IOException"/>
  24248. <doc>
  24249. <![CDATA[Make a copy of the writable object using serialization to a buffer
  24250. @param dst the object to copy from
  24251. @param src the object to copy into, which is destroyed
  24252. @throws IOException]]>
  24253. </doc>
  24254. </method>
  24255. <method name="cloneWritableInto"
  24256. abstract="false" native="false" synchronized="false"
  24257. static="true" final="false" visibility="public"
  24258. deprecated="not deprecated">
  24259. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  24260. <param name="src" type="org.apache.hadoop.io.Writable"/>
  24261. <exception name="IOException" type="java.io.IOException"/>
  24262. </method>
  24263. <doc>
  24264. <![CDATA[General reflection utils]]>
  24265. </doc>
  24266. </class>
  24267. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  24268. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  24269. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  24270. abstract="false"
  24271. static="true" final="false" visibility="public"
  24272. deprecated="not deprecated">
  24273. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  24274. static="false" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. </constructor>
  24277. <method name="getExitCode" return="int"
  24278. abstract="false" native="false" synchronized="false"
  24279. static="false" final="false" visibility="public"
  24280. deprecated="not deprecated">
  24281. </method>
  24282. <doc>
  24283. <![CDATA[This is an IOException with exit code added.]]>
  24284. </doc>
  24285. </class>
  24286. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  24287. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  24288. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  24289. abstract="false"
  24290. static="true" final="false" visibility="public"
  24291. deprecated="not deprecated">
  24292. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  24293. static="false" final="false" visibility="public"
  24294. deprecated="not deprecated">
  24295. </constructor>
  24296. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  24297. static="false" final="false" visibility="public"
  24298. deprecated="not deprecated">
  24299. </constructor>
  24300. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  24301. static="false" final="false" visibility="public"
  24302. deprecated="not deprecated">
  24303. </constructor>
  24304. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  24305. static="false" final="false" visibility="public"
  24306. deprecated="not deprecated">
  24307. <doc>
  24308. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  24309. @param execString The command to execute with arguments
  24310. @param dir If not-null, specifies the directory which should be set
  24311. as the current working directory for the command.
  24312. If null, the current working directory is not modified.
  24313. @param env If not-null, environment of the command will include the
  24314. key-value pairs specified in the map. If null, the current
  24315. environment is not modified.
  24316. @param timeout Specifies the time in milliseconds, after which the
  24317. command will be killed and the status marked as timedout.
  24318. If 0, the command will not be timed out.]]>
  24319. </doc>
  24320. </constructor>
  24321. <method name="execute"
  24322. abstract="false" native="false" synchronized="false"
  24323. static="false" final="false" visibility="public"
  24324. deprecated="not deprecated">
  24325. <exception name="IOException" type="java.io.IOException"/>
  24326. <doc>
  24327. <![CDATA[Execute the shell command.]]>
  24328. </doc>
  24329. </method>
  24330. <method name="getExecString" return="java.lang.String[]"
  24331. abstract="false" native="false" synchronized="false"
  24332. static="false" final="false" visibility="public"
  24333. deprecated="not deprecated">
  24334. </method>
  24335. <method name="parseExecResult"
  24336. abstract="false" native="false" synchronized="false"
  24337. static="false" final="false" visibility="protected"
  24338. deprecated="not deprecated">
  24339. <param name="lines" type="java.io.BufferedReader"/>
  24340. <exception name="IOException" type="java.io.IOException"/>
  24341. </method>
  24342. <method name="getOutput" return="java.lang.String"
  24343. abstract="false" native="false" synchronized="false"
  24344. static="false" final="false" visibility="public"
  24345. deprecated="not deprecated">
  24346. <doc>
  24347. <![CDATA[Get the output of the shell command.]]>
  24348. </doc>
  24349. </method>
  24350. <method name="toString" return="java.lang.String"
  24351. abstract="false" native="false" synchronized="false"
  24352. static="false" final="false" visibility="public"
  24353. deprecated="not deprecated">
  24354. <doc>
  24355. <![CDATA[Returns the commands of this instance.
  24356. Arguments with spaces in are presented with quotes round; other
  24357. arguments are presented raw
  24358. @return a string representation of the object.]]>
  24359. </doc>
  24360. </method>
  24361. <doc>
  24362. <![CDATA[A simple shell command executor.
  24363. <code>ShellCommandExecutor</code>should be used in cases where the output
  24364. of the command needs no explicit parsing and where the command, working
  24365. directory and the environment remains unchanged. The output of the command
  24366. is stored as-is and is expected to be small.]]>
  24367. </doc>
  24368. </class>
  24369. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  24370. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  24371. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  24372. abstract="false"
  24373. static="true" final="true" visibility="public"
  24374. deprecated="not deprecated">
  24375. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  24376. abstract="false" native="false" synchronized="false"
  24377. static="true" final="false" visibility="public"
  24378. deprecated="not deprecated">
  24379. </method>
  24380. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  24381. abstract="false" native="false" synchronized="false"
  24382. static="true" final="false" visibility="public"
  24383. deprecated="not deprecated">
  24384. <param name="name" type="java.lang.String"/>
  24385. </method>
  24386. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  24387. abstract="false" native="false" synchronized="false"
  24388. static="true" final="false" visibility="public"
  24389. deprecated="not deprecated">
  24390. <param name="symbol" type="char"/>
  24391. <doc>
  24392. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  24393. </doc>
  24394. </method>
  24395. <method name="string2long" return="long"
  24396. abstract="false" native="false" synchronized="false"
  24397. static="true" final="false" visibility="public"
  24398. deprecated="not deprecated">
  24399. <param name="s" type="java.lang.String"/>
  24400. <doc>
  24401. <![CDATA[Convert a string to long.
  24402. The input string is first be trimmed
  24403. and then it is parsed with traditional binary prefix.
  24404. For example,
  24405. "-1230k" will be converted to -1230 * 1024 = -1259520;
  24406. "891g" will be converted to 891 * 1024^3 = 956703965184;
  24407. @param s input string
  24408. @return a long value represented by the input string.]]>
  24409. </doc>
  24410. </method>
  24411. <field name="value" type="long"
  24412. transient="false" volatile="false"
  24413. static="false" final="true" visibility="public"
  24414. deprecated="not deprecated">
  24415. </field>
  24416. <field name="symbol" type="char"
  24417. transient="false" volatile="false"
  24418. static="false" final="true" visibility="public"
  24419. deprecated="not deprecated">
  24420. </field>
  24421. <doc>
  24422. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  24423. which can be represented by a 64-bit integer.
  24424. TraditionalBinaryPrefix symbol are case insensitive.]]>
  24425. </doc>
  24426. </class>
  24427. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  24428. <!-- start interface org.apache.hadoop.util.Tool -->
  24429. <interface name="Tool" abstract="true"
  24430. static="false" final="false" visibility="public"
  24431. deprecated="not deprecated">
  24432. <implements name="org.apache.hadoop.conf.Configurable"/>
  24433. <method name="run" return="int"
  24434. abstract="false" native="false" synchronized="false"
  24435. static="false" final="false" visibility="public"
  24436. deprecated="not deprecated">
  24437. <param name="args" type="java.lang.String[]"/>
  24438. <exception name="Exception" type="java.lang.Exception"/>
  24439. <doc>
  24440. <![CDATA[Execute the command with the given arguments.
  24441. @param args command specific arguments.
  24442. @return exit code.
  24443. @throws Exception]]>
  24444. </doc>
  24445. </method>
  24446. <doc>
  24447. <![CDATA[A tool interface that supports handling of generic command-line options.
  24448. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  24449. The tool/application should delegate the handling of
  24450. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  24451. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  24452. and only handle its custom arguments.</p>
  24453. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  24454. <p><blockquote><pre>
  24455. public class MyApp extends Configured implements Tool {
  24456. public int run(String[] args) throws Exception {
  24457. // <code>Configuration</code> processed by <code>ToolRunner</code>
  24458. Configuration conf = getConf();
  24459. // Create a JobConf using the processed <code>conf</code>
  24460. JobConf job = new JobConf(conf, MyApp.class);
  24461. // Process custom command-line options
  24462. Path in = new Path(args[1]);
  24463. Path out = new Path(args[2]);
  24464. // Specify various job-specific parameters
  24465. job.setJobName("my-app");
  24466. job.setInputPath(in);
  24467. job.setOutputPath(out);
  24468. job.setMapperClass(MyMapper.class);
  24469. job.setReducerClass(MyReducer.class);
  24470. // Submit the job, then poll for progress until the job is complete
  24471. JobClient.runJob(job);
  24472. return 0;
  24473. }
  24474. public static void main(String[] args) throws Exception {
  24475. // Let <code>ToolRunner</code> handle generic command-line options
  24476. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  24477. System.exit(res);
  24478. }
  24479. }
  24480. </pre></blockquote></p>
  24481. @see GenericOptionsParser
  24482. @see ToolRunner]]>
  24483. </doc>
  24484. </interface>
  24485. <!-- end interface org.apache.hadoop.util.Tool -->
  24486. <!-- start class org.apache.hadoop.util.ToolRunner -->
  24487. <class name="ToolRunner" extends="java.lang.Object"
  24488. abstract="false"
  24489. static="false" final="false" visibility="public"
  24490. deprecated="not deprecated">
  24491. <constructor name="ToolRunner"
  24492. static="false" final="false" visibility="public"
  24493. deprecated="not deprecated">
  24494. </constructor>
  24495. <method name="run" return="int"
  24496. abstract="false" native="false" synchronized="false"
  24497. static="true" final="false" visibility="public"
  24498. deprecated="not deprecated">
  24499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24500. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  24501. <param name="args" type="java.lang.String[]"/>
  24502. <exception name="Exception" type="java.lang.Exception"/>
  24503. <doc>
  24504. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  24505. parsing with the given generic arguments. Uses the given
  24506. <code>Configuration</code>, or builds one if null.
  24507. Sets the <code>Tool</code>'s configuration with the possibly modified
  24508. version of the <code>conf</code>.
  24509. @param conf <code>Configuration</code> for the <code>Tool</code>.
  24510. @param tool <code>Tool</code> to run.
  24511. @param args command-line arguments to the tool.
  24512. @return exit code of the {@link Tool#run(String[])} method.]]>
  24513. </doc>
  24514. </method>
  24515. <method name="run" return="int"
  24516. abstract="false" native="false" synchronized="false"
  24517. static="true" final="false" visibility="public"
  24518. deprecated="not deprecated">
  24519. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  24520. <param name="args" type="java.lang.String[]"/>
  24521. <exception name="Exception" type="java.lang.Exception"/>
  24522. <doc>
  24523. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  24524. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  24525. @param tool <code>Tool</code> to run.
  24526. @param args command-line arguments to the tool.
  24527. @return exit code of the {@link Tool#run(String[])} method.]]>
  24528. </doc>
  24529. </method>
  24530. <method name="printGenericCommandUsage"
  24531. abstract="false" native="false" synchronized="false"
  24532. static="true" final="false" visibility="public"
  24533. deprecated="not deprecated">
  24534. <param name="out" type="java.io.PrintStream"/>
  24535. <doc>
  24536. <![CDATA[Prints generic command-line argurments and usage information.
  24537. @param out stream to write usage information to.]]>
  24538. </doc>
  24539. </method>
  24540. <doc>
  24541. <![CDATA[A utility to help run {@link Tool}s.
  24542. <p><code>ToolRunner</code> can be used to run classes implementing
  24543. <code>Tool</code> interface. It works in conjunction with
  24544. {@link GenericOptionsParser} to parse the
  24545. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  24546. generic hadoop command line arguments</a> and modifies the
  24547. <code>Configuration</code> of the <code>Tool</code>. The
  24548. application-specific options are passed along without being modified.
  24549. </p>
  24550. @see Tool
  24551. @see GenericOptionsParser]]>
  24552. </doc>
  24553. </class>
  24554. <!-- end class org.apache.hadoop.util.ToolRunner -->
  24555. <doc>
  24556. <![CDATA[Common utilities.]]>
  24557. </doc>
  24558. </package>
  24559. <package name="org.apache.hadoop.util.bloom">
  24560. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  24561. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  24562. abstract="false"
  24563. static="false" final="false" visibility="public"
  24564. deprecated="not deprecated">
  24565. <constructor name="BloomFilter"
  24566. static="false" final="false" visibility="public"
  24567. deprecated="not deprecated">
  24568. <doc>
  24569. <![CDATA[Default constructor - use with readFields]]>
  24570. </doc>
  24571. </constructor>
  24572. <constructor name="BloomFilter" type="int, int, int"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. <doc>
  24576. <![CDATA[Constructor
  24577. @param vectorSize The vector size of <i>this</i> filter.
  24578. @param nbHash The number of hash function to consider.
  24579. @param hashType type of the hashing function (see
  24580. {@link org.apache.hadoop.util.hash.Hash}).]]>
  24581. </doc>
  24582. </constructor>
  24583. <method name="add"
  24584. abstract="false" native="false" synchronized="false"
  24585. static="false" final="false" visibility="public"
  24586. deprecated="not deprecated">
  24587. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24588. </method>
  24589. <method name="and"
  24590. abstract="false" native="false" synchronized="false"
  24591. static="false" final="false" visibility="public"
  24592. deprecated="not deprecated">
  24593. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24594. </method>
  24595. <method name="membershipTest" return="boolean"
  24596. abstract="false" native="false" synchronized="false"
  24597. static="false" final="false" visibility="public"
  24598. deprecated="not deprecated">
  24599. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24600. </method>
  24601. <method name="not"
  24602. abstract="false" native="false" synchronized="false"
  24603. static="false" final="false" visibility="public"
  24604. deprecated="not deprecated">
  24605. </method>
  24606. <method name="or"
  24607. abstract="false" native="false" synchronized="false"
  24608. static="false" final="false" visibility="public"
  24609. deprecated="not deprecated">
  24610. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24611. </method>
  24612. <method name="xor"
  24613. abstract="false" native="false" synchronized="false"
  24614. static="false" final="false" visibility="public"
  24615. deprecated="not deprecated">
  24616. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24617. </method>
  24618. <method name="toString" return="java.lang.String"
  24619. abstract="false" native="false" synchronized="false"
  24620. static="false" final="false" visibility="public"
  24621. deprecated="not deprecated">
  24622. </method>
  24623. <method name="getVectorSize" return="int"
  24624. abstract="false" native="false" synchronized="false"
  24625. static="false" final="false" visibility="public"
  24626. deprecated="not deprecated">
  24627. <doc>
  24628. <![CDATA[@return size of the the bloomfilter]]>
  24629. </doc>
  24630. </method>
  24631. <method name="write"
  24632. abstract="false" native="false" synchronized="false"
  24633. static="false" final="false" visibility="public"
  24634. deprecated="not deprecated">
  24635. <param name="out" type="java.io.DataOutput"/>
  24636. <exception name="IOException" type="java.io.IOException"/>
  24637. </method>
  24638. <method name="readFields"
  24639. abstract="false" native="false" synchronized="false"
  24640. static="false" final="false" visibility="public"
  24641. deprecated="not deprecated">
  24642. <param name="in" type="java.io.DataInput"/>
  24643. <exception name="IOException" type="java.io.IOException"/>
  24644. </method>
  24645. <doc>
  24646. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  24647. <p>
  24648. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  24649. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  24650. offers for the transmission of set membership information between networked hosts. A sender encodes
  24651. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  24652. representation. Computation and space costs for construction are linear in the number of elements.
  24653. The receiver uses the filter to test whether various elements are members of the set. Though the
  24654. filter will occasionally return a false positive, it will never return a false negative. When creating
  24655. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  24656. <p>
  24657. Originally created by
  24658. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  24659. @see Filter The general behavior of a filter
  24660. @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>]]>
  24661. </doc>
  24662. </class>
  24663. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  24664. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  24665. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  24666. abstract="false"
  24667. static="false" final="true" visibility="public"
  24668. deprecated="not deprecated">
  24669. <constructor name="CountingBloomFilter"
  24670. static="false" final="false" visibility="public"
  24671. deprecated="not deprecated">
  24672. <doc>
  24673. <![CDATA[Default constructor - use with readFields]]>
  24674. </doc>
  24675. </constructor>
  24676. <constructor name="CountingBloomFilter" type="int, int, int"
  24677. static="false" final="false" visibility="public"
  24678. deprecated="not deprecated">
  24679. <doc>
  24680. <![CDATA[Constructor
  24681. @param vectorSize The vector size of <i>this</i> filter.
  24682. @param nbHash The number of hash function to consider.
  24683. @param hashType type of the hashing function (see
  24684. {@link org.apache.hadoop.util.hash.Hash}).]]>
  24685. </doc>
  24686. </constructor>
  24687. <method name="add"
  24688. abstract="false" native="false" synchronized="false"
  24689. static="false" final="false" visibility="public"
  24690. deprecated="not deprecated">
  24691. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24692. </method>
  24693. <method name="delete"
  24694. abstract="false" native="false" synchronized="false"
  24695. static="false" final="false" visibility="public"
  24696. deprecated="not deprecated">
  24697. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24698. <doc>
  24699. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  24700. <p>
  24701. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  24702. @param key The key to remove.]]>
  24703. </doc>
  24704. </method>
  24705. <method name="and"
  24706. abstract="false" native="false" synchronized="false"
  24707. static="false" final="false" visibility="public"
  24708. deprecated="not deprecated">
  24709. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24710. </method>
  24711. <method name="membershipTest" return="boolean"
  24712. abstract="false" native="false" synchronized="false"
  24713. static="false" final="false" visibility="public"
  24714. deprecated="not deprecated">
  24715. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24716. </method>
  24717. <method name="approximateCount" return="int"
  24718. abstract="false" native="false" synchronized="false"
  24719. static="false" final="false" visibility="public"
  24720. deprecated="not deprecated">
  24721. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24722. <doc>
  24723. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  24724. times the key was added to the filter. This allows the filter to be
  24725. used as an approximate <code>key -&gt; count</code> map.
  24726. <p>NOTE: due to the bucket size of this filter, inserting the same
  24727. key more than 15 times will cause an overflow at all filter positions
  24728. associated with this key, and it will significantly increase the error
  24729. rate for this and other keys. For this reason the filter can only be
  24730. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  24731. @param key key to be tested
  24732. @return 0 if the key is not present. Otherwise, a positive value v will
  24733. be returned such that <code>v == count</code> with probability equal to the
  24734. error rate of this filter, and <code>v &gt; count</code> otherwise.
  24735. Additionally, if the filter experienced an underflow as a result of
  24736. {@link #delete(Key)} operation, the return value may be lower than the
  24737. <code>count</code> with the probability of the false negative rate of such
  24738. filter.]]>
  24739. </doc>
  24740. </method>
  24741. <method name="not"
  24742. abstract="false" native="false" synchronized="false"
  24743. static="false" final="false" visibility="public"
  24744. deprecated="not deprecated">
  24745. </method>
  24746. <method name="or"
  24747. abstract="false" native="false" synchronized="false"
  24748. static="false" final="false" visibility="public"
  24749. deprecated="not deprecated">
  24750. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24751. </method>
  24752. <method name="xor"
  24753. abstract="false" native="false" synchronized="false"
  24754. static="false" final="false" visibility="public"
  24755. deprecated="not deprecated">
  24756. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24757. </method>
  24758. <method name="toString" return="java.lang.String"
  24759. abstract="false" native="false" synchronized="false"
  24760. static="false" final="false" visibility="public"
  24761. deprecated="not deprecated">
  24762. </method>
  24763. <method name="write"
  24764. abstract="false" native="false" synchronized="false"
  24765. static="false" final="false" visibility="public"
  24766. deprecated="not deprecated">
  24767. <param name="out" type="java.io.DataOutput"/>
  24768. <exception name="IOException" type="java.io.IOException"/>
  24769. </method>
  24770. <method name="readFields"
  24771. abstract="false" native="false" synchronized="false"
  24772. static="false" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. <param name="in" type="java.io.DataInput"/>
  24775. <exception name="IOException" type="java.io.IOException"/>
  24776. </method>
  24777. <doc>
  24778. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  24779. 2000 paper.
  24780. <p>
  24781. A counting Bloom filter is an improvement to standard a Bloom filter as it
  24782. allows dynamic additions and deletions of set membership information. This
  24783. is achieved through the use of a counting vector instead of a bit vector.
  24784. <p>
  24785. Originally created by
  24786. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  24787. @see Filter The general behavior of a filter
  24788. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  24789. </doc>
  24790. </class>
  24791. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  24792. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  24793. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  24794. abstract="false"
  24795. static="false" final="false" visibility="public"
  24796. deprecated="not deprecated">
  24797. <constructor name="DynamicBloomFilter"
  24798. static="false" final="false" visibility="public"
  24799. deprecated="not deprecated">
  24800. <doc>
  24801. <![CDATA[Zero-args constructor for the serialization.]]>
  24802. </doc>
  24803. </constructor>
  24804. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  24805. static="false" final="false" visibility="public"
  24806. deprecated="not deprecated">
  24807. <doc>
  24808. <![CDATA[Constructor.
  24809. <p>
  24810. Builds an empty Dynamic Bloom filter.
  24811. @param vectorSize The number of bits in the vector.
  24812. @param nbHash The number of hash function to consider.
  24813. @param hashType type of the hashing function (see
  24814. {@link org.apache.hadoop.util.hash.Hash}).
  24815. @param nr The threshold for the maximum number of keys to record in a
  24816. dynamic Bloom filter row.]]>
  24817. </doc>
  24818. </constructor>
  24819. <method name="add"
  24820. abstract="false" native="false" synchronized="false"
  24821. static="false" final="false" visibility="public"
  24822. deprecated="not deprecated">
  24823. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24824. </method>
  24825. <method name="and"
  24826. abstract="false" native="false" synchronized="false"
  24827. static="false" final="false" visibility="public"
  24828. deprecated="not deprecated">
  24829. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24830. </method>
  24831. <method name="membershipTest" return="boolean"
  24832. abstract="false" native="false" synchronized="false"
  24833. static="false" final="false" visibility="public"
  24834. deprecated="not deprecated">
  24835. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  24836. </method>
  24837. <method name="not"
  24838. abstract="false" native="false" synchronized="false"
  24839. static="false" final="false" visibility="public"
  24840. deprecated="not deprecated">
  24841. </method>
  24842. <method name="or"
  24843. abstract="false" native="false" synchronized="false"
  24844. static="false" final="false" visibility="public"
  24845. deprecated="not deprecated">
  24846. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24847. </method>
  24848. <method name="xor"
  24849. abstract="false" native="false" synchronized="false"
  24850. static="false" final="false" visibility="public"
  24851. deprecated="not deprecated">
  24852. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  24853. </method>
  24854. <method name="toString" return="java.lang.String"
  24855. abstract="false" native="false" synchronized="false"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. </method>
  24859. <method name="write"
  24860. abstract="false" native="false" synchronized="false"
  24861. static="false" final="false" visibility="public"
  24862. deprecated="not deprecated">
  24863. <param name="out" type="java.io.DataOutput"/>
  24864. <exception name="IOException" type="java.io.IOException"/>
  24865. </method>
  24866. <method name="readFields"
  24867. abstract="false" native="false" synchronized="false"
  24868. static="false" final="false" visibility="public"
  24869. deprecated="not deprecated">
  24870. <param name="in" type="java.io.DataInput"/>
  24871. <exception name="IOException" type="java.io.IOException"/>
  24872. </method>
  24873. <doc>
  24874. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  24875. <p>
  24876. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  24877. each of the <code>s</code> rows is a standard Bloom filter. The creation
  24878. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  24879. bit matrix, i.e., it is composed of a single standard Bloom filter.
  24880. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  24881. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  24882. the cardinality of the set <code>A</code> to record in the filter).
  24883. <p>
  24884. As the size of <code>A</code> grows during the execution of the application,
  24885. several keys must be inserted in the DBF. When inserting a key into the DBF,
  24886. one must first get an active Bloom filter in the matrix. A Bloom filter is
  24887. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  24888. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  24889. If an active Bloom filter is found, the key is inserted and
  24890. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  24891. is no active Bloom filter, a new one is created (i.e., a new row is added to
  24892. the matrix) according to the current size of <code>A</code> and the element
  24893. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  24894. this new Bloom filter is set to one. A given key is said to belong to the
  24895. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  24896. <p>
  24897. Originally created by
  24898. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  24899. @see Filter The general behavior of a filter
  24900. @see BloomFilter A Bloom filter
  24901. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  24902. </doc>
  24903. </class>
  24904. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  24905. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  24906. <class name="HashFunction" extends="java.lang.Object"
  24907. abstract="false"
  24908. static="false" final="true" visibility="public"
  24909. deprecated="not deprecated">
  24910. <constructor name="HashFunction" type="int, int, int"
  24911. static="false" final="false" visibility="public"
  24912. deprecated="not deprecated">
  24913. <doc>
  24914. <![CDATA[Constructor.
  24915. <p>
  24916. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  24917. @param maxValue The maximum highest returned value.
  24918. @param nbHash The number of resulting hashed values.
  24919. @param hashType type of the hashing function (see {@link Hash}).]]>
  24920. </doc>
  24921. </constructor>
  24922. <method name="clear"
  24923. abstract="false" native="false" synchronized="false"
  24924. static="false" final="false" visibility="public"
  24925. deprecated="not deprecated">
  24926. <doc>
  24927. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  24928. </doc>
  24929. </method>
  24930. <method name="hash" return="int[]"
  24931. abstract="false" native="false" synchronized="false"
  24932. static="false" final="false" visibility="public"
  24933. deprecated="not deprecated">
  24934. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  24935. <doc>
  24936. <![CDATA[Hashes a specified key into several integers.
  24937. @param k The specified key.
  24938. @return The array of hashed values.]]>
  24939. </doc>
  24940. </method>
  24941. <doc>
  24942. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  24943. @see Key The general behavior of a key being stored in a filter
  24944. @see Filter The general behavior of a filter]]>
  24945. </doc>
  24946. </class>
  24947. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  24948. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  24949. <interface name="RemoveScheme" abstract="true"
  24950. static="false" final="false" visibility="public"
  24951. deprecated="not deprecated">
  24952. <field name="RANDOM" type="short"
  24953. transient="false" volatile="false"
  24954. static="true" final="true" visibility="public"
  24955. deprecated="not deprecated">
  24956. <doc>
  24957. <![CDATA[Random selection.
  24958. <p>
  24959. The idea is to randomly select a bit to reset.]]>
  24960. </doc>
  24961. </field>
  24962. <field name="MINIMUM_FN" type="short"
  24963. transient="false" volatile="false"
  24964. static="true" final="true" visibility="public"
  24965. deprecated="not deprecated">
  24966. <doc>
  24967. <![CDATA[MinimumFN Selection.
  24968. <p>
  24969. The idea is to select the bit to reset that will generate the minimum
  24970. number of false negative.]]>
  24971. </doc>
  24972. </field>
  24973. <field name="MAXIMUM_FP" type="short"
  24974. transient="false" volatile="false"
  24975. static="true" final="true" visibility="public"
  24976. deprecated="not deprecated">
  24977. <doc>
  24978. <![CDATA[MaximumFP Selection.
  24979. <p>
  24980. The idea is to select the bit to reset that will remove the maximum number
  24981. of false positive.]]>
  24982. </doc>
  24983. </field>
  24984. <field name="RATIO" type="short"
  24985. transient="false" volatile="false"
  24986. static="true" final="true" visibility="public"
  24987. deprecated="not deprecated">
  24988. <doc>
  24989. <![CDATA[Ratio Selection.
  24990. <p>
  24991. The idea is to select the bit to reset that will, at the same time, remove
  24992. the maximum number of false positve while minimizing the amount of false
  24993. negative generated.]]>
  24994. </doc>
  24995. </field>
  24996. <doc>
  24997. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  24998. <p>
  24999. Originally created by
  25000. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  25001. </doc>
  25002. </interface>
  25003. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  25004. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  25005. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  25006. abstract="false"
  25007. static="false" final="true" visibility="public"
  25008. deprecated="not deprecated">
  25009. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  25010. <constructor name="RetouchedBloomFilter"
  25011. static="false" final="false" visibility="public"
  25012. deprecated="not deprecated">
  25013. <doc>
  25014. <![CDATA[Default constructor - use with readFields]]>
  25015. </doc>
  25016. </constructor>
  25017. <constructor name="RetouchedBloomFilter" type="int, int, int"
  25018. static="false" final="false" visibility="public"
  25019. deprecated="not deprecated">
  25020. <doc>
  25021. <![CDATA[Constructor
  25022. @param vectorSize The vector size of <i>this</i> filter.
  25023. @param nbHash The number of hash function to consider.
  25024. @param hashType type of the hashing function (see
  25025. {@link org.apache.hadoop.util.hash.Hash}).]]>
  25026. </doc>
  25027. </constructor>
  25028. <method name="add"
  25029. abstract="false" native="false" synchronized="false"
  25030. static="false" final="false" visibility="public"
  25031. deprecated="not deprecated">
  25032. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  25033. </method>
  25034. <method name="addFalsePositive"
  25035. abstract="false" native="false" synchronized="false"
  25036. static="false" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  25039. <doc>
  25040. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  25041. <p>
  25042. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  25043. @param key The false positive key to add.]]>
  25044. </doc>
  25045. </method>
  25046. <method name="addFalsePositive"
  25047. abstract="false" native="false" synchronized="false"
  25048. static="false" final="false" visibility="public"
  25049. deprecated="not deprecated">
  25050. <param name="coll" type="java.util.Collection"/>
  25051. <doc>
  25052. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  25053. @param coll The collection of false positive.]]>
  25054. </doc>
  25055. </method>
  25056. <method name="addFalsePositive"
  25057. abstract="false" native="false" synchronized="false"
  25058. static="false" final="false" visibility="public"
  25059. deprecated="not deprecated">
  25060. <param name="keys" type="java.util.List"/>
  25061. <doc>
  25062. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  25063. @param keys The list of false positive.]]>
  25064. </doc>
  25065. </method>
  25066. <method name="addFalsePositive"
  25067. abstract="false" native="false" synchronized="false"
  25068. static="false" final="false" visibility="public"
  25069. deprecated="not deprecated">
  25070. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  25071. <doc>
  25072. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  25073. @param keys The array of false positive.]]>
  25074. </doc>
  25075. </method>
  25076. <method name="selectiveClearing"
  25077. abstract="false" native="false" synchronized="false"
  25078. static="false" final="false" visibility="public"
  25079. deprecated="not deprecated">
  25080. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  25081. <param name="scheme" type="short"/>
  25082. <doc>
  25083. <![CDATA[Performs the selective clearing for a given key.
  25084. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  25085. @param scheme The selective clearing scheme to apply.]]>
  25086. </doc>
  25087. </method>
  25088. <method name="write"
  25089. abstract="false" native="false" synchronized="false"
  25090. static="false" final="false" visibility="public"
  25091. deprecated="not deprecated">
  25092. <param name="out" type="java.io.DataOutput"/>
  25093. <exception name="IOException" type="java.io.IOException"/>
  25094. </method>
  25095. <method name="readFields"
  25096. abstract="false" native="false" synchronized="false"
  25097. static="false" final="false" visibility="public"
  25098. deprecated="not deprecated">
  25099. <param name="in" type="java.io.DataInput"/>
  25100. <exception name="IOException" type="java.io.IOException"/>
  25101. </method>
  25102. <doc>
  25103. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  25104. <p>
  25105. It allows the removal of selected false positives at the cost of introducing
  25106. random false negatives, and with the benefit of eliminating some random false
  25107. positives at the same time.
  25108. <p>
  25109. Originally created by
  25110. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  25111. @see Filter The general behavior of a filter
  25112. @see BloomFilter A Bloom filter
  25113. @see RemoveScheme The different selective clearing algorithms
  25114. @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>]]>
  25115. </doc>
  25116. </class>
  25117. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  25118. </package>
  25119. <package name="org.apache.hadoop.util.hash">
  25120. </package>
  25121. </api>