Apache_Hadoop_Common_2.7.2.xml 1.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555
  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 Wed Aug 24 13:50:51 PDT 2016 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop Common 2.7.2"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/target/jdiff.jar -verbose -classpath /Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/target/classes:/Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-2.7.2.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/tools.jar:/Users/vinodkv/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/Users/vinodkv/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/vinodkv/.m2/repository/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/Users/vinodkv/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/vinodkv/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/vinodkv/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/vinodkv/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/vinodkv/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/Users/vinodkv/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/Users/vinodkv/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/vinodkv/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/vinodkv/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/vinodkv/.m2/repository/com/sun/jersey/jersey-core/1.9/jersey-core-1.9.jar:/Users/vinodkv/.m2/repository/com/sun/jersey/jersey-json/1.9/jersey-json-1.9.jar:/Users/vinodkv/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/Users/vinodkv/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/vinodkv/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/Users/vinodkv/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar:/Users/vinodkv/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/vinodkv/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/Users/vinodkv/.m2/repository/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/Users/vinodkv/.m2/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.jar:/Users/vinodkv/.m2/repository/asm/asm/3.2/asm-3.2.jar:/Users/vinodkv/.m2/repository/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/vinodkv/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/vinodkv/.m2/repository/net/java/dev/jets3t/jets3t/0.9.0/jets3t-0.9.0.jar:/Users/vinodkv/.m2/repository/org/apache/httpcomponents/httpclient/4.2.5/httpclient-4.2.5.jar:/Users/vinodkv/.m2/repository/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar:/Users/vinodkv/.m2/repository/com/jamesmurty/utils/java-xmlbuilder/0.4/java-xmlbuilder-0.4.jar:/Users/vinodkv/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/vinodkv/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/vinodkv/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/vinodkv/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/vinodkv/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/vinodkv/.m2/repository/org/slf4j/slf4j-api/1.7.10/slf4j-api-1.7.10.jar:/Users/vinodkv/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/Users/vinodkv/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/Users/vinodkv/.m2/repository/org/apache/avro/avro/1.7.4/avro-1.7.4.jar:/Users/vinodkv/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/Users/vinodkv/.m2/repository/org/xerial/snappy/snappy-java/1.0.4.1/snappy-java-1.0.4.1.jar:/Users/vinodkv/.m2/repository/org/apache/ant/ant/1.8.1/ant-1.8.1.jar:/Users/vinodkv/.m2/repository/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar:/Users/vinodkv/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/vinodkv/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-auth/target/hadoop-auth-2.7.2.jar:/Users/vinodkv/.m2/repository/org/apache/directory/server/apacheds-kerberos-codec/2.0.0-M15/apacheds-kerberos-codec-2.0.0-M15.jar:/Users/vinodkv/.m2/repository/org/apache/directory/server/apacheds-i18n/2.0.0-M15/apacheds-i18n-2.0.0-M15.jar:/Users/vinodkv/.m2/repository/org/apache/directory/api/api-asn1-api/1.0.0-M20/api-asn1-api-1.0.0-M20.jar:/Users/vinodkv/.m2/repository/org/apache/directory/api/api-util/1.0.0-M20/api-util-1.0.0-M20.jar:/Users/vinodkv/.m2/repository/org/apache/curator/curator-framework/2.7.1/curator-framework-2.7.1.jar:/Users/vinodkv/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/Users/vinodkv/.m2/repository/org/apache/curator/curator-client/2.7.1/curator-client-2.7.1.jar:/Users/vinodkv/.m2/repository/org/apache/curator/curator-recipes/2.7.1/curator-recipes-2.7.1.jar:/Users/vinodkv/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/Users/vinodkv/.m2/repository/org/apache/htrace/htrace-core/3.1.0-incubating/htrace-core-3.1.0-incubating.jar:/Users/vinodkv/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar:/Users/vinodkv/.m2/repository/io/netty/netty/3.6.2.Final/netty-3.6.2.Final.jar:/Users/vinodkv/.m2/repository/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/Users/vinodkv/.m2/repository/org/tukaani/xz/1.0/xz-1.0.jar -sourcepath /Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/src/main/java -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/target/hadoop-annotations.jar:/Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/target/jdiff.jar -apidir /Users/vinodkv/Workspace/eclipse-workspace/apache-git/hadoop/hadoop-common-project/hadoop-common/target/site/jdiff/xml -apiname Apache Hadoop Common 2.7.2 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopIllegalArgumentException -->
  13. <class name="HadoopIllegalArgumentException" extends="java.lang.IllegalArgumentException"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="HadoopIllegalArgumentException" type="java.lang.String"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. <doc>
  21. <![CDATA[Constructs exception with the specified detail message.
  22. @param message detailed message.]]>
  23. </doc>
  24. </constructor>
  25. <doc>
  26. <![CDATA[Indicates that a method has been passed illegal or invalid argument. This
  27. exception is thrown instead of IllegalArgumentException to differentiate the
  28. exception thrown in Hadoop implementation from the one thrown in JDK.]]>
  29. </doc>
  30. </class>
  31. <!-- end class org.apache.hadoop.HadoopIllegalArgumentException -->
  32. </package>
  33. <package name="org.apache.hadoop.conf">
  34. <!-- start interface org.apache.hadoop.conf.Configurable -->
  35. <interface name="Configurable" abstract="true"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <method name="setConf"
  39. abstract="true" native="false" synchronized="false"
  40. static="false" final="false" visibility="public"
  41. deprecated="not deprecated">
  42. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43. <doc>
  44. <![CDATA[Set the configuration to be used by this object.]]>
  45. </doc>
  46. </method>
  47. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  48. abstract="true" native="false" synchronized="false"
  49. static="false" final="false" visibility="public"
  50. deprecated="not deprecated">
  51. <doc>
  52. <![CDATA[Return the configuration used by this object.]]>
  53. </doc>
  54. </method>
  55. <doc>
  56. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  57. </doc>
  58. </interface>
  59. <!-- end interface org.apache.hadoop.conf.Configurable -->
  60. <!-- start class org.apache.hadoop.conf.Configuration -->
  61. <class name="Configuration" extends="java.lang.Object"
  62. abstract="false"
  63. static="false" final="false" visibility="public"
  64. deprecated="not deprecated">
  65. <implements name="java.lang.Iterable"/>
  66. <implements name="org.apache.hadoop.io.Writable"/>
  67. <constructor name="Configuration"
  68. static="false" final="false" visibility="public"
  69. deprecated="not deprecated">
  70. <doc>
  71. <![CDATA[A new configuration.]]>
  72. </doc>
  73. </constructor>
  74. <constructor name="Configuration" type="boolean"
  75. static="false" final="false" visibility="public"
  76. deprecated="not deprecated">
  77. <doc>
  78. <![CDATA[A new configuration where the behavior of reading from the default
  79. resources can be turned off.
  80. If the parameter {@code loadDefaults} is false, the new instance
  81. will not load resources from the default files.
  82. @param loadDefaults specifies whether to load from the default files]]>
  83. </doc>
  84. </constructor>
  85. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <doc>
  89. <![CDATA[A new configuration with the same settings cloned from another.
  90. @param other the configuration from which to clone settings.]]>
  91. </doc>
  92. </constructor>
  93. <method name="addDeprecations"
  94. abstract="false" native="false" synchronized="false"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <param name="deltas" type="org.apache.hadoop.conf.Configuration.DeprecationDelta[]"/>
  98. <doc>
  99. <![CDATA[Adds a set of deprecated keys to the global deprecations.
  100. This method is lockless. It works by means of creating a new
  101. DeprecationContext based on the old one, and then atomically swapping in
  102. the new context. If someone else updated the context in between us reading
  103. the old context and swapping in the new one, we try again until we win the
  104. race.
  105. @param deltas The deprecations to add.]]>
  106. </doc>
  107. </method>
  108. <method name="addDeprecation"
  109. abstract="false" native="false" synchronized="false"
  110. static="true" final="false" visibility="public"
  111. deprecated="use {@link #addDeprecation(String key, String newKey,
  112. String customMessage)} instead">
  113. <param name="key" type="java.lang.String"/>
  114. <param name="newKeys" type="java.lang.String[]"/>
  115. <param name="customMessage" type="java.lang.String"/>
  116. <doc>
  117. <![CDATA[Adds the deprecated key to the global deprecation map.
  118. It does not override any existing entries in the deprecation map.
  119. This is to be used only by the developers in order to add deprecation of
  120. keys, and attempts to call this method after loading resources once,
  121. would lead to <tt>UnsupportedOperationException</tt>
  122. If a key is deprecated in favor of multiple keys, they are all treated as
  123. aliases of each other, and setting any one of them resets all the others
  124. to the new value.
  125. If you have multiple deprecation entries to add, it is more efficient to
  126. use #addDeprecations(DeprecationDelta[] deltas) instead.
  127. @param key
  128. @param newKeys
  129. @param customMessage
  130. @deprecated use {@link #addDeprecation(String key, String newKey,
  131. String customMessage)} instead]]>
  132. </doc>
  133. </method>
  134. <method name="addDeprecation"
  135. abstract="false" native="false" synchronized="false"
  136. static="true" final="false" visibility="public"
  137. deprecated="not deprecated">
  138. <param name="key" type="java.lang.String"/>
  139. <param name="newKey" type="java.lang.String"/>
  140. <param name="customMessage" type="java.lang.String"/>
  141. <doc>
  142. <![CDATA[Adds the deprecated key to the global deprecation map.
  143. It does not override any existing entries in the deprecation map.
  144. This is to be used only by the developers in order to add deprecation of
  145. keys, and attempts to call this method after loading resources once,
  146. would lead to <tt>UnsupportedOperationException</tt>
  147. If you have multiple deprecation entries to add, it is more efficient to
  148. use #addDeprecations(DeprecationDelta[] deltas) instead.
  149. @param key
  150. @param newKey
  151. @param customMessage]]>
  152. </doc>
  153. </method>
  154. <method name="addDeprecation"
  155. abstract="false" native="false" synchronized="false"
  156. static="true" final="false" visibility="public"
  157. deprecated="use {@link #addDeprecation(String key, String newKey)} instead">
  158. <param name="key" type="java.lang.String"/>
  159. <param name="newKeys" type="java.lang.String[]"/>
  160. <doc>
  161. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  162. message is provided.
  163. It does not override any existing entries in the deprecation map.
  164. This is to be used only by the developers in order to add deprecation of
  165. keys, and attempts to call this method after loading resources once,
  166. would lead to <tt>UnsupportedOperationException</tt>
  167. If a key is deprecated in favor of multiple keys, they are all treated as
  168. aliases of each other, and setting any one of them resets all the others
  169. to the new value.
  170. If you have multiple deprecation entries to add, it is more efficient to
  171. use #addDeprecations(DeprecationDelta[] deltas) instead.
  172. @param key Key that is to be deprecated
  173. @param newKeys list of keys that take up the values of deprecated key
  174. @deprecated use {@link #addDeprecation(String key, String newKey)} instead]]>
  175. </doc>
  176. </method>
  177. <method name="addDeprecation"
  178. abstract="false" native="false" synchronized="false"
  179. static="true" final="false" visibility="public"
  180. deprecated="not deprecated">
  181. <param name="key" type="java.lang.String"/>
  182. <param name="newKey" type="java.lang.String"/>
  183. <doc>
  184. <![CDATA[Adds the deprecated key to the global deprecation map when no custom
  185. message is provided.
  186. It does not override any existing entries in the deprecation map.
  187. This is to be used only by the developers in order to add deprecation of
  188. keys, and attempts to call this method after loading resources once,
  189. would lead to <tt>UnsupportedOperationException</tt>
  190. If you have multiple deprecation entries to add, it is more efficient to
  191. use #addDeprecations(DeprecationDelta[] deltas) instead.
  192. @param key Key that is to be deprecated
  193. @param newKey key that takes up the value of deprecated key]]>
  194. </doc>
  195. </method>
  196. <method name="isDeprecated" return="boolean"
  197. abstract="false" native="false" synchronized="false"
  198. static="true" final="false" visibility="public"
  199. deprecated="not deprecated">
  200. <param name="key" type="java.lang.String"/>
  201. <doc>
  202. <![CDATA[checks whether the given <code>key</code> is deprecated.
  203. @param key the parameter which is to be checked for deprecation
  204. @return <code>true</code> if the key is deprecated and
  205. <code>false</code> otherwise.]]>
  206. </doc>
  207. </method>
  208. <method name="setDeprecatedProperties"
  209. abstract="false" native="false" synchronized="false"
  210. static="false" final="false" visibility="public"
  211. deprecated="not deprecated">
  212. <doc>
  213. <![CDATA[Sets all deprecated properties that are not currently set but have a
  214. corresponding new property that is set. Useful for iterating the
  215. properties when all deprecated properties for currently set properties
  216. need to be present.]]>
  217. </doc>
  218. </method>
  219. <method name="addDefaultResource"
  220. abstract="false" native="false" synchronized="true"
  221. static="true" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <param name="name" type="java.lang.String"/>
  224. <doc>
  225. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  226. added.
  227. @param name file name. File should be present in the classpath.]]>
  228. </doc>
  229. </method>
  230. <method name="addResource"
  231. abstract="false" native="false" synchronized="false"
  232. static="false" final="false" visibility="public"
  233. deprecated="not deprecated">
  234. <param name="name" type="java.lang.String"/>
  235. <doc>
  236. <![CDATA[Add a configuration resource.
  237. The properties of this resource will override properties of previously
  238. added resources, unless they were marked <a href="#Final">final</a>.
  239. @param name resource to be added, the classpath is examined for a file
  240. with that name.]]>
  241. </doc>
  242. </method>
  243. <method name="addResource"
  244. abstract="false" native="false" synchronized="false"
  245. static="false" final="false" visibility="public"
  246. deprecated="not deprecated">
  247. <param name="url" type="java.net.URL"/>
  248. <doc>
  249. <![CDATA[Add a configuration resource.
  250. The properties of this resource will override properties of previously
  251. added resources, unless they were marked <a href="#Final">final</a>.
  252. @param url url of the resource to be added, the local filesystem is
  253. examined directly to find the resource, without referring to
  254. the classpath.]]>
  255. </doc>
  256. </method>
  257. <method name="addResource"
  258. abstract="false" native="false" synchronized="false"
  259. static="false" final="false" visibility="public"
  260. deprecated="not deprecated">
  261. <param name="file" type="org.apache.hadoop.fs.Path"/>
  262. <doc>
  263. <![CDATA[Add a configuration resource.
  264. The properties of this resource will override properties of previously
  265. added resources, unless they were marked <a href="#Final">final</a>.
  266. @param file file-path of resource to be added, the local filesystem is
  267. examined directly to find the resource, without referring to
  268. the classpath.]]>
  269. </doc>
  270. </method>
  271. <method name="addResource"
  272. abstract="false" native="false" synchronized="false"
  273. static="false" final="false" visibility="public"
  274. deprecated="not deprecated">
  275. <param name="in" type="java.io.InputStream"/>
  276. <doc>
  277. <![CDATA[Add a configuration resource.
  278. The properties of this resource will override properties of previously
  279. added resources, unless they were marked <a href="#Final">final</a>.
  280. WARNING: The contents of the InputStream will be cached, by this method.
  281. So use this sparingly because it does increase the memory consumption.
  282. @param in InputStream to deserialize the object from. In will be read from
  283. when a get or set is called next. After it is read the stream will be
  284. closed.]]>
  285. </doc>
  286. </method>
  287. <method name="addResource"
  288. abstract="false" native="false" synchronized="false"
  289. static="false" final="false" visibility="public"
  290. deprecated="not deprecated">
  291. <param name="in" type="java.io.InputStream"/>
  292. <param name="name" type="java.lang.String"/>
  293. <doc>
  294. <![CDATA[Add a configuration resource.
  295. The properties of this resource will override properties of previously
  296. added resources, unless they were marked <a href="#Final">final</a>.
  297. @param in InputStream to deserialize the object from.
  298. @param name the name of the resource because InputStream.toString is not
  299. very descriptive some times.]]>
  300. </doc>
  301. </method>
  302. <method name="addResource"
  303. abstract="false" native="false" synchronized="false"
  304. static="false" final="false" visibility="public"
  305. deprecated="not deprecated">
  306. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  307. <doc>
  308. <![CDATA[Add a configuration resource.
  309. The properties of this resource will override properties of previously
  310. added resources, unless they were marked <a href="#Final">final</a>.
  311. @param conf Configuration object from which to load properties]]>
  312. </doc>
  313. </method>
  314. <method name="reloadConfiguration"
  315. abstract="false" native="false" synchronized="true"
  316. static="false" final="false" visibility="public"
  317. deprecated="not deprecated">
  318. <doc>
  319. <![CDATA[Reload configuration from previously added resources.
  320. This method will clear all the configuration read from the added
  321. resources, and final parameters. This will make the resources to
  322. be read again before accessing the values. Values that are added
  323. via set methods will overlay values read from the resources.]]>
  324. </doc>
  325. </method>
  326. <method name="get" return="java.lang.String"
  327. abstract="false" native="false" synchronized="false"
  328. static="false" final="false" visibility="public"
  329. deprecated="not deprecated">
  330. <param name="name" type="java.lang.String"/>
  331. <doc>
  332. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  333. no such property exists. If the key is deprecated, it returns the value of
  334. the first key which replaces the deprecated key and is not null.
  335. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  336. before being returned.
  337. @param name the property name, will be trimmed before get value.
  338. @return the value of the <code>name</code> or its replacing property,
  339. or null if no such property exists.]]>
  340. </doc>
  341. </method>
  342. <method name="setAllowNullValueProperties"
  343. abstract="false" native="false" synchronized="false"
  344. static="false" final="false" visibility="public"
  345. deprecated="not deprecated">
  346. <param name="val" type="boolean"/>
  347. <doc>
  348. <![CDATA[Set Configuration to allow keys without values during setup. Intended
  349. for use during testing.
  350. @param val If true, will allow Configuration to store keys without values]]>
  351. </doc>
  352. </method>
  353. <method name="onlyKeyExists" return="boolean"
  354. abstract="false" native="false" synchronized="false"
  355. static="false" final="false" visibility="public"
  356. deprecated="not deprecated">
  357. <param name="name" type="java.lang.String"/>
  358. <doc>
  359. <![CDATA[Return existence of the <code>name</code> property, but only for
  360. names which have no valid value, usually non-existent or commented
  361. out in XML.
  362. @param name the property name
  363. @return true if the property <code>name</code> exists without value]]>
  364. </doc>
  365. </method>
  366. <method name="getTrimmed" return="java.lang.String"
  367. abstract="false" native="false" synchronized="false"
  368. static="false" final="false" visibility="public"
  369. deprecated="not deprecated">
  370. <param name="name" type="java.lang.String"/>
  371. <doc>
  372. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  373. <code>null</code> if no such property exists.
  374. If the key is deprecated, it returns the value of
  375. the first key which replaces the deprecated key and is not null
  376. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  377. before being returned.
  378. @param name the property name.
  379. @return the value of the <code>name</code> or its replacing property,
  380. or null if no such property exists.]]>
  381. </doc>
  382. </method>
  383. <method name="getTrimmed" return="java.lang.String"
  384. abstract="false" native="false" synchronized="false"
  385. static="false" final="false" visibility="public"
  386. deprecated="not deprecated">
  387. <param name="name" type="java.lang.String"/>
  388. <param name="defaultValue" type="java.lang.String"/>
  389. <doc>
  390. <![CDATA[Get the value of the <code>name</code> property as a trimmed <code>String</code>,
  391. <code>defaultValue</code> if no such property exists.
  392. See @{Configuration#getTrimmed} for more details.
  393. @param name the property name.
  394. @param defaultValue the property default value.
  395. @return the value of the <code>name</code> or defaultValue
  396. if it is not set.]]>
  397. </doc>
  398. </method>
  399. <method name="getRaw" return="java.lang.String"
  400. abstract="false" native="false" synchronized="false"
  401. static="false" final="false" visibility="public"
  402. deprecated="not deprecated">
  403. <param name="name" type="java.lang.String"/>
  404. <doc>
  405. <![CDATA[Get the value of the <code>name</code> property, without doing
  406. <a href="#VariableExpansion">variable expansion</a>.If the key is
  407. deprecated, it returns the value of the first key which replaces
  408. the deprecated key and is not null.
  409. @param name the property name.
  410. @return the value of the <code>name</code> property or
  411. its replacing property and null if no such property exists.]]>
  412. </doc>
  413. </method>
  414. <method name="set"
  415. abstract="false" native="false" synchronized="false"
  416. static="false" final="false" visibility="public"
  417. deprecated="not deprecated">
  418. <param name="name" type="java.lang.String"/>
  419. <param name="value" type="java.lang.String"/>
  420. <doc>
  421. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  422. <code>name</code> is deprecated or there is a deprecated name associated to it,
  423. it sets the value to both names. Name will be trimmed before put into
  424. configuration.
  425. @param name property name.
  426. @param value property value.]]>
  427. </doc>
  428. </method>
  429. <method name="set"
  430. abstract="false" native="false" synchronized="false"
  431. static="false" final="false" visibility="public"
  432. deprecated="not deprecated">
  433. <param name="name" type="java.lang.String"/>
  434. <param name="value" type="java.lang.String"/>
  435. <param name="source" type="java.lang.String"/>
  436. <doc>
  437. <![CDATA[Set the <code>value</code> of the <code>name</code> property. If
  438. <code>name</code> is deprecated, it also sets the <code>value</code> to
  439. the keys that replace the deprecated key. Name will be trimmed before put
  440. into configuration.
  441. @param name property name.
  442. @param value property value.
  443. @param source the place that this configuration value came from
  444. (For debugging).
  445. @throws IllegalArgumentException when the value or name is null.]]>
  446. </doc>
  447. </method>
  448. <method name="unset"
  449. abstract="false" native="false" synchronized="true"
  450. static="false" final="false" visibility="public"
  451. deprecated="not deprecated">
  452. <param name="name" type="java.lang.String"/>
  453. <doc>
  454. <![CDATA[Unset a previously set property.]]>
  455. </doc>
  456. </method>
  457. <method name="setIfUnset"
  458. abstract="false" native="false" synchronized="true"
  459. static="false" final="false" visibility="public"
  460. deprecated="not deprecated">
  461. <param name="name" type="java.lang.String"/>
  462. <param name="value" type="java.lang.String"/>
  463. <doc>
  464. <![CDATA[Sets a property if it is currently unset.
  465. @param name the property name
  466. @param value the new value]]>
  467. </doc>
  468. </method>
  469. <method name="get" return="java.lang.String"
  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="defaultValue" type="java.lang.String"/>
  475. <doc>
  476. <![CDATA[Get the value of the <code>name</code>. If the key is deprecated,
  477. it returns the value of the first key which replaces the deprecated key
  478. and is not null.
  479. If no such property exists,
  480. then <code>defaultValue</code> is returned.
  481. @param name property name, will be trimmed before get value.
  482. @param defaultValue default value.
  483. @return property value, or <code>defaultValue</code> if the property
  484. doesn't exist.]]>
  485. </doc>
  486. </method>
  487. <method name="getInt" return="int"
  488. abstract="false" native="false" synchronized="false"
  489. static="false" final="false" visibility="public"
  490. deprecated="not deprecated">
  491. <param name="name" type="java.lang.String"/>
  492. <param name="defaultValue" type="int"/>
  493. <doc>
  494. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  495. If no such property exists, the provided default value is returned,
  496. or if the specified value is not a valid <code>int</code>,
  497. then an error is thrown.
  498. @param name property name.
  499. @param defaultValue default value.
  500. @throws NumberFormatException when the value is invalid
  501. @return property value as an <code>int</code>,
  502. or <code>defaultValue</code>.]]>
  503. </doc>
  504. </method>
  505. <method name="getInts" return="int[]"
  506. abstract="false" native="false" synchronized="false"
  507. static="false" final="false" visibility="public"
  508. deprecated="not deprecated">
  509. <param name="name" type="java.lang.String"/>
  510. <doc>
  511. <![CDATA[Get the value of the <code>name</code> property as a set of comma-delimited
  512. <code>int</code> values.
  513. If no such property exists, an empty array is returned.
  514. @param name property name
  515. @return property value interpreted as an array of comma-delimited
  516. <code>int</code> values]]>
  517. </doc>
  518. </method>
  519. <method name="setInt"
  520. abstract="false" native="false" synchronized="false"
  521. static="false" final="false" visibility="public"
  522. deprecated="not deprecated">
  523. <param name="name" type="java.lang.String"/>
  524. <param name="value" type="int"/>
  525. <doc>
  526. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  527. @param name property name.
  528. @param value <code>int</code> value of the property.]]>
  529. </doc>
  530. </method>
  531. <method name="getLong" return="long"
  532. abstract="false" native="false" synchronized="false"
  533. static="false" final="false" visibility="public"
  534. deprecated="not deprecated">
  535. <param name="name" type="java.lang.String"/>
  536. <param name="defaultValue" type="long"/>
  537. <doc>
  538. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  539. If no such property exists, the provided default value is returned,
  540. or if the specified value is not a valid <code>long</code>,
  541. then an error is thrown.
  542. @param name property name.
  543. @param defaultValue default value.
  544. @throws NumberFormatException when the value is invalid
  545. @return property value as a <code>long</code>,
  546. or <code>defaultValue</code>.]]>
  547. </doc>
  548. </method>
  549. <method name="getLongBytes" return="long"
  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="long"/>
  555. <doc>
  556. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code> or
  557. human readable format. If no such property exists, the provided default
  558. value is returned, or if the specified value is not a valid
  559. <code>long</code> or human readable format, then an error is thrown. You
  560. can use the following suffix (case insensitive): k(kilo), m(mega), g(giga),
  561. t(tera), p(peta), e(exa)
  562. @param name property name.
  563. @param defaultValue default value.
  564. @throws NumberFormatException when the value is invalid
  565. @return property value as a <code>long</code>,
  566. or <code>defaultValue</code>.]]>
  567. </doc>
  568. </method>
  569. <method name="setLong"
  570. abstract="false" native="false" synchronized="false"
  571. static="false" final="false" visibility="public"
  572. deprecated="not deprecated">
  573. <param name="name" type="java.lang.String"/>
  574. <param name="value" type="long"/>
  575. <doc>
  576. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  577. @param name property name.
  578. @param value <code>long</code> value of the property.]]>
  579. </doc>
  580. </method>
  581. <method name="getFloat" return="float"
  582. abstract="false" native="false" synchronized="false"
  583. static="false" final="false" visibility="public"
  584. deprecated="not deprecated">
  585. <param name="name" type="java.lang.String"/>
  586. <param name="defaultValue" type="float"/>
  587. <doc>
  588. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  589. If no such property exists, the provided default value is returned,
  590. or if the specified value is not a valid <code>float</code>,
  591. then an error is thrown.
  592. @param name property name.
  593. @param defaultValue default value.
  594. @throws NumberFormatException when the value is invalid
  595. @return property value as a <code>float</code>,
  596. or <code>defaultValue</code>.]]>
  597. </doc>
  598. </method>
  599. <method name="setFloat"
  600. abstract="false" native="false" synchronized="false"
  601. static="false" final="false" visibility="public"
  602. deprecated="not deprecated">
  603. <param name="name" type="java.lang.String"/>
  604. <param name="value" type="float"/>
  605. <doc>
  606. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  607. @param name property name.
  608. @param value property value.]]>
  609. </doc>
  610. </method>
  611. <method name="getDouble" return="double"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="name" type="java.lang.String"/>
  616. <param name="defaultValue" type="double"/>
  617. <doc>
  618. <![CDATA[Get the value of the <code>name</code> property as a <code>double</code>.
  619. If no such property exists, the provided default value is returned,
  620. or if the specified value is not a valid <code>double</code>,
  621. then an error is thrown.
  622. @param name property name.
  623. @param defaultValue default value.
  624. @throws NumberFormatException when the value is invalid
  625. @return property value as a <code>double</code>,
  626. or <code>defaultValue</code>.]]>
  627. </doc>
  628. </method>
  629. <method name="setDouble"
  630. abstract="false" native="false" synchronized="false"
  631. static="false" final="false" visibility="public"
  632. deprecated="not deprecated">
  633. <param name="name" type="java.lang.String"/>
  634. <param name="value" type="double"/>
  635. <doc>
  636. <![CDATA[Set the value of the <code>name</code> property to a <code>double</code>.
  637. @param name property name.
  638. @param value property value.]]>
  639. </doc>
  640. </method>
  641. <method name="getBoolean" return="boolean"
  642. abstract="false" native="false" synchronized="false"
  643. static="false" final="false" visibility="public"
  644. deprecated="not deprecated">
  645. <param name="name" type="java.lang.String"/>
  646. <param name="defaultValue" type="boolean"/>
  647. <doc>
  648. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  649. If no such property is specified, or if the specified value is not a valid
  650. <code>boolean</code>, then <code>defaultValue</code> is returned.
  651. @param name property name.
  652. @param defaultValue default value.
  653. @return property value as a <code>boolean</code>,
  654. or <code>defaultValue</code>.]]>
  655. </doc>
  656. </method>
  657. <method name="setBoolean"
  658. abstract="false" native="false" synchronized="false"
  659. static="false" final="false" visibility="public"
  660. deprecated="not deprecated">
  661. <param name="name" type="java.lang.String"/>
  662. <param name="value" type="boolean"/>
  663. <doc>
  664. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  665. @param name property name.
  666. @param value <code>boolean</code> value of the property.]]>
  667. </doc>
  668. </method>
  669. <method name="setBooleanIfUnset"
  670. abstract="false" native="false" synchronized="false"
  671. static="false" final="false" visibility="public"
  672. deprecated="not deprecated">
  673. <param name="name" type="java.lang.String"/>
  674. <param name="value" type="boolean"/>
  675. <doc>
  676. <![CDATA[Set the given property, if it is currently unset.
  677. @param name property name
  678. @param value new value]]>
  679. </doc>
  680. </method>
  681. <method name="setEnum"
  682. abstract="false" native="false" synchronized="false"
  683. static="false" final="false" visibility="public"
  684. deprecated="not deprecated">
  685. <param name="name" type="java.lang.String"/>
  686. <param name="value" type="T"/>
  687. <doc>
  688. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  689. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  690. @param name property name
  691. @param value new value]]>
  692. </doc>
  693. </method>
  694. <method name="getEnum" return="T"
  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="T"/>
  700. <doc>
  701. <![CDATA[Return value matching this enumerated type.
  702. Note that the returned value is trimmed by this method.
  703. @param name Property name
  704. @param defaultValue Value returned if no mapping exists
  705. @throws IllegalArgumentException If mapping is illegal for the type
  706. provided]]>
  707. </doc>
  708. </method>
  709. <method name="setTimeDuration"
  710. abstract="false" native="false" synchronized="false"
  711. static="false" final="false" visibility="public"
  712. deprecated="not deprecated">
  713. <param name="name" type="java.lang.String"/>
  714. <param name="value" type="long"/>
  715. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  716. <doc>
  717. <![CDATA[Set the value of <code>name</code> to the given time duration. This
  718. is equivalent to <code>set(&lt;name&gt;, value + &lt;time suffix&gt;)</code>.
  719. @param name Property name
  720. @param value Time duration
  721. @param unit Unit of time]]>
  722. </doc>
  723. </method>
  724. <method name="getTimeDuration" return="long"
  725. abstract="false" native="false" synchronized="false"
  726. static="false" final="false" visibility="public"
  727. deprecated="not deprecated">
  728. <param name="name" type="java.lang.String"/>
  729. <param name="defaultValue" type="long"/>
  730. <param name="unit" type="java.util.concurrent.TimeUnit"/>
  731. <doc>
  732. <![CDATA[Return time duration in the given time unit. Valid units are encoded in
  733. properties as suffixes: nanoseconds (ns), microseconds (us), milliseconds
  734. (ms), seconds (s), minutes (m), hours (h), and days (d).
  735. @param name Property name
  736. @param defaultValue Value returned if no mapping exists.
  737. @param unit Unit to convert the stored property, if it exists.
  738. @throws NumberFormatException If the property stripped of its unit is not
  739. a number]]>
  740. </doc>
  741. </method>
  742. <method name="getPattern" return="java.util.regex.Pattern"
  743. abstract="false" native="false" synchronized="false"
  744. static="false" final="false" visibility="public"
  745. deprecated="not deprecated">
  746. <param name="name" type="java.lang.String"/>
  747. <param name="defaultValue" type="java.util.regex.Pattern"/>
  748. <doc>
  749. <![CDATA[Get the value of the <code>name</code> property as a <code>Pattern</code>.
  750. If no such property is specified, or if the specified value is not a valid
  751. <code>Pattern</code>, then <code>DefaultValue</code> is returned.
  752. Note that the returned value is NOT trimmed by this method.
  753. @param name property name
  754. @param defaultValue default value
  755. @return property value as a compiled Pattern, or defaultValue]]>
  756. </doc>
  757. </method>
  758. <method name="setPattern"
  759. abstract="false" native="false" synchronized="false"
  760. static="false" final="false" visibility="public"
  761. deprecated="not deprecated">
  762. <param name="name" type="java.lang.String"/>
  763. <param name="pattern" type="java.util.regex.Pattern"/>
  764. <doc>
  765. <![CDATA[Set the given property to <code>Pattern</code>.
  766. If the pattern is passed as null, sets the empty pattern which results in
  767. further calls to getPattern(...) returning the default value.
  768. @param name property name
  769. @param pattern new value]]>
  770. </doc>
  771. </method>
  772. <method name="getPropertySources" return="java.lang.String[]"
  773. abstract="false" native="false" synchronized="true"
  774. static="false" final="false" visibility="public"
  775. deprecated="not deprecated">
  776. <param name="name" type="java.lang.String"/>
  777. <doc>
  778. <![CDATA[Gets information about why a property was set. Typically this is the
  779. path to the resource objects (file, URL, etc.) the property came from, but
  780. it can also indicate that it was set programatically, or because of the
  781. command line.
  782. @param name - The property name to get the source of.
  783. @return null - If the property or its source wasn't found. Otherwise,
  784. returns a list of the sources of the resource. The older sources are
  785. the first ones in the list. So for example if a configuration is set from
  786. the command line, and then written out to a file that is read back in the
  787. first entry would indicate that it was set from the command line, while
  788. the second one would indicate the file that the new configuration was read
  789. in from.]]>
  790. </doc>
  791. </method>
  792. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  793. abstract="false" native="false" synchronized="false"
  794. static="false" final="false" visibility="public"
  795. deprecated="not deprecated">
  796. <param name="name" type="java.lang.String"/>
  797. <param name="defaultValue" type="java.lang.String"/>
  798. <doc>
  799. <![CDATA[Parse the given attribute as a set of integer ranges
  800. @param name the attribute name
  801. @param defaultValue the default value if it is not set
  802. @return a new set of ranges from the configured value]]>
  803. </doc>
  804. </method>
  805. <method name="getStringCollection" return="java.util.Collection"
  806. abstract="false" native="false" synchronized="false"
  807. static="false" final="false" visibility="public"
  808. deprecated="not deprecated">
  809. <param name="name" type="java.lang.String"/>
  810. <doc>
  811. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  812. a collection of <code>String</code>s.
  813. If no such property is specified then empty collection is returned.
  814. <p>
  815. This is an optimized version of {@link #getStrings(String)}
  816. @param name property name.
  817. @return property value as a collection of <code>String</code>s.]]>
  818. </doc>
  819. </method>
  820. <method name="getStrings" return="java.lang.String[]"
  821. abstract="false" native="false" synchronized="false"
  822. static="false" final="false" visibility="public"
  823. deprecated="not deprecated">
  824. <param name="name" type="java.lang.String"/>
  825. <doc>
  826. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  827. an array of <code>String</code>s.
  828. If no such property is specified then <code>null</code> is returned.
  829. @param name property name.
  830. @return property value as an array of <code>String</code>s,
  831. or <code>null</code>.]]>
  832. </doc>
  833. </method>
  834. <method name="getStrings" return="java.lang.String[]"
  835. abstract="false" native="false" synchronized="false"
  836. static="false" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="name" type="java.lang.String"/>
  839. <param name="defaultValue" type="java.lang.String[]"/>
  840. <doc>
  841. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  842. an array of <code>String</code>s.
  843. If no such property is specified then default value is returned.
  844. @param name property name.
  845. @param defaultValue The default value
  846. @return property value as an array of <code>String</code>s,
  847. or default value.]]>
  848. </doc>
  849. </method>
  850. <method name="getTrimmedStringCollection" return="java.util.Collection"
  851. abstract="false" native="false" synchronized="false"
  852. static="false" final="false" visibility="public"
  853. deprecated="not deprecated">
  854. <param name="name" type="java.lang.String"/>
  855. <doc>
  856. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  857. a collection of <code>String</code>s, trimmed of the leading and trailing whitespace.
  858. If no such property is specified then empty <code>Collection</code> is returned.
  859. @param name property name.
  860. @return property value as a collection of <code>String</code>s, or empty <code>Collection</code>]]>
  861. </doc>
  862. </method>
  863. <method name="getTrimmedStrings" return="java.lang.String[]"
  864. abstract="false" native="false" synchronized="false"
  865. static="false" final="false" visibility="public"
  866. deprecated="not deprecated">
  867. <param name="name" type="java.lang.String"/>
  868. <doc>
  869. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  870. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  871. If no such property is specified then an empty array is returned.
  872. @param name property name.
  873. @return property value as an array of trimmed <code>String</code>s,
  874. or empty array.]]>
  875. </doc>
  876. </method>
  877. <method name="getTrimmedStrings" return="java.lang.String[]"
  878. abstract="false" native="false" synchronized="false"
  879. static="false" final="false" visibility="public"
  880. deprecated="not deprecated">
  881. <param name="name" type="java.lang.String"/>
  882. <param name="defaultValue" type="java.lang.String[]"/>
  883. <doc>
  884. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  885. an array of <code>String</code>s, trimmed of the leading and trailing whitespace.
  886. If no such property is specified then default value is returned.
  887. @param name property name.
  888. @param defaultValue The default value
  889. @return property value as an array of trimmed <code>String</code>s,
  890. or default value.]]>
  891. </doc>
  892. </method>
  893. <method name="setStrings"
  894. abstract="false" native="false" synchronized="false"
  895. static="false" final="false" visibility="public"
  896. deprecated="not deprecated">
  897. <param name="name" type="java.lang.String"/>
  898. <param name="values" type="java.lang.String[]"/>
  899. <doc>
  900. <![CDATA[Set the array of string values for the <code>name</code> property as
  901. as comma delimited values.
  902. @param name property name.
  903. @param values The values]]>
  904. </doc>
  905. </method>
  906. <method name="getPassword" return="char[]"
  907. abstract="false" native="false" synchronized="false"
  908. static="false" final="false" visibility="public"
  909. deprecated="not deprecated">
  910. <param name="name" type="java.lang.String"/>
  911. <exception name="IOException" type="java.io.IOException"/>
  912. <doc>
  913. <![CDATA[Get the value for a known password configuration element.
  914. In order to enable the elimination of clear text passwords in config,
  915. this method attempts to resolve the property name as an alias through
  916. the CredentialProvider API and conditionally fallsback to config.
  917. @param name property name
  918. @return password]]>
  919. </doc>
  920. </method>
  921. <method name="getPasswordFromCredentialProviders" return="char[]"
  922. abstract="false" native="false" synchronized="false"
  923. static="false" final="false" visibility="protected"
  924. deprecated="not deprecated">
  925. <param name="name" type="java.lang.String"/>
  926. <exception name="IOException" type="java.io.IOException"/>
  927. <doc>
  928. <![CDATA[Try and resolve the provided element name as a credential provider
  929. alias.
  930. @param name alias of the provisioned credential
  931. @return password or null if not found
  932. @throws IOException]]>
  933. </doc>
  934. </method>
  935. <method name="getPasswordFromConfig" return="char[]"
  936. abstract="false" native="false" synchronized="false"
  937. static="false" final="false" visibility="protected"
  938. deprecated="not deprecated">
  939. <param name="name" type="java.lang.String"/>
  940. <doc>
  941. <![CDATA[Fallback to clear text passwords in configuration.
  942. @param name
  943. @return clear text password or null]]>
  944. </doc>
  945. </method>
  946. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  947. abstract="false" native="false" synchronized="false"
  948. static="false" final="false" visibility="public"
  949. deprecated="not deprecated">
  950. <param name="hostProperty" type="java.lang.String"/>
  951. <param name="addressProperty" type="java.lang.String"/>
  952. <param name="defaultAddressValue" type="java.lang.String"/>
  953. <param name="defaultPort" type="int"/>
  954. <doc>
  955. <![CDATA[Get the socket address for <code>hostProperty</code> as a
  956. <code>InetSocketAddress</code>. If <code>hostProperty</code> is
  957. <code>null</code>, <code>addressProperty</code> will be used. This
  958. is useful for cases where we want to differentiate between host
  959. bind address and address clients should use to establish connection.
  960. @param hostProperty bind host property name.
  961. @param addressProperty address property name.
  962. @param defaultAddressValue the default value
  963. @param defaultPort the default port
  964. @return InetSocketAddress]]>
  965. </doc>
  966. </method>
  967. <method name="getSocketAddr" return="java.net.InetSocketAddress"
  968. abstract="false" native="false" synchronized="false"
  969. static="false" final="false" visibility="public"
  970. deprecated="not deprecated">
  971. <param name="name" type="java.lang.String"/>
  972. <param name="defaultAddress" type="java.lang.String"/>
  973. <param name="defaultPort" type="int"/>
  974. <doc>
  975. <![CDATA[Get the socket address for <code>name</code> property as a
  976. <code>InetSocketAddress</code>.
  977. @param name property name.
  978. @param defaultAddress the default value
  979. @param defaultPort the default port
  980. @return InetSocketAddress]]>
  981. </doc>
  982. </method>
  983. <method name="setSocketAddr"
  984. abstract="false" native="false" synchronized="false"
  985. static="false" final="false" visibility="public"
  986. deprecated="not deprecated">
  987. <param name="name" type="java.lang.String"/>
  988. <param name="addr" type="java.net.InetSocketAddress"/>
  989. <doc>
  990. <![CDATA[Set the socket address for the <code>name</code> property as
  991. a <code>host:port</code>.]]>
  992. </doc>
  993. </method>
  994. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  995. abstract="false" native="false" synchronized="false"
  996. static="false" final="false" visibility="public"
  997. deprecated="not deprecated">
  998. <param name="hostProperty" type="java.lang.String"/>
  999. <param name="addressProperty" type="java.lang.String"/>
  1000. <param name="defaultAddressValue" type="java.lang.String"/>
  1001. <param name="addr" type="java.net.InetSocketAddress"/>
  1002. <doc>
  1003. <![CDATA[Set the socket address a client can use to connect for the
  1004. <code>name</code> property as a <code>host:port</code>. The wildcard
  1005. address is replaced with the local host's address. If the host and address
  1006. properties are configured the host component of the address will be combined
  1007. with the port component of the addr to generate the address. This is to allow
  1008. optional control over which host name is used in multi-home bind-host
  1009. cases where a host can have multiple names
  1010. @param hostProperty the bind-host configuration name
  1011. @param addressProperty the service address configuration name
  1012. @param defaultAddressValue the service default address configuration value
  1013. @param addr InetSocketAddress of the service listener
  1014. @return InetSocketAddress for clients to connect]]>
  1015. </doc>
  1016. </method>
  1017. <method name="updateConnectAddr" return="java.net.InetSocketAddress"
  1018. abstract="false" native="false" synchronized="false"
  1019. static="false" final="false" visibility="public"
  1020. deprecated="not deprecated">
  1021. <param name="name" type="java.lang.String"/>
  1022. <param name="addr" type="java.net.InetSocketAddress"/>
  1023. <doc>
  1024. <![CDATA[Set the socket address a client can use to connect for the
  1025. <code>name</code> property as a <code>host:port</code>. The wildcard
  1026. address is replaced with the local host's address.
  1027. @param name property name.
  1028. @param addr InetSocketAddress of a listener to store in the given property
  1029. @return InetSocketAddress for clients to connect]]>
  1030. </doc>
  1031. </method>
  1032. <method name="getClassByName" return="java.lang.Class"
  1033. abstract="false" native="false" synchronized="false"
  1034. static="false" final="false" visibility="public"
  1035. deprecated="not deprecated">
  1036. <param name="name" type="java.lang.String"/>
  1037. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  1038. <doc>
  1039. <![CDATA[Load a class by name.
  1040. @param name the class name.
  1041. @return the class object.
  1042. @throws ClassNotFoundException if the class is not found.]]>
  1043. </doc>
  1044. </method>
  1045. <method name="getClassByNameOrNull" return="java.lang.Class"
  1046. abstract="false" native="false" synchronized="false"
  1047. static="false" final="false" visibility="public"
  1048. deprecated="not deprecated">
  1049. <param name="name" type="java.lang.String"/>
  1050. <doc>
  1051. <![CDATA[Load a class by name, returning null rather than throwing an exception
  1052. if it couldn't be loaded. This is to avoid the overhead of creating
  1053. an exception.
  1054. @param name the class name
  1055. @return the class object, or null if it could not be found.]]>
  1056. </doc>
  1057. </method>
  1058. <method name="getClasses" return="java.lang.Class[]"
  1059. abstract="false" native="false" synchronized="false"
  1060. static="false" final="false" visibility="public"
  1061. deprecated="not deprecated">
  1062. <param name="name" type="java.lang.String"/>
  1063. <param name="defaultValue" type="java.lang.Class[]"/>
  1064. <doc>
  1065. <![CDATA[Get the value of the <code>name</code> property
  1066. as an array of <code>Class</code>.
  1067. The value of the property specifies a list of comma separated class names.
  1068. If no such property is specified, then <code>defaultValue</code> is
  1069. returned.
  1070. @param name the property name.
  1071. @param defaultValue default value.
  1072. @return property value as a <code>Class[]</code>,
  1073. or <code>defaultValue</code>.]]>
  1074. </doc>
  1075. </method>
  1076. <method name="getClass" return="java.lang.Class"
  1077. abstract="false" native="false" synchronized="false"
  1078. static="false" final="false" visibility="public"
  1079. deprecated="not deprecated">
  1080. <param name="name" type="java.lang.String"/>
  1081. <param name="defaultValue" type="java.lang.Class"/>
  1082. <doc>
  1083. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  1084. If no such property is specified, then <code>defaultValue</code> is
  1085. returned.
  1086. @param name the class name.
  1087. @param defaultValue default value.
  1088. @return property value as a <code>Class</code>,
  1089. or <code>defaultValue</code>.]]>
  1090. </doc>
  1091. </method>
  1092. <method name="getClass" return="java.lang.Class"
  1093. abstract="false" native="false" synchronized="false"
  1094. static="false" final="false" visibility="public"
  1095. deprecated="not deprecated">
  1096. <param name="name" type="java.lang.String"/>
  1097. <param name="defaultValue" type="java.lang.Class"/>
  1098. <param name="xface" type="java.lang.Class"/>
  1099. <doc>
  1100. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  1101. implementing the interface specified by <code>xface</code>.
  1102. If no such property is specified, then <code>defaultValue</code> is
  1103. returned.
  1104. An exception is thrown if the returned class does not implement the named
  1105. interface.
  1106. @param name the class name.
  1107. @param defaultValue default value.
  1108. @param xface the interface implemented by the named class.
  1109. @return property value as a <code>Class</code>,
  1110. or <code>defaultValue</code>.]]>
  1111. </doc>
  1112. </method>
  1113. <method name="getInstances" return="java.util.List"
  1114. abstract="false" native="false" synchronized="false"
  1115. static="false" final="false" visibility="public"
  1116. deprecated="not deprecated">
  1117. <param name="name" type="java.lang.String"/>
  1118. <param name="xface" type="java.lang.Class"/>
  1119. <doc>
  1120. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  1121. of objects implementing the interface specified by <code>xface</code>.
  1122. An exception is thrown if any of the classes does not exist, or if it does
  1123. not implement the named interface.
  1124. @param name the property name.
  1125. @param xface the interface implemented by the classes named by
  1126. <code>name</code>.
  1127. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  1128. </doc>
  1129. </method>
  1130. <method name="setClass"
  1131. abstract="false" native="false" synchronized="false"
  1132. static="false" final="false" visibility="public"
  1133. deprecated="not deprecated">
  1134. <param name="name" type="java.lang.String"/>
  1135. <param name="theClass" type="java.lang.Class"/>
  1136. <param name="xface" type="java.lang.Class"/>
  1137. <doc>
  1138. <![CDATA[Set the value of the <code>name</code> property to the name of a
  1139. <code>theClass</code> implementing the given interface <code>xface</code>.
  1140. An exception is thrown if <code>theClass</code> does not implement the
  1141. interface <code>xface</code>.
  1142. @param name property name.
  1143. @param theClass property value.
  1144. @param xface the interface implemented by the named class.]]>
  1145. </doc>
  1146. </method>
  1147. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  1148. abstract="false" native="false" synchronized="false"
  1149. static="false" final="false" visibility="public"
  1150. deprecated="not deprecated">
  1151. <param name="dirsProp" type="java.lang.String"/>
  1152. <param name="path" type="java.lang.String"/>
  1153. <exception name="IOException" type="java.io.IOException"/>
  1154. <doc>
  1155. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  1156. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1157. then one is chosen based on <i>path</i>'s hash code. If the selected
  1158. directory does not exist, an attempt is made to create it.
  1159. @param dirsProp directory in which to locate the file.
  1160. @param path file-path.
  1161. @return local file under the directory with the given path.]]>
  1162. </doc>
  1163. </method>
  1164. <method name="getFile" return="java.io.File"
  1165. abstract="false" native="false" synchronized="false"
  1166. static="false" final="false" visibility="public"
  1167. deprecated="not deprecated">
  1168. <param name="dirsProp" type="java.lang.String"/>
  1169. <param name="path" type="java.lang.String"/>
  1170. <exception name="IOException" type="java.io.IOException"/>
  1171. <doc>
  1172. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  1173. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  1174. then one is chosen based on <i>path</i>'s hash code. If the selected
  1175. directory does not exist, an attempt is made to create it.
  1176. @param dirsProp directory in which to locate the file.
  1177. @param path file-path.
  1178. @return local file under the directory with the given path.]]>
  1179. </doc>
  1180. </method>
  1181. <method name="getResource" return="java.net.URL"
  1182. abstract="false" native="false" synchronized="false"
  1183. static="false" final="false" visibility="public"
  1184. deprecated="not deprecated">
  1185. <param name="name" type="java.lang.String"/>
  1186. <doc>
  1187. <![CDATA[Get the {@link URL} for the named resource.
  1188. @param name resource name.
  1189. @return the url for the named resource.]]>
  1190. </doc>
  1191. </method>
  1192. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  1193. abstract="false" native="false" synchronized="false"
  1194. static="false" final="false" visibility="public"
  1195. deprecated="not deprecated">
  1196. <param name="name" type="java.lang.String"/>
  1197. <doc>
  1198. <![CDATA[Get an input stream attached to the configuration resource with the
  1199. given <code>name</code>.
  1200. @param name configuration resource name.
  1201. @return an input stream attached to the resource.]]>
  1202. </doc>
  1203. </method>
  1204. <method name="getConfResourceAsReader" return="java.io.Reader"
  1205. abstract="false" native="false" synchronized="false"
  1206. static="false" final="false" visibility="public"
  1207. deprecated="not deprecated">
  1208. <param name="name" type="java.lang.String"/>
  1209. <doc>
  1210. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  1211. given <code>name</code>.
  1212. @param name configuration resource name.
  1213. @return a reader attached to the resource.]]>
  1214. </doc>
  1215. </method>
  1216. <method name="getFinalParameters" return="java.util.Set"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <doc>
  1221. <![CDATA[Get the set of parameters marked final.
  1222. @return final parameter set.]]>
  1223. </doc>
  1224. </method>
  1225. <method name="getProps" return="java.util.Properties"
  1226. abstract="false" native="false" synchronized="true"
  1227. static="false" final="false" visibility="protected"
  1228. deprecated="not deprecated">
  1229. </method>
  1230. <method name="size" return="int"
  1231. abstract="false" native="false" synchronized="false"
  1232. static="false" final="false" visibility="public"
  1233. deprecated="not deprecated">
  1234. <doc>
  1235. <![CDATA[Return the number of keys in the configuration.
  1236. @return number of keys in the configuration.]]>
  1237. </doc>
  1238. </method>
  1239. <method name="clear"
  1240. abstract="false" native="false" synchronized="false"
  1241. static="false" final="false" visibility="public"
  1242. deprecated="not deprecated">
  1243. <doc>
  1244. <![CDATA[Clears all keys from the configuration.]]>
  1245. </doc>
  1246. </method>
  1247. <method name="iterator" return="java.util.Iterator"
  1248. abstract="false" native="false" synchronized="false"
  1249. static="false" final="false" visibility="public"
  1250. deprecated="not deprecated">
  1251. <doc>
  1252. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  1253. key-value pairs in the configuration.
  1254. @return an iterator over the entries.]]>
  1255. </doc>
  1256. </method>
  1257. <method name="writeXml"
  1258. abstract="false" native="false" synchronized="false"
  1259. static="false" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <param name="out" type="java.io.OutputStream"/>
  1262. <exception name="IOException" type="java.io.IOException"/>
  1263. <doc>
  1264. <![CDATA[Write out the non-default properties in this configuration to the given
  1265. {@link OutputStream} using UTF-8 encoding.
  1266. @param out the output stream to write to.]]>
  1267. </doc>
  1268. </method>
  1269. <method name="writeXml"
  1270. abstract="false" native="false" synchronized="false"
  1271. static="false" final="false" visibility="public"
  1272. deprecated="not deprecated">
  1273. <param name="out" type="java.io.Writer"/>
  1274. <exception name="IOException" type="java.io.IOException"/>
  1275. <doc>
  1276. <![CDATA[Write out the non-default properties in this configuration to the given
  1277. {@link Writer}.
  1278. @param out the writer to write to.]]>
  1279. </doc>
  1280. </method>
  1281. <method name="dumpConfiguration"
  1282. abstract="false" native="false" synchronized="false"
  1283. static="true" final="false" visibility="public"
  1284. deprecated="not deprecated">
  1285. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  1286. <param name="out" type="java.io.Writer"/>
  1287. <exception name="IOException" type="java.io.IOException"/>
  1288. <doc>
  1289. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  1290. the given {@link Writer}
  1291. The format of the output would be
  1292. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  1293. key2.isFinal,key2.resource}... ] }
  1294. It does not output the parameters of the configuration object which is
  1295. loaded from an input stream.
  1296. @param out the Writer to write to
  1297. @throws IOException]]>
  1298. </doc>
  1299. </method>
  1300. <method name="getClassLoader" return="java.lang.ClassLoader"
  1301. abstract="false" native="false" synchronized="false"
  1302. static="false" final="false" visibility="public"
  1303. deprecated="not deprecated">
  1304. <doc>
  1305. <![CDATA[Get the {@link ClassLoader} for this job.
  1306. @return the correct class loader.]]>
  1307. </doc>
  1308. </method>
  1309. <method name="setClassLoader"
  1310. abstract="false" native="false" synchronized="false"
  1311. static="false" final="false" visibility="public"
  1312. deprecated="not deprecated">
  1313. <param name="classLoader" type="java.lang.ClassLoader"/>
  1314. <doc>
  1315. <![CDATA[Set the class loader that will be used to load the various objects.
  1316. @param classLoader the new class loader.]]>
  1317. </doc>
  1318. </method>
  1319. <method name="toString" return="java.lang.String"
  1320. abstract="false" native="false" synchronized="false"
  1321. static="false" final="false" visibility="public"
  1322. deprecated="not deprecated">
  1323. </method>
  1324. <method name="setQuietMode"
  1325. abstract="false" native="false" synchronized="true"
  1326. static="false" final="false" visibility="public"
  1327. deprecated="not deprecated">
  1328. <param name="quietmode" type="boolean"/>
  1329. <doc>
  1330. <![CDATA[Set the quietness-mode.
  1331. In the quiet-mode, error and informational messages might not be logged.
  1332. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  1333. to turn it off.]]>
  1334. </doc>
  1335. </method>
  1336. <method name="main"
  1337. abstract="false" native="false" synchronized="false"
  1338. static="true" final="false" visibility="public"
  1339. deprecated="not deprecated">
  1340. <param name="args" type="java.lang.String[]"/>
  1341. <exception name="Exception" type="java.lang.Exception"/>
  1342. <doc>
  1343. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  1344. </doc>
  1345. </method>
  1346. <method name="readFields"
  1347. abstract="false" native="false" synchronized="false"
  1348. static="false" final="false" visibility="public"
  1349. deprecated="not deprecated">
  1350. <param name="in" type="java.io.DataInput"/>
  1351. <exception name="IOException" type="java.io.IOException"/>
  1352. </method>
  1353. <method name="write"
  1354. abstract="false" native="false" synchronized="false"
  1355. static="false" final="false" visibility="public"
  1356. deprecated="not deprecated">
  1357. <param name="out" type="java.io.DataOutput"/>
  1358. <exception name="IOException" type="java.io.IOException"/>
  1359. </method>
  1360. <method name="getValByRegex" return="java.util.Map"
  1361. abstract="false" native="false" synchronized="false"
  1362. static="false" final="false" visibility="public"
  1363. deprecated="not deprecated">
  1364. <param name="regex" type="java.lang.String"/>
  1365. <doc>
  1366. <![CDATA[get keys matching the the regex
  1367. @param regex
  1368. @return Map<String,String> with matching keys]]>
  1369. </doc>
  1370. </method>
  1371. <method name="dumpDeprecatedKeys"
  1372. abstract="false" native="false" synchronized="false"
  1373. static="true" final="false" visibility="public"
  1374. deprecated="not deprecated">
  1375. </method>
  1376. <method name="hasWarnedDeprecation" return="boolean"
  1377. abstract="false" native="false" synchronized="false"
  1378. static="true" final="false" visibility="public"
  1379. deprecated="not deprecated">
  1380. <param name="name" type="java.lang.String"/>
  1381. <doc>
  1382. <![CDATA[Returns whether or not a deprecated name has been warned. If the name is not
  1383. deprecated then always return false]]>
  1384. </doc>
  1385. </method>
  1386. <doc>
  1387. <![CDATA[Provides access to configuration parameters.
  1388. <h4 id="Resources">Resources</h4>
  1389. <p>Configurations are specified by resources. A resource contains a set of
  1390. name/value pairs as XML data. Each resource is named by either a
  1391. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  1392. then the classpath is examined for a file with that name. If named by a
  1393. <code>Path</code>, then the local filesystem is examined directly, without
  1394. referring to the classpath.
  1395. <p>Unless explicitly turned off, Hadoop by default specifies two
  1396. resources, loaded in-order from the classpath: <ol>
  1397. <li><tt>
  1398. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/core-default.xml">
  1399. core-default.xml</a></tt>: Read-only defaults for hadoop.</li>
  1400. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  1401. installation.</li>
  1402. </ol>
  1403. Applications may add additional resources, which are loaded
  1404. subsequent to these resources in the order they are added.
  1405. <h4 id="FinalParams">Final Parameters</h4>
  1406. <p>Configuration parameters may be declared <i>final</i>.
  1407. Once a resource declares a value final, no subsequently-loaded
  1408. resource can alter that value.
  1409. For example, one might define a final parameter with:
  1410. <tt><pre>
  1411. &lt;property&gt;
  1412. &lt;name&gt;dfs.hosts.include&lt;/name&gt;
  1413. &lt;value&gt;/etc/hadoop/conf/hosts.include&lt;/value&gt;
  1414. <b>&lt;final&gt;true&lt;/final&gt;</b>
  1415. &lt;/property&gt;</pre></tt>
  1416. Administrators typically define parameters as final in
  1417. <tt>core-site.xml</tt> for values that user applications may not alter.
  1418. <h4 id="VariableExpansion">Variable Expansion</h4>
  1419. <p>Value strings are first processed for <i>variable expansion</i>. The
  1420. available properties are:<ol>
  1421. <li>Other properties defined in this Configuration; and, if a name is
  1422. undefined here,</li>
  1423. <li>Properties in {@link System#getProperties()}.</li>
  1424. </ol>
  1425. <p>For example, if a configuration resource contains the following property
  1426. definitions:
  1427. <tt><pre>
  1428. &lt;property&gt;
  1429. &lt;name&gt;basedir&lt;/name&gt;
  1430. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  1431. &lt;/property&gt;
  1432. &lt;property&gt;
  1433. &lt;name&gt;tempdir&lt;/name&gt;
  1434. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  1435. &lt;/property&gt;</pre></tt>
  1436. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  1437. will be resolved to another property in this Configuration, while
  1438. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  1439. of the System property with that name.
  1440. By default, warnings will be given to any deprecated configuration
  1441. parameters and these are suppressible by configuring
  1442. <tt>log4j.logger.org.apache.hadoop.conf.Configuration.deprecation</tt> in
  1443. log4j.properties file.]]>
  1444. </doc>
  1445. </class>
  1446. <!-- end class org.apache.hadoop.conf.Configuration -->
  1447. <!-- start class org.apache.hadoop.conf.Configured -->
  1448. <class name="Configured" extends="java.lang.Object"
  1449. abstract="false"
  1450. static="false" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <implements name="org.apache.hadoop.conf.Configurable"/>
  1453. <constructor name="Configured"
  1454. static="false" final="false" visibility="public"
  1455. deprecated="not deprecated">
  1456. <doc>
  1457. <![CDATA[Construct a Configured.]]>
  1458. </doc>
  1459. </constructor>
  1460. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1461. static="false" final="false" visibility="public"
  1462. deprecated="not deprecated">
  1463. <doc>
  1464. <![CDATA[Construct a Configured.]]>
  1465. </doc>
  1466. </constructor>
  1467. <method name="setConf"
  1468. abstract="false" native="false" synchronized="false"
  1469. static="false" final="false" visibility="public"
  1470. deprecated="not deprecated">
  1471. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1472. </method>
  1473. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1474. abstract="false" native="false" synchronized="false"
  1475. static="false" final="false" visibility="public"
  1476. deprecated="not deprecated">
  1477. </method>
  1478. <doc>
  1479. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1480. </doc>
  1481. </class>
  1482. <!-- end class org.apache.hadoop.conf.Configured -->
  1483. <!-- start class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1484. <class name="ReconfigurationTaskStatus" extends="java.lang.Object"
  1485. abstract="false"
  1486. static="false" final="false" visibility="public"
  1487. deprecated="not deprecated">
  1488. <constructor name="ReconfigurationTaskStatus" type="long, long, java.util.Map"
  1489. static="false" final="false" visibility="public"
  1490. deprecated="not deprecated">
  1491. </constructor>
  1492. <method name="hasTask" return="boolean"
  1493. abstract="false" native="false" synchronized="false"
  1494. static="false" final="false" visibility="public"
  1495. deprecated="not deprecated">
  1496. <doc>
  1497. <![CDATA[Return true if
  1498. - A reconfiguration task has finished or
  1499. - an active reconfiguration task is running]]>
  1500. </doc>
  1501. </method>
  1502. <method name="stopped" return="boolean"
  1503. abstract="false" native="false" synchronized="false"
  1504. static="false" final="false" visibility="public"
  1505. deprecated="not deprecated">
  1506. <doc>
  1507. <![CDATA[Return true if the latest reconfiguration task has finished and there is
  1508. no another active task running.]]>
  1509. </doc>
  1510. </method>
  1511. <method name="getStartTime" return="long"
  1512. abstract="false" native="false" synchronized="false"
  1513. static="false" final="false" visibility="public"
  1514. deprecated="not deprecated">
  1515. </method>
  1516. <method name="getEndTime" return="long"
  1517. abstract="false" native="false" synchronized="false"
  1518. static="false" final="false" visibility="public"
  1519. deprecated="not deprecated">
  1520. </method>
  1521. <method name="getStatus" return="java.util.Map"
  1522. abstract="false" native="false" synchronized="false"
  1523. static="false" final="true" visibility="public"
  1524. deprecated="not deprecated">
  1525. </method>
  1526. </class>
  1527. <!-- end class org.apache.hadoop.conf.ReconfigurationTaskStatus -->
  1528. <doc>
  1529. <![CDATA[Configuration of system parameters.]]>
  1530. </doc>
  1531. </package>
  1532. <package name="org.apache.hadoop.crypto">
  1533. </package>
  1534. <package name="org.apache.hadoop.crypto.key">
  1535. <!-- start class org.apache.hadoop.crypto.key.KeyProvider -->
  1536. <class name="KeyProvider" extends="java.lang.Object"
  1537. abstract="true"
  1538. static="false" final="false" visibility="public"
  1539. deprecated="not deprecated">
  1540. <constructor name="KeyProvider" type="org.apache.hadoop.conf.Configuration"
  1541. static="false" final="false" visibility="public"
  1542. deprecated="not deprecated">
  1543. <doc>
  1544. <![CDATA[Constructor.
  1545. @param conf configuration for the provider]]>
  1546. </doc>
  1547. </constructor>
  1548. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1549. abstract="false" native="false" synchronized="false"
  1550. static="false" final="false" visibility="public"
  1551. deprecated="not deprecated">
  1552. <doc>
  1553. <![CDATA[Return the provider configuration.
  1554. @return the provider configuration]]>
  1555. </doc>
  1556. </method>
  1557. <method name="options" return="org.apache.hadoop.crypto.key.KeyProvider.Options"
  1558. abstract="false" native="false" synchronized="false"
  1559. static="true" final="false" visibility="public"
  1560. deprecated="not deprecated">
  1561. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1562. <doc>
  1563. <![CDATA[A helper function to create an options object.
  1564. @param conf the configuration to use
  1565. @return a new options object]]>
  1566. </doc>
  1567. </method>
  1568. <method name="isTransient" return="boolean"
  1569. abstract="false" native="false" synchronized="false"
  1570. static="false" final="false" visibility="public"
  1571. deprecated="not deprecated">
  1572. <doc>
  1573. <![CDATA[Indicates whether this provider represents a store
  1574. that is intended for transient use - such as the UserProvider
  1575. is. These providers are generally used to provide access to
  1576. keying material rather than for long term storage.
  1577. @return true if transient, false otherwise]]>
  1578. </doc>
  1579. </method>
  1580. <method name="getKeyVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1581. abstract="true" native="false" synchronized="false"
  1582. static="false" final="false" visibility="public"
  1583. deprecated="not deprecated">
  1584. <param name="versionName" type="java.lang.String"/>
  1585. <exception name="IOException" type="java.io.IOException"/>
  1586. <doc>
  1587. <![CDATA[Get the key material for a specific version of the key. This method is used
  1588. when decrypting data.
  1589. @param versionName the name of a specific version of the key
  1590. @return the key material
  1591. @throws IOException]]>
  1592. </doc>
  1593. </method>
  1594. <method name="getKeys" return="java.util.List"
  1595. abstract="true" native="false" synchronized="false"
  1596. static="false" final="false" visibility="public"
  1597. deprecated="not deprecated">
  1598. <exception name="IOException" type="java.io.IOException"/>
  1599. <doc>
  1600. <![CDATA[Get the key names for all keys.
  1601. @return the list of key names
  1602. @throws IOException]]>
  1603. </doc>
  1604. </method>
  1605. <method name="getKeysMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata[]"
  1606. abstract="false" native="false" synchronized="false"
  1607. static="false" final="false" visibility="public"
  1608. deprecated="not deprecated">
  1609. <param name="names" type="java.lang.String[]"/>
  1610. <exception name="IOException" type="java.io.IOException"/>
  1611. <doc>
  1612. <![CDATA[Get key metadata in bulk.
  1613. @param names the names of the keys to get
  1614. @throws IOException]]>
  1615. </doc>
  1616. </method>
  1617. <method name="getKeyVersions" return="java.util.List"
  1618. abstract="true" native="false" synchronized="false"
  1619. static="false" final="false" visibility="public"
  1620. deprecated="not deprecated">
  1621. <param name="name" type="java.lang.String"/>
  1622. <exception name="IOException" type="java.io.IOException"/>
  1623. <doc>
  1624. <![CDATA[Get the key material for all versions of a specific key name.
  1625. @return the list of key material
  1626. @throws IOException]]>
  1627. </doc>
  1628. </method>
  1629. <method name="getCurrentKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1630. abstract="false" native="false" synchronized="false"
  1631. static="false" final="false" visibility="public"
  1632. deprecated="not deprecated">
  1633. <param name="name" type="java.lang.String"/>
  1634. <exception name="IOException" type="java.io.IOException"/>
  1635. <doc>
  1636. <![CDATA[Get the current version of the key, which should be used for encrypting new
  1637. data.
  1638. @param name the base name of the key
  1639. @return the version name of the current version of the key or null if the
  1640. key version doesn't exist
  1641. @throws IOException]]>
  1642. </doc>
  1643. </method>
  1644. <method name="getMetadata" return="org.apache.hadoop.crypto.key.KeyProvider.Metadata"
  1645. abstract="true" native="false" synchronized="false"
  1646. static="false" final="false" visibility="public"
  1647. deprecated="not deprecated">
  1648. <param name="name" type="java.lang.String"/>
  1649. <exception name="IOException" type="java.io.IOException"/>
  1650. <doc>
  1651. <![CDATA[Get metadata about the key.
  1652. @param name the basename of the key
  1653. @return the key's metadata or null if the key doesn't exist
  1654. @throws IOException]]>
  1655. </doc>
  1656. </method>
  1657. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1658. abstract="true" native="false" synchronized="false"
  1659. static="false" final="false" visibility="public"
  1660. deprecated="not deprecated">
  1661. <param name="name" type="java.lang.String"/>
  1662. <param name="material" type="byte[]"/>
  1663. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1664. <exception name="IOException" type="java.io.IOException"/>
  1665. <doc>
  1666. <![CDATA[Create a new key. The given key must not already exist.
  1667. @param name the base name of the key
  1668. @param material the key material for the first version of the key.
  1669. @param options the options for the new key.
  1670. @return the version name of the first version of the key.
  1671. @throws IOException]]>
  1672. </doc>
  1673. </method>
  1674. <method name="generateKey" return="byte[]"
  1675. abstract="false" native="false" synchronized="false"
  1676. static="false" final="false" visibility="protected"
  1677. deprecated="not deprecated">
  1678. <param name="size" type="int"/>
  1679. <param name="algorithm" type="java.lang.String"/>
  1680. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1681. <doc>
  1682. <![CDATA[Generates a key material.
  1683. @param size length of the key.
  1684. @param algorithm algorithm to use for generating the key.
  1685. @return the generated key.
  1686. @throws NoSuchAlgorithmException]]>
  1687. </doc>
  1688. </method>
  1689. <method name="createKey" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1690. abstract="false" native="false" synchronized="false"
  1691. static="false" final="false" visibility="public"
  1692. deprecated="not deprecated">
  1693. <param name="name" type="java.lang.String"/>
  1694. <param name="options" type="org.apache.hadoop.crypto.key.KeyProvider.Options"/>
  1695. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1696. <exception name="IOException" type="java.io.IOException"/>
  1697. <doc>
  1698. <![CDATA[Create a new key generating the material for it.
  1699. The given key must not already exist.
  1700. <p/>
  1701. This implementation generates the key material and calls the
  1702. {@link #createKey(String, byte[], Options)} method.
  1703. @param name the base name of the key
  1704. @param options the options for the new key.
  1705. @return the version name of the first version of the key.
  1706. @throws IOException
  1707. @throws NoSuchAlgorithmException]]>
  1708. </doc>
  1709. </method>
  1710. <method name="deleteKey"
  1711. abstract="true" native="false" synchronized="false"
  1712. static="false" final="false" visibility="public"
  1713. deprecated="not deprecated">
  1714. <param name="name" type="java.lang.String"/>
  1715. <exception name="IOException" type="java.io.IOException"/>
  1716. <doc>
  1717. <![CDATA[Delete the given key.
  1718. @param name the name of the key to delete
  1719. @throws IOException]]>
  1720. </doc>
  1721. </method>
  1722. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1723. abstract="true" native="false" synchronized="false"
  1724. static="false" final="false" visibility="public"
  1725. deprecated="not deprecated">
  1726. <param name="name" type="java.lang.String"/>
  1727. <param name="material" type="byte[]"/>
  1728. <exception name="IOException" type="java.io.IOException"/>
  1729. <doc>
  1730. <![CDATA[Roll a new version of the given key.
  1731. @param name the basename of the key
  1732. @param material the new key material
  1733. @return the name of the new version of the key
  1734. @throws IOException]]>
  1735. </doc>
  1736. </method>
  1737. <method name="close"
  1738. abstract="false" native="false" synchronized="false"
  1739. static="false" final="false" visibility="public"
  1740. deprecated="not deprecated">
  1741. <exception name="IOException" type="java.io.IOException"/>
  1742. <doc>
  1743. <![CDATA[Can be used by implementing classes to close any resources
  1744. that require closing]]>
  1745. </doc>
  1746. </method>
  1747. <method name="rollNewVersion" return="org.apache.hadoop.crypto.key.KeyProvider.KeyVersion"
  1748. abstract="false" native="false" synchronized="false"
  1749. static="false" final="false" visibility="public"
  1750. deprecated="not deprecated">
  1751. <param name="name" type="java.lang.String"/>
  1752. <exception name="NoSuchAlgorithmException" type="java.security.NoSuchAlgorithmException"/>
  1753. <exception name="IOException" type="java.io.IOException"/>
  1754. <doc>
  1755. <![CDATA[Roll a new version of the given key generating the material for it.
  1756. <p/>
  1757. This implementation generates the key material and calls the
  1758. {@link #rollNewVersion(String, byte[])} method.
  1759. @param name the basename of the key
  1760. @return the name of the new version of the key
  1761. @throws IOException]]>
  1762. </doc>
  1763. </method>
  1764. <method name="flush"
  1765. abstract="true" native="false" synchronized="false"
  1766. static="false" final="false" visibility="public"
  1767. deprecated="not deprecated">
  1768. <exception name="IOException" type="java.io.IOException"/>
  1769. <doc>
  1770. <![CDATA[Ensures that any changes to the keys are written to persistent store.
  1771. @throws IOException]]>
  1772. </doc>
  1773. </method>
  1774. <method name="getBaseName" return="java.lang.String"
  1775. abstract="false" native="false" synchronized="false"
  1776. static="true" final="false" visibility="public"
  1777. deprecated="not deprecated">
  1778. <param name="versionName" type="java.lang.String"/>
  1779. <exception name="IOException" type="java.io.IOException"/>
  1780. <doc>
  1781. <![CDATA[Split the versionName in to a base name. Converts "/aaa/bbb/3" to
  1782. "/aaa/bbb".
  1783. @param versionName the version name to split
  1784. @return the base name of the key
  1785. @throws IOException]]>
  1786. </doc>
  1787. </method>
  1788. <method name="buildVersionName" return="java.lang.String"
  1789. abstract="false" native="false" synchronized="false"
  1790. static="true" final="false" visibility="protected"
  1791. deprecated="not deprecated">
  1792. <param name="name" type="java.lang.String"/>
  1793. <param name="version" type="int"/>
  1794. <doc>
  1795. <![CDATA[Build a version string from a basename and version number. Converts
  1796. "/aaa/bbb" and 3 to "/aaa/bbb@3".
  1797. @param name the basename of the key
  1798. @param version the version of the key
  1799. @return the versionName of the key.]]>
  1800. </doc>
  1801. </method>
  1802. <method name="findProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1803. abstract="false" native="false" synchronized="false"
  1804. static="true" final="false" visibility="public"
  1805. deprecated="not deprecated">
  1806. <param name="providerList" type="java.util.List"/>
  1807. <param name="keyName" type="java.lang.String"/>
  1808. <exception name="IOException" type="java.io.IOException"/>
  1809. <doc>
  1810. <![CDATA[Find the provider with the given key.
  1811. @param providerList the list of providers
  1812. @param keyName the key name we are looking for
  1813. @return the KeyProvider that has the key]]>
  1814. </doc>
  1815. </method>
  1816. <field name="DEFAULT_CIPHER_NAME" type="java.lang.String"
  1817. transient="false" volatile="false"
  1818. static="true" final="true" visibility="public"
  1819. deprecated="not deprecated">
  1820. </field>
  1821. <field name="DEFAULT_CIPHER" type="java.lang.String"
  1822. transient="false" volatile="false"
  1823. static="true" final="true" visibility="public"
  1824. deprecated="not deprecated">
  1825. </field>
  1826. <field name="DEFAULT_BITLENGTH_NAME" type="java.lang.String"
  1827. transient="false" volatile="false"
  1828. static="true" final="true" visibility="public"
  1829. deprecated="not deprecated">
  1830. </field>
  1831. <field name="DEFAULT_BITLENGTH" type="int"
  1832. transient="false" volatile="false"
  1833. static="true" final="true" visibility="public"
  1834. deprecated="not deprecated">
  1835. </field>
  1836. <doc>
  1837. <![CDATA[A provider of secret key material for Hadoop applications. Provides an
  1838. abstraction to separate key storage from users of encryption. It
  1839. is intended to support getting or storing keys in a variety of ways,
  1840. including third party bindings.
  1841. <P/>
  1842. <code>KeyProvider</code> implementations must be thread safe.]]>
  1843. </doc>
  1844. </class>
  1845. <!-- end class org.apache.hadoop.crypto.key.KeyProvider -->
  1846. <!-- start class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  1847. <class name="KeyProviderFactory" extends="java.lang.Object"
  1848. abstract="true"
  1849. static="false" final="false" visibility="public"
  1850. deprecated="not deprecated">
  1851. <constructor name="KeyProviderFactory"
  1852. static="false" final="false" visibility="public"
  1853. deprecated="not deprecated">
  1854. </constructor>
  1855. <method name="createProvider" return="org.apache.hadoop.crypto.key.KeyProvider"
  1856. abstract="true" native="false" synchronized="false"
  1857. static="false" final="false" visibility="public"
  1858. deprecated="not deprecated">
  1859. <param name="providerName" type="java.net.URI"/>
  1860. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1861. <exception name="IOException" type="java.io.IOException"/>
  1862. </method>
  1863. <method name="getProviders" return="java.util.List"
  1864. abstract="false" native="false" synchronized="false"
  1865. static="true" final="false" visibility="public"
  1866. deprecated="not deprecated">
  1867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1868. <exception name="IOException" type="java.io.IOException"/>
  1869. </method>
  1870. <method name="get" return="org.apache.hadoop.crypto.key.KeyProvider"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="true" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <param name="uri" type="java.net.URI"/>
  1875. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1876. <exception name="IOException" type="java.io.IOException"/>
  1877. <doc>
  1878. <![CDATA[Create a KeyProvider based on a provided URI.
  1879. @param uri key provider URI
  1880. @param conf configuration to initialize the key provider
  1881. @return the key provider for the specified URI, or <code>NULL</code> if
  1882. a provider for the specified URI scheme could not be found.
  1883. @throws IOException thrown if the provider failed to initialize.]]>
  1884. </doc>
  1885. </method>
  1886. <field name="KEY_PROVIDER_PATH" type="java.lang.String"
  1887. transient="false" volatile="false"
  1888. static="true" final="true" visibility="public"
  1889. deprecated="not deprecated">
  1890. </field>
  1891. <doc>
  1892. <![CDATA[A factory to create a list of KeyProvider based on the path given in a
  1893. Configuration. It uses a service loader interface to find the available
  1894. KeyProviders and create them based on the list of URIs.]]>
  1895. </doc>
  1896. </class>
  1897. <!-- end class org.apache.hadoop.crypto.key.KeyProviderFactory -->
  1898. </package>
  1899. <package name="org.apache.hadoop.crypto.key.kms">
  1900. </package>
  1901. <package name="org.apache.hadoop.crypto.random">
  1902. </package>
  1903. <package name="org.apache.hadoop.fs">
  1904. <!-- start class org.apache.hadoop.fs.AbstractFileSystem -->
  1905. <class name="AbstractFileSystem" extends="java.lang.Object"
  1906. abstract="true"
  1907. static="false" final="false" visibility="public"
  1908. deprecated="not deprecated">
  1909. <constructor name="AbstractFileSystem" type="java.net.URI, java.lang.String, boolean, int"
  1910. static="false" final="false" visibility="public"
  1911. deprecated="not deprecated">
  1912. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  1913. <doc>
  1914. <![CDATA[Constructor to be called by subclasses.
  1915. @param uri for this file system.
  1916. @param supportedScheme the scheme supported by the implementor
  1917. @param authorityNeeded if true then theURI must have authority, if false
  1918. then the URI must have null authority.
  1919. @throws URISyntaxException <code>uri</code> has syntax error]]>
  1920. </doc>
  1921. </constructor>
  1922. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1923. abstract="false" native="false" synchronized="false"
  1924. static="false" final="false" visibility="public"
  1925. deprecated="not deprecated">
  1926. </method>
  1927. <method name="isValidName" return="boolean"
  1928. abstract="false" native="false" synchronized="false"
  1929. static="false" final="false" visibility="public"
  1930. deprecated="not deprecated">
  1931. <param name="src" type="java.lang.String"/>
  1932. <doc>
  1933. <![CDATA[Returns true if the specified string is considered valid in the path part
  1934. of a URI by this file system. The default implementation enforces the rules
  1935. of HDFS, but subclasses may override this method to implement specific
  1936. validation rules for specific file systems.
  1937. @param src String source filename to check, path part of the URI
  1938. @return boolean true if the specified string is considered valid]]>
  1939. </doc>
  1940. </method>
  1941. <method name="createFileSystem" return="org.apache.hadoop.fs.AbstractFileSystem"
  1942. abstract="false" native="false" synchronized="false"
  1943. static="true" final="false" visibility="public"
  1944. deprecated="not deprecated">
  1945. <param name="uri" type="java.net.URI"/>
  1946. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1947. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1948. <doc>
  1949. <![CDATA[Create a file system instance for the specified uri using the conf. The
  1950. conf is used to find the class name that implements the file system. The
  1951. conf is also passed to the file system for its configuration.
  1952. @param uri URI of the file system
  1953. @param conf Configuration for the file system
  1954. @return Returns the file system for the given URI
  1955. @throws UnsupportedFileSystemException file system for <code>uri</code> is
  1956. not found]]>
  1957. </doc>
  1958. </method>
  1959. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  1960. abstract="false" native="false" synchronized="true"
  1961. static="true" final="false" visibility="protected"
  1962. deprecated="not deprecated">
  1963. <param name="uri" type="java.net.URI"/>
  1964. <doc>
  1965. <![CDATA[Get the statistics for a particular file system.
  1966. @param uri
  1967. used as key to lookup STATISTICS_TABLE. Only scheme and authority
  1968. part of the uri are used.
  1969. @return a statistics object]]>
  1970. </doc>
  1971. </method>
  1972. <method name="clearStatistics"
  1973. abstract="false" native="false" synchronized="true"
  1974. static="true" final="false" visibility="public"
  1975. deprecated="not deprecated">
  1976. </method>
  1977. <method name="printStatistics"
  1978. abstract="false" native="false" synchronized="true"
  1979. static="true" final="false" visibility="public"
  1980. deprecated="not deprecated">
  1981. <doc>
  1982. <![CDATA[Prints statistics for all file systems.]]>
  1983. </doc>
  1984. </method>
  1985. <method name="getAllStatistics" return="java.util.Map"
  1986. abstract="false" native="false" synchronized="true"
  1987. static="true" final="false" visibility="protected"
  1988. deprecated="not deprecated">
  1989. </method>
  1990. <method name="get" return="org.apache.hadoop.fs.AbstractFileSystem"
  1991. abstract="false" native="false" synchronized="false"
  1992. static="true" final="false" visibility="public"
  1993. deprecated="not deprecated">
  1994. <param name="uri" type="java.net.URI"/>
  1995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1996. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  1997. <doc>
  1998. <![CDATA[The main factory method for creating a file system. Get a file system for
  1999. the URI's scheme and authority. The scheme of the <code>uri</code>
  2000. determines a configuration property name,
  2001. <tt>fs.AbstractFileSystem.<i>scheme</i>.impl</tt> whose value names the
  2002. AbstractFileSystem class.
  2003. The entire URI and conf is passed to the AbstractFileSystem factory method.
  2004. @param uri for the file system to be created.
  2005. @param conf which is passed to the file system impl.
  2006. @return file system for the given URI.
  2007. @throws UnsupportedFileSystemException if the file system for
  2008. <code>uri</code> is not supported.]]>
  2009. </doc>
  2010. </method>
  2011. <method name="checkScheme"
  2012. abstract="false" native="false" synchronized="false"
  2013. static="false" final="false" visibility="public"
  2014. deprecated="not deprecated">
  2015. <param name="uri" type="java.net.URI"/>
  2016. <param name="supportedScheme" type="java.lang.String"/>
  2017. <doc>
  2018. <![CDATA[Check that the Uri's scheme matches
  2019. @param uri
  2020. @param supportedScheme]]>
  2021. </doc>
  2022. </method>
  2023. <method name="getUriDefaultPort" return="int"
  2024. abstract="true" native="false" synchronized="false"
  2025. static="false" final="false" visibility="public"
  2026. deprecated="not deprecated">
  2027. <doc>
  2028. <![CDATA[The default port of this file system.
  2029. @return default port of this file system's Uri scheme
  2030. A uri with a port of -1 => default port;]]>
  2031. </doc>
  2032. </method>
  2033. <method name="getUri" return="java.net.URI"
  2034. abstract="false" native="false" synchronized="false"
  2035. static="false" final="false" visibility="public"
  2036. deprecated="not deprecated">
  2037. <doc>
  2038. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.
  2039. @return the uri of this file system.]]>
  2040. </doc>
  2041. </method>
  2042. <method name="checkPath"
  2043. abstract="false" native="false" synchronized="false"
  2044. static="false" final="false" visibility="public"
  2045. deprecated="not deprecated">
  2046. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2047. <doc>
  2048. <![CDATA[Check that a Path belongs to this FileSystem.
  2049. If the path is fully qualified URI, then its scheme and authority
  2050. matches that of this file system. Otherwise the path must be
  2051. slash-relative name.
  2052. @throws InvalidPathException if the path is invalid]]>
  2053. </doc>
  2054. </method>
  2055. <method name="getUriPath" return="java.lang.String"
  2056. abstract="false" native="false" synchronized="false"
  2057. static="false" final="false" visibility="public"
  2058. deprecated="not deprecated">
  2059. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2060. <doc>
  2061. <![CDATA[Get the path-part of a pathname. Checks that URI matches this file system
  2062. and that the path-part is a valid name.
  2063. @param p path
  2064. @return path-part of the Path p]]>
  2065. </doc>
  2066. </method>
  2067. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2068. abstract="false" native="false" synchronized="false"
  2069. static="false" final="false" visibility="public"
  2070. deprecated="not deprecated">
  2071. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2072. <doc>
  2073. <![CDATA[Make the path fully qualified to this file system
  2074. @param path
  2075. @return the qualified path]]>
  2076. </doc>
  2077. </method>
  2078. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2079. abstract="false" native="false" synchronized="false"
  2080. static="false" final="false" visibility="public"
  2081. deprecated="not deprecated">
  2082. <doc>
  2083. <![CDATA[Some file systems like LocalFileSystem have an initial workingDir
  2084. that is used as the starting workingDir. For other file systems
  2085. like HDFS there is no built in notion of an initial workingDir.
  2086. @return the initial workingDir if the file system has such a notion
  2087. otherwise return a null.]]>
  2088. </doc>
  2089. </method>
  2090. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2091. abstract="false" native="false" synchronized="false"
  2092. static="false" final="false" visibility="public"
  2093. deprecated="not deprecated">
  2094. <doc>
  2095. <![CDATA[Return the current user's home directory in this file system.
  2096. The default implementation returns "/user/$USER/".
  2097. @return current user's home directory.]]>
  2098. </doc>
  2099. </method>
  2100. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  2101. abstract="true" native="false" synchronized="false"
  2102. static="false" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. <exception name="IOException" type="java.io.IOException"/>
  2105. <doc>
  2106. <![CDATA[Return a set of server default configuration values.
  2107. @return server default configuration values
  2108. @throws IOException an I/O error occurred]]>
  2109. </doc>
  2110. </method>
  2111. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  2112. abstract="false" native="false" synchronized="false"
  2113. static="false" final="false" visibility="public"
  2114. deprecated="not deprecated">
  2115. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2116. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2117. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2118. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2119. <exception name="IOException" type="java.io.IOException"/>
  2120. <doc>
  2121. <![CDATA[Return the fully-qualified path of path f resolving the path
  2122. through any internal symlinks or mount point
  2123. @param p path to be resolved
  2124. @return fully qualified path
  2125. @throws FileNotFoundException, AccessControlException, IOException
  2126. UnresolvedLinkException if symbolic link on path cannot be resolved
  2127. internally]]>
  2128. </doc>
  2129. </method>
  2130. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2131. abstract="false" native="false" synchronized="false"
  2132. static="false" final="true" visibility="public"
  2133. deprecated="not deprecated">
  2134. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2135. <param name="createFlag" type="java.util.EnumSet"/>
  2136. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  2137. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2138. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2139. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2140. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2141. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2142. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2143. <exception name="IOException" type="java.io.IOException"/>
  2144. <doc>
  2145. <![CDATA[The specification of this method matches that of
  2146. {@link FileContext#create(Path, EnumSet, Options.CreateOpts...)} except
  2147. that the Path f must be fully qualified and the permission is absolute
  2148. (i.e. umask has been applied).]]>
  2149. </doc>
  2150. </method>
  2151. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  2152. abstract="true" native="false" synchronized="false"
  2153. static="false" final="false" visibility="public"
  2154. deprecated="not deprecated">
  2155. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2156. <param name="flag" type="java.util.EnumSet"/>
  2157. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2158. <param name="bufferSize" type="int"/>
  2159. <param name="replication" type="short"/>
  2160. <param name="blockSize" type="long"/>
  2161. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2162. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  2163. <param name="createParent" type="boolean"/>
  2164. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2165. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2166. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2167. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2168. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2169. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2170. <exception name="IOException" type="java.io.IOException"/>
  2171. <doc>
  2172. <![CDATA[The specification of this method matches that of
  2173. {@link #create(Path, EnumSet, Options.CreateOpts...)} except that the opts
  2174. have been declared explicitly.]]>
  2175. </doc>
  2176. </method>
  2177. <method name="mkdir"
  2178. abstract="true" native="false" synchronized="false"
  2179. static="false" final="false" visibility="public"
  2180. deprecated="not deprecated">
  2181. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2182. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2183. <param name="createParent" type="boolean"/>
  2184. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2185. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2186. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2187. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2188. <exception name="IOException" type="java.io.IOException"/>
  2189. <doc>
  2190. <![CDATA[The specification of this method matches that of
  2191. {@link FileContext#mkdir(Path, FsPermission, boolean)} except that the Path
  2192. f must be fully qualified and the permission is absolute (i.e.
  2193. umask has been applied).]]>
  2194. </doc>
  2195. </method>
  2196. <method name="delete" return="boolean"
  2197. abstract="true" native="false" synchronized="false"
  2198. static="false" final="false" visibility="public"
  2199. deprecated="not deprecated">
  2200. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2201. <param name="recursive" type="boolean"/>
  2202. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2203. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2204. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2205. <exception name="IOException" type="java.io.IOException"/>
  2206. <doc>
  2207. <![CDATA[The specification of this method matches that of
  2208. {@link FileContext#delete(Path, boolean)} except that Path f must be for
  2209. this file system.]]>
  2210. </doc>
  2211. </method>
  2212. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2213. abstract="false" native="false" synchronized="false"
  2214. static="false" final="false" visibility="public"
  2215. deprecated="not deprecated">
  2216. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2217. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2218. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2219. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2220. <exception name="IOException" type="java.io.IOException"/>
  2221. <doc>
  2222. <![CDATA[The specification of this method matches that of
  2223. {@link FileContext#open(Path)} except that Path f must be for this
  2224. file system.]]>
  2225. </doc>
  2226. </method>
  2227. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2228. abstract="true" native="false" synchronized="false"
  2229. static="false" final="false" visibility="public"
  2230. deprecated="not deprecated">
  2231. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2232. <param name="bufferSize" type="int"/>
  2233. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2234. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2235. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2236. <exception name="IOException" type="java.io.IOException"/>
  2237. <doc>
  2238. <![CDATA[The specification of this method matches that of
  2239. {@link FileContext#open(Path, int)} except that Path f must be for this
  2240. file system.]]>
  2241. </doc>
  2242. </method>
  2243. <method name="truncate" return="boolean"
  2244. abstract="false" native="false" synchronized="false"
  2245. static="false" final="false" visibility="public"
  2246. deprecated="not deprecated">
  2247. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2248. <param name="newLength" type="long"/>
  2249. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2250. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2251. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2252. <exception name="IOException" type="java.io.IOException"/>
  2253. <doc>
  2254. <![CDATA[The specification of this method matches that of
  2255. {@link FileContext#truncate(Path, long)} except that Path f must be for
  2256. this file system.]]>
  2257. </doc>
  2258. </method>
  2259. <method name="setReplication" return="boolean"
  2260. abstract="true" native="false" synchronized="false"
  2261. static="false" final="false" visibility="public"
  2262. deprecated="not deprecated">
  2263. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2264. <param name="replication" type="short"/>
  2265. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2266. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2267. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2268. <exception name="IOException" type="java.io.IOException"/>
  2269. <doc>
  2270. <![CDATA[The specification of this method matches that of
  2271. {@link FileContext#setReplication(Path, short)} except that Path f must be
  2272. for this file system.]]>
  2273. </doc>
  2274. </method>
  2275. <method name="rename"
  2276. abstract="false" native="false" synchronized="false"
  2277. static="false" final="true" visibility="public"
  2278. deprecated="not deprecated">
  2279. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2280. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2281. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  2282. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2283. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2284. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2285. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2286. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2287. <exception name="IOException" type="java.io.IOException"/>
  2288. <doc>
  2289. <![CDATA[The specification of this method matches that of
  2290. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2291. f must be for this file system.]]>
  2292. </doc>
  2293. </method>
  2294. <method name="renameInternal"
  2295. abstract="true" native="false" synchronized="false"
  2296. static="false" final="false" visibility="public"
  2297. deprecated="not deprecated">
  2298. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2299. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2300. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2301. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2302. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2303. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2304. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2305. <exception name="IOException" type="java.io.IOException"/>
  2306. <doc>
  2307. <![CDATA[The specification of this method matches that of
  2308. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2309. f must be for this file system and NO OVERWRITE is performed.
  2310. File systems that do not have a built in overwrite need implement only this
  2311. method and can take advantage of the default impl of the other
  2312. {@link #renameInternal(Path, Path, boolean)}]]>
  2313. </doc>
  2314. </method>
  2315. <method name="renameInternal"
  2316. abstract="false" native="false" synchronized="false"
  2317. static="false" final="false" visibility="public"
  2318. deprecated="not deprecated">
  2319. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2320. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2321. <param name="overwrite" type="boolean"/>
  2322. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2323. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  2324. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2325. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  2326. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2327. <exception name="IOException" type="java.io.IOException"/>
  2328. <doc>
  2329. <![CDATA[The specification of this method matches that of
  2330. {@link FileContext#rename(Path, Path, Options.Rename...)} except that Path
  2331. f must be for this file system.]]>
  2332. </doc>
  2333. </method>
  2334. <method name="supportsSymlinks" return="boolean"
  2335. abstract="false" native="false" synchronized="false"
  2336. static="false" final="false" visibility="public"
  2337. deprecated="not deprecated">
  2338. <doc>
  2339. <![CDATA[Returns true if the file system supports symlinks, false otherwise.
  2340. @return true if filesystem supports symlinks]]>
  2341. </doc>
  2342. </method>
  2343. <method name="createSymlink"
  2344. abstract="false" native="false" synchronized="false"
  2345. static="false" final="false" visibility="public"
  2346. deprecated="not deprecated">
  2347. <param name="target" type="org.apache.hadoop.fs.Path"/>
  2348. <param name="link" type="org.apache.hadoop.fs.Path"/>
  2349. <param name="createParent" type="boolean"/>
  2350. <exception name="IOException" type="java.io.IOException"/>
  2351. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2352. <doc>
  2353. <![CDATA[The specification of this method matches that of
  2354. {@link FileContext#createSymlink(Path, Path, boolean)};]]>
  2355. </doc>
  2356. </method>
  2357. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  2358. abstract="false" native="false" synchronized="false"
  2359. static="false" final="false" visibility="public"
  2360. deprecated="not deprecated">
  2361. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2362. <exception name="IOException" type="java.io.IOException"/>
  2363. <doc>
  2364. <![CDATA[Partially resolves the path. This is used during symlink resolution in
  2365. {@link FSLinkResolver}, and differs from the similarly named method
  2366. {@link FileContext#getLinkTarget(Path)}.
  2367. @throws IOException subclass implementations may throw IOException]]>
  2368. </doc>
  2369. </method>
  2370. <method name="setPermission"
  2371. abstract="true" native="false" synchronized="false"
  2372. static="false" final="false" visibility="public"
  2373. deprecated="not deprecated">
  2374. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2375. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2376. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2377. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2378. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2379. <exception name="IOException" type="java.io.IOException"/>
  2380. <doc>
  2381. <![CDATA[The specification of this method matches that of
  2382. {@link FileContext#setPermission(Path, FsPermission)} except that Path f
  2383. must be for this file system.]]>
  2384. </doc>
  2385. </method>
  2386. <method name="setOwner"
  2387. abstract="true" native="false" synchronized="false"
  2388. static="false" final="false" visibility="public"
  2389. deprecated="not deprecated">
  2390. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2391. <param name="username" type="java.lang.String"/>
  2392. <param name="groupname" type="java.lang.String"/>
  2393. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2394. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2395. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2396. <exception name="IOException" type="java.io.IOException"/>
  2397. <doc>
  2398. <![CDATA[The specification of this method matches that of
  2399. {@link FileContext#setOwner(Path, String, String)} except that Path f must
  2400. be for this file system.]]>
  2401. </doc>
  2402. </method>
  2403. <method name="setTimes"
  2404. abstract="true" native="false" synchronized="false"
  2405. static="false" final="false" visibility="public"
  2406. deprecated="not deprecated">
  2407. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2408. <param name="mtime" type="long"/>
  2409. <param name="atime" type="long"/>
  2410. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2411. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2412. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2413. <exception name="IOException" type="java.io.IOException"/>
  2414. <doc>
  2415. <![CDATA[The specification of this method matches that of
  2416. {@link FileContext#setTimes(Path, long, long)} except that Path f must be
  2417. for this file system.]]>
  2418. </doc>
  2419. </method>
  2420. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  2421. abstract="true" native="false" synchronized="false"
  2422. static="false" final="false" visibility="public"
  2423. deprecated="not deprecated">
  2424. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2425. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2426. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2427. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2428. <exception name="IOException" type="java.io.IOException"/>
  2429. <doc>
  2430. <![CDATA[The specification of this method matches that of
  2431. {@link FileContext#getFileChecksum(Path)} except that Path f must be for
  2432. this file system.]]>
  2433. </doc>
  2434. </method>
  2435. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2436. abstract="true" native="false" synchronized="false"
  2437. static="false" final="false" visibility="public"
  2438. deprecated="not deprecated">
  2439. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2440. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2441. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2442. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2443. <exception name="IOException" type="java.io.IOException"/>
  2444. <doc>
  2445. <![CDATA[The specification of this method matches that of
  2446. {@link FileContext#getFileStatus(Path)}
  2447. except that an UnresolvedLinkException may be thrown if a symlink is
  2448. encountered in the path.]]>
  2449. </doc>
  2450. </method>
  2451. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  2452. abstract="false" native="false" synchronized="false"
  2453. static="false" final="false" visibility="public"
  2454. deprecated="not deprecated">
  2455. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2456. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2457. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2458. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  2459. <exception name="IOException" type="java.io.IOException"/>
  2460. <doc>
  2461. <![CDATA[The specification of this method matches that of
  2462. {@link FileContext#getFileLinkStatus(Path)}
  2463. except that an UnresolvedLinkException may be thrown if a symlink is
  2464. encountered in the path leading up to the final path component.
  2465. If the file system does not support symlinks then the behavior is
  2466. equivalent to {@link AbstractFileSystem#getFileStatus(Path)}.]]>
  2467. </doc>
  2468. </method>
  2469. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2470. abstract="true" native="false" synchronized="false"
  2471. static="false" final="false" visibility="public"
  2472. deprecated="not deprecated">
  2473. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2474. <param name="start" type="long"/>
  2475. <param name="len" type="long"/>
  2476. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2477. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2478. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2479. <exception name="IOException" type="java.io.IOException"/>
  2480. <doc>
  2481. <![CDATA[The specification of this method matches that of
  2482. {@link FileContext#getFileBlockLocations(Path, long, long)} except that
  2483. Path f must be for this file system.]]>
  2484. </doc>
  2485. </method>
  2486. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2487. abstract="false" native="false" synchronized="false"
  2488. static="false" final="false" visibility="public"
  2489. deprecated="not deprecated">
  2490. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2491. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2492. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2493. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2494. <exception name="IOException" type="java.io.IOException"/>
  2495. <doc>
  2496. <![CDATA[The specification of this method matches that of
  2497. {@link FileContext#getFsStatus(Path)} except that Path f must be for this
  2498. file system.]]>
  2499. </doc>
  2500. </method>
  2501. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  2502. abstract="true" native="false" synchronized="false"
  2503. static="false" final="false" visibility="public"
  2504. deprecated="not deprecated">
  2505. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2506. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2507. <exception name="IOException" type="java.io.IOException"/>
  2508. <doc>
  2509. <![CDATA[The specification of this method matches that of
  2510. {@link FileContext#getFsStatus(Path)}.]]>
  2511. </doc>
  2512. </method>
  2513. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  2514. abstract="false" native="false" synchronized="false"
  2515. static="false" final="false" visibility="public"
  2516. deprecated="not deprecated">
  2517. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2518. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2519. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2520. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2521. <exception name="IOException" type="java.io.IOException"/>
  2522. <doc>
  2523. <![CDATA[The specification of this method matches that of
  2524. {@link FileContext#listStatus(Path)} except that Path f must be for this
  2525. file system.]]>
  2526. </doc>
  2527. </method>
  2528. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  2529. abstract="false" native="false" synchronized="false"
  2530. static="false" final="false" visibility="public"
  2531. deprecated="not deprecated">
  2532. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2533. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2534. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2535. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2536. <exception name="IOException" type="java.io.IOException"/>
  2537. <doc>
  2538. <![CDATA[The specification of this method matches that of
  2539. {@link FileContext#listLocatedStatus(Path)} except that Path f
  2540. must be for this file system.]]>
  2541. </doc>
  2542. </method>
  2543. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2544. abstract="true" native="false" synchronized="false"
  2545. static="false" final="false" visibility="public"
  2546. deprecated="not deprecated">
  2547. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2548. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2549. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  2550. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  2551. <exception name="IOException" type="java.io.IOException"/>
  2552. <doc>
  2553. <![CDATA[The specification of this method matches that of
  2554. {@link FileContext.Util#listStatus(Path)} except that Path f must be
  2555. for this file system.]]>
  2556. </doc>
  2557. </method>
  2558. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  2559. abstract="false" native="false" synchronized="false"
  2560. static="false" final="false" visibility="public"
  2561. deprecated="not deprecated">
  2562. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2563. <exception name="IOException" type="java.io.IOException"/>
  2564. <doc>
  2565. <![CDATA[@return an iterator over the corrupt files under the given path
  2566. (may contain duplicates if a file has more than one corrupt block)
  2567. @throws IOException]]>
  2568. </doc>
  2569. </method>
  2570. <method name="setVerifyChecksum"
  2571. abstract="true" native="false" synchronized="false"
  2572. static="false" final="false" visibility="public"
  2573. deprecated="not deprecated">
  2574. <param name="verifyChecksum" type="boolean"/>
  2575. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  2576. <exception name="IOException" type="java.io.IOException"/>
  2577. <doc>
  2578. <![CDATA[The specification of this method matches that of
  2579. {@link FileContext#setVerifyChecksum(boolean, Path)} except that Path f
  2580. must be for this file system.]]>
  2581. </doc>
  2582. </method>
  2583. <method name="getCanonicalServiceName" return="java.lang.String"
  2584. abstract="false" native="false" synchronized="false"
  2585. static="false" final="false" visibility="public"
  2586. deprecated="not deprecated">
  2587. <doc>
  2588. <![CDATA[Get a canonical name for this file system.
  2589. @return a URI string that uniquely identifies this file system]]>
  2590. </doc>
  2591. </method>
  2592. <method name="modifyAclEntries"
  2593. abstract="false" native="false" synchronized="false"
  2594. static="false" final="false" visibility="public"
  2595. deprecated="not deprecated">
  2596. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2597. <param name="aclSpec" type="java.util.List"/>
  2598. <exception name="IOException" type="java.io.IOException"/>
  2599. <doc>
  2600. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  2601. entries or modify the permissions on existing ACL entries. All existing
  2602. ACL entries that are not specified in this call are retained without
  2603. changes. (Modifications are merged into the current ACL.)
  2604. @param path Path to modify
  2605. @param aclSpec List<AclEntry> describing modifications
  2606. @throws IOException if an ACL could not be modified]]>
  2607. </doc>
  2608. </method>
  2609. <method name="removeAclEntries"
  2610. abstract="false" native="false" synchronized="false"
  2611. static="false" final="false" visibility="public"
  2612. deprecated="not deprecated">
  2613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2614. <param name="aclSpec" type="java.util.List"/>
  2615. <exception name="IOException" type="java.io.IOException"/>
  2616. <doc>
  2617. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  2618. retained.
  2619. @param path Path to modify
  2620. @param aclSpec List<AclEntry> describing entries to remove
  2621. @throws IOException if an ACL could not be modified]]>
  2622. </doc>
  2623. </method>
  2624. <method name="removeDefaultAcl"
  2625. abstract="false" native="false" synchronized="false"
  2626. static="false" final="false" visibility="public"
  2627. deprecated="not deprecated">
  2628. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2629. <exception name="IOException" type="java.io.IOException"/>
  2630. <doc>
  2631. <![CDATA[Removes all default ACL entries from files and directories.
  2632. @param path Path to modify
  2633. @throws IOException if an ACL could not be modified]]>
  2634. </doc>
  2635. </method>
  2636. <method name="removeAcl"
  2637. abstract="false" native="false" synchronized="false"
  2638. static="false" final="false" visibility="public"
  2639. deprecated="not deprecated">
  2640. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2641. <exception name="IOException" type="java.io.IOException"/>
  2642. <doc>
  2643. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  2644. for user, group, and others are retained for compatibility with permission
  2645. bits.
  2646. @param path Path to modify
  2647. @throws IOException if an ACL could not be removed]]>
  2648. </doc>
  2649. </method>
  2650. <method name="setAcl"
  2651. abstract="false" native="false" synchronized="false"
  2652. static="false" final="false" visibility="public"
  2653. deprecated="not deprecated">
  2654. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2655. <param name="aclSpec" type="java.util.List"/>
  2656. <exception name="IOException" type="java.io.IOException"/>
  2657. <doc>
  2658. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  2659. entries.
  2660. @param path Path to modify
  2661. @param aclSpec List<AclEntry> describing modifications, must include entries
  2662. for user, group, and others for compatibility with permission bits.
  2663. @throws IOException if an ACL could not be modified]]>
  2664. </doc>
  2665. </method>
  2666. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  2667. abstract="false" native="false" synchronized="false"
  2668. static="false" final="false" visibility="public"
  2669. deprecated="not deprecated">
  2670. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2671. <exception name="IOException" type="java.io.IOException"/>
  2672. <doc>
  2673. <![CDATA[Gets the ACLs of files and directories.
  2674. @param path Path to get
  2675. @return RemoteIterator<AclStatus> which returns each AclStatus
  2676. @throws IOException if an ACL could not be read]]>
  2677. </doc>
  2678. </method>
  2679. <method name="setXAttr"
  2680. abstract="false" native="false" synchronized="false"
  2681. static="false" final="false" visibility="public"
  2682. deprecated="not deprecated">
  2683. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2684. <param name="name" type="java.lang.String"/>
  2685. <param name="value" type="byte[]"/>
  2686. <exception name="IOException" type="java.io.IOException"/>
  2687. <doc>
  2688. <![CDATA[Set an xattr of a file or directory.
  2689. The name must be prefixed with the namespace followed by ".". For example,
  2690. "user.attr".
  2691. <p/>
  2692. Refer to the HDFS extended attributes user documentation for details.
  2693. @param path Path to modify
  2694. @param name xattr name.
  2695. @param value xattr value.
  2696. @throws IOException]]>
  2697. </doc>
  2698. </method>
  2699. <method name="setXAttr"
  2700. abstract="false" native="false" synchronized="false"
  2701. static="false" final="false" visibility="public"
  2702. deprecated="not deprecated">
  2703. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2704. <param name="name" type="java.lang.String"/>
  2705. <param name="value" type="byte[]"/>
  2706. <param name="flag" type="java.util.EnumSet"/>
  2707. <exception name="IOException" type="java.io.IOException"/>
  2708. <doc>
  2709. <![CDATA[Set an xattr of a file or directory.
  2710. The name must be prefixed with the namespace followed by ".". For example,
  2711. "user.attr".
  2712. <p/>
  2713. Refer to the HDFS extended attributes user documentation for details.
  2714. @param path Path to modify
  2715. @param name xattr name.
  2716. @param value xattr value.
  2717. @param flag xattr set flag
  2718. @throws IOException]]>
  2719. </doc>
  2720. </method>
  2721. <method name="getXAttr" return="byte[]"
  2722. abstract="false" native="false" synchronized="false"
  2723. static="false" final="false" visibility="public"
  2724. deprecated="not deprecated">
  2725. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2726. <param name="name" type="java.lang.String"/>
  2727. <exception name="IOException" type="java.io.IOException"/>
  2728. <doc>
  2729. <![CDATA[Get an xattr for a file or directory.
  2730. The name must be prefixed with the namespace followed by ".". For example,
  2731. "user.attr".
  2732. <p/>
  2733. Refer to the HDFS extended attributes user documentation for details.
  2734. @param path Path to get extended attribute
  2735. @param name xattr name.
  2736. @return byte[] xattr value.
  2737. @throws IOException]]>
  2738. </doc>
  2739. </method>
  2740. <method name="getXAttrs" return="java.util.Map"
  2741. abstract="false" native="false" synchronized="false"
  2742. static="false" final="false" visibility="public"
  2743. deprecated="not deprecated">
  2744. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2745. <exception name="IOException" type="java.io.IOException"/>
  2746. <doc>
  2747. <![CDATA[Get all of the xattrs for a file or directory.
  2748. Only those xattrs for which the logged-in user has permissions to view
  2749. are returned.
  2750. <p/>
  2751. Refer to the HDFS extended attributes user documentation for details.
  2752. @param path Path to get extended attributes
  2753. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2754. @throws IOException]]>
  2755. </doc>
  2756. </method>
  2757. <method name="getXAttrs" return="java.util.Map"
  2758. abstract="false" native="false" synchronized="false"
  2759. static="false" final="false" visibility="public"
  2760. deprecated="not deprecated">
  2761. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2762. <param name="names" type="java.util.List"/>
  2763. <exception name="IOException" type="java.io.IOException"/>
  2764. <doc>
  2765. <![CDATA[Get all of the xattrs for a file or directory.
  2766. Only those xattrs for which the logged-in user has permissions to view
  2767. are returned.
  2768. <p/>
  2769. Refer to the HDFS extended attributes user documentation for details.
  2770. @param path Path to get extended attributes
  2771. @param names XAttr names.
  2772. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2773. @throws IOException]]>
  2774. </doc>
  2775. </method>
  2776. <method name="listXAttrs" return="java.util.List"
  2777. abstract="false" native="false" synchronized="false"
  2778. static="false" final="false" visibility="public"
  2779. deprecated="not deprecated">
  2780. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2781. <exception name="IOException" type="java.io.IOException"/>
  2782. <doc>
  2783. <![CDATA[Get all of the xattr names for a file or directory.
  2784. Only the xattr names for which the logged-in user has permissions to view
  2785. are returned.
  2786. <p/>
  2787. Refer to the HDFS extended attributes user documentation for details.
  2788. @param path Path to get extended attributes
  2789. @return Map<String, byte[]> describing the XAttrs of the file or directory
  2790. @throws IOException]]>
  2791. </doc>
  2792. </method>
  2793. <method name="removeXAttr"
  2794. abstract="false" native="false" synchronized="false"
  2795. static="false" final="false" visibility="public"
  2796. deprecated="not deprecated">
  2797. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2798. <param name="name" type="java.lang.String"/>
  2799. <exception name="IOException" type="java.io.IOException"/>
  2800. <doc>
  2801. <![CDATA[Remove an xattr of a file or directory.
  2802. The name must be prefixed with the namespace followed by ".". For example,
  2803. "user.attr".
  2804. <p/>
  2805. Refer to the HDFS extended attributes user documentation for details.
  2806. @param path Path to remove extended attribute
  2807. @param name xattr name
  2808. @throws IOException]]>
  2809. </doc>
  2810. </method>
  2811. <method name="hashCode" return="int"
  2812. abstract="false" native="false" synchronized="false"
  2813. static="false" final="false" visibility="public"
  2814. deprecated="not deprecated">
  2815. </method>
  2816. <method name="equals" return="boolean"
  2817. abstract="false" native="false" synchronized="false"
  2818. static="false" final="false" visibility="public"
  2819. deprecated="not deprecated">
  2820. <param name="other" type="java.lang.Object"/>
  2821. </method>
  2822. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  2823. transient="false" volatile="false"
  2824. static="false" final="false" visibility="protected"
  2825. deprecated="not deprecated">
  2826. <doc>
  2827. <![CDATA[The statistics for this file system.]]>
  2828. </doc>
  2829. </field>
  2830. <doc>
  2831. <![CDATA[This class provides an interface for implementors of a Hadoop file system
  2832. (analogous to the VFS of Unix). Applications do not access this class;
  2833. instead they access files across all file systems using {@link FileContext}.
  2834. Pathnames passed to AbstractFileSystem can be fully qualified URI that
  2835. matches the "this" file system (ie same scheme and authority)
  2836. or a Slash-relative name that is assumed to be relative
  2837. to the root of the "this" file system .]]>
  2838. </doc>
  2839. </class>
  2840. <!-- end class org.apache.hadoop.fs.AbstractFileSystem -->
  2841. <!-- start class org.apache.hadoop.fs.AvroFSInput -->
  2842. <class name="AvroFSInput" extends="java.lang.Object"
  2843. abstract="false"
  2844. static="false" final="false" visibility="public"
  2845. deprecated="not deprecated">
  2846. <implements name="java.io.Closeable"/>
  2847. <implements name="org.apache.avro.file.SeekableInput"/>
  2848. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FSDataInputStream, long"
  2849. static="false" final="false" visibility="public"
  2850. deprecated="not deprecated">
  2851. <doc>
  2852. <![CDATA[Construct given an {@link FSDataInputStream} and its length.]]>
  2853. </doc>
  2854. </constructor>
  2855. <constructor name="AvroFSInput" type="org.apache.hadoop.fs.FileContext, org.apache.hadoop.fs.Path"
  2856. static="false" final="false" visibility="public"
  2857. deprecated="not deprecated">
  2858. <exception name="IOException" type="java.io.IOException"/>
  2859. <doc>
  2860. <![CDATA[Construct given a {@link FileContext} and a {@link Path}.]]>
  2861. </doc>
  2862. </constructor>
  2863. <method name="length" return="long"
  2864. abstract="false" native="false" synchronized="false"
  2865. static="false" final="false" visibility="public"
  2866. deprecated="not deprecated">
  2867. </method>
  2868. <method name="read" return="int"
  2869. abstract="false" native="false" synchronized="false"
  2870. static="false" final="false" visibility="public"
  2871. deprecated="not deprecated">
  2872. <param name="b" type="byte[]"/>
  2873. <param name="off" type="int"/>
  2874. <param name="len" type="int"/>
  2875. <exception name="IOException" type="java.io.IOException"/>
  2876. </method>
  2877. <method name="seek"
  2878. abstract="false" native="false" synchronized="false"
  2879. static="false" final="false" visibility="public"
  2880. deprecated="not deprecated">
  2881. <param name="p" type="long"/>
  2882. <exception name="IOException" type="java.io.IOException"/>
  2883. </method>
  2884. <method name="tell" return="long"
  2885. abstract="false" native="false" synchronized="false"
  2886. static="false" final="false" visibility="public"
  2887. deprecated="not deprecated">
  2888. <exception name="IOException" type="java.io.IOException"/>
  2889. </method>
  2890. <method name="close"
  2891. abstract="false" native="false" synchronized="false"
  2892. static="false" final="false" visibility="public"
  2893. deprecated="not deprecated">
  2894. <exception name="IOException" type="java.io.IOException"/>
  2895. </method>
  2896. <doc>
  2897. <![CDATA[Adapts an {@link FSDataInputStream} to Avro's SeekableInput interface.]]>
  2898. </doc>
  2899. </class>
  2900. <!-- end class org.apache.hadoop.fs.AvroFSInput -->
  2901. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  2902. <class name="BlockLocation" extends="java.lang.Object"
  2903. abstract="false"
  2904. static="false" final="false" visibility="public"
  2905. deprecated="not deprecated">
  2906. <constructor name="BlockLocation"
  2907. static="false" final="false" visibility="public"
  2908. deprecated="not deprecated">
  2909. <doc>
  2910. <![CDATA[Default Constructor]]>
  2911. </doc>
  2912. </constructor>
  2913. <constructor name="BlockLocation" type="org.apache.hadoop.fs.BlockLocation"
  2914. static="false" final="false" visibility="public"
  2915. deprecated="not deprecated">
  2916. <doc>
  2917. <![CDATA[Copy constructor]]>
  2918. </doc>
  2919. </constructor>
  2920. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  2921. static="false" final="false" visibility="public"
  2922. deprecated="not deprecated">
  2923. <doc>
  2924. <![CDATA[Constructor with host, name, offset and length]]>
  2925. </doc>
  2926. </constructor>
  2927. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long, boolean"
  2928. static="false" final="false" visibility="public"
  2929. deprecated="not deprecated">
  2930. <doc>
  2931. <![CDATA[Constructor with host, name, offset, length and corrupt flag]]>
  2932. </doc>
  2933. </constructor>
  2934. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  2935. static="false" final="false" visibility="public"
  2936. deprecated="not deprecated">
  2937. <doc>
  2938. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  2939. </doc>
  2940. </constructor>
  2941. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  2942. static="false" final="false" visibility="public"
  2943. deprecated="not deprecated">
  2944. <doc>
  2945. <![CDATA[Constructor with host, name, network topology, offset, length
  2946. and corrupt flag]]>
  2947. </doc>
  2948. </constructor>
  2949. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], java.lang.String[], long, long, boolean"
  2950. static="false" final="false" visibility="public"
  2951. deprecated="not deprecated">
  2952. </constructor>
  2953. <method name="getHosts" return="java.lang.String[]"
  2954. abstract="false" native="false" synchronized="false"
  2955. static="false" final="false" visibility="public"
  2956. deprecated="not deprecated">
  2957. <exception name="IOException" type="java.io.IOException"/>
  2958. <doc>
  2959. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  2960. </doc>
  2961. </method>
  2962. <method name="getCachedHosts" return="java.lang.String[]"
  2963. abstract="false" native="false" synchronized="false"
  2964. static="false" final="false" visibility="public"
  2965. deprecated="not deprecated">
  2966. <doc>
  2967. <![CDATA[Get the list of hosts (hostname) hosting a cached replica of the block]]>
  2968. </doc>
  2969. </method>
  2970. <method name="getNames" return="java.lang.String[]"
  2971. abstract="false" native="false" synchronized="false"
  2972. static="false" final="false" visibility="public"
  2973. deprecated="not deprecated">
  2974. <exception name="IOException" type="java.io.IOException"/>
  2975. <doc>
  2976. <![CDATA[Get the list of names (IP:xferPort) hosting this block]]>
  2977. </doc>
  2978. </method>
  2979. <method name="getTopologyPaths" return="java.lang.String[]"
  2980. abstract="false" native="false" synchronized="false"
  2981. static="false" final="false" visibility="public"
  2982. deprecated="not deprecated">
  2983. <exception name="IOException" type="java.io.IOException"/>
  2984. <doc>
  2985. <![CDATA[Get the list of network topology paths for each of the hosts.
  2986. The last component of the path is the "name" (IP:xferPort).]]>
  2987. </doc>
  2988. </method>
  2989. <method name="getOffset" return="long"
  2990. abstract="false" native="false" synchronized="false"
  2991. static="false" final="false" visibility="public"
  2992. deprecated="not deprecated">
  2993. <doc>
  2994. <![CDATA[Get the start offset of file associated with this block]]>
  2995. </doc>
  2996. </method>
  2997. <method name="getLength" return="long"
  2998. abstract="false" native="false" synchronized="false"
  2999. static="false" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <doc>
  3002. <![CDATA[Get the length of the block]]>
  3003. </doc>
  3004. </method>
  3005. <method name="isCorrupt" return="boolean"
  3006. abstract="false" native="false" synchronized="false"
  3007. static="false" final="false" visibility="public"
  3008. deprecated="not deprecated">
  3009. <doc>
  3010. <![CDATA[Get the corrupt flag.]]>
  3011. </doc>
  3012. </method>
  3013. <method name="setOffset"
  3014. abstract="false" native="false" synchronized="false"
  3015. static="false" final="false" visibility="public"
  3016. deprecated="not deprecated">
  3017. <param name="offset" type="long"/>
  3018. <doc>
  3019. <![CDATA[Set the start offset of file associated with this block]]>
  3020. </doc>
  3021. </method>
  3022. <method name="setLength"
  3023. abstract="false" native="false" synchronized="false"
  3024. static="false" final="false" visibility="public"
  3025. deprecated="not deprecated">
  3026. <param name="length" type="long"/>
  3027. <doc>
  3028. <![CDATA[Set the length of block]]>
  3029. </doc>
  3030. </method>
  3031. <method name="setCorrupt"
  3032. abstract="false" native="false" synchronized="false"
  3033. static="false" final="false" visibility="public"
  3034. deprecated="not deprecated">
  3035. <param name="corrupt" type="boolean"/>
  3036. <doc>
  3037. <![CDATA[Set the corrupt flag.]]>
  3038. </doc>
  3039. </method>
  3040. <method name="setHosts"
  3041. abstract="false" native="false" synchronized="false"
  3042. static="false" final="false" visibility="public"
  3043. deprecated="not deprecated">
  3044. <param name="hosts" type="java.lang.String[]"/>
  3045. <exception name="IOException" type="java.io.IOException"/>
  3046. <doc>
  3047. <![CDATA[Set the hosts hosting this block]]>
  3048. </doc>
  3049. </method>
  3050. <method name="setCachedHosts"
  3051. abstract="false" native="false" synchronized="false"
  3052. static="false" final="false" visibility="public"
  3053. deprecated="not deprecated">
  3054. <param name="cachedHosts" type="java.lang.String[]"/>
  3055. <doc>
  3056. <![CDATA[Set the hosts hosting a cached replica of this block]]>
  3057. </doc>
  3058. </method>
  3059. <method name="setNames"
  3060. abstract="false" native="false" synchronized="false"
  3061. static="false" final="false" visibility="public"
  3062. deprecated="not deprecated">
  3063. <param name="names" type="java.lang.String[]"/>
  3064. <exception name="IOException" type="java.io.IOException"/>
  3065. <doc>
  3066. <![CDATA[Set the names (host:port) hosting this block]]>
  3067. </doc>
  3068. </method>
  3069. <method name="setTopologyPaths"
  3070. abstract="false" native="false" synchronized="false"
  3071. static="false" final="false" visibility="public"
  3072. deprecated="not deprecated">
  3073. <param name="topologyPaths" type="java.lang.String[]"/>
  3074. <exception name="IOException" type="java.io.IOException"/>
  3075. <doc>
  3076. <![CDATA[Set the network topology paths of the hosts]]>
  3077. </doc>
  3078. </method>
  3079. <method name="toString" return="java.lang.String"
  3080. abstract="false" native="false" synchronized="false"
  3081. static="false" final="false" visibility="public"
  3082. deprecated="not deprecated">
  3083. </method>
  3084. <doc>
  3085. <![CDATA[Represents the network location of a block, information about the hosts
  3086. that contain block replicas, and other block metadata (E.g. the file
  3087. offset associated with the block, length, whether it is corrupt, etc).]]>
  3088. </doc>
  3089. </class>
  3090. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  3091. <!-- start interface org.apache.hadoop.fs.CanSetDropBehind -->
  3092. <interface name="CanSetDropBehind" abstract="true"
  3093. static="false" final="false" visibility="public"
  3094. deprecated="not deprecated">
  3095. <method name="setDropBehind"
  3096. abstract="true" native="false" synchronized="false"
  3097. static="false" final="false" visibility="public"
  3098. deprecated="not deprecated">
  3099. <param name="dropCache" type="java.lang.Boolean"/>
  3100. <exception name="IOException" type="java.io.IOException"/>
  3101. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3102. <doc>
  3103. <![CDATA[Configure whether the stream should drop the cache.
  3104. @param dropCache Whether to drop the cache. null means to use the
  3105. default value.
  3106. @throws IOException If there was an error changing the dropBehind
  3107. setting.
  3108. UnsupportedOperationException If this stream doesn't support
  3109. setting the drop-behind.]]>
  3110. </doc>
  3111. </method>
  3112. </interface>
  3113. <!-- end interface org.apache.hadoop.fs.CanSetDropBehind -->
  3114. <!-- start interface org.apache.hadoop.fs.CanSetReadahead -->
  3115. <interface name="CanSetReadahead" abstract="true"
  3116. static="false" final="false" visibility="public"
  3117. deprecated="not deprecated">
  3118. <method name="setReadahead"
  3119. abstract="true" native="false" synchronized="false"
  3120. static="false" final="false" visibility="public"
  3121. deprecated="not deprecated">
  3122. <param name="readahead" type="java.lang.Long"/>
  3123. <exception name="IOException" type="java.io.IOException"/>
  3124. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  3125. <doc>
  3126. <![CDATA[Set the readahead on this stream.
  3127. @param readahead The readahead to use. null means to use the default.
  3128. @throws IOException If there was an error changing the dropBehind
  3129. setting.
  3130. UnsupportedOperationException If this stream doesn't support
  3131. setting readahead.]]>
  3132. </doc>
  3133. </method>
  3134. </interface>
  3135. <!-- end interface org.apache.hadoop.fs.CanSetReadahead -->
  3136. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  3137. <class name="ChecksumException" extends="java.io.IOException"
  3138. abstract="false"
  3139. static="false" final="false" visibility="public"
  3140. deprecated="not deprecated">
  3141. <constructor name="ChecksumException" type="java.lang.String, long"
  3142. static="false" final="false" visibility="public"
  3143. deprecated="not deprecated">
  3144. </constructor>
  3145. <method name="getPos" return="long"
  3146. abstract="false" native="false" synchronized="false"
  3147. static="false" final="false" visibility="public"
  3148. deprecated="not deprecated">
  3149. </method>
  3150. <doc>
  3151. <![CDATA[Thrown for checksum errors.]]>
  3152. </doc>
  3153. </class>
  3154. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  3155. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  3156. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  3157. abstract="true"
  3158. static="false" final="false" visibility="public"
  3159. deprecated="not deprecated">
  3160. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3161. static="false" final="false" visibility="public"
  3162. deprecated="not deprecated">
  3163. </constructor>
  3164. <method name="getApproxChkSumLength" return="double"
  3165. abstract="false" native="false" synchronized="false"
  3166. static="true" final="false" visibility="public"
  3167. deprecated="not deprecated">
  3168. <param name="size" type="long"/>
  3169. </method>
  3170. <method name="setConf"
  3171. abstract="false" native="false" synchronized="false"
  3172. static="false" final="false" visibility="public"
  3173. deprecated="not deprecated">
  3174. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3175. </method>
  3176. <method name="setVerifyChecksum"
  3177. abstract="false" native="false" synchronized="false"
  3178. static="false" final="false" visibility="public"
  3179. deprecated="not deprecated">
  3180. <param name="verifyChecksum" type="boolean"/>
  3181. <doc>
  3182. <![CDATA[Set whether to verify checksum.]]>
  3183. </doc>
  3184. </method>
  3185. <method name="setWriteChecksum"
  3186. abstract="false" native="false" synchronized="false"
  3187. static="false" final="false" visibility="public"
  3188. deprecated="not deprecated">
  3189. <param name="writeChecksum" type="boolean"/>
  3190. </method>
  3191. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  3192. abstract="false" native="false" synchronized="false"
  3193. static="false" final="false" visibility="public"
  3194. deprecated="not deprecated">
  3195. <doc>
  3196. <![CDATA[get the raw file system]]>
  3197. </doc>
  3198. </method>
  3199. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  3200. abstract="false" native="false" synchronized="false"
  3201. static="false" final="false" visibility="public"
  3202. deprecated="not deprecated">
  3203. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3204. <doc>
  3205. <![CDATA[Return the name of the checksum file associated with a file.]]>
  3206. </doc>
  3207. </method>
  3208. <method name="isChecksumFile" return="boolean"
  3209. abstract="false" native="false" synchronized="false"
  3210. static="true" final="false" visibility="public"
  3211. deprecated="not deprecated">
  3212. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3213. <doc>
  3214. <![CDATA[Return true iff file is a checksum file name.]]>
  3215. </doc>
  3216. </method>
  3217. <method name="getChecksumFileLength" return="long"
  3218. abstract="false" native="false" synchronized="false"
  3219. static="false" final="false" visibility="public"
  3220. deprecated="not deprecated">
  3221. <param name="file" type="org.apache.hadoop.fs.Path"/>
  3222. <param name="fileSize" type="long"/>
  3223. <doc>
  3224. <![CDATA[Return the length of the checksum file given the size of the
  3225. actual file.]]>
  3226. </doc>
  3227. </method>
  3228. <method name="getBytesPerSum" return="int"
  3229. abstract="false" native="false" synchronized="false"
  3230. static="false" final="false" visibility="public"
  3231. deprecated="not deprecated">
  3232. <doc>
  3233. <![CDATA[Return the bytes Per Checksum]]>
  3234. </doc>
  3235. </method>
  3236. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3237. abstract="false" native="false" synchronized="false"
  3238. static="false" final="false" visibility="public"
  3239. deprecated="not deprecated">
  3240. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3241. <param name="bufferSize" type="int"/>
  3242. <exception name="IOException" type="java.io.IOException"/>
  3243. <doc>
  3244. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3245. @param f the file name to open
  3246. @param bufferSize the size of the buffer to be used.]]>
  3247. </doc>
  3248. </method>
  3249. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3250. abstract="false" native="false" synchronized="false"
  3251. static="false" final="false" visibility="public"
  3252. deprecated="not deprecated">
  3253. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3254. <param name="bufferSize" type="int"/>
  3255. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3256. <exception name="IOException" type="java.io.IOException"/>
  3257. </method>
  3258. <method name="truncate" return="boolean"
  3259. abstract="false" native="false" synchronized="false"
  3260. static="false" final="false" visibility="public"
  3261. deprecated="not deprecated">
  3262. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3263. <param name="newLength" type="long"/>
  3264. <exception name="IOException" type="java.io.IOException"/>
  3265. </method>
  3266. <method name="getChecksumLength" return="long"
  3267. abstract="false" native="false" synchronized="false"
  3268. static="true" final="false" visibility="public"
  3269. deprecated="not deprecated">
  3270. <param name="size" type="long"/>
  3271. <param name="bytesPerSum" type="int"/>
  3272. <doc>
  3273. <![CDATA[Calculated the length of the checksum file in bytes.
  3274. @param size the length of the data file in bytes
  3275. @param bytesPerSum the number of bytes in a checksum block
  3276. @return the number of bytes in the checksum file]]>
  3277. </doc>
  3278. </method>
  3279. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3280. abstract="false" native="false" synchronized="false"
  3281. static="false" final="false" visibility="public"
  3282. deprecated="not deprecated">
  3283. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3284. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3285. <param name="overwrite" type="boolean"/>
  3286. <param name="bufferSize" type="int"/>
  3287. <param name="replication" type="short"/>
  3288. <param name="blockSize" type="long"/>
  3289. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3290. <exception name="IOException" type="java.io.IOException"/>
  3291. </method>
  3292. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  3293. abstract="false" native="false" synchronized="false"
  3294. static="false" final="false" visibility="public"
  3295. deprecated="not deprecated">
  3296. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3297. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3298. <param name="overwrite" type="boolean"/>
  3299. <param name="bufferSize" type="int"/>
  3300. <param name="replication" type="short"/>
  3301. <param name="blockSize" type="long"/>
  3302. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3303. <exception name="IOException" type="java.io.IOException"/>
  3304. </method>
  3305. <method name="setReplication" return="boolean"
  3306. abstract="false" native="false" synchronized="false"
  3307. static="false" final="false" visibility="public"
  3308. deprecated="not deprecated">
  3309. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3310. <param name="replication" type="short"/>
  3311. <exception name="IOException" type="java.io.IOException"/>
  3312. <doc>
  3313. <![CDATA[Set replication for an existing file.
  3314. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  3315. @param src file name
  3316. @param replication new replication
  3317. @throws IOException
  3318. @return true if successful;
  3319. false if file does not exist or is a directory]]>
  3320. </doc>
  3321. </method>
  3322. <method name="rename" return="boolean"
  3323. abstract="false" native="false" synchronized="false"
  3324. static="false" final="false" visibility="public"
  3325. deprecated="not deprecated">
  3326. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3327. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3328. <exception name="IOException" type="java.io.IOException"/>
  3329. <doc>
  3330. <![CDATA[Rename files/dirs]]>
  3331. </doc>
  3332. </method>
  3333. <method name="delete" return="boolean"
  3334. abstract="false" native="false" synchronized="false"
  3335. static="false" final="false" visibility="public"
  3336. deprecated="not deprecated">
  3337. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3338. <param name="recursive" type="boolean"/>
  3339. <exception name="IOException" type="java.io.IOException"/>
  3340. <doc>
  3341. <![CDATA[Implement the delete(Path, boolean) in checksum
  3342. file system.]]>
  3343. </doc>
  3344. </method>
  3345. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3346. abstract="false" native="false" synchronized="false"
  3347. static="false" final="false" visibility="public"
  3348. deprecated="not deprecated">
  3349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3350. <exception name="IOException" type="java.io.IOException"/>
  3351. <doc>
  3352. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3353. a directory.
  3354. @param f
  3355. given path
  3356. @return the statuses of the files/directories in the given path
  3357. @throws IOException]]>
  3358. </doc>
  3359. </method>
  3360. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  3361. abstract="false" native="false" synchronized="false"
  3362. static="false" final="false" visibility="public"
  3363. deprecated="not deprecated">
  3364. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3365. <exception name="IOException" type="java.io.IOException"/>
  3366. <doc>
  3367. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3368. a directory.
  3369. @param f
  3370. given path
  3371. @return the statuses of the files/directories in the given patch
  3372. @throws IOException]]>
  3373. </doc>
  3374. </method>
  3375. <method name="mkdirs" return="boolean"
  3376. abstract="false" native="false" synchronized="false"
  3377. static="false" final="false" visibility="public"
  3378. deprecated="not deprecated">
  3379. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3380. <exception name="IOException" type="java.io.IOException"/>
  3381. </method>
  3382. <method name="copyFromLocalFile"
  3383. abstract="false" native="false" synchronized="false"
  3384. static="false" final="false" visibility="public"
  3385. deprecated="not deprecated">
  3386. <param name="delSrc" type="boolean"/>
  3387. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3388. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3389. <exception name="IOException" type="java.io.IOException"/>
  3390. </method>
  3391. <method name="copyToLocalFile"
  3392. abstract="false" native="false" synchronized="false"
  3393. static="false" final="false" visibility="public"
  3394. deprecated="not deprecated">
  3395. <param name="delSrc" type="boolean"/>
  3396. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3397. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3398. <exception name="IOException" type="java.io.IOException"/>
  3399. <doc>
  3400. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3401. Copy it from FS control to the local dst name.]]>
  3402. </doc>
  3403. </method>
  3404. <method name="copyToLocalFile"
  3405. abstract="false" native="false" synchronized="false"
  3406. static="false" final="false" visibility="public"
  3407. deprecated="not deprecated">
  3408. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3409. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3410. <param name="copyCrc" type="boolean"/>
  3411. <exception name="IOException" type="java.io.IOException"/>
  3412. <doc>
  3413. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3414. Copy it from FS control to the local dst name.
  3415. If src and dst are directories, the copyCrc parameter
  3416. determines whether to copy CRC files.]]>
  3417. </doc>
  3418. </method>
  3419. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3420. abstract="false" native="false" synchronized="false"
  3421. static="false" final="false" visibility="public"
  3422. deprecated="not deprecated">
  3423. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3424. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3425. <exception name="IOException" type="java.io.IOException"/>
  3426. </method>
  3427. <method name="completeLocalOutput"
  3428. abstract="false" native="false" synchronized="false"
  3429. static="false" final="false" visibility="public"
  3430. deprecated="not deprecated">
  3431. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3432. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3433. <exception name="IOException" type="java.io.IOException"/>
  3434. </method>
  3435. <method name="reportChecksumFailure" return="boolean"
  3436. abstract="false" native="false" synchronized="false"
  3437. static="false" final="false" visibility="public"
  3438. deprecated="not deprecated">
  3439. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3440. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  3441. <param name="inPos" type="long"/>
  3442. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  3443. <param name="sumsPos" type="long"/>
  3444. <doc>
  3445. <![CDATA[Report a checksum error to the file system.
  3446. @param f the file name containing the error
  3447. @param in the stream open on the file
  3448. @param inPos the position of the beginning of the bad data in the file
  3449. @param sums the stream open on the checksum file
  3450. @param sumsPos the position of the beginning of the bad data in the checksum file
  3451. @return if retry is neccessary]]>
  3452. </doc>
  3453. </method>
  3454. <doc>
  3455. <![CDATA[Abstract Checksumed FileSystem.
  3456. It provide a basic implementation of a Checksumed FileSystem,
  3457. which creates a checksum file for each raw file.
  3458. It generates & verifies checksums at the client side.]]>
  3459. </doc>
  3460. </class>
  3461. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  3462. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  3463. <class name="CommonConfigurationKeysPublic" extends="java.lang.Object"
  3464. abstract="false"
  3465. static="false" final="false" visibility="public"
  3466. deprecated="not deprecated">
  3467. <constructor name="CommonConfigurationKeysPublic"
  3468. static="false" final="false" visibility="public"
  3469. deprecated="not deprecated">
  3470. </constructor>
  3471. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  3472. transient="false" volatile="false"
  3473. static="true" final="true" visibility="public"
  3474. deprecated="not deprecated">
  3475. <doc>
  3476. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3477. </doc>
  3478. </field>
  3479. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  3480. transient="false" volatile="false"
  3481. static="true" final="true" visibility="public"
  3482. deprecated="not deprecated">
  3483. <doc>
  3484. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  3485. </doc>
  3486. </field>
  3487. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY" type="java.lang.String"
  3488. transient="false" volatile="false"
  3489. static="true" final="true" visibility="public"
  3490. deprecated="not deprecated">
  3491. <doc>
  3492. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3493. </doc>
  3494. </field>
  3495. <field name="NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_DEFAULT" type="int"
  3496. transient="false" volatile="false"
  3497. static="true" final="true" visibility="public"
  3498. deprecated="not deprecated">
  3499. <doc>
  3500. <![CDATA[Default value for NET_TOPOLOGY_SCRIPT_NUMBER_ARGS_KEY]]>
  3501. </doc>
  3502. </field>
  3503. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3504. transient="false" volatile="false"
  3505. static="true" final="true" visibility="public"
  3506. deprecated="not deprecated">
  3507. <doc>
  3508. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3509. </doc>
  3510. </field>
  3511. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  3512. transient="false" volatile="false"
  3513. static="true" final="true" visibility="public"
  3514. deprecated="not deprecated">
  3515. <doc>
  3516. <![CDATA[Default value for FS_DEFAULT_NAME_KEY]]>
  3517. </doc>
  3518. </field>
  3519. <field name="FS_DF_INTERVAL_KEY" type="java.lang.String"
  3520. transient="false" volatile="false"
  3521. static="true" final="true" visibility="public"
  3522. deprecated="not deprecated">
  3523. <doc>
  3524. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3525. </doc>
  3526. </field>
  3527. <field name="FS_DF_INTERVAL_DEFAULT" type="long"
  3528. transient="false" volatile="false"
  3529. static="true" final="true" visibility="public"
  3530. deprecated="not deprecated">
  3531. <doc>
  3532. <![CDATA[Default value for FS_DF_INTERVAL_KEY]]>
  3533. </doc>
  3534. </field>
  3535. <field name="FS_DU_INTERVAL_KEY" type="java.lang.String"
  3536. transient="false" volatile="false"
  3537. static="true" final="true" visibility="public"
  3538. deprecated="not deprecated">
  3539. <doc>
  3540. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3541. </doc>
  3542. </field>
  3543. <field name="FS_DU_INTERVAL_DEFAULT" type="long"
  3544. transient="false" volatile="false"
  3545. static="true" final="true" visibility="public"
  3546. deprecated="not deprecated">
  3547. <doc>
  3548. <![CDATA[Default value for FS_DU_INTERVAL_KEY]]>
  3549. </doc>
  3550. </field>
  3551. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY" type="java.lang.String"
  3552. transient="false" volatile="false"
  3553. static="true" final="true" visibility="public"
  3554. deprecated="not deprecated">
  3555. <doc>
  3556. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3557. </doc>
  3558. </field>
  3559. <field name="FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_DEFAULT" type="boolean"
  3560. transient="false" volatile="false"
  3561. static="true" final="true" visibility="public"
  3562. deprecated="not deprecated">
  3563. <doc>
  3564. <![CDATA[Default value for FS_CLIENT_RESOLVE_REMOTE_SYMLINKS_KEY]]>
  3565. </doc>
  3566. </field>
  3567. <field name="NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  3568. transient="false" volatile="false"
  3569. static="true" final="true" visibility="public"
  3570. deprecated="not deprecated">
  3571. <doc>
  3572. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3573. </doc>
  3574. </field>
  3575. <field name="NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY" type="java.lang.String"
  3576. transient="false" volatile="false"
  3577. static="true" final="true" visibility="public"
  3578. deprecated="not deprecated">
  3579. <doc>
  3580. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3581. </doc>
  3582. </field>
  3583. <field name="NET_TOPOLOGY_IMPL_KEY" type="java.lang.String"
  3584. transient="false" volatile="false"
  3585. static="true" final="true" visibility="public"
  3586. deprecated="not deprecated">
  3587. <doc>
  3588. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3589. </doc>
  3590. </field>
  3591. <field name="NET_TOPOLOGY_TABLE_MAPPING_FILE_KEY" type="java.lang.String"
  3592. transient="false" volatile="false"
  3593. static="true" final="true" visibility="public"
  3594. deprecated="not deprecated">
  3595. <doc>
  3596. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3597. </doc>
  3598. </field>
  3599. <field name="NET_DEPENDENCY_SCRIPT_FILE_NAME_KEY" type="java.lang.String"
  3600. transient="false" volatile="false"
  3601. static="true" final="true" visibility="public"
  3602. deprecated="not deprecated">
  3603. </field>
  3604. <field name="FS_TRASH_CHECKPOINT_INTERVAL_KEY" type="java.lang.String"
  3605. transient="false" volatile="false"
  3606. static="true" final="true" visibility="public"
  3607. deprecated="not deprecated">
  3608. <doc>
  3609. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3610. </doc>
  3611. </field>
  3612. <field name="FS_TRASH_CHECKPOINT_INTERVAL_DEFAULT" type="long"
  3613. transient="false" volatile="false"
  3614. static="true" final="true" visibility="public"
  3615. deprecated="not deprecated">
  3616. <doc>
  3617. <![CDATA[Default value for FS_TRASH_CHECKPOINT_INTERVAL_KEY]]>
  3618. </doc>
  3619. </field>
  3620. <field name="FS_LOCAL_BLOCK_SIZE_DEFAULT" type="long"
  3621. transient="false" volatile="false"
  3622. static="true" final="true" visibility="public"
  3623. deprecated="not deprecated">
  3624. <doc>
  3625. <![CDATA[Not used anywhere, looks like default value for FS_LOCAL_BLOCK_SIZE]]>
  3626. </doc>
  3627. </field>
  3628. <field name="FS_AUTOMATIC_CLOSE_KEY" type="java.lang.String"
  3629. transient="false" volatile="false"
  3630. static="true" final="true" visibility="public"
  3631. deprecated="not deprecated">
  3632. <doc>
  3633. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3634. </doc>
  3635. </field>
  3636. <field name="FS_AUTOMATIC_CLOSE_DEFAULT" type="boolean"
  3637. transient="false" volatile="false"
  3638. static="true" final="true" visibility="public"
  3639. deprecated="not deprecated">
  3640. <doc>
  3641. <![CDATA[Default value for FS_AUTOMATIC_CLOSE_KEY]]>
  3642. </doc>
  3643. </field>
  3644. <field name="FS_FILE_IMPL_KEY" type="java.lang.String"
  3645. transient="false" volatile="false"
  3646. static="true" final="true" visibility="public"
  3647. deprecated="not deprecated">
  3648. <doc>
  3649. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3650. </doc>
  3651. </field>
  3652. <field name="FS_FTP_HOST_KEY" type="java.lang.String"
  3653. transient="false" volatile="false"
  3654. static="true" final="true" visibility="public"
  3655. deprecated="not deprecated">
  3656. <doc>
  3657. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3658. </doc>
  3659. </field>
  3660. <field name="FS_FTP_HOST_PORT_KEY" type="java.lang.String"
  3661. transient="false" volatile="false"
  3662. static="true" final="true" visibility="public"
  3663. deprecated="not deprecated">
  3664. <doc>
  3665. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3666. </doc>
  3667. </field>
  3668. <field name="FS_TRASH_INTERVAL_KEY" type="java.lang.String"
  3669. transient="false" volatile="false"
  3670. static="true" final="true" visibility="public"
  3671. deprecated="not deprecated">
  3672. <doc>
  3673. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3674. </doc>
  3675. </field>
  3676. <field name="FS_TRASH_INTERVAL_DEFAULT" type="long"
  3677. transient="false" volatile="false"
  3678. static="true" final="true" visibility="public"
  3679. deprecated="not deprecated">
  3680. <doc>
  3681. <![CDATA[Default value for FS_TRASH_INTERVAL_KEY]]>
  3682. </doc>
  3683. </field>
  3684. <field name="IO_MAPFILE_BLOOM_SIZE_KEY" type="java.lang.String"
  3685. transient="false" volatile="false"
  3686. static="true" final="true" visibility="public"
  3687. deprecated="not deprecated">
  3688. <doc>
  3689. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3690. </doc>
  3691. </field>
  3692. <field name="IO_MAPFILE_BLOOM_SIZE_DEFAULT" type="int"
  3693. transient="false" volatile="false"
  3694. static="true" final="true" visibility="public"
  3695. deprecated="not deprecated">
  3696. <doc>
  3697. <![CDATA[Default value for IO_MAPFILE_BLOOM_SIZE_KEY]]>
  3698. </doc>
  3699. </field>
  3700. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_KEY" type="java.lang.String"
  3701. transient="false" volatile="false"
  3702. static="true" final="true" visibility="public"
  3703. deprecated="not deprecated">
  3704. <doc>
  3705. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3706. </doc>
  3707. </field>
  3708. <field name="IO_MAPFILE_BLOOM_ERROR_RATE_DEFAULT" type="float"
  3709. transient="false" volatile="false"
  3710. static="true" final="true" visibility="public"
  3711. deprecated="not deprecated">
  3712. <doc>
  3713. <![CDATA[Default value for IO_MAPFILE_BLOOM_ERROR_RATE_KEY]]>
  3714. </doc>
  3715. </field>
  3716. <field name="IO_COMPRESSION_CODEC_LZO_CLASS_KEY" type="java.lang.String"
  3717. transient="false" volatile="false"
  3718. static="true" final="true" visibility="public"
  3719. deprecated="not deprecated">
  3720. <doc>
  3721. <![CDATA[Codec class that implements Lzo compression algorithm]]>
  3722. </doc>
  3723. </field>
  3724. <field name="IO_MAP_INDEX_INTERVAL_KEY" type="java.lang.String"
  3725. transient="false" volatile="false"
  3726. static="true" final="true" visibility="public"
  3727. deprecated="not deprecated">
  3728. <doc>
  3729. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3730. </doc>
  3731. </field>
  3732. <field name="IO_MAP_INDEX_INTERVAL_DEFAULT" type="int"
  3733. transient="false" volatile="false"
  3734. static="true" final="true" visibility="public"
  3735. deprecated="not deprecated">
  3736. <doc>
  3737. <![CDATA[Default value for IO_MAP_INDEX_INTERVAL_DEFAULT]]>
  3738. </doc>
  3739. </field>
  3740. <field name="IO_MAP_INDEX_SKIP_KEY" type="java.lang.String"
  3741. transient="false" volatile="false"
  3742. static="true" final="true" visibility="public"
  3743. deprecated="not deprecated">
  3744. <doc>
  3745. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3746. </doc>
  3747. </field>
  3748. <field name="IO_MAP_INDEX_SKIP_DEFAULT" type="int"
  3749. transient="false" volatile="false"
  3750. static="true" final="true" visibility="public"
  3751. deprecated="not deprecated">
  3752. <doc>
  3753. <![CDATA[Default value for IO_MAP_INDEX_SKIP_KEY]]>
  3754. </doc>
  3755. </field>
  3756. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY" type="java.lang.String"
  3757. transient="false" volatile="false"
  3758. static="true" final="true" visibility="public"
  3759. deprecated="not deprecated">
  3760. <doc>
  3761. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3762. </doc>
  3763. </field>
  3764. <field name="IO_SEQFILE_COMPRESS_BLOCKSIZE_DEFAULT" type="int"
  3765. transient="false" volatile="false"
  3766. static="true" final="true" visibility="public"
  3767. deprecated="not deprecated">
  3768. <doc>
  3769. <![CDATA[Default value for IO_SEQFILE_COMPRESS_BLOCKSIZE_KEY]]>
  3770. </doc>
  3771. </field>
  3772. <field name="IO_FILE_BUFFER_SIZE_KEY" type="java.lang.String"
  3773. transient="false" volatile="false"
  3774. static="true" final="true" visibility="public"
  3775. deprecated="not deprecated">
  3776. <doc>
  3777. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3778. </doc>
  3779. </field>
  3780. <field name="IO_FILE_BUFFER_SIZE_DEFAULT" type="int"
  3781. transient="false" volatile="false"
  3782. static="true" final="true" visibility="public"
  3783. deprecated="not deprecated">
  3784. <doc>
  3785. <![CDATA[Default value for IO_FILE_BUFFER_SIZE_KEY]]>
  3786. </doc>
  3787. </field>
  3788. <field name="IO_SKIP_CHECKSUM_ERRORS_KEY" type="java.lang.String"
  3789. transient="false" volatile="false"
  3790. static="true" final="true" visibility="public"
  3791. deprecated="not deprecated">
  3792. <doc>
  3793. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3794. </doc>
  3795. </field>
  3796. <field name="IO_SKIP_CHECKSUM_ERRORS_DEFAULT" type="boolean"
  3797. transient="false" volatile="false"
  3798. static="true" final="true" visibility="public"
  3799. deprecated="not deprecated">
  3800. <doc>
  3801. <![CDATA[Default value for IO_SKIP_CHECKSUM_ERRORS_KEY]]>
  3802. </doc>
  3803. </field>
  3804. <field name="IO_SORT_MB_KEY" type="java.lang.String"
  3805. transient="false" volatile="false"
  3806. static="true" final="true" visibility="public"
  3807. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.mb
  3808. in mapred-default.xml
  3809. See https://issues.apache.org/jira/browse/HADOOP-6801">
  3810. <doc>
  3811. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.mb
  3812. in mapred-default.xml
  3813. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  3814. </doc>
  3815. </field>
  3816. <field name="IO_SORT_MB_DEFAULT" type="int"
  3817. transient="false" volatile="false"
  3818. static="true" final="true" visibility="public"
  3819. deprecated="not deprecated">
  3820. <doc>
  3821. <![CDATA[Default value for IO_SORT_MB_DEFAULT]]>
  3822. </doc>
  3823. </field>
  3824. <field name="IO_SORT_FACTOR_KEY" type="java.lang.String"
  3825. transient="false" volatile="false"
  3826. static="true" final="true" visibility="public"
  3827. deprecated="Moved to mapreduce, see mapreduce.task.io.sort.factor
  3828. in mapred-default.xml
  3829. See https://issues.apache.org/jira/browse/HADOOP-6801">
  3830. <doc>
  3831. <![CDATA[@deprecated Moved to mapreduce, see mapreduce.task.io.sort.factor
  3832. in mapred-default.xml
  3833. See https://issues.apache.org/jira/browse/HADOOP-6801]]>
  3834. </doc>
  3835. </field>
  3836. <field name="IO_SORT_FACTOR_DEFAULT" type="int"
  3837. transient="false" volatile="false"
  3838. static="true" final="true" visibility="public"
  3839. deprecated="not deprecated">
  3840. <doc>
  3841. <![CDATA[Default value for IO_SORT_FACTOR_DEFAULT]]>
  3842. </doc>
  3843. </field>
  3844. <field name="IO_SERIALIZATIONS_KEY" type="java.lang.String"
  3845. transient="false" volatile="false"
  3846. static="true" final="true" visibility="public"
  3847. deprecated="not deprecated">
  3848. <doc>
  3849. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3850. </doc>
  3851. </field>
  3852. <field name="TFILE_IO_CHUNK_SIZE_KEY" type="java.lang.String"
  3853. transient="false" volatile="false"
  3854. static="true" final="true" visibility="public"
  3855. deprecated="not deprecated">
  3856. <doc>
  3857. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3858. </doc>
  3859. </field>
  3860. <field name="TFILE_IO_CHUNK_SIZE_DEFAULT" type="int"
  3861. transient="false" volatile="false"
  3862. static="true" final="true" visibility="public"
  3863. deprecated="not deprecated">
  3864. <doc>
  3865. <![CDATA[Default value for TFILE_IO_CHUNK_SIZE_DEFAULT]]>
  3866. </doc>
  3867. </field>
  3868. <field name="TFILE_FS_INPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  3869. transient="false" volatile="false"
  3870. static="true" final="true" visibility="public"
  3871. deprecated="not deprecated">
  3872. <doc>
  3873. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3874. </doc>
  3875. </field>
  3876. <field name="TFILE_FS_INPUT_BUFFER_SIZE_DEFAULT" type="int"
  3877. transient="false" volatile="false"
  3878. static="true" final="true" visibility="public"
  3879. deprecated="not deprecated">
  3880. <doc>
  3881. <![CDATA[Default value for TFILE_FS_INPUT_BUFFER_SIZE_KEY]]>
  3882. </doc>
  3883. </field>
  3884. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_KEY" type="java.lang.String"
  3885. transient="false" volatile="false"
  3886. static="true" final="true" visibility="public"
  3887. deprecated="not deprecated">
  3888. <doc>
  3889. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3890. </doc>
  3891. </field>
  3892. <field name="TFILE_FS_OUTPUT_BUFFER_SIZE_DEFAULT" type="int"
  3893. transient="false" volatile="false"
  3894. static="true" final="true" visibility="public"
  3895. deprecated="not deprecated">
  3896. <doc>
  3897. <![CDATA[Default value for TFILE_FS_OUTPUT_BUFFER_SIZE_KEY]]>
  3898. </doc>
  3899. </field>
  3900. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY" type="java.lang.String"
  3901. transient="false" volatile="false"
  3902. static="true" final="true" visibility="public"
  3903. deprecated="not deprecated">
  3904. <doc>
  3905. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3906. </doc>
  3907. </field>
  3908. <field name="IPC_CLIENT_CONNECTION_MAXIDLETIME_DEFAULT" type="int"
  3909. transient="false" volatile="false"
  3910. static="true" final="true" visibility="public"
  3911. deprecated="not deprecated">
  3912. <doc>
  3913. <![CDATA[Default value for IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY]]>
  3914. </doc>
  3915. </field>
  3916. <field name="IPC_CLIENT_CONNECT_TIMEOUT_KEY" type="java.lang.String"
  3917. transient="false" volatile="false"
  3918. static="true" final="true" visibility="public"
  3919. deprecated="not deprecated">
  3920. <doc>
  3921. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3922. </doc>
  3923. </field>
  3924. <field name="IPC_CLIENT_CONNECT_TIMEOUT_DEFAULT" type="int"
  3925. transient="false" volatile="false"
  3926. static="true" final="true" visibility="public"
  3927. deprecated="not deprecated">
  3928. <doc>
  3929. <![CDATA[Default value for IPC_CLIENT_CONNECT_TIMEOUT_KEY]]>
  3930. </doc>
  3931. </field>
  3932. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  3933. transient="false" volatile="false"
  3934. static="true" final="true" visibility="public"
  3935. deprecated="not deprecated">
  3936. <doc>
  3937. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3938. </doc>
  3939. </field>
  3940. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  3941. transient="false" volatile="false"
  3942. static="true" final="true" visibility="public"
  3943. deprecated="not deprecated">
  3944. <doc>
  3945. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_KEY]]>
  3946. </doc>
  3947. </field>
  3948. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY" type="java.lang.String"
  3949. transient="false" volatile="false"
  3950. static="true" final="true" visibility="public"
  3951. deprecated="not deprecated">
  3952. <doc>
  3953. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3954. </doc>
  3955. </field>
  3956. <field name="IPC_CLIENT_CONNECT_RETRY_INTERVAL_DEFAULT" type="int"
  3957. transient="false" volatile="false"
  3958. static="true" final="true" visibility="public"
  3959. deprecated="not deprecated">
  3960. <doc>
  3961. <![CDATA[Default value for IPC_CLIENT_CONNECT_RETRY_INTERVAL_KEY]]>
  3962. </doc>
  3963. </field>
  3964. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY" type="java.lang.String"
  3965. transient="false" volatile="false"
  3966. static="true" final="true" visibility="public"
  3967. deprecated="not deprecated">
  3968. <doc>
  3969. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3970. </doc>
  3971. </field>
  3972. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_DEFAULT" type="int"
  3973. transient="false" volatile="false"
  3974. static="true" final="true" visibility="public"
  3975. deprecated="not deprecated">
  3976. <doc>
  3977. <![CDATA[Default value for IPC_CLIENT_CONNECT_MAX_RETRIES_ON_SOCKET_TIMEOUTS_KEY]]>
  3978. </doc>
  3979. </field>
  3980. <field name="IPC_CLIENT_TCPNODELAY_KEY" type="java.lang.String"
  3981. transient="false" volatile="false"
  3982. static="true" final="true" visibility="public"
  3983. deprecated="not deprecated">
  3984. <doc>
  3985. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  3986. </doc>
  3987. </field>
  3988. <field name="IPC_CLIENT_TCPNODELAY_DEFAULT" type="boolean"
  3989. transient="false" volatile="false"
  3990. static="true" final="true" visibility="public"
  3991. deprecated="not deprecated">
  3992. <doc>
  3993. <![CDATA[Defalt value for IPC_CLIENT_TCPNODELAY_KEY]]>
  3994. </doc>
  3995. </field>
  3996. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_KEY" type="java.lang.String"
  3997. transient="false" volatile="false"
  3998. static="true" final="true" visibility="public"
  3999. deprecated="not deprecated">
  4000. <doc>
  4001. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4002. </doc>
  4003. </field>
  4004. <field name="IPC_SERVER_LISTEN_QUEUE_SIZE_DEFAULT" type="int"
  4005. transient="false" volatile="false"
  4006. static="true" final="true" visibility="public"
  4007. deprecated="not deprecated">
  4008. <doc>
  4009. <![CDATA[Default value for IPC_SERVER_LISTEN_QUEUE_SIZE_KEY]]>
  4010. </doc>
  4011. </field>
  4012. <field name="IPC_CLIENT_KILL_MAX_KEY" type="java.lang.String"
  4013. transient="false" volatile="false"
  4014. static="true" final="true" visibility="public"
  4015. deprecated="not deprecated">
  4016. <doc>
  4017. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4018. </doc>
  4019. </field>
  4020. <field name="IPC_CLIENT_KILL_MAX_DEFAULT" type="int"
  4021. transient="false" volatile="false"
  4022. static="true" final="true" visibility="public"
  4023. deprecated="not deprecated">
  4024. <doc>
  4025. <![CDATA[Default value for IPC_CLIENT_KILL_MAX_KEY]]>
  4026. </doc>
  4027. </field>
  4028. <field name="IPC_CLIENT_IDLETHRESHOLD_KEY" type="java.lang.String"
  4029. transient="false" volatile="false"
  4030. static="true" final="true" visibility="public"
  4031. deprecated="not deprecated">
  4032. <doc>
  4033. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4034. </doc>
  4035. </field>
  4036. <field name="IPC_CLIENT_IDLETHRESHOLD_DEFAULT" type="int"
  4037. transient="false" volatile="false"
  4038. static="true" final="true" visibility="public"
  4039. deprecated="not deprecated">
  4040. <doc>
  4041. <![CDATA[Default value for IPC_CLIENT_IDLETHRESHOLD_DEFAULT]]>
  4042. </doc>
  4043. </field>
  4044. <field name="IPC_SERVER_TCPNODELAY_KEY" type="java.lang.String"
  4045. transient="false" volatile="false"
  4046. static="true" final="true" visibility="public"
  4047. deprecated="not deprecated">
  4048. <doc>
  4049. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4050. </doc>
  4051. </field>
  4052. <field name="IPC_SERVER_TCPNODELAY_DEFAULT" type="boolean"
  4053. transient="false" volatile="false"
  4054. static="true" final="true" visibility="public"
  4055. deprecated="not deprecated">
  4056. <doc>
  4057. <![CDATA[Default value for IPC_SERVER_TCPNODELAY_KEY]]>
  4058. </doc>
  4059. </field>
  4060. <field name="IPC_SERVER_MAX_CONNECTIONS_KEY" type="java.lang.String"
  4061. transient="false" volatile="false"
  4062. static="true" final="true" visibility="public"
  4063. deprecated="not deprecated">
  4064. <doc>
  4065. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4066. </doc>
  4067. </field>
  4068. <field name="IPC_SERVER_MAX_CONNECTIONS_DEFAULT" type="int"
  4069. transient="false" volatile="false"
  4070. static="true" final="true" visibility="public"
  4071. deprecated="not deprecated">
  4072. <doc>
  4073. <![CDATA[Default value for IPC_SERVER_MAX_CONNECTIONS_KEY]]>
  4074. </doc>
  4075. </field>
  4076. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_KEY" type="java.lang.String"
  4077. transient="false" volatile="false"
  4078. static="true" final="true" visibility="public"
  4079. deprecated="not deprecated">
  4080. <doc>
  4081. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4082. </doc>
  4083. </field>
  4084. <field name="HADOOP_RPC_SOCKET_FACTORY_CLASS_DEFAULT_DEFAULT" type="java.lang.String"
  4085. transient="false" volatile="false"
  4086. static="true" final="true" visibility="public"
  4087. deprecated="not deprecated">
  4088. </field>
  4089. <field name="HADOOP_SOCKS_SERVER_KEY" type="java.lang.String"
  4090. transient="false" volatile="false"
  4091. static="true" final="true" visibility="public"
  4092. deprecated="not deprecated">
  4093. <doc>
  4094. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4095. </doc>
  4096. </field>
  4097. <field name="HADOOP_UTIL_HASH_TYPE_KEY" type="java.lang.String"
  4098. transient="false" volatile="false"
  4099. static="true" final="true" visibility="public"
  4100. deprecated="not deprecated">
  4101. <doc>
  4102. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4103. </doc>
  4104. </field>
  4105. <field name="HADOOP_UTIL_HASH_TYPE_DEFAULT" type="java.lang.String"
  4106. transient="false" volatile="false"
  4107. static="true" final="true" visibility="public"
  4108. deprecated="not deprecated">
  4109. <doc>
  4110. <![CDATA[Default value for HADOOP_UTIL_HASH_TYPE_KEY]]>
  4111. </doc>
  4112. </field>
  4113. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  4114. transient="false" volatile="false"
  4115. static="true" final="true" visibility="public"
  4116. deprecated="not deprecated">
  4117. <doc>
  4118. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4119. </doc>
  4120. </field>
  4121. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS" type="java.lang.String"
  4122. transient="false" volatile="false"
  4123. static="true" final="true" visibility="public"
  4124. deprecated="not deprecated">
  4125. <doc>
  4126. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4127. </doc>
  4128. </field>
  4129. <field name="HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT" type="long"
  4130. transient="false" volatile="false"
  4131. static="true" final="true" visibility="public"
  4132. deprecated="not deprecated">
  4133. <doc>
  4134. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4135. </doc>
  4136. </field>
  4137. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS" type="java.lang.String"
  4138. transient="false" volatile="false"
  4139. static="true" final="true" visibility="public"
  4140. deprecated="not deprecated">
  4141. <doc>
  4142. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4143. </doc>
  4144. </field>
  4145. <field name="HADOOP_SECURITY_GROUPS_NEGATIVE_CACHE_SECS_DEFAULT" type="long"
  4146. transient="false" volatile="false"
  4147. static="true" final="true" visibility="public"
  4148. deprecated="not deprecated">
  4149. <doc>
  4150. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4151. </doc>
  4152. </field>
  4153. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS" type="java.lang.String"
  4154. transient="false" volatile="false"
  4155. static="true" final="true" visibility="public"
  4156. deprecated="not deprecated">
  4157. <doc>
  4158. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4159. </doc>
  4160. </field>
  4161. <field name="HADOOP_SECURITY_GROUPS_CACHE_WARN_AFTER_MS_DEFAULT" type="long"
  4162. transient="false" volatile="false"
  4163. static="true" final="true" visibility="public"
  4164. deprecated="not deprecated">
  4165. </field>
  4166. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  4167. transient="false" volatile="false"
  4168. static="true" final="true" visibility="public"
  4169. deprecated="not deprecated">
  4170. <doc>
  4171. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4172. </doc>
  4173. </field>
  4174. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  4175. transient="false" volatile="false"
  4176. static="true" final="true" visibility="public"
  4177. deprecated="not deprecated">
  4178. <doc>
  4179. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4180. </doc>
  4181. </field>
  4182. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  4183. transient="false" volatile="false"
  4184. static="true" final="true" visibility="public"
  4185. deprecated="not deprecated">
  4186. <doc>
  4187. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4188. </doc>
  4189. </field>
  4190. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  4191. transient="false" volatile="false"
  4192. static="true" final="true" visibility="public"
  4193. deprecated="not deprecated">
  4194. <doc>
  4195. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4196. </doc>
  4197. </field>
  4198. <field name="HADOOP_SECURITY_AUTH_TO_LOCAL" type="java.lang.String"
  4199. transient="false" volatile="false"
  4200. static="true" final="true" visibility="public"
  4201. deprecated="not deprecated">
  4202. <doc>
  4203. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4204. </doc>
  4205. </field>
  4206. <field name="HADOOP_SSL_ENABLED_KEY" type="java.lang.String"
  4207. transient="false" volatile="false"
  4208. static="true" final="true" visibility="public"
  4209. deprecated="not deprecated">
  4210. </field>
  4211. <field name="HADOOP_SSL_ENABLED_DEFAULT" type="boolean"
  4212. transient="false" volatile="false"
  4213. static="true" final="true" visibility="public"
  4214. deprecated="not deprecated">
  4215. </field>
  4216. <field name="HTTP_POLICY_HTTP_ONLY" type="java.lang.String"
  4217. transient="false" volatile="false"
  4218. static="true" final="true" visibility="public"
  4219. deprecated="not deprecated">
  4220. </field>
  4221. <field name="HTTP_POLICY_HTTPS_ONLY" type="java.lang.String"
  4222. transient="false" volatile="false"
  4223. static="true" final="true" visibility="public"
  4224. deprecated="not deprecated">
  4225. </field>
  4226. <field name="HADOOP_RPC_PROTECTION" type="java.lang.String"
  4227. transient="false" volatile="false"
  4228. static="true" final="true" visibility="public"
  4229. deprecated="not deprecated">
  4230. <doc>
  4231. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4232. </doc>
  4233. </field>
  4234. <field name="HADOOP_SECURITY_SASL_PROPS_RESOLVER_CLASS" type="java.lang.String"
  4235. transient="false" volatile="false"
  4236. static="true" final="true" visibility="public"
  4237. deprecated="not deprecated">
  4238. <doc>
  4239. <![CDATA[Class to override Sasl Properties for a connection]]>
  4240. </doc>
  4241. </field>
  4242. <field name="HADOOP_SECURITY_CRYPTO_CODEC_CLASSES_KEY_PREFIX" type="java.lang.String"
  4243. transient="false" volatile="false"
  4244. static="true" final="true" visibility="public"
  4245. deprecated="not deprecated">
  4246. </field>
  4247. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_KEY" type="java.lang.String"
  4248. transient="false" volatile="false"
  4249. static="true" final="true" visibility="public"
  4250. deprecated="not deprecated">
  4251. <doc>
  4252. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4253. </doc>
  4254. </field>
  4255. <field name="HADOOP_SECURITY_CRYPTO_CIPHER_SUITE_DEFAULT" type="java.lang.String"
  4256. transient="false" volatile="false"
  4257. static="true" final="true" visibility="public"
  4258. deprecated="not deprecated">
  4259. </field>
  4260. <field name="HADOOP_SECURITY_CRYPTO_JCE_PROVIDER_KEY" type="java.lang.String"
  4261. transient="false" volatile="false"
  4262. static="true" final="true" visibility="public"
  4263. deprecated="not deprecated">
  4264. <doc>
  4265. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4266. </doc>
  4267. </field>
  4268. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY" type="java.lang.String"
  4269. transient="false" volatile="false"
  4270. static="true" final="true" visibility="public"
  4271. deprecated="not deprecated">
  4272. <doc>
  4273. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4274. </doc>
  4275. </field>
  4276. <field name="HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_DEFAULT" type="int"
  4277. transient="false" volatile="false"
  4278. static="true" final="true" visibility="public"
  4279. deprecated="not deprecated">
  4280. <doc>
  4281. <![CDATA[Defalt value for HADOOP_SECURITY_CRYPTO_BUFFER_SIZE_KEY]]>
  4282. </doc>
  4283. </field>
  4284. <field name="HADOOP_SECURITY_IMPERSONATION_PROVIDER_CLASS" type="java.lang.String"
  4285. transient="false" volatile="false"
  4286. static="true" final="true" visibility="public"
  4287. deprecated="not deprecated">
  4288. <doc>
  4289. <![CDATA[Class to override Impersonation provider]]>
  4290. </doc>
  4291. </field>
  4292. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE" type="java.lang.String"
  4293. transient="false" volatile="false"
  4294. static="true" final="true" visibility="public"
  4295. deprecated="not deprecated">
  4296. <doc>
  4297. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4298. </doc>
  4299. </field>
  4300. <field name="KMS_CLIENT_ENC_KEY_CACHE_SIZE_DEFAULT" type="int"
  4301. transient="false" volatile="false"
  4302. static="true" final="true" visibility="public"
  4303. deprecated="not deprecated">
  4304. <doc>
  4305. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_SIZE]]>
  4306. </doc>
  4307. </field>
  4308. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK" type="java.lang.String"
  4309. transient="false" volatile="false"
  4310. static="true" final="true" visibility="public"
  4311. deprecated="not deprecated">
  4312. <doc>
  4313. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4314. </doc>
  4315. </field>
  4316. <field name="KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK_DEFAULT" type="float"
  4317. transient="false" volatile="false"
  4318. static="true" final="true" visibility="public"
  4319. deprecated="not deprecated">
  4320. <doc>
  4321. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_LOW_WATERMARK]]>
  4322. </doc>
  4323. </field>
  4324. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS" type="java.lang.String"
  4325. transient="false" volatile="false"
  4326. static="true" final="true" visibility="public"
  4327. deprecated="not deprecated">
  4328. <doc>
  4329. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4330. </doc>
  4331. </field>
  4332. <field name="KMS_CLIENT_ENC_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT" type="int"
  4333. transient="false" volatile="false"
  4334. static="true" final="true" visibility="public"
  4335. deprecated="not deprecated">
  4336. <doc>
  4337. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_NUM_REFILL_THREADS]]>
  4338. </doc>
  4339. </field>
  4340. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_MS" type="java.lang.String"
  4341. transient="false" volatile="false"
  4342. static="true" final="true" visibility="public"
  4343. deprecated="not deprecated">
  4344. <doc>
  4345. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4346. </doc>
  4347. </field>
  4348. <field name="KMS_CLIENT_ENC_KEY_CACHE_EXPIRY_DEFAULT" type="int"
  4349. transient="false" volatile="false"
  4350. static="true" final="true" visibility="public"
  4351. deprecated="not deprecated">
  4352. <doc>
  4353. <![CDATA[Default value for KMS_CLIENT_ENC_KEY_CACHE_EXPIRY (12 hrs)]]>
  4354. </doc>
  4355. </field>
  4356. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY" type="java.lang.String"
  4357. transient="false" volatile="false"
  4358. static="true" final="true" visibility="public"
  4359. deprecated="not deprecated">
  4360. <doc>
  4361. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4362. </doc>
  4363. </field>
  4364. <field name="HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_DEFAULT" type="java.lang.String"
  4365. transient="false" volatile="false"
  4366. static="true" final="true" visibility="public"
  4367. deprecated="not deprecated">
  4368. <doc>
  4369. <![CDATA[Defalt value for HADOOP_SECURITY_JAVA_SECURE_RANDOM_ALGORITHM_KEY]]>
  4370. </doc>
  4371. </field>
  4372. <field name="HADOOP_SECURITY_SECURE_RANDOM_IMPL_KEY" type="java.lang.String"
  4373. transient="false" volatile="false"
  4374. static="true" final="true" visibility="public"
  4375. deprecated="not deprecated">
  4376. <doc>
  4377. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4378. </doc>
  4379. </field>
  4380. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_KEY" type="java.lang.String"
  4381. transient="false" volatile="false"
  4382. static="true" final="true" visibility="public"
  4383. deprecated="not deprecated">
  4384. <doc>
  4385. <![CDATA[See <a href="{@docRoot}/../core-default.html">core-default.xml</a>]]>
  4386. </doc>
  4387. </field>
  4388. <field name="HADOOP_SECURITY_SECURE_RANDOM_DEVICE_FILE_PATH_DEFAULT" type="java.lang.String"
  4389. transient="false" volatile="false"
  4390. static="true" final="true" visibility="public"
  4391. deprecated="not deprecated">
  4392. </field>
  4393. <doc>
  4394. <![CDATA[This class contains constants for configuration keys used
  4395. in the common code.
  4396. It includes all publicly documented configuration keys. In general
  4397. this class should not be used directly (use CommonConfigurationKeys
  4398. instead)]]>
  4399. </doc>
  4400. </class>
  4401. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeysPublic -->
  4402. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  4403. <class name="ContentSummary" extends="java.lang.Object"
  4404. abstract="false"
  4405. static="false" final="false" visibility="public"
  4406. deprecated="not deprecated">
  4407. <implements name="org.apache.hadoop.io.Writable"/>
  4408. <constructor name="ContentSummary"
  4409. static="false" final="false" visibility="public"
  4410. deprecated="not deprecated">
  4411. <doc>
  4412. <![CDATA[Constructor deprecated by ContentSummary.Builder]]>
  4413. </doc>
  4414. </constructor>
  4415. <constructor name="ContentSummary" type="long, long, long"
  4416. static="false" final="false" visibility="public"
  4417. deprecated="not deprecated">
  4418. <doc>
  4419. <![CDATA[Constructor, deprecated by ContentSummary.Builder
  4420. This constructor implicitly set spaceConsumed the same as length.
  4421. spaceConsumed and length must be set explicitly with
  4422. ContentSummary.Builder]]>
  4423. </doc>
  4424. </constructor>
  4425. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  4426. static="false" final="false" visibility="public"
  4427. deprecated="not deprecated">
  4428. <doc>
  4429. <![CDATA[Constructor, deprecated by ContentSummary.Builder]]>
  4430. </doc>
  4431. </constructor>
  4432. <method name="getLength" return="long"
  4433. abstract="false" native="false" synchronized="false"
  4434. static="false" final="false" visibility="public"
  4435. deprecated="not deprecated">
  4436. <doc>
  4437. <![CDATA[@return the length]]>
  4438. </doc>
  4439. </method>
  4440. <method name="getDirectoryCount" return="long"
  4441. abstract="false" native="false" synchronized="false"
  4442. static="false" final="false" visibility="public"
  4443. deprecated="not deprecated">
  4444. <doc>
  4445. <![CDATA[@return the directory count]]>
  4446. </doc>
  4447. </method>
  4448. <method name="getFileCount" return="long"
  4449. abstract="false" native="false" synchronized="false"
  4450. static="false" final="false" visibility="public"
  4451. deprecated="not deprecated">
  4452. <doc>
  4453. <![CDATA[@return the file count]]>
  4454. </doc>
  4455. </method>
  4456. <method name="getQuota" return="long"
  4457. abstract="false" native="false" synchronized="false"
  4458. static="false" final="false" visibility="public"
  4459. deprecated="not deprecated">
  4460. <doc>
  4461. <![CDATA[Return the directory quota]]>
  4462. </doc>
  4463. </method>
  4464. <method name="getSpaceConsumed" return="long"
  4465. abstract="false" native="false" synchronized="false"
  4466. static="false" final="false" visibility="public"
  4467. deprecated="not deprecated">
  4468. <doc>
  4469. <![CDATA[Retuns storage space consumed]]>
  4470. </doc>
  4471. </method>
  4472. <method name="getSpaceQuota" return="long"
  4473. abstract="false" native="false" synchronized="false"
  4474. static="false" final="false" visibility="public"
  4475. deprecated="not deprecated">
  4476. <doc>
  4477. <![CDATA[Returns storage space quota]]>
  4478. </doc>
  4479. </method>
  4480. <method name="getTypeQuota" return="long"
  4481. abstract="false" native="false" synchronized="false"
  4482. static="false" final="false" visibility="public"
  4483. deprecated="not deprecated">
  4484. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  4485. <doc>
  4486. <![CDATA[Returns storage type quota]]>
  4487. </doc>
  4488. </method>
  4489. <method name="getTypeConsumed" return="long"
  4490. abstract="false" native="false" synchronized="false"
  4491. static="false" final="false" visibility="public"
  4492. deprecated="not deprecated">
  4493. <param name="type" type="org.apache.hadoop.fs.StorageType"/>
  4494. <doc>
  4495. <![CDATA[Returns storage type consumed]]>
  4496. </doc>
  4497. </method>
  4498. <method name="isTypeQuotaSet" return="boolean"
  4499. abstract="false" native="false" synchronized="false"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <doc>
  4503. <![CDATA[Returns true if any storage type quota has been set]]>
  4504. </doc>
  4505. </method>
  4506. <method name="isTypeConsumedAvailable" return="boolean"
  4507. abstract="false" native="false" synchronized="false"
  4508. static="false" final="false" visibility="public"
  4509. deprecated="not deprecated">
  4510. <doc>
  4511. <![CDATA[Returns true if any storage type consumption information is available]]>
  4512. </doc>
  4513. </method>
  4514. <method name="getHeader" return="java.lang.String"
  4515. abstract="false" native="false" synchronized="false"
  4516. static="true" final="false" visibility="public"
  4517. deprecated="not deprecated">
  4518. <param name="qOption" type="boolean"/>
  4519. <doc>
  4520. <![CDATA[Return the header of the output.
  4521. if qOption is false, output directory count, file count, and content size;
  4522. if qOption is true, output quota and remaining quota as well.
  4523. @param qOption a flag indicating if quota needs to be printed or not
  4524. @return the header of the output]]>
  4525. </doc>
  4526. </method>
  4527. <method name="toString" return="java.lang.String"
  4528. abstract="false" native="false" synchronized="false"
  4529. static="false" final="false" visibility="public"
  4530. deprecated="not deprecated">
  4531. </method>
  4532. <method name="toString" return="java.lang.String"
  4533. abstract="false" native="false" synchronized="false"
  4534. static="false" final="false" visibility="public"
  4535. deprecated="not deprecated">
  4536. <param name="qOption" type="boolean"/>
  4537. <doc>
  4538. <![CDATA[Return the string representation of the object in the output format.
  4539. if qOption is false, output directory count, file count, and content size;
  4540. if qOption is true, output quota and remaining quota as well.
  4541. @param qOption a flag indicating if quota needs to be printed or not
  4542. @return the string representation of the object]]>
  4543. </doc>
  4544. </method>
  4545. <method name="toString" return="java.lang.String"
  4546. abstract="false" native="false" synchronized="false"
  4547. static="false" final="false" visibility="public"
  4548. deprecated="not deprecated">
  4549. <param name="qOption" type="boolean"/>
  4550. <param name="hOption" type="boolean"/>
  4551. <doc>
  4552. <![CDATA[Return the string representation of the object in the output format.
  4553. if qOption is false, output directory count, file count, and content size;
  4554. if qOption is true, output quota and remaining quota as well.
  4555. if hOption is false file sizes are returned in bytes
  4556. if hOption is true file sizes are returned in human readable
  4557. @param qOption a flag indicating if quota needs to be printed or not
  4558. @param hOption a flag indicating if human readable output if to be used
  4559. @return the string representation of the object]]>
  4560. </doc>
  4561. </method>
  4562. <doc>
  4563. <![CDATA[Store the summary of a content (a directory or a file).]]>
  4564. </doc>
  4565. </class>
  4566. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  4567. <!-- start class org.apache.hadoop.fs.CreateFlag -->
  4568. <class name="CreateFlag" extends="java.lang.Enum"
  4569. abstract="false"
  4570. static="false" final="true" visibility="public"
  4571. deprecated="not deprecated">
  4572. <method name="values" return="org.apache.hadoop.fs.CreateFlag[]"
  4573. abstract="false" native="false" synchronized="false"
  4574. static="true" final="false" visibility="public"
  4575. deprecated="not deprecated">
  4576. </method>
  4577. <method name="valueOf" return="org.apache.hadoop.fs.CreateFlag"
  4578. abstract="false" native="false" synchronized="false"
  4579. static="true" final="false" visibility="public"
  4580. deprecated="not deprecated">
  4581. <param name="name" type="java.lang.String"/>
  4582. </method>
  4583. <method name="validate"
  4584. abstract="false" native="false" synchronized="false"
  4585. static="true" final="false" visibility="public"
  4586. deprecated="not deprecated">
  4587. <param name="flag" type="java.util.EnumSet"/>
  4588. <doc>
  4589. <![CDATA[Validate the CreateFlag and throw exception if it is invalid
  4590. @param flag set of CreateFlag
  4591. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  4592. </doc>
  4593. </method>
  4594. <method name="validate"
  4595. abstract="false" native="false" synchronized="false"
  4596. static="true" final="false" visibility="public"
  4597. deprecated="not deprecated">
  4598. <param name="path" type="java.lang.Object"/>
  4599. <param name="pathExists" type="boolean"/>
  4600. <param name="flag" type="java.util.EnumSet"/>
  4601. <exception name="IOException" type="java.io.IOException"/>
  4602. <doc>
  4603. <![CDATA[Validate the CreateFlag for create operation
  4604. @param path Object representing the path; usually String or {@link Path}
  4605. @param pathExists pass true if the path exists in the file system
  4606. @param flag set of CreateFlag
  4607. @throws IOException on error
  4608. @throws HadoopIllegalArgumentException if the CreateFlag is invalid]]>
  4609. </doc>
  4610. </method>
  4611. <method name="validateForAppend"
  4612. abstract="false" native="false" synchronized="false"
  4613. static="true" final="false" visibility="public"
  4614. deprecated="not deprecated">
  4615. <param name="flag" type="java.util.EnumSet"/>
  4616. <doc>
  4617. <![CDATA[Validate the CreateFlag for the append operation. The flag must contain
  4618. APPEND, and cannot contain OVERWRITE.]]>
  4619. </doc>
  4620. </method>
  4621. <doc>
  4622. <![CDATA[CreateFlag specifies the file create semantic. Users can combine flags like: <br>
  4623. <code>
  4624. EnumSet.of(CreateFlag.CREATE, CreateFlag.APPEND)
  4625. <code>
  4626. <p>
  4627. Use the CreateFlag as follows:
  4628. <ol>
  4629. <li> CREATE - to create a file if it does not exist,
  4630. else throw FileAlreadyExists.</li>
  4631. <li> APPEND - to append to a file if it exists,
  4632. else throw FileNotFoundException.</li>
  4633. <li> OVERWRITE - to truncate a file if it exists,
  4634. else throw FileNotFoundException.</li>
  4635. <li> CREATE|APPEND - to create a file if it does not exist,
  4636. else append to an existing file.</li>
  4637. <li> CREATE|OVERWRITE - to create a file if it does not exist,
  4638. else overwrite an existing file.</li>
  4639. <li> SYNC_BLOCK - to force closed blocks to the disk device.
  4640. In addition {@link Syncable#hsync()} should be called after each write,
  4641. if true synchronous behavior is required.</li>
  4642. <li> LAZY_PERSIST - Create the block on transient storage (RAM) if
  4643. available.</li>
  4644. <li> APPEND_NEWBLOCK - Append data to a new block instead of end of the last
  4645. partial block.</li>
  4646. </ol>
  4647. Following combination is not valid and will result in
  4648. {@link HadoopIllegalArgumentException}:
  4649. <ol>
  4650. <li> APPEND|OVERWRITE</li>
  4651. <li> CREATE|APPEND|OVERWRITE</li>
  4652. </ol>]]>
  4653. </doc>
  4654. </class>
  4655. <!-- end class org.apache.hadoop.fs.CreateFlag -->
  4656. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  4657. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  4658. abstract="false"
  4659. static="false" final="false" visibility="public"
  4660. deprecated="not deprecated">
  4661. <constructor name="FileAlreadyExistsException"
  4662. static="false" final="false" visibility="public"
  4663. deprecated="not deprecated">
  4664. </constructor>
  4665. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  4666. static="false" final="false" visibility="public"
  4667. deprecated="not deprecated">
  4668. </constructor>
  4669. <doc>
  4670. <![CDATA[Used when target file already exists for any operation and
  4671. is not configured to be overwritten.]]>
  4672. </doc>
  4673. </class>
  4674. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  4675. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  4676. <class name="FileChecksum" extends="java.lang.Object"
  4677. abstract="true"
  4678. static="false" final="false" visibility="public"
  4679. deprecated="not deprecated">
  4680. <implements name="org.apache.hadoop.io.Writable"/>
  4681. <constructor name="FileChecksum"
  4682. static="false" final="false" visibility="public"
  4683. deprecated="not deprecated">
  4684. </constructor>
  4685. <method name="getAlgorithmName" return="java.lang.String"
  4686. abstract="true" native="false" synchronized="false"
  4687. static="false" final="false" visibility="public"
  4688. deprecated="not deprecated">
  4689. <doc>
  4690. <![CDATA[The checksum algorithm name]]>
  4691. </doc>
  4692. </method>
  4693. <method name="getLength" return="int"
  4694. abstract="true" native="false" synchronized="false"
  4695. static="false" final="false" visibility="public"
  4696. deprecated="not deprecated">
  4697. <doc>
  4698. <![CDATA[The length of the checksum in bytes]]>
  4699. </doc>
  4700. </method>
  4701. <method name="getBytes" return="byte[]"
  4702. abstract="true" native="false" synchronized="false"
  4703. static="false" final="false" visibility="public"
  4704. deprecated="not deprecated">
  4705. <doc>
  4706. <![CDATA[The value of the checksum in bytes]]>
  4707. </doc>
  4708. </method>
  4709. <method name="getChecksumOpt" return="org.apache.hadoop.fs.Options.ChecksumOpt"
  4710. abstract="false" native="false" synchronized="false"
  4711. static="false" final="false" visibility="public"
  4712. deprecated="not deprecated">
  4713. </method>
  4714. <method name="equals" return="boolean"
  4715. abstract="false" native="false" synchronized="false"
  4716. static="false" final="false" visibility="public"
  4717. deprecated="not deprecated">
  4718. <param name="other" type="java.lang.Object"/>
  4719. <doc>
  4720. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  4721. </doc>
  4722. </method>
  4723. <method name="hashCode" return="int"
  4724. abstract="false" native="false" synchronized="false"
  4725. static="false" final="false" visibility="public"
  4726. deprecated="not deprecated">
  4727. </method>
  4728. <doc>
  4729. <![CDATA[An abstract class representing file checksums for files.]]>
  4730. </doc>
  4731. </class>
  4732. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  4733. <!-- start class org.apache.hadoop.fs.FileContext -->
  4734. <class name="FileContext" extends="java.lang.Object"
  4735. abstract="false"
  4736. static="false" final="false" visibility="public"
  4737. deprecated="not deprecated">
  4738. <method name="getFSofPath" return="org.apache.hadoop.fs.AbstractFileSystem"
  4739. abstract="false" native="false" synchronized="false"
  4740. static="false" final="false" visibility="protected"
  4741. deprecated="not deprecated">
  4742. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  4743. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4744. <exception name="IOException" type="java.io.IOException"/>
  4745. <doc>
  4746. <![CDATA[Get the file system of supplied path.
  4747. @param absOrFqPath - absolute or fully qualified path
  4748. @return the file system of the path
  4749. @throws UnsupportedFileSystemException If the file system for
  4750. <code>absOrFqPath</code> is not supported.
  4751. @throws IOExcepton If the file system for <code>absOrFqPath</code> could
  4752. not be instantiated.]]>
  4753. </doc>
  4754. </method>
  4755. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  4756. abstract="false" native="false" synchronized="false"
  4757. static="true" final="false" visibility="public"
  4758. deprecated="not deprecated">
  4759. <param name="defFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  4760. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  4761. <doc>
  4762. <![CDATA[Create a FileContext with specified FS as default using the specified
  4763. config.
  4764. @param defFS
  4765. @param aConf
  4766. @return new FileContext with specifed FS as default.]]>
  4767. </doc>
  4768. </method>
  4769. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  4770. abstract="false" native="false" synchronized="false"
  4771. static="true" final="false" visibility="protected"
  4772. deprecated="not deprecated">
  4773. <param name="defaultFS" type="org.apache.hadoop.fs.AbstractFileSystem"/>
  4774. <doc>
  4775. <![CDATA[Create a FileContext for specified file system using the default config.
  4776. @param defaultFS
  4777. @return a FileContext with the specified AbstractFileSystem
  4778. as the default FS.]]>
  4779. </doc>
  4780. </method>
  4781. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  4782. abstract="false" native="false" synchronized="false"
  4783. static="true" final="false" visibility="public"
  4784. deprecated="not deprecated">
  4785. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4786. <doc>
  4787. <![CDATA[Create a FileContext using the default config read from the
  4788. $HADOOP_CONFIG/core.xml, Unspecified key-values for config are defaulted
  4789. from core-defaults.xml in the release jar.
  4790. @throws UnsupportedFileSystemException If the file system from the default
  4791. configuration is not supported]]>
  4792. </doc>
  4793. </method>
  4794. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  4795. abstract="false" native="false" synchronized="false"
  4796. static="true" final="false" visibility="public"
  4797. deprecated="not deprecated">
  4798. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4799. <doc>
  4800. <![CDATA[@return a FileContext for the local file system using the default config.
  4801. @throws UnsupportedFileSystemException If the file system for
  4802. {@link FsConstants#LOCAL_FS_URI} is not supported.]]>
  4803. </doc>
  4804. </method>
  4805. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  4806. abstract="false" native="false" synchronized="false"
  4807. static="true" final="false" visibility="public"
  4808. deprecated="not deprecated">
  4809. <param name="defaultFsUri" type="java.net.URI"/>
  4810. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4811. <doc>
  4812. <![CDATA[Create a FileContext for specified URI using the default config.
  4813. @param defaultFsUri
  4814. @return a FileContext with the specified URI as the default FS.
  4815. @throws UnsupportedFileSystemException If the file system for
  4816. <code>defaultFsUri</code> is not supported]]>
  4817. </doc>
  4818. </method>
  4819. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  4820. abstract="false" native="false" synchronized="false"
  4821. static="true" final="false" visibility="public"
  4822. deprecated="not deprecated">
  4823. <param name="defaultFsUri" type="java.net.URI"/>
  4824. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  4825. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4826. <doc>
  4827. <![CDATA[Create a FileContext for specified default URI using the specified config.
  4828. @param defaultFsUri
  4829. @param aConf
  4830. @return new FileContext for specified uri
  4831. @throws UnsupportedFileSystemException If the file system with specified is
  4832. not supported
  4833. @throws RuntimeException If the file system specified is supported but
  4834. could not be instantiated, or if login fails.]]>
  4835. </doc>
  4836. </method>
  4837. <method name="getFileContext" return="org.apache.hadoop.fs.FileContext"
  4838. abstract="false" native="false" synchronized="false"
  4839. static="true" final="false" visibility="public"
  4840. deprecated="not deprecated">
  4841. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  4842. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4843. <doc>
  4844. <![CDATA[Create a FileContext using the passed config. Generally it is better to use
  4845. {@link #getFileContext(URI, Configuration)} instead of this one.
  4846. @param aConf
  4847. @return new FileContext
  4848. @throws UnsupportedFileSystemException If file system in the config
  4849. is not supported]]>
  4850. </doc>
  4851. </method>
  4852. <method name="getLocalFSFileContext" return="org.apache.hadoop.fs.FileContext"
  4853. abstract="false" native="false" synchronized="false"
  4854. static="true" final="false" visibility="public"
  4855. deprecated="not deprecated">
  4856. <param name="aConf" type="org.apache.hadoop.conf.Configuration"/>
  4857. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4858. <doc>
  4859. <![CDATA[@param aConf - from which the FileContext is configured
  4860. @return a FileContext for the local file system using the specified config.
  4861. @throws UnsupportedFileSystemException If default file system in the config
  4862. is not supported]]>
  4863. </doc>
  4864. </method>
  4865. <method name="setWorkingDirectory"
  4866. abstract="false" native="false" synchronized="false"
  4867. static="false" final="false" visibility="public"
  4868. deprecated="not deprecated">
  4869. <param name="newWDir" type="org.apache.hadoop.fs.Path"/>
  4870. <exception name="IOException" type="java.io.IOException"/>
  4871. <doc>
  4872. <![CDATA[Set the working directory for wd-relative names (such a "foo/bar"). Working
  4873. directory feature is provided by simply prefixing relative names with the
  4874. working dir. Note this is different from Unix where the wd is actually set
  4875. to the inode. Hence setWorkingDir does not follow symlinks etc. This works
  4876. better in a distributed environment that has multiple independent roots.
  4877. {@link #getWorkingDirectory()} should return what setWorkingDir() set.
  4878. @param newWDir new working directory
  4879. @throws IOException
  4880. <br>
  4881. NewWdir can be one of:
  4882. <ul>
  4883. <li>relative path: "foo/bar";</li>
  4884. <li>absolute without scheme: "/foo/bar"</li>
  4885. <li>fully qualified with scheme: "xx://auth/foo/bar"</li>
  4886. </ul>
  4887. <br>
  4888. Illegal WDs:
  4889. <ul>
  4890. <li>relative with scheme: "xx:foo/bar"</li>
  4891. <li>non existent directory</li>
  4892. </ul>]]>
  4893. </doc>
  4894. </method>
  4895. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4896. abstract="false" native="false" synchronized="false"
  4897. static="false" final="false" visibility="public"
  4898. deprecated="not deprecated">
  4899. <doc>
  4900. <![CDATA[Gets the working directory for wd-relative names (such a "foo/bar").]]>
  4901. </doc>
  4902. </method>
  4903. <method name="getUgi" return="org.apache.hadoop.security.UserGroupInformation"
  4904. abstract="false" native="false" synchronized="false"
  4905. static="false" final="false" visibility="public"
  4906. deprecated="not deprecated">
  4907. <doc>
  4908. <![CDATA[Gets the ugi in the file-context
  4909. @return UserGroupInformation]]>
  4910. </doc>
  4911. </method>
  4912. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4913. abstract="false" native="false" synchronized="false"
  4914. static="false" final="false" visibility="public"
  4915. deprecated="not deprecated">
  4916. <doc>
  4917. <![CDATA[Return the current user's home directory in this file system.
  4918. The default implementation returns "/user/$USER/".
  4919. @return the home directory]]>
  4920. </doc>
  4921. </method>
  4922. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  4923. abstract="false" native="false" synchronized="false"
  4924. static="false" final="false" visibility="public"
  4925. deprecated="not deprecated">
  4926. <doc>
  4927. <![CDATA[@return the umask of this FileContext]]>
  4928. </doc>
  4929. </method>
  4930. <method name="setUMask"
  4931. abstract="false" native="false" synchronized="false"
  4932. static="false" final="false" visibility="public"
  4933. deprecated="not deprecated">
  4934. <param name="newUmask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4935. <doc>
  4936. <![CDATA[Set umask to the supplied parameter.
  4937. @param newUmask the new umask]]>
  4938. </doc>
  4939. </method>
  4940. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  4941. abstract="false" native="false" synchronized="false"
  4942. static="false" final="false" visibility="public"
  4943. deprecated="not deprecated">
  4944. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4945. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4946. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  4947. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4948. <exception name="IOException" type="java.io.IOException"/>
  4949. <doc>
  4950. <![CDATA[Resolve the path following any symlinks or mount points
  4951. @param f to be resolved
  4952. @return fully qualified resolved path
  4953. @throws FileNotFoundException If <code>f</code> does not exist
  4954. @throws AccessControlException if access denied
  4955. @throws IOException If an IO Error occurred
  4956. Exceptions applicable to file systems accessed over RPC:
  4957. @throws RpcClientException If an exception occurred in the RPC client
  4958. @throws RpcServerException If an exception occurred in the RPC server
  4959. @throws UnexpectedServerException If server implementation throws
  4960. undeclared exception to RPC server
  4961. RuntimeExceptions:
  4962. @throws InvalidPathException If path <code>f</code> is not valid]]>
  4963. </doc>
  4964. </method>
  4965. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4966. abstract="false" native="false" synchronized="false"
  4967. static="false" final="false" visibility="public"
  4968. deprecated="not deprecated">
  4969. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4970. <doc>
  4971. <![CDATA[Make the path fully qualified if it is isn't.
  4972. A Fully-qualified path has scheme and authority specified and an absolute
  4973. path.
  4974. Use the default file system and working dir in this FileContext to qualify.
  4975. @param path
  4976. @return qualified path]]>
  4977. </doc>
  4978. </method>
  4979. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  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. <param name="createFlag" type="java.util.EnumSet"/>
  4985. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  4986. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  4987. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  4988. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  4989. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  4990. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  4991. <exception name="IOException" type="java.io.IOException"/>
  4992. <doc>
  4993. <![CDATA[Create or overwrite file on indicated path and returns an output stream for
  4994. writing into the file.
  4995. @param f the file name to open
  4996. @param createFlag gives the semantics of create; see {@link CreateFlag}
  4997. @param opts file creation options; see {@link Options.CreateOpts}.
  4998. <ul>
  4999. <li>Progress - to report progress on the operation - default null
  5000. <li>Permission - umask is applied against permisssion: default is
  5001. FsPermissions:getDefault()
  5002. <li>CreateParent - create missing parent path; default is to not
  5003. to create parents
  5004. <li>The defaults for the following are SS defaults of the file
  5005. server implementing the target path. Not all parameters make sense
  5006. for all kinds of file system - eg. localFS ignores Blocksize,
  5007. replication, checksum
  5008. <ul>
  5009. <li>BufferSize - buffersize used in FSDataOutputStream
  5010. <li>Blocksize - block size for file blocks
  5011. <li>ReplicationFactor - replication for blocks
  5012. <li>ChecksumParam - Checksum parameters. server default is used
  5013. if not specified.
  5014. </ul>
  5015. </ul>
  5016. @return {@link FSDataOutputStream} for created file
  5017. @throws AccessControlException If access is denied
  5018. @throws FileAlreadyExistsException If file <code>f</code> already exists
  5019. @throws FileNotFoundException If parent of <code>f</code> does not exist
  5020. and <code>createParent</code> is false
  5021. @throws ParentNotDirectoryException If parent of <code>f</code> is not a
  5022. directory.
  5023. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5024. not supported
  5025. @throws IOException If an I/O error occurred
  5026. Exceptions applicable to file systems accessed over RPC:
  5027. @throws RpcClientException If an exception occurred in the RPC client
  5028. @throws RpcServerException If an exception occurred in the RPC server
  5029. @throws UnexpectedServerException If server implementation throws
  5030. undeclared exception to RPC server
  5031. RuntimeExceptions:
  5032. @throws InvalidPathException If path <code>f</code> is not valid]]>
  5033. </doc>
  5034. </method>
  5035. <method name="mkdir"
  5036. abstract="false" native="false" synchronized="false"
  5037. static="false" final="false" visibility="public"
  5038. deprecated="not deprecated">
  5039. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  5040. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5041. <param name="createParent" type="boolean"/>
  5042. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5043. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5044. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5045. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5046. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5047. <exception name="IOException" type="java.io.IOException"/>
  5048. <doc>
  5049. <![CDATA[Make(create) a directory and all the non-existent parents.
  5050. @param dir - the dir to make
  5051. @param permission - permissions is set permission&~umask
  5052. @param createParent - if true then missing parent dirs are created if false
  5053. then parent must exist
  5054. @throws AccessControlException If access is denied
  5055. @throws FileAlreadyExistsException If directory <code>dir</code> already
  5056. exists
  5057. @throws FileNotFoundException If parent of <code>dir</code> does not exist
  5058. and <code>createParent</code> is false
  5059. @throws ParentNotDirectoryException If parent of <code>dir</code> is not a
  5060. directory
  5061. @throws UnsupportedFileSystemException If file system for <code>dir</code>
  5062. is not supported
  5063. @throws IOException If an I/O error occurred
  5064. Exceptions applicable to file systems accessed over RPC:
  5065. @throws RpcClientException If an exception occurred in the RPC client
  5066. @throws UnexpectedServerException If server implementation throws
  5067. undeclared exception to RPC server
  5068. RuntimeExceptions:
  5069. @throws InvalidPathException If path <code>dir</code> is not valid]]>
  5070. </doc>
  5071. </method>
  5072. <method name="delete" return="boolean"
  5073. abstract="false" native="false" synchronized="false"
  5074. static="false" final="false" visibility="public"
  5075. deprecated="not deprecated">
  5076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5077. <param name="recursive" type="boolean"/>
  5078. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5079. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5080. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5081. <exception name="IOException" type="java.io.IOException"/>
  5082. <doc>
  5083. <![CDATA[Delete a file.
  5084. @param f the path to delete.
  5085. @param recursive if path is a directory and set to
  5086. true, the directory is deleted else throws an exception. In
  5087. case of a file the recursive can be set to either true or false.
  5088. @throws AccessControlException If access is denied
  5089. @throws FileNotFoundException If <code>f</code> does not exist
  5090. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5091. not supported
  5092. @throws IOException If an I/O error occurred
  5093. Exceptions applicable to file systems accessed over RPC:
  5094. @throws RpcClientException If an exception occurred in the RPC client
  5095. @throws RpcServerException If an exception occurred in the RPC server
  5096. @throws UnexpectedServerException If server implementation throws
  5097. undeclared exception to RPC server
  5098. RuntimeExceptions:
  5099. @throws InvalidPathException If path <code>f</code> is invalid]]>
  5100. </doc>
  5101. </method>
  5102. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5103. abstract="false" native="false" synchronized="false"
  5104. static="false" final="false" visibility="public"
  5105. deprecated="not deprecated">
  5106. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5107. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5108. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5109. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5110. <exception name="IOException" type="java.io.IOException"/>
  5111. <doc>
  5112. <![CDATA[Opens an FSDataInputStream at the indicated Path using
  5113. default buffersize.
  5114. @param f the file name to open
  5115. @throws AccessControlException If access is denied
  5116. @throws FileNotFoundException If file <code>f</code> does not exist
  5117. @throws UnsupportedFileSystemException If file system for <code>f</code>
  5118. is not supported
  5119. @throws IOException If an I/O error occurred
  5120. Exceptions applicable to file systems accessed over RPC:
  5121. @throws RpcClientException If an exception occurred in the RPC client
  5122. @throws RpcServerException If an exception occurred in the RPC server
  5123. @throws UnexpectedServerException If server implementation throws
  5124. undeclared exception to RPC server]]>
  5125. </doc>
  5126. </method>
  5127. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5128. abstract="false" native="false" synchronized="false"
  5129. static="false" final="false" visibility="public"
  5130. deprecated="not deprecated">
  5131. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5132. <param name="bufferSize" type="int"/>
  5133. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5134. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5135. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5136. <exception name="IOException" type="java.io.IOException"/>
  5137. <doc>
  5138. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  5139. @param f the file name to open
  5140. @param bufferSize the size of the buffer to be used.
  5141. @throws AccessControlException If access is denied
  5142. @throws FileNotFoundException If file <code>f</code> does not exist
  5143. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5144. not supported
  5145. @throws IOException If an I/O error occurred
  5146. Exceptions applicable to file systems accessed over RPC:
  5147. @throws RpcClientException If an exception occurred in the RPC client
  5148. @throws RpcServerException If an exception occurred in the RPC server
  5149. @throws UnexpectedServerException If server implementation throws
  5150. undeclared exception to RPC server]]>
  5151. </doc>
  5152. </method>
  5153. <method name="truncate" return="boolean"
  5154. abstract="false" native="false" synchronized="false"
  5155. static="false" final="false" visibility="public"
  5156. deprecated="not deprecated">
  5157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5158. <param name="newLength" type="long"/>
  5159. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5160. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5161. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5162. <exception name="IOException" type="java.io.IOException"/>
  5163. <doc>
  5164. <![CDATA[Truncate the file in the indicated path to the indicated size.
  5165. <ul>
  5166. <li>Fails if path is a directory.
  5167. <li>Fails if path does not exist.
  5168. <li>Fails if path is not closed.
  5169. <li>Fails if new size is greater than current size.
  5170. </ul>
  5171. @param f The path to the file to be truncated
  5172. @param newLength The size the file is to be truncated to
  5173. @return <code>true</code> if the file has been truncated to the desired
  5174. <code>newLength</code> and is immediately available to be reused for
  5175. write operations such as <code>append</code>, or
  5176. <code>false</code> if a background process of adjusting the length of
  5177. the last block has been started, and clients should wait for it to
  5178. complete before proceeding with further file updates.
  5179. @throws AccessControlException If access is denied
  5180. @throws FileNotFoundException If file <code>f</code> does not exist
  5181. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5182. not supported
  5183. @throws IOException If an I/O error occurred
  5184. Exceptions applicable to file systems accessed over RPC:
  5185. @throws RpcClientException If an exception occurred in the RPC client
  5186. @throws RpcServerException If an exception occurred in the RPC server
  5187. @throws UnexpectedServerException If server implementation throws
  5188. undeclared exception to RPC server]]>
  5189. </doc>
  5190. </method>
  5191. <method name="setReplication" return="boolean"
  5192. abstract="false" native="false" synchronized="false"
  5193. static="false" final="false" visibility="public"
  5194. deprecated="not deprecated">
  5195. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5196. <param name="replication" type="short"/>
  5197. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5198. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5199. <exception name="IOException" type="java.io.IOException"/>
  5200. <doc>
  5201. <![CDATA[Set replication for an existing file.
  5202. @param f file name
  5203. @param replication new replication
  5204. @return true if successful
  5205. @throws AccessControlException If access is denied
  5206. @throws FileNotFoundException If file <code>f</code> does not exist
  5207. @throws IOException If an I/O error occurred
  5208. Exceptions applicable to file systems accessed over RPC:
  5209. @throws RpcClientException If an exception occurred in the RPC client
  5210. @throws RpcServerException If an exception occurred in the RPC server
  5211. @throws UnexpectedServerException If server implementation throws
  5212. undeclared exception to RPC server]]>
  5213. </doc>
  5214. </method>
  5215. <method name="rename"
  5216. abstract="false" native="false" synchronized="false"
  5217. static="false" final="false" visibility="public"
  5218. deprecated="not deprecated">
  5219. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5220. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5221. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  5222. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5223. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5224. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5225. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5226. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5227. <exception name="IOException" type="java.io.IOException"/>
  5228. <doc>
  5229. <![CDATA[Renames Path src to Path dst
  5230. <ul>
  5231. <li
  5232. <li>Fails if src is a file and dst is a directory.
  5233. <li>Fails if src is a directory and dst is a file.
  5234. <li>Fails if the parent of dst does not exist or is a file.
  5235. </ul>
  5236. <p>
  5237. If OVERWRITE option is not passed as an argument, rename fails if the dst
  5238. already exists.
  5239. <p>
  5240. If OVERWRITE option is passed as an argument, rename overwrites the dst if
  5241. it is a file or an empty directory. Rename fails if dst is a non-empty
  5242. directory.
  5243. <p>
  5244. Note that atomicity of rename is dependent on the file system
  5245. implementation. Please refer to the file system documentation for details
  5246. <p>
  5247. @param src path to be renamed
  5248. @param dst new path after rename
  5249. @throws AccessControlException If access is denied
  5250. @throws FileAlreadyExistsException If <code>dst</code> already exists and
  5251. <code>options</options> has {@link Options.Rename#OVERWRITE}
  5252. option false.
  5253. @throws FileNotFoundException If <code>src</code> does not exist
  5254. @throws ParentNotDirectoryException If parent of <code>dst</code> is not a
  5255. directory
  5256. @throws UnsupportedFileSystemException If file system for <code>src</code>
  5257. and <code>dst</code> is not supported
  5258. @throws IOException If an I/O error occurred
  5259. Exceptions applicable to file systems accessed over RPC:
  5260. @throws RpcClientException If an exception occurred in the RPC client
  5261. @throws RpcServerException If an exception occurred in the RPC server
  5262. @throws UnexpectedServerException If server implementation throws
  5263. undeclared exception to RPC server]]>
  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="f" type="org.apache.hadoop.fs.Path"/>
  5271. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5272. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5273. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5274. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5275. <exception name="IOException" type="java.io.IOException"/>
  5276. <doc>
  5277. <![CDATA[Set permission of a path.
  5278. @param f
  5279. @param permission - the new absolute permission (umask is not applied)
  5280. @throws AccessControlException If access is denied
  5281. @throws FileNotFoundException If <code>f</code> does not exist
  5282. @throws UnsupportedFileSystemException If file system for <code>f</code>
  5283. is not supported
  5284. @throws IOException If an I/O error occurred
  5285. Exceptions applicable to file systems accessed over RPC:
  5286. @throws RpcClientException If an exception occurred in the RPC client
  5287. @throws RpcServerException If an exception occurred in the RPC server
  5288. @throws UnexpectedServerException If server implementation throws
  5289. undeclared exception to RPC server]]>
  5290. </doc>
  5291. </method>
  5292. <method name="setOwner"
  5293. abstract="false" native="false" synchronized="false"
  5294. static="false" final="false" visibility="public"
  5295. deprecated="not deprecated">
  5296. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5297. <param name="username" type="java.lang.String"/>
  5298. <param name="groupname" type="java.lang.String"/>
  5299. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5300. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5301. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5302. <exception name="IOException" type="java.io.IOException"/>
  5303. <doc>
  5304. <![CDATA[Set owner of a path (i.e. a file or a directory). The parameters username
  5305. and groupname cannot both be null.
  5306. @param f The path
  5307. @param username If it is null, the original username remains unchanged.
  5308. @param groupname If it is null, the original groupname remains unchanged.
  5309. @throws AccessControlException If access is denied
  5310. @throws FileNotFoundException If <code>f</code> does not exist
  5311. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5312. not supported
  5313. @throws IOException If an I/O error occurred
  5314. Exceptions applicable to file systems accessed over RPC:
  5315. @throws RpcClientException If an exception occurred in the RPC client
  5316. @throws RpcServerException If an exception occurred in the RPC server
  5317. @throws UnexpectedServerException If server implementation throws
  5318. undeclared exception to RPC server
  5319. RuntimeExceptions:
  5320. @throws HadoopIllegalArgumentException If <code>username</code> or
  5321. <code>groupname</code> is invalid.]]>
  5322. </doc>
  5323. </method>
  5324. <method name="setTimes"
  5325. abstract="false" native="false" synchronized="false"
  5326. static="false" final="false" visibility="public"
  5327. deprecated="not deprecated">
  5328. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5329. <param name="mtime" type="long"/>
  5330. <param name="atime" type="long"/>
  5331. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5332. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5333. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5334. <exception name="IOException" type="java.io.IOException"/>
  5335. <doc>
  5336. <![CDATA[Set access time of a file.
  5337. @param f The path
  5338. @param mtime Set the modification time of this file.
  5339. The number of milliseconds since epoch (Jan 1, 1970).
  5340. A value of -1 means that this call should not set modification time.
  5341. @param atime Set the access time of this file.
  5342. The number of milliseconds since Jan 1, 1970.
  5343. A value of -1 means that this call should not set access time.
  5344. @throws AccessControlException If access is denied
  5345. @throws FileNotFoundException If <code>f</code> does not exist
  5346. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5347. not supported
  5348. @throws IOException If an I/O error occurred
  5349. Exceptions applicable to file systems accessed over RPC:
  5350. @throws RpcClientException If an exception occurred in the RPC client
  5351. @throws RpcServerException If an exception occurred in the RPC server
  5352. @throws UnexpectedServerException If server implementation throws
  5353. undeclared exception to RPC server]]>
  5354. </doc>
  5355. </method>
  5356. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5357. abstract="false" native="false" synchronized="false"
  5358. static="false" final="false" visibility="public"
  5359. deprecated="not deprecated">
  5360. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5361. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5362. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5363. <exception name="IOException" type="java.io.IOException"/>
  5364. <doc>
  5365. <![CDATA[Get the checksum of a file.
  5366. @param f file path
  5367. @return The file checksum. The default return value is null,
  5368. which indicates that no checksum algorithm is implemented
  5369. in the corresponding FileSystem.
  5370. @throws AccessControlException If access is denied
  5371. @throws FileNotFoundException If <code>f</code> does not exist
  5372. @throws IOException If an I/O error occurred
  5373. Exceptions applicable to file systems accessed over RPC:
  5374. @throws RpcClientException If an exception occurred in the RPC client
  5375. @throws RpcServerException If an exception occurred in the RPC server
  5376. @throws UnexpectedServerException If server implementation throws
  5377. undeclared exception to RPC server]]>
  5378. </doc>
  5379. </method>
  5380. <method name="setVerifyChecksum"
  5381. abstract="false" native="false" synchronized="false"
  5382. static="false" final="false" visibility="public"
  5383. deprecated="not deprecated">
  5384. <param name="verifyChecksum" type="boolean"/>
  5385. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5386. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5387. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5388. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5389. <exception name="IOException" type="java.io.IOException"/>
  5390. <doc>
  5391. <![CDATA[Set the verify checksum flag for the file system denoted by the path.
  5392. This is only applicable if the
  5393. corresponding FileSystem supports checksum. By default doesn't do anything.
  5394. @param verifyChecksum
  5395. @param f set the verifyChecksum for the Filesystem containing this path
  5396. @throws AccessControlException If access is denied
  5397. @throws FileNotFoundException If <code>f</code> does not exist
  5398. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5399. not supported
  5400. @throws IOException If an I/O error occurred
  5401. Exceptions applicable to file systems accessed over RPC:
  5402. @throws RpcClientException If an exception occurred in the RPC client
  5403. @throws RpcServerException If an exception occurred in the RPC server
  5404. @throws UnexpectedServerException If server implementation throws
  5405. undeclared exception to RPC server]]>
  5406. </doc>
  5407. </method>
  5408. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5409. abstract="false" native="false" synchronized="false"
  5410. static="false" final="false" visibility="public"
  5411. deprecated="not deprecated">
  5412. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5413. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5414. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5415. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5416. <exception name="IOException" type="java.io.IOException"/>
  5417. <doc>
  5418. <![CDATA[Return a file status object that represents the path.
  5419. @param f The path we want information from
  5420. @return a FileStatus object
  5421. @throws AccessControlException If access is denied
  5422. @throws FileNotFoundException If <code>f</code> does not exist
  5423. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5424. not supported
  5425. @throws IOException If an I/O error occurred
  5426. Exceptions applicable to file systems accessed over RPC:
  5427. @throws RpcClientException If an exception occurred in the RPC client
  5428. @throws RpcServerException If an exception occurred in the RPC server
  5429. @throws UnexpectedServerException If server implementation throws
  5430. undeclared exception to RPC server]]>
  5431. </doc>
  5432. </method>
  5433. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  5434. abstract="false" native="false" synchronized="false"
  5435. static="false" final="false" visibility="public"
  5436. deprecated="not deprecated">
  5437. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5438. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5439. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5440. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5441. <exception name="IOException" type="java.io.IOException"/>
  5442. <doc>
  5443. <![CDATA[Return a file status object that represents the path. If the path
  5444. refers to a symlink then the FileStatus of the symlink is returned.
  5445. The behavior is equivalent to #getFileStatus() if the underlying
  5446. file system does not support symbolic links.
  5447. @param f The path we want information from.
  5448. @return A FileStatus object
  5449. @throws AccessControlException If access is denied
  5450. @throws FileNotFoundException If <code>f</code> does not exist
  5451. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5452. not supported
  5453. @throws IOException If an I/O error occurred]]>
  5454. </doc>
  5455. </method>
  5456. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  5457. abstract="false" native="false" synchronized="false"
  5458. static="false" final="false" visibility="public"
  5459. deprecated="not deprecated">
  5460. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5461. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5462. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5463. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5464. <exception name="IOException" type="java.io.IOException"/>
  5465. <doc>
  5466. <![CDATA[Returns the target of the given symbolic link as it was specified
  5467. when the link was created. Links in the path leading up to the
  5468. final path component are resolved transparently.
  5469. @param f the path to return the target of
  5470. @return The un-interpreted target of the symbolic link.
  5471. @throws AccessControlException If access is denied
  5472. @throws FileNotFoundException If path <code>f</code> does not exist
  5473. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5474. not supported
  5475. @throws IOException If the given path does not refer to a symlink
  5476. or an I/O error occurred]]>
  5477. </doc>
  5478. </method>
  5479. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  5480. abstract="false" native="false" synchronized="false"
  5481. static="false" final="false" visibility="public"
  5482. deprecated="not deprecated">
  5483. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5484. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5485. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5486. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5487. <exception name="IOException" type="java.io.IOException"/>
  5488. <doc>
  5489. <![CDATA[Returns a status object describing the use and capacity of the
  5490. file system denoted by the Parh argument p.
  5491. If the file system has multiple partitions, the
  5492. use and capacity of the partition pointed to by the specified
  5493. path is reflected.
  5494. @param f Path for which status should be obtained. null means the
  5495. root partition of the default file system.
  5496. @return a FsStatus object
  5497. @throws AccessControlException If access is denied
  5498. @throws FileNotFoundException If <code>f</code> does not exist
  5499. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5500. not supported
  5501. @throws IOException If an I/O error occurred
  5502. Exceptions applicable to file systems accessed over RPC:
  5503. @throws RpcClientException If an exception occurred in the RPC client
  5504. @throws RpcServerException If an exception occurred in the RPC server
  5505. @throws UnexpectedServerException If server implementation throws
  5506. undeclared exception to RPC server]]>
  5507. </doc>
  5508. </method>
  5509. <method name="createSymlink"
  5510. abstract="false" native="false" synchronized="false"
  5511. static="false" final="false" visibility="public"
  5512. deprecated="not deprecated">
  5513. <param name="target" type="org.apache.hadoop.fs.Path"/>
  5514. <param name="link" type="org.apache.hadoop.fs.Path"/>
  5515. <param name="createParent" type="boolean"/>
  5516. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5517. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  5518. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5519. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  5520. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5521. <exception name="IOException" type="java.io.IOException"/>
  5522. <doc>
  5523. <![CDATA[Creates a symbolic link to an existing file. An exception is thrown if
  5524. the symlink exits, the user does not have permission to create symlink,
  5525. or the underlying file system does not support symlinks.
  5526. Symlink permissions are ignored, access to a symlink is determined by
  5527. the permissions of the symlink target.
  5528. Symlinks in paths leading up to the final path component are resolved
  5529. transparently. If the final path component refers to a symlink some
  5530. functions operate on the symlink itself, these are:
  5531. - delete(f) and deleteOnExit(f) - Deletes the symlink.
  5532. - rename(src, dst) - If src refers to a symlink, the symlink is
  5533. renamed. If dst refers to a symlink, the symlink is over-written.
  5534. - getLinkTarget(f) - Returns the target of the symlink.
  5535. - getFileLinkStatus(f) - Returns a FileStatus object describing
  5536. the symlink.
  5537. Some functions, create() and mkdir(), expect the final path component
  5538. does not exist. If they are given a path that refers to a symlink that
  5539. does exist they behave as if the path referred to an existing file or
  5540. directory. All other functions fully resolve, ie follow, the symlink.
  5541. These are: open, setReplication, setOwner, setTimes, setWorkingDirectory,
  5542. setPermission, getFileChecksum, setVerifyChecksum, getFileBlockLocations,
  5543. getFsStatus, getFileStatus, exists, and listStatus.
  5544. Symlink targets are stored as given to createSymlink, assuming the
  5545. underlying file system is capable of storing a fully qualified URI.
  5546. Dangling symlinks are permitted. FileContext supports four types of
  5547. symlink targets, and resolves them as follows
  5548. <pre>
  5549. Given a path referring to a symlink of form:
  5550. <---X--->
  5551. fs://host/A/B/link
  5552. <-----Y----->
  5553. In this path X is the scheme and authority that identify the file system,
  5554. and Y is the path leading up to the final path component "link". If Y is
  5555. a symlink itself then let Y' be the target of Y and X' be the scheme and
  5556. authority of Y'. Symlink targets may:
  5557. 1. Fully qualified URIs
  5558. fs://hostX/A/B/file Resolved according to the target file system.
  5559. 2. Partially qualified URIs (eg scheme but no host)
  5560. fs:///A/B/file Resolved according to the target file system. Eg resolving
  5561. a symlink to hdfs:///A results in an exception because
  5562. HDFS URIs must be fully qualified, while a symlink to
  5563. file:///A will not since Hadoop's local file systems
  5564. require partially qualified URIs.
  5565. 3. Relative paths
  5566. path Resolves to [Y'][path]. Eg if Y resolves to hdfs://host/A and path
  5567. is "../B/file" then [Y'][path] is hdfs://host/B/file
  5568. 4. Absolute paths
  5569. path Resolves to [X'][path]. Eg if Y resolves hdfs://host/A/B and path
  5570. is "/file" then [X][path] is hdfs://host/file
  5571. </pre>
  5572. @param target the target of the symbolic link
  5573. @param link the path to be created that points to target
  5574. @param createParent if true then missing parent dirs are created if
  5575. false then parent must exist
  5576. @throws AccessControlException If access is denied
  5577. @throws FileAlreadyExistsException If file <code>linkcode> already exists
  5578. @throws FileNotFoundException If <code>target</code> does not exist
  5579. @throws ParentNotDirectoryException If parent of <code>link</code> is not a
  5580. directory.
  5581. @throws UnsupportedFileSystemException If file system for
  5582. <code>target</code> or <code>link</code> is not supported
  5583. @throws IOException If an I/O error occurred]]>
  5584. </doc>
  5585. </method>
  5586. <method name="listStatus" return="org.apache.hadoop.fs.RemoteIterator"
  5587. abstract="false" native="false" synchronized="false"
  5588. static="false" final="false" visibility="public"
  5589. deprecated="not deprecated">
  5590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5591. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5592. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5593. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5594. <exception name="IOException" type="java.io.IOException"/>
  5595. <doc>
  5596. <![CDATA[List the statuses of the files/directories in the given path if the path is
  5597. a directory.
  5598. @param f is the path
  5599. @return an iterator that traverses statuses of the files/directories
  5600. in the given path
  5601. @throws AccessControlException If access is denied
  5602. @throws FileNotFoundException If <code>f</code> does not exist
  5603. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5604. not supported
  5605. @throws IOException If an I/O error occurred
  5606. Exceptions applicable to file systems accessed over RPC:
  5607. @throws RpcClientException If an exception occurred in the RPC client
  5608. @throws RpcServerException If an exception occurred in the RPC server
  5609. @throws UnexpectedServerException If server implementation throws
  5610. undeclared exception to RPC server]]>
  5611. </doc>
  5612. </method>
  5613. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  5614. abstract="false" native="false" synchronized="false"
  5615. static="false" final="false" visibility="public"
  5616. deprecated="not deprecated">
  5617. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5618. <exception name="IOException" type="java.io.IOException"/>
  5619. <doc>
  5620. <![CDATA[@return an iterator over the corrupt files under the given path
  5621. (may contain duplicates if a file has more than one corrupt block)
  5622. @throws IOException]]>
  5623. </doc>
  5624. </method>
  5625. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  5626. abstract="false" native="false" synchronized="false"
  5627. static="false" final="false" visibility="public"
  5628. deprecated="not deprecated">
  5629. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5630. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5631. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5632. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  5633. <exception name="IOException" type="java.io.IOException"/>
  5634. <doc>
  5635. <![CDATA[List the statuses of the files/directories in the given path if the path is
  5636. a directory.
  5637. Return the file's status and block locations If the path is a file.
  5638. If a returned status is a file, it contains the file's block locations.
  5639. @param f is the path
  5640. @return an iterator that traverses statuses of the files/directories
  5641. in the given path
  5642. If any IO exception (for example the input directory gets deleted while
  5643. listing is being executed), next() or hasNext() of the returned iterator
  5644. may throw a RuntimeException with the io exception as the cause.
  5645. @throws AccessControlException If access is denied
  5646. @throws FileNotFoundException If <code>f</code> does not exist
  5647. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5648. not supported
  5649. @throws IOException If an I/O error occurred
  5650. Exceptions applicable to file systems accessed over RPC:
  5651. @throws RpcClientException If an exception occurred in the RPC client
  5652. @throws RpcServerException If an exception occurred in the RPC server
  5653. @throws UnexpectedServerException If server implementation throws
  5654. undeclared exception to RPC server]]>
  5655. </doc>
  5656. </method>
  5657. <method name="deleteOnExit" return="boolean"
  5658. abstract="false" native="false" synchronized="false"
  5659. static="false" final="false" visibility="public"
  5660. deprecated="not deprecated">
  5661. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5662. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5663. <exception name="IOException" type="java.io.IOException"/>
  5664. <doc>
  5665. <![CDATA[Mark a path to be deleted on JVM shutdown.
  5666. @param f the existing path to delete.
  5667. @return true if deleteOnExit is successful, otherwise false.
  5668. @throws AccessControlException If access is denied
  5669. @throws UnsupportedFileSystemException If file system for <code>f</code> is
  5670. not supported
  5671. @throws IOException If an I/O error occurred
  5672. Exceptions applicable to file systems accessed over RPC:
  5673. @throws RpcClientException If an exception occurred in the RPC client
  5674. @throws RpcServerException If an exception occurred in the RPC server
  5675. @throws UnexpectedServerException If server implementation throws
  5676. undeclared exception to RPC server]]>
  5677. </doc>
  5678. </method>
  5679. <method name="util" return="org.apache.hadoop.fs.FileContext.Util"
  5680. abstract="false" native="false" synchronized="false"
  5681. static="false" final="false" visibility="public"
  5682. deprecated="not deprecated">
  5683. </method>
  5684. <method name="resolve" return="org.apache.hadoop.fs.Path"
  5685. abstract="false" native="false" synchronized="false"
  5686. static="false" final="false" visibility="protected"
  5687. deprecated="not deprecated">
  5688. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5689. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  5690. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  5691. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  5692. <exception name="IOException" type="java.io.IOException"/>
  5693. <doc>
  5694. <![CDATA[Resolves all symbolic links in the specified path.
  5695. Returns the new path object.]]>
  5696. </doc>
  5697. </method>
  5698. <method name="resolveIntermediate" return="org.apache.hadoop.fs.Path"
  5699. abstract="false" native="false" synchronized="false"
  5700. static="false" final="false" visibility="protected"
  5701. deprecated="not deprecated">
  5702. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5703. <exception name="IOException" type="java.io.IOException"/>
  5704. <doc>
  5705. <![CDATA[Resolves all symbolic links in the specified path leading up
  5706. to, but not including the final path component.
  5707. @param f path to resolve
  5708. @return the new path object.]]>
  5709. </doc>
  5710. </method>
  5711. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  5712. abstract="false" native="false" synchronized="false"
  5713. static="true" final="false" visibility="public"
  5714. deprecated="not deprecated">
  5715. <param name="uri" type="java.net.URI"/>
  5716. <doc>
  5717. <![CDATA[Get the statistics for a particular file system
  5718. @param uri
  5719. the uri to lookup the statistics. Only scheme and authority part
  5720. of the uri are used as the key to store and lookup.
  5721. @return a statistics object]]>
  5722. </doc>
  5723. </method>
  5724. <method name="clearStatistics"
  5725. abstract="false" native="false" synchronized="false"
  5726. static="true" final="false" visibility="public"
  5727. deprecated="not deprecated">
  5728. <doc>
  5729. <![CDATA[Clears all the statistics stored in AbstractFileSystem, for all the file
  5730. systems.]]>
  5731. </doc>
  5732. </method>
  5733. <method name="printStatistics"
  5734. abstract="false" native="false" synchronized="false"
  5735. static="true" final="false" visibility="public"
  5736. deprecated="not deprecated">
  5737. <doc>
  5738. <![CDATA[Prints the statistics to standard output. File System is identified by the
  5739. scheme and authority.]]>
  5740. </doc>
  5741. </method>
  5742. <method name="getAllStatistics" return="java.util.Map"
  5743. abstract="false" native="false" synchronized="false"
  5744. static="true" final="false" visibility="public"
  5745. deprecated="not deprecated">
  5746. <doc>
  5747. <![CDATA[@return Map of uri and statistics for each filesystem instantiated. The uri
  5748. consists of scheme and authority for the filesystem.]]>
  5749. </doc>
  5750. </method>
  5751. <method name="modifyAclEntries"
  5752. abstract="false" native="false" synchronized="false"
  5753. static="false" final="false" visibility="public"
  5754. deprecated="not deprecated">
  5755. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5756. <param name="aclSpec" type="java.util.List"/>
  5757. <exception name="IOException" type="java.io.IOException"/>
  5758. <doc>
  5759. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  5760. entries or modify the permissions on existing ACL entries. All existing
  5761. ACL entries that are not specified in this call are retained without
  5762. changes. (Modifications are merged into the current ACL.)
  5763. @param path Path to modify
  5764. @param aclSpec List<AclEntry> describing modifications
  5765. @throws IOException if an ACL could not be modified]]>
  5766. </doc>
  5767. </method>
  5768. <method name="removeAclEntries"
  5769. abstract="false" native="false" synchronized="false"
  5770. static="false" final="false" visibility="public"
  5771. deprecated="not deprecated">
  5772. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5773. <param name="aclSpec" type="java.util.List"/>
  5774. <exception name="IOException" type="java.io.IOException"/>
  5775. <doc>
  5776. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  5777. retained.
  5778. @param path Path to modify
  5779. @param aclSpec List<AclEntry> describing entries to remove
  5780. @throws IOException if an ACL could not be modified]]>
  5781. </doc>
  5782. </method>
  5783. <method name="removeDefaultAcl"
  5784. abstract="false" native="false" synchronized="false"
  5785. static="false" final="false" visibility="public"
  5786. deprecated="not deprecated">
  5787. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5788. <exception name="IOException" type="java.io.IOException"/>
  5789. <doc>
  5790. <![CDATA[Removes all default ACL entries from files and directories.
  5791. @param path Path to modify
  5792. @throws IOException if an ACL could not be modified]]>
  5793. </doc>
  5794. </method>
  5795. <method name="removeAcl"
  5796. abstract="false" native="false" synchronized="false"
  5797. static="false" final="false" visibility="public"
  5798. deprecated="not deprecated">
  5799. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5800. <exception name="IOException" type="java.io.IOException"/>
  5801. <doc>
  5802. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  5803. for user, group, and others are retained for compatibility with permission
  5804. bits.
  5805. @param path Path to modify
  5806. @throws IOException if an ACL could not be removed]]>
  5807. </doc>
  5808. </method>
  5809. <method name="setAcl"
  5810. abstract="false" native="false" synchronized="false"
  5811. static="false" final="false" visibility="public"
  5812. deprecated="not deprecated">
  5813. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5814. <param name="aclSpec" type="java.util.List"/>
  5815. <exception name="IOException" type="java.io.IOException"/>
  5816. <doc>
  5817. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  5818. entries.
  5819. @param path Path to modify
  5820. @param aclSpec List<AclEntry> describing modifications, must include entries
  5821. for user, group, and others for compatibility with permission bits.
  5822. @throws IOException if an ACL could not be modified]]>
  5823. </doc>
  5824. </method>
  5825. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  5826. abstract="false" native="false" synchronized="false"
  5827. static="false" final="false" visibility="public"
  5828. deprecated="not deprecated">
  5829. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5830. <exception name="IOException" type="java.io.IOException"/>
  5831. <doc>
  5832. <![CDATA[Gets the ACLs of files and directories.
  5833. @param path Path to get
  5834. @return RemoteIterator<AclStatus> which returns each AclStatus
  5835. @throws IOException if an ACL could not be read]]>
  5836. </doc>
  5837. </method>
  5838. <method name="setXAttr"
  5839. abstract="false" native="false" synchronized="false"
  5840. static="false" final="false" visibility="public"
  5841. deprecated="not deprecated">
  5842. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5843. <param name="name" type="java.lang.String"/>
  5844. <param name="value" type="byte[]"/>
  5845. <exception name="IOException" type="java.io.IOException"/>
  5846. <doc>
  5847. <![CDATA[Set an xattr of a file or directory.
  5848. The name must be prefixed with the namespace followed by ".". For example,
  5849. "user.attr".
  5850. <p/>
  5851. Refer to the HDFS extended attributes user documentation for details.
  5852. @param path Path to modify
  5853. @param name xattr name.
  5854. @param value xattr value.
  5855. @throws IOException]]>
  5856. </doc>
  5857. </method>
  5858. <method name="setXAttr"
  5859. abstract="false" native="false" synchronized="false"
  5860. static="false" final="false" visibility="public"
  5861. deprecated="not deprecated">
  5862. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5863. <param name="name" type="java.lang.String"/>
  5864. <param name="value" type="byte[]"/>
  5865. <param name="flag" type="java.util.EnumSet"/>
  5866. <exception name="IOException" type="java.io.IOException"/>
  5867. <doc>
  5868. <![CDATA[Set an xattr of a file or directory.
  5869. The name must be prefixed with the namespace followed by ".". For example,
  5870. "user.attr".
  5871. <p/>
  5872. Refer to the HDFS extended attributes user documentation for details.
  5873. @param path Path to modify
  5874. @param name xattr name.
  5875. @param value xattr value.
  5876. @param flag xattr set flag
  5877. @throws IOException]]>
  5878. </doc>
  5879. </method>
  5880. <method name="getXAttr" return="byte[]"
  5881. abstract="false" native="false" synchronized="false"
  5882. static="false" final="false" visibility="public"
  5883. deprecated="not deprecated">
  5884. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5885. <param name="name" type="java.lang.String"/>
  5886. <exception name="IOException" type="java.io.IOException"/>
  5887. <doc>
  5888. <![CDATA[Get an xattr for a file or directory.
  5889. The name must be prefixed with the namespace followed by ".". For example,
  5890. "user.attr".
  5891. <p/>
  5892. Refer to the HDFS extended attributes user documentation for details.
  5893. @param path Path to get extended attribute
  5894. @param name xattr name.
  5895. @return byte[] xattr value.
  5896. @throws IOException]]>
  5897. </doc>
  5898. </method>
  5899. <method name="getXAttrs" return="java.util.Map"
  5900. abstract="false" native="false" synchronized="false"
  5901. static="false" final="false" visibility="public"
  5902. deprecated="not deprecated">
  5903. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5904. <exception name="IOException" type="java.io.IOException"/>
  5905. <doc>
  5906. <![CDATA[Get all of the xattrs for a file or directory.
  5907. Only those xattrs for which the logged-in user has permissions to view
  5908. are returned.
  5909. <p/>
  5910. Refer to the HDFS extended attributes user documentation for details.
  5911. @param path Path to get extended attributes
  5912. @return Map<String, byte[]> describing the XAttrs of the file or directory
  5913. @throws IOException]]>
  5914. </doc>
  5915. </method>
  5916. <method name="getXAttrs" return="java.util.Map"
  5917. abstract="false" native="false" synchronized="false"
  5918. static="false" final="false" visibility="public"
  5919. deprecated="not deprecated">
  5920. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5921. <param name="names" type="java.util.List"/>
  5922. <exception name="IOException" type="java.io.IOException"/>
  5923. <doc>
  5924. <![CDATA[Get all of the xattrs for a file or directory.
  5925. Only those xattrs for which the logged-in user has permissions to view
  5926. are returned.
  5927. <p/>
  5928. Refer to the HDFS extended attributes user documentation for details.
  5929. @param path Path to get extended attributes
  5930. @param names XAttr names.
  5931. @return Map<String, byte[]> describing the XAttrs of the file or directory
  5932. @throws IOException]]>
  5933. </doc>
  5934. </method>
  5935. <method name="removeXAttr"
  5936. abstract="false" native="false" synchronized="false"
  5937. static="false" final="false" visibility="public"
  5938. deprecated="not deprecated">
  5939. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5940. <param name="name" type="java.lang.String"/>
  5941. <exception name="IOException" type="java.io.IOException"/>
  5942. <doc>
  5943. <![CDATA[Remove an xattr of a file or directory.
  5944. The name must be prefixed with the namespace followed by ".". For example,
  5945. "user.attr".
  5946. <p/>
  5947. Refer to the HDFS extended attributes user documentation for details.
  5948. @param path Path to remove extended attribute
  5949. @param name xattr name
  5950. @throws IOException]]>
  5951. </doc>
  5952. </method>
  5953. <method name="listXAttrs" return="java.util.List"
  5954. abstract="false" native="false" synchronized="false"
  5955. static="false" final="false" visibility="public"
  5956. deprecated="not deprecated">
  5957. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5958. <exception name="IOException" type="java.io.IOException"/>
  5959. <doc>
  5960. <![CDATA[Get all of the xattr names for a file or directory.
  5961. Only those xattr names which the logged-in user has permissions to view
  5962. are returned.
  5963. <p/>
  5964. Refer to the HDFS extended attributes user documentation for details.
  5965. @param path Path to get extended attributes
  5966. @return List<String> of the XAttr names of the file or directory
  5967. @throws IOException]]>
  5968. </doc>
  5969. </method>
  5970. <field name="LOG" type="org.apache.commons.logging.Log"
  5971. transient="false" volatile="false"
  5972. static="true" final="true" visibility="public"
  5973. deprecated="not deprecated">
  5974. </field>
  5975. <field name="DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  5976. transient="false" volatile="false"
  5977. static="true" final="true" visibility="public"
  5978. deprecated="not deprecated">
  5979. <doc>
  5980. <![CDATA[Default permission for directory and symlink
  5981. In previous versions, this default permission was also used to
  5982. create files, so files created end up with ugo+x permission.
  5983. See HADOOP-9155 for detail.
  5984. Two new constants are added to solve this, please use
  5985. {@link FileContext#DIR_DEFAULT_PERM} for directory, and use
  5986. {@link FileContext#FILE_DEFAULT_PERM} for file.
  5987. This constant is kept for compatibility.]]>
  5988. </doc>
  5989. </field>
  5990. <field name="DIR_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  5991. transient="false" volatile="false"
  5992. static="true" final="true" visibility="public"
  5993. deprecated="not deprecated">
  5994. <doc>
  5995. <![CDATA[Default permission for directory]]>
  5996. </doc>
  5997. </field>
  5998. <field name="FILE_DEFAULT_PERM" type="org.apache.hadoop.fs.permission.FsPermission"
  5999. transient="false" volatile="false"
  6000. static="true" final="true" visibility="public"
  6001. deprecated="not deprecated">
  6002. <doc>
  6003. <![CDATA[Default permission for file]]>
  6004. </doc>
  6005. </field>
  6006. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  6007. transient="false" volatile="false"
  6008. static="true" final="true" visibility="public"
  6009. deprecated="not deprecated">
  6010. <doc>
  6011. <![CDATA[Priority of the FileContext shutdown hook.]]>
  6012. </doc>
  6013. </field>
  6014. <doc>
  6015. <![CDATA[The FileContext class provides an interface to the application writer for
  6016. using the Hadoop file system.
  6017. It provides a set of methods for the usual operation: create, open,
  6018. list, etc
  6019. <p>
  6020. <b> *** Path Names *** </b>
  6021. <p>
  6022. The Hadoop file system supports a URI name space and URI names.
  6023. It offers a forest of file systems that can be referenced using fully
  6024. qualified URIs.
  6025. Two common Hadoop file systems implementations are
  6026. <ul>
  6027. <li> the local file system: file:///path
  6028. <li> the hdfs file system hdfs://nnAddress:nnPort/path
  6029. </ul>
  6030. While URI names are very flexible, it requires knowing the name or address
  6031. of the server. For convenience one often wants to access the default system
  6032. in one's environment without knowing its name/address. This has an
  6033. additional benefit that it allows one to change one's default fs
  6034. (e.g. admin moves application from cluster1 to cluster2).
  6035. <p>
  6036. To facilitate this, Hadoop supports a notion of a default file system.
  6037. The user can set his default file system, although this is
  6038. typically set up for you in your environment via your default config.
  6039. A default file system implies a default scheme and authority; slash-relative
  6040. names (such as /for/bar) are resolved relative to that default FS.
  6041. Similarly a user can also have working-directory-relative names (i.e. names
  6042. not starting with a slash). While the working directory is generally in the
  6043. same default FS, the wd can be in a different FS.
  6044. <p>
  6045. Hence Hadoop path names can be one of:
  6046. <ul>
  6047. <li> fully qualified URI: scheme://authority/path
  6048. <li> slash relative names: /path relative to the default file system
  6049. <li> wd-relative names: path relative to the working dir
  6050. </ul>
  6051. Relative paths with scheme (scheme:foo/bar) are illegal.
  6052. <p>
  6053. <b>****The Role of the FileContext and configuration defaults****</b>
  6054. <p>
  6055. The FileContext provides file namespace context for resolving file names;
  6056. it also contains the umask for permissions, In that sense it is like the
  6057. per-process file-related state in Unix system.
  6058. These two properties
  6059. <ul>
  6060. <li> default file system i.e your slash)
  6061. <li> umask
  6062. </ul>
  6063. in general, are obtained from the default configuration file
  6064. in your environment, (@see {@link Configuration}).
  6065. No other configuration parameters are obtained from the default config as
  6066. far as the file context layer is concerned. All file system instances
  6067. (i.e. deployments of file systems) have default properties; we call these
  6068. server side (SS) defaults. Operation like create allow one to select many
  6069. properties: either pass them in as explicit parameters or use
  6070. the SS properties.
  6071. <p>
  6072. The file system related SS defaults are
  6073. <ul>
  6074. <li> the home directory (default is "/user/userName")
  6075. <li> the initial wd (only for local fs)
  6076. <li> replication factor
  6077. <li> block size
  6078. <li> buffer size
  6079. <li> encryptDataTransfer
  6080. <li> checksum option. (checksumType and bytesPerChecksum)
  6081. </ul>
  6082. <p>
  6083. <b> *** Usage Model for the FileContext class *** </b>
  6084. <p>
  6085. Example 1: use the default config read from the $HADOOP_CONFIG/core.xml.
  6086. Unspecified values come from core-defaults.xml in the release jar.
  6087. <ul>
  6088. <li> myFContext = FileContext.getFileContext(); // uses the default config
  6089. // which has your default FS
  6090. <li> myFContext.create(path, ...);
  6091. <li> myFContext.setWorkingDir(path)
  6092. <li> myFContext.open (path, ...);
  6093. </ul>
  6094. Example 2: Get a FileContext with a specific URI as the default FS
  6095. <ul>
  6096. <li> myFContext = FileContext.getFileContext(URI)
  6097. <li> myFContext.create(path, ...);
  6098. ...
  6099. </ul>
  6100. Example 3: FileContext with local file system as the default
  6101. <ul>
  6102. <li> myFContext = FileContext.getLocalFSFileContext()
  6103. <li> myFContext.create(path, ...);
  6104. <li> ...
  6105. </ul>
  6106. Example 4: Use a specific config, ignoring $HADOOP_CONFIG
  6107. Generally you should not need use a config unless you are doing
  6108. <ul>
  6109. <li> configX = someConfigSomeOnePassedToYou.
  6110. <li> myFContext = getFileContext(configX); // configX is not changed,
  6111. // is passed down
  6112. <li> myFContext.create(path, ...);
  6113. <li>...
  6114. </ul>]]>
  6115. </doc>
  6116. </class>
  6117. <!-- end class org.apache.hadoop.fs.FileContext -->
  6118. <!-- start class org.apache.hadoop.fs.FileStatus -->
  6119. <class name="FileStatus" extends="java.lang.Object"
  6120. abstract="false"
  6121. static="false" final="false" visibility="public"
  6122. deprecated="not deprecated">
  6123. <implements name="org.apache.hadoop.io.Writable"/>
  6124. <implements name="java.lang.Comparable"/>
  6125. <constructor name="FileStatus"
  6126. static="false" final="false" visibility="public"
  6127. deprecated="not deprecated">
  6128. </constructor>
  6129. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  6130. static="false" final="false" visibility="public"
  6131. deprecated="not deprecated">
  6132. </constructor>
  6133. <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"
  6134. static="false" final="false" visibility="public"
  6135. deprecated="not deprecated">
  6136. <doc>
  6137. <![CDATA[Constructor for file systems on which symbolic links are not supported]]>
  6138. </doc>
  6139. </constructor>
  6140. <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"
  6141. static="false" final="false" visibility="public"
  6142. deprecated="not deprecated">
  6143. </constructor>
  6144. <constructor name="FileStatus" type="org.apache.hadoop.fs.FileStatus"
  6145. static="false" final="false" visibility="public"
  6146. deprecated="not deprecated">
  6147. <exception name="IOException" type="java.io.IOException"/>
  6148. <doc>
  6149. <![CDATA[Copy constructor.
  6150. @param other FileStatus to copy]]>
  6151. </doc>
  6152. </constructor>
  6153. <method name="getLen" return="long"
  6154. abstract="false" native="false" synchronized="false"
  6155. static="false" final="false" visibility="public"
  6156. deprecated="not deprecated">
  6157. <doc>
  6158. <![CDATA[Get the length of this file, in bytes.
  6159. @return the length of this file, in bytes.]]>
  6160. </doc>
  6161. </method>
  6162. <method name="isFile" return="boolean"
  6163. abstract="false" native="false" synchronized="false"
  6164. static="false" final="false" visibility="public"
  6165. deprecated="not deprecated">
  6166. <doc>
  6167. <![CDATA[Is this a file?
  6168. @return true if this is a file]]>
  6169. </doc>
  6170. </method>
  6171. <method name="isDirectory" return="boolean"
  6172. abstract="false" native="false" synchronized="false"
  6173. static="false" final="false" visibility="public"
  6174. deprecated="not deprecated">
  6175. <doc>
  6176. <![CDATA[Is this a directory?
  6177. @return true if this is a directory]]>
  6178. </doc>
  6179. </method>
  6180. <method name="isDir" return="boolean"
  6181. abstract="false" native="false" synchronized="false"
  6182. static="false" final="false" visibility="public"
  6183. deprecated="Use {@link FileStatus#isFile()},
  6184. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  6185. instead.">
  6186. <doc>
  6187. <![CDATA[Old interface, instead use the explicit {@link FileStatus#isFile()},
  6188. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  6189. @return true if this is a directory.
  6190. @deprecated Use {@link FileStatus#isFile()},
  6191. {@link FileStatus#isDirectory()}, and {@link FileStatus#isSymlink()}
  6192. instead.]]>
  6193. </doc>
  6194. </method>
  6195. <method name="isSymlink" return="boolean"
  6196. abstract="false" native="false" synchronized="false"
  6197. static="false" final="false" visibility="public"
  6198. deprecated="not deprecated">
  6199. <doc>
  6200. <![CDATA[Is this a symbolic link?
  6201. @return true if this is a symbolic link]]>
  6202. </doc>
  6203. </method>
  6204. <method name="getBlockSize" return="long"
  6205. abstract="false" native="false" synchronized="false"
  6206. static="false" final="false" visibility="public"
  6207. deprecated="not deprecated">
  6208. <doc>
  6209. <![CDATA[Get the block size of the file.
  6210. @return the number of bytes]]>
  6211. </doc>
  6212. </method>
  6213. <method name="getReplication" return="short"
  6214. abstract="false" native="false" synchronized="false"
  6215. static="false" final="false" visibility="public"
  6216. deprecated="not deprecated">
  6217. <doc>
  6218. <![CDATA[Get the replication factor of a file.
  6219. @return the replication factor of a file.]]>
  6220. </doc>
  6221. </method>
  6222. <method name="getModificationTime" return="long"
  6223. abstract="false" native="false" synchronized="false"
  6224. static="false" final="false" visibility="public"
  6225. deprecated="not deprecated">
  6226. <doc>
  6227. <![CDATA[Get the modification time of the file.
  6228. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  6229. </doc>
  6230. </method>
  6231. <method name="getAccessTime" return="long"
  6232. abstract="false" native="false" synchronized="false"
  6233. static="false" final="false" visibility="public"
  6234. deprecated="not deprecated">
  6235. <doc>
  6236. <![CDATA[Get the access time of the file.
  6237. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  6238. </doc>
  6239. </method>
  6240. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  6241. abstract="false" native="false" synchronized="false"
  6242. static="false" final="false" visibility="public"
  6243. deprecated="not deprecated">
  6244. <doc>
  6245. <![CDATA[Get FsPermission associated with the file.
  6246. @return permssion. If a filesystem does not have a notion of permissions
  6247. or if permissions could not be determined, then default
  6248. permissions equivalent of "rwxrwxrwx" is returned.]]>
  6249. </doc>
  6250. </method>
  6251. <method name="isEncrypted" return="boolean"
  6252. abstract="false" native="false" synchronized="false"
  6253. static="false" final="false" visibility="public"
  6254. deprecated="not deprecated">
  6255. <doc>
  6256. <![CDATA[Tell whether the underlying file or directory is encrypted or not.
  6257. @return true if the underlying file is encrypted.]]>
  6258. </doc>
  6259. </method>
  6260. <method name="getOwner" return="java.lang.String"
  6261. abstract="false" native="false" synchronized="false"
  6262. static="false" final="false" visibility="public"
  6263. deprecated="not deprecated">
  6264. <doc>
  6265. <![CDATA[Get the owner of the file.
  6266. @return owner of the file. The string could be empty if there is no
  6267. notion of owner of a file in a filesystem or if it could not
  6268. be determined (rare).]]>
  6269. </doc>
  6270. </method>
  6271. <method name="getGroup" return="java.lang.String"
  6272. abstract="false" native="false" synchronized="false"
  6273. static="false" final="false" visibility="public"
  6274. deprecated="not deprecated">
  6275. <doc>
  6276. <![CDATA[Get the group associated with the file.
  6277. @return group for the file. The string could be empty if there is no
  6278. notion of group of a file in a filesystem or if it could not
  6279. be determined (rare).]]>
  6280. </doc>
  6281. </method>
  6282. <method name="getPath" return="org.apache.hadoop.fs.Path"
  6283. abstract="false" native="false" synchronized="false"
  6284. static="false" final="false" visibility="public"
  6285. deprecated="not deprecated">
  6286. </method>
  6287. <method name="setPath"
  6288. abstract="false" native="false" synchronized="false"
  6289. static="false" final="false" visibility="public"
  6290. deprecated="not deprecated">
  6291. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6292. </method>
  6293. <method name="setPermission"
  6294. abstract="false" native="false" synchronized="false"
  6295. static="false" final="false" visibility="protected"
  6296. deprecated="not deprecated">
  6297. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6298. <doc>
  6299. <![CDATA[Sets permission.
  6300. @param permission if permission is null, default value is set]]>
  6301. </doc>
  6302. </method>
  6303. <method name="setOwner"
  6304. abstract="false" native="false" synchronized="false"
  6305. static="false" final="false" visibility="protected"
  6306. deprecated="not deprecated">
  6307. <param name="owner" type="java.lang.String"/>
  6308. <doc>
  6309. <![CDATA[Sets owner.
  6310. @param owner if it is null, default value is set]]>
  6311. </doc>
  6312. </method>
  6313. <method name="setGroup"
  6314. abstract="false" native="false" synchronized="false"
  6315. static="false" final="false" visibility="protected"
  6316. deprecated="not deprecated">
  6317. <param name="group" type="java.lang.String"/>
  6318. <doc>
  6319. <![CDATA[Sets group.
  6320. @param group if it is null, default value is set]]>
  6321. </doc>
  6322. </method>
  6323. <method name="getSymlink" return="org.apache.hadoop.fs.Path"
  6324. abstract="false" native="false" synchronized="false"
  6325. static="false" final="false" visibility="public"
  6326. deprecated="not deprecated">
  6327. <exception name="IOException" type="java.io.IOException"/>
  6328. <doc>
  6329. <![CDATA[@return The contents of the symbolic link.]]>
  6330. </doc>
  6331. </method>
  6332. <method name="setSymlink"
  6333. abstract="false" native="false" synchronized="false"
  6334. static="false" final="false" visibility="public"
  6335. deprecated="not deprecated">
  6336. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6337. </method>
  6338. <method name="write"
  6339. abstract="false" native="false" synchronized="false"
  6340. static="false" final="false" visibility="public"
  6341. deprecated="not deprecated">
  6342. <param name="out" type="java.io.DataOutput"/>
  6343. <exception name="IOException" type="java.io.IOException"/>
  6344. </method>
  6345. <method name="readFields"
  6346. abstract="false" native="false" synchronized="false"
  6347. static="false" final="false" visibility="public"
  6348. deprecated="not deprecated">
  6349. <param name="in" type="java.io.DataInput"/>
  6350. <exception name="IOException" type="java.io.IOException"/>
  6351. </method>
  6352. <method name="compareTo" return="int"
  6353. abstract="false" native="false" synchronized="false"
  6354. static="false" final="false" visibility="public"
  6355. deprecated="not deprecated">
  6356. <param name="o" type="java.lang.Object"/>
  6357. <doc>
  6358. <![CDATA[Compare this object to another object
  6359. @param o the object to be compared.
  6360. @return a negative integer, zero, or a positive integer as this object
  6361. is less than, equal to, or greater than the specified object.
  6362. @throws ClassCastException if the specified object's is not of
  6363. type FileStatus]]>
  6364. </doc>
  6365. </method>
  6366. <method name="equals" return="boolean"
  6367. abstract="false" native="false" synchronized="false"
  6368. static="false" final="false" visibility="public"
  6369. deprecated="not deprecated">
  6370. <param name="o" type="java.lang.Object"/>
  6371. <doc>
  6372. <![CDATA[Compare if this object is equal to another object
  6373. @param o the object to be compared.
  6374. @return true if two file status has the same path name; false if not.]]>
  6375. </doc>
  6376. </method>
  6377. <method name="hashCode" return="int"
  6378. abstract="false" native="false" synchronized="false"
  6379. static="false" final="false" visibility="public"
  6380. deprecated="not deprecated">
  6381. <doc>
  6382. <![CDATA[Returns a hash code value for the object, which is defined as
  6383. the hash code of the path name.
  6384. @return a hash code value for the path name.]]>
  6385. </doc>
  6386. </method>
  6387. <method name="toString" return="java.lang.String"
  6388. abstract="false" native="false" synchronized="false"
  6389. static="false" final="false" visibility="public"
  6390. deprecated="not deprecated">
  6391. </method>
  6392. <doc>
  6393. <![CDATA[Interface that represents the client side information for a file.]]>
  6394. </doc>
  6395. </class>
  6396. <!-- end class org.apache.hadoop.fs.FileStatus -->
  6397. <!-- start class org.apache.hadoop.fs.FileSystem -->
  6398. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  6399. abstract="true"
  6400. static="false" final="false" visibility="public"
  6401. deprecated="not deprecated">
  6402. <implements name="java.io.Closeable"/>
  6403. <constructor name="FileSystem"
  6404. static="false" final="false" visibility="protected"
  6405. deprecated="not deprecated">
  6406. </constructor>
  6407. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  6408. abstract="false" native="false" synchronized="false"
  6409. static="true" final="false" visibility="public"
  6410. deprecated="not deprecated">
  6411. <param name="uri" type="java.net.URI"/>
  6412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6413. <param name="user" type="java.lang.String"/>
  6414. <exception name="IOException" type="java.io.IOException"/>
  6415. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  6416. <doc>
  6417. <![CDATA[Get a filesystem instance based on the uri, the passed
  6418. configuration and the user
  6419. @param uri of the filesystem
  6420. @param conf the configuration to use
  6421. @param user to perform the get as
  6422. @return the filesystem instance
  6423. @throws IOException
  6424. @throws InterruptedException]]>
  6425. </doc>
  6426. </method>
  6427. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  6428. abstract="false" native="false" synchronized="false"
  6429. static="true" final="false" visibility="public"
  6430. deprecated="not deprecated">
  6431. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6432. <exception name="IOException" type="java.io.IOException"/>
  6433. <doc>
  6434. <![CDATA[Returns the configured filesystem implementation.
  6435. @param conf the configuration to use]]>
  6436. </doc>
  6437. </method>
  6438. <method name="getDefaultUri" return="java.net.URI"
  6439. abstract="false" native="false" synchronized="false"
  6440. static="true" final="false" visibility="public"
  6441. deprecated="not deprecated">
  6442. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6443. <doc>
  6444. <![CDATA[Get the default filesystem URI from a configuration.
  6445. @param conf the configuration to use
  6446. @return the uri of the default filesystem]]>
  6447. </doc>
  6448. </method>
  6449. <method name="setDefaultUri"
  6450. abstract="false" native="false" synchronized="false"
  6451. static="true" final="false" visibility="public"
  6452. deprecated="not deprecated">
  6453. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6454. <param name="uri" type="java.net.URI"/>
  6455. <doc>
  6456. <![CDATA[Set the default filesystem URI in a configuration.
  6457. @param conf the configuration to alter
  6458. @param uri the new default filesystem uri]]>
  6459. </doc>
  6460. </method>
  6461. <method name="setDefaultUri"
  6462. abstract="false" native="false" synchronized="false"
  6463. static="true" final="false" visibility="public"
  6464. deprecated="not deprecated">
  6465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6466. <param name="uri" type="java.lang.String"/>
  6467. <doc>
  6468. <![CDATA[Set the default filesystem URI in a configuration.
  6469. @param conf the configuration to alter
  6470. @param uri the new default filesystem uri]]>
  6471. </doc>
  6472. </method>
  6473. <method name="initialize"
  6474. abstract="false" native="false" synchronized="false"
  6475. static="false" final="false" visibility="public"
  6476. deprecated="not deprecated">
  6477. <param name="name" type="java.net.URI"/>
  6478. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6479. <exception name="IOException" type="java.io.IOException"/>
  6480. <doc>
  6481. <![CDATA[Called after a new FileSystem instance is constructed.
  6482. @param name a uri whose authority section names the host, port, etc.
  6483. for this FileSystem
  6484. @param conf the configuration]]>
  6485. </doc>
  6486. </method>
  6487. <method name="getScheme" return="java.lang.String"
  6488. abstract="false" native="false" synchronized="false"
  6489. static="false" final="false" visibility="public"
  6490. deprecated="not deprecated">
  6491. <doc>
  6492. <![CDATA[Return the protocol scheme for the FileSystem.
  6493. <p/>
  6494. This implementation throws an <code>UnsupportedOperationException</code>.
  6495. @return the protocol scheme for the FileSystem.]]>
  6496. </doc>
  6497. </method>
  6498. <method name="getUri" return="java.net.URI"
  6499. abstract="true" native="false" synchronized="false"
  6500. static="false" final="false" visibility="public"
  6501. deprecated="not deprecated">
  6502. <doc>
  6503. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  6504. </doc>
  6505. </method>
  6506. <method name="getCanonicalUri" return="java.net.URI"
  6507. abstract="false" native="false" synchronized="false"
  6508. static="false" final="false" visibility="protected"
  6509. deprecated="not deprecated">
  6510. <doc>
  6511. <![CDATA[Return a canonicalized form of this FileSystem's URI.
  6512. The default implementation simply calls {@link #canonicalizeUri(URI)}
  6513. on the filesystem's own URI, so subclasses typically only need to
  6514. implement that method.
  6515. @see #canonicalizeUri(URI)]]>
  6516. </doc>
  6517. </method>
  6518. <method name="canonicalizeUri" return="java.net.URI"
  6519. abstract="false" native="false" synchronized="false"
  6520. static="false" final="false" visibility="protected"
  6521. deprecated="not deprecated">
  6522. <param name="uri" type="java.net.URI"/>
  6523. <doc>
  6524. <![CDATA[Canonicalize the given URI.
  6525. This is filesystem-dependent, but may for example consist of
  6526. canonicalizing the hostname using DNS and adding the default
  6527. port if not specified.
  6528. The default implementation simply fills in the default port if
  6529. not specified and if the filesystem has a default port.
  6530. @return URI
  6531. @see NetUtils#getCanonicalUri(URI, int)]]>
  6532. </doc>
  6533. </method>
  6534. <method name="getDefaultPort" return="int"
  6535. abstract="false" native="false" synchronized="false"
  6536. static="false" final="false" visibility="protected"
  6537. deprecated="not deprecated">
  6538. <doc>
  6539. <![CDATA[Get the default port for this file system.
  6540. @return the default port or 0 if there isn't one]]>
  6541. </doc>
  6542. </method>
  6543. <method name="getFSofPath" return="org.apache.hadoop.fs.FileSystem"
  6544. abstract="false" native="false" synchronized="false"
  6545. static="true" final="false" visibility="protected"
  6546. deprecated="not deprecated">
  6547. <param name="absOrFqPath" type="org.apache.hadoop.fs.Path"/>
  6548. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6549. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  6550. <exception name="IOException" type="java.io.IOException"/>
  6551. </method>
  6552. <method name="getName" return="java.lang.String"
  6553. abstract="false" native="false" synchronized="false"
  6554. static="false" final="false" visibility="public"
  6555. deprecated="call #getUri() instead.">
  6556. <doc>
  6557. <![CDATA[@deprecated call #getUri() instead.]]>
  6558. </doc>
  6559. </method>
  6560. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  6561. abstract="false" native="false" synchronized="false"
  6562. static="true" final="false" visibility="public"
  6563. deprecated="call #get(URI,Configuration) instead.">
  6564. <param name="name" type="java.lang.String"/>
  6565. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6566. <exception name="IOException" type="java.io.IOException"/>
  6567. <doc>
  6568. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  6569. </doc>
  6570. </method>
  6571. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  6572. abstract="false" native="false" synchronized="false"
  6573. static="true" final="false" visibility="public"
  6574. deprecated="not deprecated">
  6575. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6576. <exception name="IOException" type="java.io.IOException"/>
  6577. <doc>
  6578. <![CDATA[Get the local file system.
  6579. @param conf the configuration to configure the file system with
  6580. @return a LocalFileSystem]]>
  6581. </doc>
  6582. </method>
  6583. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  6584. abstract="false" native="false" synchronized="false"
  6585. static="true" final="false" visibility="public"
  6586. deprecated="not deprecated">
  6587. <param name="uri" type="java.net.URI"/>
  6588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6589. <exception name="IOException" type="java.io.IOException"/>
  6590. <doc>
  6591. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  6592. of the URI determines a configuration property name,
  6593. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  6594. The entire URI is passed to the FileSystem instance's initialize method.]]>
  6595. </doc>
  6596. </method>
  6597. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  6598. abstract="false" native="false" synchronized="false"
  6599. static="true" final="false" visibility="public"
  6600. deprecated="not deprecated">
  6601. <param name="uri" type="java.net.URI"/>
  6602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6603. <param name="user" type="java.lang.String"/>
  6604. <exception name="IOException" type="java.io.IOException"/>
  6605. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  6606. <doc>
  6607. <![CDATA[Returns the FileSystem for this URI's scheme and authority and the
  6608. passed user. Internally invokes {@link #newInstance(URI, Configuration)}
  6609. @param uri of the filesystem
  6610. @param conf the configuration to use
  6611. @param user to perform the get as
  6612. @return filesystem instance
  6613. @throws IOException
  6614. @throws InterruptedException]]>
  6615. </doc>
  6616. </method>
  6617. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  6618. abstract="false" native="false" synchronized="false"
  6619. static="true" final="false" visibility="public"
  6620. deprecated="not deprecated">
  6621. <param name="uri" type="java.net.URI"/>
  6622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6623. <exception name="IOException" type="java.io.IOException"/>
  6624. <doc>
  6625. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  6626. of the URI determines a configuration property name,
  6627. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  6628. The entire URI is passed to the FileSystem instance's initialize method.
  6629. This always returns a new FileSystem object.]]>
  6630. </doc>
  6631. </method>
  6632. <method name="newInstance" return="org.apache.hadoop.fs.FileSystem"
  6633. abstract="false" native="false" synchronized="false"
  6634. static="true" final="false" visibility="public"
  6635. deprecated="not deprecated">
  6636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6637. <exception name="IOException" type="java.io.IOException"/>
  6638. <doc>
  6639. <![CDATA[Returns a unique configured filesystem implementation.
  6640. This always returns a new FileSystem object.
  6641. @param conf the configuration to use]]>
  6642. </doc>
  6643. </method>
  6644. <method name="newInstanceLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  6645. abstract="false" native="false" synchronized="false"
  6646. static="true" final="false" visibility="public"
  6647. deprecated="not deprecated">
  6648. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6649. <exception name="IOException" type="java.io.IOException"/>
  6650. <doc>
  6651. <![CDATA[Get a unique local file system object
  6652. @param conf the configuration to configure the file system with
  6653. @return a LocalFileSystem
  6654. This always returns a new FileSystem object.]]>
  6655. </doc>
  6656. </method>
  6657. <method name="closeAll"
  6658. abstract="false" native="false" synchronized="false"
  6659. static="true" final="false" visibility="public"
  6660. deprecated="not deprecated">
  6661. <exception name="IOException" type="java.io.IOException"/>
  6662. <doc>
  6663. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  6664. used anymore.
  6665. @throws IOException]]>
  6666. </doc>
  6667. </method>
  6668. <method name="closeAllForUGI"
  6669. abstract="false" native="false" synchronized="false"
  6670. static="true" final="false" visibility="public"
  6671. deprecated="not deprecated">
  6672. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  6673. <exception name="IOException" type="java.io.IOException"/>
  6674. <doc>
  6675. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  6676. are not used anymore.
  6677. @param ugi user group info to close
  6678. @throws IOException]]>
  6679. </doc>
  6680. </method>
  6681. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6682. abstract="false" native="false" synchronized="false"
  6683. static="false" final="false" visibility="public"
  6684. deprecated="not deprecated">
  6685. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6686. <doc>
  6687. <![CDATA[Make sure that a path specifies a FileSystem.
  6688. @param path to use]]>
  6689. </doc>
  6690. </method>
  6691. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6692. abstract="false" native="false" synchronized="false"
  6693. static="true" final="false" visibility="public"
  6694. deprecated="not deprecated">
  6695. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6696. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6697. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6698. <exception name="IOException" type="java.io.IOException"/>
  6699. <doc>
  6700. <![CDATA[create a file with the provided permission
  6701. The permission of the file is set to be the provided permission as in
  6702. setPermission, not permission&~umask
  6703. It is implemented using two RPCs. It is understood that it is inefficient,
  6704. but the implementation is thread-safe. The other option is to change the
  6705. value of umask in configuration to be 0, but it is not thread-safe.
  6706. @param fs file system handle
  6707. @param file the name of the file to be created
  6708. @param permission the permission of the file
  6709. @return an output stream
  6710. @throws IOException]]>
  6711. </doc>
  6712. </method>
  6713. <method name="mkdirs" return="boolean"
  6714. abstract="false" native="false" synchronized="false"
  6715. static="true" final="false" visibility="public"
  6716. deprecated="not deprecated">
  6717. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6718. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6719. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6720. <exception name="IOException" type="java.io.IOException"/>
  6721. <doc>
  6722. <![CDATA[create a directory with the provided permission
  6723. The permission of the directory is set to be the provided permission as in
  6724. setPermission, not permission&~umask
  6725. @see #create(FileSystem, Path, FsPermission)
  6726. @param fs file system handle
  6727. @param dir the name of the directory to be created
  6728. @param permission the permission of the directory
  6729. @return true if the directory creation succeeds; false otherwise
  6730. @throws IOException]]>
  6731. </doc>
  6732. </method>
  6733. <method name="checkPath"
  6734. abstract="false" native="false" synchronized="false"
  6735. static="false" final="false" visibility="protected"
  6736. deprecated="not deprecated">
  6737. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6738. <doc>
  6739. <![CDATA[Check that a Path belongs to this FileSystem.
  6740. @param path to check]]>
  6741. </doc>
  6742. </method>
  6743. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6744. abstract="false" native="false" synchronized="false"
  6745. static="false" final="false" visibility="public"
  6746. deprecated="not deprecated">
  6747. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  6748. <param name="start" type="long"/>
  6749. <param name="len" type="long"/>
  6750. <exception name="IOException" type="java.io.IOException"/>
  6751. <doc>
  6752. <![CDATA[Return an array containing hostnames, offset and size of
  6753. portions of the given file. For a nonexistent
  6754. file or regions, null will be returned.
  6755. This call is most helpful with DFS, where it returns
  6756. hostnames of machines that contain the given file.
  6757. The FileSystem will simply return an elt containing 'localhost'.
  6758. @param file FilesStatus to get data from
  6759. @param start offset into the given file
  6760. @param len length for which to get locations for]]>
  6761. </doc>
  6762. </method>
  6763. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6764. abstract="false" native="false" synchronized="false"
  6765. static="false" final="false" visibility="public"
  6766. deprecated="not deprecated">
  6767. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6768. <param name="start" type="long"/>
  6769. <param name="len" type="long"/>
  6770. <exception name="IOException" type="java.io.IOException"/>
  6771. <doc>
  6772. <![CDATA[Return an array containing hostnames, offset and size of
  6773. portions of the given file. For a nonexistent
  6774. file or regions, null will be returned.
  6775. This call is most helpful with DFS, where it returns
  6776. hostnames of machines that contain the given file.
  6777. The FileSystem will simply return an elt containing 'localhost'.
  6778. @param p path is used to identify an FS since an FS could have
  6779. another FS that it could be delegating the call to
  6780. @param start offset into the given file
  6781. @param len length for which to get locations for]]>
  6782. </doc>
  6783. </method>
  6784. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  6785. abstract="false" native="false" synchronized="false"
  6786. static="false" final="false" visibility="public"
  6787. deprecated="use {@link #getServerDefaults(Path)} instead">
  6788. <exception name="IOException" type="java.io.IOException"/>
  6789. <doc>
  6790. <![CDATA[Return a set of server default configuration values
  6791. @return server default configuration values
  6792. @throws IOException
  6793. @deprecated use {@link #getServerDefaults(Path)} instead]]>
  6794. </doc>
  6795. </method>
  6796. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  6797. abstract="false" native="false" synchronized="false"
  6798. static="false" final="false" visibility="public"
  6799. deprecated="not deprecated">
  6800. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6801. <exception name="IOException" type="java.io.IOException"/>
  6802. <doc>
  6803. <![CDATA[Return a set of server default configuration values
  6804. @param p path is used to identify an FS since an FS could have
  6805. another FS that it could be delegating the call to
  6806. @return server default configuration values
  6807. @throws IOException]]>
  6808. </doc>
  6809. </method>
  6810. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  6811. abstract="false" native="false" synchronized="false"
  6812. static="false" final="false" visibility="public"
  6813. deprecated="not deprecated">
  6814. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6815. <exception name="IOException" type="java.io.IOException"/>
  6816. <doc>
  6817. <![CDATA[Return the fully-qualified path of path f resolving the path
  6818. through any symlinks or mount point
  6819. @param p path to be resolved
  6820. @return fully qualified path
  6821. @throws FileNotFoundException]]>
  6822. </doc>
  6823. </method>
  6824. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6825. abstract="true" native="false" synchronized="false"
  6826. static="false" final="false" visibility="public"
  6827. deprecated="not deprecated">
  6828. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6829. <param name="bufferSize" type="int"/>
  6830. <exception name="IOException" type="java.io.IOException"/>
  6831. <doc>
  6832. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6833. @param f the file name to open
  6834. @param bufferSize the size of the buffer to be used.]]>
  6835. </doc>
  6836. </method>
  6837. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6838. abstract="false" native="false" synchronized="false"
  6839. static="false" final="false" visibility="public"
  6840. deprecated="not deprecated">
  6841. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6842. <exception name="IOException" type="java.io.IOException"/>
  6843. <doc>
  6844. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6845. @param f the file to open]]>
  6846. </doc>
  6847. </method>
  6848. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6849. abstract="false" native="false" synchronized="false"
  6850. static="false" final="false" visibility="public"
  6851. deprecated="not deprecated">
  6852. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6853. <exception name="IOException" type="java.io.IOException"/>
  6854. <doc>
  6855. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  6856. Files are overwritten by default.
  6857. @param f the file to create]]>
  6858. </doc>
  6859. </method>
  6860. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6861. abstract="false" native="false" synchronized="false"
  6862. static="false" final="false" visibility="public"
  6863. deprecated="not deprecated">
  6864. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6865. <param name="overwrite" type="boolean"/>
  6866. <exception name="IOException" type="java.io.IOException"/>
  6867. <doc>
  6868. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  6869. @param f the file to create
  6870. @param overwrite if a file with this name already exists, then if true,
  6871. the file will be overwritten, and if false an exception will be thrown.]]>
  6872. </doc>
  6873. </method>
  6874. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6875. abstract="false" native="false" synchronized="false"
  6876. static="false" final="false" visibility="public"
  6877. deprecated="not deprecated">
  6878. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6879. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6880. <exception name="IOException" type="java.io.IOException"/>
  6881. <doc>
  6882. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  6883. reporting.
  6884. Files are overwritten by default.
  6885. @param f the file to create
  6886. @param progress to report progress]]>
  6887. </doc>
  6888. </method>
  6889. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6890. abstract="false" native="false" synchronized="false"
  6891. static="false" final="false" visibility="public"
  6892. deprecated="not deprecated">
  6893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6894. <param name="replication" type="short"/>
  6895. <exception name="IOException" type="java.io.IOException"/>
  6896. <doc>
  6897. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  6898. Files are overwritten by default.
  6899. @param f the file to create
  6900. @param replication the replication factor]]>
  6901. </doc>
  6902. </method>
  6903. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6904. abstract="false" native="false" synchronized="false"
  6905. static="false" final="false" visibility="public"
  6906. deprecated="not deprecated">
  6907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6908. <param name="replication" type="short"/>
  6909. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6910. <exception name="IOException" type="java.io.IOException"/>
  6911. <doc>
  6912. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  6913. reporting.
  6914. Files are overwritten by default.
  6915. @param f the file to create
  6916. @param replication the replication factor
  6917. @param progress to report progress]]>
  6918. </doc>
  6919. </method>
  6920. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6921. abstract="false" native="false" synchronized="false"
  6922. static="false" final="false" visibility="public"
  6923. deprecated="not deprecated">
  6924. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6925. <param name="overwrite" type="boolean"/>
  6926. <param name="bufferSize" type="int"/>
  6927. <exception name="IOException" type="java.io.IOException"/>
  6928. <doc>
  6929. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  6930. @param f the file name to create
  6931. @param overwrite if a file with this name already exists, then if true,
  6932. the file will be overwritten, and if false an error will be thrown.
  6933. @param bufferSize the size of the buffer to be used.]]>
  6934. </doc>
  6935. </method>
  6936. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6937. abstract="false" native="false" synchronized="false"
  6938. static="false" final="false" visibility="public"
  6939. deprecated="not deprecated">
  6940. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6941. <param name="overwrite" type="boolean"/>
  6942. <param name="bufferSize" type="int"/>
  6943. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6944. <exception name="IOException" type="java.io.IOException"/>
  6945. <doc>
  6946. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  6947. reporting.
  6948. @param f the path of the file to open
  6949. @param overwrite if a file with this name already exists, then if true,
  6950. the file will be overwritten, and if false an error will be thrown.
  6951. @param bufferSize the size of the buffer to be used.]]>
  6952. </doc>
  6953. </method>
  6954. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6955. abstract="false" native="false" synchronized="false"
  6956. static="false" final="false" visibility="public"
  6957. deprecated="not deprecated">
  6958. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6959. <param name="overwrite" type="boolean"/>
  6960. <param name="bufferSize" type="int"/>
  6961. <param name="replication" type="short"/>
  6962. <param name="blockSize" type="long"/>
  6963. <exception name="IOException" type="java.io.IOException"/>
  6964. <doc>
  6965. <![CDATA[Create an FSDataOutputStream at the indicated Path.
  6966. @param f the file name to open
  6967. @param overwrite if a file with this name already exists, then if true,
  6968. the file will be overwritten, and if false an error will be thrown.
  6969. @param bufferSize the size of the buffer to be used.
  6970. @param replication required block replication for the file.]]>
  6971. </doc>
  6972. </method>
  6973. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6974. abstract="false" native="false" synchronized="false"
  6975. static="false" final="false" visibility="public"
  6976. deprecated="not deprecated">
  6977. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6978. <param name="overwrite" type="boolean"/>
  6979. <param name="bufferSize" type="int"/>
  6980. <param name="replication" type="short"/>
  6981. <param name="blockSize" type="long"/>
  6982. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6983. <exception name="IOException" type="java.io.IOException"/>
  6984. <doc>
  6985. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  6986. reporting.
  6987. @param f the file name to open
  6988. @param overwrite if a file with this name already exists, then if true,
  6989. the file will be overwritten, and if false an error will be thrown.
  6990. @param bufferSize the size of the buffer to be used.
  6991. @param replication required block replication for the file.]]>
  6992. </doc>
  6993. </method>
  6994. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6995. abstract="true" native="false" synchronized="false"
  6996. static="false" final="false" visibility="public"
  6997. deprecated="not deprecated">
  6998. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6999. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7000. <param name="overwrite" type="boolean"/>
  7001. <param name="bufferSize" type="int"/>
  7002. <param name="replication" type="short"/>
  7003. <param name="blockSize" type="long"/>
  7004. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7005. <exception name="IOException" type="java.io.IOException"/>
  7006. <doc>
  7007. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7008. reporting.
  7009. @param f the file name to open
  7010. @param permission
  7011. @param overwrite if a file with this name already exists, then if true,
  7012. the file will be overwritten, and if false an error will be thrown.
  7013. @param bufferSize the size of the buffer to be used.
  7014. @param replication required block replication for the file.
  7015. @param blockSize
  7016. @param progress
  7017. @throws IOException
  7018. @see #setPermission(Path, FsPermission)]]>
  7019. </doc>
  7020. </method>
  7021. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7022. abstract="false" native="false" synchronized="false"
  7023. static="false" final="false" visibility="public"
  7024. deprecated="not deprecated">
  7025. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7026. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7027. <param name="flags" type="java.util.EnumSet"/>
  7028. <param name="bufferSize" type="int"/>
  7029. <param name="replication" type="short"/>
  7030. <param name="blockSize" type="long"/>
  7031. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7032. <exception name="IOException" type="java.io.IOException"/>
  7033. <doc>
  7034. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7035. reporting.
  7036. @param f the file name to open
  7037. @param permission
  7038. @param flags {@link CreateFlag}s to use for this stream.
  7039. @param bufferSize the size of the buffer to be used.
  7040. @param replication required block replication for the file.
  7041. @param blockSize
  7042. @param progress
  7043. @throws IOException
  7044. @see #setPermission(Path, FsPermission)]]>
  7045. </doc>
  7046. </method>
  7047. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7048. abstract="false" native="false" synchronized="false"
  7049. static="false" final="false" visibility="public"
  7050. deprecated="not deprecated">
  7051. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7052. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7053. <param name="flags" type="java.util.EnumSet"/>
  7054. <param name="bufferSize" type="int"/>
  7055. <param name="replication" type="short"/>
  7056. <param name="blockSize" type="long"/>
  7057. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7058. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  7059. <exception name="IOException" type="java.io.IOException"/>
  7060. <doc>
  7061. <![CDATA[Create an FSDataOutputStream at the indicated Path with a custom
  7062. checksum option
  7063. @param f the file name to open
  7064. @param permission
  7065. @param flags {@link CreateFlag}s to use for this stream.
  7066. @param bufferSize the size of the buffer to be used.
  7067. @param replication required block replication for the file.
  7068. @param blockSize
  7069. @param progress
  7070. @param checksumOpt checksum parameter. If null, the values
  7071. found in conf will be used.
  7072. @throws IOException
  7073. @see #setPermission(Path, FsPermission)]]>
  7074. </doc>
  7075. </method>
  7076. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  7077. abstract="false" native="false" synchronized="false"
  7078. static="false" final="false" visibility="protected"
  7079. deprecated="not deprecated">
  7080. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7081. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7082. <param name="flag" type="java.util.EnumSet"/>
  7083. <param name="bufferSize" type="int"/>
  7084. <param name="replication" type="short"/>
  7085. <param name="blockSize" type="long"/>
  7086. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7087. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  7088. <exception name="IOException" type="java.io.IOException"/>
  7089. </method>
  7090. <method name="primitiveMkdir" return="boolean"
  7091. abstract="false" native="false" synchronized="false"
  7092. static="false" final="false" visibility="protected"
  7093. deprecated="not deprecated">
  7094. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7095. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7096. <exception name="IOException" type="java.io.IOException"/>
  7097. <doc>
  7098. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  7099. It has been added to support the FileContext that processes the permission
  7100. with umask before calling this method.
  7101. This a temporary method added to support the transition from FileSystem
  7102. to FileContext for user applications.]]>
  7103. </doc>
  7104. </method>
  7105. <method name="primitiveMkdir"
  7106. abstract="false" native="false" synchronized="false"
  7107. static="false" final="false" visibility="protected"
  7108. deprecated="not deprecated">
  7109. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7110. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7111. <param name="createParent" type="boolean"/>
  7112. <exception name="IOException" type="java.io.IOException"/>
  7113. <doc>
  7114. <![CDATA[This version of the mkdirs method assumes that the permission is absolute.
  7115. It has been added to support the FileContext that processes the permission
  7116. with umask before calling this method.
  7117. This a temporary method added to support the transition from FileSystem
  7118. to FileContext for user applications.]]>
  7119. </doc>
  7120. </method>
  7121. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  7122. abstract="false" native="false" synchronized="false"
  7123. static="false" final="false" visibility="public"
  7124. deprecated="API only for 0.20-append">
  7125. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7126. <param name="overwrite" type="boolean"/>
  7127. <param name="bufferSize" type="int"/>
  7128. <param name="replication" type="short"/>
  7129. <param name="blockSize" type="long"/>
  7130. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7131. <exception name="IOException" type="java.io.IOException"/>
  7132. <doc>
  7133. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7134. reporting. Same as create(), except fails if parent directory doesn't
  7135. already exist.
  7136. @param f the file name to open
  7137. @param overwrite if a file with this name already exists, then if true,
  7138. the file will be overwritten, and if false an error will be thrown.
  7139. @param bufferSize the size of the buffer to be used.
  7140. @param replication required block replication for the file.
  7141. @param blockSize
  7142. @param progress
  7143. @throws IOException
  7144. @see #setPermission(Path, FsPermission)
  7145. @deprecated API only for 0.20-append]]>
  7146. </doc>
  7147. </method>
  7148. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  7149. abstract="false" native="false" synchronized="false"
  7150. static="false" final="false" visibility="public"
  7151. deprecated="API only for 0.20-append">
  7152. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7153. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7154. <param name="overwrite" type="boolean"/>
  7155. <param name="bufferSize" type="int"/>
  7156. <param name="replication" type="short"/>
  7157. <param name="blockSize" type="long"/>
  7158. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7159. <exception name="IOException" type="java.io.IOException"/>
  7160. <doc>
  7161. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7162. reporting. Same as create(), except fails if parent directory doesn't
  7163. already exist.
  7164. @param f the file name to open
  7165. @param permission
  7166. @param overwrite if a file with this name already exists, then if true,
  7167. the file will be overwritten, and if false an error will be thrown.
  7168. @param bufferSize the size of the buffer to be used.
  7169. @param replication required block replication for the file.
  7170. @param blockSize
  7171. @param progress
  7172. @throws IOException
  7173. @see #setPermission(Path, FsPermission)
  7174. @deprecated API only for 0.20-append]]>
  7175. </doc>
  7176. </method>
  7177. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  7178. abstract="false" native="false" synchronized="false"
  7179. static="false" final="false" visibility="public"
  7180. deprecated="API only for 0.20-append">
  7181. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7182. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7183. <param name="flags" type="java.util.EnumSet"/>
  7184. <param name="bufferSize" type="int"/>
  7185. <param name="replication" type="short"/>
  7186. <param name="blockSize" type="long"/>
  7187. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7188. <exception name="IOException" type="java.io.IOException"/>
  7189. <doc>
  7190. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7191. reporting. Same as create(), except fails if parent directory doesn't
  7192. already exist.
  7193. @param f the file name to open
  7194. @param permission
  7195. @param flags {@link CreateFlag}s to use for this stream.
  7196. @param bufferSize the size of the buffer to be used.
  7197. @param replication required block replication for the file.
  7198. @param blockSize
  7199. @param progress
  7200. @throws IOException
  7201. @see #setPermission(Path, FsPermission)
  7202. @deprecated API only for 0.20-append]]>
  7203. </doc>
  7204. </method>
  7205. <method name="createNewFile" return="boolean"
  7206. abstract="false" native="false" synchronized="false"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7210. <exception name="IOException" type="java.io.IOException"/>
  7211. <doc>
  7212. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  7213. create fails, or if it already existed, return false.
  7214. @param f path to use for create]]>
  7215. </doc>
  7216. </method>
  7217. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7218. abstract="false" native="false" synchronized="false"
  7219. static="false" final="false" visibility="public"
  7220. deprecated="not deprecated">
  7221. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7222. <exception name="IOException" type="java.io.IOException"/>
  7223. <doc>
  7224. <![CDATA[Append to an existing file (optional operation).
  7225. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  7226. @param f the existing file to be appended.
  7227. @throws IOException]]>
  7228. </doc>
  7229. </method>
  7230. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7231. abstract="false" native="false" synchronized="false"
  7232. static="false" final="false" visibility="public"
  7233. deprecated="not deprecated">
  7234. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7235. <param name="bufferSize" type="int"/>
  7236. <exception name="IOException" type="java.io.IOException"/>
  7237. <doc>
  7238. <![CDATA[Append to an existing file (optional operation).
  7239. Same as append(f, bufferSize, null).
  7240. @param f the existing file to be appended.
  7241. @param bufferSize the size of the buffer to be used.
  7242. @throws IOException]]>
  7243. </doc>
  7244. </method>
  7245. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7246. abstract="true" native="false" synchronized="false"
  7247. static="false" final="false" visibility="public"
  7248. deprecated="not deprecated">
  7249. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7250. <param name="bufferSize" type="int"/>
  7251. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7252. <exception name="IOException" type="java.io.IOException"/>
  7253. <doc>
  7254. <![CDATA[Append to an existing file (optional operation).
  7255. @param f the existing file to be appended.
  7256. @param bufferSize the size of the buffer to be used.
  7257. @param progress for reporting progress if it is not null.
  7258. @throws IOException]]>
  7259. </doc>
  7260. </method>
  7261. <method name="concat"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  7266. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  7267. <exception name="IOException" type="java.io.IOException"/>
  7268. <doc>
  7269. <![CDATA[Concat existing files together.
  7270. @param trg the path to the target destination.
  7271. @param psrcs the paths to the sources to use for the concatenation.
  7272. @throws IOException]]>
  7273. </doc>
  7274. </method>
  7275. <method name="getReplication" return="short"
  7276. abstract="false" native="false" synchronized="false"
  7277. static="false" final="false" visibility="public"
  7278. deprecated="Use getFileStatus() instead">
  7279. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7280. <exception name="IOException" type="java.io.IOException"/>
  7281. <doc>
  7282. <![CDATA[Get replication.
  7283. @deprecated Use getFileStatus() instead
  7284. @param src file name
  7285. @return file replication
  7286. @throws IOException]]>
  7287. </doc>
  7288. </method>
  7289. <method name="setReplication" return="boolean"
  7290. abstract="false" native="false" synchronized="false"
  7291. static="false" final="false" visibility="public"
  7292. deprecated="not deprecated">
  7293. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7294. <param name="replication" type="short"/>
  7295. <exception name="IOException" type="java.io.IOException"/>
  7296. <doc>
  7297. <![CDATA[Set replication for an existing file.
  7298. @param src file name
  7299. @param replication new replication
  7300. @throws IOException
  7301. @return true if successful;
  7302. false if file does not exist or is a directory]]>
  7303. </doc>
  7304. </method>
  7305. <method name="rename" return="boolean"
  7306. abstract="true" native="false" synchronized="false"
  7307. static="false" final="false" visibility="public"
  7308. deprecated="not deprecated">
  7309. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7310. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7311. <exception name="IOException" type="java.io.IOException"/>
  7312. <doc>
  7313. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  7314. or remote DFS.
  7315. @param src path to be renamed
  7316. @param dst new path after rename
  7317. @throws IOException on failure
  7318. @return true if rename is successful]]>
  7319. </doc>
  7320. </method>
  7321. <method name="rename"
  7322. abstract="false" native="false" synchronized="false"
  7323. static="false" final="false" visibility="protected"
  7324. deprecated="not deprecated">
  7325. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7326. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7327. <param name="options" type="org.apache.hadoop.fs.Options.Rename[]"/>
  7328. <exception name="IOException" type="java.io.IOException"/>
  7329. <doc>
  7330. <![CDATA[Renames Path src to Path dst
  7331. <ul>
  7332. <li
  7333. <li>Fails if src is a file and dst is a directory.
  7334. <li>Fails if src is a directory and dst is a file.
  7335. <li>Fails if the parent of dst does not exist or is a file.
  7336. </ul>
  7337. <p>
  7338. If OVERWRITE option is not passed as an argument, rename fails
  7339. if the dst already exists.
  7340. <p>
  7341. If OVERWRITE option is passed as an argument, rename overwrites
  7342. the dst if it is a file or an empty directory. Rename fails if dst is
  7343. a non-empty directory.
  7344. <p>
  7345. Note that atomicity of rename is dependent on the file system
  7346. implementation. Please refer to the file system documentation for
  7347. details. This default implementation is non atomic.
  7348. <p>
  7349. This method is deprecated since it is a temporary method added to
  7350. support the transition from FileSystem to FileContext for user
  7351. applications.
  7352. @param src path to be renamed
  7353. @param dst new path after rename
  7354. @throws IOException on failure]]>
  7355. </doc>
  7356. </method>
  7357. <method name="truncate" return="boolean"
  7358. abstract="false" native="false" synchronized="false"
  7359. static="false" final="false" visibility="public"
  7360. deprecated="not deprecated">
  7361. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7362. <param name="newLength" type="long"/>
  7363. <exception name="IOException" type="java.io.IOException"/>
  7364. <doc>
  7365. <![CDATA[Truncate the file in the indicated path to the indicated size.
  7366. <ul>
  7367. <li>Fails if path is a directory.
  7368. <li>Fails if path does not exist.
  7369. <li>Fails if path is not closed.
  7370. <li>Fails if new size is greater than current size.
  7371. </ul>
  7372. @param f The path to the file to be truncated
  7373. @param newLength The size the file is to be truncated to
  7374. @return <code>true</code> if the file has been truncated to the desired
  7375. <code>newLength</code> and is immediately available to be reused for
  7376. write operations such as <code>append</code>, or
  7377. <code>false</code> if a background process of adjusting the length of
  7378. the last block has been started, and clients should wait for it to
  7379. complete before proceeding with further file updates.]]>
  7380. </doc>
  7381. </method>
  7382. <method name="delete" return="boolean"
  7383. abstract="false" native="false" synchronized="false"
  7384. static="false" final="false" visibility="public"
  7385. deprecated="Use {@link #delete(Path, boolean)} instead.">
  7386. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7387. <exception name="IOException" type="java.io.IOException"/>
  7388. <doc>
  7389. <![CDATA[Delete a file
  7390. @deprecated Use {@link #delete(Path, boolean)} instead.]]>
  7391. </doc>
  7392. </method>
  7393. <method name="delete" return="boolean"
  7394. abstract="true" 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. <param name="recursive" type="boolean"/>
  7399. <exception name="IOException" type="java.io.IOException"/>
  7400. <doc>
  7401. <![CDATA[Delete a file.
  7402. @param f the path to delete.
  7403. @param recursive if path is a directory and set to
  7404. true, the directory is deleted else throws an exception. In
  7405. case of a file the recursive can be set to either true or false.
  7406. @return true if delete is successful else false.
  7407. @throws IOException]]>
  7408. </doc>
  7409. </method>
  7410. <method name="deleteOnExit" return="boolean"
  7411. abstract="false" native="false" synchronized="false"
  7412. static="false" final="false" visibility="public"
  7413. deprecated="not deprecated">
  7414. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7415. <exception name="IOException" type="java.io.IOException"/>
  7416. <doc>
  7417. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  7418. When the JVM shuts down,
  7419. all FileSystem objects will be closed automatically.
  7420. Then,
  7421. the marked path will be deleted as a result of closing the FileSystem.
  7422. The path has to exist in the file system.
  7423. @param f the path to delete.
  7424. @return true if deleteOnExit is successful, otherwise false.
  7425. @throws IOException]]>
  7426. </doc>
  7427. </method>
  7428. <method name="cancelDeleteOnExit" return="boolean"
  7429. abstract="false" native="false" synchronized="false"
  7430. static="false" final="false" visibility="public"
  7431. deprecated="not deprecated">
  7432. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7433. <doc>
  7434. <![CDATA[Cancel the deletion of the path when the FileSystem is closed
  7435. @param f the path to cancel deletion]]>
  7436. </doc>
  7437. </method>
  7438. <method name="processDeleteOnExit"
  7439. abstract="false" native="false" synchronized="false"
  7440. static="false" final="false" visibility="protected"
  7441. deprecated="not deprecated">
  7442. <doc>
  7443. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  7444. deletes all files in the specified paths.]]>
  7445. </doc>
  7446. </method>
  7447. <method name="exists" return="boolean"
  7448. abstract="false" native="false" synchronized="false"
  7449. static="false" final="false" visibility="public"
  7450. deprecated="not deprecated">
  7451. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7452. <exception name="IOException" type="java.io.IOException"/>
  7453. <doc>
  7454. <![CDATA[Check if exists.
  7455. @param f source file]]>
  7456. </doc>
  7457. </method>
  7458. <method name="isDirectory" return="boolean"
  7459. abstract="false" native="false" synchronized="false"
  7460. static="false" final="false" visibility="public"
  7461. deprecated="not deprecated">
  7462. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7463. <exception name="IOException" type="java.io.IOException"/>
  7464. <doc>
  7465. <![CDATA[True iff the named path is a directory.
  7466. Note: Avoid using this method. Instead reuse the FileStatus
  7467. returned by getFileStatus() or listStatus() methods.
  7468. @param f path to check]]>
  7469. </doc>
  7470. </method>
  7471. <method name="isFile" return="boolean"
  7472. abstract="false" native="false" synchronized="false"
  7473. static="false" final="false" visibility="public"
  7474. deprecated="not deprecated">
  7475. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7476. <exception name="IOException" type="java.io.IOException"/>
  7477. <doc>
  7478. <![CDATA[True iff the named path is a regular file.
  7479. Note: Avoid using this method. Instead reuse the FileStatus
  7480. returned by getFileStatus() or listStatus() methods.
  7481. @param f path to check]]>
  7482. </doc>
  7483. </method>
  7484. <method name="getLength" return="long"
  7485. abstract="false" native="false" synchronized="false"
  7486. static="false" final="false" visibility="public"
  7487. deprecated="Use getFileStatus() instead">
  7488. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7489. <exception name="IOException" type="java.io.IOException"/>
  7490. <doc>
  7491. <![CDATA[@deprecated Use getFileStatus() instead]]>
  7492. </doc>
  7493. </method>
  7494. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  7495. abstract="false" native="false" synchronized="false"
  7496. static="false" final="false" visibility="public"
  7497. deprecated="not deprecated">
  7498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7499. <exception name="IOException" type="java.io.IOException"/>
  7500. <doc>
  7501. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.
  7502. @param f path to use]]>
  7503. </doc>
  7504. </method>
  7505. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7506. abstract="true" native="false" synchronized="false"
  7507. static="false" final="false" visibility="public"
  7508. deprecated="not deprecated">
  7509. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7510. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7511. <exception name="IOException" type="java.io.IOException"/>
  7512. <doc>
  7513. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7514. a directory.
  7515. @param f given path
  7516. @return the statuses of the files/directories in the given patch
  7517. @throws FileNotFoundException when the path does not exist;
  7518. IOException see specific implementation]]>
  7519. </doc>
  7520. </method>
  7521. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  7522. abstract="false" native="false" synchronized="false"
  7523. static="false" final="false" visibility="public"
  7524. deprecated="not deprecated">
  7525. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7526. <exception name="IOException" type="java.io.IOException"/>
  7527. <doc>
  7528. <![CDATA[@return an iterator over the corrupt files under the given path
  7529. (may contain duplicates if a file has more than one corrupt block)
  7530. @throws IOException]]>
  7531. </doc>
  7532. </method>
  7533. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7534. abstract="false" native="false" synchronized="false"
  7535. static="false" final="false" visibility="public"
  7536. deprecated="not deprecated">
  7537. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7538. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7539. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7540. <exception name="IOException" type="java.io.IOException"/>
  7541. <doc>
  7542. <![CDATA[Filter files/directories in the given path using the user-supplied path
  7543. filter.
  7544. @param f
  7545. a path name
  7546. @param filter
  7547. the user-supplied path filter
  7548. @return an array of FileStatus objects for the files under the given path
  7549. after applying the filter
  7550. @throws FileNotFoundException when the path does not exist;
  7551. IOException see specific implementation]]>
  7552. </doc>
  7553. </method>
  7554. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7555. abstract="false" native="false" synchronized="false"
  7556. static="false" final="false" visibility="public"
  7557. deprecated="not deprecated">
  7558. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  7559. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7560. <exception name="IOException" type="java.io.IOException"/>
  7561. <doc>
  7562. <![CDATA[Filter files/directories in the given list of paths using default
  7563. path filter.
  7564. @param files
  7565. a list of paths
  7566. @return a list of statuses for the files under the given paths after
  7567. applying the filter default Path filter
  7568. @throws FileNotFoundException when the path does not exist;
  7569. IOException see specific implementation]]>
  7570. </doc>
  7571. </method>
  7572. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7573. abstract="false" native="false" synchronized="false"
  7574. static="false" final="false" visibility="public"
  7575. deprecated="not deprecated">
  7576. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  7577. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7578. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7579. <exception name="IOException" type="java.io.IOException"/>
  7580. <doc>
  7581. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  7582. path filter.
  7583. @param files
  7584. a list of paths
  7585. @param filter
  7586. the user-supplied path filter
  7587. @return a list of statuses for the files under the given paths after
  7588. applying the filter
  7589. @throws FileNotFoundException when the path does not exist;
  7590. IOException see specific implementation]]>
  7591. </doc>
  7592. </method>
  7593. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7594. abstract="false" native="false" synchronized="false"
  7595. static="false" final="false" visibility="public"
  7596. deprecated="not deprecated">
  7597. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  7598. <exception name="IOException" type="java.io.IOException"/>
  7599. <doc>
  7600. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  7601. files. Results are sorted by their names.
  7602. <p>
  7603. A filename pattern is composed of <i>regular</i> characters and
  7604. <i>special pattern matching</i> characters, which are:
  7605. <dl>
  7606. <dd>
  7607. <dl>
  7608. <p>
  7609. <dt> <tt> ? </tt>
  7610. <dd> Matches any single character.
  7611. <p>
  7612. <dt> <tt> * </tt>
  7613. <dd> Matches zero or more characters.
  7614. <p>
  7615. <dt> <tt> [<i>abc</i>] </tt>
  7616. <dd> Matches a single character from character set
  7617. <tt>{<i>a,b,c</i>}</tt>.
  7618. <p>
  7619. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  7620. <dd> Matches a single character from the character range
  7621. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  7622. lexicographically less than or equal to character <tt><i>b</i></tt>.
  7623. <p>
  7624. <dt> <tt> [^<i>a</i>] </tt>
  7625. <dd> Matches a single character that is not from character set or range
  7626. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  7627. immediately to the right of the opening bracket.
  7628. <p>
  7629. <dt> <tt> \<i>c</i> </tt>
  7630. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  7631. <p>
  7632. <dt> <tt> {ab,cd} </tt>
  7633. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  7634. <p>
  7635. <dt> <tt> {ab,c{de,fh}} </tt>
  7636. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  7637. </dl>
  7638. </dd>
  7639. </dl>
  7640. @param pathPattern a regular expression specifying a pth pattern
  7641. @return an array of paths that match the path pattern
  7642. @throws IOException]]>
  7643. </doc>
  7644. </method>
  7645. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7646. abstract="false" native="false" synchronized="false"
  7647. static="false" final="false" visibility="public"
  7648. deprecated="not deprecated">
  7649. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  7650. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7651. <exception name="IOException" type="java.io.IOException"/>
  7652. <doc>
  7653. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  7654. and is accepted by the user-supplied path filter. Results are sorted by
  7655. their path names.
  7656. Return null if pathPattern has no glob and the path does not exist.
  7657. Return an empty array if pathPattern has a glob and no path matches it.
  7658. @param pathPattern
  7659. a regular expression specifying the path pattern
  7660. @param filter
  7661. a user-supplied path filter
  7662. @return an array of FileStatus objects
  7663. @throws IOException if any I/O error occurs when fetching file status]]>
  7664. </doc>
  7665. </method>
  7666. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7667. abstract="false" native="false" synchronized="false"
  7668. static="false" final="false" visibility="public"
  7669. deprecated="not deprecated">
  7670. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7671. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7672. <exception name="IOException" type="java.io.IOException"/>
  7673. <doc>
  7674. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7675. a directory.
  7676. Return the file's status and block locations If the path is a file.
  7677. If a returned status is a file, it contains the file's block locations.
  7678. @param f is the path
  7679. @return an iterator that traverses statuses of the files/directories
  7680. in the given path
  7681. @throws FileNotFoundException If <code>f</code> does not exist
  7682. @throws IOException If an I/O error occurred]]>
  7683. </doc>
  7684. </method>
  7685. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  7686. abstract="false" native="false" synchronized="false"
  7687. static="false" final="false" visibility="protected"
  7688. deprecated="not deprecated">
  7689. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7690. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  7691. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7692. <exception name="IOException" type="java.io.IOException"/>
  7693. <doc>
  7694. <![CDATA[Listing a directory
  7695. The returned results include its block location if it is a file
  7696. The results are filtered by the given path filter
  7697. @param f a path
  7698. @param filter a path filter
  7699. @return an iterator that traverses statuses of the files/directories
  7700. in the given path
  7701. @throws FileNotFoundException if <code>f</code> does not exist
  7702. @throws IOException if any I/O error occurred]]>
  7703. </doc>
  7704. </method>
  7705. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  7706. abstract="false" native="false" synchronized="false"
  7707. static="false" final="false" visibility="public"
  7708. deprecated="not deprecated">
  7709. <param name="p" type="org.apache.hadoop.fs.Path"/>
  7710. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7711. <exception name="IOException" type="java.io.IOException"/>
  7712. <doc>
  7713. <![CDATA[Returns a remote iterator so that followup calls are made on demand
  7714. while consuming the entries. Each file system implementation should
  7715. override this method and provide a more efficient implementation, if
  7716. possible.
  7717. @param p target path
  7718. @return remote iterator]]>
  7719. </doc>
  7720. </method>
  7721. <method name="listFiles" return="org.apache.hadoop.fs.RemoteIterator"
  7722. abstract="false" native="false" synchronized="false"
  7723. static="false" final="false" visibility="public"
  7724. deprecated="not deprecated">
  7725. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7726. <param name="recursive" type="boolean"/>
  7727. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  7728. <exception name="IOException" type="java.io.IOException"/>
  7729. <doc>
  7730. <![CDATA[List the statuses and block locations of the files in the given path.
  7731. If the path is a directory,
  7732. if recursive is false, returns files in the directory;
  7733. if recursive is true, return files in the subtree rooted at the path.
  7734. If the path is a file, return the file's status and block locations.
  7735. @param f is the path
  7736. @param recursive if the subdirectories need to be traversed recursively
  7737. @return an iterator that traverses statuses of the files
  7738. @throws FileNotFoundException when the path does not exist;
  7739. IOException see specific implementation]]>
  7740. </doc>
  7741. </method>
  7742. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7743. abstract="false" native="false" synchronized="false"
  7744. static="false" final="false" visibility="public"
  7745. deprecated="not deprecated">
  7746. <doc>
  7747. <![CDATA[Return the current user's home directory in this filesystem.
  7748. The default implementation returns "/user/$USER/".]]>
  7749. </doc>
  7750. </method>
  7751. <method name="setWorkingDirectory"
  7752. abstract="true" native="false" synchronized="false"
  7753. static="false" final="false" visibility="public"
  7754. deprecated="not deprecated">
  7755. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  7756. <doc>
  7757. <![CDATA[Set the current working directory for the given file system. All relative
  7758. paths will be resolved relative to it.
  7759. @param new_dir]]>
  7760. </doc>
  7761. </method>
  7762. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7763. abstract="true" native="false" synchronized="false"
  7764. static="false" final="false" visibility="public"
  7765. deprecated="not deprecated">
  7766. <doc>
  7767. <![CDATA[Get the current working directory for the given file system
  7768. @return the directory pathname]]>
  7769. </doc>
  7770. </method>
  7771. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7772. abstract="false" native="false" synchronized="false"
  7773. static="false" final="false" visibility="protected"
  7774. deprecated="not deprecated">
  7775. <doc>
  7776. <![CDATA[Note: with the new FilesContext class, getWorkingDirectory()
  7777. will be removed.
  7778. The working directory is implemented in FilesContext.
  7779. Some file systems like LocalFileSystem have an initial workingDir
  7780. that we use as the starting workingDir. For other file systems
  7781. like HDFS there is no built in notion of an initial workingDir.
  7782. @return if there is built in notion of workingDir then it
  7783. is returned; else a null is returned.]]>
  7784. </doc>
  7785. </method>
  7786. <method name="mkdirs" return="boolean"
  7787. abstract="false" native="false" synchronized="false"
  7788. static="false" final="false" visibility="public"
  7789. deprecated="not deprecated">
  7790. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7791. <exception name="IOException" type="java.io.IOException"/>
  7792. <doc>
  7793. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  7794. </doc>
  7795. </method>
  7796. <method name="mkdirs" return="boolean"
  7797. abstract="true" native="false" synchronized="false"
  7798. static="false" final="false" visibility="public"
  7799. deprecated="not deprecated">
  7800. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7801. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7802. <exception name="IOException" type="java.io.IOException"/>
  7803. <doc>
  7804. <![CDATA[Make the given file and all non-existent parents into
  7805. directories. Has the semantics of Unix 'mkdir -p'.
  7806. Existence of the directory hierarchy is not an error.
  7807. @param f path to create
  7808. @param permission to apply to f]]>
  7809. </doc>
  7810. </method>
  7811. <method name="copyFromLocalFile"
  7812. abstract="false" native="false" synchronized="false"
  7813. static="false" final="false" visibility="public"
  7814. deprecated="not deprecated">
  7815. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7816. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7817. <exception name="IOException" type="java.io.IOException"/>
  7818. <doc>
  7819. <![CDATA[The src file is on the local disk. Add it to FS at
  7820. the given dst name and the source is kept intact afterwards
  7821. @param src path
  7822. @param dst path]]>
  7823. </doc>
  7824. </method>
  7825. <method name="moveFromLocalFile"
  7826. abstract="false" native="false" synchronized="false"
  7827. static="false" final="false" visibility="public"
  7828. deprecated="not deprecated">
  7829. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  7830. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7831. <exception name="IOException" type="java.io.IOException"/>
  7832. <doc>
  7833. <![CDATA[The src files is on the local disk. Add it to FS at
  7834. the given dst name, removing the source afterwards.
  7835. @param srcs path
  7836. @param dst path]]>
  7837. </doc>
  7838. </method>
  7839. <method name="moveFromLocalFile"
  7840. abstract="false" native="false" synchronized="false"
  7841. static="false" final="false" visibility="public"
  7842. deprecated="not deprecated">
  7843. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7844. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7845. <exception name="IOException" type="java.io.IOException"/>
  7846. <doc>
  7847. <![CDATA[The src file is on the local disk. Add it to FS at
  7848. the given dst name, removing the source afterwards.
  7849. @param src path
  7850. @param dst path]]>
  7851. </doc>
  7852. </method>
  7853. <method name="copyFromLocalFile"
  7854. abstract="false" native="false" synchronized="false"
  7855. static="false" final="false" visibility="public"
  7856. deprecated="not deprecated">
  7857. <param name="delSrc" type="boolean"/>
  7858. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7859. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7860. <exception name="IOException" type="java.io.IOException"/>
  7861. <doc>
  7862. <![CDATA[The src file is on the local disk. Add it to FS at
  7863. the given dst name.
  7864. delSrc indicates if the source should be removed
  7865. @param delSrc whether to delete the src
  7866. @param src path
  7867. @param dst path]]>
  7868. </doc>
  7869. </method>
  7870. <method name="copyFromLocalFile"
  7871. abstract="false" native="false" synchronized="false"
  7872. static="false" final="false" visibility="public"
  7873. deprecated="not deprecated">
  7874. <param name="delSrc" type="boolean"/>
  7875. <param name="overwrite" type="boolean"/>
  7876. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  7877. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7878. <exception name="IOException" type="java.io.IOException"/>
  7879. <doc>
  7880. <![CDATA[The src files are on the local disk. Add it to FS at
  7881. the given dst name.
  7882. delSrc indicates if the source should be removed
  7883. @param delSrc whether to delete the src
  7884. @param overwrite whether to overwrite an existing file
  7885. @param srcs array of paths which are source
  7886. @param dst path]]>
  7887. </doc>
  7888. </method>
  7889. <method name="copyFromLocalFile"
  7890. abstract="false" native="false" synchronized="false"
  7891. static="false" final="false" visibility="public"
  7892. deprecated="not deprecated">
  7893. <param name="delSrc" type="boolean"/>
  7894. <param name="overwrite" type="boolean"/>
  7895. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7896. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7897. <exception name="IOException" type="java.io.IOException"/>
  7898. <doc>
  7899. <![CDATA[The src file is on the local disk. Add it to FS at
  7900. the given dst name.
  7901. delSrc indicates if the source should be removed
  7902. @param delSrc whether to delete the src
  7903. @param overwrite whether to overwrite an existing file
  7904. @param src path
  7905. @param dst path]]>
  7906. </doc>
  7907. </method>
  7908. <method name="copyToLocalFile"
  7909. abstract="false" native="false" synchronized="false"
  7910. static="false" final="false" visibility="public"
  7911. deprecated="not deprecated">
  7912. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7913. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7914. <exception name="IOException" type="java.io.IOException"/>
  7915. <doc>
  7916. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7917. Copy it from FS control to the local dst name.
  7918. @param src path
  7919. @param dst path]]>
  7920. </doc>
  7921. </method>
  7922. <method name="moveToLocalFile"
  7923. abstract="false" native="false" synchronized="false"
  7924. static="false" final="false" visibility="public"
  7925. deprecated="not deprecated">
  7926. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7927. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7928. <exception name="IOException" type="java.io.IOException"/>
  7929. <doc>
  7930. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7931. Copy it from FS control to the local dst name.
  7932. Remove the source afterwards
  7933. @param src path
  7934. @param dst path]]>
  7935. </doc>
  7936. </method>
  7937. <method name="copyToLocalFile"
  7938. abstract="false" native="false" synchronized="false"
  7939. static="false" final="false" visibility="public"
  7940. deprecated="not deprecated">
  7941. <param name="delSrc" type="boolean"/>
  7942. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7943. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7944. <exception name="IOException" type="java.io.IOException"/>
  7945. <doc>
  7946. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7947. Copy it from FS control to the local dst name.
  7948. delSrc indicates if the src will be removed or not.
  7949. @param delSrc whether to delete the src
  7950. @param src path
  7951. @param dst path]]>
  7952. </doc>
  7953. </method>
  7954. <method name="copyToLocalFile"
  7955. abstract="false" native="false" synchronized="false"
  7956. static="false" final="false" visibility="public"
  7957. deprecated="not deprecated">
  7958. <param name="delSrc" type="boolean"/>
  7959. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7960. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7961. <param name="useRawLocalFileSystem" type="boolean"/>
  7962. <exception name="IOException" type="java.io.IOException"/>
  7963. <doc>
  7964. <![CDATA[The src file is under FS, and the dst is on the local disk. Copy it from FS
  7965. control to the local dst name. delSrc indicates if the src will be removed
  7966. or not. useRawLocalFileSystem indicates whether to use RawLocalFileSystem
  7967. as local file system or not. RawLocalFileSystem is non crc file system.So,
  7968. It will not create any crc files at local.
  7969. @param delSrc
  7970. whether to delete the src
  7971. @param src
  7972. path
  7973. @param dst
  7974. path
  7975. @param useRawLocalFileSystem
  7976. whether to use RawLocalFileSystem as local file system or not.
  7977. @throws IOException
  7978. - if any IO error]]>
  7979. </doc>
  7980. </method>
  7981. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7982. abstract="false" native="false" synchronized="false"
  7983. static="false" final="false" visibility="public"
  7984. deprecated="not deprecated">
  7985. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7986. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7987. <exception name="IOException" type="java.io.IOException"/>
  7988. <doc>
  7989. <![CDATA[Returns a local File that the user can write output to. The caller
  7990. provides both the eventual FS target name and the local working
  7991. file. If the FS is local, we write directly into the target. If
  7992. the FS is remote, we write into the tmp local area.
  7993. @param fsOutputFile path of output file
  7994. @param tmpLocalFile path of local tmp file]]>
  7995. </doc>
  7996. </method>
  7997. <method name="completeLocalOutput"
  7998. abstract="false" native="false" synchronized="false"
  7999. static="false" final="false" visibility="public"
  8000. deprecated="not deprecated">
  8001. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8002. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8003. <exception name="IOException" type="java.io.IOException"/>
  8004. <doc>
  8005. <![CDATA[Called when we're all done writing to the target. A local FS will
  8006. do nothing, because we've written to exactly the right place. A remote
  8007. FS will copy the contents of tmpLocalFile to the correct target at
  8008. fsOutputFile.
  8009. @param fsOutputFile path of output file
  8010. @param tmpLocalFile path to local tmp file]]>
  8011. </doc>
  8012. </method>
  8013. <method name="close"
  8014. abstract="false" native="false" synchronized="false"
  8015. static="false" final="false" visibility="public"
  8016. deprecated="not deprecated">
  8017. <exception name="IOException" type="java.io.IOException"/>
  8018. <doc>
  8019. <![CDATA[No more filesystem operations are needed. Will
  8020. release any held locks.]]>
  8021. </doc>
  8022. </method>
  8023. <method name="getUsed" return="long"
  8024. abstract="false" native="false" synchronized="false"
  8025. static="false" final="false" visibility="public"
  8026. deprecated="not deprecated">
  8027. <exception name="IOException" type="java.io.IOException"/>
  8028. <doc>
  8029. <![CDATA[Return the total size of all files in the filesystem.]]>
  8030. </doc>
  8031. </method>
  8032. <method name="getBlockSize" return="long"
  8033. abstract="false" native="false" synchronized="false"
  8034. static="false" final="false" visibility="public"
  8035. deprecated="Use getFileStatus() instead">
  8036. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8037. <exception name="IOException" type="java.io.IOException"/>
  8038. <doc>
  8039. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8040. </doc>
  8041. </method>
  8042. <method name="getDefaultBlockSize" return="long"
  8043. abstract="false" native="false" synchronized="false"
  8044. static="false" final="false" visibility="public"
  8045. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  8046. <doc>
  8047. <![CDATA[Return the number of bytes that large input files should be optimally
  8048. be split into to minimize i/o time.
  8049. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  8050. </doc>
  8051. </method>
  8052. <method name="getDefaultBlockSize" return="long"
  8053. abstract="false" native="false" synchronized="false"
  8054. static="false" final="false" visibility="public"
  8055. deprecated="not deprecated">
  8056. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8057. <doc>
  8058. <![CDATA[Return the number of bytes that large input files should be optimally
  8059. be split into to minimize i/o time. The given path will be used to
  8060. locate the actual filesystem. The full path does not have to exist.
  8061. @param f path of file
  8062. @return the default block size for the path's filesystem]]>
  8063. </doc>
  8064. </method>
  8065. <method name="getDefaultReplication" return="short"
  8066. abstract="false" native="false" synchronized="false"
  8067. static="false" final="false" visibility="public"
  8068. deprecated="use {@link #getDefaultReplication(Path)} instead">
  8069. <doc>
  8070. <![CDATA[Get the default replication.
  8071. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  8072. </doc>
  8073. </method>
  8074. <method name="getDefaultReplication" return="short"
  8075. abstract="false" native="false" synchronized="false"
  8076. static="false" final="false" visibility="public"
  8077. deprecated="not deprecated">
  8078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8079. <doc>
  8080. <![CDATA[Get the default replication for a path. The given path will be used to
  8081. locate the actual filesystem. The full path does not have to exist.
  8082. @param path of the file
  8083. @return default replication for the path's filesystem]]>
  8084. </doc>
  8085. </method>
  8086. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8087. abstract="true" native="false" synchronized="false"
  8088. static="false" final="false" visibility="public"
  8089. deprecated="not deprecated">
  8090. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8091. <exception name="IOException" type="java.io.IOException"/>
  8092. <doc>
  8093. <![CDATA[Return a file status object that represents the path.
  8094. @param f The path we want information from
  8095. @return a FileStatus object
  8096. @throws FileNotFoundException when the path does not exist;
  8097. IOException see specific implementation]]>
  8098. </doc>
  8099. </method>
  8100. <method name="fixRelativePart" return="org.apache.hadoop.fs.Path"
  8101. abstract="false" native="false" synchronized="false"
  8102. static="false" final="false" visibility="protected"
  8103. deprecated="not deprecated">
  8104. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8105. <doc>
  8106. <![CDATA[See {@link FileContext#fixRelativePart}]]>
  8107. </doc>
  8108. </method>
  8109. <method name="createSymlink"
  8110. abstract="false" native="false" synchronized="false"
  8111. static="false" final="false" visibility="public"
  8112. deprecated="not deprecated">
  8113. <param name="target" type="org.apache.hadoop.fs.Path"/>
  8114. <param name="link" type="org.apache.hadoop.fs.Path"/>
  8115. <param name="createParent" type="boolean"/>
  8116. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8117. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  8118. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8119. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  8120. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8121. <exception name="IOException" type="java.io.IOException"/>
  8122. <doc>
  8123. <![CDATA[See {@link FileContext#createSymlink(Path, Path, boolean)}]]>
  8124. </doc>
  8125. </method>
  8126. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  8127. abstract="false" native="false" synchronized="false"
  8128. static="false" final="false" visibility="public"
  8129. deprecated="not deprecated">
  8130. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8131. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  8132. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  8133. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  8134. <exception name="IOException" type="java.io.IOException"/>
  8135. <doc>
  8136. <![CDATA[See {@link FileContext#getFileLinkStatus(Path)}]]>
  8137. </doc>
  8138. </method>
  8139. <method name="supportsSymlinks" return="boolean"
  8140. abstract="false" native="false" synchronized="false"
  8141. static="false" final="false" visibility="public"
  8142. deprecated="not deprecated">
  8143. <doc>
  8144. <![CDATA[See {@link AbstractFileSystem#supportsSymlinks()}]]>
  8145. </doc>
  8146. </method>
  8147. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  8148. abstract="false" native="false" synchronized="false"
  8149. static="false" final="false" visibility="public"
  8150. deprecated="not deprecated">
  8151. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8152. <exception name="IOException" type="java.io.IOException"/>
  8153. <doc>
  8154. <![CDATA[See {@link FileContext#getLinkTarget(Path)}]]>
  8155. </doc>
  8156. </method>
  8157. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  8158. abstract="false" native="false" synchronized="false"
  8159. static="false" final="false" visibility="protected"
  8160. deprecated="not deprecated">
  8161. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8162. <exception name="IOException" type="java.io.IOException"/>
  8163. <doc>
  8164. <![CDATA[See {@link AbstractFileSystem#getLinkTarget(Path)}]]>
  8165. </doc>
  8166. </method>
  8167. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  8168. abstract="false" native="false" synchronized="false"
  8169. static="false" final="false" visibility="public"
  8170. deprecated="not deprecated">
  8171. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8172. <exception name="IOException" type="java.io.IOException"/>
  8173. <doc>
  8174. <![CDATA[Get the checksum of a file.
  8175. @param f The file path
  8176. @return The file checksum. The default return value is null,
  8177. which indicates that no checksum algorithm is implemented
  8178. in the corresponding FileSystem.]]>
  8179. </doc>
  8180. </method>
  8181. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  8182. abstract="false" native="false" synchronized="false"
  8183. static="false" final="false" visibility="public"
  8184. deprecated="not deprecated">
  8185. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8186. <param name="length" type="long"/>
  8187. <exception name="IOException" type="java.io.IOException"/>
  8188. <doc>
  8189. <![CDATA[Get the checksum of a file, from the beginning of the file till the
  8190. specific length.
  8191. @param f The file path
  8192. @param length The length of the file range for checksum calculation
  8193. @return The file checksum.]]>
  8194. </doc>
  8195. </method>
  8196. <method name="setVerifyChecksum"
  8197. abstract="false" native="false" synchronized="false"
  8198. static="false" final="false" visibility="public"
  8199. deprecated="not deprecated">
  8200. <param name="verifyChecksum" type="boolean"/>
  8201. <doc>
  8202. <![CDATA[Set the verify checksum flag. This is only applicable if the
  8203. corresponding FileSystem supports checksum. By default doesn't do anything.
  8204. @param verifyChecksum]]>
  8205. </doc>
  8206. </method>
  8207. <method name="setWriteChecksum"
  8208. abstract="false" native="false" synchronized="false"
  8209. static="false" final="false" visibility="public"
  8210. deprecated="not deprecated">
  8211. <param name="writeChecksum" type="boolean"/>
  8212. <doc>
  8213. <![CDATA[Set the write checksum flag. This is only applicable if the
  8214. corresponding FileSystem supports checksum. By default doesn't do anything.
  8215. @param writeChecksum]]>
  8216. </doc>
  8217. </method>
  8218. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  8219. abstract="false" native="false" synchronized="false"
  8220. static="false" final="false" visibility="public"
  8221. deprecated="not deprecated">
  8222. <exception name="IOException" type="java.io.IOException"/>
  8223. <doc>
  8224. <![CDATA[Returns a status object describing the use and capacity of the
  8225. file system. If the file system has multiple partitions, the
  8226. use and capacity of the root partition is reflected.
  8227. @return a FsStatus object
  8228. @throws IOException
  8229. see specific implementation]]>
  8230. </doc>
  8231. </method>
  8232. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  8233. abstract="false" native="false" synchronized="false"
  8234. static="false" final="false" visibility="public"
  8235. deprecated="not deprecated">
  8236. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8237. <exception name="IOException" type="java.io.IOException"/>
  8238. <doc>
  8239. <![CDATA[Returns a status object describing the use and capacity of the
  8240. file system. If the file system has multiple partitions, the
  8241. use and capacity of the partition pointed to by the specified
  8242. path is reflected.
  8243. @param p Path for which status should be obtained. null means
  8244. the default partition.
  8245. @return a FsStatus object
  8246. @throws IOException
  8247. see specific implementation]]>
  8248. </doc>
  8249. </method>
  8250. <method name="setPermission"
  8251. abstract="false" native="false" synchronized="false"
  8252. static="false" final="false" visibility="public"
  8253. deprecated="not deprecated">
  8254. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8255. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8256. <exception name="IOException" type="java.io.IOException"/>
  8257. <doc>
  8258. <![CDATA[Set permission of a path.
  8259. @param p
  8260. @param permission]]>
  8261. </doc>
  8262. </method>
  8263. <method name="setOwner"
  8264. abstract="false" native="false" synchronized="false"
  8265. static="false" final="false" visibility="public"
  8266. deprecated="not deprecated">
  8267. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8268. <param name="username" type="java.lang.String"/>
  8269. <param name="groupname" type="java.lang.String"/>
  8270. <exception name="IOException" type="java.io.IOException"/>
  8271. <doc>
  8272. <![CDATA[Set owner of a path (i.e. a file or a directory).
  8273. The parameters username and groupname cannot both be null.
  8274. @param p The path
  8275. @param username If it is null, the original username remains unchanged.
  8276. @param groupname If it is null, the original groupname remains unchanged.]]>
  8277. </doc>
  8278. </method>
  8279. <method name="setTimes"
  8280. abstract="false" native="false" synchronized="false"
  8281. static="false" final="false" visibility="public"
  8282. deprecated="not deprecated">
  8283. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8284. <param name="mtime" type="long"/>
  8285. <param name="atime" type="long"/>
  8286. <exception name="IOException" type="java.io.IOException"/>
  8287. <doc>
  8288. <![CDATA[Set access time of a file
  8289. @param p The path
  8290. @param mtime Set the modification time of this file.
  8291. The number of milliseconds since Jan 1, 1970.
  8292. A value of -1 means that this call should not set modification time.
  8293. @param atime Set the access time of this file.
  8294. The number of milliseconds since Jan 1, 1970.
  8295. A value of -1 means that this call should not set access time.]]>
  8296. </doc>
  8297. </method>
  8298. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  8299. abstract="false" native="false" synchronized="false"
  8300. static="false" final="true" visibility="public"
  8301. deprecated="not deprecated">
  8302. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8303. <exception name="IOException" type="java.io.IOException"/>
  8304. <doc>
  8305. <![CDATA[Create a snapshot with a default name.
  8306. @param path The directory where snapshots will be taken.
  8307. @return the snapshot path.]]>
  8308. </doc>
  8309. </method>
  8310. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  8311. abstract="false" native="false" synchronized="false"
  8312. static="false" final="false" visibility="public"
  8313. deprecated="not deprecated">
  8314. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8315. <param name="snapshotName" type="java.lang.String"/>
  8316. <exception name="IOException" type="java.io.IOException"/>
  8317. <doc>
  8318. <![CDATA[Create a snapshot
  8319. @param path The directory where snapshots will be taken.
  8320. @param snapshotName The name of the snapshot
  8321. @return the snapshot path.]]>
  8322. </doc>
  8323. </method>
  8324. <method name="renameSnapshot"
  8325. abstract="false" native="false" synchronized="false"
  8326. static="false" final="false" visibility="public"
  8327. deprecated="not deprecated">
  8328. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8329. <param name="snapshotOldName" type="java.lang.String"/>
  8330. <param name="snapshotNewName" type="java.lang.String"/>
  8331. <exception name="IOException" type="java.io.IOException"/>
  8332. <doc>
  8333. <![CDATA[Rename a snapshot
  8334. @param path The directory path where the snapshot was taken
  8335. @param snapshotOldName Old name of the snapshot
  8336. @param snapshotNewName New name of the snapshot
  8337. @throws IOException]]>
  8338. </doc>
  8339. </method>
  8340. <method name="deleteSnapshot"
  8341. abstract="false" native="false" synchronized="false"
  8342. static="false" final="false" visibility="public"
  8343. deprecated="not deprecated">
  8344. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8345. <param name="snapshotName" type="java.lang.String"/>
  8346. <exception name="IOException" type="java.io.IOException"/>
  8347. <doc>
  8348. <![CDATA[Delete a snapshot of a directory
  8349. @param path The directory that the to-be-deleted snapshot belongs to
  8350. @param snapshotName The name of the snapshot]]>
  8351. </doc>
  8352. </method>
  8353. <method name="modifyAclEntries"
  8354. abstract="false" native="false" synchronized="false"
  8355. static="false" final="false" visibility="public"
  8356. deprecated="not deprecated">
  8357. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8358. <param name="aclSpec" type="java.util.List"/>
  8359. <exception name="IOException" type="java.io.IOException"/>
  8360. <doc>
  8361. <![CDATA[Modifies ACL entries of files and directories. This method can add new ACL
  8362. entries or modify the permissions on existing ACL entries. All existing
  8363. ACL entries that are not specified in this call are retained without
  8364. changes. (Modifications are merged into the current ACL.)
  8365. @param path Path to modify
  8366. @param aclSpec List<AclEntry> describing modifications
  8367. @throws IOException if an ACL could not be modified]]>
  8368. </doc>
  8369. </method>
  8370. <method name="removeAclEntries"
  8371. abstract="false" native="false" synchronized="false"
  8372. static="false" final="false" visibility="public"
  8373. deprecated="not deprecated">
  8374. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8375. <param name="aclSpec" type="java.util.List"/>
  8376. <exception name="IOException" type="java.io.IOException"/>
  8377. <doc>
  8378. <![CDATA[Removes ACL entries from files and directories. Other ACL entries are
  8379. retained.
  8380. @param path Path to modify
  8381. @param aclSpec List<AclEntry> describing entries to remove
  8382. @throws IOException if an ACL could not be modified]]>
  8383. </doc>
  8384. </method>
  8385. <method name="removeDefaultAcl"
  8386. abstract="false" native="false" synchronized="false"
  8387. static="false" final="false" visibility="public"
  8388. deprecated="not deprecated">
  8389. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8390. <exception name="IOException" type="java.io.IOException"/>
  8391. <doc>
  8392. <![CDATA[Removes all default ACL entries from files and directories.
  8393. @param path Path to modify
  8394. @throws IOException if an ACL could not be modified]]>
  8395. </doc>
  8396. </method>
  8397. <method name="removeAcl"
  8398. abstract="false" native="false" synchronized="false"
  8399. static="false" final="false" visibility="public"
  8400. deprecated="not deprecated">
  8401. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8402. <exception name="IOException" type="java.io.IOException"/>
  8403. <doc>
  8404. <![CDATA[Removes all but the base ACL entries of files and directories. The entries
  8405. for user, group, and others are retained for compatibility with permission
  8406. bits.
  8407. @param path Path to modify
  8408. @throws IOException if an ACL could not be removed]]>
  8409. </doc>
  8410. </method>
  8411. <method name="setAcl"
  8412. abstract="false" native="false" synchronized="false"
  8413. static="false" final="false" visibility="public"
  8414. deprecated="not deprecated">
  8415. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8416. <param name="aclSpec" type="java.util.List"/>
  8417. <exception name="IOException" type="java.io.IOException"/>
  8418. <doc>
  8419. <![CDATA[Fully replaces ACL of files and directories, discarding all existing
  8420. entries.
  8421. @param path Path to modify
  8422. @param aclSpec List<AclEntry> describing modifications, must include entries
  8423. for user, group, and others for compatibility with permission bits.
  8424. @throws IOException if an ACL could not be modified]]>
  8425. </doc>
  8426. </method>
  8427. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  8428. abstract="false" native="false" synchronized="false"
  8429. static="false" final="false" visibility="public"
  8430. deprecated="not deprecated">
  8431. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8432. <exception name="IOException" type="java.io.IOException"/>
  8433. <doc>
  8434. <![CDATA[Gets the ACL of a file or directory.
  8435. @param path Path to get
  8436. @return AclStatus describing the ACL of the file or directory
  8437. @throws IOException if an ACL could not be read]]>
  8438. </doc>
  8439. </method>
  8440. <method name="setXAttr"
  8441. abstract="false" native="false" synchronized="false"
  8442. static="false" final="false" visibility="public"
  8443. deprecated="not deprecated">
  8444. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8445. <param name="name" type="java.lang.String"/>
  8446. <param name="value" type="byte[]"/>
  8447. <exception name="IOException" type="java.io.IOException"/>
  8448. <doc>
  8449. <![CDATA[Set an xattr of a file or directory.
  8450. The name must be prefixed with the namespace followed by ".". For example,
  8451. "user.attr".
  8452. <p/>
  8453. Refer to the HDFS extended attributes user documentation for details.
  8454. @param path Path to modify
  8455. @param name xattr name.
  8456. @param value xattr value.
  8457. @throws IOException]]>
  8458. </doc>
  8459. </method>
  8460. <method name="setXAttr"
  8461. abstract="false" native="false" synchronized="false"
  8462. static="false" final="false" visibility="public"
  8463. deprecated="not deprecated">
  8464. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8465. <param name="name" type="java.lang.String"/>
  8466. <param name="value" type="byte[]"/>
  8467. <param name="flag" type="java.util.EnumSet"/>
  8468. <exception name="IOException" type="java.io.IOException"/>
  8469. <doc>
  8470. <![CDATA[Set an xattr of a file or directory.
  8471. The name must be prefixed with the namespace followed by ".". For example,
  8472. "user.attr".
  8473. <p/>
  8474. Refer to the HDFS extended attributes user documentation for details.
  8475. @param path Path to modify
  8476. @param name xattr name.
  8477. @param value xattr value.
  8478. @param flag xattr set flag
  8479. @throws IOException]]>
  8480. </doc>
  8481. </method>
  8482. <method name="getXAttr" return="byte[]"
  8483. abstract="false" native="false" synchronized="false"
  8484. static="false" final="false" visibility="public"
  8485. deprecated="not deprecated">
  8486. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8487. <param name="name" type="java.lang.String"/>
  8488. <exception name="IOException" type="java.io.IOException"/>
  8489. <doc>
  8490. <![CDATA[Get an xattr name and value for a file or directory.
  8491. The name must be prefixed with the namespace followed by ".". For example,
  8492. "user.attr".
  8493. <p/>
  8494. Refer to the HDFS extended attributes user documentation for details.
  8495. @param path Path to get extended attribute
  8496. @param name xattr name.
  8497. @return byte[] xattr value.
  8498. @throws IOException]]>
  8499. </doc>
  8500. </method>
  8501. <method name="getXAttrs" return="java.util.Map"
  8502. abstract="false" native="false" synchronized="false"
  8503. static="false" final="false" visibility="public"
  8504. deprecated="not deprecated">
  8505. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8506. <exception name="IOException" type="java.io.IOException"/>
  8507. <doc>
  8508. <![CDATA[Get all of the xattr name/value pairs for a file or directory.
  8509. Only those xattrs which the logged-in user has permissions to view
  8510. are returned.
  8511. <p/>
  8512. Refer to the HDFS extended attributes user documentation for details.
  8513. @param path Path to get extended attributes
  8514. @return Map<String, byte[]> describing the XAttrs of the file or directory
  8515. @throws IOException]]>
  8516. </doc>
  8517. </method>
  8518. <method name="getXAttrs" return="java.util.Map"
  8519. abstract="false" native="false" synchronized="false"
  8520. static="false" final="false" visibility="public"
  8521. deprecated="not deprecated">
  8522. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8523. <param name="names" type="java.util.List"/>
  8524. <exception name="IOException" type="java.io.IOException"/>
  8525. <doc>
  8526. <![CDATA[Get all of the xattrs name/value pairs for a file or directory.
  8527. Only those xattrs which the logged-in user has permissions to view
  8528. are returned.
  8529. <p/>
  8530. Refer to the HDFS extended attributes user documentation for details.
  8531. @param path Path to get extended attributes
  8532. @param names XAttr names.
  8533. @return Map<String, byte[]> describing the XAttrs of the file or directory
  8534. @throws IOException]]>
  8535. </doc>
  8536. </method>
  8537. <method name="listXAttrs" return="java.util.List"
  8538. abstract="false" native="false" synchronized="false"
  8539. static="false" final="false" visibility="public"
  8540. deprecated="not deprecated">
  8541. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8542. <exception name="IOException" type="java.io.IOException"/>
  8543. <doc>
  8544. <![CDATA[Get all of the xattr names for a file or directory.
  8545. Only those xattr names which the logged-in user has permissions to view
  8546. are returned.
  8547. <p/>
  8548. Refer to the HDFS extended attributes user documentation for details.
  8549. @param path Path to get extended attributes
  8550. @return List<String> of the XAttr names of the file or directory
  8551. @throws IOException]]>
  8552. </doc>
  8553. </method>
  8554. <method name="removeXAttr"
  8555. abstract="false" native="false" synchronized="false"
  8556. static="false" final="false" visibility="public"
  8557. deprecated="not deprecated">
  8558. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8559. <param name="name" type="java.lang.String"/>
  8560. <exception name="IOException" type="java.io.IOException"/>
  8561. <doc>
  8562. <![CDATA[Remove an xattr of a file or directory.
  8563. The name must be prefixed with the namespace followed by ".". For example,
  8564. "user.attr".
  8565. <p/>
  8566. Refer to the HDFS extended attributes user documentation for details.
  8567. @param path Path to remove extended attribute
  8568. @param name xattr name
  8569. @throws IOException]]>
  8570. </doc>
  8571. </method>
  8572. <method name="getFileSystemClass" return="java.lang.Class"
  8573. abstract="false" native="false" synchronized="false"
  8574. static="true" final="false" visibility="public"
  8575. deprecated="not deprecated">
  8576. <param name="scheme" type="java.lang.String"/>
  8577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8578. <exception name="IOException" type="java.io.IOException"/>
  8579. </method>
  8580. <method name="getStatistics" return="java.util.Map"
  8581. abstract="false" native="false" synchronized="true"
  8582. static="true" final="false" visibility="public"
  8583. deprecated="use {@link #getAllStatistics} instead">
  8584. <doc>
  8585. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  8586. @return a Map having a key as URI scheme and value as Statistics object
  8587. @deprecated use {@link #getAllStatistics} instead]]>
  8588. </doc>
  8589. </method>
  8590. <method name="getAllStatistics" return="java.util.List"
  8591. abstract="false" native="false" synchronized="true"
  8592. static="true" final="false" visibility="public"
  8593. deprecated="not deprecated">
  8594. <doc>
  8595. <![CDATA[Return the FileSystem classes that have Statistics]]>
  8596. </doc>
  8597. </method>
  8598. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  8599. abstract="false" native="false" synchronized="true"
  8600. static="true" final="false" visibility="public"
  8601. deprecated="not deprecated">
  8602. <param name="scheme" type="java.lang.String"/>
  8603. <param name="cls" type="java.lang.Class"/>
  8604. <doc>
  8605. <![CDATA[Get the statistics for a particular file system
  8606. @param cls the class to lookup
  8607. @return a statistics object]]>
  8608. </doc>
  8609. </method>
  8610. <method name="clearStatistics"
  8611. abstract="false" native="false" synchronized="true"
  8612. static="true" final="false" visibility="public"
  8613. deprecated="not deprecated">
  8614. <doc>
  8615. <![CDATA[Reset all statistics for all file systems]]>
  8616. </doc>
  8617. </method>
  8618. <method name="printStatistics"
  8619. abstract="false" native="false" synchronized="true"
  8620. static="true" final="false" visibility="public"
  8621. deprecated="not deprecated">
  8622. <exception name="IOException" type="java.io.IOException"/>
  8623. <doc>
  8624. <![CDATA[Print all statistics for all file systems]]>
  8625. </doc>
  8626. </method>
  8627. <method name="areSymlinksEnabled" return="boolean"
  8628. abstract="false" native="false" synchronized="false"
  8629. static="true" final="false" visibility="public"
  8630. deprecated="not deprecated">
  8631. </method>
  8632. <method name="enableSymlinks"
  8633. abstract="false" native="false" synchronized="false"
  8634. static="true" final="false" visibility="public"
  8635. deprecated="not deprecated">
  8636. </method>
  8637. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  8638. transient="false" volatile="false"
  8639. static="true" final="true" visibility="public"
  8640. deprecated="not deprecated">
  8641. </field>
  8642. <field name="DEFAULT_FS" type="java.lang.String"
  8643. transient="false" volatile="false"
  8644. static="true" final="true" visibility="public"
  8645. deprecated="not deprecated">
  8646. </field>
  8647. <field name="LOG" type="org.apache.commons.logging.Log"
  8648. transient="false" volatile="false"
  8649. static="true" final="true" visibility="public"
  8650. deprecated="not deprecated">
  8651. </field>
  8652. <field name="SHUTDOWN_HOOK_PRIORITY" type="int"
  8653. transient="false" volatile="false"
  8654. static="true" final="true" visibility="public"
  8655. deprecated="not deprecated">
  8656. <doc>
  8657. <![CDATA[Priority of the FileSystem shutdown hook.]]>
  8658. </doc>
  8659. </field>
  8660. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  8661. transient="false" volatile="false"
  8662. static="false" final="false" visibility="protected"
  8663. deprecated="not deprecated">
  8664. <doc>
  8665. <![CDATA[The statistics for this file system.]]>
  8666. </doc>
  8667. </field>
  8668. <doc>
  8669. <![CDATA[An abstract base class for a fairly generic filesystem. It
  8670. may be implemented as a distributed filesystem, or as a "local"
  8671. one that reflects the locally-connected disk. The local version
  8672. exists for small Hadoop instances and for testing.
  8673. <p>
  8674. All user code that may potentially use the Hadoop Distributed
  8675. File System should be written to use a FileSystem object. The
  8676. Hadoop DFS is a multi-machine system that appears as a single
  8677. disk. It's useful because of its fault tolerance and potentially
  8678. very large capacity.
  8679. <p>
  8680. The local implementation is {@link LocalFileSystem} and distributed
  8681. implementation is DistributedFileSystem.]]>
  8682. </doc>
  8683. </class>
  8684. <!-- end class org.apache.hadoop.fs.FileSystem -->
  8685. <!-- start class org.apache.hadoop.fs.FileUtil -->
  8686. <class name="FileUtil" extends="java.lang.Object"
  8687. abstract="false"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. <constructor name="FileUtil"
  8691. static="false" final="false" visibility="public"
  8692. deprecated="not deprecated">
  8693. </constructor>
  8694. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  8695. abstract="false" native="false" synchronized="false"
  8696. static="true" final="false" visibility="public"
  8697. deprecated="not deprecated">
  8698. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  8699. <doc>
  8700. <![CDATA[convert an array of FileStatus to an array of Path
  8701. @param stats
  8702. an array of FileStatus objects
  8703. @return an array of paths corresponding to the input]]>
  8704. </doc>
  8705. </method>
  8706. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  8707. abstract="false" native="false" synchronized="false"
  8708. static="true" final="false" visibility="public"
  8709. deprecated="not deprecated">
  8710. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  8711. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8712. <doc>
  8713. <![CDATA[convert an array of FileStatus to an array of Path.
  8714. If stats if null, return path
  8715. @param stats
  8716. an array of FileStatus objects
  8717. @param path
  8718. default path to return in stats is null
  8719. @return an array of paths corresponding to the input]]>
  8720. </doc>
  8721. </method>
  8722. <method name="fullyDelete" return="boolean"
  8723. abstract="false" native="false" synchronized="false"
  8724. static="true" final="false" visibility="public"
  8725. deprecated="not deprecated">
  8726. <param name="dir" type="java.io.File"/>
  8727. <doc>
  8728. <![CDATA[Delete a directory and all its contents. If
  8729. we return false, the directory may be partially-deleted.
  8730. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  8731. to by the symlink is not deleted.
  8732. (2) If dir is symlink to a directory, symlink is deleted. The directory
  8733. pointed to by symlink is not deleted.
  8734. (3) If dir is a normal file, it is deleted.
  8735. (4) If dir is a normal directory, then dir and all its contents recursively
  8736. are deleted.]]>
  8737. </doc>
  8738. </method>
  8739. <method name="fullyDelete" return="boolean"
  8740. abstract="false" native="false" synchronized="false"
  8741. static="true" final="false" visibility="public"
  8742. deprecated="not deprecated">
  8743. <param name="dir" type="java.io.File"/>
  8744. <param name="tryGrantPermissions" type="boolean"/>
  8745. <doc>
  8746. <![CDATA[Delete a directory and all its contents. If
  8747. we return false, the directory may be partially-deleted.
  8748. (1) If dir is symlink to a file, the symlink is deleted. The file pointed
  8749. to by the symlink is not deleted.
  8750. (2) If dir is symlink to a directory, symlink is deleted. The directory
  8751. pointed to by symlink is not deleted.
  8752. (3) If dir is a normal file, it is deleted.
  8753. (4) If dir is a normal directory, then dir and all its contents recursively
  8754. are deleted.
  8755. @param dir the file or directory to be deleted
  8756. @param tryGrantPermissions true if permissions should be modified to delete a file.
  8757. @return true on success false on failure.]]>
  8758. </doc>
  8759. </method>
  8760. <method name="readLink" return="java.lang.String"
  8761. abstract="false" native="false" synchronized="false"
  8762. static="true" final="false" visibility="public"
  8763. deprecated="not deprecated">
  8764. <param name="f" type="java.io.File"/>
  8765. <doc>
  8766. <![CDATA[Returns the target of the given symlink. Returns the empty string if
  8767. the given path does not refer to a symlink or there is an error
  8768. accessing the symlink.
  8769. @param f File representing the symbolic link.
  8770. @return The target of the symbolic link, empty string on error or if not
  8771. a symlink.]]>
  8772. </doc>
  8773. </method>
  8774. <method name="fullyDeleteContents" return="boolean"
  8775. abstract="false" native="false" synchronized="false"
  8776. static="true" final="false" visibility="public"
  8777. deprecated="not deprecated">
  8778. <param name="dir" type="java.io.File"/>
  8779. <doc>
  8780. <![CDATA[Delete the contents of a directory, not the directory itself. If
  8781. we return false, the directory may be partially-deleted.
  8782. If dir is a symlink to a directory, all the contents of the actual
  8783. directory pointed to by dir will be deleted.]]>
  8784. </doc>
  8785. </method>
  8786. <method name="fullyDeleteContents" return="boolean"
  8787. abstract="false" native="false" synchronized="false"
  8788. static="true" final="false" visibility="public"
  8789. deprecated="not deprecated">
  8790. <param name="dir" type="java.io.File"/>
  8791. <param name="tryGrantPermissions" type="boolean"/>
  8792. <doc>
  8793. <![CDATA[Delete the contents of a directory, not the directory itself. If
  8794. we return false, the directory may be partially-deleted.
  8795. If dir is a symlink to a directory, all the contents of the actual
  8796. directory pointed to by dir will be deleted.
  8797. @param tryGrantPermissions if 'true', try grant +rwx permissions to this
  8798. and all the underlying directories before trying to delete their contents.]]>
  8799. </doc>
  8800. </method>
  8801. <method name="fullyDelete"
  8802. abstract="false" native="false" synchronized="false"
  8803. static="true" final="false" visibility="public"
  8804. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  8805. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8806. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8807. <exception name="IOException" type="java.io.IOException"/>
  8808. <doc>
  8809. <![CDATA[Recursively delete a directory.
  8810. @param fs {@link FileSystem} on which the path is present
  8811. @param dir directory to recursively delete
  8812. @throws IOException
  8813. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  8814. </doc>
  8815. </method>
  8816. <method name="copy" return="boolean"
  8817. abstract="false" native="false" synchronized="false"
  8818. static="true" final="false" visibility="public"
  8819. deprecated="not deprecated">
  8820. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8821. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8822. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8823. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8824. <param name="deleteSource" type="boolean"/>
  8825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8826. <exception name="IOException" type="java.io.IOException"/>
  8827. <doc>
  8828. <![CDATA[Copy files between FileSystems.]]>
  8829. </doc>
  8830. </method>
  8831. <method name="copy" return="boolean"
  8832. abstract="false" native="false" synchronized="false"
  8833. static="true" final="false" visibility="public"
  8834. deprecated="not deprecated">
  8835. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8836. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8837. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8838. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8839. <param name="deleteSource" type="boolean"/>
  8840. <param name="overwrite" type="boolean"/>
  8841. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8842. <exception name="IOException" type="java.io.IOException"/>
  8843. </method>
  8844. <method name="copy" return="boolean"
  8845. abstract="false" native="false" synchronized="false"
  8846. static="true" final="false" visibility="public"
  8847. deprecated="not deprecated">
  8848. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8849. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8850. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8851. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8852. <param name="deleteSource" type="boolean"/>
  8853. <param name="overwrite" type="boolean"/>
  8854. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8855. <exception name="IOException" type="java.io.IOException"/>
  8856. <doc>
  8857. <![CDATA[Copy files between FileSystems.]]>
  8858. </doc>
  8859. </method>
  8860. <method name="copy" return="boolean"
  8861. abstract="false" native="false" synchronized="false"
  8862. static="true" final="false" visibility="public"
  8863. deprecated="not deprecated">
  8864. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8865. <param name="srcStatus" type="org.apache.hadoop.fs.FileStatus"/>
  8866. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8867. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8868. <param name="deleteSource" type="boolean"/>
  8869. <param name="overwrite" type="boolean"/>
  8870. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8871. <exception name="IOException" type="java.io.IOException"/>
  8872. <doc>
  8873. <![CDATA[Copy files between FileSystems.]]>
  8874. </doc>
  8875. </method>
  8876. <method name="copyMerge" return="boolean"
  8877. abstract="false" native="false" synchronized="false"
  8878. static="true" final="false" visibility="public"
  8879. deprecated="not deprecated">
  8880. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8881. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  8882. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8883. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  8884. <param name="deleteSource" type="boolean"/>
  8885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8886. <param name="addString" type="java.lang.String"/>
  8887. <exception name="IOException" type="java.io.IOException"/>
  8888. <doc>
  8889. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  8890. </doc>
  8891. </method>
  8892. <method name="copy" return="boolean"
  8893. abstract="false" native="false" synchronized="false"
  8894. static="true" final="false" visibility="public"
  8895. deprecated="not deprecated">
  8896. <param name="src" type="java.io.File"/>
  8897. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8898. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8899. <param name="deleteSource" type="boolean"/>
  8900. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8901. <exception name="IOException" type="java.io.IOException"/>
  8902. <doc>
  8903. <![CDATA[Copy local files to a FileSystem.]]>
  8904. </doc>
  8905. </method>
  8906. <method name="copy" return="boolean"
  8907. abstract="false" native="false" synchronized="false"
  8908. static="true" final="false" visibility="public"
  8909. deprecated="not deprecated">
  8910. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8911. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8912. <param name="dst" type="java.io.File"/>
  8913. <param name="deleteSource" type="boolean"/>
  8914. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8915. <exception name="IOException" type="java.io.IOException"/>
  8916. <doc>
  8917. <![CDATA[Copy FileSystem files to local files.]]>
  8918. </doc>
  8919. </method>
  8920. <method name="makeShellPath" return="java.lang.String"
  8921. abstract="false" native="false" synchronized="false"
  8922. static="true" final="false" visibility="public"
  8923. deprecated="not deprecated">
  8924. <param name="filename" type="java.lang.String"/>
  8925. <exception name="IOException" type="java.io.IOException"/>
  8926. <doc>
  8927. <![CDATA[Convert a os-native filename to a path that works for the shell.
  8928. @param filename The filename to convert
  8929. @return The unix pathname
  8930. @throws IOException on windows, there can be problems with the subprocess]]>
  8931. </doc>
  8932. </method>
  8933. <method name="makeShellPath" return="java.lang.String"
  8934. abstract="false" native="false" synchronized="false"
  8935. static="true" final="false" visibility="public"
  8936. deprecated="not deprecated">
  8937. <param name="file" type="java.io.File"/>
  8938. <exception name="IOException" type="java.io.IOException"/>
  8939. <doc>
  8940. <![CDATA[Convert a os-native filename to a path that works for the shell.
  8941. @param file The filename to convert
  8942. @return The unix pathname
  8943. @throws IOException on windows, there can be problems with the subprocess]]>
  8944. </doc>
  8945. </method>
  8946. <method name="makeShellPath" return="java.lang.String"
  8947. abstract="false" native="false" synchronized="false"
  8948. static="true" final="false" visibility="public"
  8949. deprecated="not deprecated">
  8950. <param name="file" type="java.io.File"/>
  8951. <param name="makeCanonicalPath" type="boolean"/>
  8952. <exception name="IOException" type="java.io.IOException"/>
  8953. <doc>
  8954. <![CDATA[Convert a os-native filename to a path that works for the shell.
  8955. @param file The filename to convert
  8956. @param makeCanonicalPath
  8957. Whether to make canonical path for the file passed
  8958. @return The unix pathname
  8959. @throws IOException on windows, there can be problems with the subprocess]]>
  8960. </doc>
  8961. </method>
  8962. <method name="getDU" return="long"
  8963. abstract="false" native="false" synchronized="false"
  8964. static="true" final="false" visibility="public"
  8965. deprecated="not deprecated">
  8966. <param name="dir" type="java.io.File"/>
  8967. <doc>
  8968. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  8969. implementation.
  8970. @param dir
  8971. The input dir to get the disk space of this local dir
  8972. @return The total disk space of the input local directory]]>
  8973. </doc>
  8974. </method>
  8975. <method name="unZip"
  8976. abstract="false" native="false" synchronized="false"
  8977. static="true" final="false" visibility="public"
  8978. deprecated="not deprecated">
  8979. <param name="inFile" type="java.io.File"/>
  8980. <param name="unzipDir" type="java.io.File"/>
  8981. <exception name="IOException" type="java.io.IOException"/>
  8982. <doc>
  8983. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  8984. passed as the second parameter
  8985. @param inFile The zip file as input
  8986. @param unzipDir The unzip directory where to unzip the zip file.
  8987. @throws IOException]]>
  8988. </doc>
  8989. </method>
  8990. <method name="unTar"
  8991. abstract="false" native="false" synchronized="false"
  8992. static="true" final="false" visibility="public"
  8993. deprecated="not deprecated">
  8994. <param name="inFile" type="java.io.File"/>
  8995. <param name="untarDir" type="java.io.File"/>
  8996. <exception name="IOException" type="java.io.IOException"/>
  8997. <doc>
  8998. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  8999. passed as the second parameter
  9000. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  9001. @param inFile The tar file as input.
  9002. @param untarDir The untar directory where to untar the tar file.
  9003. @throws IOException]]>
  9004. </doc>
  9005. </method>
  9006. <method name="symLink" return="int"
  9007. abstract="false" native="false" synchronized="false"
  9008. static="true" final="false" visibility="public"
  9009. deprecated="not deprecated">
  9010. <param name="target" type="java.lang.String"/>
  9011. <param name="linkname" type="java.lang.String"/>
  9012. <exception name="IOException" type="java.io.IOException"/>
  9013. <doc>
  9014. <![CDATA[Create a soft link between a src and destination
  9015. only on a local disk. HDFS does not support this.
  9016. On Windows, when symlink creation fails due to security
  9017. setting, we will log a warning. The return code in this
  9018. case is 2.
  9019. @param target the target for symlink
  9020. @param linkname the symlink
  9021. @return 0 on success]]>
  9022. </doc>
  9023. </method>
  9024. <method name="chmod" return="int"
  9025. abstract="false" native="false" synchronized="false"
  9026. static="true" final="false" visibility="public"
  9027. deprecated="not deprecated">
  9028. <param name="filename" type="java.lang.String"/>
  9029. <param name="perm" type="java.lang.String"/>
  9030. <exception name="IOException" type="java.io.IOException"/>
  9031. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9032. <doc>
  9033. <![CDATA[Change the permissions on a filename.
  9034. @param filename the name of the file to change
  9035. @param perm the permission string
  9036. @return the exit code from the command
  9037. @throws IOException
  9038. @throws InterruptedException]]>
  9039. </doc>
  9040. </method>
  9041. <method name="chmod" return="int"
  9042. abstract="false" native="false" synchronized="false"
  9043. static="true" final="false" visibility="public"
  9044. deprecated="not deprecated">
  9045. <param name="filename" type="java.lang.String"/>
  9046. <param name="perm" type="java.lang.String"/>
  9047. <param name="recursive" type="boolean"/>
  9048. <exception name="IOException" type="java.io.IOException"/>
  9049. <doc>
  9050. <![CDATA[Change the permissions on a file / directory, recursively, if
  9051. needed.
  9052. @param filename name of the file whose permissions are to change
  9053. @param perm permission string
  9054. @param recursive true, if permissions should be changed recursively
  9055. @return the exit code from the command.
  9056. @throws IOException]]>
  9057. </doc>
  9058. </method>
  9059. <method name="setOwner"
  9060. abstract="false" native="false" synchronized="false"
  9061. static="true" final="false" visibility="public"
  9062. deprecated="not deprecated">
  9063. <param name="file" type="java.io.File"/>
  9064. <param name="username" type="java.lang.String"/>
  9065. <param name="groupname" type="java.lang.String"/>
  9066. <exception name="IOException" type="java.io.IOException"/>
  9067. <doc>
  9068. <![CDATA[Set the ownership on a file / directory. User name and group name
  9069. cannot both be null.
  9070. @param file the file to change
  9071. @param username the new user owner name
  9072. @param groupname the new group owner name
  9073. @throws IOException]]>
  9074. </doc>
  9075. </method>
  9076. <method name="setReadable" return="boolean"
  9077. abstract="false" native="false" synchronized="false"
  9078. static="true" final="false" visibility="public"
  9079. deprecated="not deprecated">
  9080. <param name="f" type="java.io.File"/>
  9081. <param name="readable" type="boolean"/>
  9082. <doc>
  9083. <![CDATA[Platform independent implementation for {@link File#setReadable(boolean)}
  9084. File#setReadable does not work as expected on Windows.
  9085. @param f input file
  9086. @param readable
  9087. @return true on success, false otherwise]]>
  9088. </doc>
  9089. </method>
  9090. <method name="setWritable" return="boolean"
  9091. abstract="false" native="false" synchronized="false"
  9092. static="true" final="false" visibility="public"
  9093. deprecated="not deprecated">
  9094. <param name="f" type="java.io.File"/>
  9095. <param name="writable" type="boolean"/>
  9096. <doc>
  9097. <![CDATA[Platform independent implementation for {@link File#setWritable(boolean)}
  9098. File#setWritable does not work as expected on Windows.
  9099. @param f input file
  9100. @param writable
  9101. @return true on success, false otherwise]]>
  9102. </doc>
  9103. </method>
  9104. <method name="setExecutable" return="boolean"
  9105. abstract="false" native="false" synchronized="false"
  9106. static="true" final="false" visibility="public"
  9107. deprecated="not deprecated">
  9108. <param name="f" type="java.io.File"/>
  9109. <param name="executable" type="boolean"/>
  9110. <doc>
  9111. <![CDATA[Platform independent implementation for {@link File#setExecutable(boolean)}
  9112. File#setExecutable does not work as expected on Windows.
  9113. Note: revoking execute permission on folders does not have the same
  9114. behavior on Windows as on Unix platforms. Creating, deleting or renaming
  9115. a file within that folder will still succeed on Windows.
  9116. @param f input file
  9117. @param executable
  9118. @return true on success, false otherwise]]>
  9119. </doc>
  9120. </method>
  9121. <method name="canRead" return="boolean"
  9122. abstract="false" native="false" synchronized="false"
  9123. static="true" final="false" visibility="public"
  9124. deprecated="not deprecated">
  9125. <param name="f" type="java.io.File"/>
  9126. <doc>
  9127. <![CDATA[Platform independent implementation for {@link File#canRead()}
  9128. @param f input file
  9129. @return On Unix, same as {@link File#canRead()}
  9130. On Windows, true if process has read access on the path]]>
  9131. </doc>
  9132. </method>
  9133. <method name="canWrite" return="boolean"
  9134. abstract="false" native="false" synchronized="false"
  9135. static="true" final="false" visibility="public"
  9136. deprecated="not deprecated">
  9137. <param name="f" type="java.io.File"/>
  9138. <doc>
  9139. <![CDATA[Platform independent implementation for {@link File#canWrite()}
  9140. @param f input file
  9141. @return On Unix, same as {@link File#canWrite()}
  9142. On Windows, true if process has write access on the path]]>
  9143. </doc>
  9144. </method>
  9145. <method name="canExecute" return="boolean"
  9146. abstract="false" native="false" synchronized="false"
  9147. static="true" final="false" visibility="public"
  9148. deprecated="not deprecated">
  9149. <param name="f" type="java.io.File"/>
  9150. <doc>
  9151. <![CDATA[Platform independent implementation for {@link File#canExecute()}
  9152. @param f input file
  9153. @return On Unix, same as {@link File#canExecute()}
  9154. On Windows, true if process has execute access on the path]]>
  9155. </doc>
  9156. </method>
  9157. <method name="setPermission"
  9158. abstract="false" native="false" synchronized="false"
  9159. static="true" final="false" visibility="public"
  9160. deprecated="not deprecated">
  9161. <param name="f" type="java.io.File"/>
  9162. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9163. <exception name="IOException" type="java.io.IOException"/>
  9164. <doc>
  9165. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  9166. of forking if group == other.
  9167. @param f the file to change
  9168. @param permission the new permissions
  9169. @throws IOException]]>
  9170. </doc>
  9171. </method>
  9172. <method name="createLocalTempFile" return="java.io.File"
  9173. abstract="false" native="false" synchronized="false"
  9174. static="true" final="true" visibility="public"
  9175. deprecated="not deprecated">
  9176. <param name="basefile" type="java.io.File"/>
  9177. <param name="prefix" type="java.lang.String"/>
  9178. <param name="isDeleteOnExit" type="boolean"/>
  9179. <exception name="IOException" type="java.io.IOException"/>
  9180. <doc>
  9181. <![CDATA[Create a tmp file for a base file.
  9182. @param basefile the base file of the tmp
  9183. @param prefix file name prefix of tmp
  9184. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  9185. @return a newly created tmp file
  9186. @exception IOException If a tmp file cannot created
  9187. @see java.io.File#createTempFile(String, String, File)
  9188. @see java.io.File#deleteOnExit()]]>
  9189. </doc>
  9190. </method>
  9191. <method name="replaceFile"
  9192. abstract="false" native="false" synchronized="false"
  9193. static="true" final="false" visibility="public"
  9194. deprecated="not deprecated">
  9195. <param name="src" type="java.io.File"/>
  9196. <param name="target" type="java.io.File"/>
  9197. <exception name="IOException" type="java.io.IOException"/>
  9198. <doc>
  9199. <![CDATA[Move the src file to the name specified by target.
  9200. @param src the source file
  9201. @param target the target file
  9202. @exception IOException If this operation fails]]>
  9203. </doc>
  9204. </method>
  9205. <method name="listFiles" return="java.io.File[]"
  9206. abstract="false" native="false" synchronized="false"
  9207. static="true" final="false" visibility="public"
  9208. deprecated="not deprecated">
  9209. <param name="dir" type="java.io.File"/>
  9210. <exception name="IOException" type="java.io.IOException"/>
  9211. <doc>
  9212. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  9213. when a dir is not a directory or for any I/O error. Instead of having
  9214. null check everywhere File#listFiles() is used, we will add utility API
  9215. to get around this problem. For the majority of cases where we prefer
  9216. an IOException to be thrown.
  9217. @param dir directory for which listing should be performed
  9218. @return list of files or empty list
  9219. @exception IOException for invalid directory or for a bad disk.]]>
  9220. </doc>
  9221. </method>
  9222. <method name="list" return="java.lang.String[]"
  9223. abstract="false" native="false" synchronized="false"
  9224. static="true" final="false" visibility="public"
  9225. deprecated="not deprecated">
  9226. <param name="dir" type="java.io.File"/>
  9227. <exception name="IOException" type="java.io.IOException"/>
  9228. <doc>
  9229. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  9230. when a dir is not a directory or for any I/O error. Instead of having
  9231. null check everywhere File#list() is used, we will add utility API
  9232. to get around this problem. For the majority of cases where we prefer
  9233. an IOException to be thrown.
  9234. @param dir directory for which listing should be performed
  9235. @return list of file names or empty string list
  9236. @exception IOException for invalid directory or for a bad disk.]]>
  9237. </doc>
  9238. </method>
  9239. <method name="createJarWithClassPath" return="java.lang.String[]"
  9240. abstract="false" native="false" synchronized="false"
  9241. static="true" final="false" visibility="public"
  9242. deprecated="not deprecated">
  9243. <param name="inputClassPath" type="java.lang.String"/>
  9244. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  9245. <param name="callerEnv" type="java.util.Map"/>
  9246. <exception name="IOException" type="java.io.IOException"/>
  9247. </method>
  9248. <method name="createJarWithClassPath" return="java.lang.String[]"
  9249. abstract="false" native="false" synchronized="false"
  9250. static="true" final="false" visibility="public"
  9251. deprecated="not deprecated">
  9252. <param name="inputClassPath" type="java.lang.String"/>
  9253. <param name="pwd" type="org.apache.hadoop.fs.Path"/>
  9254. <param name="targetDir" type="org.apache.hadoop.fs.Path"/>
  9255. <param name="callerEnv" type="java.util.Map"/>
  9256. <exception name="IOException" type="java.io.IOException"/>
  9257. <doc>
  9258. <![CDATA[Create a jar file at the given path, containing a manifest with a classpath
  9259. that references all specified entries.
  9260. Some platforms may have an upper limit on command line length. For example,
  9261. the maximum command line length on Windows is 8191 characters, but the
  9262. length of the classpath may exceed this. To work around this limitation,
  9263. use this method to create a small intermediate jar with a manifest that
  9264. contains the full classpath. It returns the absolute path to the new jar,
  9265. which the caller may set as the classpath for a new process.
  9266. Environment variable evaluation is not supported within a jar manifest, so
  9267. this method expands environment variables before inserting classpath entries
  9268. to the manifest. The method parses environment variables according to
  9269. platform-specific syntax (%VAR% on Windows, or $VAR otherwise). On Windows,
  9270. environment variables are case-insensitive. For example, %VAR% and %var%
  9271. evaluate to the same value.
  9272. Specifying the classpath in a jar manifest does not support wildcards, so
  9273. this method expands wildcards internally. Any classpath entry that ends
  9274. with * is translated to all files at that path with extension .jar or .JAR.
  9275. @param inputClassPath String input classpath to bundle into the jar manifest
  9276. @param pwd Path to working directory to save jar
  9277. @param targetDir path to where the jar execution will have its working dir
  9278. @param callerEnv Map<String, String> caller's environment variables to use
  9279. for expansion
  9280. @return String[] with absolute path to new jar in position 0 and
  9281. unexpanded wild card entry path in position 1
  9282. @throws IOException if there is an I/O error while writing the jar file]]>
  9283. </doc>
  9284. </method>
  9285. <field name="SYMLINK_NO_PRIVILEGE" type="int"
  9286. transient="false" volatile="false"
  9287. static="true" final="true" visibility="public"
  9288. deprecated="not deprecated">
  9289. </field>
  9290. <doc>
  9291. <![CDATA[A collection of file-processing util methods]]>
  9292. </doc>
  9293. </class>
  9294. <!-- end class org.apache.hadoop.fs.FileUtil -->
  9295. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  9296. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  9297. abstract="false"
  9298. static="false" final="false" visibility="public"
  9299. deprecated="not deprecated">
  9300. <constructor name="FilterFileSystem"
  9301. static="false" final="false" visibility="public"
  9302. deprecated="not deprecated">
  9303. </constructor>
  9304. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  9305. static="false" final="false" visibility="public"
  9306. deprecated="not deprecated">
  9307. </constructor>
  9308. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  9309. abstract="false" native="false" synchronized="false"
  9310. static="false" final="false" visibility="public"
  9311. deprecated="not deprecated">
  9312. <doc>
  9313. <![CDATA[Get the raw file system
  9314. @return FileSystem being filtered]]>
  9315. </doc>
  9316. </method>
  9317. <method name="initialize"
  9318. abstract="false" native="false" synchronized="false"
  9319. static="false" final="false" visibility="public"
  9320. deprecated="not deprecated">
  9321. <param name="name" type="java.net.URI"/>
  9322. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9323. <exception name="IOException" type="java.io.IOException"/>
  9324. <doc>
  9325. <![CDATA[Called after a new FileSystem instance is constructed.
  9326. @param name a uri whose authority section names the host, port, etc.
  9327. for this FileSystem
  9328. @param conf the configuration]]>
  9329. </doc>
  9330. </method>
  9331. <method name="getUri" return="java.net.URI"
  9332. abstract="false" native="false" synchronized="false"
  9333. static="false" final="false" visibility="public"
  9334. deprecated="not deprecated">
  9335. <doc>
  9336. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  9337. </doc>
  9338. </method>
  9339. <method name="getCanonicalUri" return="java.net.URI"
  9340. abstract="false" native="false" synchronized="false"
  9341. static="false" final="false" visibility="protected"
  9342. deprecated="not deprecated">
  9343. </method>
  9344. <method name="canonicalizeUri" return="java.net.URI"
  9345. abstract="false" native="false" synchronized="false"
  9346. static="false" final="false" visibility="protected"
  9347. deprecated="not deprecated">
  9348. <param name="uri" type="java.net.URI"/>
  9349. </method>
  9350. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  9351. abstract="false" native="false" synchronized="false"
  9352. static="false" final="false" visibility="public"
  9353. deprecated="not deprecated">
  9354. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9355. <doc>
  9356. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  9357. </doc>
  9358. </method>
  9359. <method name="checkPath"
  9360. abstract="false" native="false" synchronized="false"
  9361. static="false" final="false" visibility="protected"
  9362. deprecated="not deprecated">
  9363. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9364. <doc>
  9365. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  9366. </doc>
  9367. </method>
  9368. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9369. abstract="false" native="false" synchronized="false"
  9370. static="false" final="false" visibility="public"
  9371. deprecated="not deprecated">
  9372. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  9373. <param name="start" type="long"/>
  9374. <param name="len" type="long"/>
  9375. <exception name="IOException" type="java.io.IOException"/>
  9376. </method>
  9377. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  9378. abstract="false" native="false" synchronized="false"
  9379. static="false" final="false" visibility="public"
  9380. deprecated="not deprecated">
  9381. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9382. <exception name="IOException" type="java.io.IOException"/>
  9383. </method>
  9384. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9385. abstract="false" native="false" synchronized="false"
  9386. static="false" final="false" visibility="public"
  9387. deprecated="not deprecated">
  9388. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9389. <param name="bufferSize" type="int"/>
  9390. <exception name="IOException" type="java.io.IOException"/>
  9391. <doc>
  9392. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9393. @param f the file name to open
  9394. @param bufferSize the size of the buffer to be used.]]>
  9395. </doc>
  9396. </method>
  9397. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9398. abstract="false" native="false" synchronized="false"
  9399. static="false" final="false" visibility="public"
  9400. deprecated="not deprecated">
  9401. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9402. <param name="bufferSize" type="int"/>
  9403. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9404. <exception name="IOException" type="java.io.IOException"/>
  9405. </method>
  9406. <method name="concat"
  9407. abstract="false" native="false" synchronized="false"
  9408. static="false" final="false" visibility="public"
  9409. deprecated="not deprecated">
  9410. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9411. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  9412. <exception name="IOException" type="java.io.IOException"/>
  9413. </method>
  9414. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9415. abstract="false" native="false" synchronized="false"
  9416. static="false" final="false" visibility="public"
  9417. deprecated="not deprecated">
  9418. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9419. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9420. <param name="overwrite" type="boolean"/>
  9421. <param name="bufferSize" type="int"/>
  9422. <param name="replication" type="short"/>
  9423. <param name="blockSize" type="long"/>
  9424. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9425. <exception name="IOException" type="java.io.IOException"/>
  9426. </method>
  9427. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9428. abstract="false" native="false" synchronized="false"
  9429. static="false" final="false" visibility="public"
  9430. deprecated="not deprecated">
  9431. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9432. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9433. <param name="flags" type="java.util.EnumSet"/>
  9434. <param name="bufferSize" type="int"/>
  9435. <param name="replication" type="short"/>
  9436. <param name="blockSize" type="long"/>
  9437. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9438. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9439. <exception name="IOException" type="java.io.IOException"/>
  9440. </method>
  9441. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  9442. abstract="false" native="false" synchronized="false"
  9443. static="false" final="false" visibility="public"
  9444. deprecated="not deprecated">
  9445. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9446. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9447. <param name="flags" type="java.util.EnumSet"/>
  9448. <param name="bufferSize" type="int"/>
  9449. <param name="replication" type="short"/>
  9450. <param name="blockSize" type="long"/>
  9451. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9452. <exception name="IOException" type="java.io.IOException"/>
  9453. </method>
  9454. <method name="setReplication" return="boolean"
  9455. abstract="false" native="false" synchronized="false"
  9456. static="false" final="false" visibility="public"
  9457. deprecated="not deprecated">
  9458. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9459. <param name="replication" type="short"/>
  9460. <exception name="IOException" type="java.io.IOException"/>
  9461. <doc>
  9462. <![CDATA[Set replication for an existing file.
  9463. @param src file name
  9464. @param replication new replication
  9465. @throws IOException
  9466. @return true if successful;
  9467. false if file does not exist or is a directory]]>
  9468. </doc>
  9469. </method>
  9470. <method name="rename" return="boolean"
  9471. abstract="false" native="false" synchronized="false"
  9472. static="false" final="false" visibility="public"
  9473. deprecated="not deprecated">
  9474. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9475. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9476. <exception name="IOException" type="java.io.IOException"/>
  9477. <doc>
  9478. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  9479. or remote DFS.]]>
  9480. </doc>
  9481. </method>
  9482. <method name="truncate" return="boolean"
  9483. abstract="false" native="false" synchronized="false"
  9484. static="false" final="false" visibility="public"
  9485. deprecated="not deprecated">
  9486. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9487. <param name="newLength" type="long"/>
  9488. <exception name="IOException" type="java.io.IOException"/>
  9489. </method>
  9490. <method name="delete" return="boolean"
  9491. abstract="false" native="false" synchronized="false"
  9492. static="false" final="false" visibility="public"
  9493. deprecated="not deprecated">
  9494. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9495. <param name="recursive" type="boolean"/>
  9496. <exception name="IOException" type="java.io.IOException"/>
  9497. <doc>
  9498. <![CDATA[Delete a file]]>
  9499. </doc>
  9500. </method>
  9501. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9502. abstract="false" native="false" synchronized="false"
  9503. static="false" final="false" visibility="public"
  9504. deprecated="not deprecated">
  9505. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9506. <exception name="IOException" type="java.io.IOException"/>
  9507. <doc>
  9508. <![CDATA[List files in a directory.]]>
  9509. </doc>
  9510. </method>
  9511. <method name="listCorruptFileBlocks" return="org.apache.hadoop.fs.RemoteIterator"
  9512. abstract="false" native="false" synchronized="false"
  9513. static="false" final="false" visibility="public"
  9514. deprecated="not deprecated">
  9515. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9516. <exception name="IOException" type="java.io.IOException"/>
  9517. </method>
  9518. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  9519. abstract="false" native="false" synchronized="false"
  9520. static="false" final="false" visibility="public"
  9521. deprecated="not deprecated">
  9522. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9523. <exception name="IOException" type="java.io.IOException"/>
  9524. <doc>
  9525. <![CDATA[List files and its block locations in a directory.]]>
  9526. </doc>
  9527. </method>
  9528. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  9529. abstract="false" native="false" synchronized="false"
  9530. static="false" final="false" visibility="public"
  9531. deprecated="not deprecated">
  9532. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9533. <exception name="IOException" type="java.io.IOException"/>
  9534. <doc>
  9535. <![CDATA[Return a remote iterator for listing in a directory]]>
  9536. </doc>
  9537. </method>
  9538. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9539. abstract="false" native="false" synchronized="false"
  9540. static="false" final="false" visibility="public"
  9541. deprecated="not deprecated">
  9542. </method>
  9543. <method name="setWorkingDirectory"
  9544. abstract="false" native="false" synchronized="false"
  9545. static="false" final="false" visibility="public"
  9546. deprecated="not deprecated">
  9547. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  9548. <doc>
  9549. <![CDATA[Set the current working directory for the given file system. All relative
  9550. paths will be resolved relative to it.
  9551. @param newDir]]>
  9552. </doc>
  9553. </method>
  9554. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9555. abstract="false" native="false" synchronized="false"
  9556. static="false" final="false" visibility="public"
  9557. deprecated="not deprecated">
  9558. <doc>
  9559. <![CDATA[Get the current working directory for the given file system
  9560. @return the directory pathname]]>
  9561. </doc>
  9562. </method>
  9563. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9564. abstract="false" native="false" synchronized="false"
  9565. static="false" final="false" visibility="protected"
  9566. deprecated="not deprecated">
  9567. </method>
  9568. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  9569. abstract="false" native="false" synchronized="false"
  9570. static="false" final="false" visibility="public"
  9571. deprecated="not deprecated">
  9572. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9573. <exception name="IOException" type="java.io.IOException"/>
  9574. </method>
  9575. <method name="mkdirs" return="boolean"
  9576. abstract="false" native="false" synchronized="false"
  9577. static="false" final="false" visibility="public"
  9578. deprecated="not deprecated">
  9579. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9580. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9581. <exception name="IOException" type="java.io.IOException"/>
  9582. </method>
  9583. <method name="copyFromLocalFile"
  9584. abstract="false" native="false" synchronized="false"
  9585. static="false" final="false" visibility="public"
  9586. deprecated="not deprecated">
  9587. <param name="delSrc" type="boolean"/>
  9588. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9589. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9590. <exception name="IOException" type="java.io.IOException"/>
  9591. <doc>
  9592. <![CDATA[The src file is on the local disk. Add it to FS at
  9593. the given dst name.
  9594. delSrc indicates if the source should be removed]]>
  9595. </doc>
  9596. </method>
  9597. <method name="copyFromLocalFile"
  9598. abstract="false" native="false" synchronized="false"
  9599. static="false" final="false" visibility="public"
  9600. deprecated="not deprecated">
  9601. <param name="delSrc" type="boolean"/>
  9602. <param name="overwrite" type="boolean"/>
  9603. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9604. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9605. <exception name="IOException" type="java.io.IOException"/>
  9606. <doc>
  9607. <![CDATA[The src files are on the local disk. Add it to FS at
  9608. the given dst name.
  9609. delSrc indicates if the source should be removed]]>
  9610. </doc>
  9611. </method>
  9612. <method name="copyFromLocalFile"
  9613. abstract="false" native="false" synchronized="false"
  9614. static="false" final="false" visibility="public"
  9615. deprecated="not deprecated">
  9616. <param name="delSrc" type="boolean"/>
  9617. <param name="overwrite" type="boolean"/>
  9618. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9619. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9620. <exception name="IOException" type="java.io.IOException"/>
  9621. <doc>
  9622. <![CDATA[The src file is on the local disk. Add it to FS at
  9623. the given dst name.
  9624. delSrc indicates if the source should be removed]]>
  9625. </doc>
  9626. </method>
  9627. <method name="copyToLocalFile"
  9628. abstract="false" native="false" synchronized="false"
  9629. static="false" final="false" visibility="public"
  9630. deprecated="not deprecated">
  9631. <param name="delSrc" type="boolean"/>
  9632. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9633. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9634. <exception name="IOException" type="java.io.IOException"/>
  9635. <doc>
  9636. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9637. Copy it from FS control to the local dst name.
  9638. delSrc indicates if the src will be removed or not.]]>
  9639. </doc>
  9640. </method>
  9641. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9642. abstract="false" native="false" synchronized="false"
  9643. static="false" final="false" visibility="public"
  9644. deprecated="not deprecated">
  9645. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9646. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9647. <exception name="IOException" type="java.io.IOException"/>
  9648. <doc>
  9649. <![CDATA[Returns a local File that the user can write output to. The caller
  9650. provides both the eventual FS target name and the local working
  9651. file. If the FS is local, we write directly into the target. If
  9652. the FS is remote, we write into the tmp local area.]]>
  9653. </doc>
  9654. </method>
  9655. <method name="completeLocalOutput"
  9656. abstract="false" native="false" synchronized="false"
  9657. static="false" final="false" visibility="public"
  9658. deprecated="not deprecated">
  9659. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9660. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9661. <exception name="IOException" type="java.io.IOException"/>
  9662. <doc>
  9663. <![CDATA[Called when we're all done writing to the target. A local FS will
  9664. do nothing, because we've written to exactly the right place. A remote
  9665. FS will copy the contents of tmpLocalFile to the correct target at
  9666. fsOutputFile.]]>
  9667. </doc>
  9668. </method>
  9669. <method name="getUsed" return="long"
  9670. abstract="false" native="false" synchronized="false"
  9671. static="false" final="false" visibility="public"
  9672. deprecated="not deprecated">
  9673. <exception name="IOException" type="java.io.IOException"/>
  9674. <doc>
  9675. <![CDATA[Return the total size of all files in the filesystem.]]>
  9676. </doc>
  9677. </method>
  9678. <method name="getDefaultBlockSize" return="long"
  9679. abstract="false" native="false" synchronized="false"
  9680. static="false" final="false" visibility="public"
  9681. deprecated="not deprecated">
  9682. </method>
  9683. <method name="getDefaultReplication" return="short"
  9684. abstract="false" native="false" synchronized="false"
  9685. static="false" final="false" visibility="public"
  9686. deprecated="not deprecated">
  9687. </method>
  9688. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  9689. abstract="false" native="false" synchronized="false"
  9690. static="false" final="false" visibility="public"
  9691. deprecated="not deprecated">
  9692. <exception name="IOException" type="java.io.IOException"/>
  9693. </method>
  9694. <method name="getDefaultBlockSize" return="long"
  9695. abstract="false" native="false" synchronized="false"
  9696. static="false" final="false" visibility="public"
  9697. deprecated="not deprecated">
  9698. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9699. </method>
  9700. <method name="getDefaultReplication" return="short"
  9701. abstract="false" native="false" synchronized="false"
  9702. static="false" final="false" visibility="public"
  9703. deprecated="not deprecated">
  9704. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9705. </method>
  9706. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  9707. abstract="false" native="false" synchronized="false"
  9708. static="false" final="false" visibility="public"
  9709. deprecated="not deprecated">
  9710. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9711. <exception name="IOException" type="java.io.IOException"/>
  9712. </method>
  9713. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9714. abstract="false" native="false" synchronized="false"
  9715. static="false" final="false" visibility="public"
  9716. deprecated="not deprecated">
  9717. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9718. <exception name="IOException" type="java.io.IOException"/>
  9719. <doc>
  9720. <![CDATA[Get file status.]]>
  9721. </doc>
  9722. </method>
  9723. <method name="access"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9728. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  9729. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9730. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9731. <exception name="IOException" type="java.io.IOException"/>
  9732. </method>
  9733. <method name="createSymlink"
  9734. abstract="false" native="false" synchronized="false"
  9735. static="false" final="false" visibility="public"
  9736. deprecated="not deprecated">
  9737. <param name="target" type="org.apache.hadoop.fs.Path"/>
  9738. <param name="link" type="org.apache.hadoop.fs.Path"/>
  9739. <param name="createParent" type="boolean"/>
  9740. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9741. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  9742. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9743. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  9744. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9745. <exception name="IOException" type="java.io.IOException"/>
  9746. </method>
  9747. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  9748. abstract="false" native="false" synchronized="false"
  9749. static="false" final="false" visibility="public"
  9750. deprecated="not deprecated">
  9751. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9752. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  9753. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  9754. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  9755. <exception name="IOException" type="java.io.IOException"/>
  9756. </method>
  9757. <method name="supportsSymlinks" return="boolean"
  9758. abstract="false" native="false" synchronized="false"
  9759. static="false" final="false" visibility="public"
  9760. deprecated="not deprecated">
  9761. </method>
  9762. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  9763. abstract="false" native="false" synchronized="false"
  9764. static="false" final="false" visibility="public"
  9765. deprecated="not deprecated">
  9766. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9767. <exception name="IOException" type="java.io.IOException"/>
  9768. </method>
  9769. <method name="resolveLink" return="org.apache.hadoop.fs.Path"
  9770. abstract="false" native="false" synchronized="false"
  9771. static="false" final="false" visibility="protected"
  9772. deprecated="not deprecated">
  9773. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9774. <exception name="IOException" type="java.io.IOException"/>
  9775. </method>
  9776. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9777. abstract="false" native="false" synchronized="false"
  9778. static="false" final="false" visibility="public"
  9779. deprecated="not deprecated">
  9780. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9781. <exception name="IOException" type="java.io.IOException"/>
  9782. </method>
  9783. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  9784. abstract="false" native="false" synchronized="false"
  9785. static="false" final="false" visibility="public"
  9786. deprecated="not deprecated">
  9787. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9788. <param name="length" type="long"/>
  9789. <exception name="IOException" type="java.io.IOException"/>
  9790. </method>
  9791. <method name="setVerifyChecksum"
  9792. abstract="false" native="false" synchronized="false"
  9793. static="false" final="false" visibility="public"
  9794. deprecated="not deprecated">
  9795. <param name="verifyChecksum" type="boolean"/>
  9796. </method>
  9797. <method name="setWriteChecksum"
  9798. abstract="false" native="false" synchronized="false"
  9799. static="false" final="false" visibility="public"
  9800. deprecated="not deprecated">
  9801. <param name="writeChecksum" type="boolean"/>
  9802. </method>
  9803. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9804. abstract="false" native="false" synchronized="false"
  9805. static="false" final="false" visibility="public"
  9806. deprecated="not deprecated">
  9807. </method>
  9808. <method name="close"
  9809. abstract="false" native="false" synchronized="false"
  9810. static="false" final="false" visibility="public"
  9811. deprecated="not deprecated">
  9812. <exception name="IOException" type="java.io.IOException"/>
  9813. </method>
  9814. <method name="setOwner"
  9815. abstract="false" native="false" synchronized="false"
  9816. static="false" final="false" visibility="public"
  9817. deprecated="not deprecated">
  9818. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9819. <param name="username" type="java.lang.String"/>
  9820. <param name="groupname" type="java.lang.String"/>
  9821. <exception name="IOException" type="java.io.IOException"/>
  9822. </method>
  9823. <method name="setTimes"
  9824. abstract="false" native="false" synchronized="false"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9828. <param name="mtime" type="long"/>
  9829. <param name="atime" type="long"/>
  9830. <exception name="IOException" type="java.io.IOException"/>
  9831. </method>
  9832. <method name="setPermission"
  9833. abstract="false" native="false" synchronized="false"
  9834. static="false" final="false" visibility="public"
  9835. deprecated="not deprecated">
  9836. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9837. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9838. <exception name="IOException" type="java.io.IOException"/>
  9839. </method>
  9840. <method name="primitiveCreate" return="org.apache.hadoop.fs.FSDataOutputStream"
  9841. abstract="false" native="false" synchronized="false"
  9842. static="false" final="false" visibility="protected"
  9843. deprecated="not deprecated">
  9844. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9845. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9846. <param name="flag" type="java.util.EnumSet"/>
  9847. <param name="bufferSize" type="int"/>
  9848. <param name="replication" type="short"/>
  9849. <param name="blockSize" type="long"/>
  9850. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9851. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  9852. <exception name="IOException" type="java.io.IOException"/>
  9853. </method>
  9854. <method name="primitiveMkdir" return="boolean"
  9855. abstract="false" native="false" synchronized="false"
  9856. static="false" final="false" visibility="protected"
  9857. deprecated="not deprecated">
  9858. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9859. <param name="abdolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9860. <exception name="IOException" type="java.io.IOException"/>
  9861. </method>
  9862. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  9863. abstract="false" native="false" synchronized="false"
  9864. static="false" final="false" visibility="public"
  9865. deprecated="not deprecated">
  9866. </method>
  9867. <method name="createSnapshot" return="org.apache.hadoop.fs.Path"
  9868. abstract="false" native="false" synchronized="false"
  9869. static="false" final="false" visibility="public"
  9870. deprecated="not deprecated">
  9871. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9872. <param name="snapshotName" type="java.lang.String"/>
  9873. <exception name="IOException" type="java.io.IOException"/>
  9874. </method>
  9875. <method name="renameSnapshot"
  9876. abstract="false" native="false" synchronized="false"
  9877. static="false" final="false" visibility="public"
  9878. deprecated="not deprecated">
  9879. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9880. <param name="snapshotOldName" type="java.lang.String"/>
  9881. <param name="snapshotNewName" type="java.lang.String"/>
  9882. <exception name="IOException" type="java.io.IOException"/>
  9883. </method>
  9884. <method name="deleteSnapshot"
  9885. abstract="false" native="false" synchronized="false"
  9886. static="false" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9889. <param name="snapshotName" type="java.lang.String"/>
  9890. <exception name="IOException" type="java.io.IOException"/>
  9891. </method>
  9892. <method name="modifyAclEntries"
  9893. abstract="false" native="false" synchronized="false"
  9894. static="false" final="false" visibility="public"
  9895. deprecated="not deprecated">
  9896. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9897. <param name="aclSpec" type="java.util.List"/>
  9898. <exception name="IOException" type="java.io.IOException"/>
  9899. </method>
  9900. <method name="removeAclEntries"
  9901. abstract="false" native="false" synchronized="false"
  9902. static="false" final="false" visibility="public"
  9903. deprecated="not deprecated">
  9904. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9905. <param name="aclSpec" type="java.util.List"/>
  9906. <exception name="IOException" type="java.io.IOException"/>
  9907. </method>
  9908. <method name="removeDefaultAcl"
  9909. abstract="false" native="false" synchronized="false"
  9910. static="false" final="false" visibility="public"
  9911. deprecated="not deprecated">
  9912. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9913. <exception name="IOException" type="java.io.IOException"/>
  9914. </method>
  9915. <method name="removeAcl"
  9916. abstract="false" native="false" synchronized="false"
  9917. static="false" final="false" visibility="public"
  9918. deprecated="not deprecated">
  9919. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9920. <exception name="IOException" type="java.io.IOException"/>
  9921. </method>
  9922. <method name="setAcl"
  9923. abstract="false" native="false" synchronized="false"
  9924. static="false" final="false" visibility="public"
  9925. deprecated="not deprecated">
  9926. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9927. <param name="aclSpec" type="java.util.List"/>
  9928. <exception name="IOException" type="java.io.IOException"/>
  9929. </method>
  9930. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  9931. abstract="false" native="false" synchronized="false"
  9932. static="false" final="false" visibility="public"
  9933. deprecated="not deprecated">
  9934. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9935. <exception name="IOException" type="java.io.IOException"/>
  9936. </method>
  9937. <method name="setXAttr"
  9938. abstract="false" native="false" synchronized="false"
  9939. static="false" final="false" visibility="public"
  9940. deprecated="not deprecated">
  9941. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9942. <param name="name" type="java.lang.String"/>
  9943. <param name="value" type="byte[]"/>
  9944. <exception name="IOException" type="java.io.IOException"/>
  9945. </method>
  9946. <method name="setXAttr"
  9947. abstract="false" native="false" synchronized="false"
  9948. static="false" final="false" visibility="public"
  9949. deprecated="not deprecated">
  9950. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9951. <param name="name" type="java.lang.String"/>
  9952. <param name="value" type="byte[]"/>
  9953. <param name="flag" type="java.util.EnumSet"/>
  9954. <exception name="IOException" type="java.io.IOException"/>
  9955. </method>
  9956. <method name="getXAttr" return="byte[]"
  9957. abstract="false" native="false" synchronized="false"
  9958. static="false" final="false" visibility="public"
  9959. deprecated="not deprecated">
  9960. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9961. <param name="name" type="java.lang.String"/>
  9962. <exception name="IOException" type="java.io.IOException"/>
  9963. </method>
  9964. <method name="getXAttrs" return="java.util.Map"
  9965. abstract="false" native="false" synchronized="false"
  9966. static="false" final="false" visibility="public"
  9967. deprecated="not deprecated">
  9968. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9969. <exception name="IOException" type="java.io.IOException"/>
  9970. </method>
  9971. <method name="getXAttrs" return="java.util.Map"
  9972. abstract="false" native="false" synchronized="false"
  9973. static="false" final="false" visibility="public"
  9974. deprecated="not deprecated">
  9975. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9976. <param name="names" type="java.util.List"/>
  9977. <exception name="IOException" type="java.io.IOException"/>
  9978. </method>
  9979. <method name="listXAttrs" return="java.util.List"
  9980. abstract="false" native="false" synchronized="false"
  9981. static="false" final="false" visibility="public"
  9982. deprecated="not deprecated">
  9983. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9984. <exception name="IOException" type="java.io.IOException"/>
  9985. </method>
  9986. <method name="removeXAttr"
  9987. abstract="false" native="false" synchronized="false"
  9988. static="false" final="false" visibility="public"
  9989. deprecated="not deprecated">
  9990. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9991. <param name="name" type="java.lang.String"/>
  9992. <exception name="IOException" type="java.io.IOException"/>
  9993. </method>
  9994. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  9995. transient="false" volatile="false"
  9996. static="false" final="false" visibility="protected"
  9997. deprecated="not deprecated">
  9998. </field>
  9999. <field name="swapScheme" type="java.lang.String"
  10000. transient="false" volatile="false"
  10001. static="false" final="false" visibility="protected"
  10002. deprecated="not deprecated">
  10003. </field>
  10004. <doc>
  10005. <![CDATA[A <code>FilterFileSystem</code> contains
  10006. some other file system, which it uses as
  10007. its basic file system, possibly transforming
  10008. the data along the way or providing additional
  10009. functionality. The class <code>FilterFileSystem</code>
  10010. itself simply overrides all methods of
  10011. <code>FileSystem</code> with versions that
  10012. pass all requests to the contained file
  10013. system. Subclasses of <code>FilterFileSystem</code>
  10014. may further override some of these methods
  10015. and may also provide additional methods
  10016. and fields.]]>
  10017. </doc>
  10018. </class>
  10019. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  10020. <!-- start interface org.apache.hadoop.fs.FsConstants -->
  10021. <interface name="FsConstants" abstract="true"
  10022. static="false" final="false" visibility="public"
  10023. deprecated="not deprecated">
  10024. <field name="LOCAL_FS_URI" type="java.net.URI"
  10025. transient="false" volatile="false"
  10026. static="true" final="true" visibility="public"
  10027. deprecated="not deprecated">
  10028. </field>
  10029. <field name="FTP_SCHEME" type="java.lang.String"
  10030. transient="false" volatile="false"
  10031. static="true" final="true" visibility="public"
  10032. deprecated="not deprecated">
  10033. </field>
  10034. <field name="MAX_PATH_LINKS" type="int"
  10035. transient="false" volatile="false"
  10036. static="true" final="true" visibility="public"
  10037. deprecated="not deprecated">
  10038. </field>
  10039. <field name="VIEWFS_URI" type="java.net.URI"
  10040. transient="false" volatile="false"
  10041. static="true" final="true" visibility="public"
  10042. deprecated="not deprecated">
  10043. <doc>
  10044. <![CDATA[ViewFs: viewFs file system (ie the mount file system on client side)]]>
  10045. </doc>
  10046. </field>
  10047. <field name="VIEWFS_SCHEME" type="java.lang.String"
  10048. transient="false" volatile="false"
  10049. static="true" final="true" visibility="public"
  10050. deprecated="not deprecated">
  10051. </field>
  10052. <doc>
  10053. <![CDATA[FileSystem related constants.]]>
  10054. </doc>
  10055. </interface>
  10056. <!-- end interface org.apache.hadoop.fs.FsConstants -->
  10057. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  10058. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  10059. abstract="false"
  10060. static="false" final="false" visibility="public"
  10061. deprecated="not deprecated">
  10062. <implements name="org.apache.hadoop.fs.Seekable"/>
  10063. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  10064. <implements name="org.apache.hadoop.fs.ByteBufferReadable"/>
  10065. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  10066. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  10067. <implements name="org.apache.hadoop.fs.CanSetReadahead"/>
  10068. <implements name="org.apache.hadoop.fs.HasEnhancedByteBufferAccess"/>
  10069. <implements name="org.apache.hadoop.fs.CanUnbuffer"/>
  10070. <constructor name="FSDataInputStream" type="java.io.InputStream"
  10071. static="false" final="false" visibility="public"
  10072. deprecated="not deprecated">
  10073. </constructor>
  10074. <method name="seek"
  10075. abstract="false" native="false" synchronized="false"
  10076. static="false" final="false" visibility="public"
  10077. deprecated="not deprecated">
  10078. <param name="desired" type="long"/>
  10079. <exception name="IOException" type="java.io.IOException"/>
  10080. <doc>
  10081. <![CDATA[Seek to the given offset.
  10082. @param desired offset to seek to]]>
  10083. </doc>
  10084. </method>
  10085. <method name="getPos" return="long"
  10086. abstract="false" native="false" synchronized="false"
  10087. static="false" final="false" visibility="public"
  10088. deprecated="not deprecated">
  10089. <exception name="IOException" type="java.io.IOException"/>
  10090. <doc>
  10091. <![CDATA[Get the current position in the input stream.
  10092. @return current position in the input stream]]>
  10093. </doc>
  10094. </method>
  10095. <method name="read" return="int"
  10096. abstract="false" native="false" synchronized="false"
  10097. static="false" final="false" visibility="public"
  10098. deprecated="not deprecated">
  10099. <param name="position" type="long"/>
  10100. <param name="buffer" type="byte[]"/>
  10101. <param name="offset" type="int"/>
  10102. <param name="length" type="int"/>
  10103. <exception name="IOException" type="java.io.IOException"/>
  10104. <doc>
  10105. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  10106. @param position position in the input stream to seek
  10107. @param buffer buffer into which data is read
  10108. @param offset offset into the buffer in which data is written
  10109. @param length maximum number of bytes to read
  10110. @return total number of bytes read into the buffer, or <code>-1</code>
  10111. if there is no more data because the end of the stream has been
  10112. reached]]>
  10113. </doc>
  10114. </method>
  10115. <method name="readFully"
  10116. abstract="false" native="false" synchronized="false"
  10117. static="false" final="false" visibility="public"
  10118. deprecated="not deprecated">
  10119. <param name="position" type="long"/>
  10120. <param name="buffer" type="byte[]"/>
  10121. <param name="offset" type="int"/>
  10122. <param name="length" type="int"/>
  10123. <exception name="IOException" type="java.io.IOException"/>
  10124. <doc>
  10125. <![CDATA[Read bytes from the given position in the stream to the given buffer.
  10126. Continues to read until <code>length</code> bytes have been read.
  10127. @param position position in the input stream to seek
  10128. @param buffer buffer into which data is read
  10129. @param offset offset into the buffer in which data is written
  10130. @param length the number of bytes to read
  10131. @throws EOFException If the end of stream is reached while reading.
  10132. If an exception is thrown an undetermined number
  10133. of bytes in the buffer may have been written.]]>
  10134. </doc>
  10135. </method>
  10136. <method name="readFully"
  10137. abstract="false" native="false" synchronized="false"
  10138. static="false" final="false" visibility="public"
  10139. deprecated="not deprecated">
  10140. <param name="position" type="long"/>
  10141. <param name="buffer" type="byte[]"/>
  10142. <exception name="IOException" type="java.io.IOException"/>
  10143. <doc>
  10144. <![CDATA[See {@link #readFully(long, byte[], int, int)}.]]>
  10145. </doc>
  10146. </method>
  10147. <method name="seekToNewSource" return="boolean"
  10148. abstract="false" native="false" synchronized="false"
  10149. static="false" final="false" visibility="public"
  10150. deprecated="not deprecated">
  10151. <param name="targetPos" type="long"/>
  10152. <exception name="IOException" type="java.io.IOException"/>
  10153. <doc>
  10154. <![CDATA[Seek to the given position on an alternate copy of the data.
  10155. @param targetPos position to seek to
  10156. @return true if a new source is found, false otherwise]]>
  10157. </doc>
  10158. </method>
  10159. <method name="read" return="int"
  10160. abstract="false" native="false" synchronized="false"
  10161. static="false" final="false" visibility="public"
  10162. deprecated="not deprecated">
  10163. <param name="buf" type="java.nio.ByteBuffer"/>
  10164. <exception name="IOException" type="java.io.IOException"/>
  10165. </method>
  10166. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  10167. abstract="false" native="false" synchronized="false"
  10168. static="false" final="false" visibility="public"
  10169. deprecated="not deprecated">
  10170. <exception name="IOException" type="java.io.IOException"/>
  10171. </method>
  10172. <method name="setReadahead"
  10173. abstract="false" native="false" synchronized="false"
  10174. static="false" final="false" visibility="public"
  10175. deprecated="not deprecated">
  10176. <param name="readahead" type="java.lang.Long"/>
  10177. <exception name="IOException" type="java.io.IOException"/>
  10178. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10179. </method>
  10180. <method name="setDropBehind"
  10181. abstract="false" native="false" synchronized="false"
  10182. static="false" final="false" visibility="public"
  10183. deprecated="not deprecated">
  10184. <param name="dropBehind" type="java.lang.Boolean"/>
  10185. <exception name="IOException" type="java.io.IOException"/>
  10186. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10187. </method>
  10188. <method name="read" return="java.nio.ByteBuffer"
  10189. abstract="false" native="false" synchronized="false"
  10190. static="false" final="false" visibility="public"
  10191. deprecated="not deprecated">
  10192. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  10193. <param name="maxLength" type="int"/>
  10194. <param name="opts" type="java.util.EnumSet"/>
  10195. <exception name="IOException" type="java.io.IOException"/>
  10196. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10197. </method>
  10198. <method name="read" return="java.nio.ByteBuffer"
  10199. abstract="false" native="false" synchronized="false"
  10200. static="false" final="true" visibility="public"
  10201. deprecated="not deprecated">
  10202. <param name="bufferPool" type="org.apache.hadoop.io.ByteBufferPool"/>
  10203. <param name="maxLength" type="int"/>
  10204. <exception name="IOException" type="java.io.IOException"/>
  10205. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  10206. </method>
  10207. <method name="releaseBuffer"
  10208. abstract="false" native="false" synchronized="false"
  10209. static="false" final="false" visibility="public"
  10210. deprecated="not deprecated">
  10211. <param name="buffer" type="java.nio.ByteBuffer"/>
  10212. </method>
  10213. <method name="unbuffer"
  10214. abstract="false" native="false" synchronized="false"
  10215. static="false" final="false" visibility="public"
  10216. deprecated="not deprecated">
  10217. </method>
  10218. <doc>
  10219. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  10220. and buffers input through a {@link BufferedInputStream}.]]>
  10221. </doc>
  10222. </class>
  10223. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  10224. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  10225. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  10226. abstract="false"
  10227. static="false" final="false" visibility="public"
  10228. deprecated="not deprecated">
  10229. <implements name="org.apache.hadoop.fs.Syncable"/>
  10230. <implements name="org.apache.hadoop.fs.CanSetDropBehind"/>
  10231. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  10232. static="false" final="false" visibility="public"
  10233. deprecated="not deprecated">
  10234. <exception name="IOException" type="java.io.IOException"/>
  10235. </constructor>
  10236. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  10237. static="false" final="false" visibility="public"
  10238. deprecated="not deprecated">
  10239. <exception name="IOException" type="java.io.IOException"/>
  10240. </constructor>
  10241. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  10242. static="false" final="false" visibility="public"
  10243. deprecated="not deprecated">
  10244. <exception name="IOException" type="java.io.IOException"/>
  10245. </constructor>
  10246. <method name="getPos" return="long"
  10247. abstract="false" native="false" synchronized="false"
  10248. static="false" final="false" visibility="public"
  10249. deprecated="not deprecated">
  10250. <exception name="IOException" type="java.io.IOException"/>
  10251. <doc>
  10252. <![CDATA[Get the current position in the output stream.
  10253. @return the current position in the output stream]]>
  10254. </doc>
  10255. </method>
  10256. <method name="close"
  10257. abstract="false" native="false" synchronized="false"
  10258. static="false" final="false" visibility="public"
  10259. deprecated="not deprecated">
  10260. <exception name="IOException" type="java.io.IOException"/>
  10261. <doc>
  10262. <![CDATA[Close the underlying output stream.]]>
  10263. </doc>
  10264. </method>
  10265. <method name="sync"
  10266. abstract="false" native="false" synchronized="false"
  10267. static="false" final="false" visibility="public"
  10268. deprecated="not deprecated">
  10269. <exception name="IOException" type="java.io.IOException"/>
  10270. </method>
  10271. <method name="hflush"
  10272. abstract="false" native="false" synchronized="false"
  10273. static="false" final="false" visibility="public"
  10274. deprecated="not deprecated">
  10275. <exception name="IOException" type="java.io.IOException"/>
  10276. </method>
  10277. <method name="hsync"
  10278. abstract="false" native="false" synchronized="false"
  10279. static="false" final="false" visibility="public"
  10280. deprecated="not deprecated">
  10281. <exception name="IOException" type="java.io.IOException"/>
  10282. </method>
  10283. <method name="setDropBehind"
  10284. abstract="false" native="false" synchronized="false"
  10285. static="false" final="false" visibility="public"
  10286. deprecated="not deprecated">
  10287. <param name="dropBehind" type="java.lang.Boolean"/>
  10288. <exception name="IOException" type="java.io.IOException"/>
  10289. </method>
  10290. <doc>
  10291. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream}.]]>
  10292. </doc>
  10293. </class>
  10294. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  10295. <!-- start class org.apache.hadoop.fs.FSError -->
  10296. <class name="FSError" extends="java.lang.Error"
  10297. abstract="false"
  10298. static="false" final="false" visibility="public"
  10299. deprecated="not deprecated">
  10300. <doc>
  10301. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  10302. in the native filesystem.]]>
  10303. </doc>
  10304. </class>
  10305. <!-- end class org.apache.hadoop.fs.FSError -->
  10306. <!-- start class org.apache.hadoop.fs.FsServerDefaults -->
  10307. <class name="FsServerDefaults" extends="java.lang.Object"
  10308. abstract="false"
  10309. static="false" final="false" visibility="public"
  10310. deprecated="not deprecated">
  10311. <implements name="org.apache.hadoop.io.Writable"/>
  10312. <constructor name="FsServerDefaults"
  10313. static="false" final="false" visibility="public"
  10314. deprecated="not deprecated">
  10315. </constructor>
  10316. <constructor name="FsServerDefaults" type="long, int, int, short, int, boolean, long, org.apache.hadoop.util.DataChecksum.Type"
  10317. static="false" final="false" visibility="public"
  10318. deprecated="not deprecated">
  10319. </constructor>
  10320. <method name="getBlockSize" return="long"
  10321. abstract="false" native="false" synchronized="false"
  10322. static="false" final="false" visibility="public"
  10323. deprecated="not deprecated">
  10324. </method>
  10325. <method name="getBytesPerChecksum" return="int"
  10326. abstract="false" native="false" synchronized="false"
  10327. static="false" final="false" visibility="public"
  10328. deprecated="not deprecated">
  10329. </method>
  10330. <method name="getWritePacketSize" return="int"
  10331. abstract="false" native="false" synchronized="false"
  10332. static="false" final="false" visibility="public"
  10333. deprecated="not deprecated">
  10334. </method>
  10335. <method name="getReplication" return="short"
  10336. abstract="false" native="false" synchronized="false"
  10337. static="false" final="false" visibility="public"
  10338. deprecated="not deprecated">
  10339. </method>
  10340. <method name="getFileBufferSize" return="int"
  10341. abstract="false" native="false" synchronized="false"
  10342. static="false" final="false" visibility="public"
  10343. deprecated="not deprecated">
  10344. </method>
  10345. <method name="getEncryptDataTransfer" return="boolean"
  10346. abstract="false" native="false" synchronized="false"
  10347. static="false" final="false" visibility="public"
  10348. deprecated="not deprecated">
  10349. </method>
  10350. <method name="getTrashInterval" return="long"
  10351. abstract="false" native="false" synchronized="false"
  10352. static="false" final="false" visibility="public"
  10353. deprecated="not deprecated">
  10354. </method>
  10355. <method name="getChecksumType" return="org.apache.hadoop.util.DataChecksum.Type"
  10356. abstract="false" native="false" synchronized="false"
  10357. static="false" final="false" visibility="public"
  10358. deprecated="not deprecated">
  10359. </method>
  10360. <doc>
  10361. <![CDATA[Provides server default configuration values to clients.]]>
  10362. </doc>
  10363. </class>
  10364. <!-- end class org.apache.hadoop.fs.FsServerDefaults -->
  10365. <!-- start class org.apache.hadoop.fs.FsStatus -->
  10366. <class name="FsStatus" extends="java.lang.Object"
  10367. abstract="false"
  10368. static="false" final="false" visibility="public"
  10369. deprecated="not deprecated">
  10370. <implements name="org.apache.hadoop.io.Writable"/>
  10371. <constructor name="FsStatus" type="long, long, long"
  10372. static="false" final="false" visibility="public"
  10373. deprecated="not deprecated">
  10374. <doc>
  10375. <![CDATA[Construct a FsStatus object, using the specified statistics]]>
  10376. </doc>
  10377. </constructor>
  10378. <method name="getCapacity" return="long"
  10379. abstract="false" native="false" synchronized="false"
  10380. static="false" final="false" visibility="public"
  10381. deprecated="not deprecated">
  10382. <doc>
  10383. <![CDATA[Return the capacity in bytes of the file system]]>
  10384. </doc>
  10385. </method>
  10386. <method name="getUsed" return="long"
  10387. abstract="false" native="false" synchronized="false"
  10388. static="false" final="false" visibility="public"
  10389. deprecated="not deprecated">
  10390. <doc>
  10391. <![CDATA[Return the number of bytes used on the file system]]>
  10392. </doc>
  10393. </method>
  10394. <method name="getRemaining" return="long"
  10395. abstract="false" native="false" synchronized="false"
  10396. static="false" final="false" visibility="public"
  10397. deprecated="not deprecated">
  10398. <doc>
  10399. <![CDATA[Return the number of remaining bytes on the file system]]>
  10400. </doc>
  10401. </method>
  10402. <method name="write"
  10403. abstract="false" native="false" synchronized="false"
  10404. static="false" final="false" visibility="public"
  10405. deprecated="not deprecated">
  10406. <param name="out" type="java.io.DataOutput"/>
  10407. <exception name="IOException" type="java.io.IOException"/>
  10408. </method>
  10409. <method name="readFields"
  10410. abstract="false" native="false" synchronized="false"
  10411. static="false" final="false" visibility="public"
  10412. deprecated="not deprecated">
  10413. <param name="in" type="java.io.DataInput"/>
  10414. <exception name="IOException" type="java.io.IOException"/>
  10415. </method>
  10416. <doc>
  10417. <![CDATA[This class is used to represent the capacity, free and used space on a
  10418. {@link FileSystem}.]]>
  10419. </doc>
  10420. </class>
  10421. <!-- end class org.apache.hadoop.fs.FsStatus -->
  10422. <!-- start class org.apache.hadoop.fs.GlobFilter -->
  10423. <class name="GlobFilter" extends="java.lang.Object"
  10424. abstract="false"
  10425. static="false" final="false" visibility="public"
  10426. deprecated="not deprecated">
  10427. <implements name="org.apache.hadoop.fs.PathFilter"/>
  10428. <constructor name="GlobFilter" type="java.lang.String"
  10429. static="false" final="false" visibility="public"
  10430. deprecated="not deprecated">
  10431. <exception name="IOException" type="java.io.IOException"/>
  10432. <doc>
  10433. <![CDATA[Creates a glob filter with the specified file pattern.
  10434. @param filePattern the file pattern.
  10435. @throws IOException thrown if the file pattern is incorrect.]]>
  10436. </doc>
  10437. </constructor>
  10438. <constructor name="GlobFilter" type="java.lang.String, org.apache.hadoop.fs.PathFilter"
  10439. static="false" final="false" visibility="public"
  10440. deprecated="not deprecated">
  10441. <exception name="IOException" type="java.io.IOException"/>
  10442. <doc>
  10443. <![CDATA[Creates a glob filter with the specified file pattern and an user filter.
  10444. @param filePattern the file pattern.
  10445. @param filter user filter in addition to the glob pattern.
  10446. @throws IOException thrown if the file pattern is incorrect.]]>
  10447. </doc>
  10448. </constructor>
  10449. <method name="accept" return="boolean"
  10450. abstract="false" native="false" synchronized="false"
  10451. static="false" final="false" visibility="public"
  10452. deprecated="not deprecated">
  10453. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10454. </method>
  10455. <doc>
  10456. <![CDATA[A filter for POSIX glob pattern with brace expansions.]]>
  10457. </doc>
  10458. </class>
  10459. <!-- end class org.apache.hadoop.fs.GlobFilter -->
  10460. <!-- start class org.apache.hadoop.fs.InvalidPathException -->
  10461. <class name="InvalidPathException" extends="org.apache.hadoop.HadoopIllegalArgumentException"
  10462. abstract="false"
  10463. static="false" final="false" visibility="public"
  10464. deprecated="not deprecated">
  10465. <constructor name="InvalidPathException" type="java.lang.String"
  10466. static="false" final="false" visibility="public"
  10467. deprecated="not deprecated">
  10468. <doc>
  10469. <![CDATA[Constructs exception with the specified detail message.
  10470. @param path invalid path.]]>
  10471. </doc>
  10472. </constructor>
  10473. <constructor name="InvalidPathException" type="java.lang.String, java.lang.String"
  10474. static="false" final="false" visibility="public"
  10475. deprecated="not deprecated">
  10476. <doc>
  10477. <![CDATA[Constructs exception with the specified detail message.
  10478. @param path invalid path.
  10479. @param reason Reason <code>path</code> is invalid]]>
  10480. </doc>
  10481. </constructor>
  10482. <doc>
  10483. <![CDATA[Path string is invalid either because it has invalid characters or due to
  10484. other file system specific reasons.]]>
  10485. </doc>
  10486. </class>
  10487. <!-- end class org.apache.hadoop.fs.InvalidPathException -->
  10488. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  10489. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  10490. abstract="false"
  10491. static="false" final="false" visibility="public"
  10492. deprecated="not deprecated">
  10493. <constructor name="LocalFileSystem"
  10494. static="false" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. </constructor>
  10497. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  10498. static="false" final="false" visibility="public"
  10499. deprecated="not deprecated">
  10500. </constructor>
  10501. <method name="initialize"
  10502. abstract="false" native="false" synchronized="false"
  10503. static="false" final="false" visibility="public"
  10504. deprecated="not deprecated">
  10505. <param name="name" type="java.net.URI"/>
  10506. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10507. <exception name="IOException" type="java.io.IOException"/>
  10508. </method>
  10509. <method name="getScheme" return="java.lang.String"
  10510. abstract="false" native="false" synchronized="false"
  10511. static="false" final="false" visibility="public"
  10512. deprecated="not deprecated">
  10513. <doc>
  10514. <![CDATA[Return the protocol scheme for the FileSystem.
  10515. <p/>
  10516. @return <code>file</code>]]>
  10517. </doc>
  10518. </method>
  10519. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  10520. abstract="false" native="false" synchronized="false"
  10521. static="false" final="false" visibility="public"
  10522. deprecated="not deprecated">
  10523. </method>
  10524. <method name="pathToFile" return="java.io.File"
  10525. abstract="false" native="false" synchronized="false"
  10526. static="false" final="false" visibility="public"
  10527. deprecated="not deprecated">
  10528. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10529. <doc>
  10530. <![CDATA[Convert a path to a File.]]>
  10531. </doc>
  10532. </method>
  10533. <method name="copyFromLocalFile"
  10534. abstract="false" native="false" synchronized="false"
  10535. static="false" final="false" visibility="public"
  10536. deprecated="not deprecated">
  10537. <param name="delSrc" type="boolean"/>
  10538. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10539. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10540. <exception name="IOException" type="java.io.IOException"/>
  10541. </method>
  10542. <method name="copyToLocalFile"
  10543. abstract="false" native="false" synchronized="false"
  10544. static="false" final="false" visibility="public"
  10545. deprecated="not deprecated">
  10546. <param name="delSrc" type="boolean"/>
  10547. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10548. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10549. <exception name="IOException" type="java.io.IOException"/>
  10550. </method>
  10551. <method name="reportChecksumFailure" return="boolean"
  10552. abstract="false" native="false" synchronized="false"
  10553. static="false" final="false" visibility="public"
  10554. deprecated="not deprecated">
  10555. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10556. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  10557. <param name="inPos" type="long"/>
  10558. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  10559. <param name="sumsPos" type="long"/>
  10560. <doc>
  10561. <![CDATA[Moves files to a bad file directory on the same device, so that their
  10562. storage will not be reused.]]>
  10563. </doc>
  10564. </method>
  10565. <method name="supportsSymlinks" return="boolean"
  10566. abstract="false" native="false" synchronized="false"
  10567. static="false" final="false" visibility="public"
  10568. deprecated="not deprecated">
  10569. </method>
  10570. <method name="createSymlink"
  10571. abstract="false" native="false" synchronized="false"
  10572. static="false" final="false" visibility="public"
  10573. deprecated="not deprecated">
  10574. <param name="target" type="org.apache.hadoop.fs.Path"/>
  10575. <param name="link" type="org.apache.hadoop.fs.Path"/>
  10576. <param name="createParent" type="boolean"/>
  10577. <exception name="IOException" type="java.io.IOException"/>
  10578. </method>
  10579. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  10580. abstract="false" native="false" synchronized="false"
  10581. static="false" final="false" visibility="public"
  10582. deprecated="not deprecated">
  10583. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10584. <exception name="IOException" type="java.io.IOException"/>
  10585. </method>
  10586. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  10587. abstract="false" native="false" synchronized="false"
  10588. static="false" final="false" visibility="public"
  10589. deprecated="not deprecated">
  10590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10591. <exception name="IOException" type="java.io.IOException"/>
  10592. </method>
  10593. <doc>
  10594. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  10595. </doc>
  10596. </class>
  10597. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  10598. <!-- start class org.apache.hadoop.fs.LocatedFileStatus -->
  10599. <class name="LocatedFileStatus" extends="org.apache.hadoop.fs.FileStatus"
  10600. abstract="false"
  10601. static="false" final="false" visibility="public"
  10602. deprecated="not deprecated">
  10603. <constructor name="LocatedFileStatus"
  10604. static="false" final="false" visibility="public"
  10605. deprecated="not deprecated">
  10606. </constructor>
  10607. <constructor name="LocatedFileStatus" type="org.apache.hadoop.fs.FileStatus, org.apache.hadoop.fs.BlockLocation[]"
  10608. static="false" final="false" visibility="public"
  10609. deprecated="not deprecated">
  10610. <exception name="IOException" type="java.io.IOException"/>
  10611. <doc>
  10612. <![CDATA[Constructor
  10613. @param stat a file status
  10614. @param locations a file's block locations]]>
  10615. </doc>
  10616. </constructor>
  10617. <constructor name="LocatedFileStatus" type="long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path, org.apache.hadoop.fs.BlockLocation[]"
  10618. static="false" final="false" visibility="public"
  10619. deprecated="not deprecated">
  10620. <doc>
  10621. <![CDATA[Constructor
  10622. @param length a file's length
  10623. @param isdir if the path is a directory
  10624. @param block_replication the file's replication factor
  10625. @param blocksize a file's block size
  10626. @param modification_time a file's modification time
  10627. @param access_time a file's access time
  10628. @param permission a file's permission
  10629. @param owner a file's owner
  10630. @param group a file's group
  10631. @param symlink symlink if the path is a symbolic link
  10632. @param path the path's qualified name
  10633. @param locations a file's block locations]]>
  10634. </doc>
  10635. </constructor>
  10636. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  10637. abstract="false" native="false" synchronized="false"
  10638. static="false" final="false" visibility="public"
  10639. deprecated="not deprecated">
  10640. <doc>
  10641. <![CDATA[Get the file's block locations
  10642. @return the file's block locations]]>
  10643. </doc>
  10644. </method>
  10645. <method name="compareTo" return="int"
  10646. abstract="false" native="false" synchronized="false"
  10647. static="false" final="false" visibility="public"
  10648. deprecated="not deprecated">
  10649. <param name="o" type="java.lang.Object"/>
  10650. <doc>
  10651. <![CDATA[Compare this object to another object
  10652. @param o the object to be compared.
  10653. @return a negative integer, zero, or a positive integer as this object
  10654. is less than, equal to, or greater than the specified object.
  10655. @throws ClassCastException if the specified object's is not of
  10656. type FileStatus]]>
  10657. </doc>
  10658. </method>
  10659. <method name="equals" return="boolean"
  10660. abstract="false" native="false" synchronized="false"
  10661. static="false" final="false" visibility="public"
  10662. deprecated="not deprecated">
  10663. <param name="o" type="java.lang.Object"/>
  10664. <doc>
  10665. <![CDATA[Compare if this object is equal to another object
  10666. @param o the object to be compared.
  10667. @return true if two file status has the same path name; false if not.]]>
  10668. </doc>
  10669. </method>
  10670. <method name="hashCode" return="int"
  10671. abstract="false" native="false" synchronized="false"
  10672. static="false" final="false" visibility="public"
  10673. deprecated="not deprecated">
  10674. <doc>
  10675. <![CDATA[Returns a hash code value for the object, which is defined as
  10676. the hash code of the path name.
  10677. @return a hash code value for the path name.]]>
  10678. </doc>
  10679. </method>
  10680. <doc>
  10681. <![CDATA[This class defines a FileStatus that includes a file's block locations.]]>
  10682. </doc>
  10683. </class>
  10684. <!-- end class org.apache.hadoop.fs.LocatedFileStatus -->
  10685. <!-- start class org.apache.hadoop.fs.Options -->
  10686. <class name="Options" extends="java.lang.Object"
  10687. abstract="false"
  10688. static="false" final="true" visibility="public"
  10689. deprecated="not deprecated">
  10690. <constructor name="Options"
  10691. static="false" final="false" visibility="public"
  10692. deprecated="not deprecated">
  10693. </constructor>
  10694. <doc>
  10695. <![CDATA[This class contains options related to file system operations.]]>
  10696. </doc>
  10697. </class>
  10698. <!-- end class org.apache.hadoop.fs.Options -->
  10699. <!-- start class org.apache.hadoop.fs.ParentNotDirectoryException -->
  10700. <class name="ParentNotDirectoryException" extends="java.io.IOException"
  10701. abstract="false"
  10702. static="false" final="false" visibility="public"
  10703. deprecated="not deprecated">
  10704. <constructor name="ParentNotDirectoryException"
  10705. static="false" final="false" visibility="public"
  10706. deprecated="not deprecated">
  10707. </constructor>
  10708. <constructor name="ParentNotDirectoryException" type="java.lang.String"
  10709. static="false" final="false" visibility="public"
  10710. deprecated="not deprecated">
  10711. </constructor>
  10712. <doc>
  10713. <![CDATA[Indicates that the parent of specified Path is not a directory
  10714. as expected.]]>
  10715. </doc>
  10716. </class>
  10717. <!-- end class org.apache.hadoop.fs.ParentNotDirectoryException -->
  10718. <!-- start class org.apache.hadoop.fs.Path -->
  10719. <class name="Path" extends="java.lang.Object"
  10720. abstract="false"
  10721. static="false" final="false" visibility="public"
  10722. deprecated="not deprecated">
  10723. <implements name="java.lang.Comparable"/>
  10724. <constructor name="Path" type="java.lang.String, java.lang.String"
  10725. static="false" final="false" visibility="public"
  10726. deprecated="not deprecated">
  10727. <doc>
  10728. <![CDATA[Resolve a child path against a parent path.]]>
  10729. </doc>
  10730. </constructor>
  10731. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  10732. static="false" final="false" visibility="public"
  10733. deprecated="not deprecated">
  10734. <doc>
  10735. <![CDATA[Resolve a child path against a parent path.]]>
  10736. </doc>
  10737. </constructor>
  10738. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  10739. static="false" final="false" visibility="public"
  10740. deprecated="not deprecated">
  10741. <doc>
  10742. <![CDATA[Resolve a child path against a parent path.]]>
  10743. </doc>
  10744. </constructor>
  10745. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  10746. static="false" final="false" visibility="public"
  10747. deprecated="not deprecated">
  10748. <doc>
  10749. <![CDATA[Resolve a child path against a parent path.]]>
  10750. </doc>
  10751. </constructor>
  10752. <constructor name="Path" type="java.lang.String"
  10753. static="false" final="false" visibility="public"
  10754. deprecated="not deprecated">
  10755. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  10756. <doc>
  10757. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  10758. unescaped elements and some additional normalization.]]>
  10759. </doc>
  10760. </constructor>
  10761. <constructor name="Path" type="java.net.URI"
  10762. static="false" final="false" visibility="public"
  10763. deprecated="not deprecated">
  10764. <doc>
  10765. <![CDATA[Construct a path from a URI]]>
  10766. </doc>
  10767. </constructor>
  10768. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  10769. static="false" final="false" visibility="public"
  10770. deprecated="not deprecated">
  10771. <doc>
  10772. <![CDATA[Construct a Path from components.]]>
  10773. </doc>
  10774. </constructor>
  10775. <method name="getPathWithoutSchemeAndAuthority" return="org.apache.hadoop.fs.Path"
  10776. abstract="false" native="false" synchronized="false"
  10777. static="true" final="false" visibility="public"
  10778. deprecated="not deprecated">
  10779. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10780. </method>
  10781. <method name="mergePaths" return="org.apache.hadoop.fs.Path"
  10782. abstract="false" native="false" synchronized="false"
  10783. static="true" final="false" visibility="public"
  10784. deprecated="not deprecated">
  10785. <param name="path1" type="org.apache.hadoop.fs.Path"/>
  10786. <param name="path2" type="org.apache.hadoop.fs.Path"/>
  10787. <doc>
  10788. <![CDATA[Merge 2 paths such that the second path is appended relative to the first.
  10789. The returned path has the scheme and authority of the first path. On
  10790. Windows, the drive specification in the second path is discarded.
  10791. @param path1 Path first path
  10792. @param path2 Path second path, to be appended relative to path1
  10793. @return Path merged path]]>
  10794. </doc>
  10795. </method>
  10796. <method name="isWindowsAbsolutePath" return="boolean"
  10797. abstract="false" native="false" synchronized="false"
  10798. static="true" final="false" visibility="public"
  10799. deprecated="not deprecated">
  10800. <param name="pathString" type="java.lang.String"/>
  10801. <param name="slashed" type="boolean"/>
  10802. <doc>
  10803. <![CDATA[Determine whether a given path string represents an absolute path on
  10804. Windows. e.g. "C:/a/b" is an absolute path. "C:a/b" is not.
  10805. @param pathString Supplies the path string to evaluate.
  10806. @param slashed true if the given path is prefixed with "/".
  10807. @return true if the supplied path looks like an absolute path with a Windows
  10808. drive-specifier.]]>
  10809. </doc>
  10810. </method>
  10811. <method name="toUri" return="java.net.URI"
  10812. abstract="false" native="false" synchronized="false"
  10813. static="false" final="false" visibility="public"
  10814. deprecated="not deprecated">
  10815. <doc>
  10816. <![CDATA[Convert this to a URI.]]>
  10817. </doc>
  10818. </method>
  10819. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  10820. abstract="false" native="false" synchronized="false"
  10821. static="false" final="false" visibility="public"
  10822. deprecated="not deprecated">
  10823. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10824. <exception name="IOException" type="java.io.IOException"/>
  10825. <doc>
  10826. <![CDATA[Return the FileSystem that owns this Path.]]>
  10827. </doc>
  10828. </method>
  10829. <method name="isAbsoluteAndSchemeAuthorityNull" return="boolean"
  10830. abstract="false" native="false" synchronized="false"
  10831. static="false" final="false" visibility="public"
  10832. deprecated="not deprecated">
  10833. <doc>
  10834. <![CDATA[Is an absolute path (ie a slash relative path part)
  10835. AND a scheme is null AND authority is null.]]>
  10836. </doc>
  10837. </method>
  10838. <method name="isUriPathAbsolute" return="boolean"
  10839. abstract="false" native="false" synchronized="false"
  10840. static="false" final="false" visibility="public"
  10841. deprecated="not deprecated">
  10842. <doc>
  10843. <![CDATA[True if the path component (i.e. directory) of this URI is absolute.]]>
  10844. </doc>
  10845. </method>
  10846. <method name="isAbsolute" return="boolean"
  10847. abstract="false" native="false" synchronized="false"
  10848. static="false" final="false" visibility="public"
  10849. deprecated="not deprecated">
  10850. <doc>
  10851. <![CDATA[There is some ambiguity here. An absolute path is a slash
  10852. relative name without a scheme or an authority.
  10853. So either this method was incorrectly named or its
  10854. implementation is incorrect. This method returns true
  10855. even if there is a scheme and authority.]]>
  10856. </doc>
  10857. </method>
  10858. <method name="isRoot" return="boolean"
  10859. abstract="false" native="false" synchronized="false"
  10860. static="false" final="false" visibility="public"
  10861. deprecated="not deprecated">
  10862. <doc>
  10863. <![CDATA[@return true if and only if this path represents the root of a file system]]>
  10864. </doc>
  10865. </method>
  10866. <method name="getName" return="java.lang.String"
  10867. abstract="false" native="false" synchronized="false"
  10868. static="false" final="false" visibility="public"
  10869. deprecated="not deprecated">
  10870. <doc>
  10871. <![CDATA[Returns the final component of this path.]]>
  10872. </doc>
  10873. </method>
  10874. <method name="getParent" return="org.apache.hadoop.fs.Path"
  10875. abstract="false" native="false" synchronized="false"
  10876. static="false" final="false" visibility="public"
  10877. deprecated="not deprecated">
  10878. <doc>
  10879. <![CDATA[Returns the parent of a path or null if at root.]]>
  10880. </doc>
  10881. </method>
  10882. <method name="suffix" return="org.apache.hadoop.fs.Path"
  10883. abstract="false" native="false" synchronized="false"
  10884. static="false" final="false" visibility="public"
  10885. deprecated="not deprecated">
  10886. <param name="suffix" type="java.lang.String"/>
  10887. <doc>
  10888. <![CDATA[Adds a suffix to the final name in the path.]]>
  10889. </doc>
  10890. </method>
  10891. <method name="toString" return="java.lang.String"
  10892. abstract="false" native="false" synchronized="false"
  10893. static="false" final="false" visibility="public"
  10894. deprecated="not deprecated">
  10895. </method>
  10896. <method name="equals" return="boolean"
  10897. abstract="false" native="false" synchronized="false"
  10898. static="false" final="false" visibility="public"
  10899. deprecated="not deprecated">
  10900. <param name="o" type="java.lang.Object"/>
  10901. </method>
  10902. <method name="hashCode" return="int"
  10903. abstract="false" native="false" synchronized="false"
  10904. static="false" final="false" visibility="public"
  10905. deprecated="not deprecated">
  10906. </method>
  10907. <method name="compareTo" return="int"
  10908. abstract="false" native="false" synchronized="false"
  10909. static="false" final="false" visibility="public"
  10910. deprecated="not deprecated">
  10911. <param name="o" type="java.lang.Object"/>
  10912. </method>
  10913. <method name="depth" return="int"
  10914. abstract="false" native="false" synchronized="false"
  10915. static="false" final="false" visibility="public"
  10916. deprecated="not deprecated">
  10917. <doc>
  10918. <![CDATA[Return the number of elements in this path.]]>
  10919. </doc>
  10920. </method>
  10921. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  10922. abstract="false" native="false" synchronized="false"
  10923. static="false" final="false" visibility="public"
  10924. deprecated="not deprecated">
  10925. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10926. <doc>
  10927. <![CDATA[Returns a qualified path object.
  10928. Deprecated - use {@link #makeQualified(URI, Path)}]]>
  10929. </doc>
  10930. </method>
  10931. <field name="SEPARATOR" type="java.lang.String"
  10932. transient="false" volatile="false"
  10933. static="true" final="true" visibility="public"
  10934. deprecated="not deprecated">
  10935. <doc>
  10936. <![CDATA[The directory separator, a slash.]]>
  10937. </doc>
  10938. </field>
  10939. <field name="SEPARATOR_CHAR" type="char"
  10940. transient="false" volatile="false"
  10941. static="true" final="true" visibility="public"
  10942. deprecated="not deprecated">
  10943. </field>
  10944. <field name="CUR_DIR" type="java.lang.String"
  10945. transient="false" volatile="false"
  10946. static="true" final="true" visibility="public"
  10947. deprecated="not deprecated">
  10948. </field>
  10949. <field name="WINDOWS" type="boolean"
  10950. transient="false" volatile="false"
  10951. static="true" final="true" visibility="public"
  10952. deprecated="not deprecated">
  10953. </field>
  10954. <doc>
  10955. <![CDATA[Names a file or directory in a {@link FileSystem}.
  10956. Path strings use slash as the directory separator. A path string is
  10957. absolute if it begins with a slash.]]>
  10958. </doc>
  10959. </class>
  10960. <!-- end class org.apache.hadoop.fs.Path -->
  10961. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  10962. <interface name="PathFilter" abstract="true"
  10963. static="false" final="false" visibility="public"
  10964. deprecated="not deprecated">
  10965. <method name="accept" return="boolean"
  10966. abstract="true" native="false" synchronized="false"
  10967. static="false" final="false" visibility="public"
  10968. deprecated="not deprecated">
  10969. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10970. <doc>
  10971. <![CDATA[Tests whether or not the specified abstract pathname should be
  10972. included in a pathname list.
  10973. @param path The abstract pathname to be tested
  10974. @return <code>true</code> if and only if <code>pathname</code>
  10975. should be included]]>
  10976. </doc>
  10977. </method>
  10978. </interface>
  10979. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  10980. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  10981. <interface name="PositionedReadable" abstract="true"
  10982. static="false" final="false" visibility="public"
  10983. deprecated="not deprecated">
  10984. <method name="read" return="int"
  10985. abstract="true" native="false" synchronized="false"
  10986. static="false" final="false" visibility="public"
  10987. deprecated="not deprecated">
  10988. <param name="position" type="long"/>
  10989. <param name="buffer" type="byte[]"/>
  10990. <param name="offset" type="int"/>
  10991. <param name="length" type="int"/>
  10992. <exception name="IOException" type="java.io.IOException"/>
  10993. <doc>
  10994. <![CDATA[Read upto the specified number of bytes, from a given
  10995. position within a file, and return the number of bytes read. This does not
  10996. change the current offset of a file, and is thread-safe.]]>
  10997. </doc>
  10998. </method>
  10999. <method name="readFully"
  11000. abstract="true" native="false" synchronized="false"
  11001. static="false" final="false" visibility="public"
  11002. deprecated="not deprecated">
  11003. <param name="position" type="long"/>
  11004. <param name="buffer" type="byte[]"/>
  11005. <param name="offset" type="int"/>
  11006. <param name="length" type="int"/>
  11007. <exception name="IOException" type="java.io.IOException"/>
  11008. <doc>
  11009. <![CDATA[Read the specified number of bytes, from a given
  11010. position within a file. This does not
  11011. change the current offset of a file, and is thread-safe.]]>
  11012. </doc>
  11013. </method>
  11014. <method name="readFully"
  11015. abstract="true" native="false" synchronized="false"
  11016. static="false" final="false" visibility="public"
  11017. deprecated="not deprecated">
  11018. <param name="position" type="long"/>
  11019. <param name="buffer" type="byte[]"/>
  11020. <exception name="IOException" type="java.io.IOException"/>
  11021. <doc>
  11022. <![CDATA[Read number of bytes equal to the length of the buffer, from a given
  11023. position within a file. This does not
  11024. change the current offset of a file, and is thread-safe.]]>
  11025. </doc>
  11026. </method>
  11027. <doc>
  11028. <![CDATA[Stream that permits positional reading.]]>
  11029. </doc>
  11030. </interface>
  11031. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  11032. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  11033. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11034. abstract="false"
  11035. static="false" final="false" visibility="public"
  11036. deprecated="not deprecated">
  11037. <constructor name="RawLocalFileSystem"
  11038. static="false" final="false" visibility="public"
  11039. deprecated="not deprecated">
  11040. </constructor>
  11041. <method name="useStatIfAvailable"
  11042. abstract="false" native="false" synchronized="false"
  11043. static="true" final="false" visibility="public"
  11044. deprecated="not deprecated">
  11045. </method>
  11046. <method name="pathToFile" return="java.io.File"
  11047. abstract="false" native="false" synchronized="false"
  11048. static="false" final="false" visibility="public"
  11049. deprecated="not deprecated">
  11050. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11051. <doc>
  11052. <![CDATA[Convert a path to a File.]]>
  11053. </doc>
  11054. </method>
  11055. <method name="getUri" return="java.net.URI"
  11056. abstract="false" native="false" synchronized="false"
  11057. static="false" final="false" visibility="public"
  11058. deprecated="not deprecated">
  11059. </method>
  11060. <method name="initialize"
  11061. abstract="false" native="false" synchronized="false"
  11062. static="false" final="false" visibility="public"
  11063. deprecated="not deprecated">
  11064. <param name="uri" type="java.net.URI"/>
  11065. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11066. <exception name="IOException" type="java.io.IOException"/>
  11067. </method>
  11068. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11069. abstract="false" native="false" synchronized="false"
  11070. static="false" final="false" visibility="public"
  11071. deprecated="not deprecated">
  11072. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11073. <param name="bufferSize" type="int"/>
  11074. <exception name="IOException" type="java.io.IOException"/>
  11075. </method>
  11076. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11077. abstract="false" native="false" synchronized="false"
  11078. static="false" final="false" visibility="public"
  11079. deprecated="not deprecated">
  11080. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11081. <param name="bufferSize" type="int"/>
  11082. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11083. <exception name="IOException" type="java.io.IOException"/>
  11084. </method>
  11085. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11086. abstract="false" native="false" synchronized="false"
  11087. static="false" final="false" visibility="public"
  11088. deprecated="not deprecated">
  11089. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11090. <param name="overwrite" type="boolean"/>
  11091. <param name="bufferSize" type="int"/>
  11092. <param name="replication" type="short"/>
  11093. <param name="blockSize" type="long"/>
  11094. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11095. <exception name="IOException" type="java.io.IOException"/>
  11096. </method>
  11097. <method name="createOutputStream" return="java.io.OutputStream"
  11098. abstract="false" native="false" synchronized="false"
  11099. static="false" final="false" visibility="protected"
  11100. deprecated="not deprecated">
  11101. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11102. <param name="append" type="boolean"/>
  11103. <exception name="IOException" type="java.io.IOException"/>
  11104. </method>
  11105. <method name="createOutputStreamWithMode" return="java.io.OutputStream"
  11106. abstract="false" native="false" synchronized="false"
  11107. static="false" final="false" visibility="protected"
  11108. deprecated="not deprecated">
  11109. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11110. <param name="append" type="boolean"/>
  11111. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11112. <exception name="IOException" type="java.io.IOException"/>
  11113. </method>
  11114. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  11115. abstract="false" native="false" synchronized="false"
  11116. static="false" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11119. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11120. <param name="flags" type="java.util.EnumSet"/>
  11121. <param name="bufferSize" type="int"/>
  11122. <param name="replication" type="short"/>
  11123. <param name="blockSize" type="long"/>
  11124. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11125. <exception name="IOException" type="java.io.IOException"/>
  11126. </method>
  11127. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11128. abstract="false" native="false" synchronized="false"
  11129. static="false" final="false" visibility="public"
  11130. deprecated="not deprecated">
  11131. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11132. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11133. <param name="overwrite" type="boolean"/>
  11134. <param name="bufferSize" type="int"/>
  11135. <param name="replication" type="short"/>
  11136. <param name="blockSize" type="long"/>
  11137. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11138. <exception name="IOException" type="java.io.IOException"/>
  11139. </method>
  11140. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  11141. abstract="false" native="false" synchronized="false"
  11142. static="false" final="false" visibility="public"
  11143. deprecated="not deprecated">
  11144. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11145. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11146. <param name="overwrite" type="boolean"/>
  11147. <param name="bufferSize" type="int"/>
  11148. <param name="replication" type="short"/>
  11149. <param name="blockSize" type="long"/>
  11150. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11151. <exception name="IOException" type="java.io.IOException"/>
  11152. </method>
  11153. <method name="rename" return="boolean"
  11154. abstract="false" native="false" synchronized="false"
  11155. static="false" final="false" visibility="public"
  11156. deprecated="not deprecated">
  11157. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11158. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11159. <exception name="IOException" type="java.io.IOException"/>
  11160. </method>
  11161. <method name="truncate" return="boolean"
  11162. abstract="false" native="false" synchronized="false"
  11163. static="false" final="false" visibility="public"
  11164. deprecated="not deprecated">
  11165. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11166. <param name="newLength" type="long"/>
  11167. <exception name="IOException" type="java.io.IOException"/>
  11168. </method>
  11169. <method name="delete" return="boolean"
  11170. abstract="false" native="false" synchronized="false"
  11171. static="false" final="false" visibility="public"
  11172. deprecated="not deprecated">
  11173. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11174. <param name="recursive" type="boolean"/>
  11175. <exception name="IOException" type="java.io.IOException"/>
  11176. <doc>
  11177. <![CDATA[Delete the given path to a file or directory.
  11178. @param p the path to delete
  11179. @param recursive to delete sub-directories
  11180. @return true if the file or directory and all its contents were deleted
  11181. @throws IOException if p is non-empty and recursive is false]]>
  11182. </doc>
  11183. </method>
  11184. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11185. abstract="false" native="false" synchronized="false"
  11186. static="false" final="false" visibility="public"
  11187. deprecated="not deprecated">
  11188. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11189. <exception name="IOException" type="java.io.IOException"/>
  11190. </method>
  11191. <method name="mkOneDir" return="boolean"
  11192. abstract="false" native="false" synchronized="false"
  11193. static="false" final="false" visibility="protected"
  11194. deprecated="not deprecated">
  11195. <param name="p2f" type="java.io.File"/>
  11196. <exception name="IOException" type="java.io.IOException"/>
  11197. </method>
  11198. <method name="mkOneDirWithMode" return="boolean"
  11199. abstract="false" native="false" synchronized="false"
  11200. static="false" final="false" visibility="protected"
  11201. deprecated="not deprecated">
  11202. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11203. <param name="p2f" type="java.io.File"/>
  11204. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11205. <exception name="IOException" type="java.io.IOException"/>
  11206. </method>
  11207. <method name="mkdirs" return="boolean"
  11208. abstract="false" native="false" synchronized="false"
  11209. static="false" final="false" visibility="public"
  11210. deprecated="not deprecated">
  11211. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11212. <exception name="IOException" type="java.io.IOException"/>
  11213. <doc>
  11214. <![CDATA[Creates the specified directory hierarchy. Does not
  11215. treat existence as an error.]]>
  11216. </doc>
  11217. </method>
  11218. <method name="mkdirs" return="boolean"
  11219. abstract="false" native="false" synchronized="false"
  11220. static="false" final="false" visibility="public"
  11221. deprecated="not deprecated">
  11222. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11223. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11224. <exception name="IOException" type="java.io.IOException"/>
  11225. </method>
  11226. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11227. abstract="false" native="false" synchronized="false"
  11228. static="false" final="false" visibility="public"
  11229. deprecated="not deprecated">
  11230. </method>
  11231. <method name="setWorkingDirectory"
  11232. abstract="false" native="false" synchronized="false"
  11233. static="false" final="false" visibility="public"
  11234. deprecated="not deprecated">
  11235. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11236. <doc>
  11237. <![CDATA[Set the working directory to the given directory.]]>
  11238. </doc>
  11239. </method>
  11240. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11241. abstract="false" native="false" synchronized="false"
  11242. static="false" final="false" visibility="public"
  11243. deprecated="not deprecated">
  11244. </method>
  11245. <method name="getInitialWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11246. abstract="false" native="false" synchronized="false"
  11247. static="false" final="false" visibility="protected"
  11248. deprecated="not deprecated">
  11249. </method>
  11250. <method name="getStatus" return="org.apache.hadoop.fs.FsStatus"
  11251. abstract="false" native="false" synchronized="false"
  11252. static="false" final="false" visibility="public"
  11253. deprecated="not deprecated">
  11254. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11255. <exception name="IOException" type="java.io.IOException"/>
  11256. </method>
  11257. <method name="moveFromLocalFile"
  11258. abstract="false" native="false" synchronized="false"
  11259. static="false" final="false" visibility="public"
  11260. deprecated="not deprecated">
  11261. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11262. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11263. <exception name="IOException" type="java.io.IOException"/>
  11264. </method>
  11265. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11266. abstract="false" native="false" synchronized="false"
  11267. static="false" final="false" visibility="public"
  11268. deprecated="not deprecated">
  11269. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11270. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11271. <exception name="IOException" type="java.io.IOException"/>
  11272. </method>
  11273. <method name="completeLocalOutput"
  11274. abstract="false" native="false" synchronized="false"
  11275. static="false" final="false" visibility="public"
  11276. deprecated="not deprecated">
  11277. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  11278. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11279. <exception name="IOException" type="java.io.IOException"/>
  11280. </method>
  11281. <method name="close"
  11282. abstract="false" native="false" synchronized="false"
  11283. static="false" final="false" visibility="public"
  11284. deprecated="not deprecated">
  11285. <exception name="IOException" type="java.io.IOException"/>
  11286. </method>
  11287. <method name="toString" return="java.lang.String"
  11288. abstract="false" native="false" synchronized="false"
  11289. static="false" final="false" visibility="public"
  11290. deprecated="not deprecated">
  11291. </method>
  11292. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11293. abstract="false" native="false" synchronized="false"
  11294. static="false" final="false" visibility="public"
  11295. deprecated="not deprecated">
  11296. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11297. <exception name="IOException" type="java.io.IOException"/>
  11298. </method>
  11299. <method name="setOwner"
  11300. abstract="false" native="false" synchronized="false"
  11301. static="false" final="false" visibility="public"
  11302. deprecated="not deprecated">
  11303. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11304. <param name="username" type="java.lang.String"/>
  11305. <param name="groupname" type="java.lang.String"/>
  11306. <exception name="IOException" type="java.io.IOException"/>
  11307. <doc>
  11308. <![CDATA[Use the command chown to set owner.]]>
  11309. </doc>
  11310. </method>
  11311. <method name="setPermission"
  11312. abstract="false" native="false" synchronized="false"
  11313. static="false" final="false" visibility="public"
  11314. deprecated="not deprecated">
  11315. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11316. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11317. <exception name="IOException" type="java.io.IOException"/>
  11318. <doc>
  11319. <![CDATA[Use the command chmod to set permission.]]>
  11320. </doc>
  11321. </method>
  11322. <method name="setTimes"
  11323. abstract="false" native="false" synchronized="false"
  11324. static="false" final="false" visibility="public"
  11325. deprecated="not deprecated">
  11326. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11327. <param name="mtime" type="long"/>
  11328. <param name="atime" type="long"/>
  11329. <exception name="IOException" type="java.io.IOException"/>
  11330. <doc>
  11331. <![CDATA[Sets the {@link Path}'s last modified time <em>only</em> to the given
  11332. valid time.
  11333. @param mtime the modification time to set (only if greater than zero).
  11334. @param atime currently ignored.
  11335. @throws IOException if setting the last modified time fails.]]>
  11336. </doc>
  11337. </method>
  11338. <method name="supportsSymlinks" return="boolean"
  11339. abstract="false" native="false" synchronized="false"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. </method>
  11343. <method name="createSymlink"
  11344. abstract="false" native="false" synchronized="false"
  11345. static="false" final="false" visibility="public"
  11346. deprecated="not deprecated">
  11347. <param name="target" type="org.apache.hadoop.fs.Path"/>
  11348. <param name="link" type="org.apache.hadoop.fs.Path"/>
  11349. <param name="createParent" type="boolean"/>
  11350. <exception name="IOException" type="java.io.IOException"/>
  11351. </method>
  11352. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  11353. abstract="false" native="false" synchronized="false"
  11354. static="false" final="false" visibility="public"
  11355. deprecated="not deprecated">
  11356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11357. <exception name="IOException" type="java.io.IOException"/>
  11358. <doc>
  11359. <![CDATA[Return a FileStatus representing the given path. If the path refers
  11360. to a symlink return a FileStatus representing the link rather than
  11361. the object the link refers to.]]>
  11362. </doc>
  11363. </method>
  11364. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  11365. abstract="false" native="false" synchronized="false"
  11366. static="false" final="false" visibility="public"
  11367. deprecated="not deprecated">
  11368. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11369. <exception name="IOException" type="java.io.IOException"/>
  11370. </method>
  11371. <doc>
  11372. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  11373. </doc>
  11374. </class>
  11375. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  11376. <!-- start class org.apache.hadoop.fs.ReadOption -->
  11377. <class name="ReadOption" extends="java.lang.Enum"
  11378. abstract="false"
  11379. static="false" final="true" visibility="public"
  11380. deprecated="not deprecated">
  11381. <method name="values" return="org.apache.hadoop.fs.ReadOption[]"
  11382. abstract="false" native="false" synchronized="false"
  11383. static="true" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. </method>
  11386. <method name="valueOf" return="org.apache.hadoop.fs.ReadOption"
  11387. abstract="false" native="false" synchronized="false"
  11388. static="true" final="false" visibility="public"
  11389. deprecated="not deprecated">
  11390. <param name="name" type="java.lang.String"/>
  11391. </method>
  11392. <doc>
  11393. <![CDATA[Options that can be used when reading from a FileSystem.]]>
  11394. </doc>
  11395. </class>
  11396. <!-- end class org.apache.hadoop.fs.ReadOption -->
  11397. <!-- start interface org.apache.hadoop.fs.Seekable -->
  11398. <interface name="Seekable" abstract="true"
  11399. static="false" final="false" visibility="public"
  11400. deprecated="not deprecated">
  11401. <method name="seek"
  11402. abstract="true" native="false" synchronized="false"
  11403. static="false" final="false" visibility="public"
  11404. deprecated="not deprecated">
  11405. <param name="pos" type="long"/>
  11406. <exception name="IOException" type="java.io.IOException"/>
  11407. <doc>
  11408. <![CDATA[Seek to the given offset from the start of the file.
  11409. The next read() will be from that location. Can't
  11410. seek past the end of the file.]]>
  11411. </doc>
  11412. </method>
  11413. <method name="getPos" return="long"
  11414. abstract="true" native="false" synchronized="false"
  11415. static="false" final="false" visibility="public"
  11416. deprecated="not deprecated">
  11417. <exception name="IOException" type="java.io.IOException"/>
  11418. <doc>
  11419. <![CDATA[Return the current offset from the start of the file]]>
  11420. </doc>
  11421. </method>
  11422. <doc>
  11423. <![CDATA[Stream that permits seeking.]]>
  11424. </doc>
  11425. </interface>
  11426. <!-- end interface org.apache.hadoop.fs.Seekable -->
  11427. <!-- start class org.apache.hadoop.fs.StorageType -->
  11428. <class name="StorageType" extends="java.lang.Enum"
  11429. abstract="false"
  11430. static="false" final="true" visibility="public"
  11431. deprecated="not deprecated">
  11432. <method name="values" return="org.apache.hadoop.fs.StorageType[]"
  11433. abstract="false" native="false" synchronized="false"
  11434. static="true" final="false" visibility="public"
  11435. deprecated="not deprecated">
  11436. </method>
  11437. <method name="valueOf" return="org.apache.hadoop.fs.StorageType"
  11438. abstract="false" native="false" synchronized="false"
  11439. static="true" final="false" visibility="public"
  11440. deprecated="not deprecated">
  11441. <param name="name" type="java.lang.String"/>
  11442. </method>
  11443. <method name="isTransient" return="boolean"
  11444. abstract="false" native="false" synchronized="false"
  11445. static="false" final="false" visibility="public"
  11446. deprecated="not deprecated">
  11447. </method>
  11448. <method name="supportTypeQuota" return="boolean"
  11449. abstract="false" native="false" synchronized="false"
  11450. static="false" final="false" visibility="public"
  11451. deprecated="not deprecated">
  11452. </method>
  11453. <method name="isMovable" return="boolean"
  11454. abstract="false" native="false" synchronized="false"
  11455. static="false" final="false" visibility="public"
  11456. deprecated="not deprecated">
  11457. </method>
  11458. <method name="asList" return="java.util.List"
  11459. abstract="false" native="false" synchronized="false"
  11460. static="true" final="false" visibility="public"
  11461. deprecated="not deprecated">
  11462. </method>
  11463. <method name="getMovableTypes" return="java.util.List"
  11464. abstract="false" native="false" synchronized="false"
  11465. static="true" final="false" visibility="public"
  11466. deprecated="not deprecated">
  11467. </method>
  11468. <method name="getTypesSupportingQuota" return="java.util.List"
  11469. abstract="false" native="false" synchronized="false"
  11470. static="true" final="false" visibility="public"
  11471. deprecated="not deprecated">
  11472. </method>
  11473. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  11474. abstract="false" native="false" synchronized="false"
  11475. static="true" final="false" visibility="public"
  11476. deprecated="not deprecated">
  11477. <param name="i" type="int"/>
  11478. </method>
  11479. <method name="parseStorageType" return="org.apache.hadoop.fs.StorageType"
  11480. abstract="false" native="false" synchronized="false"
  11481. static="true" final="false" visibility="public"
  11482. deprecated="not deprecated">
  11483. <param name="s" type="java.lang.String"/>
  11484. </method>
  11485. <field name="DEFAULT" type="org.apache.hadoop.fs.StorageType"
  11486. transient="false" volatile="false"
  11487. static="true" final="true" visibility="public"
  11488. deprecated="not deprecated">
  11489. </field>
  11490. <field name="EMPTY_ARRAY" type="org.apache.hadoop.fs.StorageType[]"
  11491. transient="false" volatile="false"
  11492. static="true" final="true" visibility="public"
  11493. deprecated="not deprecated">
  11494. </field>
  11495. <doc>
  11496. <![CDATA[Defines the types of supported storage media. The default storage
  11497. medium is assumed to be DISK.]]>
  11498. </doc>
  11499. </class>
  11500. <!-- end class org.apache.hadoop.fs.StorageType -->
  11501. <!-- start interface org.apache.hadoop.fs.Syncable -->
  11502. <interface name="Syncable" abstract="true"
  11503. static="false" final="false" visibility="public"
  11504. deprecated="not deprecated">
  11505. <method name="sync"
  11506. abstract="true" native="false" synchronized="false"
  11507. static="false" final="false" visibility="public"
  11508. deprecated="As of HADOOP 0.21.0, replaced by hflush">
  11509. <exception name="IOException" type="java.io.IOException"/>
  11510. <doc>
  11511. <![CDATA[@deprecated As of HADOOP 0.21.0, replaced by hflush
  11512. @see #hflush()]]>
  11513. </doc>
  11514. </method>
  11515. <method name="hflush"
  11516. abstract="true" native="false" synchronized="false"
  11517. static="false" final="false" visibility="public"
  11518. deprecated="not deprecated">
  11519. <exception name="IOException" type="java.io.IOException"/>
  11520. <doc>
  11521. <![CDATA[Flush out the data in client's user buffer. After the return of
  11522. this call, new readers will see the data.
  11523. @throws IOException if any error occurs]]>
  11524. </doc>
  11525. </method>
  11526. <method name="hsync"
  11527. abstract="true" native="false" synchronized="false"
  11528. static="false" final="false" visibility="public"
  11529. deprecated="not deprecated">
  11530. <exception name="IOException" type="java.io.IOException"/>
  11531. <doc>
  11532. <![CDATA[Similar to posix fsync, flush out the data in client's user buffer
  11533. all the way to the disk device (but the disk may have it in its cache).
  11534. @throws IOException if error occurs]]>
  11535. </doc>
  11536. </method>
  11537. <doc>
  11538. <![CDATA[This interface for flush/sync operation.]]>
  11539. </doc>
  11540. </interface>
  11541. <!-- end interface org.apache.hadoop.fs.Syncable -->
  11542. <!-- start class org.apache.hadoop.fs.Trash -->
  11543. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  11544. abstract="false"
  11545. static="false" final="false" visibility="public"
  11546. deprecated="not deprecated">
  11547. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  11548. static="false" final="false" visibility="public"
  11549. deprecated="not deprecated">
  11550. <exception name="IOException" type="java.io.IOException"/>
  11551. <doc>
  11552. <![CDATA[Construct a trash can accessor.
  11553. @param conf a Configuration]]>
  11554. </doc>
  11555. </constructor>
  11556. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  11557. static="false" final="false" visibility="public"
  11558. deprecated="not deprecated">
  11559. <exception name="IOException" type="java.io.IOException"/>
  11560. <doc>
  11561. <![CDATA[Construct a trash can accessor for the FileSystem provided.
  11562. @param fs the FileSystem
  11563. @param conf a Configuration]]>
  11564. </doc>
  11565. </constructor>
  11566. <method name="moveToAppropriateTrash" return="boolean"
  11567. abstract="false" native="false" synchronized="false"
  11568. static="true" final="false" visibility="public"
  11569. deprecated="not deprecated">
  11570. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11571. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11572. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11573. <exception name="IOException" type="java.io.IOException"/>
  11574. <doc>
  11575. <![CDATA[In case of the symlinks or mount points, one has to move the appropriate
  11576. trashbin in the actual volume of the path p being deleted.
  11577. Hence we get the file system of the fully-qualified resolved-path and
  11578. then move the path p to the trashbin in that volume,
  11579. @param fs - the filesystem of path p
  11580. @param p - the path being deleted - to be moved to trasg
  11581. @param conf - configuration
  11582. @return false if the item is already in the trash or trash is disabled
  11583. @throws IOException on error]]>
  11584. </doc>
  11585. </method>
  11586. <method name="isEnabled" return="boolean"
  11587. abstract="false" native="false" synchronized="false"
  11588. static="false" final="false" visibility="public"
  11589. deprecated="not deprecated">
  11590. <doc>
  11591. <![CDATA[Returns whether the trash is enabled for this filesystem]]>
  11592. </doc>
  11593. </method>
  11594. <method name="moveToTrash" return="boolean"
  11595. abstract="false" native="false" synchronized="false"
  11596. static="false" final="false" visibility="public"
  11597. deprecated="not deprecated">
  11598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11599. <exception name="IOException" type="java.io.IOException"/>
  11600. <doc>
  11601. <![CDATA[Move a file or directory to the current trash directory.
  11602. @return false if the item is already in the trash or trash is disabled]]>
  11603. </doc>
  11604. </method>
  11605. <method name="checkpoint"
  11606. abstract="false" native="false" synchronized="false"
  11607. static="false" final="false" visibility="public"
  11608. deprecated="not deprecated">
  11609. <exception name="IOException" type="java.io.IOException"/>
  11610. <doc>
  11611. <![CDATA[Create a trash checkpoint.]]>
  11612. </doc>
  11613. </method>
  11614. <method name="expunge"
  11615. abstract="false" native="false" synchronized="false"
  11616. static="false" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <exception name="IOException" type="java.io.IOException"/>
  11619. <doc>
  11620. <![CDATA[Delete old checkpoint(s).]]>
  11621. </doc>
  11622. </method>
  11623. <method name="getEmptier" return="java.lang.Runnable"
  11624. abstract="false" native="false" synchronized="false"
  11625. static="false" final="false" visibility="public"
  11626. deprecated="not deprecated">
  11627. <exception name="IOException" type="java.io.IOException"/>
  11628. <doc>
  11629. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  11630. users, intended to be run by the superuser.]]>
  11631. </doc>
  11632. </method>
  11633. <doc>
  11634. <![CDATA[Provides a trash facility which supports pluggable Trash policies.
  11635. See the implementation of the configured TrashPolicy for more
  11636. details.]]>
  11637. </doc>
  11638. </class>
  11639. <!-- end class org.apache.hadoop.fs.Trash -->
  11640. <!-- start class org.apache.hadoop.fs.TrashPolicy -->
  11641. <class name="TrashPolicy" extends="org.apache.hadoop.conf.Configured"
  11642. abstract="true"
  11643. static="false" final="false" visibility="public"
  11644. deprecated="not deprecated">
  11645. <constructor name="TrashPolicy"
  11646. static="false" final="false" visibility="public"
  11647. deprecated="not deprecated">
  11648. </constructor>
  11649. <method name="initialize"
  11650. abstract="true" native="false" synchronized="false"
  11651. static="false" final="false" visibility="public"
  11652. deprecated="not deprecated">
  11653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11654. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11655. <param name="home" type="org.apache.hadoop.fs.Path"/>
  11656. <doc>
  11657. <![CDATA[Used to setup the trash policy. Must be implemented by all TrashPolicy
  11658. implementations
  11659. @param conf the configuration to be used
  11660. @param fs the filesystem to be used
  11661. @param home the home directory]]>
  11662. </doc>
  11663. </method>
  11664. <method name="isEnabled" return="boolean"
  11665. abstract="true" native="false" synchronized="false"
  11666. static="false" final="false" visibility="public"
  11667. deprecated="not deprecated">
  11668. <doc>
  11669. <![CDATA[Returns whether the Trash Policy is enabled for this filesystem]]>
  11670. </doc>
  11671. </method>
  11672. <method name="moveToTrash" return="boolean"
  11673. abstract="true" native="false" synchronized="false"
  11674. static="false" final="false" visibility="public"
  11675. deprecated="not deprecated">
  11676. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11677. <exception name="IOException" type="java.io.IOException"/>
  11678. <doc>
  11679. <![CDATA[Move a file or directory to the current trash directory.
  11680. @return false if the item is already in the trash or trash is disabled]]>
  11681. </doc>
  11682. </method>
  11683. <method name="createCheckpoint"
  11684. abstract="true" native="false" synchronized="false"
  11685. static="false" final="false" visibility="public"
  11686. deprecated="not deprecated">
  11687. <exception name="IOException" type="java.io.IOException"/>
  11688. <doc>
  11689. <![CDATA[Create a trash checkpoint.]]>
  11690. </doc>
  11691. </method>
  11692. <method name="deleteCheckpoint"
  11693. abstract="true" native="false" synchronized="false"
  11694. static="false" final="false" visibility="public"
  11695. deprecated="not deprecated">
  11696. <exception name="IOException" type="java.io.IOException"/>
  11697. <doc>
  11698. <![CDATA[Delete old trash checkpoint(s).]]>
  11699. </doc>
  11700. </method>
  11701. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  11702. abstract="true" native="false" synchronized="false"
  11703. static="false" final="false" visibility="public"
  11704. deprecated="not deprecated">
  11705. <doc>
  11706. <![CDATA[Get the current working directory of the Trash Policy]]>
  11707. </doc>
  11708. </method>
  11709. <method name="getEmptier" return="java.lang.Runnable"
  11710. abstract="true" native="false" synchronized="false"
  11711. static="false" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. <exception name="IOException" type="java.io.IOException"/>
  11714. <doc>
  11715. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  11716. users, intended to be run by the superuser.]]>
  11717. </doc>
  11718. </method>
  11719. <method name="getInstance" return="org.apache.hadoop.fs.TrashPolicy"
  11720. abstract="false" native="false" synchronized="false"
  11721. static="true" final="false" visibility="public"
  11722. deprecated="not deprecated">
  11723. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11724. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11725. <param name="home" type="org.apache.hadoop.fs.Path"/>
  11726. <doc>
  11727. <![CDATA[Get an instance of the configured TrashPolicy based on the value
  11728. of the configuration parameter fs.trash.classname.
  11729. @param conf the configuration to be used
  11730. @param fs the file system to be used
  11731. @param home the home directory
  11732. @return an instance of TrashPolicy]]>
  11733. </doc>
  11734. </method>
  11735. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  11736. transient="false" volatile="false"
  11737. static="false" final="false" visibility="protected"
  11738. deprecated="not deprecated">
  11739. </field>
  11740. <field name="trash" type="org.apache.hadoop.fs.Path"
  11741. transient="false" volatile="false"
  11742. static="false" final="false" visibility="protected"
  11743. deprecated="not deprecated">
  11744. </field>
  11745. <field name="deletionInterval" type="long"
  11746. transient="false" volatile="false"
  11747. static="false" final="false" visibility="protected"
  11748. deprecated="not deprecated">
  11749. </field>
  11750. <doc>
  11751. <![CDATA[This interface is used for implementing different Trash policies.
  11752. Provides factory method to create instances of the configured Trash policy.]]>
  11753. </doc>
  11754. </class>
  11755. <!-- end class org.apache.hadoop.fs.TrashPolicy -->
  11756. <!-- start class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  11757. <class name="UnsupportedFileSystemException" extends="java.io.IOException"
  11758. abstract="false"
  11759. static="false" final="false" visibility="public"
  11760. deprecated="not deprecated">
  11761. <constructor name="UnsupportedFileSystemException" type="java.lang.String"
  11762. static="false" final="false" visibility="public"
  11763. deprecated="not deprecated">
  11764. <doc>
  11765. <![CDATA[Constructs exception with the specified detail message.
  11766. @param message exception message.]]>
  11767. </doc>
  11768. </constructor>
  11769. <doc>
  11770. <![CDATA[File system for a given file system name/scheme is not supported]]>
  11771. </doc>
  11772. </class>
  11773. <!-- end class org.apache.hadoop.fs.UnsupportedFileSystemException -->
  11774. <!-- start class org.apache.hadoop.fs.XAttrCodec -->
  11775. <class name="XAttrCodec" extends="java.lang.Enum"
  11776. abstract="false"
  11777. static="false" final="true" visibility="public"
  11778. deprecated="not deprecated">
  11779. <method name="values" return="org.apache.hadoop.fs.XAttrCodec[]"
  11780. abstract="false" native="false" synchronized="false"
  11781. static="true" final="false" visibility="public"
  11782. deprecated="not deprecated">
  11783. </method>
  11784. <method name="valueOf" return="org.apache.hadoop.fs.XAttrCodec"
  11785. abstract="false" native="false" synchronized="false"
  11786. static="true" final="false" visibility="public"
  11787. deprecated="not deprecated">
  11788. <param name="name" type="java.lang.String"/>
  11789. </method>
  11790. <method name="decodeValue" return="byte[]"
  11791. abstract="false" native="false" synchronized="false"
  11792. static="true" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <param name="value" type="java.lang.String"/>
  11795. <exception name="IOException" type="java.io.IOException"/>
  11796. <doc>
  11797. <![CDATA[Decode string representation of a value and check whether it's
  11798. encoded. If the given string begins with 0x or 0X, it expresses
  11799. a hexadecimal number. If the given string begins with 0s or 0S,
  11800. base64 encoding is expected. If the given string is enclosed in
  11801. double quotes, the inner string is treated as text. Otherwise
  11802. the given string is treated as text.
  11803. @param value string representation of the value.
  11804. @return byte[] the value
  11805. @throws IOException]]>
  11806. </doc>
  11807. </method>
  11808. <method name="encodeValue" return="java.lang.String"
  11809. abstract="false" native="false" synchronized="false"
  11810. static="true" final="false" visibility="public"
  11811. deprecated="not deprecated">
  11812. <param name="value" type="byte[]"/>
  11813. <param name="encoding" type="org.apache.hadoop.fs.XAttrCodec"/>
  11814. <exception name="IOException" type="java.io.IOException"/>
  11815. <doc>
  11816. <![CDATA[Encode byte[] value to string representation with encoding.
  11817. Values encoded as text strings are enclosed in double quotes (\"),
  11818. while strings encoded as hexadecimal and base64 are prefixed with
  11819. 0x and 0s, respectively.
  11820. @param value byte[] value
  11821. @param encoding
  11822. @return String string representation of value
  11823. @throws IOException]]>
  11824. </doc>
  11825. </method>
  11826. <doc>
  11827. <![CDATA[The value of <code>XAttr</code> is byte[], this class is to
  11828. covert byte[] to some kind of string representation or convert back.
  11829. String representation is convenient for display and input. For example
  11830. display in screen as shell response and json response, input as http
  11831. or shell parameter.]]>
  11832. </doc>
  11833. </class>
  11834. <!-- end class org.apache.hadoop.fs.XAttrCodec -->
  11835. <!-- start class org.apache.hadoop.fs.XAttrSetFlag -->
  11836. <class name="XAttrSetFlag" extends="java.lang.Enum"
  11837. abstract="false"
  11838. static="false" final="true" visibility="public"
  11839. deprecated="not deprecated">
  11840. <method name="values" return="org.apache.hadoop.fs.XAttrSetFlag[]"
  11841. abstract="false" native="false" synchronized="false"
  11842. static="true" final="false" visibility="public"
  11843. deprecated="not deprecated">
  11844. </method>
  11845. <method name="valueOf" return="org.apache.hadoop.fs.XAttrSetFlag"
  11846. abstract="false" native="false" synchronized="false"
  11847. static="true" final="false" visibility="public"
  11848. deprecated="not deprecated">
  11849. <param name="name" type="java.lang.String"/>
  11850. </method>
  11851. <method name="validate"
  11852. abstract="false" native="false" synchronized="false"
  11853. static="true" final="false" visibility="public"
  11854. deprecated="not deprecated">
  11855. <param name="xAttrName" type="java.lang.String"/>
  11856. <param name="xAttrExists" type="boolean"/>
  11857. <param name="flag" type="java.util.EnumSet"/>
  11858. <exception name="IOException" type="java.io.IOException"/>
  11859. </method>
  11860. </class>
  11861. <!-- end class org.apache.hadoop.fs.XAttrSetFlag -->
  11862. <doc>
  11863. <![CDATA[An abstract file system API.]]>
  11864. </doc>
  11865. </package>
  11866. <package name="org.apache.hadoop.fs.crypto">
  11867. </package>
  11868. <package name="org.apache.hadoop.fs.ftp">
  11869. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  11870. <class name="FTPException" extends="java.lang.RuntimeException"
  11871. abstract="false"
  11872. static="false" final="false" visibility="public"
  11873. deprecated="not deprecated">
  11874. <constructor name="FTPException" type="java.lang.String"
  11875. static="false" final="false" visibility="public"
  11876. deprecated="not deprecated">
  11877. </constructor>
  11878. <constructor name="FTPException" type="java.lang.Throwable"
  11879. static="false" final="false" visibility="public"
  11880. deprecated="not deprecated">
  11881. </constructor>
  11882. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  11883. static="false" final="false" visibility="public"
  11884. deprecated="not deprecated">
  11885. </constructor>
  11886. <doc>
  11887. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  11888. </doc>
  11889. </class>
  11890. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  11891. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  11892. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11893. abstract="false"
  11894. static="false" final="false" visibility="public"
  11895. deprecated="not deprecated">
  11896. <constructor name="FTPFileSystem"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. </constructor>
  11900. <method name="getScheme" return="java.lang.String"
  11901. abstract="false" native="false" synchronized="false"
  11902. static="false" final="false" visibility="public"
  11903. deprecated="not deprecated">
  11904. <doc>
  11905. <![CDATA[Return the protocol scheme for the FileSystem.
  11906. <p/>
  11907. @return <code>ftp</code>]]>
  11908. </doc>
  11909. </method>
  11910. <method name="getDefaultPort" return="int"
  11911. abstract="false" native="false" synchronized="false"
  11912. static="false" final="false" visibility="protected"
  11913. deprecated="not deprecated">
  11914. <doc>
  11915. <![CDATA[Get the default port for this FTPFileSystem.
  11916. @return the default port]]>
  11917. </doc>
  11918. </method>
  11919. <method name="initialize"
  11920. abstract="false" native="false" synchronized="false"
  11921. static="false" final="false" visibility="public"
  11922. deprecated="not deprecated">
  11923. <param name="uri" type="java.net.URI"/>
  11924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11925. <exception name="IOException" type="java.io.IOException"/>
  11926. </method>
  11927. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11928. abstract="false" native="false" synchronized="false"
  11929. static="false" final="false" visibility="public"
  11930. deprecated="not deprecated">
  11931. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11932. <param name="bufferSize" type="int"/>
  11933. <exception name="IOException" type="java.io.IOException"/>
  11934. </method>
  11935. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11936. abstract="false" native="false" synchronized="false"
  11937. static="false" final="false" visibility="public"
  11938. deprecated="not deprecated">
  11939. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11940. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11941. <param name="overwrite" type="boolean"/>
  11942. <param name="bufferSize" type="int"/>
  11943. <param name="replication" type="short"/>
  11944. <param name="blockSize" type="long"/>
  11945. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11946. <exception name="IOException" type="java.io.IOException"/>
  11947. <doc>
  11948. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  11949. this class or else the invocation will block.]]>
  11950. </doc>
  11951. </method>
  11952. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11953. abstract="false" native="false" synchronized="false"
  11954. static="false" final="false" visibility="public"
  11955. deprecated="not deprecated">
  11956. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11957. <param name="bufferSize" type="int"/>
  11958. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11959. <exception name="IOException" type="java.io.IOException"/>
  11960. <doc>
  11961. <![CDATA[This optional operation is not yet supported.]]>
  11962. </doc>
  11963. </method>
  11964. <method name="delete" return="boolean"
  11965. abstract="false" native="false" synchronized="false"
  11966. static="false" final="false" visibility="public"
  11967. deprecated="not deprecated">
  11968. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11969. <param name="recursive" type="boolean"/>
  11970. <exception name="IOException" type="java.io.IOException"/>
  11971. </method>
  11972. <method name="getUri" return="java.net.URI"
  11973. abstract="false" native="false" synchronized="false"
  11974. static="false" final="false" visibility="public"
  11975. deprecated="not deprecated">
  11976. </method>
  11977. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11978. abstract="false" native="false" synchronized="false"
  11979. static="false" final="false" visibility="public"
  11980. deprecated="not deprecated">
  11981. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11982. <exception name="IOException" type="java.io.IOException"/>
  11983. </method>
  11984. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11985. abstract="false" native="false" synchronized="false"
  11986. static="false" final="false" visibility="public"
  11987. deprecated="not deprecated">
  11988. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11989. <exception name="IOException" type="java.io.IOException"/>
  11990. </method>
  11991. <method name="mkdirs" return="boolean"
  11992. abstract="false" native="false" synchronized="false"
  11993. static="false" final="false" visibility="public"
  11994. deprecated="not deprecated">
  11995. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11996. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11997. <exception name="IOException" type="java.io.IOException"/>
  11998. </method>
  11999. <method name="rename" return="boolean"
  12000. abstract="false" native="false" synchronized="false"
  12001. static="false" final="false" visibility="public"
  12002. deprecated="not deprecated">
  12003. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12004. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12005. <exception name="IOException" type="java.io.IOException"/>
  12006. </method>
  12007. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12008. abstract="false" native="false" synchronized="false"
  12009. static="false" final="false" visibility="public"
  12010. deprecated="not deprecated">
  12011. </method>
  12012. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12013. abstract="false" native="false" synchronized="false"
  12014. static="false" final="false" visibility="public"
  12015. deprecated="not deprecated">
  12016. </method>
  12017. <method name="setWorkingDirectory"
  12018. abstract="false" native="false" synchronized="false"
  12019. static="false" final="false" visibility="public"
  12020. deprecated="not deprecated">
  12021. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  12022. </method>
  12023. <field name="LOG" type="org.apache.commons.logging.Log"
  12024. transient="false" volatile="false"
  12025. static="true" final="true" visibility="public"
  12026. deprecated="not deprecated">
  12027. </field>
  12028. <field name="DEFAULT_BUFFER_SIZE" type="int"
  12029. transient="false" volatile="false"
  12030. static="true" final="true" visibility="public"
  12031. deprecated="not deprecated">
  12032. </field>
  12033. <field name="DEFAULT_BLOCK_SIZE" type="int"
  12034. transient="false" volatile="false"
  12035. static="true" final="true" visibility="public"
  12036. deprecated="not deprecated">
  12037. </field>
  12038. <field name="FS_FTP_USER_PREFIX" type="java.lang.String"
  12039. transient="false" volatile="false"
  12040. static="true" final="true" visibility="public"
  12041. deprecated="not deprecated">
  12042. </field>
  12043. <field name="FS_FTP_HOST" type="java.lang.String"
  12044. transient="false" volatile="false"
  12045. static="true" final="true" visibility="public"
  12046. deprecated="not deprecated">
  12047. </field>
  12048. <field name="FS_FTP_HOST_PORT" type="java.lang.String"
  12049. transient="false" volatile="false"
  12050. static="true" final="true" visibility="public"
  12051. deprecated="not deprecated">
  12052. </field>
  12053. <field name="FS_FTP_PASSWORD_PREFIX" type="java.lang.String"
  12054. transient="false" volatile="false"
  12055. static="true" final="true" visibility="public"
  12056. deprecated="not deprecated">
  12057. </field>
  12058. <field name="E_SAME_DIRECTORY_ONLY" type="java.lang.String"
  12059. transient="false" volatile="false"
  12060. static="true" final="true" visibility="public"
  12061. deprecated="not deprecated">
  12062. </field>
  12063. <doc>
  12064. <![CDATA[<p>
  12065. A {@link FileSystem} backed by an FTP client provided by <a
  12066. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  12067. </p>]]>
  12068. </doc>
  12069. </class>
  12070. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  12071. </package>
  12072. <package name="org.apache.hadoop.fs.permission">
  12073. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  12074. <class name="AccessControlException" extends="java.io.IOException"
  12075. abstract="false"
  12076. static="false" final="false" visibility="public"
  12077. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  12078. instead.">
  12079. <constructor name="AccessControlException"
  12080. static="false" final="false" visibility="public"
  12081. deprecated="not deprecated">
  12082. <doc>
  12083. <![CDATA[Default constructor is needed for unwrapping from
  12084. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  12085. </doc>
  12086. </constructor>
  12087. <constructor name="AccessControlException" type="java.lang.String"
  12088. static="false" final="false" visibility="public"
  12089. deprecated="not deprecated">
  12090. <doc>
  12091. <![CDATA[Constructs an {@link AccessControlException}
  12092. with the specified detail message.
  12093. @param s the detail message.]]>
  12094. </doc>
  12095. </constructor>
  12096. <constructor name="AccessControlException" type="java.lang.Throwable"
  12097. static="false" final="false" visibility="public"
  12098. deprecated="not deprecated">
  12099. <doc>
  12100. <![CDATA[Constructs a new exception with the specified cause and a detail
  12101. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  12102. typically contains the class and detail message of <tt>cause</tt>).
  12103. @param cause the cause (which is saved for later retrieval by the
  12104. {@link #getCause()} method). (A <tt>null</tt> value is
  12105. permitted, and indicates that the cause is nonexistent or
  12106. unknown.)]]>
  12107. </doc>
  12108. </constructor>
  12109. <doc>
  12110. <![CDATA[An exception class for access control related issues.
  12111. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  12112. instead.]]>
  12113. </doc>
  12114. </class>
  12115. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  12116. <!-- start class org.apache.hadoop.fs.permission.AclEntry -->
  12117. <class name="AclEntry" extends="java.lang.Object"
  12118. abstract="false"
  12119. static="false" final="false" visibility="public"
  12120. deprecated="not deprecated">
  12121. <method name="getType" return="org.apache.hadoop.fs.permission.AclEntryType"
  12122. abstract="false" native="false" synchronized="false"
  12123. static="false" final="false" visibility="public"
  12124. deprecated="not deprecated">
  12125. <doc>
  12126. <![CDATA[Returns the ACL entry type.
  12127. @return AclEntryType ACL entry type]]>
  12128. </doc>
  12129. </method>
  12130. <method name="getName" return="java.lang.String"
  12131. abstract="false" native="false" synchronized="false"
  12132. static="false" final="false" visibility="public"
  12133. deprecated="not deprecated">
  12134. <doc>
  12135. <![CDATA[Returns the optional ACL entry name.
  12136. @return String ACL entry name, or null if undefined]]>
  12137. </doc>
  12138. </method>
  12139. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsAction"
  12140. abstract="false" native="false" synchronized="false"
  12141. static="false" final="false" visibility="public"
  12142. deprecated="not deprecated">
  12143. <doc>
  12144. <![CDATA[Returns the set of permissions in the ACL entry.
  12145. @return FsAction set of permissions in the ACL entry]]>
  12146. </doc>
  12147. </method>
  12148. <method name="getScope" return="org.apache.hadoop.fs.permission.AclEntryScope"
  12149. abstract="false" native="false" synchronized="false"
  12150. static="false" final="false" visibility="public"
  12151. deprecated="not deprecated">
  12152. <doc>
  12153. <![CDATA[Returns the scope of the ACL entry.
  12154. @return AclEntryScope scope of the ACL entry]]>
  12155. </doc>
  12156. </method>
  12157. <method name="equals" return="boolean"
  12158. abstract="false" native="false" synchronized="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <param name="o" type="java.lang.Object"/>
  12162. </method>
  12163. <method name="hashCode" return="int"
  12164. abstract="false" native="false" synchronized="false"
  12165. static="false" final="false" visibility="public"
  12166. deprecated="not deprecated">
  12167. </method>
  12168. <method name="toString" return="java.lang.String"
  12169. abstract="false" native="false" synchronized="false"
  12170. static="false" final="false" visibility="public"
  12171. deprecated="not deprecated">
  12172. </method>
  12173. <method name="parseAclSpec" return="java.util.List"
  12174. abstract="false" native="false" synchronized="false"
  12175. static="true" final="false" visibility="public"
  12176. deprecated="not deprecated">
  12177. <param name="aclSpec" type="java.lang.String"/>
  12178. <param name="includePermission" type="boolean"/>
  12179. <doc>
  12180. <![CDATA[Parses a string representation of an ACL spec into a list of AclEntry
  12181. objects. Example: "user::rwx,user:foo:rw-,group::r--,other::---"
  12182. @param aclSpec
  12183. String representation of an ACL spec.
  12184. @param includePermission
  12185. for setAcl operations this will be true. i.e. AclSpec should
  12186. include permissions.<br>
  12187. But for removeAcl operation it will be false. i.e. AclSpec should
  12188. not contain permissions.<br>
  12189. Example: "user:foo,group:bar"
  12190. @return Returns list of {@link AclEntry} parsed]]>
  12191. </doc>
  12192. </method>
  12193. <method name="parseAclEntry" return="org.apache.hadoop.fs.permission.AclEntry"
  12194. abstract="false" native="false" synchronized="false"
  12195. static="true" final="false" visibility="public"
  12196. deprecated="not deprecated">
  12197. <param name="aclStr" type="java.lang.String"/>
  12198. <param name="includePermission" type="boolean"/>
  12199. <doc>
  12200. <![CDATA[Parses a string representation of an ACL into a AclEntry object.<br>
  12201. @param aclStr
  12202. String representation of an ACL.<br>
  12203. Example: "user:foo:rw-"
  12204. @param includePermission
  12205. for setAcl operations this will be true. i.e. Acl should include
  12206. permissions.<br>
  12207. But for removeAcl operation it will be false. i.e. Acl should not
  12208. contain permissions.<br>
  12209. Example: "user:foo,group:bar,mask::"
  12210. @return Returns an {@link AclEntry} object]]>
  12211. </doc>
  12212. </method>
  12213. <method name="aclSpecToString" return="java.lang.String"
  12214. abstract="false" native="false" synchronized="false"
  12215. static="true" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. <param name="aclSpec" type="java.util.List"/>
  12218. <doc>
  12219. <![CDATA[Convert a List of AclEntries into a string - the reverse of parseAclSpec.
  12220. @param aclSpec List of AclEntries to convert
  12221. @return String representation of aclSpec]]>
  12222. </doc>
  12223. </method>
  12224. <doc>
  12225. <![CDATA[Defines a single entry in an ACL. An ACL entry has a type (user, group,
  12226. mask, or other), an optional name (referring to a specific user or group), a
  12227. set of permissions (any combination of read, write and execute), and a scope
  12228. (access or default). AclEntry instances are immutable. Use a {@link Builder}
  12229. to create a new instance.]]>
  12230. </doc>
  12231. </class>
  12232. <!-- end class org.apache.hadoop.fs.permission.AclEntry -->
  12233. <!-- start class org.apache.hadoop.fs.permission.AclEntryScope -->
  12234. <class name="AclEntryScope" extends="java.lang.Enum"
  12235. abstract="false"
  12236. static="false" final="true" visibility="public"
  12237. deprecated="not deprecated">
  12238. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryScope[]"
  12239. abstract="false" native="false" synchronized="false"
  12240. static="true" final="false" visibility="public"
  12241. deprecated="not deprecated">
  12242. </method>
  12243. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryScope"
  12244. abstract="false" native="false" synchronized="false"
  12245. static="true" final="false" visibility="public"
  12246. deprecated="not deprecated">
  12247. <param name="name" type="java.lang.String"/>
  12248. </method>
  12249. <doc>
  12250. <![CDATA[Specifies the scope or intended usage of an ACL entry.]]>
  12251. </doc>
  12252. </class>
  12253. <!-- end class org.apache.hadoop.fs.permission.AclEntryScope -->
  12254. <!-- start class org.apache.hadoop.fs.permission.AclEntryType -->
  12255. <class name="AclEntryType" extends="java.lang.Enum"
  12256. abstract="false"
  12257. static="false" final="true" visibility="public"
  12258. deprecated="not deprecated">
  12259. <method name="values" return="org.apache.hadoop.fs.permission.AclEntryType[]"
  12260. abstract="false" native="false" synchronized="false"
  12261. static="true" final="false" visibility="public"
  12262. deprecated="not deprecated">
  12263. </method>
  12264. <method name="valueOf" return="org.apache.hadoop.fs.permission.AclEntryType"
  12265. abstract="false" native="false" synchronized="false"
  12266. static="true" final="false" visibility="public"
  12267. deprecated="not deprecated">
  12268. <param name="name" type="java.lang.String"/>
  12269. </method>
  12270. <doc>
  12271. <![CDATA[Specifies the type of an ACL entry.]]>
  12272. </doc>
  12273. </class>
  12274. <!-- end class org.apache.hadoop.fs.permission.AclEntryType -->
  12275. <!-- start class org.apache.hadoop.fs.permission.AclStatus -->
  12276. <class name="AclStatus" extends="java.lang.Object"
  12277. abstract="false"
  12278. static="false" final="false" visibility="public"
  12279. deprecated="not deprecated">
  12280. <method name="getOwner" return="java.lang.String"
  12281. abstract="false" native="false" synchronized="false"
  12282. static="false" final="false" visibility="public"
  12283. deprecated="not deprecated">
  12284. <doc>
  12285. <![CDATA[Returns the file owner.
  12286. @return String file owner]]>
  12287. </doc>
  12288. </method>
  12289. <method name="getGroup" return="java.lang.String"
  12290. abstract="false" native="false" synchronized="false"
  12291. static="false" final="false" visibility="public"
  12292. deprecated="not deprecated">
  12293. <doc>
  12294. <![CDATA[Returns the file group.
  12295. @return String file group]]>
  12296. </doc>
  12297. </method>
  12298. <method name="isStickyBit" return="boolean"
  12299. abstract="false" native="false" synchronized="false"
  12300. static="false" final="false" visibility="public"
  12301. deprecated="not deprecated">
  12302. <doc>
  12303. <![CDATA[Returns the sticky bit.
  12304. @return boolean sticky bit]]>
  12305. </doc>
  12306. </method>
  12307. <method name="getEntries" return="java.util.List"
  12308. abstract="false" native="false" synchronized="false"
  12309. static="false" final="false" visibility="public"
  12310. deprecated="not deprecated">
  12311. <doc>
  12312. <![CDATA[Returns the list of all ACL entries, ordered by their natural ordering.
  12313. @return List<AclEntry> unmodifiable ordered list of all ACL entries]]>
  12314. </doc>
  12315. </method>
  12316. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  12317. abstract="false" native="false" synchronized="false"
  12318. static="false" final="false" visibility="public"
  12319. deprecated="not deprecated">
  12320. <doc>
  12321. <![CDATA[Returns the permission set for the path
  12322. @return {@link FsPermission} for the path]]>
  12323. </doc>
  12324. </method>
  12325. <method name="equals" return="boolean"
  12326. abstract="false" native="false" synchronized="false"
  12327. static="false" final="false" visibility="public"
  12328. deprecated="not deprecated">
  12329. <param name="o" type="java.lang.Object"/>
  12330. </method>
  12331. <method name="hashCode" return="int"
  12332. abstract="false" native="false" synchronized="false"
  12333. static="false" final="false" visibility="public"
  12334. deprecated="not deprecated">
  12335. </method>
  12336. <method name="toString" return="java.lang.String"
  12337. abstract="false" native="false" synchronized="false"
  12338. static="false" final="false" visibility="public"
  12339. deprecated="not deprecated">
  12340. </method>
  12341. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  12342. abstract="false" native="false" synchronized="false"
  12343. static="false" final="false" visibility="public"
  12344. deprecated="not deprecated">
  12345. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  12346. <doc>
  12347. <![CDATA[Get the effective permission for the AclEntry
  12348. @param entry AclEntry to get the effective action]]>
  12349. </doc>
  12350. </method>
  12351. <method name="getEffectivePermission" return="org.apache.hadoop.fs.permission.FsAction"
  12352. abstract="false" native="false" synchronized="false"
  12353. static="false" final="false" visibility="public"
  12354. deprecated="not deprecated">
  12355. <param name="entry" type="org.apache.hadoop.fs.permission.AclEntry"/>
  12356. <param name="permArg" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12357. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12358. <doc>
  12359. <![CDATA[Get the effective permission for the AclEntry. <br>
  12360. Recommended to use this API ONLY if client communicates with the old
  12361. NameNode, needs to pass the Permission for the path to get effective
  12362. permission, else use {@link AclStatus#getEffectivePermission(AclEntry)}.
  12363. @param entry AclEntry to get the effective action
  12364. @param permArg Permission for the path. However if the client is NOT
  12365. communicating with old namenode, then this argument will not have
  12366. any preference.
  12367. @return Returns the effective permission for the entry.
  12368. @throws IllegalArgumentException If the client communicating with old
  12369. namenode and permission is not passed as an argument.]]>
  12370. </doc>
  12371. </method>
  12372. <doc>
  12373. <![CDATA[An AclStatus contains the ACL information of a specific file. AclStatus
  12374. instances are immutable. Use a {@link Builder} to create a new instance.]]>
  12375. </doc>
  12376. </class>
  12377. <!-- end class org.apache.hadoop.fs.permission.AclStatus -->
  12378. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  12379. <class name="FsAction" extends="java.lang.Enum"
  12380. abstract="false"
  12381. static="false" final="true" visibility="public"
  12382. deprecated="not deprecated">
  12383. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  12384. abstract="false" native="false" synchronized="false"
  12385. static="true" final="false" visibility="public"
  12386. deprecated="not deprecated">
  12387. </method>
  12388. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  12389. abstract="false" native="false" synchronized="false"
  12390. static="true" final="false" visibility="public"
  12391. deprecated="not deprecated">
  12392. <param name="name" type="java.lang.String"/>
  12393. </method>
  12394. <method name="implies" return="boolean"
  12395. abstract="false" native="false" synchronized="false"
  12396. static="false" final="false" visibility="public"
  12397. deprecated="not deprecated">
  12398. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  12399. <doc>
  12400. <![CDATA[Return true if this action implies that action.
  12401. @param that]]>
  12402. </doc>
  12403. </method>
  12404. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  12405. abstract="false" native="false" synchronized="false"
  12406. static="false" final="false" visibility="public"
  12407. deprecated="not deprecated">
  12408. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  12409. <doc>
  12410. <![CDATA[AND operation.]]>
  12411. </doc>
  12412. </method>
  12413. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  12414. abstract="false" native="false" synchronized="false"
  12415. static="false" final="false" visibility="public"
  12416. deprecated="not deprecated">
  12417. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  12418. <doc>
  12419. <![CDATA[OR operation.]]>
  12420. </doc>
  12421. </method>
  12422. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  12423. abstract="false" native="false" synchronized="false"
  12424. static="false" final="false" visibility="public"
  12425. deprecated="not deprecated">
  12426. <doc>
  12427. <![CDATA[NOT operation.]]>
  12428. </doc>
  12429. </method>
  12430. <method name="getFsAction" return="org.apache.hadoop.fs.permission.FsAction"
  12431. abstract="false" native="false" synchronized="false"
  12432. static="true" final="false" visibility="public"
  12433. deprecated="not deprecated">
  12434. <param name="permission" type="java.lang.String"/>
  12435. <doc>
  12436. <![CDATA[Get the FsAction enum for String representation of permissions
  12437. @param permission
  12438. 3-character string representation of permission. ex: rwx
  12439. @return Returns FsAction enum if the corresponding FsAction exists for permission.
  12440. Otherwise returns null]]>
  12441. </doc>
  12442. </method>
  12443. <field name="SYMBOL" type="java.lang.String"
  12444. transient="false" volatile="false"
  12445. static="false" final="true" visibility="public"
  12446. deprecated="not deprecated">
  12447. <doc>
  12448. <![CDATA[Symbolic representation]]>
  12449. </doc>
  12450. </field>
  12451. <doc>
  12452. <![CDATA[File system actions, e.g. read, write, etc.]]>
  12453. </doc>
  12454. </class>
  12455. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  12456. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  12457. <class name="FsPermission" extends="java.lang.Object"
  12458. abstract="false"
  12459. static="false" final="false" visibility="public"
  12460. deprecated="not deprecated">
  12461. <implements name="org.apache.hadoop.io.Writable"/>
  12462. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  12463. static="false" final="false" visibility="public"
  12464. deprecated="not deprecated">
  12465. <doc>
  12466. <![CDATA[Construct by the given {@link FsAction}.
  12467. @param u user action
  12468. @param g group action
  12469. @param o other action]]>
  12470. </doc>
  12471. </constructor>
  12472. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, boolean"
  12473. static="false" final="false" visibility="public"
  12474. deprecated="not deprecated">
  12475. </constructor>
  12476. <constructor name="FsPermission" type="short"
  12477. static="false" final="false" visibility="public"
  12478. deprecated="not deprecated">
  12479. <doc>
  12480. <![CDATA[Construct by the given mode.
  12481. @param mode
  12482. @see #toShort()]]>
  12483. </doc>
  12484. </constructor>
  12485. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  12486. static="false" final="false" visibility="public"
  12487. deprecated="not deprecated">
  12488. <doc>
  12489. <![CDATA[Copy constructor
  12490. @param other other permission]]>
  12491. </doc>
  12492. </constructor>
  12493. <constructor name="FsPermission" type="java.lang.String"
  12494. static="false" final="false" visibility="public"
  12495. deprecated="not deprecated">
  12496. <doc>
  12497. <![CDATA[Construct by given mode, either in octal or symbolic format.
  12498. @param mode mode as a string, either in octal or symbolic format
  12499. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  12500. </doc>
  12501. </constructor>
  12502. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  12503. abstract="false" native="false" synchronized="false"
  12504. static="true" final="false" visibility="public"
  12505. deprecated="not deprecated">
  12506. <param name="permission" type="short"/>
  12507. <doc>
  12508. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  12509. </doc>
  12510. </method>
  12511. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  12512. abstract="false" native="false" synchronized="false"
  12513. static="false" final="false" visibility="public"
  12514. deprecated="not deprecated">
  12515. <doc>
  12516. <![CDATA[Return user {@link FsAction}.]]>
  12517. </doc>
  12518. </method>
  12519. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  12520. abstract="false" native="false" synchronized="false"
  12521. static="false" final="false" visibility="public"
  12522. deprecated="not deprecated">
  12523. <doc>
  12524. <![CDATA[Return group {@link FsAction}.]]>
  12525. </doc>
  12526. </method>
  12527. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  12528. abstract="false" native="false" synchronized="false"
  12529. static="false" final="false" visibility="public"
  12530. deprecated="not deprecated">
  12531. <doc>
  12532. <![CDATA[Return other {@link FsAction}.]]>
  12533. </doc>
  12534. </method>
  12535. <method name="fromShort"
  12536. abstract="false" native="false" synchronized="false"
  12537. static="false" final="false" visibility="public"
  12538. deprecated="not deprecated">
  12539. <param name="n" type="short"/>
  12540. </method>
  12541. <method name="write"
  12542. abstract="false" native="false" synchronized="false"
  12543. static="false" final="false" visibility="public"
  12544. deprecated="not deprecated">
  12545. <param name="out" type="java.io.DataOutput"/>
  12546. <exception name="IOException" type="java.io.IOException"/>
  12547. </method>
  12548. <method name="readFields"
  12549. abstract="false" native="false" synchronized="false"
  12550. static="false" final="false" visibility="public"
  12551. deprecated="not deprecated">
  12552. <param name="in" type="java.io.DataInput"/>
  12553. <exception name="IOException" type="java.io.IOException"/>
  12554. </method>
  12555. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  12556. abstract="false" native="false" synchronized="false"
  12557. static="true" final="false" visibility="public"
  12558. deprecated="not deprecated">
  12559. <param name="in" type="java.io.DataInput"/>
  12560. <exception name="IOException" type="java.io.IOException"/>
  12561. <doc>
  12562. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  12563. </doc>
  12564. </method>
  12565. <method name="toShort" return="short"
  12566. abstract="false" native="false" synchronized="false"
  12567. static="false" final="false" visibility="public"
  12568. deprecated="not deprecated">
  12569. <doc>
  12570. <![CDATA[Encode the object to a short.]]>
  12571. </doc>
  12572. </method>
  12573. <method name="toExtendedShort" return="short"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. <doc>
  12578. <![CDATA[Encodes the object to a short. Unlike {@link #toShort()}, this method may
  12579. return values outside the fixed range 00000 - 01777 if extended features
  12580. are encoded into this permission, such as the ACL bit.
  12581. @return short extended short representation of this permission]]>
  12582. </doc>
  12583. </method>
  12584. <method name="equals" return="boolean"
  12585. abstract="false" native="false" synchronized="false"
  12586. static="false" final="false" visibility="public"
  12587. deprecated="not deprecated">
  12588. <param name="obj" type="java.lang.Object"/>
  12589. </method>
  12590. <method name="hashCode" return="int"
  12591. abstract="false" native="false" synchronized="false"
  12592. static="false" final="false" visibility="public"
  12593. deprecated="not deprecated">
  12594. </method>
  12595. <method name="toString" return="java.lang.String"
  12596. abstract="false" native="false" synchronized="false"
  12597. static="false" final="false" visibility="public"
  12598. deprecated="not deprecated">
  12599. </method>
  12600. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  12601. abstract="false" native="false" synchronized="false"
  12602. static="false" final="false" visibility="public"
  12603. deprecated="not deprecated">
  12604. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12605. <doc>
  12606. <![CDATA[Apply a umask to this permission and return a new one.
  12607. The umask is used by create, mkdir, and other Hadoop filesystem operations.
  12608. The mode argument for these operations is modified by removing the bits
  12609. which are set in the umask. Thus, the umask limits the permissions which
  12610. newly created files and directories get.
  12611. @param umask The umask to use
  12612. @return The effective permission]]>
  12613. </doc>
  12614. </method>
  12615. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  12616. abstract="false" native="false" synchronized="false"
  12617. static="true" final="false" visibility="public"
  12618. deprecated="not deprecated">
  12619. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12620. <doc>
  12621. <![CDATA[Get the user file creation mask (umask)
  12622. {@code UMASK_LABEL} config param has umask value that is either symbolic
  12623. or octal.
  12624. Symbolic umask is applied relative to file mode creation mask;
  12625. the permission op characters '+' clears the corresponding bit in the mask,
  12626. '-' sets bits in the mask.
  12627. Octal umask, the specified bits are set in the file mode creation mask.
  12628. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  12629. </doc>
  12630. </method>
  12631. <method name="getStickyBit" return="boolean"
  12632. abstract="false" native="false" synchronized="false"
  12633. static="false" final="false" visibility="public"
  12634. deprecated="not deprecated">
  12635. </method>
  12636. <method name="getAclBit" return="boolean"
  12637. abstract="false" native="false" synchronized="false"
  12638. static="false" final="false" visibility="public"
  12639. deprecated="not deprecated">
  12640. <doc>
  12641. <![CDATA[Returns true if there is also an ACL (access control list).
  12642. @return boolean true if there is also an ACL (access control list).]]>
  12643. </doc>
  12644. </method>
  12645. <method name="getEncryptedBit" return="boolean"
  12646. abstract="false" native="false" synchronized="false"
  12647. static="false" final="false" visibility="public"
  12648. deprecated="not deprecated">
  12649. <doc>
  12650. <![CDATA[Returns true if the file is encrypted or directory is in an encryption zone]]>
  12651. </doc>
  12652. </method>
  12653. <method name="setUMask"
  12654. abstract="false" native="false" synchronized="false"
  12655. static="true" final="false" visibility="public"
  12656. deprecated="not deprecated">
  12657. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12658. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12659. <doc>
  12660. <![CDATA[Set the user file creation mask (umask)]]>
  12661. </doc>
  12662. </method>
  12663. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  12664. abstract="false" native="false" synchronized="false"
  12665. static="true" final="false" visibility="public"
  12666. deprecated="not deprecated">
  12667. <doc>
  12668. <![CDATA[Get the default permission for directory and symlink.
  12669. In previous versions, this default permission was also used to
  12670. create files, so files created end up with ugo+x permission.
  12671. See HADOOP-9155 for detail.
  12672. Two new methods are added to solve this, please use
  12673. {@link FsPermission#getDirDefault()} for directory, and use
  12674. {@link FsPermission#getFileDefault()} for file.
  12675. This method is kept for compatibility.]]>
  12676. </doc>
  12677. </method>
  12678. <method name="getDirDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  12679. abstract="false" native="false" synchronized="false"
  12680. static="true" final="false" visibility="public"
  12681. deprecated="not deprecated">
  12682. <doc>
  12683. <![CDATA[Get the default permission for directory.]]>
  12684. </doc>
  12685. </method>
  12686. <method name="getFileDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  12687. abstract="false" native="false" synchronized="false"
  12688. static="true" final="false" visibility="public"
  12689. deprecated="not deprecated">
  12690. <doc>
  12691. <![CDATA[Get the default permission for file.]]>
  12692. </doc>
  12693. </method>
  12694. <method name="getCachePoolDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  12695. abstract="false" native="false" synchronized="false"
  12696. static="true" final="false" visibility="public"
  12697. deprecated="not deprecated">
  12698. <doc>
  12699. <![CDATA[Get the default permission for cache pools.]]>
  12700. </doc>
  12701. </method>
  12702. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  12703. abstract="false" native="false" synchronized="false"
  12704. static="true" final="false" visibility="public"
  12705. deprecated="not deprecated">
  12706. <param name="unixSymbolicPermission" type="java.lang.String"/>
  12707. <doc>
  12708. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  12709. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  12710. </doc>
  12711. </method>
  12712. <field name="MAX_PERMISSION_LENGTH" type="int"
  12713. transient="false" volatile="false"
  12714. static="true" final="true" visibility="public"
  12715. deprecated="not deprecated">
  12716. <doc>
  12717. <![CDATA[Maximum acceptable length of a permission string to parse]]>
  12718. </doc>
  12719. </field>
  12720. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  12721. transient="false" volatile="false"
  12722. static="true" final="true" visibility="public"
  12723. deprecated="not deprecated">
  12724. <doc>
  12725. <![CDATA[umask property label deprecated key and code in getUMask method
  12726. to accommodate it may be removed in version .23]]>
  12727. </doc>
  12728. </field>
  12729. <field name="UMASK_LABEL" type="java.lang.String"
  12730. transient="false" volatile="false"
  12731. static="true" final="true" visibility="public"
  12732. deprecated="not deprecated">
  12733. </field>
  12734. <field name="DEFAULT_UMASK" type="int"
  12735. transient="false" volatile="false"
  12736. static="true" final="true" visibility="public"
  12737. deprecated="not deprecated">
  12738. </field>
  12739. <doc>
  12740. <![CDATA[A class for file/directory permissions.]]>
  12741. </doc>
  12742. </class>
  12743. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  12744. </package>
  12745. <package name="org.apache.hadoop.fs.shell.find">
  12746. </package>
  12747. <package name="org.apache.hadoop.fs.viewfs">
  12748. <!-- start class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  12749. <class name="NotInMountpointException" extends="java.lang.UnsupportedOperationException"
  12750. abstract="false"
  12751. static="false" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <constructor name="NotInMountpointException" type="org.apache.hadoop.fs.Path, java.lang.String"
  12754. static="false" final="false" visibility="public"
  12755. deprecated="not deprecated">
  12756. </constructor>
  12757. <constructor name="NotInMountpointException" type="java.lang.String"
  12758. static="false" final="false" visibility="public"
  12759. deprecated="not deprecated">
  12760. </constructor>
  12761. <method name="getMessage" return="java.lang.String"
  12762. abstract="false" native="false" synchronized="false"
  12763. static="false" final="false" visibility="public"
  12764. deprecated="not deprecated">
  12765. </method>
  12766. <doc>
  12767. <![CDATA[NotInMountpointException extends the UnsupportedOperationException.
  12768. Exception class used in cases where the given path is not mounted
  12769. through viewfs.]]>
  12770. </doc>
  12771. </class>
  12772. <!-- end class org.apache.hadoop.fs.viewfs.NotInMountpointException -->
  12773. <!-- start class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  12774. <class name="ViewFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  12775. abstract="false"
  12776. static="false" final="false" visibility="public"
  12777. deprecated="not deprecated">
  12778. <constructor name="ViewFileSystem"
  12779. static="false" final="false" visibility="public"
  12780. deprecated="not deprecated">
  12781. <exception name="IOException" type="java.io.IOException"/>
  12782. <doc>
  12783. <![CDATA[This is the constructor with the signature needed by
  12784. {@link FileSystem#createFileSystem(URI, Configuration)}
  12785. After this constructor is called initialize() is called.
  12786. @throws IOException]]>
  12787. </doc>
  12788. </constructor>
  12789. <constructor name="ViewFileSystem" type="org.apache.hadoop.conf.Configuration"
  12790. static="false" final="false" visibility="public"
  12791. deprecated="not deprecated">
  12792. <exception name="IOException" type="java.io.IOException"/>
  12793. <doc>
  12794. <![CDATA[Convenience Constructor for apps to call directly
  12795. @param conf
  12796. @throws IOException]]>
  12797. </doc>
  12798. </constructor>
  12799. <method name="getScheme" return="java.lang.String"
  12800. abstract="false" native="false" synchronized="false"
  12801. static="false" final="false" visibility="public"
  12802. deprecated="not deprecated">
  12803. <doc>
  12804. <![CDATA[Return the protocol scheme for the FileSystem.
  12805. <p/>
  12806. @return <code>viewfs</code>]]>
  12807. </doc>
  12808. </method>
  12809. <method name="initialize"
  12810. abstract="false" native="false" synchronized="false"
  12811. static="false" final="false" visibility="public"
  12812. deprecated="not deprecated">
  12813. <param name="theUri" type="java.net.URI"/>
  12814. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12815. <exception name="IOException" type="java.io.IOException"/>
  12816. <doc>
  12817. <![CDATA[Called after a new FileSystem instance is constructed.
  12818. @param theUri a uri whose authority section names the host, port, etc. for
  12819. this FileSystem
  12820. @param conf the configuration]]>
  12821. </doc>
  12822. </method>
  12823. <method name="getTrashCanLocation" return="org.apache.hadoop.fs.Path"
  12824. abstract="false" native="false" synchronized="false"
  12825. static="false" final="false" visibility="public"
  12826. deprecated="not deprecated">
  12827. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12828. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12829. </method>
  12830. <method name="getUri" return="java.net.URI"
  12831. abstract="false" native="false" synchronized="false"
  12832. static="false" final="false" visibility="public"
  12833. deprecated="not deprecated">
  12834. </method>
  12835. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  12836. abstract="false" native="false" synchronized="false"
  12837. static="false" final="false" visibility="public"
  12838. deprecated="not deprecated">
  12839. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12840. <exception name="IOException" type="java.io.IOException"/>
  12841. </method>
  12842. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  12843. abstract="false" native="false" synchronized="false"
  12844. static="false" final="false" visibility="public"
  12845. deprecated="not deprecated">
  12846. </method>
  12847. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12848. abstract="false" native="false" synchronized="false"
  12849. static="false" final="false" visibility="public"
  12850. deprecated="not deprecated">
  12851. </method>
  12852. <method name="setWorkingDirectory"
  12853. abstract="false" native="false" synchronized="false"
  12854. static="false" final="false" visibility="public"
  12855. deprecated="not deprecated">
  12856. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  12857. </method>
  12858. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12859. abstract="false" native="false" synchronized="false"
  12860. static="false" final="false" visibility="public"
  12861. deprecated="not deprecated">
  12862. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12863. <param name="bufferSize" type="int"/>
  12864. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12865. <exception name="IOException" type="java.io.IOException"/>
  12866. </method>
  12867. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  12868. abstract="false" native="false" synchronized="false"
  12869. static="false" final="false" visibility="public"
  12870. deprecated="not deprecated">
  12871. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12872. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12873. <param name="flags" type="java.util.EnumSet"/>
  12874. <param name="bufferSize" type="int"/>
  12875. <param name="replication" type="short"/>
  12876. <param name="blockSize" type="long"/>
  12877. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12878. <exception name="IOException" type="java.io.IOException"/>
  12879. </method>
  12880. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12881. abstract="false" native="false" synchronized="false"
  12882. static="false" final="false" visibility="public"
  12883. deprecated="not deprecated">
  12884. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12885. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12886. <param name="overwrite" type="boolean"/>
  12887. <param name="bufferSize" type="int"/>
  12888. <param name="replication" type="short"/>
  12889. <param name="blockSize" type="long"/>
  12890. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12891. <exception name="IOException" type="java.io.IOException"/>
  12892. </method>
  12893. <method name="delete" return="boolean"
  12894. abstract="false" native="false" synchronized="false"
  12895. static="false" final="false" visibility="public"
  12896. deprecated="not deprecated">
  12897. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12898. <param name="recursive" type="boolean"/>
  12899. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12900. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12901. <exception name="IOException" type="java.io.IOException"/>
  12902. </method>
  12903. <method name="delete" return="boolean"
  12904. abstract="false" native="false" synchronized="false"
  12905. static="false" final="false" visibility="public"
  12906. deprecated="not deprecated">
  12907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12908. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12909. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12910. <exception name="IOException" type="java.io.IOException"/>
  12911. </method>
  12912. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  12913. abstract="false" native="false" synchronized="false"
  12914. static="false" final="false" visibility="public"
  12915. deprecated="not deprecated">
  12916. <param name="fs" type="org.apache.hadoop.fs.FileStatus"/>
  12917. <param name="start" type="long"/>
  12918. <param name="len" type="long"/>
  12919. <exception name="IOException" type="java.io.IOException"/>
  12920. </method>
  12921. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  12922. abstract="false" native="false" synchronized="false"
  12923. static="false" final="false" visibility="public"
  12924. deprecated="not deprecated">
  12925. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12926. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12927. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12928. <exception name="IOException" type="java.io.IOException"/>
  12929. </method>
  12930. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12931. abstract="false" native="false" synchronized="false"
  12932. static="false" final="false" visibility="public"
  12933. deprecated="not deprecated">
  12934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12935. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12936. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12937. <exception name="IOException" type="java.io.IOException"/>
  12938. </method>
  12939. <method name="access"
  12940. abstract="false" native="false" synchronized="false"
  12941. static="false" final="false" visibility="public"
  12942. deprecated="not deprecated">
  12943. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12944. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  12945. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12946. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12947. <exception name="IOException" type="java.io.IOException"/>
  12948. </method>
  12949. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12950. abstract="false" native="false" synchronized="false"
  12951. static="false" final="false" visibility="public"
  12952. deprecated="not deprecated">
  12953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12954. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12955. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12956. <exception name="IOException" type="java.io.IOException"/>
  12957. </method>
  12958. <method name="listLocatedStatus" return="org.apache.hadoop.fs.RemoteIterator"
  12959. abstract="false" native="false" synchronized="false"
  12960. static="false" final="false" visibility="public"
  12961. deprecated="not deprecated">
  12962. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12963. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  12964. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12965. <exception name="IOException" type="java.io.IOException"/>
  12966. </method>
  12967. <method name="mkdirs" return="boolean"
  12968. abstract="false" native="false" synchronized="false"
  12969. static="false" final="false" visibility="public"
  12970. deprecated="not deprecated">
  12971. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  12972. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12973. <exception name="IOException" type="java.io.IOException"/>
  12974. </method>
  12975. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12976. abstract="false" native="false" synchronized="false"
  12977. static="false" final="false" visibility="public"
  12978. deprecated="not deprecated">
  12979. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12980. <param name="bufferSize" type="int"/>
  12981. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  12982. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  12983. <exception name="IOException" type="java.io.IOException"/>
  12984. </method>
  12985. <method name="rename" return="boolean"
  12986. abstract="false" native="false" synchronized="false"
  12987. static="false" final="false" visibility="public"
  12988. deprecated="not deprecated">
  12989. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12990. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12991. <exception name="IOException" type="java.io.IOException"/>
  12992. </method>
  12993. <method name="truncate" return="boolean"
  12994. abstract="false" native="false" synchronized="false"
  12995. static="false" final="false" visibility="public"
  12996. deprecated="not deprecated">
  12997. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12998. <param name="newLength" type="long"/>
  12999. <exception name="IOException" type="java.io.IOException"/>
  13000. </method>
  13001. <method name="setOwner"
  13002. abstract="false" native="false" synchronized="false"
  13003. static="false" final="false" visibility="public"
  13004. deprecated="not deprecated">
  13005. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13006. <param name="username" type="java.lang.String"/>
  13007. <param name="groupname" type="java.lang.String"/>
  13008. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13009. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13010. <exception name="IOException" type="java.io.IOException"/>
  13011. </method>
  13012. <method name="setPermission"
  13013. abstract="false" native="false" synchronized="false"
  13014. static="false" final="false" visibility="public"
  13015. deprecated="not deprecated">
  13016. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13017. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13018. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13019. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13020. <exception name="IOException" type="java.io.IOException"/>
  13021. </method>
  13022. <method name="setReplication" return="boolean"
  13023. abstract="false" native="false" synchronized="false"
  13024. static="false" final="false" visibility="public"
  13025. deprecated="not deprecated">
  13026. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13027. <param name="replication" type="short"/>
  13028. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13029. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13030. <exception name="IOException" type="java.io.IOException"/>
  13031. </method>
  13032. <method name="setTimes"
  13033. abstract="false" native="false" synchronized="false"
  13034. static="false" final="false" visibility="public"
  13035. deprecated="not deprecated">
  13036. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13037. <param name="mtime" type="long"/>
  13038. <param name="atime" type="long"/>
  13039. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13040. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13041. <exception name="IOException" type="java.io.IOException"/>
  13042. </method>
  13043. <method name="modifyAclEntries"
  13044. abstract="false" native="false" synchronized="false"
  13045. static="false" final="false" visibility="public"
  13046. deprecated="not deprecated">
  13047. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13048. <param name="aclSpec" type="java.util.List"/>
  13049. <exception name="IOException" type="java.io.IOException"/>
  13050. </method>
  13051. <method name="removeAclEntries"
  13052. abstract="false" native="false" synchronized="false"
  13053. static="false" final="false" visibility="public"
  13054. deprecated="not deprecated">
  13055. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13056. <param name="aclSpec" type="java.util.List"/>
  13057. <exception name="IOException" type="java.io.IOException"/>
  13058. </method>
  13059. <method name="removeDefaultAcl"
  13060. abstract="false" native="false" synchronized="false"
  13061. static="false" final="false" visibility="public"
  13062. deprecated="not deprecated">
  13063. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13064. <exception name="IOException" type="java.io.IOException"/>
  13065. </method>
  13066. <method name="removeAcl"
  13067. abstract="false" native="false" synchronized="false"
  13068. static="false" final="false" visibility="public"
  13069. deprecated="not deprecated">
  13070. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13071. <exception name="IOException" type="java.io.IOException"/>
  13072. </method>
  13073. <method name="setAcl"
  13074. abstract="false" native="false" synchronized="false"
  13075. static="false" final="false" visibility="public"
  13076. deprecated="not deprecated">
  13077. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13078. <param name="aclSpec" type="java.util.List"/>
  13079. <exception name="IOException" type="java.io.IOException"/>
  13080. </method>
  13081. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  13082. abstract="false" native="false" synchronized="false"
  13083. static="false" final="false" visibility="public"
  13084. deprecated="not deprecated">
  13085. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13086. <exception name="IOException" type="java.io.IOException"/>
  13087. </method>
  13088. <method name="setXAttr"
  13089. abstract="false" native="false" synchronized="false"
  13090. static="false" final="false" visibility="public"
  13091. deprecated="not deprecated">
  13092. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13093. <param name="name" type="java.lang.String"/>
  13094. <param name="value" type="byte[]"/>
  13095. <param name="flag" type="java.util.EnumSet"/>
  13096. <exception name="IOException" type="java.io.IOException"/>
  13097. </method>
  13098. <method name="getXAttr" return="byte[]"
  13099. abstract="false" native="false" synchronized="false"
  13100. static="false" final="false" visibility="public"
  13101. deprecated="not deprecated">
  13102. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13103. <param name="name" type="java.lang.String"/>
  13104. <exception name="IOException" type="java.io.IOException"/>
  13105. </method>
  13106. <method name="getXAttrs" return="java.util.Map"
  13107. abstract="false" native="false" synchronized="false"
  13108. static="false" final="false" visibility="public"
  13109. deprecated="not deprecated">
  13110. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13111. <exception name="IOException" type="java.io.IOException"/>
  13112. </method>
  13113. <method name="getXAttrs" return="java.util.Map"
  13114. abstract="false" native="false" synchronized="false"
  13115. static="false" final="false" visibility="public"
  13116. deprecated="not deprecated">
  13117. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13118. <param name="names" type="java.util.List"/>
  13119. <exception name="IOException" type="java.io.IOException"/>
  13120. </method>
  13121. <method name="listXAttrs" return="java.util.List"
  13122. abstract="false" native="false" synchronized="false"
  13123. static="false" final="false" visibility="public"
  13124. deprecated="not deprecated">
  13125. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13126. <exception name="IOException" type="java.io.IOException"/>
  13127. </method>
  13128. <method name="removeXAttr"
  13129. abstract="false" native="false" synchronized="false"
  13130. static="false" final="false" visibility="public"
  13131. deprecated="not deprecated">
  13132. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13133. <param name="name" type="java.lang.String"/>
  13134. <exception name="IOException" type="java.io.IOException"/>
  13135. </method>
  13136. <method name="setVerifyChecksum"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="false" final="false" visibility="public"
  13139. deprecated="not deprecated">
  13140. <param name="verifyChecksum" type="boolean"/>
  13141. </method>
  13142. <method name="getDefaultBlockSize" return="long"
  13143. abstract="false" native="false" synchronized="false"
  13144. static="false" final="false" visibility="public"
  13145. deprecated="not deprecated">
  13146. </method>
  13147. <method name="getDefaultReplication" return="short"
  13148. abstract="false" native="false" synchronized="false"
  13149. static="false" final="false" visibility="public"
  13150. deprecated="not deprecated">
  13151. </method>
  13152. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13153. abstract="false" native="false" synchronized="false"
  13154. static="false" final="false" visibility="public"
  13155. deprecated="not deprecated">
  13156. <exception name="IOException" type="java.io.IOException"/>
  13157. </method>
  13158. <method name="getDefaultBlockSize" return="long"
  13159. abstract="false" native="false" synchronized="false"
  13160. static="false" final="false" visibility="public"
  13161. deprecated="not deprecated">
  13162. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13163. </method>
  13164. <method name="getDefaultReplication" return="short"
  13165. abstract="false" native="false" synchronized="false"
  13166. static="false" final="false" visibility="public"
  13167. deprecated="not deprecated">
  13168. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13169. </method>
  13170. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13171. abstract="false" native="false" synchronized="false"
  13172. static="false" final="false" visibility="public"
  13173. deprecated="not deprecated">
  13174. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13175. <exception name="IOException" type="java.io.IOException"/>
  13176. </method>
  13177. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  13178. abstract="false" native="false" synchronized="false"
  13179. static="false" final="false" visibility="public"
  13180. deprecated="not deprecated">
  13181. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13182. <exception name="IOException" type="java.io.IOException"/>
  13183. </method>
  13184. <method name="setWriteChecksum"
  13185. abstract="false" native="false" synchronized="false"
  13186. static="false" final="false" visibility="public"
  13187. deprecated="not deprecated">
  13188. <param name="writeChecksum" type="boolean"/>
  13189. </method>
  13190. <method name="getChildFileSystems" return="org.apache.hadoop.fs.FileSystem[]"
  13191. abstract="false" native="false" synchronized="false"
  13192. static="false" final="false" visibility="public"
  13193. deprecated="not deprecated">
  13194. </method>
  13195. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFileSystem.MountPoint[]"
  13196. abstract="false" native="false" synchronized="false"
  13197. static="false" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. </method>
  13200. <doc>
  13201. <![CDATA[ViewFileSystem (extends the FileSystem interface) implements a client-side
  13202. mount table. Its spec and implementation is identical to {@link ViewFs}.]]>
  13203. </doc>
  13204. </class>
  13205. <!-- end class org.apache.hadoop.fs.viewfs.ViewFileSystem -->
  13206. <!-- start class org.apache.hadoop.fs.viewfs.ViewFs -->
  13207. <class name="ViewFs" extends="org.apache.hadoop.fs.AbstractFileSystem"
  13208. abstract="false"
  13209. static="false" final="false" visibility="public"
  13210. deprecated="not deprecated">
  13211. <constructor name="ViewFs" type="org.apache.hadoop.conf.Configuration"
  13212. static="false" final="false" visibility="public"
  13213. deprecated="not deprecated">
  13214. <exception name="IOException" type="java.io.IOException"/>
  13215. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  13216. </constructor>
  13217. <method name="getServerDefaults" return="org.apache.hadoop.fs.FsServerDefaults"
  13218. abstract="false" native="false" synchronized="false"
  13219. static="false" final="false" visibility="public"
  13220. deprecated="not deprecated">
  13221. <exception name="IOException" type="java.io.IOException"/>
  13222. </method>
  13223. <method name="getUriDefaultPort" return="int"
  13224. abstract="false" native="false" synchronized="false"
  13225. static="false" final="false" visibility="public"
  13226. deprecated="not deprecated">
  13227. </method>
  13228. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  13229. abstract="false" native="false" synchronized="false"
  13230. static="false" final="false" visibility="public"
  13231. deprecated="not deprecated">
  13232. </method>
  13233. <method name="resolvePath" return="org.apache.hadoop.fs.Path"
  13234. abstract="false" native="false" synchronized="false"
  13235. static="false" final="false" visibility="public"
  13236. deprecated="not deprecated">
  13237. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13238. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13239. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13240. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13241. <exception name="IOException" type="java.io.IOException"/>
  13242. </method>
  13243. <method name="createInternal" return="org.apache.hadoop.fs.FSDataOutputStream"
  13244. abstract="false" native="false" synchronized="false"
  13245. static="false" final="false" visibility="public"
  13246. deprecated="not deprecated">
  13247. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13248. <param name="flag" type="java.util.EnumSet"/>
  13249. <param name="absolutePermission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13250. <param name="bufferSize" type="int"/>
  13251. <param name="replication" type="short"/>
  13252. <param name="blockSize" type="long"/>
  13253. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13254. <param name="checksumOpt" type="org.apache.hadoop.fs.Options.ChecksumOpt"/>
  13255. <param name="createParent" type="boolean"/>
  13256. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13257. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  13258. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13259. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  13260. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13261. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13262. <exception name="IOException" type="java.io.IOException"/>
  13263. </method>
  13264. <method name="delete" return="boolean"
  13265. abstract="false" native="false" synchronized="false"
  13266. static="false" final="false" visibility="public"
  13267. deprecated="not deprecated">
  13268. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13269. <param name="recursive" type="boolean"/>
  13270. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13271. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13272. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13273. <exception name="IOException" type="java.io.IOException"/>
  13274. </method>
  13275. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  13276. abstract="false" native="false" synchronized="false"
  13277. static="false" final="false" visibility="public"
  13278. deprecated="not deprecated">
  13279. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13280. <param name="start" type="long"/>
  13281. <param name="len" type="long"/>
  13282. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13283. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13284. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13285. <exception name="IOException" type="java.io.IOException"/>
  13286. </method>
  13287. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  13288. abstract="false" native="false" synchronized="false"
  13289. static="false" final="false" visibility="public"
  13290. deprecated="not deprecated">
  13291. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13292. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13293. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13294. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13295. <exception name="IOException" type="java.io.IOException"/>
  13296. </method>
  13297. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13298. abstract="false" native="false" synchronized="false"
  13299. static="false" final="false" visibility="public"
  13300. deprecated="not deprecated">
  13301. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13302. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13303. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13304. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13305. <exception name="IOException" type="java.io.IOException"/>
  13306. </method>
  13307. <method name="access"
  13308. abstract="false" native="false" synchronized="false"
  13309. static="false" final="false" visibility="public"
  13310. deprecated="not deprecated">
  13311. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13312. <param name="mode" type="org.apache.hadoop.fs.permission.FsAction"/>
  13313. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13314. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13315. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13316. <exception name="IOException" type="java.io.IOException"/>
  13317. </method>
  13318. <method name="getFileLinkStatus" return="org.apache.hadoop.fs.FileStatus"
  13319. abstract="false" native="false" synchronized="false"
  13320. static="false" final="false" visibility="public"
  13321. deprecated="not deprecated">
  13322. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13323. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13324. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13325. <exception name="UnsupportedFileSystemException" type="org.apache.hadoop.fs.UnsupportedFileSystemException"/>
  13326. <exception name="IOException" type="java.io.IOException"/>
  13327. </method>
  13328. <method name="getFsStatus" return="org.apache.hadoop.fs.FsStatus"
  13329. abstract="false" native="false" synchronized="false"
  13330. static="false" final="false" visibility="public"
  13331. deprecated="not deprecated">
  13332. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13333. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13334. <exception name="IOException" type="java.io.IOException"/>
  13335. </method>
  13336. <method name="listStatusIterator" return="org.apache.hadoop.fs.RemoteIterator"
  13337. abstract="false" native="false" synchronized="false"
  13338. static="false" final="false" visibility="public"
  13339. deprecated="not deprecated">
  13340. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13341. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13342. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13343. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13344. <exception name="IOException" type="java.io.IOException"/>
  13345. </method>
  13346. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13347. abstract="false" native="false" synchronized="false"
  13348. static="false" final="false" visibility="public"
  13349. deprecated="not deprecated">
  13350. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13351. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13352. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13353. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13354. <exception name="IOException" type="java.io.IOException"/>
  13355. </method>
  13356. <method name="mkdir"
  13357. abstract="false" native="false" synchronized="false"
  13358. static="false" final="false" visibility="public"
  13359. deprecated="not deprecated">
  13360. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  13361. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13362. <param name="createParent" type="boolean"/>
  13363. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13364. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  13365. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13366. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13367. <exception name="IOException" type="java.io.IOException"/>
  13368. </method>
  13369. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13370. abstract="false" native="false" synchronized="false"
  13371. static="false" final="false" visibility="public"
  13372. deprecated="not deprecated">
  13373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13374. <param name="bufferSize" type="int"/>
  13375. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13376. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13377. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13378. <exception name="IOException" type="java.io.IOException"/>
  13379. </method>
  13380. <method name="truncate" return="boolean"
  13381. abstract="false" native="false" synchronized="false"
  13382. static="false" final="false" visibility="public"
  13383. deprecated="not deprecated">
  13384. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13385. <param name="newLength" type="long"/>
  13386. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13387. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13388. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13389. <exception name="IOException" type="java.io.IOException"/>
  13390. </method>
  13391. <method name="renameInternal"
  13392. abstract="false" native="false" synchronized="false"
  13393. static="false" final="false" visibility="public"
  13394. deprecated="not deprecated">
  13395. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13396. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13397. <param name="overwrite" type="boolean"/>
  13398. <exception name="IOException" type="java.io.IOException"/>
  13399. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13400. </method>
  13401. <method name="renameInternal"
  13402. abstract="false" native="false" synchronized="false"
  13403. static="false" final="false" visibility="public"
  13404. deprecated="not deprecated">
  13405. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13406. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13407. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13408. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.fs.FileAlreadyExistsException"/>
  13409. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13410. <exception name="ParentNotDirectoryException" type="org.apache.hadoop.fs.ParentNotDirectoryException"/>
  13411. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13412. <exception name="IOException" type="java.io.IOException"/>
  13413. </method>
  13414. <method name="supportsSymlinks" return="boolean"
  13415. abstract="false" native="false" synchronized="false"
  13416. static="false" final="false" visibility="public"
  13417. deprecated="not deprecated">
  13418. </method>
  13419. <method name="createSymlink"
  13420. abstract="false" native="false" synchronized="false"
  13421. static="false" final="false" visibility="public"
  13422. deprecated="not deprecated">
  13423. <param name="target" type="org.apache.hadoop.fs.Path"/>
  13424. <param name="link" type="org.apache.hadoop.fs.Path"/>
  13425. <param name="createParent" type="boolean"/>
  13426. <exception name="IOException" type="java.io.IOException"/>
  13427. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13428. </method>
  13429. <method name="getLinkTarget" return="org.apache.hadoop.fs.Path"
  13430. abstract="false" native="false" synchronized="false"
  13431. static="false" final="false" visibility="public"
  13432. deprecated="not deprecated">
  13433. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13434. <exception name="IOException" type="java.io.IOException"/>
  13435. </method>
  13436. <method name="setOwner"
  13437. abstract="false" native="false" synchronized="false"
  13438. static="false" final="false" visibility="public"
  13439. deprecated="not deprecated">
  13440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13441. <param name="username" type="java.lang.String"/>
  13442. <param name="groupname" type="java.lang.String"/>
  13443. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13444. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13445. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13446. <exception name="IOException" type="java.io.IOException"/>
  13447. </method>
  13448. <method name="setPermission"
  13449. abstract="false" native="false" synchronized="false"
  13450. static="false" final="false" visibility="public"
  13451. deprecated="not deprecated">
  13452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13453. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13454. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13455. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13456. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13457. <exception name="IOException" type="java.io.IOException"/>
  13458. </method>
  13459. <method name="setReplication" return="boolean"
  13460. abstract="false" native="false" synchronized="false"
  13461. static="false" final="false" visibility="public"
  13462. deprecated="not deprecated">
  13463. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13464. <param name="replication" type="short"/>
  13465. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13466. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13467. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13468. <exception name="IOException" type="java.io.IOException"/>
  13469. </method>
  13470. <method name="setTimes"
  13471. abstract="false" native="false" synchronized="false"
  13472. static="false" final="false" visibility="public"
  13473. deprecated="not deprecated">
  13474. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13475. <param name="mtime" type="long"/>
  13476. <param name="atime" type="long"/>
  13477. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13478. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  13479. <exception name="UnresolvedLinkException" type="org.apache.hadoop.fs.UnresolvedLinkException"/>
  13480. <exception name="IOException" type="java.io.IOException"/>
  13481. </method>
  13482. <method name="setVerifyChecksum"
  13483. abstract="false" native="false" synchronized="false"
  13484. static="false" final="false" visibility="public"
  13485. deprecated="not deprecated">
  13486. <param name="verifyChecksum" type="boolean"/>
  13487. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13488. <exception name="IOException" type="java.io.IOException"/>
  13489. </method>
  13490. <method name="getMountPoints" return="org.apache.hadoop.fs.viewfs.ViewFs.MountPoint[]"
  13491. abstract="false" native="false" synchronized="false"
  13492. static="false" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. </method>
  13495. <method name="getDelegationTokens" return="java.util.List"
  13496. abstract="false" native="false" synchronized="false"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <param name="renewer" type="java.lang.String"/>
  13500. <exception name="IOException" type="java.io.IOException"/>
  13501. </method>
  13502. <method name="isValidName" return="boolean"
  13503. abstract="false" native="false" synchronized="false"
  13504. static="false" final="false" visibility="public"
  13505. deprecated="not deprecated">
  13506. <param name="src" type="java.lang.String"/>
  13507. </method>
  13508. <method name="modifyAclEntries"
  13509. abstract="false" native="false" synchronized="false"
  13510. static="false" final="false" visibility="public"
  13511. deprecated="not deprecated">
  13512. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13513. <param name="aclSpec" type="java.util.List"/>
  13514. <exception name="IOException" type="java.io.IOException"/>
  13515. </method>
  13516. <method name="removeAclEntries"
  13517. abstract="false" native="false" synchronized="false"
  13518. static="false" final="false" visibility="public"
  13519. deprecated="not deprecated">
  13520. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13521. <param name="aclSpec" type="java.util.List"/>
  13522. <exception name="IOException" type="java.io.IOException"/>
  13523. </method>
  13524. <method name="removeDefaultAcl"
  13525. abstract="false" native="false" synchronized="false"
  13526. static="false" final="false" visibility="public"
  13527. deprecated="not deprecated">
  13528. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13529. <exception name="IOException" type="java.io.IOException"/>
  13530. </method>
  13531. <method name="removeAcl"
  13532. abstract="false" native="false" synchronized="false"
  13533. static="false" final="false" visibility="public"
  13534. deprecated="not deprecated">
  13535. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13536. <exception name="IOException" type="java.io.IOException"/>
  13537. </method>
  13538. <method name="setAcl"
  13539. abstract="false" native="false" synchronized="false"
  13540. static="false" final="false" visibility="public"
  13541. deprecated="not deprecated">
  13542. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13543. <param name="aclSpec" type="java.util.List"/>
  13544. <exception name="IOException" type="java.io.IOException"/>
  13545. </method>
  13546. <method name="getAclStatus" return="org.apache.hadoop.fs.permission.AclStatus"
  13547. abstract="false" native="false" synchronized="false"
  13548. static="false" final="false" visibility="public"
  13549. deprecated="not deprecated">
  13550. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13551. <exception name="IOException" type="java.io.IOException"/>
  13552. </method>
  13553. <method name="setXAttr"
  13554. abstract="false" native="false" synchronized="false"
  13555. static="false" final="false" visibility="public"
  13556. deprecated="not deprecated">
  13557. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13558. <param name="name" type="java.lang.String"/>
  13559. <param name="value" type="byte[]"/>
  13560. <param name="flag" type="java.util.EnumSet"/>
  13561. <exception name="IOException" type="java.io.IOException"/>
  13562. </method>
  13563. <method name="getXAttr" return="byte[]"
  13564. abstract="false" native="false" synchronized="false"
  13565. static="false" final="false" visibility="public"
  13566. deprecated="not deprecated">
  13567. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13568. <param name="name" type="java.lang.String"/>
  13569. <exception name="IOException" type="java.io.IOException"/>
  13570. </method>
  13571. <method name="getXAttrs" return="java.util.Map"
  13572. abstract="false" native="false" synchronized="false"
  13573. static="false" final="false" visibility="public"
  13574. deprecated="not deprecated">
  13575. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13576. <exception name="IOException" type="java.io.IOException"/>
  13577. </method>
  13578. <method name="getXAttrs" return="java.util.Map"
  13579. abstract="false" native="false" synchronized="false"
  13580. static="false" final="false" visibility="public"
  13581. deprecated="not deprecated">
  13582. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13583. <param name="names" type="java.util.List"/>
  13584. <exception name="IOException" type="java.io.IOException"/>
  13585. </method>
  13586. <method name="listXAttrs" return="java.util.List"
  13587. abstract="false" native="false" synchronized="false"
  13588. static="false" final="false" visibility="public"
  13589. deprecated="not deprecated">
  13590. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13591. <exception name="IOException" type="java.io.IOException"/>
  13592. </method>
  13593. <method name="removeXAttr"
  13594. abstract="false" native="false" synchronized="false"
  13595. static="false" final="false" visibility="public"
  13596. deprecated="not deprecated">
  13597. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13598. <param name="name" type="java.lang.String"/>
  13599. <exception name="IOException" type="java.io.IOException"/>
  13600. </method>
  13601. <doc>
  13602. <![CDATA[ViewFs (extends the AbstractFileSystem interface) implements a client-side
  13603. mount table. The viewFs file system is implemented completely in memory on
  13604. the client side. The client-side mount table allows a client to provide a
  13605. customized view of a file system namespace that is composed from
  13606. one or more individual file systems (a localFs or Hdfs, S3fs, etc).
  13607. For example one could have a mount table that provides links such as
  13608. <ul>
  13609. <li> /user -> hdfs://nnContainingUserDir/user
  13610. <li> /project/foo -> hdfs://nnProject1/projects/foo
  13611. <li> /project/bar -> hdfs://nnProject2/projects/bar
  13612. <li> /tmp -> hdfs://nnTmp/privateTmpForUserXXX
  13613. </ul>
  13614. ViewFs is specified with the following URI: <b>viewfs:///</b>
  13615. <p>
  13616. To use viewfs one would typically set the default file system in the
  13617. config (i.e. fs.default.name< = viewfs:///) along with the
  13618. mount table config variables as described below.
  13619. <p>
  13620. <b> ** Config variables to specify the mount table entries ** </b>
  13621. <p>
  13622. The file system is initialized from the standard Hadoop config through
  13623. config variables.
  13624. See {@link FsConstants} for URI and Scheme constants;
  13625. See {@link Constants} for config var constants;
  13626. see {@link ConfigUtil} for convenient lib.
  13627. <p>
  13628. All the mount table config entries for view fs are prefixed by
  13629. <b>fs.viewfs.mounttable.</b>
  13630. For example the above example can be specified with the following
  13631. config variables:
  13632. <ul>
  13633. <li> fs.viewfs.mounttable.default.link./user=
  13634. hdfs://nnContainingUserDir/user
  13635. <li> fs.viewfs.mounttable.default.link./project/foo=
  13636. hdfs://nnProject1/projects/foo
  13637. <li> fs.viewfs.mounttable.default.link./project/bar=
  13638. hdfs://nnProject2/projects/bar
  13639. <li> fs.viewfs.mounttable.default.link./tmp=
  13640. hdfs://nnTmp/privateTmpForUserXXX
  13641. </ul>
  13642. The default mount table (when no authority is specified) is
  13643. from config variables prefixed by <b>fs.viewFs.mounttable.default </b>
  13644. The authority component of a URI can be used to specify a different mount
  13645. table. For example,
  13646. <ul>
  13647. <li> viewfs://sanjayMountable/
  13648. </ul>
  13649. is initialized from fs.viewFs.mounttable.sanjayMountable.* config variables.
  13650. <p>
  13651. <b> **** Merge Mounts **** </b>(NOTE: merge mounts are not implemented yet.)
  13652. <p>
  13653. One can also use "MergeMounts" to merge several directories (this is
  13654. sometimes called union-mounts or junction-mounts in the literature.
  13655. For example of the home directories are stored on say two file systems
  13656. (because they do not fit on one) then one could specify a mount
  13657. entry such as following merges two dirs:
  13658. <ul>
  13659. <li> /user -> hdfs://nnUser1/user,hdfs://nnUser2/user
  13660. </ul>
  13661. Such a mergeLink can be specified with the following config var where ","
  13662. is used as the separator for each of links to be merged:
  13663. <ul>
  13664. <li> fs.viewfs.mounttable.default.linkMerge./user=
  13665. hdfs://nnUser1/user,hdfs://nnUser1/user
  13666. </ul>
  13667. A special case of the merge mount is where mount table's root is merged
  13668. with the root (slash) of another file system:
  13669. <ul>
  13670. <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
  13671. </ul>
  13672. In this cases the root of the mount table is merged with the root of
  13673. <b>hdfs://nn99/ </b>]]>
  13674. </doc>
  13675. </class>
  13676. <!-- end class org.apache.hadoop.fs.viewfs.ViewFs -->
  13677. </package>
  13678. <package name="org.apache.hadoop.ha">
  13679. <!-- start class org.apache.hadoop.ha.BadFencingConfigurationException -->
  13680. <class name="BadFencingConfigurationException" extends="java.io.IOException"
  13681. abstract="false"
  13682. static="false" final="false" visibility="public"
  13683. deprecated="not deprecated">
  13684. <constructor name="BadFencingConfigurationException" type="java.lang.String"
  13685. static="false" final="false" visibility="public"
  13686. deprecated="not deprecated">
  13687. </constructor>
  13688. <constructor name="BadFencingConfigurationException" type="java.lang.String, java.lang.Throwable"
  13689. static="false" final="false" visibility="public"
  13690. deprecated="not deprecated">
  13691. </constructor>
  13692. <doc>
  13693. <![CDATA[Indicates that the operator has specified an invalid configuration
  13694. for fencing methods.]]>
  13695. </doc>
  13696. </class>
  13697. <!-- end class org.apache.hadoop.ha.BadFencingConfigurationException -->
  13698. <!-- start class org.apache.hadoop.ha.FailoverFailedException -->
  13699. <class name="FailoverFailedException" extends="java.lang.Exception"
  13700. abstract="false"
  13701. static="false" final="false" visibility="public"
  13702. deprecated="not deprecated">
  13703. <constructor name="FailoverFailedException" type="java.lang.String"
  13704. static="false" final="false" visibility="public"
  13705. deprecated="not deprecated">
  13706. </constructor>
  13707. <constructor name="FailoverFailedException" type="java.lang.String, java.lang.Throwable"
  13708. static="false" final="false" visibility="public"
  13709. deprecated="not deprecated">
  13710. </constructor>
  13711. <doc>
  13712. <![CDATA[Exception thrown to indicate service failover has failed.]]>
  13713. </doc>
  13714. </class>
  13715. <!-- end class org.apache.hadoop.ha.FailoverFailedException -->
  13716. <!-- start interface org.apache.hadoop.ha.FenceMethod -->
  13717. <interface name="FenceMethod" abstract="true"
  13718. static="false" final="false" visibility="public"
  13719. deprecated="not deprecated">
  13720. <method name="checkArgs"
  13721. abstract="true" native="false" synchronized="false"
  13722. static="false" final="false" visibility="public"
  13723. deprecated="not deprecated">
  13724. <param name="args" type="java.lang.String"/>
  13725. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  13726. <doc>
  13727. <![CDATA[Verify that the given fencing method's arguments are valid.
  13728. @param args the arguments provided in the configuration. This may
  13729. be null if the operator did not configure any arguments.
  13730. @throws BadFencingConfigurationException if the arguments are invalid]]>
  13731. </doc>
  13732. </method>
  13733. <method name="tryFence" return="boolean"
  13734. abstract="true" native="false" synchronized="false"
  13735. static="false" final="false" visibility="public"
  13736. deprecated="not deprecated">
  13737. <param name="target" type="org.apache.hadoop.ha.HAServiceTarget"/>
  13738. <param name="args" type="java.lang.String"/>
  13739. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  13740. <doc>
  13741. <![CDATA[Attempt to fence the target node.
  13742. @param serviceAddr the address (host:ipcport) of the service to fence
  13743. @param args the configured arguments, which were checked at startup by
  13744. {@link #checkArgs(String)}
  13745. @return true if fencing was successful, false if unsuccessful or
  13746. indeterminate
  13747. @throws BadFencingConfigurationException if the configuration was
  13748. determined to be invalid only at runtime]]>
  13749. </doc>
  13750. </method>
  13751. <doc>
  13752. <![CDATA[A fencing method is a method by which one node can forcibly prevent
  13753. another node from making continued progress. This might be implemented
  13754. by killing a process on the other node, by denying the other node's
  13755. access to shared storage, or by accessing a PDU to cut the other node's
  13756. power.
  13757. <p>
  13758. Since these methods are often vendor- or device-specific, operators
  13759. may implement this interface in order to achieve fencing.
  13760. <p>
  13761. Fencing is configured by the operator as an ordered list of methods to
  13762. attempt. Each method will be tried in turn, and the next in the list
  13763. will only be attempted if the previous one fails. See {@link NodeFencer}
  13764. for more information.
  13765. <p>
  13766. If an implementation also implements {@link Configurable} then its
  13767. <code>setConf</code> method will be called upon instantiation.]]>
  13768. </doc>
  13769. </interface>
  13770. <!-- end interface org.apache.hadoop.ha.FenceMethod -->
  13771. <!-- start interface org.apache.hadoop.ha.HAServiceProtocol -->
  13772. <interface name="HAServiceProtocol" abstract="true"
  13773. static="false" final="false" visibility="public"
  13774. deprecated="not deprecated">
  13775. <method name="monitorHealth"
  13776. abstract="true" native="false" synchronized="false"
  13777. static="false" final="false" visibility="public"
  13778. deprecated="not deprecated">
  13779. <exception name="HealthCheckFailedException" type="org.apache.hadoop.ha.HealthCheckFailedException"/>
  13780. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13781. <exception name="IOException" type="java.io.IOException"/>
  13782. <doc>
  13783. <![CDATA[Monitor the health of service. This periodically called by the HA
  13784. frameworks to monitor the health of the service.
  13785. Service is expected to perform checks to ensure it is functional.
  13786. If the service is not healthy due to failure or partial failure,
  13787. it is expected to throw {@link HealthCheckFailedException}.
  13788. The definition of service not healthy is left to the service.
  13789. Note that when health check of an Active service fails,
  13790. failover to standby may be done.
  13791. @throws HealthCheckFailedException
  13792. if the health check of a service fails.
  13793. @throws AccessControlException
  13794. if access is denied.
  13795. @throws IOException
  13796. if other errors happen]]>
  13797. </doc>
  13798. </method>
  13799. <method name="transitionToActive"
  13800. abstract="true" native="false" synchronized="false"
  13801. static="false" final="false" visibility="public"
  13802. deprecated="not deprecated">
  13803. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  13804. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  13805. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13806. <exception name="IOException" type="java.io.IOException"/>
  13807. <doc>
  13808. <![CDATA[Request service to transition to active state. No operation, if the
  13809. service is already in active state.
  13810. @throws ServiceFailedException
  13811. if transition from standby to active fails.
  13812. @throws AccessControlException
  13813. if access is denied.
  13814. @throws IOException
  13815. if other errors happen]]>
  13816. </doc>
  13817. </method>
  13818. <method name="transitionToStandby"
  13819. abstract="true" native="false" synchronized="false"
  13820. static="false" final="false" visibility="public"
  13821. deprecated="not deprecated">
  13822. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  13823. <exception name="ServiceFailedException" type="org.apache.hadoop.ha.ServiceFailedException"/>
  13824. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13825. <exception name="IOException" type="java.io.IOException"/>
  13826. <doc>
  13827. <![CDATA[Request service to transition to standby state. No operation, if the
  13828. service is already in standby state.
  13829. @throws ServiceFailedException
  13830. if transition from active to standby fails.
  13831. @throws AccessControlException
  13832. if access is denied.
  13833. @throws IOException
  13834. if other errors happen]]>
  13835. </doc>
  13836. </method>
  13837. <method name="getServiceStatus" return="org.apache.hadoop.ha.HAServiceStatus"
  13838. abstract="true" native="false" synchronized="false"
  13839. static="false" final="false" visibility="public"
  13840. deprecated="not deprecated">
  13841. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  13842. <exception name="IOException" type="java.io.IOException"/>
  13843. <doc>
  13844. <![CDATA[Return the current status of the service. The status indicates
  13845. the current <em>state</em> (e.g ACTIVE/STANDBY) as well as
  13846. some additional information. {@see HAServiceStatus}
  13847. @throws AccessControlException
  13848. if access is denied.
  13849. @throws IOException
  13850. if other errors happen]]>
  13851. </doc>
  13852. </method>
  13853. <field name="versionID" type="long"
  13854. transient="false" volatile="false"
  13855. static="true" final="true" visibility="public"
  13856. deprecated="not deprecated">
  13857. <doc>
  13858. <![CDATA[Initial version of the protocol]]>
  13859. </doc>
  13860. </field>
  13861. <doc>
  13862. <![CDATA[Protocol interface that provides High Availability related primitives to
  13863. monitor and fail-over the service.
  13864. This interface could be used by HA frameworks to manage the service.]]>
  13865. </doc>
  13866. </interface>
  13867. <!-- end interface org.apache.hadoop.ha.HAServiceProtocol -->
  13868. <!-- start class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  13869. <class name="HAServiceProtocolHelper" extends="java.lang.Object"
  13870. abstract="false"
  13871. static="false" final="false" visibility="public"
  13872. deprecated="not deprecated">
  13873. <constructor name="HAServiceProtocolHelper"
  13874. static="false" final="false" visibility="public"
  13875. deprecated="not deprecated">
  13876. </constructor>
  13877. <method name="monitorHealth"
  13878. abstract="false" native="false" synchronized="false"
  13879. static="true" final="false" visibility="public"
  13880. deprecated="not deprecated">
  13881. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  13882. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  13883. <exception name="IOException" type="java.io.IOException"/>
  13884. </method>
  13885. <method name="transitionToActive"
  13886. abstract="false" native="false" synchronized="false"
  13887. static="true" final="false" visibility="public"
  13888. deprecated="not deprecated">
  13889. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  13890. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  13891. <exception name="IOException" type="java.io.IOException"/>
  13892. </method>
  13893. <method name="transitionToStandby"
  13894. abstract="false" native="false" synchronized="false"
  13895. static="true" final="false" visibility="public"
  13896. deprecated="not deprecated">
  13897. <param name="svc" type="org.apache.hadoop.ha.HAServiceProtocol"/>
  13898. <param name="reqInfo" type="org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo"/>
  13899. <exception name="IOException" type="java.io.IOException"/>
  13900. </method>
  13901. <doc>
  13902. <![CDATA[Helper for making {@link HAServiceProtocol} RPC calls. This helper
  13903. unwraps the {@link RemoteException} to specific exceptions.]]>
  13904. </doc>
  13905. </class>
  13906. <!-- end class org.apache.hadoop.ha.HAServiceProtocolHelper -->
  13907. <!-- start class org.apache.hadoop.ha.HAServiceTarget -->
  13908. <class name="HAServiceTarget" extends="java.lang.Object"
  13909. abstract="true"
  13910. static="false" final="false" visibility="public"
  13911. deprecated="not deprecated">
  13912. <constructor name="HAServiceTarget"
  13913. static="false" final="false" visibility="public"
  13914. deprecated="not deprecated">
  13915. </constructor>
  13916. <method name="getAddress" return="java.net.InetSocketAddress"
  13917. abstract="true" native="false" synchronized="false"
  13918. static="false" final="false" visibility="public"
  13919. deprecated="not deprecated">
  13920. <doc>
  13921. <![CDATA[@return the IPC address of the target node.]]>
  13922. </doc>
  13923. </method>
  13924. <method name="getZKFCAddress" return="java.net.InetSocketAddress"
  13925. abstract="true" native="false" synchronized="false"
  13926. static="false" final="false" visibility="public"
  13927. deprecated="not deprecated">
  13928. <doc>
  13929. <![CDATA[@return the IPC address of the ZKFC on the target node]]>
  13930. </doc>
  13931. </method>
  13932. <method name="getFencer" return="org.apache.hadoop.ha.NodeFencer"
  13933. abstract="true" native="false" synchronized="false"
  13934. static="false" final="false" visibility="public"
  13935. deprecated="not deprecated">
  13936. <doc>
  13937. <![CDATA[@return a Fencer implementation configured for this target node]]>
  13938. </doc>
  13939. </method>
  13940. <method name="checkFencingConfigured"
  13941. abstract="true" native="false" synchronized="false"
  13942. static="false" final="false" visibility="public"
  13943. deprecated="not deprecated">
  13944. <exception name="BadFencingConfigurationException" type="org.apache.hadoop.ha.BadFencingConfigurationException"/>
  13945. <doc>
  13946. <![CDATA[@throws BadFencingConfigurationException if the fencing configuration
  13947. appears to be invalid. This is divorced from the above
  13948. {@link #getFencer()} method so that the configuration can be checked
  13949. during the pre-flight phase of failover.]]>
  13950. </doc>
  13951. </method>
  13952. <method name="getProxy" return="org.apache.hadoop.ha.HAServiceProtocol"
  13953. abstract="false" native="false" synchronized="false"
  13954. static="false" final="false" visibility="public"
  13955. deprecated="not deprecated">
  13956. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13957. <param name="timeoutMs" type="int"/>
  13958. <exception name="IOException" type="java.io.IOException"/>
  13959. <doc>
  13960. <![CDATA[@return a proxy to connect to the target HA Service.]]>
  13961. </doc>
  13962. </method>
  13963. <method name="getZKFCProxy" return="org.apache.hadoop.ha.ZKFCProtocol"
  13964. abstract="false" native="false" synchronized="false"
  13965. static="false" final="false" visibility="public"
  13966. deprecated="not deprecated">
  13967. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13968. <param name="timeoutMs" type="int"/>
  13969. <exception name="IOException" type="java.io.IOException"/>
  13970. <doc>
  13971. <![CDATA[@return a proxy to the ZKFC which is associated with this HA service.]]>
  13972. </doc>
  13973. </method>
  13974. <method name="getFencingParameters" return="java.util.Map"
  13975. abstract="false" native="false" synchronized="false"
  13976. static="false" final="true" visibility="public"
  13977. deprecated="not deprecated">
  13978. </method>
  13979. <method name="addFencingParameters"
  13980. abstract="false" native="false" synchronized="false"
  13981. static="false" final="false" visibility="protected"
  13982. deprecated="not deprecated">
  13983. <param name="ret" type="java.util.Map"/>
  13984. <doc>
  13985. <![CDATA[Hook to allow subclasses to add any parameters they would like to
  13986. expose to fencing implementations/scripts. Fencing methods are free
  13987. to use this map as they see fit -- notably, the shell script
  13988. implementation takes each entry, prepends 'target_', substitutes
  13989. '_' for '.', and adds it to the environment of the script.
  13990. Subclass implementations should be sure to delegate to the superclass
  13991. implementation as well as adding their own keys.
  13992. @param ret map which can be mutated to pass parameters to the fencer]]>
  13993. </doc>
  13994. </method>
  13995. <method name="isAutoFailoverEnabled" return="boolean"
  13996. abstract="false" native="false" synchronized="false"
  13997. static="false" final="false" visibility="public"
  13998. deprecated="not deprecated">
  13999. <doc>
  14000. <![CDATA[@return true if auto failover should be considered enabled]]>
  14001. </doc>
  14002. </method>
  14003. <doc>
  14004. <![CDATA[Represents a target of the client side HA administration commands.]]>
  14005. </doc>
  14006. </class>
  14007. <!-- end class org.apache.hadoop.ha.HAServiceTarget -->
  14008. <!-- start class org.apache.hadoop.ha.HealthCheckFailedException -->
  14009. <class name="HealthCheckFailedException" extends="java.io.IOException"
  14010. abstract="false"
  14011. static="false" final="false" visibility="public"
  14012. deprecated="not deprecated">
  14013. <constructor name="HealthCheckFailedException" type="java.lang.String"
  14014. static="false" final="false" visibility="public"
  14015. deprecated="not deprecated">
  14016. </constructor>
  14017. <constructor name="HealthCheckFailedException" type="java.lang.String, java.lang.Throwable"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. </constructor>
  14021. <doc>
  14022. <![CDATA[Exception thrown to indicate that health check of a service failed.]]>
  14023. </doc>
  14024. </class>
  14025. <!-- end class org.apache.hadoop.ha.HealthCheckFailedException -->
  14026. <!-- start class org.apache.hadoop.ha.ServiceFailedException -->
  14027. <class name="ServiceFailedException" extends="java.io.IOException"
  14028. abstract="false"
  14029. static="false" final="false" visibility="public"
  14030. deprecated="not deprecated">
  14031. <constructor name="ServiceFailedException" type="java.lang.String"
  14032. static="false" final="false" visibility="public"
  14033. deprecated="not deprecated">
  14034. </constructor>
  14035. <constructor name="ServiceFailedException" type="java.lang.String, java.lang.Throwable"
  14036. static="false" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. </constructor>
  14039. <doc>
  14040. <![CDATA[Exception thrown to indicate that an operation performed
  14041. to modify the state of a service or application failed.]]>
  14042. </doc>
  14043. </class>
  14044. <!-- end class org.apache.hadoop.ha.ServiceFailedException -->
  14045. </package>
  14046. <package name="org.apache.hadoop.ha.protocolPB">
  14047. <!-- start interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  14048. <interface name="HAServiceProtocolPB" abstract="true"
  14049. static="false" final="false" visibility="public"
  14050. deprecated="not deprecated">
  14051. <implements name="org.apache.hadoop.ha.proto.HAServiceProtocolProtos.HAServiceProtocolService.BlockingInterface"/>
  14052. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  14053. </interface>
  14054. <!-- end interface org.apache.hadoop.ha.protocolPB.HAServiceProtocolPB -->
  14055. <!-- start interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  14056. <interface name="ZKFCProtocolPB" abstract="true"
  14057. static="false" final="false" visibility="public"
  14058. deprecated="not deprecated">
  14059. <implements name="org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService.BlockingInterface"/>
  14060. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  14061. </interface>
  14062. <!-- end interface org.apache.hadoop.ha.protocolPB.ZKFCProtocolPB -->
  14063. </package>
  14064. <package name="org.apache.hadoop.http.lib">
  14065. <doc>
  14066. <![CDATA[This package provides user-selectable (via configuration) classes that add
  14067. functionality to the web UI. They are configured as a list of classes in the
  14068. configuration parameter <b>hadoop.http.filter.initializers</b>.
  14069. <ul>
  14070. <li> <b>StaticUserWebFilter</b> - An authorization plugin that makes all
  14071. users a static configured user.
  14072. </ul>]]>
  14073. </doc>
  14074. </package>
  14075. <package name="org.apache.hadoop.io">
  14076. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  14077. <class name="AbstractMapWritable" extends="java.lang.Object"
  14078. abstract="true"
  14079. static="false" final="false" visibility="public"
  14080. deprecated="not deprecated">
  14081. <implements name="org.apache.hadoop.io.Writable"/>
  14082. <implements name="org.apache.hadoop.conf.Configurable"/>
  14083. <constructor name="AbstractMapWritable"
  14084. static="false" final="false" visibility="protected"
  14085. deprecated="not deprecated">
  14086. <doc>
  14087. <![CDATA[constructor.]]>
  14088. </doc>
  14089. </constructor>
  14090. <method name="addToMap"
  14091. abstract="false" native="false" synchronized="true"
  14092. static="false" final="false" visibility="protected"
  14093. deprecated="not deprecated">
  14094. <param name="clazz" type="java.lang.Class"/>
  14095. <doc>
  14096. <![CDATA[Add a Class to the maps if it is not already present.]]>
  14097. </doc>
  14098. </method>
  14099. <method name="getClass" return="java.lang.Class"
  14100. abstract="false" native="false" synchronized="false"
  14101. static="false" final="false" visibility="protected"
  14102. deprecated="not deprecated">
  14103. <param name="id" type="byte"/>
  14104. <doc>
  14105. <![CDATA[@return the Class class for the specified id]]>
  14106. </doc>
  14107. </method>
  14108. <method name="getId" return="byte"
  14109. abstract="false" native="false" synchronized="false"
  14110. static="false" final="false" visibility="protected"
  14111. deprecated="not deprecated">
  14112. <param name="clazz" type="java.lang.Class"/>
  14113. <doc>
  14114. <![CDATA[@return the id for the specified Class]]>
  14115. </doc>
  14116. </method>
  14117. <method name="copy"
  14118. abstract="false" native="false" synchronized="true"
  14119. static="false" final="false" visibility="protected"
  14120. deprecated="not deprecated">
  14121. <param name="other" type="org.apache.hadoop.io.Writable"/>
  14122. <doc>
  14123. <![CDATA[Used by child copy constructors.]]>
  14124. </doc>
  14125. </method>
  14126. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  14127. abstract="false" native="false" synchronized="false"
  14128. static="false" final="false" visibility="public"
  14129. deprecated="not deprecated">
  14130. <doc>
  14131. <![CDATA[@return the conf]]>
  14132. </doc>
  14133. </method>
  14134. <method name="setConf"
  14135. abstract="false" native="false" synchronized="false"
  14136. static="false" final="false" visibility="public"
  14137. deprecated="not deprecated">
  14138. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14139. <doc>
  14140. <![CDATA[@param conf the conf to set]]>
  14141. </doc>
  14142. </method>
  14143. <method name="write"
  14144. abstract="false" native="false" synchronized="false"
  14145. static="false" final="false" visibility="public"
  14146. deprecated="not deprecated">
  14147. <param name="out" type="java.io.DataOutput"/>
  14148. <exception name="IOException" type="java.io.IOException"/>
  14149. </method>
  14150. <method name="readFields"
  14151. abstract="false" native="false" synchronized="false"
  14152. static="false" final="false" visibility="public"
  14153. deprecated="not deprecated">
  14154. <param name="in" type="java.io.DataInput"/>
  14155. <exception name="IOException" type="java.io.IOException"/>
  14156. </method>
  14157. <doc>
  14158. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  14159. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  14160. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  14161. maps travel with the class instead of being static.
  14162. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  14163. in any specific map instance.]]>
  14164. </doc>
  14165. </class>
  14166. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  14167. <!-- start class org.apache.hadoop.io.ArrayFile -->
  14168. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  14169. abstract="false"
  14170. static="false" final="false" visibility="public"
  14171. deprecated="not deprecated">
  14172. <constructor name="ArrayFile"
  14173. static="false" final="false" visibility="protected"
  14174. deprecated="not deprecated">
  14175. </constructor>
  14176. <doc>
  14177. <![CDATA[A dense file-based mapping from integers to values.]]>
  14178. </doc>
  14179. </class>
  14180. <!-- end class org.apache.hadoop.io.ArrayFile -->
  14181. <!-- start class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  14182. <class name="ArrayPrimitiveWritable" extends="java.lang.Object"
  14183. abstract="false"
  14184. static="false" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <implements name="org.apache.hadoop.io.Writable"/>
  14187. <constructor name="ArrayPrimitiveWritable"
  14188. static="false" final="false" visibility="public"
  14189. deprecated="not deprecated">
  14190. <doc>
  14191. <![CDATA[Construct an empty instance, for use during Writable read]]>
  14192. </doc>
  14193. </constructor>
  14194. <constructor name="ArrayPrimitiveWritable" type="java.lang.Class"
  14195. static="false" final="false" visibility="public"
  14196. deprecated="not deprecated">
  14197. <doc>
  14198. <![CDATA[Construct an instance of known type but no value yet
  14199. for use with type-specific wrapper classes]]>
  14200. </doc>
  14201. </constructor>
  14202. <constructor name="ArrayPrimitiveWritable" type="java.lang.Object"
  14203. static="false" final="false" visibility="public"
  14204. deprecated="not deprecated">
  14205. <doc>
  14206. <![CDATA[Wrap an existing array of primitives
  14207. @param value - array of primitives]]>
  14208. </doc>
  14209. </constructor>
  14210. <method name="get" return="java.lang.Object"
  14211. abstract="false" native="false" synchronized="false"
  14212. static="false" final="false" visibility="public"
  14213. deprecated="not deprecated">
  14214. <doc>
  14215. <![CDATA[Get the original array.
  14216. Client must cast it back to type componentType[]
  14217. (or may use type-specific wrapper classes).
  14218. @return - original array as Object]]>
  14219. </doc>
  14220. </method>
  14221. <method name="getComponentType" return="java.lang.Class"
  14222. abstract="false" native="false" synchronized="false"
  14223. static="false" final="false" visibility="public"
  14224. deprecated="not deprecated">
  14225. </method>
  14226. <method name="getDeclaredComponentType" return="java.lang.Class"
  14227. abstract="false" native="false" synchronized="false"
  14228. static="false" final="false" visibility="public"
  14229. deprecated="not deprecated">
  14230. </method>
  14231. <method name="isDeclaredComponentType" return="boolean"
  14232. abstract="false" native="false" synchronized="false"
  14233. static="false" final="false" visibility="public"
  14234. deprecated="not deprecated">
  14235. <param name="componentType" type="java.lang.Class"/>
  14236. </method>
  14237. <method name="set"
  14238. abstract="false" native="false" synchronized="false"
  14239. static="false" final="false" visibility="public"
  14240. deprecated="not deprecated">
  14241. <param name="value" type="java.lang.Object"/>
  14242. </method>
  14243. <method name="write"
  14244. abstract="false" native="false" synchronized="false"
  14245. static="false" final="false" visibility="public"
  14246. deprecated="not deprecated">
  14247. <param name="out" type="java.io.DataOutput"/>
  14248. <exception name="IOException" type="java.io.IOException"/>
  14249. </method>
  14250. <method name="readFields"
  14251. abstract="false" native="false" synchronized="false"
  14252. static="false" final="false" visibility="public"
  14253. deprecated="not deprecated">
  14254. <param name="in" type="java.io.DataInput"/>
  14255. <exception name="IOException" type="java.io.IOException"/>
  14256. </method>
  14257. <doc>
  14258. <![CDATA[This is a wrapper class. It wraps a Writable implementation around
  14259. an array of primitives (e.g., int[], long[], etc.), with optimized
  14260. wire format, and without creating new objects per element.
  14261. This is a wrapper class only; it does not make a copy of the
  14262. underlying array.]]>
  14263. </doc>
  14264. </class>
  14265. <!-- end class org.apache.hadoop.io.ArrayPrimitiveWritable -->
  14266. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  14267. <class name="ArrayWritable" extends="java.lang.Object"
  14268. abstract="false"
  14269. static="false" final="false" visibility="public"
  14270. deprecated="not deprecated">
  14271. <implements name="org.apache.hadoop.io.Writable"/>
  14272. <constructor name="ArrayWritable" type="java.lang.Class"
  14273. static="false" final="false" visibility="public"
  14274. deprecated="not deprecated">
  14275. </constructor>
  14276. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  14277. static="false" final="false" visibility="public"
  14278. deprecated="not deprecated">
  14279. </constructor>
  14280. <constructor name="ArrayWritable" type="java.lang.String[]"
  14281. static="false" final="false" visibility="public"
  14282. deprecated="not deprecated">
  14283. </constructor>
  14284. <method name="getValueClass" return="java.lang.Class"
  14285. abstract="false" native="false" synchronized="false"
  14286. static="false" final="false" visibility="public"
  14287. deprecated="not deprecated">
  14288. </method>
  14289. <method name="toStrings" return="java.lang.String[]"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="false" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. </method>
  14294. <method name="toArray" return="java.lang.Object"
  14295. abstract="false" native="false" synchronized="false"
  14296. static="false" final="false" visibility="public"
  14297. deprecated="not deprecated">
  14298. </method>
  14299. <method name="set"
  14300. abstract="false" native="false" synchronized="false"
  14301. static="false" final="false" visibility="public"
  14302. deprecated="not deprecated">
  14303. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  14304. </method>
  14305. <method name="get" return="org.apache.hadoop.io.Writable[]"
  14306. abstract="false" native="false" synchronized="false"
  14307. static="false" final="false" visibility="public"
  14308. deprecated="not deprecated">
  14309. </method>
  14310. <method name="readFields"
  14311. abstract="false" native="false" synchronized="false"
  14312. static="false" final="false" visibility="public"
  14313. deprecated="not deprecated">
  14314. <param name="in" type="java.io.DataInput"/>
  14315. <exception name="IOException" type="java.io.IOException"/>
  14316. </method>
  14317. <method name="write"
  14318. abstract="false" native="false" synchronized="false"
  14319. static="false" final="false" visibility="public"
  14320. deprecated="not deprecated">
  14321. <param name="out" type="java.io.DataOutput"/>
  14322. <exception name="IOException" type="java.io.IOException"/>
  14323. </method>
  14324. <doc>
  14325. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  14326. writable must all be instances of the same class. If this writable will be
  14327. the input for a Reducer, you will need to create a subclass that sets the
  14328. value to be of the proper type.
  14329. For example:
  14330. <code>
  14331. public class IntArrayWritable extends ArrayWritable {
  14332. public IntArrayWritable() {
  14333. super(IntWritable.class);
  14334. }
  14335. }
  14336. </code>]]>
  14337. </doc>
  14338. </class>
  14339. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  14340. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  14341. <class name="BinaryComparable" extends="java.lang.Object"
  14342. abstract="true"
  14343. static="false" final="false" visibility="public"
  14344. deprecated="not deprecated">
  14345. <implements name="java.lang.Comparable"/>
  14346. <constructor name="BinaryComparable"
  14347. static="false" final="false" visibility="public"
  14348. deprecated="not deprecated">
  14349. </constructor>
  14350. <method name="getLength" return="int"
  14351. abstract="true" native="false" synchronized="false"
  14352. static="false" final="false" visibility="public"
  14353. deprecated="not deprecated">
  14354. <doc>
  14355. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  14356. </doc>
  14357. </method>
  14358. <method name="getBytes" return="byte[]"
  14359. abstract="true" native="false" synchronized="false"
  14360. static="false" final="false" visibility="public"
  14361. deprecated="not deprecated">
  14362. <doc>
  14363. <![CDATA[Return representative byte array for this instance.]]>
  14364. </doc>
  14365. </method>
  14366. <method name="compareTo" return="int"
  14367. abstract="false" native="false" synchronized="false"
  14368. static="false" final="false" visibility="public"
  14369. deprecated="not deprecated">
  14370. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  14371. <doc>
  14372. <![CDATA[Compare bytes from {#getBytes()}.
  14373. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  14374. </doc>
  14375. </method>
  14376. <method name="compareTo" return="int"
  14377. abstract="false" native="false" synchronized="false"
  14378. static="false" final="false" visibility="public"
  14379. deprecated="not deprecated">
  14380. <param name="other" type="byte[]"/>
  14381. <param name="off" type="int"/>
  14382. <param name="len" type="int"/>
  14383. <doc>
  14384. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  14385. </doc>
  14386. </method>
  14387. <method name="equals" return="boolean"
  14388. abstract="false" native="false" synchronized="false"
  14389. static="false" final="false" visibility="public"
  14390. deprecated="not deprecated">
  14391. <param name="other" type="java.lang.Object"/>
  14392. <doc>
  14393. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  14394. </doc>
  14395. </method>
  14396. <method name="hashCode" return="int"
  14397. abstract="false" native="false" synchronized="false"
  14398. static="false" final="false" visibility="public"
  14399. deprecated="not deprecated">
  14400. <doc>
  14401. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  14402. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  14403. </doc>
  14404. </method>
  14405. <doc>
  14406. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  14407. types supporting ordering/permutation by a representative set of bytes.]]>
  14408. </doc>
  14409. </class>
  14410. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  14411. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  14412. <class name="BloomMapFile" extends="java.lang.Object"
  14413. abstract="false"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. <constructor name="BloomMapFile"
  14417. static="false" final="false" visibility="public"
  14418. deprecated="not deprecated">
  14419. </constructor>
  14420. <method name="delete"
  14421. abstract="false" native="false" synchronized="false"
  14422. static="true" final="false" visibility="public"
  14423. deprecated="not deprecated">
  14424. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14425. <param name="name" type="java.lang.String"/>
  14426. <exception name="IOException" type="java.io.IOException"/>
  14427. </method>
  14428. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  14429. transient="false" volatile="false"
  14430. static="true" final="true" visibility="public"
  14431. deprecated="not deprecated">
  14432. </field>
  14433. <field name="HASH_COUNT" type="int"
  14434. transient="false" volatile="false"
  14435. static="true" final="true" visibility="public"
  14436. deprecated="not deprecated">
  14437. </field>
  14438. <doc>
  14439. <![CDATA[This class extends {@link MapFile} and provides very much the same
  14440. functionality. However, it uses dynamic Bloom filters to provide
  14441. quick membership test for keys, and it offers a fast version of
  14442. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  14443. case of sparsely populated MapFile-s.]]>
  14444. </doc>
  14445. </class>
  14446. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  14447. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  14448. <class name="BooleanWritable" extends="java.lang.Object"
  14449. abstract="false"
  14450. static="false" final="false" visibility="public"
  14451. deprecated="not deprecated">
  14452. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14453. <constructor name="BooleanWritable"
  14454. static="false" final="false" visibility="public"
  14455. deprecated="not deprecated">
  14456. </constructor>
  14457. <constructor name="BooleanWritable" type="boolean"
  14458. static="false" final="false" visibility="public"
  14459. deprecated="not deprecated">
  14460. </constructor>
  14461. <method name="set"
  14462. abstract="false" native="false" synchronized="false"
  14463. static="false" final="false" visibility="public"
  14464. deprecated="not deprecated">
  14465. <param name="value" type="boolean"/>
  14466. <doc>
  14467. <![CDATA[Set the value of the BooleanWritable]]>
  14468. </doc>
  14469. </method>
  14470. <method name="get" return="boolean"
  14471. abstract="false" native="false" synchronized="false"
  14472. static="false" final="false" visibility="public"
  14473. deprecated="not deprecated">
  14474. <doc>
  14475. <![CDATA[Returns the value of the BooleanWritable]]>
  14476. </doc>
  14477. </method>
  14478. <method name="readFields"
  14479. abstract="false" native="false" synchronized="false"
  14480. static="false" final="false" visibility="public"
  14481. deprecated="not deprecated">
  14482. <param name="in" type="java.io.DataInput"/>
  14483. <exception name="IOException" type="java.io.IOException"/>
  14484. </method>
  14485. <method name="write"
  14486. abstract="false" native="false" synchronized="false"
  14487. static="false" final="false" visibility="public"
  14488. deprecated="not deprecated">
  14489. <param name="out" type="java.io.DataOutput"/>
  14490. <exception name="IOException" type="java.io.IOException"/>
  14491. </method>
  14492. <method name="equals" return="boolean"
  14493. abstract="false" native="false" synchronized="false"
  14494. static="false" final="false" visibility="public"
  14495. deprecated="not deprecated">
  14496. <param name="o" type="java.lang.Object"/>
  14497. </method>
  14498. <method name="hashCode" return="int"
  14499. abstract="false" native="false" synchronized="false"
  14500. static="false" final="false" visibility="public"
  14501. deprecated="not deprecated">
  14502. </method>
  14503. <method name="compareTo" return="int"
  14504. abstract="false" native="false" synchronized="false"
  14505. static="false" final="false" visibility="public"
  14506. deprecated="not deprecated">
  14507. <param name="o" type="org.apache.hadoop.io.BooleanWritable"/>
  14508. </method>
  14509. <method name="toString" return="java.lang.String"
  14510. abstract="false" native="false" synchronized="false"
  14511. static="false" final="false" visibility="public"
  14512. deprecated="not deprecated">
  14513. </method>
  14514. <doc>
  14515. <![CDATA[A WritableComparable for booleans.]]>
  14516. </doc>
  14517. </class>
  14518. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  14519. <!-- start interface org.apache.hadoop.io.ByteBufferPool -->
  14520. <interface name="ByteBufferPool" abstract="true"
  14521. static="false" final="false" visibility="public"
  14522. deprecated="not deprecated">
  14523. <method name="getBuffer" return="java.nio.ByteBuffer"
  14524. abstract="true" native="false" synchronized="false"
  14525. static="false" final="false" visibility="public"
  14526. deprecated="not deprecated">
  14527. <param name="direct" type="boolean"/>
  14528. <param name="length" type="int"/>
  14529. <doc>
  14530. <![CDATA[Get a new direct ByteBuffer. The pool can provide this from
  14531. removing a buffer from its internal cache, or by allocating a
  14532. new buffer.
  14533. @param direct Whether the buffer should be direct.
  14534. @param length The minimum length the buffer will have.
  14535. @return A new ByteBuffer. This ByteBuffer must be direct.
  14536. Its capacity can be less than what was requested, but
  14537. must be at least 1 byte.]]>
  14538. </doc>
  14539. </method>
  14540. <method name="putBuffer"
  14541. abstract="true" native="false" synchronized="false"
  14542. static="false" final="false" visibility="public"
  14543. deprecated="not deprecated">
  14544. <param name="buffer" type="java.nio.ByteBuffer"/>
  14545. <doc>
  14546. <![CDATA[Release a buffer back to the pool.
  14547. The pool may choose to put this buffer into its cache.
  14548. @param buffer a direct bytebuffer]]>
  14549. </doc>
  14550. </method>
  14551. </interface>
  14552. <!-- end interface org.apache.hadoop.io.ByteBufferPool -->
  14553. <!-- start class org.apache.hadoop.io.BytesWritable -->
  14554. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  14555. abstract="false"
  14556. static="false" final="false" visibility="public"
  14557. deprecated="not deprecated">
  14558. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14559. <constructor name="BytesWritable"
  14560. static="false" final="false" visibility="public"
  14561. deprecated="not deprecated">
  14562. <doc>
  14563. <![CDATA[Create a zero-size sequence.]]>
  14564. </doc>
  14565. </constructor>
  14566. <constructor name="BytesWritable" type="byte[]"
  14567. static="false" final="false" visibility="public"
  14568. deprecated="not deprecated">
  14569. <doc>
  14570. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  14571. @param bytes This array becomes the backing storage for the object.]]>
  14572. </doc>
  14573. </constructor>
  14574. <constructor name="BytesWritable" type="byte[], int"
  14575. static="false" final="false" visibility="public"
  14576. deprecated="not deprecated">
  14577. <doc>
  14578. <![CDATA[Create a BytesWritable using the byte array as the initial value
  14579. and length as the length. Use this constructor if the array is larger
  14580. than the value it represents.
  14581. @param bytes This array becomes the backing storage for the object.
  14582. @param length The number of bytes to use from array.]]>
  14583. </doc>
  14584. </constructor>
  14585. <method name="copyBytes" return="byte[]"
  14586. abstract="false" native="false" synchronized="false"
  14587. static="false" final="false" visibility="public"
  14588. deprecated="not deprecated">
  14589. <doc>
  14590. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  14591. See {@link #getBytes()} for faster access to the underlying array.]]>
  14592. </doc>
  14593. </method>
  14594. <method name="getBytes" return="byte[]"
  14595. abstract="false" native="false" synchronized="false"
  14596. static="false" final="false" visibility="public"
  14597. deprecated="not deprecated">
  14598. <doc>
  14599. <![CDATA[Get the data backing the BytesWritable. Please use {@link #copyBytes()}
  14600. if you need the returned array to be precisely the length of the data.
  14601. @return The data is only valid between 0 and getLength() - 1.]]>
  14602. </doc>
  14603. </method>
  14604. <method name="get" return="byte[]"
  14605. abstract="false" native="false" synchronized="false"
  14606. static="false" final="false" visibility="public"
  14607. deprecated="Use {@link #getBytes()} instead.">
  14608. <doc>
  14609. <![CDATA[Get the data from the BytesWritable.
  14610. @deprecated Use {@link #getBytes()} instead.]]>
  14611. </doc>
  14612. </method>
  14613. <method name="getLength" return="int"
  14614. abstract="false" native="false" synchronized="false"
  14615. static="false" final="false" visibility="public"
  14616. deprecated="not deprecated">
  14617. <doc>
  14618. <![CDATA[Get the current size of the buffer.]]>
  14619. </doc>
  14620. </method>
  14621. <method name="getSize" return="int"
  14622. abstract="false" native="false" synchronized="false"
  14623. static="false" final="false" visibility="public"
  14624. deprecated="Use {@link #getLength()} instead.">
  14625. <doc>
  14626. <![CDATA[Get the current size of the buffer.
  14627. @deprecated Use {@link #getLength()} instead.]]>
  14628. </doc>
  14629. </method>
  14630. <method name="setSize"
  14631. abstract="false" native="false" synchronized="false"
  14632. static="false" final="false" visibility="public"
  14633. deprecated="not deprecated">
  14634. <param name="size" type="int"/>
  14635. <doc>
  14636. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  14637. and any new values are undefined. The capacity is changed if it is
  14638. necessary.
  14639. @param size The new number of bytes]]>
  14640. </doc>
  14641. </method>
  14642. <method name="getCapacity" return="int"
  14643. abstract="false" native="false" synchronized="false"
  14644. static="false" final="false" visibility="public"
  14645. deprecated="not deprecated">
  14646. <doc>
  14647. <![CDATA[Get the capacity, which is the maximum size that could handled without
  14648. resizing the backing storage.
  14649. @return The number of bytes]]>
  14650. </doc>
  14651. </method>
  14652. <method name="setCapacity"
  14653. abstract="false" native="false" synchronized="false"
  14654. static="false" final="false" visibility="public"
  14655. deprecated="not deprecated">
  14656. <param name="new_cap" type="int"/>
  14657. <doc>
  14658. <![CDATA[Change the capacity of the backing storage.
  14659. The data is preserved.
  14660. @param new_cap The new capacity in bytes.]]>
  14661. </doc>
  14662. </method>
  14663. <method name="set"
  14664. abstract="false" native="false" synchronized="false"
  14665. static="false" final="false" visibility="public"
  14666. deprecated="not deprecated">
  14667. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  14668. <doc>
  14669. <![CDATA[Set the BytesWritable to the contents of the given newData.
  14670. @param newData the value to set this BytesWritable to.]]>
  14671. </doc>
  14672. </method>
  14673. <method name="set"
  14674. abstract="false" native="false" synchronized="false"
  14675. static="false" final="false" visibility="public"
  14676. deprecated="not deprecated">
  14677. <param name="newData" type="byte[]"/>
  14678. <param name="offset" type="int"/>
  14679. <param name="length" type="int"/>
  14680. <doc>
  14681. <![CDATA[Set the value to a copy of the given byte range
  14682. @param newData the new values to copy in
  14683. @param offset the offset in newData to start at
  14684. @param length the number of bytes to copy]]>
  14685. </doc>
  14686. </method>
  14687. <method name="readFields"
  14688. abstract="false" native="false" synchronized="false"
  14689. static="false" final="false" visibility="public"
  14690. deprecated="not deprecated">
  14691. <param name="in" type="java.io.DataInput"/>
  14692. <exception name="IOException" type="java.io.IOException"/>
  14693. </method>
  14694. <method name="write"
  14695. abstract="false" native="false" synchronized="false"
  14696. static="false" final="false" visibility="public"
  14697. deprecated="not deprecated">
  14698. <param name="out" type="java.io.DataOutput"/>
  14699. <exception name="IOException" type="java.io.IOException"/>
  14700. </method>
  14701. <method name="hashCode" return="int"
  14702. abstract="false" native="false" synchronized="false"
  14703. static="false" final="false" visibility="public"
  14704. deprecated="not deprecated">
  14705. </method>
  14706. <method name="equals" return="boolean"
  14707. abstract="false" native="false" synchronized="false"
  14708. static="false" final="false" visibility="public"
  14709. deprecated="not deprecated">
  14710. <param name="right_obj" type="java.lang.Object"/>
  14711. <doc>
  14712. <![CDATA[Are the two byte sequences equal?]]>
  14713. </doc>
  14714. </method>
  14715. <method name="toString" return="java.lang.String"
  14716. abstract="false" native="false" synchronized="false"
  14717. static="false" final="false" visibility="public"
  14718. deprecated="not deprecated">
  14719. <doc>
  14720. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  14721. </doc>
  14722. </method>
  14723. <doc>
  14724. <![CDATA[A byte sequence that is usable as a key or value.
  14725. It is resizable and distinguishes between the size of the sequence and
  14726. the current capacity. The hash function is the front of the md5 of the
  14727. buffer. The sort order is the same as memcmp.]]>
  14728. </doc>
  14729. </class>
  14730. <!-- end class org.apache.hadoop.io.BytesWritable -->
  14731. <!-- start class org.apache.hadoop.io.ByteWritable -->
  14732. <class name="ByteWritable" extends="java.lang.Object"
  14733. abstract="false"
  14734. static="false" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14737. <constructor name="ByteWritable"
  14738. static="false" final="false" visibility="public"
  14739. deprecated="not deprecated">
  14740. </constructor>
  14741. <constructor name="ByteWritable" type="byte"
  14742. static="false" final="false" visibility="public"
  14743. deprecated="not deprecated">
  14744. </constructor>
  14745. <method name="set"
  14746. abstract="false" native="false" synchronized="false"
  14747. static="false" final="false" visibility="public"
  14748. deprecated="not deprecated">
  14749. <param name="value" type="byte"/>
  14750. <doc>
  14751. <![CDATA[Set the value of this ByteWritable.]]>
  14752. </doc>
  14753. </method>
  14754. <method name="get" return="byte"
  14755. abstract="false" native="false" synchronized="false"
  14756. static="false" final="false" visibility="public"
  14757. deprecated="not deprecated">
  14758. <doc>
  14759. <![CDATA[Return the value of this ByteWritable.]]>
  14760. </doc>
  14761. </method>
  14762. <method name="readFields"
  14763. abstract="false" native="false" synchronized="false"
  14764. static="false" final="false" visibility="public"
  14765. deprecated="not deprecated">
  14766. <param name="in" type="java.io.DataInput"/>
  14767. <exception name="IOException" type="java.io.IOException"/>
  14768. </method>
  14769. <method name="write"
  14770. abstract="false" native="false" synchronized="false"
  14771. static="false" final="false" visibility="public"
  14772. deprecated="not deprecated">
  14773. <param name="out" type="java.io.DataOutput"/>
  14774. <exception name="IOException" type="java.io.IOException"/>
  14775. </method>
  14776. <method name="equals" return="boolean"
  14777. abstract="false" native="false" synchronized="false"
  14778. static="false" final="false" visibility="public"
  14779. deprecated="not deprecated">
  14780. <param name="o" type="java.lang.Object"/>
  14781. <doc>
  14782. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  14783. </doc>
  14784. </method>
  14785. <method name="hashCode" return="int"
  14786. abstract="false" native="false" synchronized="false"
  14787. static="false" final="false" visibility="public"
  14788. deprecated="not deprecated">
  14789. </method>
  14790. <method name="compareTo" return="int"
  14791. abstract="false" native="false" synchronized="false"
  14792. static="false" final="false" visibility="public"
  14793. deprecated="not deprecated">
  14794. <param name="o" type="org.apache.hadoop.io.ByteWritable"/>
  14795. <doc>
  14796. <![CDATA[Compares two ByteWritables.]]>
  14797. </doc>
  14798. </method>
  14799. <method name="toString" return="java.lang.String"
  14800. abstract="false" native="false" synchronized="false"
  14801. static="false" final="false" visibility="public"
  14802. deprecated="not deprecated">
  14803. </method>
  14804. <doc>
  14805. <![CDATA[A WritableComparable for a single byte.]]>
  14806. </doc>
  14807. </class>
  14808. <!-- end class org.apache.hadoop.io.ByteWritable -->
  14809. <!-- start interface org.apache.hadoop.io.Closeable -->
  14810. <interface name="Closeable" abstract="true"
  14811. static="false" final="false" visibility="public"
  14812. deprecated="use java.io.Closeable">
  14813. <implements name="java.io.Closeable"/>
  14814. <doc>
  14815. <![CDATA[@deprecated use java.io.Closeable]]>
  14816. </doc>
  14817. </interface>
  14818. <!-- end interface org.apache.hadoop.io.Closeable -->
  14819. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  14820. <class name="CompressedWritable" extends="java.lang.Object"
  14821. abstract="true"
  14822. static="false" final="false" visibility="public"
  14823. deprecated="not deprecated">
  14824. <implements name="org.apache.hadoop.io.Writable"/>
  14825. <constructor name="CompressedWritable"
  14826. static="false" final="false" visibility="public"
  14827. deprecated="not deprecated">
  14828. </constructor>
  14829. <method name="readFields"
  14830. abstract="false" native="false" synchronized="false"
  14831. static="false" final="true" visibility="public"
  14832. deprecated="not deprecated">
  14833. <param name="in" type="java.io.DataInput"/>
  14834. <exception name="IOException" type="java.io.IOException"/>
  14835. </method>
  14836. <method name="ensureInflated"
  14837. abstract="false" native="false" synchronized="false"
  14838. static="false" final="false" visibility="protected"
  14839. deprecated="not deprecated">
  14840. <doc>
  14841. <![CDATA[Must be called by all methods which access fields to ensure that the data
  14842. has been uncompressed.]]>
  14843. </doc>
  14844. </method>
  14845. <method name="readFieldsCompressed"
  14846. abstract="true" native="false" synchronized="false"
  14847. static="false" final="false" visibility="protected"
  14848. deprecated="not deprecated">
  14849. <param name="in" type="java.io.DataInput"/>
  14850. <exception name="IOException" type="java.io.IOException"/>
  14851. <doc>
  14852. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  14853. </doc>
  14854. </method>
  14855. <method name="write"
  14856. abstract="false" native="false" synchronized="false"
  14857. static="false" final="true" visibility="public"
  14858. deprecated="not deprecated">
  14859. <param name="out" type="java.io.DataOutput"/>
  14860. <exception name="IOException" type="java.io.IOException"/>
  14861. </method>
  14862. <method name="writeCompressed"
  14863. abstract="true" native="false" synchronized="false"
  14864. static="false" final="false" visibility="protected"
  14865. deprecated="not deprecated">
  14866. <param name="out" type="java.io.DataOutput"/>
  14867. <exception name="IOException" type="java.io.IOException"/>
  14868. <doc>
  14869. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  14870. </doc>
  14871. </method>
  14872. <doc>
  14873. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  14874. inflate on field access. This is useful for large objects whose fields are
  14875. not be altered during a map or reduce operation: leaving the field data
  14876. compressed makes copying the instance from one file to another much
  14877. faster.]]>
  14878. </doc>
  14879. </class>
  14880. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  14881. <!-- start class org.apache.hadoop.io.DataOutputOutputStream -->
  14882. <class name="DataOutputOutputStream" extends="java.io.OutputStream"
  14883. abstract="false"
  14884. static="false" final="false" visibility="public"
  14885. deprecated="not deprecated">
  14886. <method name="constructOutputStream" return="java.io.OutputStream"
  14887. abstract="false" native="false" synchronized="false"
  14888. static="true" final="false" visibility="public"
  14889. deprecated="not deprecated">
  14890. <param name="out" type="java.io.DataOutput"/>
  14891. <doc>
  14892. <![CDATA[Construct an OutputStream from the given DataOutput. If 'out'
  14893. is already an OutputStream, simply returns it. Otherwise, wraps
  14894. it in an OutputStream.
  14895. @param out the DataOutput to wrap
  14896. @return an OutputStream instance that outputs to 'out']]>
  14897. </doc>
  14898. </method>
  14899. <method name="write"
  14900. abstract="false" native="false" synchronized="false"
  14901. static="false" final="false" visibility="public"
  14902. deprecated="not deprecated">
  14903. <param name="b" type="int"/>
  14904. <exception name="IOException" type="java.io.IOException"/>
  14905. </method>
  14906. <method name="write"
  14907. abstract="false" native="false" synchronized="false"
  14908. static="false" final="false" visibility="public"
  14909. deprecated="not deprecated">
  14910. <param name="b" type="byte[]"/>
  14911. <param name="off" type="int"/>
  14912. <param name="len" type="int"/>
  14913. <exception name="IOException" type="java.io.IOException"/>
  14914. </method>
  14915. <method name="write"
  14916. abstract="false" native="false" synchronized="false"
  14917. static="false" final="false" visibility="public"
  14918. deprecated="not deprecated">
  14919. <param name="b" type="byte[]"/>
  14920. <exception name="IOException" type="java.io.IOException"/>
  14921. </method>
  14922. <doc>
  14923. <![CDATA[OutputStream implementation that wraps a DataOutput.]]>
  14924. </doc>
  14925. </class>
  14926. <!-- end class org.apache.hadoop.io.DataOutputOutputStream -->
  14927. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  14928. <class name="DefaultStringifier" extends="java.lang.Object"
  14929. abstract="false"
  14930. static="false" final="false" visibility="public"
  14931. deprecated="not deprecated">
  14932. <implements name="org.apache.hadoop.io.Stringifier"/>
  14933. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  14934. static="false" final="false" visibility="public"
  14935. deprecated="not deprecated">
  14936. </constructor>
  14937. <method name="fromString" return="T"
  14938. abstract="false" native="false" synchronized="false"
  14939. static="false" final="false" visibility="public"
  14940. deprecated="not deprecated">
  14941. <param name="str" type="java.lang.String"/>
  14942. <exception name="IOException" type="java.io.IOException"/>
  14943. </method>
  14944. <method name="toString" return="java.lang.String"
  14945. abstract="false" native="false" synchronized="false"
  14946. static="false" final="false" visibility="public"
  14947. deprecated="not deprecated">
  14948. <param name="obj" type="T"/>
  14949. <exception name="IOException" type="java.io.IOException"/>
  14950. </method>
  14951. <method name="close"
  14952. abstract="false" native="false" synchronized="false"
  14953. static="false" final="false" visibility="public"
  14954. deprecated="not deprecated">
  14955. <exception name="IOException" type="java.io.IOException"/>
  14956. </method>
  14957. <method name="store"
  14958. abstract="false" native="false" synchronized="false"
  14959. static="true" final="false" visibility="public"
  14960. deprecated="not deprecated">
  14961. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14962. <param name="item" type="K"/>
  14963. <param name="keyName" type="java.lang.String"/>
  14964. <exception name="IOException" type="java.io.IOException"/>
  14965. <doc>
  14966. <![CDATA[Stores the item in the configuration with the given keyName.
  14967. @param <K> the class of the item
  14968. @param conf the configuration to store
  14969. @param item the object to be stored
  14970. @param keyName the name of the key to use
  14971. @throws IOException : forwards Exceptions from the underlying
  14972. {@link Serialization} classes.]]>
  14973. </doc>
  14974. </method>
  14975. <method name="load" return="K"
  14976. abstract="false" native="false" synchronized="false"
  14977. static="true" final="false" visibility="public"
  14978. deprecated="not deprecated">
  14979. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14980. <param name="keyName" type="java.lang.String"/>
  14981. <param name="itemClass" type="java.lang.Class"/>
  14982. <exception name="IOException" type="java.io.IOException"/>
  14983. <doc>
  14984. <![CDATA[Restores the object from the configuration.
  14985. @param <K> the class of the item
  14986. @param conf the configuration to use
  14987. @param keyName the name of the key to use
  14988. @param itemClass the class of the item
  14989. @return restored object
  14990. @throws IOException : forwards Exceptions from the underlying
  14991. {@link Serialization} classes.]]>
  14992. </doc>
  14993. </method>
  14994. <method name="storeArray"
  14995. abstract="false" native="false" synchronized="false"
  14996. static="true" final="false" visibility="public"
  14997. deprecated="not deprecated">
  14998. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14999. <param name="items" type="K[]"/>
  15000. <param name="keyName" type="java.lang.String"/>
  15001. <exception name="IOException" type="java.io.IOException"/>
  15002. <doc>
  15003. <![CDATA[Stores the array of items in the configuration with the given keyName.
  15004. @param <K> the class of the item
  15005. @param conf the configuration to use
  15006. @param items the objects to be stored
  15007. @param keyName the name of the key to use
  15008. @throws IndexOutOfBoundsException if the items array is empty
  15009. @throws IOException : forwards Exceptions from the underlying
  15010. {@link Serialization} classes.]]>
  15011. </doc>
  15012. </method>
  15013. <method name="loadArray" return="K[]"
  15014. abstract="false" native="false" synchronized="false"
  15015. static="true" final="false" visibility="public"
  15016. deprecated="not deprecated">
  15017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15018. <param name="keyName" type="java.lang.String"/>
  15019. <param name="itemClass" type="java.lang.Class"/>
  15020. <exception name="IOException" type="java.io.IOException"/>
  15021. <doc>
  15022. <![CDATA[Restores the array of objects from the configuration.
  15023. @param <K> the class of the item
  15024. @param conf the configuration to use
  15025. @param keyName the name of the key to use
  15026. @param itemClass the class of the item
  15027. @return restored object
  15028. @throws IOException : forwards Exceptions from the underlying
  15029. {@link Serialization} classes.]]>
  15030. </doc>
  15031. </method>
  15032. <doc>
  15033. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  15034. interface which stringifies the objects using base64 encoding of the
  15035. serialized version of the objects. The {@link Serializer} and
  15036. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  15037. <br>
  15038. DefaultStringifier offers convenience methods to store/load objects to/from
  15039. the configuration.
  15040. @param <T> the class of the objects to stringify]]>
  15041. </doc>
  15042. </class>
  15043. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  15044. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  15045. <class name="DoubleWritable" extends="java.lang.Object"
  15046. abstract="false"
  15047. static="false" final="false" visibility="public"
  15048. deprecated="not deprecated">
  15049. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15050. <constructor name="DoubleWritable"
  15051. static="false" final="false" visibility="public"
  15052. deprecated="not deprecated">
  15053. </constructor>
  15054. <constructor name="DoubleWritable" type="double"
  15055. static="false" final="false" visibility="public"
  15056. deprecated="not deprecated">
  15057. </constructor>
  15058. <method name="readFields"
  15059. abstract="false" native="false" synchronized="false"
  15060. static="false" final="false" visibility="public"
  15061. deprecated="not deprecated">
  15062. <param name="in" type="java.io.DataInput"/>
  15063. <exception name="IOException" type="java.io.IOException"/>
  15064. </method>
  15065. <method name="write"
  15066. abstract="false" native="false" synchronized="false"
  15067. static="false" final="false" visibility="public"
  15068. deprecated="not deprecated">
  15069. <param name="out" type="java.io.DataOutput"/>
  15070. <exception name="IOException" type="java.io.IOException"/>
  15071. </method>
  15072. <method name="set"
  15073. abstract="false" native="false" synchronized="false"
  15074. static="false" final="false" visibility="public"
  15075. deprecated="not deprecated">
  15076. <param name="value" type="double"/>
  15077. </method>
  15078. <method name="get" return="double"
  15079. abstract="false" native="false" synchronized="false"
  15080. static="false" final="false" visibility="public"
  15081. deprecated="not deprecated">
  15082. </method>
  15083. <method name="equals" return="boolean"
  15084. abstract="false" native="false" synchronized="false"
  15085. static="false" final="false" visibility="public"
  15086. deprecated="not deprecated">
  15087. <param name="o" type="java.lang.Object"/>
  15088. <doc>
  15089. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  15090. </doc>
  15091. </method>
  15092. <method name="hashCode" return="int"
  15093. abstract="false" native="false" synchronized="false"
  15094. static="false" final="false" visibility="public"
  15095. deprecated="not deprecated">
  15096. </method>
  15097. <method name="compareTo" return="int"
  15098. abstract="false" native="false" synchronized="false"
  15099. static="false" final="false" visibility="public"
  15100. deprecated="not deprecated">
  15101. <param name="o" type="org.apache.hadoop.io.DoubleWritable"/>
  15102. </method>
  15103. <method name="toString" return="java.lang.String"
  15104. abstract="false" native="false" synchronized="false"
  15105. static="false" final="false" visibility="public"
  15106. deprecated="not deprecated">
  15107. </method>
  15108. <doc>
  15109. <![CDATA[Writable for Double values.]]>
  15110. </doc>
  15111. </class>
  15112. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  15113. <!-- start class org.apache.hadoop.io.ElasticByteBufferPool -->
  15114. <class name="ElasticByteBufferPool" extends="java.lang.Object"
  15115. abstract="false"
  15116. static="false" final="true" visibility="public"
  15117. deprecated="not deprecated">
  15118. <implements name="org.apache.hadoop.io.ByteBufferPool"/>
  15119. <constructor name="ElasticByteBufferPool"
  15120. static="false" final="false" visibility="public"
  15121. deprecated="not deprecated">
  15122. </constructor>
  15123. <method name="getBuffer" return="java.nio.ByteBuffer"
  15124. abstract="false" native="false" synchronized="true"
  15125. static="false" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. <param name="direct" type="boolean"/>
  15128. <param name="length" type="int"/>
  15129. </method>
  15130. <method name="putBuffer"
  15131. abstract="false" native="false" synchronized="true"
  15132. static="false" final="false" visibility="public"
  15133. deprecated="not deprecated">
  15134. <param name="buffer" type="java.nio.ByteBuffer"/>
  15135. </method>
  15136. <doc>
  15137. <![CDATA[This is a simple ByteBufferPool which just creates ByteBuffers as needed.
  15138. It also caches ByteBuffers after they're released. It will always return
  15139. the smallest cached buffer with at least the capacity you request.
  15140. We don't try to do anything clever here like try to limit the maximum cache
  15141. size.]]>
  15142. </doc>
  15143. </class>
  15144. <!-- end class org.apache.hadoop.io.ElasticByteBufferPool -->
  15145. <!-- start class org.apache.hadoop.io.EnumSetWritable -->
  15146. <class name="EnumSetWritable" extends="java.util.AbstractCollection"
  15147. abstract="false"
  15148. static="false" final="false" visibility="public"
  15149. deprecated="not deprecated">
  15150. <implements name="org.apache.hadoop.io.Writable"/>
  15151. <implements name="org.apache.hadoop.conf.Configurable"/>
  15152. <constructor name="EnumSetWritable" type="java.util.EnumSet, java.lang.Class"
  15153. static="false" final="false" visibility="public"
  15154. deprecated="not deprecated">
  15155. <doc>
  15156. <![CDATA[Construct a new EnumSetWritable. If the <tt>value</tt> argument is null or
  15157. its size is zero, the <tt>elementType</tt> argument must not be null. If
  15158. the argument <tt>value</tt>'s size is bigger than zero, the argument
  15159. <tt>elementType</tt> is not be used.
  15160. @param value
  15161. @param elementType]]>
  15162. </doc>
  15163. </constructor>
  15164. <constructor name="EnumSetWritable" type="java.util.EnumSet"
  15165. static="false" final="false" visibility="public"
  15166. deprecated="not deprecated">
  15167. <doc>
  15168. <![CDATA[Construct a new EnumSetWritable. Argument <tt>value</tt> should not be null
  15169. or empty.
  15170. @param value]]>
  15171. </doc>
  15172. </constructor>
  15173. <method name="iterator" return="java.util.Iterator"
  15174. abstract="false" native="false" synchronized="false"
  15175. static="false" final="false" visibility="public"
  15176. deprecated="not deprecated">
  15177. </method>
  15178. <method name="size" return="int"
  15179. abstract="false" native="false" synchronized="false"
  15180. static="false" final="false" visibility="public"
  15181. deprecated="not deprecated">
  15182. </method>
  15183. <method name="add" return="boolean"
  15184. abstract="false" native="false" synchronized="false"
  15185. static="false" final="false" visibility="public"
  15186. deprecated="not deprecated">
  15187. <param name="e" type="E"/>
  15188. </method>
  15189. <method name="set"
  15190. abstract="false" native="false" synchronized="false"
  15191. static="false" final="false" visibility="public"
  15192. deprecated="not deprecated">
  15193. <param name="value" type="java.util.EnumSet"/>
  15194. <param name="elementType" type="java.lang.Class"/>
  15195. <doc>
  15196. <![CDATA[reset the EnumSetWritable with specified
  15197. <tt>value</value> and <tt>elementType</tt>. If the <tt>value</tt> argument
  15198. is null or its size is zero, the <tt>elementType</tt> argument must not be
  15199. null. If the argument <tt>value</tt>'s size is bigger than zero, the
  15200. argument <tt>elementType</tt> is not be used.
  15201. @param value
  15202. @param elementType]]>
  15203. </doc>
  15204. </method>
  15205. <method name="get" return="java.util.EnumSet"
  15206. abstract="false" native="false" synchronized="false"
  15207. static="false" final="false" visibility="public"
  15208. deprecated="not deprecated">
  15209. <doc>
  15210. <![CDATA[Return the value of this EnumSetWritable.]]>
  15211. </doc>
  15212. </method>
  15213. <method name="readFields"
  15214. abstract="false" native="false" synchronized="false"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="not deprecated">
  15217. <param name="in" type="java.io.DataInput"/>
  15218. <exception name="IOException" type="java.io.IOException"/>
  15219. </method>
  15220. <method name="write"
  15221. abstract="false" native="false" synchronized="false"
  15222. static="false" final="false" visibility="public"
  15223. deprecated="not deprecated">
  15224. <param name="out" type="java.io.DataOutput"/>
  15225. <exception name="IOException" type="java.io.IOException"/>
  15226. </method>
  15227. <method name="equals" return="boolean"
  15228. abstract="false" native="false" synchronized="false"
  15229. static="false" final="false" visibility="public"
  15230. deprecated="not deprecated">
  15231. <param name="o" type="java.lang.Object"/>
  15232. <doc>
  15233. <![CDATA[Returns true if <code>o</code> is an EnumSetWritable with the same value,
  15234. or both are null.]]>
  15235. </doc>
  15236. </method>
  15237. <method name="getElementType" return="java.lang.Class"
  15238. abstract="false" native="false" synchronized="false"
  15239. static="false" final="false" visibility="public"
  15240. deprecated="not deprecated">
  15241. <doc>
  15242. <![CDATA[Returns the class of all the elements of the underlying EnumSetWriable. It
  15243. may return null.
  15244. @return the element class]]>
  15245. </doc>
  15246. </method>
  15247. <method name="hashCode" return="int"
  15248. abstract="false" native="false" synchronized="false"
  15249. static="false" final="false" visibility="public"
  15250. deprecated="not deprecated">
  15251. </method>
  15252. <method name="toString" return="java.lang.String"
  15253. abstract="false" native="false" synchronized="false"
  15254. static="false" final="false" visibility="public"
  15255. deprecated="not deprecated">
  15256. </method>
  15257. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  15258. abstract="false" native="false" synchronized="false"
  15259. static="false" final="false" visibility="public"
  15260. deprecated="not deprecated">
  15261. </method>
  15262. <method name="setConf"
  15263. abstract="false" native="false" synchronized="false"
  15264. static="false" final="false" visibility="public"
  15265. deprecated="not deprecated">
  15266. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15267. </method>
  15268. <doc>
  15269. <![CDATA[A Writable wrapper for EnumSet.]]>
  15270. </doc>
  15271. </class>
  15272. <!-- end class org.apache.hadoop.io.EnumSetWritable -->
  15273. <!-- start class org.apache.hadoop.io.FloatWritable -->
  15274. <class name="FloatWritable" extends="java.lang.Object"
  15275. abstract="false"
  15276. static="false" final="false" visibility="public"
  15277. deprecated="not deprecated">
  15278. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15279. <constructor name="FloatWritable"
  15280. static="false" final="false" visibility="public"
  15281. deprecated="not deprecated">
  15282. </constructor>
  15283. <constructor name="FloatWritable" type="float"
  15284. static="false" final="false" visibility="public"
  15285. deprecated="not deprecated">
  15286. </constructor>
  15287. <method name="set"
  15288. abstract="false" native="false" synchronized="false"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <param name="value" type="float"/>
  15292. <doc>
  15293. <![CDATA[Set the value of this FloatWritable.]]>
  15294. </doc>
  15295. </method>
  15296. <method name="get" return="float"
  15297. abstract="false" native="false" synchronized="false"
  15298. static="false" final="false" visibility="public"
  15299. deprecated="not deprecated">
  15300. <doc>
  15301. <![CDATA[Return the value of this FloatWritable.]]>
  15302. </doc>
  15303. </method>
  15304. <method name="readFields"
  15305. abstract="false" native="false" synchronized="false"
  15306. static="false" final="false" visibility="public"
  15307. deprecated="not deprecated">
  15308. <param name="in" type="java.io.DataInput"/>
  15309. <exception name="IOException" type="java.io.IOException"/>
  15310. </method>
  15311. <method name="write"
  15312. abstract="false" native="false" synchronized="false"
  15313. static="false" final="false" visibility="public"
  15314. deprecated="not deprecated">
  15315. <param name="out" type="java.io.DataOutput"/>
  15316. <exception name="IOException" type="java.io.IOException"/>
  15317. </method>
  15318. <method name="equals" return="boolean"
  15319. abstract="false" native="false" synchronized="false"
  15320. static="false" final="false" visibility="public"
  15321. deprecated="not deprecated">
  15322. <param name="o" type="java.lang.Object"/>
  15323. <doc>
  15324. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  15325. </doc>
  15326. </method>
  15327. <method name="hashCode" return="int"
  15328. abstract="false" native="false" synchronized="false"
  15329. static="false" final="false" visibility="public"
  15330. deprecated="not deprecated">
  15331. </method>
  15332. <method name="compareTo" return="int"
  15333. abstract="false" native="false" synchronized="false"
  15334. static="false" final="false" visibility="public"
  15335. deprecated="not deprecated">
  15336. <param name="o" type="org.apache.hadoop.io.FloatWritable"/>
  15337. <doc>
  15338. <![CDATA[Compares two FloatWritables.]]>
  15339. </doc>
  15340. </method>
  15341. <method name="toString" return="java.lang.String"
  15342. abstract="false" native="false" synchronized="false"
  15343. static="false" final="false" visibility="public"
  15344. deprecated="not deprecated">
  15345. </method>
  15346. <doc>
  15347. <![CDATA[A WritableComparable for floats.]]>
  15348. </doc>
  15349. </class>
  15350. <!-- end class org.apache.hadoop.io.FloatWritable -->
  15351. <!-- start class org.apache.hadoop.io.GenericWritable -->
  15352. <class name="GenericWritable" extends="java.lang.Object"
  15353. abstract="true"
  15354. static="false" final="false" visibility="public"
  15355. deprecated="not deprecated">
  15356. <implements name="org.apache.hadoop.io.Writable"/>
  15357. <implements name="org.apache.hadoop.conf.Configurable"/>
  15358. <constructor name="GenericWritable"
  15359. static="false" final="false" visibility="public"
  15360. deprecated="not deprecated">
  15361. </constructor>
  15362. <method name="set"
  15363. abstract="false" native="false" synchronized="false"
  15364. static="false" final="false" visibility="public"
  15365. deprecated="not deprecated">
  15366. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  15367. <doc>
  15368. <![CDATA[Set the instance that is wrapped.
  15369. @param obj]]>
  15370. </doc>
  15371. </method>
  15372. <method name="get" return="org.apache.hadoop.io.Writable"
  15373. abstract="false" native="false" synchronized="false"
  15374. static="false" final="false" visibility="public"
  15375. deprecated="not deprecated">
  15376. <doc>
  15377. <![CDATA[Return the wrapped instance.]]>
  15378. </doc>
  15379. </method>
  15380. <method name="toString" return="java.lang.String"
  15381. abstract="false" native="false" synchronized="false"
  15382. static="false" final="false" visibility="public"
  15383. deprecated="not deprecated">
  15384. </method>
  15385. <method name="readFields"
  15386. abstract="false" native="false" synchronized="false"
  15387. static="false" final="false" visibility="public"
  15388. deprecated="not deprecated">
  15389. <param name="in" type="java.io.DataInput"/>
  15390. <exception name="IOException" type="java.io.IOException"/>
  15391. </method>
  15392. <method name="write"
  15393. abstract="false" native="false" synchronized="false"
  15394. static="false" final="false" visibility="public"
  15395. deprecated="not deprecated">
  15396. <param name="out" type="java.io.DataOutput"/>
  15397. <exception name="IOException" type="java.io.IOException"/>
  15398. </method>
  15399. <method name="getTypes" return="java.lang.Class[]"
  15400. abstract="true" native="false" synchronized="false"
  15401. static="false" final="false" visibility="protected"
  15402. deprecated="not deprecated">
  15403. <doc>
  15404. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  15405. to return a constant array of classes.]]>
  15406. </doc>
  15407. </method>
  15408. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  15409. abstract="false" native="false" synchronized="false"
  15410. static="false" final="false" visibility="public"
  15411. deprecated="not deprecated">
  15412. </method>
  15413. <method name="setConf"
  15414. abstract="false" native="false" synchronized="false"
  15415. static="false" final="false" visibility="public"
  15416. deprecated="not deprecated">
  15417. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15418. </method>
  15419. <doc>
  15420. <![CDATA[A wrapper for Writable instances.
  15421. <p>
  15422. When two sequence files, which have same Key type but different Value
  15423. types, are mapped out to reduce, multiple Value types is not allowed.
  15424. In this case, this class can help you wrap instances with different types.
  15425. </p>
  15426. <p>
  15427. Compared with <code>ObjectWritable</code>, this class is much more effective,
  15428. because <code>ObjectWritable</code> will append the class declaration as a String
  15429. into the output file in every Key-Value pair.
  15430. </p>
  15431. <p>
  15432. Generic Writable implements {@link Configurable} interface, so that it will be
  15433. configured by the framework. The configuration is passed to the wrapped objects
  15434. implementing {@link Configurable} interface <i>before deserialization</i>.
  15435. </p>
  15436. how to use it: <br>
  15437. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  15438. 2. Implements the abstract method <code>getTypes()</code>, defines
  15439. the classes which will be wrapped in GenericObject in application.
  15440. Attention: this classes defined in <code>getTypes()</code> method, must
  15441. implement <code>Writable</code> interface.
  15442. <br><br>
  15443. The code looks like this:
  15444. <blockquote><pre>
  15445. public class GenericObject extends GenericWritable {
  15446. private static Class[] CLASSES = {
  15447. ClassType1.class,
  15448. ClassType2.class,
  15449. ClassType3.class,
  15450. };
  15451. protected Class[] getTypes() {
  15452. return CLASSES;
  15453. }
  15454. }
  15455. </pre></blockquote>
  15456. @since Nov 8, 2006]]>
  15457. </doc>
  15458. </class>
  15459. <!-- end class org.apache.hadoop.io.GenericWritable -->
  15460. <!-- start class org.apache.hadoop.io.IntWritable -->
  15461. <class name="IntWritable" extends="java.lang.Object"
  15462. abstract="false"
  15463. static="false" final="false" visibility="public"
  15464. deprecated="not deprecated">
  15465. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15466. <constructor name="IntWritable"
  15467. static="false" final="false" visibility="public"
  15468. deprecated="not deprecated">
  15469. </constructor>
  15470. <constructor name="IntWritable" type="int"
  15471. static="false" final="false" visibility="public"
  15472. deprecated="not deprecated">
  15473. </constructor>
  15474. <method name="set"
  15475. abstract="false" native="false" synchronized="false"
  15476. static="false" final="false" visibility="public"
  15477. deprecated="not deprecated">
  15478. <param name="value" type="int"/>
  15479. <doc>
  15480. <![CDATA[Set the value of this IntWritable.]]>
  15481. </doc>
  15482. </method>
  15483. <method name="get" return="int"
  15484. abstract="false" native="false" synchronized="false"
  15485. static="false" final="false" visibility="public"
  15486. deprecated="not deprecated">
  15487. <doc>
  15488. <![CDATA[Return the value of this IntWritable.]]>
  15489. </doc>
  15490. </method>
  15491. <method name="readFields"
  15492. abstract="false" native="false" synchronized="false"
  15493. static="false" final="false" visibility="public"
  15494. deprecated="not deprecated">
  15495. <param name="in" type="java.io.DataInput"/>
  15496. <exception name="IOException" type="java.io.IOException"/>
  15497. </method>
  15498. <method name="write"
  15499. abstract="false" native="false" synchronized="false"
  15500. static="false" final="false" visibility="public"
  15501. deprecated="not deprecated">
  15502. <param name="out" type="java.io.DataOutput"/>
  15503. <exception name="IOException" type="java.io.IOException"/>
  15504. </method>
  15505. <method name="equals" return="boolean"
  15506. abstract="false" native="false" synchronized="false"
  15507. static="false" final="false" visibility="public"
  15508. deprecated="not deprecated">
  15509. <param name="o" type="java.lang.Object"/>
  15510. <doc>
  15511. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  15512. </doc>
  15513. </method>
  15514. <method name="hashCode" return="int"
  15515. abstract="false" native="false" synchronized="false"
  15516. static="false" final="false" visibility="public"
  15517. deprecated="not deprecated">
  15518. </method>
  15519. <method name="compareTo" return="int"
  15520. abstract="false" native="false" synchronized="false"
  15521. static="false" final="false" visibility="public"
  15522. deprecated="not deprecated">
  15523. <param name="o" type="org.apache.hadoop.io.IntWritable"/>
  15524. <doc>
  15525. <![CDATA[Compares two IntWritables.]]>
  15526. </doc>
  15527. </method>
  15528. <method name="toString" return="java.lang.String"
  15529. abstract="false" native="false" synchronized="false"
  15530. static="false" final="false" visibility="public"
  15531. deprecated="not deprecated">
  15532. </method>
  15533. <doc>
  15534. <![CDATA[A WritableComparable for ints.]]>
  15535. </doc>
  15536. </class>
  15537. <!-- end class org.apache.hadoop.io.IntWritable -->
  15538. <!-- start class org.apache.hadoop.io.IOUtils -->
  15539. <class name="IOUtils" extends="java.lang.Object"
  15540. abstract="false"
  15541. static="false" final="false" visibility="public"
  15542. deprecated="not deprecated">
  15543. <constructor name="IOUtils"
  15544. static="false" final="false" visibility="public"
  15545. deprecated="not deprecated">
  15546. </constructor>
  15547. <method name="copyBytes"
  15548. abstract="false" native="false" synchronized="false"
  15549. static="true" final="false" visibility="public"
  15550. deprecated="not deprecated">
  15551. <param name="in" type="java.io.InputStream"/>
  15552. <param name="out" type="java.io.OutputStream"/>
  15553. <param name="buffSize" type="int"/>
  15554. <param name="close" type="boolean"/>
  15555. <exception name="IOException" type="java.io.IOException"/>
  15556. <doc>
  15557. <![CDATA[Copies from one stream to another.
  15558. @param in InputStrem to read from
  15559. @param out OutputStream to write to
  15560. @param buffSize the size of the buffer
  15561. @param close whether or not close the InputStream and
  15562. OutputStream at the end. The streams are closed in the finally clause.]]>
  15563. </doc>
  15564. </method>
  15565. <method name="copyBytes"
  15566. abstract="false" native="false" synchronized="false"
  15567. static="true" final="false" visibility="public"
  15568. deprecated="not deprecated">
  15569. <param name="in" type="java.io.InputStream"/>
  15570. <param name="out" type="java.io.OutputStream"/>
  15571. <param name="buffSize" type="int"/>
  15572. <exception name="IOException" type="java.io.IOException"/>
  15573. <doc>
  15574. <![CDATA[Copies from one stream to another.
  15575. @param in InputStrem to read from
  15576. @param out OutputStream to write to
  15577. @param buffSize the size of the buffer]]>
  15578. </doc>
  15579. </method>
  15580. <method name="copyBytes"
  15581. abstract="false" native="false" synchronized="false"
  15582. static="true" final="false" visibility="public"
  15583. deprecated="not deprecated">
  15584. <param name="in" type="java.io.InputStream"/>
  15585. <param name="out" type="java.io.OutputStream"/>
  15586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15587. <exception name="IOException" type="java.io.IOException"/>
  15588. <doc>
  15589. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  15590. at the end</strong>.
  15591. @param in InputStrem to read from
  15592. @param out OutputStream to write to
  15593. @param conf the Configuration object]]>
  15594. </doc>
  15595. </method>
  15596. <method name="copyBytes"
  15597. abstract="false" native="false" synchronized="false"
  15598. static="true" final="false" visibility="public"
  15599. deprecated="not deprecated">
  15600. <param name="in" type="java.io.InputStream"/>
  15601. <param name="out" type="java.io.OutputStream"/>
  15602. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15603. <param name="close" type="boolean"/>
  15604. <exception name="IOException" type="java.io.IOException"/>
  15605. <doc>
  15606. <![CDATA[Copies from one stream to another.
  15607. @param in InputStream to read from
  15608. @param out OutputStream to write to
  15609. @param conf the Configuration object
  15610. @param close whether or not close the InputStream and
  15611. OutputStream at the end. The streams are closed in the finally clause.]]>
  15612. </doc>
  15613. </method>
  15614. <method name="copyBytes"
  15615. abstract="false" native="false" synchronized="false"
  15616. static="true" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. <param name="in" type="java.io.InputStream"/>
  15619. <param name="out" type="java.io.OutputStream"/>
  15620. <param name="count" type="long"/>
  15621. <param name="close" type="boolean"/>
  15622. <exception name="IOException" type="java.io.IOException"/>
  15623. <doc>
  15624. <![CDATA[Copies count bytes from one stream to another.
  15625. @param in InputStream to read from
  15626. @param out OutputStream to write to
  15627. @param count number of bytes to copy
  15628. @param close whether to close the streams
  15629. @throws IOException if bytes can not be read or written]]>
  15630. </doc>
  15631. </method>
  15632. <method name="wrappedReadForCompressedData" return="int"
  15633. abstract="false" native="false" synchronized="false"
  15634. static="true" final="false" visibility="public"
  15635. deprecated="not deprecated">
  15636. <param name="is" type="java.io.InputStream"/>
  15637. <param name="buf" type="byte[]"/>
  15638. <param name="off" type="int"/>
  15639. <param name="len" type="int"/>
  15640. <exception name="IOException" type="java.io.IOException"/>
  15641. <doc>
  15642. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  15643. thrown by the underlying stream (either IO or decompression-related), and
  15644. re-throws as an IOException.
  15645. @param is - InputStream to be read from
  15646. @param buf - buffer the data is read into
  15647. @param off - offset within buf
  15648. @param len - amount of data to be read
  15649. @return number of bytes read]]>
  15650. </doc>
  15651. </method>
  15652. <method name="readFully"
  15653. abstract="false" native="false" synchronized="false"
  15654. static="true" final="false" visibility="public"
  15655. deprecated="not deprecated">
  15656. <param name="in" type="java.io.InputStream"/>
  15657. <param name="buf" type="byte[]"/>
  15658. <param name="off" type="int"/>
  15659. <param name="len" type="int"/>
  15660. <exception name="IOException" type="java.io.IOException"/>
  15661. <doc>
  15662. <![CDATA[Reads len bytes in a loop.
  15663. @param in InputStream to read from
  15664. @param buf The buffer to fill
  15665. @param off offset from the buffer
  15666. @param len the length of bytes to read
  15667. @throws IOException if it could not read requested number of bytes
  15668. for any reason (including EOF)]]>
  15669. </doc>
  15670. </method>
  15671. <method name="skipFully"
  15672. abstract="false" native="false" synchronized="false"
  15673. static="true" final="false" visibility="public"
  15674. deprecated="not deprecated">
  15675. <param name="in" type="java.io.InputStream"/>
  15676. <param name="len" type="long"/>
  15677. <exception name="IOException" type="java.io.IOException"/>
  15678. <doc>
  15679. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  15680. @param in The InputStream to skip bytes from
  15681. @param len number of bytes to skip.
  15682. @throws IOException if it could not skip requested number of bytes
  15683. for any reason (including EOF)]]>
  15684. </doc>
  15685. </method>
  15686. <method name="cleanup"
  15687. abstract="false" native="false" synchronized="false"
  15688. static="true" final="false" visibility="public"
  15689. deprecated="not deprecated">
  15690. <param name="log" type="org.apache.commons.logging.Log"/>
  15691. <param name="closeables" type="java.io.Closeable[]"/>
  15692. <doc>
  15693. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  15694. null pointers. Must only be used for cleanup in exception handlers.
  15695. @param log the log to record problems to at debug level. Can be null.
  15696. @param closeables the objects to close]]>
  15697. </doc>
  15698. </method>
  15699. <method name="closeStream"
  15700. abstract="false" native="false" synchronized="false"
  15701. static="true" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. <param name="stream" type="java.io.Closeable"/>
  15704. <doc>
  15705. <![CDATA[Closes the stream ignoring {@link IOException}.
  15706. Must only be called in cleaning up from exception handlers.
  15707. @param stream the Stream to close]]>
  15708. </doc>
  15709. </method>
  15710. <method name="closeSocket"
  15711. abstract="false" native="false" synchronized="false"
  15712. static="true" final="false" visibility="public"
  15713. deprecated="not deprecated">
  15714. <param name="sock" type="java.net.Socket"/>
  15715. <doc>
  15716. <![CDATA[Closes the socket ignoring {@link IOException}
  15717. @param sock the Socket to close]]>
  15718. </doc>
  15719. </method>
  15720. <method name="writeFully"
  15721. abstract="false" native="false" synchronized="false"
  15722. static="true" final="false" visibility="public"
  15723. deprecated="not deprecated">
  15724. <param name="bc" type="java.nio.channels.WritableByteChannel"/>
  15725. <param name="buf" type="java.nio.ByteBuffer"/>
  15726. <exception name="IOException" type="java.io.IOException"/>
  15727. <doc>
  15728. <![CDATA[Write a ByteBuffer to a WritableByteChannel, handling short writes.
  15729. @param bc The WritableByteChannel to write to
  15730. @param buf The input buffer
  15731. @throws IOException On I/O error]]>
  15732. </doc>
  15733. </method>
  15734. <method name="writeFully"
  15735. abstract="false" native="false" synchronized="false"
  15736. static="true" final="false" visibility="public"
  15737. deprecated="not deprecated">
  15738. <param name="fc" type="java.nio.channels.FileChannel"/>
  15739. <param name="buf" type="java.nio.ByteBuffer"/>
  15740. <param name="offset" type="long"/>
  15741. <exception name="IOException" type="java.io.IOException"/>
  15742. <doc>
  15743. <![CDATA[Write a ByteBuffer to a FileChannel at a given offset,
  15744. handling short writes.
  15745. @param fc The FileChannel to write to
  15746. @param buf The input buffer
  15747. @param offset The offset in the file to start writing at
  15748. @throws IOException On I/O error]]>
  15749. </doc>
  15750. </method>
  15751. <method name="listDirectory" return="java.util.List"
  15752. abstract="false" native="false" synchronized="false"
  15753. static="true" final="false" visibility="public"
  15754. deprecated="not deprecated">
  15755. <param name="dir" type="java.io.File"/>
  15756. <param name="filter" type="java.io.FilenameFilter"/>
  15757. <exception name="IOException" type="java.io.IOException"/>
  15758. <doc>
  15759. <![CDATA[Return the complete list of files in a directory as strings.<p/>
  15760. This is better than File#listDir because it does not ignore IOExceptions.
  15761. @param dir The directory to list.
  15762. @param filter If non-null, the filter to use when listing
  15763. this directory.
  15764. @return The list of files in the directory.
  15765. @throws IOException On I/O error]]>
  15766. </doc>
  15767. </method>
  15768. <doc>
  15769. <![CDATA[An utility class for I/O related functionality.]]>
  15770. </doc>
  15771. </class>
  15772. <!-- end class org.apache.hadoop.io.IOUtils -->
  15773. <!-- start class org.apache.hadoop.io.LongWritable -->
  15774. <class name="LongWritable" extends="java.lang.Object"
  15775. abstract="false"
  15776. static="false" final="false" visibility="public"
  15777. deprecated="not deprecated">
  15778. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15779. <constructor name="LongWritable"
  15780. static="false" final="false" visibility="public"
  15781. deprecated="not deprecated">
  15782. </constructor>
  15783. <constructor name="LongWritable" type="long"
  15784. static="false" final="false" visibility="public"
  15785. deprecated="not deprecated">
  15786. </constructor>
  15787. <method name="set"
  15788. abstract="false" native="false" synchronized="false"
  15789. static="false" final="false" visibility="public"
  15790. deprecated="not deprecated">
  15791. <param name="value" type="long"/>
  15792. <doc>
  15793. <![CDATA[Set the value of this LongWritable.]]>
  15794. </doc>
  15795. </method>
  15796. <method name="get" return="long"
  15797. abstract="false" native="false" synchronized="false"
  15798. static="false" final="false" visibility="public"
  15799. deprecated="not deprecated">
  15800. <doc>
  15801. <![CDATA[Return the value of this LongWritable.]]>
  15802. </doc>
  15803. </method>
  15804. <method name="readFields"
  15805. abstract="false" native="false" synchronized="false"
  15806. static="false" final="false" visibility="public"
  15807. deprecated="not deprecated">
  15808. <param name="in" type="java.io.DataInput"/>
  15809. <exception name="IOException" type="java.io.IOException"/>
  15810. </method>
  15811. <method name="write"
  15812. abstract="false" native="false" synchronized="false"
  15813. static="false" final="false" visibility="public"
  15814. deprecated="not deprecated">
  15815. <param name="out" type="java.io.DataOutput"/>
  15816. <exception name="IOException" type="java.io.IOException"/>
  15817. </method>
  15818. <method name="equals" return="boolean"
  15819. abstract="false" native="false" synchronized="false"
  15820. static="false" final="false" visibility="public"
  15821. deprecated="not deprecated">
  15822. <param name="o" type="java.lang.Object"/>
  15823. <doc>
  15824. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  15825. </doc>
  15826. </method>
  15827. <method name="hashCode" return="int"
  15828. abstract="false" native="false" synchronized="false"
  15829. static="false" final="false" visibility="public"
  15830. deprecated="not deprecated">
  15831. </method>
  15832. <method name="compareTo" return="int"
  15833. abstract="false" native="false" synchronized="false"
  15834. static="false" final="false" visibility="public"
  15835. deprecated="not deprecated">
  15836. <param name="o" type="org.apache.hadoop.io.LongWritable"/>
  15837. <doc>
  15838. <![CDATA[Compares two LongWritables.]]>
  15839. </doc>
  15840. </method>
  15841. <method name="toString" return="java.lang.String"
  15842. abstract="false" native="false" synchronized="false"
  15843. static="false" final="false" visibility="public"
  15844. deprecated="not deprecated">
  15845. </method>
  15846. <doc>
  15847. <![CDATA[A WritableComparable for longs.]]>
  15848. </doc>
  15849. </class>
  15850. <!-- end class org.apache.hadoop.io.LongWritable -->
  15851. <!-- start class org.apache.hadoop.io.MapFile -->
  15852. <class name="MapFile" extends="java.lang.Object"
  15853. abstract="false"
  15854. static="false" final="false" visibility="public"
  15855. deprecated="not deprecated">
  15856. <constructor name="MapFile"
  15857. static="false" final="false" visibility="protected"
  15858. deprecated="not deprecated">
  15859. </constructor>
  15860. <method name="rename"
  15861. abstract="false" native="false" synchronized="false"
  15862. static="true" final="false" visibility="public"
  15863. deprecated="not deprecated">
  15864. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15865. <param name="oldName" type="java.lang.String"/>
  15866. <param name="newName" type="java.lang.String"/>
  15867. <exception name="IOException" type="java.io.IOException"/>
  15868. <doc>
  15869. <![CDATA[Renames an existing map directory.]]>
  15870. </doc>
  15871. </method>
  15872. <method name="delete"
  15873. abstract="false" native="false" synchronized="false"
  15874. static="true" final="false" visibility="public"
  15875. deprecated="not deprecated">
  15876. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15877. <param name="name" type="java.lang.String"/>
  15878. <exception name="IOException" type="java.io.IOException"/>
  15879. <doc>
  15880. <![CDATA[Deletes the named map file.]]>
  15881. </doc>
  15882. </method>
  15883. <method name="fix" return="long"
  15884. abstract="false" native="false" synchronized="false"
  15885. static="true" final="false" visibility="public"
  15886. deprecated="not deprecated">
  15887. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15888. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15889. <param name="keyClass" type="java.lang.Class"/>
  15890. <param name="valueClass" type="java.lang.Class"/>
  15891. <param name="dryrun" type="boolean"/>
  15892. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15893. <exception name="Exception" type="java.lang.Exception"/>
  15894. <doc>
  15895. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  15896. @param fs filesystem
  15897. @param dir directory containing the MapFile data and index
  15898. @param keyClass key class (has to be a subclass of Writable)
  15899. @param valueClass value class (has to be a subclass of Writable)
  15900. @param dryrun do not perform any changes, just report what needs to be done
  15901. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  15902. @throws Exception]]>
  15903. </doc>
  15904. </method>
  15905. <method name="main"
  15906. abstract="false" native="false" synchronized="false"
  15907. static="true" final="false" visibility="public"
  15908. deprecated="not deprecated">
  15909. <param name="args" type="java.lang.String[]"/>
  15910. <exception name="Exception" type="java.lang.Exception"/>
  15911. </method>
  15912. <field name="INDEX_FILE_NAME" type="java.lang.String"
  15913. transient="false" volatile="false"
  15914. static="true" final="true" visibility="public"
  15915. deprecated="not deprecated">
  15916. <doc>
  15917. <![CDATA[The name of the index file.]]>
  15918. </doc>
  15919. </field>
  15920. <field name="DATA_FILE_NAME" type="java.lang.String"
  15921. transient="false" volatile="false"
  15922. static="true" final="true" visibility="public"
  15923. deprecated="not deprecated">
  15924. <doc>
  15925. <![CDATA[The name of the data file.]]>
  15926. </doc>
  15927. </field>
  15928. <doc>
  15929. <![CDATA[A file-based map from keys to values.
  15930. <p>A map is a directory containing two files, the <code>data</code> file,
  15931. containing all keys and values in the map, and a smaller <code>index</code>
  15932. file, containing a fraction of the keys. The fraction is determined by
  15933. {@link Writer#getIndexInterval()}.
  15934. <p>The index file is read entirely into memory. Thus key implementations
  15935. should try to keep themselves small.
  15936. <p>Map files are created by adding entries in-order. To maintain a large
  15937. database, perform updates by copying the previous version of a database and
  15938. merging in a sorted change list, to create a new version of the database in
  15939. a new file. Sorting large change lists can be done with {@link
  15940. SequenceFile.Sorter}.]]>
  15941. </doc>
  15942. </class>
  15943. <!-- end class org.apache.hadoop.io.MapFile -->
  15944. <!-- start class org.apache.hadoop.io.MapWritable -->
  15945. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  15946. abstract="false"
  15947. static="false" final="false" visibility="public"
  15948. deprecated="not deprecated">
  15949. <implements name="java.util.Map"/>
  15950. <constructor name="MapWritable"
  15951. static="false" final="false" visibility="public"
  15952. deprecated="not deprecated">
  15953. <doc>
  15954. <![CDATA[Default constructor.]]>
  15955. </doc>
  15956. </constructor>
  15957. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  15958. static="false" final="false" visibility="public"
  15959. deprecated="not deprecated">
  15960. <doc>
  15961. <![CDATA[Copy constructor.
  15962. @param other the map to copy from]]>
  15963. </doc>
  15964. </constructor>
  15965. <method name="clear"
  15966. abstract="false" native="false" synchronized="false"
  15967. static="false" final="false" visibility="public"
  15968. deprecated="not deprecated">
  15969. </method>
  15970. <method name="containsKey" return="boolean"
  15971. abstract="false" native="false" synchronized="false"
  15972. static="false" final="false" visibility="public"
  15973. deprecated="not deprecated">
  15974. <param name="key" type="java.lang.Object"/>
  15975. </method>
  15976. <method name="containsValue" return="boolean"
  15977. abstract="false" native="false" synchronized="false"
  15978. static="false" final="false" visibility="public"
  15979. deprecated="not deprecated">
  15980. <param name="value" type="java.lang.Object"/>
  15981. </method>
  15982. <method name="entrySet" return="java.util.Set"
  15983. abstract="false" native="false" synchronized="false"
  15984. static="false" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. </method>
  15987. <method name="equals" return="boolean"
  15988. abstract="false" native="false" synchronized="false"
  15989. static="false" final="false" visibility="public"
  15990. deprecated="not deprecated">
  15991. <param name="obj" type="java.lang.Object"/>
  15992. </method>
  15993. <method name="get" return="org.apache.hadoop.io.Writable"
  15994. abstract="false" native="false" synchronized="false"
  15995. static="false" final="false" visibility="public"
  15996. deprecated="not deprecated">
  15997. <param name="key" type="java.lang.Object"/>
  15998. </method>
  15999. <method name="hashCode" return="int"
  16000. abstract="false" native="false" synchronized="false"
  16001. static="false" final="false" visibility="public"
  16002. deprecated="not deprecated">
  16003. </method>
  16004. <method name="isEmpty" return="boolean"
  16005. abstract="false" native="false" synchronized="false"
  16006. static="false" final="false" visibility="public"
  16007. deprecated="not deprecated">
  16008. </method>
  16009. <method name="keySet" return="java.util.Set"
  16010. abstract="false" native="false" synchronized="false"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. </method>
  16014. <method name="put" return="org.apache.hadoop.io.Writable"
  16015. abstract="false" native="false" synchronized="false"
  16016. static="false" final="false" visibility="public"
  16017. deprecated="not deprecated">
  16018. <param name="key" type="org.apache.hadoop.io.Writable"/>
  16019. <param name="value" type="org.apache.hadoop.io.Writable"/>
  16020. </method>
  16021. <method name="putAll"
  16022. abstract="false" native="false" synchronized="false"
  16023. static="false" final="false" visibility="public"
  16024. deprecated="not deprecated">
  16025. <param name="t" type="java.util.Map"/>
  16026. </method>
  16027. <method name="remove" return="org.apache.hadoop.io.Writable"
  16028. abstract="false" native="false" synchronized="false"
  16029. static="false" final="false" visibility="public"
  16030. deprecated="not deprecated">
  16031. <param name="key" type="java.lang.Object"/>
  16032. </method>
  16033. <method name="size" return="int"
  16034. abstract="false" native="false" synchronized="false"
  16035. static="false" final="false" visibility="public"
  16036. deprecated="not deprecated">
  16037. </method>
  16038. <method name="values" return="java.util.Collection"
  16039. abstract="false" native="false" synchronized="false"
  16040. static="false" final="false" visibility="public"
  16041. deprecated="not deprecated">
  16042. </method>
  16043. <method name="write"
  16044. abstract="false" native="false" synchronized="false"
  16045. static="false" final="false" visibility="public"
  16046. deprecated="not deprecated">
  16047. <param name="out" type="java.io.DataOutput"/>
  16048. <exception name="IOException" type="java.io.IOException"/>
  16049. </method>
  16050. <method name="readFields"
  16051. abstract="false" native="false" synchronized="false"
  16052. static="false" final="false" visibility="public"
  16053. deprecated="not deprecated">
  16054. <param name="in" type="java.io.DataInput"/>
  16055. <exception name="IOException" type="java.io.IOException"/>
  16056. </method>
  16057. <doc>
  16058. <![CDATA[A Writable Map.]]>
  16059. </doc>
  16060. </class>
  16061. <!-- end class org.apache.hadoop.io.MapWritable -->
  16062. <!-- start class org.apache.hadoop.io.MD5Hash -->
  16063. <class name="MD5Hash" extends="java.lang.Object"
  16064. abstract="false"
  16065. static="false" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16068. <constructor name="MD5Hash"
  16069. static="false" final="false" visibility="public"
  16070. deprecated="not deprecated">
  16071. <doc>
  16072. <![CDATA[Constructs an MD5Hash.]]>
  16073. </doc>
  16074. </constructor>
  16075. <constructor name="MD5Hash" type="java.lang.String"
  16076. static="false" final="false" visibility="public"
  16077. deprecated="not deprecated">
  16078. <doc>
  16079. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  16080. </doc>
  16081. </constructor>
  16082. <constructor name="MD5Hash" type="byte[]"
  16083. static="false" final="false" visibility="public"
  16084. deprecated="not deprecated">
  16085. <doc>
  16086. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  16087. </doc>
  16088. </constructor>
  16089. <method name="readFields"
  16090. abstract="false" native="false" synchronized="false"
  16091. static="false" final="false" visibility="public"
  16092. deprecated="not deprecated">
  16093. <param name="in" type="java.io.DataInput"/>
  16094. <exception name="IOException" type="java.io.IOException"/>
  16095. </method>
  16096. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  16097. abstract="false" native="false" synchronized="false"
  16098. static="true" final="false" visibility="public"
  16099. deprecated="not deprecated">
  16100. <param name="in" type="java.io.DataInput"/>
  16101. <exception name="IOException" type="java.io.IOException"/>
  16102. <doc>
  16103. <![CDATA[Constructs, reads and returns an instance.]]>
  16104. </doc>
  16105. </method>
  16106. <method name="write"
  16107. abstract="false" native="false" synchronized="false"
  16108. static="false" final="false" visibility="public"
  16109. deprecated="not deprecated">
  16110. <param name="out" type="java.io.DataOutput"/>
  16111. <exception name="IOException" type="java.io.IOException"/>
  16112. </method>
  16113. <method name="set"
  16114. abstract="false" native="false" synchronized="false"
  16115. static="false" final="false" visibility="public"
  16116. deprecated="not deprecated">
  16117. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  16118. <doc>
  16119. <![CDATA[Copy the contents of another instance into this instance.]]>
  16120. </doc>
  16121. </method>
  16122. <method name="getDigest" return="byte[]"
  16123. abstract="false" native="false" synchronized="false"
  16124. static="false" final="false" visibility="public"
  16125. deprecated="not deprecated">
  16126. <doc>
  16127. <![CDATA[Returns the digest bytes.]]>
  16128. </doc>
  16129. </method>
  16130. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  16131. abstract="false" native="false" synchronized="false"
  16132. static="true" final="false" visibility="public"
  16133. deprecated="not deprecated">
  16134. <param name="data" type="byte[]"/>
  16135. <doc>
  16136. <![CDATA[Construct a hash value for a byte array.]]>
  16137. </doc>
  16138. </method>
  16139. <method name="getDigester" return="java.security.MessageDigest"
  16140. abstract="false" native="false" synchronized="false"
  16141. static="true" final="false" visibility="public"
  16142. deprecated="not deprecated">
  16143. <doc>
  16144. <![CDATA[Create a thread local MD5 digester]]>
  16145. </doc>
  16146. </method>
  16147. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  16148. abstract="false" native="false" synchronized="false"
  16149. static="true" final="false" visibility="public"
  16150. deprecated="not deprecated">
  16151. <param name="in" type="java.io.InputStream"/>
  16152. <exception name="IOException" type="java.io.IOException"/>
  16153. <doc>
  16154. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  16155. </doc>
  16156. </method>
  16157. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  16158. abstract="false" native="false" synchronized="false"
  16159. static="true" final="false" visibility="public"
  16160. deprecated="not deprecated">
  16161. <param name="data" type="byte[]"/>
  16162. <param name="start" type="int"/>
  16163. <param name="len" type="int"/>
  16164. <doc>
  16165. <![CDATA[Construct a hash value for a byte array.]]>
  16166. </doc>
  16167. </method>
  16168. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  16169. abstract="false" native="false" synchronized="false"
  16170. static="true" final="false" visibility="public"
  16171. deprecated="not deprecated">
  16172. <param name="string" type="java.lang.String"/>
  16173. <doc>
  16174. <![CDATA[Construct a hash value for a String.]]>
  16175. </doc>
  16176. </method>
  16177. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  16178. abstract="false" native="false" synchronized="false"
  16179. static="true" final="false" visibility="public"
  16180. deprecated="not deprecated">
  16181. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  16182. <doc>
  16183. <![CDATA[Construct a hash value for a String.]]>
  16184. </doc>
  16185. </method>
  16186. <method name="halfDigest" return="long"
  16187. abstract="false" native="false" synchronized="false"
  16188. static="false" final="false" visibility="public"
  16189. deprecated="not deprecated">
  16190. <doc>
  16191. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  16192. </doc>
  16193. </method>
  16194. <method name="quarterDigest" return="int"
  16195. abstract="false" native="false" synchronized="false"
  16196. static="false" final="false" visibility="public"
  16197. deprecated="not deprecated">
  16198. <doc>
  16199. <![CDATA[Return a 32-bit digest of the MD5.
  16200. @return the first 4 bytes of the md5]]>
  16201. </doc>
  16202. </method>
  16203. <method name="equals" return="boolean"
  16204. abstract="false" native="false" synchronized="false"
  16205. static="false" final="false" visibility="public"
  16206. deprecated="not deprecated">
  16207. <param name="o" type="java.lang.Object"/>
  16208. <doc>
  16209. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  16210. same values.]]>
  16211. </doc>
  16212. </method>
  16213. <method name="hashCode" return="int"
  16214. abstract="false" native="false" synchronized="false"
  16215. static="false" final="false" visibility="public"
  16216. deprecated="not deprecated">
  16217. <doc>
  16218. <![CDATA[Returns a hash code value for this object.
  16219. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  16220. </doc>
  16221. </method>
  16222. <method name="compareTo" return="int"
  16223. abstract="false" native="false" synchronized="false"
  16224. static="false" final="false" visibility="public"
  16225. deprecated="not deprecated">
  16226. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  16227. <doc>
  16228. <![CDATA[Compares this object with the specified object for order.]]>
  16229. </doc>
  16230. </method>
  16231. <method name="toString" return="java.lang.String"
  16232. abstract="false" native="false" synchronized="false"
  16233. static="false" final="false" visibility="public"
  16234. deprecated="not deprecated">
  16235. <doc>
  16236. <![CDATA[Returns a string representation of this object.]]>
  16237. </doc>
  16238. </method>
  16239. <method name="setDigest"
  16240. abstract="false" native="false" synchronized="false"
  16241. static="false" final="false" visibility="public"
  16242. deprecated="not deprecated">
  16243. <param name="hex" type="java.lang.String"/>
  16244. <doc>
  16245. <![CDATA[Sets the digest value from a hex string.]]>
  16246. </doc>
  16247. </method>
  16248. <field name="MD5_LEN" type="int"
  16249. transient="false" volatile="false"
  16250. static="true" final="true" visibility="public"
  16251. deprecated="not deprecated">
  16252. </field>
  16253. <doc>
  16254. <![CDATA[A Writable for MD5 hash values.]]>
  16255. </doc>
  16256. </class>
  16257. <!-- end class org.apache.hadoop.io.MD5Hash -->
  16258. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  16259. <class name="MultipleIOException" extends="java.io.IOException"
  16260. abstract="false"
  16261. static="false" final="false" visibility="public"
  16262. deprecated="not deprecated">
  16263. <method name="getExceptions" return="java.util.List"
  16264. abstract="false" native="false" synchronized="false"
  16265. static="false" final="false" visibility="public"
  16266. deprecated="not deprecated">
  16267. <doc>
  16268. <![CDATA[@return the underlying exceptions]]>
  16269. </doc>
  16270. </method>
  16271. <method name="createIOException" return="java.io.IOException"
  16272. abstract="false" native="false" synchronized="false"
  16273. static="true" final="false" visibility="public"
  16274. deprecated="not deprecated">
  16275. <param name="exceptions" type="java.util.List"/>
  16276. <doc>
  16277. <![CDATA[A convenient method to create an {@link IOException}.]]>
  16278. </doc>
  16279. </method>
  16280. <doc>
  16281. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  16282. </doc>
  16283. </class>
  16284. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  16285. <!-- start class org.apache.hadoop.io.NullWritable -->
  16286. <class name="NullWritable" extends="java.lang.Object"
  16287. abstract="false"
  16288. static="false" final="false" visibility="public"
  16289. deprecated="not deprecated">
  16290. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16291. <method name="get" return="org.apache.hadoop.io.NullWritable"
  16292. abstract="false" native="false" synchronized="false"
  16293. static="true" final="false" visibility="public"
  16294. deprecated="not deprecated">
  16295. <doc>
  16296. <![CDATA[Returns the single instance of this class.]]>
  16297. </doc>
  16298. </method>
  16299. <method name="toString" return="java.lang.String"
  16300. abstract="false" native="false" synchronized="false"
  16301. static="false" final="false" visibility="public"
  16302. deprecated="not deprecated">
  16303. </method>
  16304. <method name="hashCode" return="int"
  16305. abstract="false" native="false" synchronized="false"
  16306. static="false" final="false" visibility="public"
  16307. deprecated="not deprecated">
  16308. </method>
  16309. <method name="compareTo" return="int"
  16310. abstract="false" native="false" synchronized="false"
  16311. static="false" final="false" visibility="public"
  16312. deprecated="not deprecated">
  16313. <param name="other" type="org.apache.hadoop.io.NullWritable"/>
  16314. </method>
  16315. <method name="equals" return="boolean"
  16316. abstract="false" native="false" synchronized="false"
  16317. static="false" final="false" visibility="public"
  16318. deprecated="not deprecated">
  16319. <param name="other" type="java.lang.Object"/>
  16320. </method>
  16321. <method name="readFields"
  16322. abstract="false" native="false" synchronized="false"
  16323. static="false" final="false" visibility="public"
  16324. deprecated="not deprecated">
  16325. <param name="in" type="java.io.DataInput"/>
  16326. <exception name="IOException" type="java.io.IOException"/>
  16327. </method>
  16328. <method name="write"
  16329. abstract="false" native="false" synchronized="false"
  16330. static="false" final="false" visibility="public"
  16331. deprecated="not deprecated">
  16332. <param name="out" type="java.io.DataOutput"/>
  16333. <exception name="IOException" type="java.io.IOException"/>
  16334. </method>
  16335. <doc>
  16336. <![CDATA[Singleton Writable with no data.]]>
  16337. </doc>
  16338. </class>
  16339. <!-- end class org.apache.hadoop.io.NullWritable -->
  16340. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  16341. <class name="ObjectWritable" extends="java.lang.Object"
  16342. abstract="false"
  16343. static="false" final="false" visibility="public"
  16344. deprecated="not deprecated">
  16345. <implements name="org.apache.hadoop.io.Writable"/>
  16346. <implements name="org.apache.hadoop.conf.Configurable"/>
  16347. <constructor name="ObjectWritable"
  16348. static="false" final="false" visibility="public"
  16349. deprecated="not deprecated">
  16350. </constructor>
  16351. <constructor name="ObjectWritable" type="java.lang.Object"
  16352. static="false" final="false" visibility="public"
  16353. deprecated="not deprecated">
  16354. </constructor>
  16355. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  16356. static="false" final="false" visibility="public"
  16357. deprecated="not deprecated">
  16358. </constructor>
  16359. <method name="get" return="java.lang.Object"
  16360. abstract="false" native="false" synchronized="false"
  16361. static="false" final="false" visibility="public"
  16362. deprecated="not deprecated">
  16363. <doc>
  16364. <![CDATA[Return the instance, or null if none.]]>
  16365. </doc>
  16366. </method>
  16367. <method name="getDeclaredClass" return="java.lang.Class"
  16368. abstract="false" native="false" synchronized="false"
  16369. static="false" final="false" visibility="public"
  16370. deprecated="not deprecated">
  16371. <doc>
  16372. <![CDATA[Return the class this is meant to be.]]>
  16373. </doc>
  16374. </method>
  16375. <method name="set"
  16376. abstract="false" native="false" synchronized="false"
  16377. static="false" final="false" visibility="public"
  16378. deprecated="not deprecated">
  16379. <param name="instance" type="java.lang.Object"/>
  16380. <doc>
  16381. <![CDATA[Reset the instance.]]>
  16382. </doc>
  16383. </method>
  16384. <method name="toString" return="java.lang.String"
  16385. abstract="false" native="false" synchronized="false"
  16386. static="false" final="false" visibility="public"
  16387. deprecated="not deprecated">
  16388. </method>
  16389. <method name="readFields"
  16390. abstract="false" native="false" synchronized="false"
  16391. static="false" final="false" visibility="public"
  16392. deprecated="not deprecated">
  16393. <param name="in" type="java.io.DataInput"/>
  16394. <exception name="IOException" type="java.io.IOException"/>
  16395. </method>
  16396. <method name="write"
  16397. abstract="false" native="false" synchronized="false"
  16398. static="false" final="false" visibility="public"
  16399. deprecated="not deprecated">
  16400. <param name="out" type="java.io.DataOutput"/>
  16401. <exception name="IOException" type="java.io.IOException"/>
  16402. </method>
  16403. <method name="writeObject"
  16404. abstract="false" native="false" synchronized="false"
  16405. static="true" final="false" visibility="public"
  16406. deprecated="not deprecated">
  16407. <param name="out" type="java.io.DataOutput"/>
  16408. <param name="instance" type="java.lang.Object"/>
  16409. <param name="declaredClass" type="java.lang.Class"/>
  16410. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16411. <exception name="IOException" type="java.io.IOException"/>
  16412. <doc>
  16413. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  16414. the preceding.]]>
  16415. </doc>
  16416. </method>
  16417. <method name="writeObject"
  16418. abstract="false" native="false" synchronized="false"
  16419. static="true" final="false" visibility="public"
  16420. deprecated="not deprecated">
  16421. <param name="out" type="java.io.DataOutput"/>
  16422. <param name="instance" type="java.lang.Object"/>
  16423. <param name="declaredClass" type="java.lang.Class"/>
  16424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16425. <param name="allowCompactArrays" type="boolean"/>
  16426. <exception name="IOException" type="java.io.IOException"/>
  16427. <doc>
  16428. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  16429. the preceding.
  16430. @param allowCompactArrays - set true for RPC and internal or intra-cluster
  16431. usages. Set false for inter-cluster, File, and other persisted output
  16432. usages, to preserve the ability to interchange files with other clusters
  16433. that may not be running the same version of software. Sometime in ~2013
  16434. we can consider removing this parameter and always using the compact format.]]>
  16435. </doc>
  16436. </method>
  16437. <method name="readObject" return="java.lang.Object"
  16438. abstract="false" native="false" synchronized="false"
  16439. static="true" final="false" visibility="public"
  16440. deprecated="not deprecated">
  16441. <param name="in" type="java.io.DataInput"/>
  16442. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16443. <exception name="IOException" type="java.io.IOException"/>
  16444. <doc>
  16445. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  16446. the preceding.]]>
  16447. </doc>
  16448. </method>
  16449. <method name="readObject" return="java.lang.Object"
  16450. abstract="false" native="false" synchronized="false"
  16451. static="true" final="false" visibility="public"
  16452. deprecated="not deprecated">
  16453. <param name="in" type="java.io.DataInput"/>
  16454. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  16455. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16456. <exception name="IOException" type="java.io.IOException"/>
  16457. <doc>
  16458. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  16459. the preceding.]]>
  16460. </doc>
  16461. </method>
  16462. <method name="loadClass" return="java.lang.Class"
  16463. abstract="false" native="false" synchronized="false"
  16464. static="true" final="false" visibility="public"
  16465. deprecated="not deprecated">
  16466. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16467. <param name="className" type="java.lang.String"/>
  16468. <doc>
  16469. <![CDATA[Find and load the class with given name <tt>className</tt> by first finding
  16470. it in the specified <tt>conf</tt>. If the specified <tt>conf</tt> is null,
  16471. try load it directly.]]>
  16472. </doc>
  16473. </method>
  16474. <method name="setConf"
  16475. abstract="false" native="false" synchronized="false"
  16476. static="false" final="false" visibility="public"
  16477. deprecated="not deprecated">
  16478. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16479. </method>
  16480. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16481. abstract="false" native="false" synchronized="false"
  16482. static="false" final="false" visibility="public"
  16483. deprecated="not deprecated">
  16484. </method>
  16485. <doc>
  16486. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  16487. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  16488. </doc>
  16489. </class>
  16490. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  16491. <!-- start interface org.apache.hadoop.io.RawComparator -->
  16492. <interface name="RawComparator" abstract="true"
  16493. static="false" final="false" visibility="public"
  16494. deprecated="not deprecated">
  16495. <implements name="java.util.Comparator"/>
  16496. <method name="compare" return="int"
  16497. abstract="true" native="false" synchronized="false"
  16498. static="false" final="false" visibility="public"
  16499. deprecated="not deprecated">
  16500. <param name="b1" type="byte[]"/>
  16501. <param name="s1" type="int"/>
  16502. <param name="l1" type="int"/>
  16503. <param name="b2" type="byte[]"/>
  16504. <param name="s2" type="int"/>
  16505. <param name="l2" type="int"/>
  16506. <doc>
  16507. <![CDATA[Compare two objects in binary.
  16508. b1[s1:l1] is the first object, and b2[s2:l2] is the second object.
  16509. @param b1 The first byte array.
  16510. @param s1 The position index in b1. The object under comparison's starting index.
  16511. @param l1 The length of the object in b1.
  16512. @param b2 The second byte array.
  16513. @param s2 The position index in b2. The object under comparison's starting index.
  16514. @param l2 The length of the object under comparison in b2.
  16515. @return An integer result of the comparison.]]>
  16516. </doc>
  16517. </method>
  16518. <doc>
  16519. <![CDATA[<p>
  16520. A {@link Comparator} that operates directly on byte representations of
  16521. objects.
  16522. </p>
  16523. @param <T>
  16524. @see DeserializerComparator]]>
  16525. </doc>
  16526. </interface>
  16527. <!-- end interface org.apache.hadoop.io.RawComparator -->
  16528. <!-- start class org.apache.hadoop.io.SequenceFile -->
  16529. <class name="SequenceFile" extends="java.lang.Object"
  16530. abstract="false"
  16531. static="false" final="false" visibility="public"
  16532. deprecated="not deprecated">
  16533. <method name="getDefaultCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  16534. abstract="false" native="false" synchronized="false"
  16535. static="true" final="false" visibility="public"
  16536. deprecated="not deprecated">
  16537. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  16538. <doc>
  16539. <![CDATA[Get the compression type for the reduce outputs
  16540. @param job the job config to look in
  16541. @return the kind of compression to use]]>
  16542. </doc>
  16543. </method>
  16544. <method name="setDefaultCompressionType"
  16545. abstract="false" native="false" synchronized="false"
  16546. static="true" final="false" visibility="public"
  16547. deprecated="not deprecated">
  16548. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  16549. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16550. <doc>
  16551. <![CDATA[Set the default compression type for sequence files.
  16552. @param job the configuration to modify
  16553. @param val the new compression type (none, block, record)]]>
  16554. </doc>
  16555. </method>
  16556. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16557. abstract="false" native="false" synchronized="false"
  16558. static="true" final="false" visibility="public"
  16559. deprecated="not deprecated">
  16560. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16561. <param name="opts" type="org.apache.hadoop.io.SequenceFile.Writer.Option[]"/>
  16562. <exception name="IOException" type="java.io.IOException"/>
  16563. <doc>
  16564. <![CDATA[Create a new Writer with the given options.
  16565. @param conf the configuration to use
  16566. @param opts the options to create the file with
  16567. @return a new Writer
  16568. @throws IOException]]>
  16569. </doc>
  16570. </method>
  16571. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16572. abstract="false" native="false" synchronized="false"
  16573. static="true" final="false" visibility="public"
  16574. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16575. instead.">
  16576. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16578. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16579. <param name="keyClass" type="java.lang.Class"/>
  16580. <param name="valClass" type="java.lang.Class"/>
  16581. <exception name="IOException" type="java.io.IOException"/>
  16582. <doc>
  16583. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16584. @param fs The configured filesystem.
  16585. @param conf The configuration.
  16586. @param name The name of the file.
  16587. @param keyClass The 'key' type.
  16588. @param valClass The 'value' type.
  16589. @return Returns the handle to the constructed SequenceFile Writer.
  16590. @throws IOException
  16591. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16592. instead.]]>
  16593. </doc>
  16594. </method>
  16595. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16596. abstract="false" native="false" synchronized="false"
  16597. static="true" final="false" visibility="public"
  16598. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16599. instead.">
  16600. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16602. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16603. <param name="keyClass" type="java.lang.Class"/>
  16604. <param name="valClass" type="java.lang.Class"/>
  16605. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16606. <exception name="IOException" type="java.io.IOException"/>
  16607. <doc>
  16608. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16609. @param fs The configured filesystem.
  16610. @param conf The configuration.
  16611. @param name The name of the file.
  16612. @param keyClass The 'key' type.
  16613. @param valClass The 'value' type.
  16614. @param compressionType The compression type.
  16615. @return Returns the handle to the constructed SequenceFile Writer.
  16616. @throws IOException
  16617. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16618. instead.]]>
  16619. </doc>
  16620. </method>
  16621. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16622. abstract="false" native="false" synchronized="false"
  16623. static="true" final="false" visibility="public"
  16624. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16625. instead.">
  16626. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16627. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16628. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16629. <param name="keyClass" type="java.lang.Class"/>
  16630. <param name="valClass" type="java.lang.Class"/>
  16631. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16632. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16633. <exception name="IOException" type="java.io.IOException"/>
  16634. <doc>
  16635. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16636. @param fs The configured filesystem.
  16637. @param conf The configuration.
  16638. @param name The name of the file.
  16639. @param keyClass The 'key' type.
  16640. @param valClass The 'value' type.
  16641. @param compressionType The compression type.
  16642. @param progress The Progressable object to track progress.
  16643. @return Returns the handle to the constructed SequenceFile Writer.
  16644. @throws IOException
  16645. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16646. instead.]]>
  16647. </doc>
  16648. </method>
  16649. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16650. abstract="false" native="false" synchronized="false"
  16651. static="true" final="false" visibility="public"
  16652. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16653. instead.">
  16654. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16655. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16656. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16657. <param name="keyClass" type="java.lang.Class"/>
  16658. <param name="valClass" type="java.lang.Class"/>
  16659. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16660. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16661. <exception name="IOException" type="java.io.IOException"/>
  16662. <doc>
  16663. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16664. @param fs The configured filesystem.
  16665. @param conf The configuration.
  16666. @param name The name of the file.
  16667. @param keyClass The 'key' type.
  16668. @param valClass The 'value' type.
  16669. @param compressionType The compression type.
  16670. @param codec The compression codec.
  16671. @return Returns the handle to the constructed SequenceFile Writer.
  16672. @throws IOException
  16673. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16674. instead.]]>
  16675. </doc>
  16676. </method>
  16677. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16678. abstract="false" native="false" synchronized="false"
  16679. static="true" final="false" visibility="public"
  16680. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16681. instead.">
  16682. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16683. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16684. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16685. <param name="keyClass" type="java.lang.Class"/>
  16686. <param name="valClass" type="java.lang.Class"/>
  16687. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16688. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16689. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16690. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16691. <exception name="IOException" type="java.io.IOException"/>
  16692. <doc>
  16693. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16694. @param fs The configured filesystem.
  16695. @param conf The configuration.
  16696. @param name The name of the file.
  16697. @param keyClass The 'key' type.
  16698. @param valClass The 'value' type.
  16699. @param compressionType The compression type.
  16700. @param codec The compression codec.
  16701. @param progress The Progressable object to track progress.
  16702. @param metadata The metadata of the file.
  16703. @return Returns the handle to the constructed SequenceFile Writer.
  16704. @throws IOException
  16705. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16706. instead.]]>
  16707. </doc>
  16708. </method>
  16709. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16710. abstract="false" native="false" synchronized="false"
  16711. static="true" final="false" visibility="public"
  16712. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16713. instead.">
  16714. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16715. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16716. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16717. <param name="keyClass" type="java.lang.Class"/>
  16718. <param name="valClass" type="java.lang.Class"/>
  16719. <param name="bufferSize" type="int"/>
  16720. <param name="replication" type="short"/>
  16721. <param name="blockSize" type="long"/>
  16722. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16723. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16724. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16725. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16726. <exception name="IOException" type="java.io.IOException"/>
  16727. <doc>
  16728. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16729. @param fs The configured filesystem.
  16730. @param conf The configuration.
  16731. @param name The name of the file.
  16732. @param keyClass The 'key' type.
  16733. @param valClass The 'value' type.
  16734. @param bufferSize buffer size for the underlaying outputstream.
  16735. @param replication replication factor for the file.
  16736. @param blockSize block size for the file.
  16737. @param compressionType The compression type.
  16738. @param codec The compression codec.
  16739. @param progress The Progressable object to track progress.
  16740. @param metadata The metadata of the file.
  16741. @return Returns the handle to the constructed SequenceFile Writer.
  16742. @throws IOException
  16743. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16744. instead.]]>
  16745. </doc>
  16746. </method>
  16747. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16748. abstract="false" native="false" synchronized="false"
  16749. static="true" final="false" visibility="public"
  16750. deprecated="not deprecated">
  16751. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16752. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16753. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16754. <param name="keyClass" type="java.lang.Class"/>
  16755. <param name="valClass" type="java.lang.Class"/>
  16756. <param name="bufferSize" type="int"/>
  16757. <param name="replication" type="short"/>
  16758. <param name="blockSize" type="long"/>
  16759. <param name="createParent" type="boolean"/>
  16760. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16761. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16762. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16763. <exception name="IOException" type="java.io.IOException"/>
  16764. <doc>
  16765. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16766. @param fs The configured filesystem.
  16767. @param conf The configuration.
  16768. @param name The name of the file.
  16769. @param keyClass The 'key' type.
  16770. @param valClass The 'value' type.
  16771. @param bufferSize buffer size for the underlaying outputstream.
  16772. @param replication replication factor for the file.
  16773. @param blockSize block size for the file.
  16774. @param createParent create parent directory if non-existent
  16775. @param compressionType The compression type.
  16776. @param codec The compression codec.
  16777. @param metadata The metadata of the file.
  16778. @return Returns the handle to the constructed SequenceFile Writer.
  16779. @throws IOException]]>
  16780. </doc>
  16781. </method>
  16782. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16783. abstract="false" native="false" synchronized="false"
  16784. static="true" final="false" visibility="public"
  16785. deprecated="not deprecated">
  16786. <param name="fc" type="org.apache.hadoop.fs.FileContext"/>
  16787. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16788. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16789. <param name="keyClass" type="java.lang.Class"/>
  16790. <param name="valClass" type="java.lang.Class"/>
  16791. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16792. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16793. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16794. <param name="createFlag" type="java.util.EnumSet"/>
  16795. <param name="opts" type="org.apache.hadoop.fs.Options.CreateOpts[]"/>
  16796. <exception name="IOException" type="java.io.IOException"/>
  16797. <doc>
  16798. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16799. @param fc The context for the specified file.
  16800. @param conf The configuration.
  16801. @param name The name of the file.
  16802. @param keyClass The 'key' type.
  16803. @param valClass The 'value' type.
  16804. @param compressionType The compression type.
  16805. @param codec The compression codec.
  16806. @param metadata The metadata of the file.
  16807. @param createFlag gives the semantics of create: overwrite, append etc.
  16808. @param opts file creation options; see {@link CreateOpts}.
  16809. @return Returns the handle to the constructed SequenceFile Writer.
  16810. @throws IOException]]>
  16811. </doc>
  16812. </method>
  16813. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16814. abstract="false" native="false" synchronized="false"
  16815. static="true" final="false" visibility="public"
  16816. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16817. instead.">
  16818. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16819. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16820. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16821. <param name="keyClass" type="java.lang.Class"/>
  16822. <param name="valClass" type="java.lang.Class"/>
  16823. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16824. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16825. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16826. <exception name="IOException" type="java.io.IOException"/>
  16827. <doc>
  16828. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16829. @param fs The configured filesystem.
  16830. @param conf The configuration.
  16831. @param name The name of the file.
  16832. @param keyClass The 'key' type.
  16833. @param valClass The 'value' type.
  16834. @param compressionType The compression type.
  16835. @param codec The compression codec.
  16836. @param progress The Progressable object to track progress.
  16837. @return Returns the handle to the constructed SequenceFile Writer.
  16838. @throws IOException
  16839. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16840. instead.]]>
  16841. </doc>
  16842. </method>
  16843. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16844. abstract="false" native="false" synchronized="false"
  16845. static="true" final="false" visibility="public"
  16846. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16847. instead.">
  16848. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16849. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  16850. <param name="keyClass" type="java.lang.Class"/>
  16851. <param name="valClass" type="java.lang.Class"/>
  16852. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16853. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16854. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16855. <exception name="IOException" type="java.io.IOException"/>
  16856. <doc>
  16857. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  16858. @param conf The configuration.
  16859. @param out The stream on top which the writer is to be constructed.
  16860. @param keyClass The 'key' type.
  16861. @param valClass The 'value' type.
  16862. @param compressionType The compression type.
  16863. @param codec The compression codec.
  16864. @param metadata The metadata of the file.
  16865. @return Returns the handle to the constructed SequenceFile Writer.
  16866. @throws IOException
  16867. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16868. instead.]]>
  16869. </doc>
  16870. </method>
  16871. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16872. abstract="false" native="false" synchronized="false"
  16873. static="true" final="false" visibility="public"
  16874. deprecated="Use {@link #createWriter(Configuration, Writer.Option...)}
  16875. instead.">
  16876. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16877. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  16878. <param name="keyClass" type="java.lang.Class"/>
  16879. <param name="valClass" type="java.lang.Class"/>
  16880. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16881. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16882. <exception name="IOException" type="java.io.IOException"/>
  16883. <doc>
  16884. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  16885. @param conf The configuration.
  16886. @param out The stream on top which the writer is to be constructed.
  16887. @param keyClass The 'key' type.
  16888. @param valClass The 'value' type.
  16889. @param compressionType The compression type.
  16890. @param codec The compression codec.
  16891. @return Returns the handle to the constructed SequenceFile Writer.
  16892. @throws IOException
  16893. @deprecated Use {@link #createWriter(Configuration, Writer.Option...)}
  16894. instead.]]>
  16895. </doc>
  16896. </method>
  16897. <field name="SYNC_INTERVAL" type="int"
  16898. transient="false" volatile="false"
  16899. static="true" final="true" visibility="public"
  16900. deprecated="not deprecated">
  16901. <doc>
  16902. <![CDATA[The number of bytes between sync points.]]>
  16903. </doc>
  16904. </field>
  16905. <doc>
  16906. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  16907. pairs.
  16908. <p><code>SequenceFile</code> provides {@link SequenceFile.Writer},
  16909. {@link SequenceFile.Reader} and {@link Sorter} classes for writing,
  16910. reading and sorting respectively.</p>
  16911. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  16912. {@link CompressionType} used to compress key/value pairs:
  16913. <ol>
  16914. <li>
  16915. <code>Writer</code> : Uncompressed records.
  16916. </li>
  16917. <li>
  16918. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  16919. values.
  16920. </li>
  16921. <li>
  16922. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  16923. values are collected in 'blocks'
  16924. separately and compressed. The size of
  16925. the 'block' is configurable.
  16926. </ol>
  16927. <p>The actual compression algorithm used to compress key and/or values can be
  16928. specified by using the appropriate {@link CompressionCodec}.</p>
  16929. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  16930. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  16931. <p>The {@link SequenceFile.Reader} acts as the bridge and can read any of the
  16932. above <code>SequenceFile</code> formats.</p>
  16933. <h4 id="Formats">SequenceFile Formats</h4>
  16934. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  16935. depending on the <code>CompressionType</code> specified. All of them share a
  16936. <a href="#Header">common header</a> described below.
  16937. <h5 id="Header">SequenceFile Header</h5>
  16938. <ul>
  16939. <li>
  16940. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  16941. version number (e.g. SEQ4 or SEQ6)
  16942. </li>
  16943. <li>
  16944. keyClassName -key class
  16945. </li>
  16946. <li>
  16947. valueClassName - value class
  16948. </li>
  16949. <li>
  16950. compression - A boolean which specifies if compression is turned on for
  16951. keys/values in this file.
  16952. </li>
  16953. <li>
  16954. blockCompression - A boolean which specifies if block-compression is
  16955. turned on for keys/values in this file.
  16956. </li>
  16957. <li>
  16958. compression codec - <code>CompressionCodec</code> class which is used for
  16959. compression of keys and/or values (if compression is
  16960. enabled).
  16961. </li>
  16962. <li>
  16963. metadata - {@link Metadata} for this file.
  16964. </li>
  16965. <li>
  16966. sync - A sync marker to denote end of the header.
  16967. </li>
  16968. </ul>
  16969. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  16970. <ul>
  16971. <li>
  16972. <a href="#Header">Header</a>
  16973. </li>
  16974. <li>
  16975. Record
  16976. <ul>
  16977. <li>Record length</li>
  16978. <li>Key length</li>
  16979. <li>Key</li>
  16980. <li>Value</li>
  16981. </ul>
  16982. </li>
  16983. <li>
  16984. A sync-marker every few <code>100</code> bytes or so.
  16985. </li>
  16986. </ul>
  16987. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  16988. <ul>
  16989. <li>
  16990. <a href="#Header">Header</a>
  16991. </li>
  16992. <li>
  16993. Record
  16994. <ul>
  16995. <li>Record length</li>
  16996. <li>Key length</li>
  16997. <li>Key</li>
  16998. <li><i>Compressed</i> Value</li>
  16999. </ul>
  17000. </li>
  17001. <li>
  17002. A sync-marker every few <code>100</code> bytes or so.
  17003. </li>
  17004. </ul>
  17005. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  17006. <ul>
  17007. <li>
  17008. <a href="#Header">Header</a>
  17009. </li>
  17010. <li>
  17011. Record <i>Block</i>
  17012. <ul>
  17013. <li>Uncompressed number of records in the block</li>
  17014. <li>Compressed key-lengths block-size</li>
  17015. <li>Compressed key-lengths block</li>
  17016. <li>Compressed keys block-size</li>
  17017. <li>Compressed keys block</li>
  17018. <li>Compressed value-lengths block-size</li>
  17019. <li>Compressed value-lengths block</li>
  17020. <li>Compressed values block-size</li>
  17021. <li>Compressed values block</li>
  17022. </ul>
  17023. </li>
  17024. <li>
  17025. A sync-marker every block.
  17026. </li>
  17027. </ul>
  17028. <p>The compressed blocks of key lengths and value lengths consist of the
  17029. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  17030. format.</p>
  17031. @see CompressionCodec]]>
  17032. </doc>
  17033. </class>
  17034. <!-- end class org.apache.hadoop.io.SequenceFile -->
  17035. <!-- start class org.apache.hadoop.io.SetFile -->
  17036. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  17037. abstract="false"
  17038. static="false" final="false" visibility="public"
  17039. deprecated="not deprecated">
  17040. <constructor name="SetFile"
  17041. static="false" final="false" visibility="protected"
  17042. deprecated="not deprecated">
  17043. </constructor>
  17044. <doc>
  17045. <![CDATA[A file-based set of keys.]]>
  17046. </doc>
  17047. </class>
  17048. <!-- end class org.apache.hadoop.io.SetFile -->
  17049. <!-- start class org.apache.hadoop.io.ShortWritable -->
  17050. <class name="ShortWritable" extends="java.lang.Object"
  17051. abstract="false"
  17052. static="false" final="false" visibility="public"
  17053. deprecated="not deprecated">
  17054. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17055. <constructor name="ShortWritable"
  17056. static="false" final="false" visibility="public"
  17057. deprecated="not deprecated">
  17058. </constructor>
  17059. <constructor name="ShortWritable" type="short"
  17060. static="false" final="false" visibility="public"
  17061. deprecated="not deprecated">
  17062. </constructor>
  17063. <method name="set"
  17064. abstract="false" native="false" synchronized="false"
  17065. static="false" final="false" visibility="public"
  17066. deprecated="not deprecated">
  17067. <param name="value" type="short"/>
  17068. <doc>
  17069. <![CDATA[Set the value of this ShortWritable.]]>
  17070. </doc>
  17071. </method>
  17072. <method name="get" return="short"
  17073. abstract="false" native="false" synchronized="false"
  17074. static="false" final="false" visibility="public"
  17075. deprecated="not deprecated">
  17076. <doc>
  17077. <![CDATA[Return the value of this ShortWritable.]]>
  17078. </doc>
  17079. </method>
  17080. <method name="readFields"
  17081. abstract="false" native="false" synchronized="false"
  17082. static="false" final="false" visibility="public"
  17083. deprecated="not deprecated">
  17084. <param name="in" type="java.io.DataInput"/>
  17085. <exception name="IOException" type="java.io.IOException"/>
  17086. <doc>
  17087. <![CDATA[read the short value]]>
  17088. </doc>
  17089. </method>
  17090. <method name="write"
  17091. abstract="false" native="false" synchronized="false"
  17092. static="false" final="false" visibility="public"
  17093. deprecated="not deprecated">
  17094. <param name="out" type="java.io.DataOutput"/>
  17095. <exception name="IOException" type="java.io.IOException"/>
  17096. <doc>
  17097. <![CDATA[write short value]]>
  17098. </doc>
  17099. </method>
  17100. <method name="equals" return="boolean"
  17101. abstract="false" native="false" synchronized="false"
  17102. static="false" final="false" visibility="public"
  17103. deprecated="not deprecated">
  17104. <param name="o" type="java.lang.Object"/>
  17105. <doc>
  17106. <![CDATA[Returns true iff <code>o</code> is a ShortWritable with the same value.]]>
  17107. </doc>
  17108. </method>
  17109. <method name="hashCode" return="int"
  17110. abstract="false" native="false" synchronized="false"
  17111. static="false" final="false" visibility="public"
  17112. deprecated="not deprecated">
  17113. <doc>
  17114. <![CDATA[hash code]]>
  17115. </doc>
  17116. </method>
  17117. <method name="compareTo" return="int"
  17118. abstract="false" native="false" synchronized="false"
  17119. static="false" final="false" visibility="public"
  17120. deprecated="not deprecated">
  17121. <param name="o" type="org.apache.hadoop.io.ShortWritable"/>
  17122. <doc>
  17123. <![CDATA[Compares two ShortWritable.]]>
  17124. </doc>
  17125. </method>
  17126. <method name="toString" return="java.lang.String"
  17127. abstract="false" native="false" synchronized="false"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. <doc>
  17131. <![CDATA[Short values in string format]]>
  17132. </doc>
  17133. </method>
  17134. <doc>
  17135. <![CDATA[A WritableComparable for shorts.]]>
  17136. </doc>
  17137. </class>
  17138. <!-- end class org.apache.hadoop.io.ShortWritable -->
  17139. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  17140. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  17141. abstract="false"
  17142. static="false" final="false" visibility="public"
  17143. deprecated="not deprecated">
  17144. <implements name="java.util.SortedMap"/>
  17145. <constructor name="SortedMapWritable"
  17146. static="false" final="false" visibility="public"
  17147. deprecated="not deprecated">
  17148. <doc>
  17149. <![CDATA[default constructor.]]>
  17150. </doc>
  17151. </constructor>
  17152. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  17153. static="false" final="false" visibility="public"
  17154. deprecated="not deprecated">
  17155. <doc>
  17156. <![CDATA[Copy constructor.
  17157. @param other the map to copy from]]>
  17158. </doc>
  17159. </constructor>
  17160. <method name="comparator" return="java.util.Comparator"
  17161. abstract="false" native="false" synchronized="false"
  17162. static="false" final="false" visibility="public"
  17163. deprecated="not deprecated">
  17164. </method>
  17165. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  17166. abstract="false" native="false" synchronized="false"
  17167. static="false" final="false" visibility="public"
  17168. deprecated="not deprecated">
  17169. </method>
  17170. <method name="headMap" return="java.util.SortedMap"
  17171. abstract="false" native="false" synchronized="false"
  17172. static="false" final="false" visibility="public"
  17173. deprecated="not deprecated">
  17174. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  17175. </method>
  17176. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  17177. abstract="false" native="false" synchronized="false"
  17178. static="false" final="false" visibility="public"
  17179. deprecated="not deprecated">
  17180. </method>
  17181. <method name="subMap" return="java.util.SortedMap"
  17182. abstract="false" native="false" synchronized="false"
  17183. static="false" final="false" visibility="public"
  17184. deprecated="not deprecated">
  17185. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  17186. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  17187. </method>
  17188. <method name="tailMap" return="java.util.SortedMap"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  17193. </method>
  17194. <method name="clear"
  17195. abstract="false" native="false" synchronized="false"
  17196. static="false" final="false" visibility="public"
  17197. deprecated="not deprecated">
  17198. </method>
  17199. <method name="containsKey" return="boolean"
  17200. abstract="false" native="false" synchronized="false"
  17201. static="false" final="false" visibility="public"
  17202. deprecated="not deprecated">
  17203. <param name="key" type="java.lang.Object"/>
  17204. </method>
  17205. <method name="containsValue" return="boolean"
  17206. abstract="false" native="false" synchronized="false"
  17207. static="false" final="false" visibility="public"
  17208. deprecated="not deprecated">
  17209. <param name="value" type="java.lang.Object"/>
  17210. </method>
  17211. <method name="entrySet" return="java.util.Set"
  17212. abstract="false" native="false" synchronized="false"
  17213. static="false" final="false" visibility="public"
  17214. deprecated="not deprecated">
  17215. </method>
  17216. <method name="get" return="org.apache.hadoop.io.Writable"
  17217. abstract="false" native="false" synchronized="false"
  17218. static="false" final="false" visibility="public"
  17219. deprecated="not deprecated">
  17220. <param name="key" type="java.lang.Object"/>
  17221. </method>
  17222. <method name="isEmpty" return="boolean"
  17223. abstract="false" native="false" synchronized="false"
  17224. static="false" final="false" visibility="public"
  17225. deprecated="not deprecated">
  17226. </method>
  17227. <method name="keySet" return="java.util.Set"
  17228. abstract="false" native="false" synchronized="false"
  17229. static="false" final="false" visibility="public"
  17230. deprecated="not deprecated">
  17231. </method>
  17232. <method name="put" return="org.apache.hadoop.io.Writable"
  17233. abstract="false" native="false" synchronized="false"
  17234. static="false" final="false" visibility="public"
  17235. deprecated="not deprecated">
  17236. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  17237. <param name="value" type="org.apache.hadoop.io.Writable"/>
  17238. </method>
  17239. <method name="putAll"
  17240. abstract="false" native="false" synchronized="false"
  17241. static="false" final="false" visibility="public"
  17242. deprecated="not deprecated">
  17243. <param name="t" type="java.util.Map"/>
  17244. </method>
  17245. <method name="remove" return="org.apache.hadoop.io.Writable"
  17246. abstract="false" native="false" synchronized="false"
  17247. static="false" final="false" visibility="public"
  17248. deprecated="not deprecated">
  17249. <param name="key" type="java.lang.Object"/>
  17250. </method>
  17251. <method name="size" return="int"
  17252. abstract="false" native="false" synchronized="false"
  17253. static="false" final="false" visibility="public"
  17254. deprecated="not deprecated">
  17255. </method>
  17256. <method name="values" return="java.util.Collection"
  17257. abstract="false" native="false" synchronized="false"
  17258. static="false" final="false" visibility="public"
  17259. deprecated="not deprecated">
  17260. </method>
  17261. <method name="readFields"
  17262. abstract="false" native="false" synchronized="false"
  17263. static="false" final="false" visibility="public"
  17264. deprecated="not deprecated">
  17265. <param name="in" type="java.io.DataInput"/>
  17266. <exception name="IOException" type="java.io.IOException"/>
  17267. </method>
  17268. <method name="write"
  17269. abstract="false" native="false" synchronized="false"
  17270. static="false" final="false" visibility="public"
  17271. deprecated="not deprecated">
  17272. <param name="out" type="java.io.DataOutput"/>
  17273. <exception name="IOException" type="java.io.IOException"/>
  17274. </method>
  17275. <method name="equals" return="boolean"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. <param name="obj" type="java.lang.Object"/>
  17280. </method>
  17281. <method name="hashCode" return="int"
  17282. abstract="false" native="false" synchronized="false"
  17283. static="false" final="false" visibility="public"
  17284. deprecated="not deprecated">
  17285. </method>
  17286. <doc>
  17287. <![CDATA[A Writable SortedMap.]]>
  17288. </doc>
  17289. </class>
  17290. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  17291. <!-- start interface org.apache.hadoop.io.Stringifier -->
  17292. <interface name="Stringifier" abstract="true"
  17293. static="false" final="false" visibility="public"
  17294. deprecated="not deprecated">
  17295. <implements name="java.io.Closeable"/>
  17296. <method name="toString" return="java.lang.String"
  17297. abstract="true" native="false" synchronized="false"
  17298. static="false" final="false" visibility="public"
  17299. deprecated="not deprecated">
  17300. <param name="obj" type="T"/>
  17301. <exception name="IOException" type="java.io.IOException"/>
  17302. <doc>
  17303. <![CDATA[Converts the object to a string representation
  17304. @param obj the object to convert
  17305. @return the string representation of the object
  17306. @throws IOException if the object cannot be converted]]>
  17307. </doc>
  17308. </method>
  17309. <method name="fromString" return="T"
  17310. abstract="true" native="false" synchronized="false"
  17311. static="false" final="false" visibility="public"
  17312. deprecated="not deprecated">
  17313. <param name="str" type="java.lang.String"/>
  17314. <exception name="IOException" type="java.io.IOException"/>
  17315. <doc>
  17316. <![CDATA[Restores the object from its string representation.
  17317. @param str the string representation of the object
  17318. @return restored object
  17319. @throws IOException if the object cannot be restored]]>
  17320. </doc>
  17321. </method>
  17322. <method name="close"
  17323. abstract="true" native="false" synchronized="false"
  17324. static="false" final="false" visibility="public"
  17325. deprecated="not deprecated">
  17326. <exception name="IOException" type="java.io.IOException"/>
  17327. <doc>
  17328. <![CDATA[Closes this object.
  17329. @throws IOException if an I/O error occurs]]>
  17330. </doc>
  17331. </method>
  17332. <doc>
  17333. <![CDATA[Stringifier interface offers two methods to convert an object
  17334. to a string representation and restore the object given its
  17335. string representation.
  17336. @param <T> the class of the objects to stringify]]>
  17337. </doc>
  17338. </interface>
  17339. <!-- end interface org.apache.hadoop.io.Stringifier -->
  17340. <!-- start class org.apache.hadoop.io.Text -->
  17341. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  17342. abstract="false"
  17343. static="false" final="false" visibility="public"
  17344. deprecated="not deprecated">
  17345. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17346. <constructor name="Text"
  17347. static="false" final="false" visibility="public"
  17348. deprecated="not deprecated">
  17349. </constructor>
  17350. <constructor name="Text" type="java.lang.String"
  17351. static="false" final="false" visibility="public"
  17352. deprecated="not deprecated">
  17353. <doc>
  17354. <![CDATA[Construct from a string.]]>
  17355. </doc>
  17356. </constructor>
  17357. <constructor name="Text" type="org.apache.hadoop.io.Text"
  17358. static="false" final="false" visibility="public"
  17359. deprecated="not deprecated">
  17360. <doc>
  17361. <![CDATA[Construct from another text.]]>
  17362. </doc>
  17363. </constructor>
  17364. <constructor name="Text" type="byte[]"
  17365. static="false" final="false" visibility="public"
  17366. deprecated="not deprecated">
  17367. <doc>
  17368. <![CDATA[Construct from a byte array.]]>
  17369. </doc>
  17370. </constructor>
  17371. <method name="copyBytes" return="byte[]"
  17372. abstract="false" native="false" synchronized="false"
  17373. static="false" final="false" visibility="public"
  17374. deprecated="not deprecated">
  17375. <doc>
  17376. <![CDATA[Get a copy of the bytes that is exactly the length of the data.
  17377. See {@link #getBytes()} for faster access to the underlying array.]]>
  17378. </doc>
  17379. </method>
  17380. <method name="getBytes" return="byte[]"
  17381. abstract="false" native="false" synchronized="false"
  17382. static="false" final="false" visibility="public"
  17383. deprecated="not deprecated">
  17384. <doc>
  17385. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  17386. valid. Please use {@link #copyBytes()} if you
  17387. need the returned array to be precisely the length of the data.]]>
  17388. </doc>
  17389. </method>
  17390. <method name="getLength" return="int"
  17391. abstract="false" native="false" synchronized="false"
  17392. static="false" final="false" visibility="public"
  17393. deprecated="not deprecated">
  17394. <doc>
  17395. <![CDATA[Returns the number of bytes in the byte array]]>
  17396. </doc>
  17397. </method>
  17398. <method name="charAt" return="int"
  17399. abstract="false" native="false" synchronized="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. <param name="position" type="int"/>
  17403. <doc>
  17404. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  17405. for the character at <code>position</code>. Note that this
  17406. method avoids using the converter or doing String instantiation
  17407. @return the Unicode scalar value at position or -1
  17408. if the position is invalid or points to a
  17409. trailing byte]]>
  17410. </doc>
  17411. </method>
  17412. <method name="find" return="int"
  17413. abstract="false" native="false" synchronized="false"
  17414. static="false" final="false" visibility="public"
  17415. deprecated="not deprecated">
  17416. <param name="what" type="java.lang.String"/>
  17417. </method>
  17418. <method name="find" return="int"
  17419. abstract="false" native="false" synchronized="false"
  17420. static="false" final="false" visibility="public"
  17421. deprecated="not deprecated">
  17422. <param name="what" type="java.lang.String"/>
  17423. <param name="start" type="int"/>
  17424. <doc>
  17425. <![CDATA[Finds any occurence of <code>what</code> in the backing
  17426. buffer, starting as position <code>start</code>. The starting
  17427. position is measured in bytes and the return value is in
  17428. terms of byte position in the buffer. The backing buffer is
  17429. not converted to a string for this operation.
  17430. @return byte position of the first occurence of the search
  17431. string in the UTF-8 buffer or -1 if not found]]>
  17432. </doc>
  17433. </method>
  17434. <method name="set"
  17435. abstract="false" native="false" synchronized="false"
  17436. static="false" final="false" visibility="public"
  17437. deprecated="not deprecated">
  17438. <param name="string" type="java.lang.String"/>
  17439. <doc>
  17440. <![CDATA[Set to contain the contents of a string.]]>
  17441. </doc>
  17442. </method>
  17443. <method name="set"
  17444. abstract="false" native="false" synchronized="false"
  17445. static="false" final="false" visibility="public"
  17446. deprecated="not deprecated">
  17447. <param name="utf8" type="byte[]"/>
  17448. <doc>
  17449. <![CDATA[Set to a utf8 byte array]]>
  17450. </doc>
  17451. </method>
  17452. <method name="set"
  17453. abstract="false" native="false" synchronized="false"
  17454. static="false" final="false" visibility="public"
  17455. deprecated="not deprecated">
  17456. <param name="other" type="org.apache.hadoop.io.Text"/>
  17457. <doc>
  17458. <![CDATA[copy a text.]]>
  17459. </doc>
  17460. </method>
  17461. <method name="set"
  17462. abstract="false" native="false" synchronized="false"
  17463. static="false" final="false" visibility="public"
  17464. deprecated="not deprecated">
  17465. <param name="utf8" type="byte[]"/>
  17466. <param name="start" type="int"/>
  17467. <param name="len" type="int"/>
  17468. <doc>
  17469. <![CDATA[Set the Text to range of bytes
  17470. @param utf8 the data to copy from
  17471. @param start the first position of the new string
  17472. @param len the number of bytes of the new string]]>
  17473. </doc>
  17474. </method>
  17475. <method name="append"
  17476. abstract="false" native="false" synchronized="false"
  17477. static="false" final="false" visibility="public"
  17478. deprecated="not deprecated">
  17479. <param name="utf8" type="byte[]"/>
  17480. <param name="start" type="int"/>
  17481. <param name="len" type="int"/>
  17482. <doc>
  17483. <![CDATA[Append a range of bytes to the end of the given text
  17484. @param utf8 the data to copy from
  17485. @param start the first position to append from utf8
  17486. @param len the number of bytes to append]]>
  17487. </doc>
  17488. </method>
  17489. <method name="clear"
  17490. abstract="false" native="false" synchronized="false"
  17491. static="false" final="false" visibility="public"
  17492. deprecated="not deprecated">
  17493. <doc>
  17494. <![CDATA[Clear the string to empty.
  17495. <em>Note</em>: For performance reasons, this call does not clear the
  17496. underlying byte array that is retrievable via {@link #getBytes()}.
  17497. In order to free the byte-array memory, call {@link #set(byte[])}
  17498. with an empty byte array (For example, <code>new byte[0]</code>).]]>
  17499. </doc>
  17500. </method>
  17501. <method name="toString" return="java.lang.String"
  17502. abstract="false" native="false" synchronized="false"
  17503. static="false" final="false" visibility="public"
  17504. deprecated="not deprecated">
  17505. <doc>
  17506. <![CDATA[Convert text back to string
  17507. @see java.lang.Object#toString()]]>
  17508. </doc>
  17509. </method>
  17510. <method name="readFields"
  17511. abstract="false" native="false" synchronized="false"
  17512. static="false" final="false" visibility="public"
  17513. deprecated="not deprecated">
  17514. <param name="in" type="java.io.DataInput"/>
  17515. <exception name="IOException" type="java.io.IOException"/>
  17516. <doc>
  17517. <![CDATA[deserialize]]>
  17518. </doc>
  17519. </method>
  17520. <method name="readFields"
  17521. abstract="false" native="false" synchronized="false"
  17522. static="false" final="false" visibility="public"
  17523. deprecated="not deprecated">
  17524. <param name="in" type="java.io.DataInput"/>
  17525. <param name="maxLength" type="int"/>
  17526. <exception name="IOException" type="java.io.IOException"/>
  17527. </method>
  17528. <method name="skip"
  17529. abstract="false" native="false" synchronized="false"
  17530. static="true" final="false" visibility="public"
  17531. deprecated="not deprecated">
  17532. <param name="in" type="java.io.DataInput"/>
  17533. <exception name="IOException" type="java.io.IOException"/>
  17534. <doc>
  17535. <![CDATA[Skips over one Text in the input.]]>
  17536. </doc>
  17537. </method>
  17538. <method name="readWithKnownLength"
  17539. abstract="false" native="false" synchronized="false"
  17540. static="false" final="false" visibility="public"
  17541. deprecated="not deprecated">
  17542. <param name="in" type="java.io.DataInput"/>
  17543. <param name="len" type="int"/>
  17544. <exception name="IOException" type="java.io.IOException"/>
  17545. <doc>
  17546. <![CDATA[Read a Text object whose length is already known.
  17547. This allows creating Text from a stream which uses a different serialization
  17548. format.]]>
  17549. </doc>
  17550. </method>
  17551. <method name="write"
  17552. abstract="false" native="false" synchronized="false"
  17553. static="false" final="false" visibility="public"
  17554. deprecated="not deprecated">
  17555. <param name="out" type="java.io.DataOutput"/>
  17556. <exception name="IOException" type="java.io.IOException"/>
  17557. <doc>
  17558. <![CDATA[serialize
  17559. write this object to out
  17560. length uses zero-compressed encoding
  17561. @see Writable#write(DataOutput)]]>
  17562. </doc>
  17563. </method>
  17564. <method name="write"
  17565. abstract="false" native="false" synchronized="false"
  17566. static="false" final="false" visibility="public"
  17567. deprecated="not deprecated">
  17568. <param name="out" type="java.io.DataOutput"/>
  17569. <param name="maxLength" type="int"/>
  17570. <exception name="IOException" type="java.io.IOException"/>
  17571. </method>
  17572. <method name="equals" return="boolean"
  17573. abstract="false" native="false" synchronized="false"
  17574. static="false" final="false" visibility="public"
  17575. deprecated="not deprecated">
  17576. <param name="o" type="java.lang.Object"/>
  17577. <doc>
  17578. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  17579. </doc>
  17580. </method>
  17581. <method name="hashCode" return="int"
  17582. abstract="false" native="false" synchronized="false"
  17583. static="false" final="false" visibility="public"
  17584. deprecated="not deprecated">
  17585. </method>
  17586. <method name="decode" return="java.lang.String"
  17587. abstract="false" native="false" synchronized="false"
  17588. static="true" final="false" visibility="public"
  17589. deprecated="not deprecated">
  17590. <param name="utf8" type="byte[]"/>
  17591. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  17592. <doc>
  17593. <![CDATA[Converts the provided byte array to a String using the
  17594. UTF-8 encoding. If the input is malformed,
  17595. replace by a default value.]]>
  17596. </doc>
  17597. </method>
  17598. <method name="decode" return="java.lang.String"
  17599. abstract="false" native="false" synchronized="false"
  17600. static="true" final="false" visibility="public"
  17601. deprecated="not deprecated">
  17602. <param name="utf8" type="byte[]"/>
  17603. <param name="start" type="int"/>
  17604. <param name="length" type="int"/>
  17605. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  17606. </method>
  17607. <method name="decode" return="java.lang.String"
  17608. abstract="false" native="false" synchronized="false"
  17609. static="true" final="false" visibility="public"
  17610. deprecated="not deprecated">
  17611. <param name="utf8" type="byte[]"/>
  17612. <param name="start" type="int"/>
  17613. <param name="length" type="int"/>
  17614. <param name="replace" type="boolean"/>
  17615. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  17616. <doc>
  17617. <![CDATA[Converts the provided byte array to a String using the
  17618. UTF-8 encoding. If <code>replace</code> is true, then
  17619. malformed input is replaced with the
  17620. substitution character, which is U+FFFD. Otherwise the
  17621. method throws a MalformedInputException.]]>
  17622. </doc>
  17623. </method>
  17624. <method name="encode" return="java.nio.ByteBuffer"
  17625. abstract="false" native="false" synchronized="false"
  17626. static="true" final="false" visibility="public"
  17627. deprecated="not deprecated">
  17628. <param name="string" type="java.lang.String"/>
  17629. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  17630. <doc>
  17631. <![CDATA[Converts the provided String to bytes using the
  17632. UTF-8 encoding. If the input is malformed,
  17633. invalid chars are replaced by a default value.
  17634. @return ByteBuffer: bytes stores at ByteBuffer.array()
  17635. and length is ByteBuffer.limit()]]>
  17636. </doc>
  17637. </method>
  17638. <method name="encode" return="java.nio.ByteBuffer"
  17639. abstract="false" native="false" synchronized="false"
  17640. static="true" final="false" visibility="public"
  17641. deprecated="not deprecated">
  17642. <param name="string" type="java.lang.String"/>
  17643. <param name="replace" type="boolean"/>
  17644. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  17645. <doc>
  17646. <![CDATA[Converts the provided String to bytes using the
  17647. UTF-8 encoding. If <code>replace</code> is true, then
  17648. malformed input is replaced with the
  17649. substitution character, which is U+FFFD. Otherwise the
  17650. method throws a MalformedInputException.
  17651. @return ByteBuffer: bytes stores at ByteBuffer.array()
  17652. and length is ByteBuffer.limit()]]>
  17653. </doc>
  17654. </method>
  17655. <method name="readString" return="java.lang.String"
  17656. abstract="false" native="false" synchronized="false"
  17657. static="true" final="false" visibility="public"
  17658. deprecated="not deprecated">
  17659. <param name="in" type="java.io.DataInput"/>
  17660. <exception name="IOException" type="java.io.IOException"/>
  17661. <doc>
  17662. <![CDATA[Read a UTF8 encoded string from in]]>
  17663. </doc>
  17664. </method>
  17665. <method name="readString" return="java.lang.String"
  17666. abstract="false" native="false" synchronized="false"
  17667. static="true" final="false" visibility="public"
  17668. deprecated="not deprecated">
  17669. <param name="in" type="java.io.DataInput"/>
  17670. <param name="maxLength" type="int"/>
  17671. <exception name="IOException" type="java.io.IOException"/>
  17672. <doc>
  17673. <![CDATA[Read a UTF8 encoded string with a maximum size]]>
  17674. </doc>
  17675. </method>
  17676. <method name="writeString" return="int"
  17677. abstract="false" native="false" synchronized="false"
  17678. static="true" final="false" visibility="public"
  17679. deprecated="not deprecated">
  17680. <param name="out" type="java.io.DataOutput"/>
  17681. <param name="s" type="java.lang.String"/>
  17682. <exception name="IOException" type="java.io.IOException"/>
  17683. <doc>
  17684. <![CDATA[Write a UTF8 encoded string to out]]>
  17685. </doc>
  17686. </method>
  17687. <method name="writeString" return="int"
  17688. abstract="false" native="false" synchronized="false"
  17689. static="true" final="false" visibility="public"
  17690. deprecated="not deprecated">
  17691. <param name="out" type="java.io.DataOutput"/>
  17692. <param name="s" type="java.lang.String"/>
  17693. <param name="maxLength" type="int"/>
  17694. <exception name="IOException" type="java.io.IOException"/>
  17695. <doc>
  17696. <![CDATA[Write a UTF8 encoded string with a maximum size to out]]>
  17697. </doc>
  17698. </method>
  17699. <method name="validateUTF8"
  17700. abstract="false" native="false" synchronized="false"
  17701. static="true" final="false" visibility="public"
  17702. deprecated="not deprecated">
  17703. <param name="utf8" type="byte[]"/>
  17704. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  17705. <doc>
  17706. <![CDATA[Check if a byte array contains valid utf-8
  17707. @param utf8 byte array
  17708. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  17709. </doc>
  17710. </method>
  17711. <method name="validateUTF8"
  17712. abstract="false" native="false" synchronized="false"
  17713. static="true" final="false" visibility="public"
  17714. deprecated="not deprecated">
  17715. <param name="utf8" type="byte[]"/>
  17716. <param name="start" type="int"/>
  17717. <param name="len" type="int"/>
  17718. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  17719. <doc>
  17720. <![CDATA[Check to see if a byte array is valid utf-8
  17721. @param utf8 the array of bytes
  17722. @param start the offset of the first byte in the array
  17723. @param len the length of the byte sequence
  17724. @throws MalformedInputException if the byte array contains invalid bytes]]>
  17725. </doc>
  17726. </method>
  17727. <method name="bytesToCodePoint" return="int"
  17728. abstract="false" native="false" synchronized="false"
  17729. static="true" final="false" visibility="public"
  17730. deprecated="not deprecated">
  17731. <param name="bytes" type="java.nio.ByteBuffer"/>
  17732. <doc>
  17733. <![CDATA[Returns the next code point at the current position in
  17734. the buffer. The buffer's position will be incremented.
  17735. Any mark set on this buffer will be changed by this method!]]>
  17736. </doc>
  17737. </method>
  17738. <method name="utf8Length" return="int"
  17739. abstract="false" native="false" synchronized="false"
  17740. static="true" final="false" visibility="public"
  17741. deprecated="not deprecated">
  17742. <param name="string" type="java.lang.String"/>
  17743. <doc>
  17744. <![CDATA[For the given string, returns the number of UTF-8 bytes
  17745. required to encode the string.
  17746. @param string text to encode
  17747. @return number of UTF-8 bytes required to encode]]>
  17748. </doc>
  17749. </method>
  17750. <field name="DEFAULT_MAX_LEN" type="int"
  17751. transient="false" volatile="false"
  17752. static="true" final="true" visibility="public"
  17753. deprecated="not deprecated">
  17754. </field>
  17755. <doc>
  17756. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  17757. to serialize, deserialize, and compare texts at byte level. The type of
  17758. length is integer and is serialized using zero-compressed format. <p>In
  17759. addition, it provides methods for string traversal without converting the
  17760. byte array to a string. <p>Also includes utilities for
  17761. serializing/deserialing a string, coding/decoding a string, checking if a
  17762. byte array contains valid UTF8 code, calculating the length of an encoded
  17763. string.]]>
  17764. </doc>
  17765. </class>
  17766. <!-- end class org.apache.hadoop.io.Text -->
  17767. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  17768. <class name="TwoDArrayWritable" extends="java.lang.Object"
  17769. abstract="false"
  17770. static="false" final="false" visibility="public"
  17771. deprecated="not deprecated">
  17772. <implements name="org.apache.hadoop.io.Writable"/>
  17773. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  17774. static="false" final="false" visibility="public"
  17775. deprecated="not deprecated">
  17776. </constructor>
  17777. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  17778. static="false" final="false" visibility="public"
  17779. deprecated="not deprecated">
  17780. </constructor>
  17781. <method name="toArray" return="java.lang.Object"
  17782. abstract="false" native="false" synchronized="false"
  17783. static="false" final="false" visibility="public"
  17784. deprecated="not deprecated">
  17785. </method>
  17786. <method name="set"
  17787. abstract="false" native="false" synchronized="false"
  17788. static="false" final="false" visibility="public"
  17789. deprecated="not deprecated">
  17790. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  17791. </method>
  17792. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  17793. abstract="false" native="false" synchronized="false"
  17794. static="false" final="false" visibility="public"
  17795. deprecated="not deprecated">
  17796. </method>
  17797. <method name="readFields"
  17798. abstract="false" native="false" synchronized="false"
  17799. static="false" final="false" visibility="public"
  17800. deprecated="not deprecated">
  17801. <param name="in" type="java.io.DataInput"/>
  17802. <exception name="IOException" type="java.io.IOException"/>
  17803. </method>
  17804. <method name="write"
  17805. abstract="false" native="false" synchronized="false"
  17806. static="false" final="false" visibility="public"
  17807. deprecated="not deprecated">
  17808. <param name="out" type="java.io.DataOutput"/>
  17809. <exception name="IOException" type="java.io.IOException"/>
  17810. </method>
  17811. <doc>
  17812. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  17813. </doc>
  17814. </class>
  17815. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  17816. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  17817. <class name="VersionedWritable" extends="java.lang.Object"
  17818. abstract="true"
  17819. static="false" final="false" visibility="public"
  17820. deprecated="not deprecated">
  17821. <implements name="org.apache.hadoop.io.Writable"/>
  17822. <constructor name="VersionedWritable"
  17823. static="false" final="false" visibility="public"
  17824. deprecated="not deprecated">
  17825. </constructor>
  17826. <method name="getVersion" return="byte"
  17827. abstract="true" native="false" synchronized="false"
  17828. static="false" final="false" visibility="public"
  17829. deprecated="not deprecated">
  17830. <doc>
  17831. <![CDATA[Return the version number of the current implementation.]]>
  17832. </doc>
  17833. </method>
  17834. <method name="write"
  17835. abstract="false" native="false" synchronized="false"
  17836. static="false" final="false" visibility="public"
  17837. deprecated="not deprecated">
  17838. <param name="out" type="java.io.DataOutput"/>
  17839. <exception name="IOException" type="java.io.IOException"/>
  17840. </method>
  17841. <method name="readFields"
  17842. abstract="false" native="false" synchronized="false"
  17843. static="false" final="false" visibility="public"
  17844. deprecated="not deprecated">
  17845. <param name="in" type="java.io.DataInput"/>
  17846. <exception name="IOException" type="java.io.IOException"/>
  17847. </method>
  17848. <doc>
  17849. <![CDATA[A base class for Writables that provides version checking.
  17850. <p>This is useful when a class may evolve, so that instances written by the
  17851. old version of the class may still be processed by the new version. To
  17852. handle this situation, {@link #readFields(DataInput)}
  17853. implementations should catch {@link VersionMismatchException}.]]>
  17854. </doc>
  17855. </class>
  17856. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  17857. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  17858. <class name="VersionMismatchException" extends="java.io.IOException"
  17859. abstract="false"
  17860. static="false" final="false" visibility="public"
  17861. deprecated="not deprecated">
  17862. <constructor name="VersionMismatchException" type="byte, byte"
  17863. static="false" final="false" visibility="public"
  17864. deprecated="not deprecated">
  17865. </constructor>
  17866. <method name="toString" return="java.lang.String"
  17867. abstract="false" native="false" synchronized="false"
  17868. static="false" final="false" visibility="public"
  17869. deprecated="not deprecated">
  17870. <doc>
  17871. <![CDATA[Returns a string representation of this object.]]>
  17872. </doc>
  17873. </method>
  17874. <doc>
  17875. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  17876. version of an object being read does not match the current implementation
  17877. version as returned by {@link VersionedWritable#getVersion()}.]]>
  17878. </doc>
  17879. </class>
  17880. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  17881. <!-- start class org.apache.hadoop.io.VIntWritable -->
  17882. <class name="VIntWritable" extends="java.lang.Object"
  17883. abstract="false"
  17884. static="false" final="false" visibility="public"
  17885. deprecated="not deprecated">
  17886. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17887. <constructor name="VIntWritable"
  17888. static="false" final="false" visibility="public"
  17889. deprecated="not deprecated">
  17890. </constructor>
  17891. <constructor name="VIntWritable" type="int"
  17892. static="false" final="false" visibility="public"
  17893. deprecated="not deprecated">
  17894. </constructor>
  17895. <method name="set"
  17896. abstract="false" native="false" synchronized="false"
  17897. static="false" final="false" visibility="public"
  17898. deprecated="not deprecated">
  17899. <param name="value" type="int"/>
  17900. <doc>
  17901. <![CDATA[Set the value of this VIntWritable.]]>
  17902. </doc>
  17903. </method>
  17904. <method name="get" return="int"
  17905. abstract="false" native="false" synchronized="false"
  17906. static="false" final="false" visibility="public"
  17907. deprecated="not deprecated">
  17908. <doc>
  17909. <![CDATA[Return the value of this VIntWritable.]]>
  17910. </doc>
  17911. </method>
  17912. <method name="readFields"
  17913. abstract="false" native="false" synchronized="false"
  17914. static="false" final="false" visibility="public"
  17915. deprecated="not deprecated">
  17916. <param name="in" type="java.io.DataInput"/>
  17917. <exception name="IOException" type="java.io.IOException"/>
  17918. </method>
  17919. <method name="write"
  17920. abstract="false" native="false" synchronized="false"
  17921. static="false" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <param name="out" type="java.io.DataOutput"/>
  17924. <exception name="IOException" type="java.io.IOException"/>
  17925. </method>
  17926. <method name="equals" return="boolean"
  17927. abstract="false" native="false" synchronized="false"
  17928. static="false" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. <param name="o" type="java.lang.Object"/>
  17931. <doc>
  17932. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  17933. </doc>
  17934. </method>
  17935. <method name="hashCode" return="int"
  17936. abstract="false" native="false" synchronized="false"
  17937. static="false" final="false" visibility="public"
  17938. deprecated="not deprecated">
  17939. </method>
  17940. <method name="compareTo" return="int"
  17941. abstract="false" native="false" synchronized="false"
  17942. static="false" final="false" visibility="public"
  17943. deprecated="not deprecated">
  17944. <param name="o" type="org.apache.hadoop.io.VIntWritable"/>
  17945. <doc>
  17946. <![CDATA[Compares two VIntWritables.]]>
  17947. </doc>
  17948. </method>
  17949. <method name="toString" return="java.lang.String"
  17950. abstract="false" native="false" synchronized="false"
  17951. static="false" final="false" visibility="public"
  17952. deprecated="not deprecated">
  17953. </method>
  17954. <doc>
  17955. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  17956. Such values take between one and five bytes. Smaller values take fewer bytes.
  17957. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  17958. </doc>
  17959. </class>
  17960. <!-- end class org.apache.hadoop.io.VIntWritable -->
  17961. <!-- start class org.apache.hadoop.io.VLongWritable -->
  17962. <class name="VLongWritable" extends="java.lang.Object"
  17963. abstract="false"
  17964. static="false" final="false" visibility="public"
  17965. deprecated="not deprecated">
  17966. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17967. <constructor name="VLongWritable"
  17968. static="false" final="false" visibility="public"
  17969. deprecated="not deprecated">
  17970. </constructor>
  17971. <constructor name="VLongWritable" type="long"
  17972. static="false" final="false" visibility="public"
  17973. deprecated="not deprecated">
  17974. </constructor>
  17975. <method name="set"
  17976. abstract="false" native="false" synchronized="false"
  17977. static="false" final="false" visibility="public"
  17978. deprecated="not deprecated">
  17979. <param name="value" type="long"/>
  17980. <doc>
  17981. <![CDATA[Set the value of this LongWritable.]]>
  17982. </doc>
  17983. </method>
  17984. <method name="get" return="long"
  17985. abstract="false" native="false" synchronized="false"
  17986. static="false" final="false" visibility="public"
  17987. deprecated="not deprecated">
  17988. <doc>
  17989. <![CDATA[Return the value of this LongWritable.]]>
  17990. </doc>
  17991. </method>
  17992. <method name="readFields"
  17993. abstract="false" native="false" synchronized="false"
  17994. static="false" final="false" visibility="public"
  17995. deprecated="not deprecated">
  17996. <param name="in" type="java.io.DataInput"/>
  17997. <exception name="IOException" type="java.io.IOException"/>
  17998. </method>
  17999. <method name="write"
  18000. abstract="false" native="false" synchronized="false"
  18001. static="false" final="false" visibility="public"
  18002. deprecated="not deprecated">
  18003. <param name="out" type="java.io.DataOutput"/>
  18004. <exception name="IOException" type="java.io.IOException"/>
  18005. </method>
  18006. <method name="equals" return="boolean"
  18007. abstract="false" native="false" synchronized="false"
  18008. static="false" final="false" visibility="public"
  18009. deprecated="not deprecated">
  18010. <param name="o" type="java.lang.Object"/>
  18011. <doc>
  18012. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  18013. </doc>
  18014. </method>
  18015. <method name="hashCode" return="int"
  18016. abstract="false" native="false" synchronized="false"
  18017. static="false" final="false" visibility="public"
  18018. deprecated="not deprecated">
  18019. </method>
  18020. <method name="compareTo" return="int"
  18021. abstract="false" native="false" synchronized="false"
  18022. static="false" final="false" visibility="public"
  18023. deprecated="not deprecated">
  18024. <param name="o" type="org.apache.hadoop.io.VLongWritable"/>
  18025. <doc>
  18026. <![CDATA[Compares two VLongWritables.]]>
  18027. </doc>
  18028. </method>
  18029. <method name="toString" return="java.lang.String"
  18030. abstract="false" native="false" synchronized="false"
  18031. static="false" final="false" visibility="public"
  18032. deprecated="not deprecated">
  18033. </method>
  18034. <doc>
  18035. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  18036. between one and five bytes. Smaller values take fewer bytes.
  18037. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  18038. </doc>
  18039. </class>
  18040. <!-- end class org.apache.hadoop.io.VLongWritable -->
  18041. <!-- start interface org.apache.hadoop.io.Writable -->
  18042. <interface name="Writable" abstract="true"
  18043. static="false" final="false" visibility="public"
  18044. deprecated="not deprecated">
  18045. <method name="write"
  18046. abstract="true" native="false" synchronized="false"
  18047. static="false" final="false" visibility="public"
  18048. deprecated="not deprecated">
  18049. <param name="out" type="java.io.DataOutput"/>
  18050. <exception name="IOException" type="java.io.IOException"/>
  18051. <doc>
  18052. <![CDATA[Serialize the fields of this object to <code>out</code>.
  18053. @param out <code>DataOuput</code> to serialize this object into.
  18054. @throws IOException]]>
  18055. </doc>
  18056. </method>
  18057. <method name="readFields"
  18058. abstract="true" native="false" synchronized="false"
  18059. static="false" final="false" visibility="public"
  18060. deprecated="not deprecated">
  18061. <param name="in" type="java.io.DataInput"/>
  18062. <exception name="IOException" type="java.io.IOException"/>
  18063. <doc>
  18064. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  18065. <p>For efficiency, implementations should attempt to re-use storage in the
  18066. existing object where possible.</p>
  18067. @param in <code>DataInput</code> to deseriablize this object from.
  18068. @throws IOException]]>
  18069. </doc>
  18070. </method>
  18071. <doc>
  18072. <![CDATA[A serializable object which implements a simple, efficient, serialization
  18073. protocol, based on {@link DataInput} and {@link DataOutput}.
  18074. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  18075. framework implements this interface.</p>
  18076. <p>Implementations typically implement a static <code>read(DataInput)</code>
  18077. method which constructs a new instance, calls {@link #readFields(DataInput)}
  18078. and returns the instance.</p>
  18079. <p>Example:</p>
  18080. <p><blockquote><pre>
  18081. public class MyWritable implements Writable {
  18082. // Some data
  18083. private int counter;
  18084. private long timestamp;
  18085. public void write(DataOutput out) throws IOException {
  18086. out.writeInt(counter);
  18087. out.writeLong(timestamp);
  18088. }
  18089. public void readFields(DataInput in) throws IOException {
  18090. counter = in.readInt();
  18091. timestamp = in.readLong();
  18092. }
  18093. public static MyWritable read(DataInput in) throws IOException {
  18094. MyWritable w = new MyWritable();
  18095. w.readFields(in);
  18096. return w;
  18097. }
  18098. }
  18099. </pre></blockquote></p>]]>
  18100. </doc>
  18101. </interface>
  18102. <!-- end interface org.apache.hadoop.io.Writable -->
  18103. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  18104. <interface name="WritableComparable" abstract="true"
  18105. static="false" final="false" visibility="public"
  18106. deprecated="not deprecated">
  18107. <implements name="org.apache.hadoop.io.Writable"/>
  18108. <implements name="java.lang.Comparable"/>
  18109. <doc>
  18110. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  18111. <p><code>WritableComparable</code>s can be compared to each other, typically
  18112. via <code>Comparator</code>s. Any type which is to be used as a
  18113. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  18114. interface.</p>
  18115. <p>Note that <code>hashCode()</code> is frequently used in Hadoop to partition
  18116. keys. It's important that your implementation of hashCode() returns the same
  18117. result across different instances of the JVM. Note also that the default
  18118. <code>hashCode()</code> implementation in <code>Object</code> does <b>not</b>
  18119. satisfy this property.</p>
  18120. <p>Example:</p>
  18121. <p><blockquote><pre>
  18122. public class MyWritableComparable implements WritableComparable<MyWritableComparable> {
  18123. // Some data
  18124. private int counter;
  18125. private long timestamp;
  18126. public void write(DataOutput out) throws IOException {
  18127. out.writeInt(counter);
  18128. out.writeLong(timestamp);
  18129. }
  18130. public void readFields(DataInput in) throws IOException {
  18131. counter = in.readInt();
  18132. timestamp = in.readLong();
  18133. }
  18134. public int compareTo(MyWritableComparable o) {
  18135. int thisValue = this.value;
  18136. int thatValue = o.value;
  18137. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  18138. }
  18139. public int hashCode() {
  18140. final int prime = 31;
  18141. int result = 1;
  18142. result = prime * result + counter;
  18143. result = prime * result + (int) (timestamp ^ (timestamp &gt;&gt;&gt; 32));
  18144. return result
  18145. }
  18146. }
  18147. </pre></blockquote></p>]]>
  18148. </doc>
  18149. </interface>
  18150. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  18151. <!-- start class org.apache.hadoop.io.WritableComparator -->
  18152. <class name="WritableComparator" extends="java.lang.Object"
  18153. abstract="false"
  18154. static="false" final="false" visibility="public"
  18155. deprecated="not deprecated">
  18156. <implements name="org.apache.hadoop.io.RawComparator"/>
  18157. <implements name="org.apache.hadoop.conf.Configurable"/>
  18158. <constructor name="WritableComparator"
  18159. static="false" final="false" visibility="protected"
  18160. deprecated="not deprecated">
  18161. </constructor>
  18162. <constructor name="WritableComparator" type="java.lang.Class"
  18163. static="false" final="false" visibility="protected"
  18164. deprecated="not deprecated">
  18165. <doc>
  18166. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  18167. </doc>
  18168. </constructor>
  18169. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  18170. static="false" final="false" visibility="protected"
  18171. deprecated="not deprecated">
  18172. </constructor>
  18173. <constructor name="WritableComparator" type="java.lang.Class, org.apache.hadoop.conf.Configuration, boolean"
  18174. static="false" final="false" visibility="protected"
  18175. deprecated="not deprecated">
  18176. </constructor>
  18177. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  18178. abstract="false" native="false" synchronized="false"
  18179. static="true" final="false" visibility="public"
  18180. deprecated="not deprecated">
  18181. <param name="c" type="java.lang.Class"/>
  18182. <doc>
  18183. <![CDATA[For backwards compatibility.]]>
  18184. </doc>
  18185. </method>
  18186. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  18187. abstract="false" native="false" synchronized="false"
  18188. static="true" final="false" visibility="public"
  18189. deprecated="not deprecated">
  18190. <param name="c" type="java.lang.Class"/>
  18191. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18192. <doc>
  18193. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  18194. </doc>
  18195. </method>
  18196. <method name="setConf"
  18197. abstract="false" native="false" synchronized="false"
  18198. static="false" final="false" visibility="public"
  18199. deprecated="not deprecated">
  18200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18201. </method>
  18202. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18203. abstract="false" native="false" synchronized="false"
  18204. static="false" final="false" visibility="public"
  18205. deprecated="not deprecated">
  18206. </method>
  18207. <method name="define"
  18208. abstract="false" native="false" synchronized="false"
  18209. static="true" final="false" visibility="public"
  18210. deprecated="not deprecated">
  18211. <param name="c" type="java.lang.Class"/>
  18212. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  18213. <doc>
  18214. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  18215. implementation. Comparators registered with this method must be
  18216. thread-safe.]]>
  18217. </doc>
  18218. </method>
  18219. <method name="getKeyClass" return="java.lang.Class"
  18220. abstract="false" native="false" synchronized="false"
  18221. static="false" final="false" visibility="public"
  18222. deprecated="not deprecated">
  18223. <doc>
  18224. <![CDATA[Returns the WritableComparable implementation class.]]>
  18225. </doc>
  18226. </method>
  18227. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  18228. abstract="false" native="false" synchronized="false"
  18229. static="false" final="false" visibility="public"
  18230. deprecated="not deprecated">
  18231. <doc>
  18232. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  18233. </doc>
  18234. </method>
  18235. <method name="compare" return="int"
  18236. abstract="false" native="false" synchronized="false"
  18237. static="false" final="false" visibility="public"
  18238. deprecated="not deprecated">
  18239. <param name="b1" type="byte[]"/>
  18240. <param name="s1" type="int"/>
  18241. <param name="l1" type="int"/>
  18242. <param name="b2" type="byte[]"/>
  18243. <param name="s2" type="int"/>
  18244. <param name="l2" type="int"/>
  18245. <doc>
  18246. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  18247. <p>The default implementation reads the data into two {@link
  18248. WritableComparable}s (using {@link
  18249. Writable#readFields(DataInput)}, then calls {@link
  18250. #compare(WritableComparable,WritableComparable)}.]]>
  18251. </doc>
  18252. </method>
  18253. <method name="compare" return="int"
  18254. abstract="false" native="false" synchronized="false"
  18255. static="false" final="false" visibility="public"
  18256. deprecated="not deprecated">
  18257. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  18258. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  18259. <doc>
  18260. <![CDATA[Compare two WritableComparables.
  18261. <p> The default implementation uses the natural ordering, calling {@link
  18262. Comparable#compareTo(Object)}.]]>
  18263. </doc>
  18264. </method>
  18265. <method name="compare" return="int"
  18266. abstract="false" native="false" synchronized="false"
  18267. static="false" final="false" visibility="public"
  18268. deprecated="not deprecated">
  18269. <param name="a" type="java.lang.Object"/>
  18270. <param name="b" type="java.lang.Object"/>
  18271. </method>
  18272. <method name="compareBytes" return="int"
  18273. abstract="false" native="false" synchronized="false"
  18274. static="true" final="false" visibility="public"
  18275. deprecated="not deprecated">
  18276. <param name="b1" type="byte[]"/>
  18277. <param name="s1" type="int"/>
  18278. <param name="l1" type="int"/>
  18279. <param name="b2" type="byte[]"/>
  18280. <param name="s2" type="int"/>
  18281. <param name="l2" type="int"/>
  18282. <doc>
  18283. <![CDATA[Lexicographic order of binary data.]]>
  18284. </doc>
  18285. </method>
  18286. <method name="hashBytes" return="int"
  18287. abstract="false" native="false" synchronized="false"
  18288. static="true" final="false" visibility="public"
  18289. deprecated="not deprecated">
  18290. <param name="bytes" type="byte[]"/>
  18291. <param name="offset" type="int"/>
  18292. <param name="length" type="int"/>
  18293. <doc>
  18294. <![CDATA[Compute hash for binary data.]]>
  18295. </doc>
  18296. </method>
  18297. <method name="hashBytes" return="int"
  18298. abstract="false" native="false" synchronized="false"
  18299. static="true" final="false" visibility="public"
  18300. deprecated="not deprecated">
  18301. <param name="bytes" type="byte[]"/>
  18302. <param name="length" type="int"/>
  18303. <doc>
  18304. <![CDATA[Compute hash for binary data.]]>
  18305. </doc>
  18306. </method>
  18307. <method name="readUnsignedShort" return="int"
  18308. abstract="false" native="false" synchronized="false"
  18309. static="true" final="false" visibility="public"
  18310. deprecated="not deprecated">
  18311. <param name="bytes" type="byte[]"/>
  18312. <param name="start" type="int"/>
  18313. <doc>
  18314. <![CDATA[Parse an unsigned short from a byte array.]]>
  18315. </doc>
  18316. </method>
  18317. <method name="readInt" return="int"
  18318. abstract="false" native="false" synchronized="false"
  18319. static="true" final="false" visibility="public"
  18320. deprecated="not deprecated">
  18321. <param name="bytes" type="byte[]"/>
  18322. <param name="start" type="int"/>
  18323. <doc>
  18324. <![CDATA[Parse an integer from a byte array.]]>
  18325. </doc>
  18326. </method>
  18327. <method name="readFloat" return="float"
  18328. abstract="false" native="false" synchronized="false"
  18329. static="true" final="false" visibility="public"
  18330. deprecated="not deprecated">
  18331. <param name="bytes" type="byte[]"/>
  18332. <param name="start" type="int"/>
  18333. <doc>
  18334. <![CDATA[Parse a float from a byte array.]]>
  18335. </doc>
  18336. </method>
  18337. <method name="readLong" return="long"
  18338. abstract="false" native="false" synchronized="false"
  18339. static="true" final="false" visibility="public"
  18340. deprecated="not deprecated">
  18341. <param name="bytes" type="byte[]"/>
  18342. <param name="start" type="int"/>
  18343. <doc>
  18344. <![CDATA[Parse a long from a byte array.]]>
  18345. </doc>
  18346. </method>
  18347. <method name="readDouble" return="double"
  18348. abstract="false" native="false" synchronized="false"
  18349. static="true" final="false" visibility="public"
  18350. deprecated="not deprecated">
  18351. <param name="bytes" type="byte[]"/>
  18352. <param name="start" type="int"/>
  18353. <doc>
  18354. <![CDATA[Parse a double from a byte array.]]>
  18355. </doc>
  18356. </method>
  18357. <method name="readVLong" return="long"
  18358. abstract="false" native="false" synchronized="false"
  18359. static="true" final="false" visibility="public"
  18360. deprecated="not deprecated">
  18361. <param name="bytes" type="byte[]"/>
  18362. <param name="start" type="int"/>
  18363. <exception name="IOException" type="java.io.IOException"/>
  18364. <doc>
  18365. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  18366. @param bytes byte array with decode long
  18367. @param start starting index
  18368. @throws java.io.IOException
  18369. @return deserialized long]]>
  18370. </doc>
  18371. </method>
  18372. <method name="readVInt" return="int"
  18373. abstract="false" native="false" synchronized="false"
  18374. static="true" final="false" visibility="public"
  18375. deprecated="not deprecated">
  18376. <param name="bytes" type="byte[]"/>
  18377. <param name="start" type="int"/>
  18378. <exception name="IOException" type="java.io.IOException"/>
  18379. <doc>
  18380. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  18381. @param bytes byte array with the encoded integer
  18382. @param start start index
  18383. @throws java.io.IOException
  18384. @return deserialized integer]]>
  18385. </doc>
  18386. </method>
  18387. <doc>
  18388. <![CDATA[A Comparator for {@link WritableComparable}s.
  18389. <p>This base implemenation uses the natural ordering. To define alternate
  18390. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  18391. <p>One may optimize compare-intensive operations by overriding
  18392. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  18393. provided to assist in optimized implementations of this method.]]>
  18394. </doc>
  18395. </class>
  18396. <!-- end class org.apache.hadoop.io.WritableComparator -->
  18397. <!-- start class org.apache.hadoop.io.WritableFactories -->
  18398. <class name="WritableFactories" extends="java.lang.Object"
  18399. abstract="false"
  18400. static="false" final="false" visibility="public"
  18401. deprecated="not deprecated">
  18402. <method name="setFactory"
  18403. abstract="false" native="false" synchronized="false"
  18404. static="true" final="false" visibility="public"
  18405. deprecated="not deprecated">
  18406. <param name="c" type="java.lang.Class"/>
  18407. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  18408. <doc>
  18409. <![CDATA[Define a factory for a class.]]>
  18410. </doc>
  18411. </method>
  18412. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  18413. abstract="false" native="false" synchronized="false"
  18414. static="true" final="false" visibility="public"
  18415. deprecated="not deprecated">
  18416. <param name="c" type="java.lang.Class"/>
  18417. <doc>
  18418. <![CDATA[Define a factory for a class.]]>
  18419. </doc>
  18420. </method>
  18421. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  18422. abstract="false" native="false" synchronized="false"
  18423. static="true" final="false" visibility="public"
  18424. deprecated="not deprecated">
  18425. <param name="c" type="java.lang.Class"/>
  18426. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18427. <doc>
  18428. <![CDATA[Create a new instance of a class with a defined factory.]]>
  18429. </doc>
  18430. </method>
  18431. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  18432. abstract="false" native="false" synchronized="false"
  18433. static="true" final="false" visibility="public"
  18434. deprecated="not deprecated">
  18435. <param name="c" type="java.lang.Class"/>
  18436. <doc>
  18437. <![CDATA[Create a new instance of a class with a defined factory.]]>
  18438. </doc>
  18439. </method>
  18440. <doc>
  18441. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  18442. ObjectWritable} to be able to construct instances of non-public classes.]]>
  18443. </doc>
  18444. </class>
  18445. <!-- end class org.apache.hadoop.io.WritableFactories -->
  18446. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  18447. <interface name="WritableFactory" abstract="true"
  18448. static="false" final="false" visibility="public"
  18449. deprecated="not deprecated">
  18450. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  18451. abstract="true" native="false" synchronized="false"
  18452. static="false" final="false" visibility="public"
  18453. deprecated="not deprecated">
  18454. <doc>
  18455. <![CDATA[Return a new instance.]]>
  18456. </doc>
  18457. </method>
  18458. <doc>
  18459. <![CDATA[A factory for a class of Writable.
  18460. @see WritableFactories]]>
  18461. </doc>
  18462. </interface>
  18463. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  18464. <!-- start class org.apache.hadoop.io.WritableUtils -->
  18465. <class name="WritableUtils" extends="java.lang.Object"
  18466. abstract="false"
  18467. static="false" final="true" visibility="public"
  18468. deprecated="not deprecated">
  18469. <constructor name="WritableUtils"
  18470. static="false" final="false" visibility="public"
  18471. deprecated="not deprecated">
  18472. </constructor>
  18473. <method name="readCompressedByteArray" return="byte[]"
  18474. abstract="false" native="false" synchronized="false"
  18475. static="true" final="false" visibility="public"
  18476. deprecated="not deprecated">
  18477. <param name="in" type="java.io.DataInput"/>
  18478. <exception name="IOException" type="java.io.IOException"/>
  18479. </method>
  18480. <method name="skipCompressedByteArray"
  18481. abstract="false" native="false" synchronized="false"
  18482. static="true" final="false" visibility="public"
  18483. deprecated="not deprecated">
  18484. <param name="in" type="java.io.DataInput"/>
  18485. <exception name="IOException" type="java.io.IOException"/>
  18486. </method>
  18487. <method name="writeCompressedByteArray" return="int"
  18488. abstract="false" native="false" synchronized="false"
  18489. static="true" final="false" visibility="public"
  18490. deprecated="not deprecated">
  18491. <param name="out" type="java.io.DataOutput"/>
  18492. <param name="bytes" type="byte[]"/>
  18493. <exception name="IOException" type="java.io.IOException"/>
  18494. </method>
  18495. <method name="readCompressedString" return="java.lang.String"
  18496. abstract="false" native="false" synchronized="false"
  18497. static="true" final="false" visibility="public"
  18498. deprecated="not deprecated">
  18499. <param name="in" type="java.io.DataInput"/>
  18500. <exception name="IOException" type="java.io.IOException"/>
  18501. </method>
  18502. <method name="writeCompressedString" return="int"
  18503. abstract="false" native="false" synchronized="false"
  18504. static="true" final="false" visibility="public"
  18505. deprecated="not deprecated">
  18506. <param name="out" type="java.io.DataOutput"/>
  18507. <param name="s" type="java.lang.String"/>
  18508. <exception name="IOException" type="java.io.IOException"/>
  18509. </method>
  18510. <method name="writeString"
  18511. abstract="false" native="false" synchronized="false"
  18512. static="true" final="false" visibility="public"
  18513. deprecated="not deprecated">
  18514. <param name="out" type="java.io.DataOutput"/>
  18515. <param name="s" type="java.lang.String"/>
  18516. <exception name="IOException" type="java.io.IOException"/>
  18517. </method>
  18518. <method name="readString" return="java.lang.String"
  18519. abstract="false" native="false" synchronized="false"
  18520. static="true" final="false" visibility="public"
  18521. deprecated="not deprecated">
  18522. <param name="in" type="java.io.DataInput"/>
  18523. <exception name="IOException" type="java.io.IOException"/>
  18524. </method>
  18525. <method name="writeStringArray"
  18526. abstract="false" native="false" synchronized="false"
  18527. static="true" final="false" visibility="public"
  18528. deprecated="not deprecated">
  18529. <param name="out" type="java.io.DataOutput"/>
  18530. <param name="s" type="java.lang.String[]"/>
  18531. <exception name="IOException" type="java.io.IOException"/>
  18532. </method>
  18533. <method name="writeCompressedStringArray"
  18534. abstract="false" native="false" synchronized="false"
  18535. static="true" final="false" visibility="public"
  18536. deprecated="not deprecated">
  18537. <param name="out" type="java.io.DataOutput"/>
  18538. <param name="s" type="java.lang.String[]"/>
  18539. <exception name="IOException" type="java.io.IOException"/>
  18540. </method>
  18541. <method name="readStringArray" return="java.lang.String[]"
  18542. abstract="false" native="false" synchronized="false"
  18543. static="true" final="false" visibility="public"
  18544. deprecated="not deprecated">
  18545. <param name="in" type="java.io.DataInput"/>
  18546. <exception name="IOException" type="java.io.IOException"/>
  18547. </method>
  18548. <method name="readCompressedStringArray" return="java.lang.String[]"
  18549. abstract="false" native="false" synchronized="false"
  18550. static="true" final="false" visibility="public"
  18551. deprecated="not deprecated">
  18552. <param name="in" type="java.io.DataInput"/>
  18553. <exception name="IOException" type="java.io.IOException"/>
  18554. </method>
  18555. <method name="displayByteArray"
  18556. abstract="false" native="false" synchronized="false"
  18557. static="true" final="false" visibility="public"
  18558. deprecated="not deprecated">
  18559. <param name="record" type="byte[]"/>
  18560. </method>
  18561. <method name="clone" return="T"
  18562. abstract="false" native="false" synchronized="false"
  18563. static="true" final="false" visibility="public"
  18564. deprecated="not deprecated">
  18565. <param name="orig" type="T"/>
  18566. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18567. <doc>
  18568. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  18569. @param orig The object to copy
  18570. @return The copied object]]>
  18571. </doc>
  18572. </method>
  18573. <method name="cloneInto"
  18574. abstract="false" native="false" synchronized="false"
  18575. static="true" final="false" visibility="public"
  18576. deprecated="use ReflectionUtils.cloneInto instead.">
  18577. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  18578. <param name="src" type="org.apache.hadoop.io.Writable"/>
  18579. <exception name="IOException" type="java.io.IOException"/>
  18580. <doc>
  18581. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  18582. @param dst the object to copy from
  18583. @param src the object to copy into, which is destroyed
  18584. @throws IOException
  18585. @deprecated use ReflectionUtils.cloneInto instead.]]>
  18586. </doc>
  18587. </method>
  18588. <method name="writeVInt"
  18589. abstract="false" native="false" synchronized="false"
  18590. static="true" final="false" visibility="public"
  18591. deprecated="not deprecated">
  18592. <param name="stream" type="java.io.DataOutput"/>
  18593. <param name="i" type="int"/>
  18594. <exception name="IOException" type="java.io.IOException"/>
  18595. <doc>
  18596. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  18597. For -112 <= i <= 127, only one byte is used with the actual value.
  18598. For other values of i, the first byte value indicates whether the
  18599. integer is positive or negative, and the number of bytes that follow.
  18600. If the first byte value v is between -113 and -116, the following integer
  18601. is positive, with number of bytes that follow are -(v+112).
  18602. If the first byte value v is between -121 and -124, the following integer
  18603. is negative, with number of bytes that follow are -(v+120). Bytes are
  18604. stored in the high-non-zero-byte-first order.
  18605. @param stream Binary output stream
  18606. @param i Integer to be serialized
  18607. @throws java.io.IOException]]>
  18608. </doc>
  18609. </method>
  18610. <method name="writeVLong"
  18611. abstract="false" native="false" synchronized="false"
  18612. static="true" final="false" visibility="public"
  18613. deprecated="not deprecated">
  18614. <param name="stream" type="java.io.DataOutput"/>
  18615. <param name="i" type="long"/>
  18616. <exception name="IOException" type="java.io.IOException"/>
  18617. <doc>
  18618. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  18619. For -112 <= i <= 127, only one byte is used with the actual value.
  18620. For other values of i, the first byte value indicates whether the
  18621. long is positive or negative, and the number of bytes that follow.
  18622. If the first byte value v is between -113 and -120, the following long
  18623. is positive, with number of bytes that follow are -(v+112).
  18624. If the first byte value v is between -121 and -128, the following long
  18625. is negative, with number of bytes that follow are -(v+120). Bytes are
  18626. stored in the high-non-zero-byte-first order.
  18627. @param stream Binary output stream
  18628. @param i Long to be serialized
  18629. @throws java.io.IOException]]>
  18630. </doc>
  18631. </method>
  18632. <method name="readVLong" return="long"
  18633. abstract="false" native="false" synchronized="false"
  18634. static="true" final="false" visibility="public"
  18635. deprecated="not deprecated">
  18636. <param name="stream" type="java.io.DataInput"/>
  18637. <exception name="IOException" type="java.io.IOException"/>
  18638. <doc>
  18639. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  18640. @param stream Binary input stream
  18641. @throws java.io.IOException
  18642. @return deserialized long from stream.]]>
  18643. </doc>
  18644. </method>
  18645. <method name="readVInt" return="int"
  18646. abstract="false" native="false" synchronized="false"
  18647. static="true" final="false" visibility="public"
  18648. deprecated="not deprecated">
  18649. <param name="stream" type="java.io.DataInput"/>
  18650. <exception name="IOException" type="java.io.IOException"/>
  18651. <doc>
  18652. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  18653. @param stream Binary input stream
  18654. @throws java.io.IOException
  18655. @return deserialized integer from stream.]]>
  18656. </doc>
  18657. </method>
  18658. <method name="readVIntInRange" return="int"
  18659. abstract="false" native="false" synchronized="false"
  18660. static="true" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. <param name="stream" type="java.io.DataInput"/>
  18663. <param name="lower" type="int"/>
  18664. <param name="upper" type="int"/>
  18665. <exception name="IOException" type="java.io.IOException"/>
  18666. <doc>
  18667. <![CDATA[Reads an integer from the input stream and returns it.
  18668. This function validates that the integer is between [lower, upper],
  18669. inclusive.
  18670. @param stream Binary input stream
  18671. @throws java.io.IOException
  18672. @return deserialized integer from stream]]>
  18673. </doc>
  18674. </method>
  18675. <method name="isNegativeVInt" return="boolean"
  18676. abstract="false" native="false" synchronized="false"
  18677. static="true" final="false" visibility="public"
  18678. deprecated="not deprecated">
  18679. <param name="value" type="byte"/>
  18680. <doc>
  18681. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  18682. @param value the first byte
  18683. @return is the value negative]]>
  18684. </doc>
  18685. </method>
  18686. <method name="decodeVIntSize" return="int"
  18687. abstract="false" native="false" synchronized="false"
  18688. static="true" final="false" visibility="public"
  18689. deprecated="not deprecated">
  18690. <param name="value" type="byte"/>
  18691. <doc>
  18692. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  18693. @param value the first byte of the vint/vlong
  18694. @return the total number of bytes (1 to 9)]]>
  18695. </doc>
  18696. </method>
  18697. <method name="getVIntSize" return="int"
  18698. abstract="false" native="false" synchronized="false"
  18699. static="true" final="false" visibility="public"
  18700. deprecated="not deprecated">
  18701. <param name="i" type="long"/>
  18702. <doc>
  18703. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  18704. @return the encoded length]]>
  18705. </doc>
  18706. </method>
  18707. <method name="readEnum" return="T"
  18708. abstract="false" native="false" synchronized="false"
  18709. static="true" final="false" visibility="public"
  18710. deprecated="not deprecated">
  18711. <param name="in" type="java.io.DataInput"/>
  18712. <param name="enumType" type="java.lang.Class"/>
  18713. <exception name="IOException" type="java.io.IOException"/>
  18714. <doc>
  18715. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  18716. using String values.
  18717. @param <T> Enum type
  18718. @param in DataInput to read from
  18719. @param enumType Class type of Enum
  18720. @return Enum represented by String read from DataInput
  18721. @throws IOException]]>
  18722. </doc>
  18723. </method>
  18724. <method name="writeEnum"
  18725. abstract="false" native="false" synchronized="false"
  18726. static="true" final="false" visibility="public"
  18727. deprecated="not deprecated">
  18728. <param name="out" type="java.io.DataOutput"/>
  18729. <param name="enumVal" type="java.lang.Enum"/>
  18730. <exception name="IOException" type="java.io.IOException"/>
  18731. <doc>
  18732. <![CDATA[writes String value of enum to DataOutput.
  18733. @param out Dataoutput stream
  18734. @param enumVal enum value
  18735. @throws IOException]]>
  18736. </doc>
  18737. </method>
  18738. <method name="skipFully"
  18739. abstract="false" native="false" synchronized="false"
  18740. static="true" final="false" visibility="public"
  18741. deprecated="not deprecated">
  18742. <param name="in" type="java.io.DataInput"/>
  18743. <param name="len" type="int"/>
  18744. <exception name="IOException" type="java.io.IOException"/>
  18745. <doc>
  18746. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  18747. @param in input stream
  18748. @param len number of bytes to skip
  18749. @throws IOException when skipped less number of bytes]]>
  18750. </doc>
  18751. </method>
  18752. <method name="toByteArray" return="byte[]"
  18753. abstract="false" native="false" synchronized="false"
  18754. static="true" final="false" visibility="public"
  18755. deprecated="not deprecated">
  18756. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  18757. <doc>
  18758. <![CDATA[Convert writables to a byte array]]>
  18759. </doc>
  18760. </method>
  18761. <method name="readStringSafely" return="java.lang.String"
  18762. abstract="false" native="false" synchronized="false"
  18763. static="true" final="false" visibility="public"
  18764. deprecated="not deprecated">
  18765. <param name="in" type="java.io.DataInput"/>
  18766. <param name="maxLength" type="int"/>
  18767. <exception name="IOException" type="java.io.IOException"/>
  18768. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  18769. <doc>
  18770. <![CDATA[Read a string, but check it for sanity. The format consists of a vint
  18771. followed by the given number of bytes.
  18772. @param in the stream to read from
  18773. @param maxLength the largest acceptable length of the encoded string
  18774. @return the bytes as a string
  18775. @throws IOException if reading from the DataInput fails
  18776. @throws IllegalArgumentException if the encoded byte size for string
  18777. is negative or larger than maxSize. Only the vint is read.]]>
  18778. </doc>
  18779. </method>
  18780. </class>
  18781. <!-- end class org.apache.hadoop.io.WritableUtils -->
  18782. <doc>
  18783. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  18784. to databases, and to files.]]>
  18785. </doc>
  18786. </package>
  18787. <package name="org.apache.hadoop.io.compress">
  18788. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  18789. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  18790. abstract="false"
  18791. static="false" final="false" visibility="public"
  18792. deprecated="not deprecated">
  18793. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  18794. static="false" final="false" visibility="public"
  18795. deprecated="not deprecated">
  18796. <doc>
  18797. <![CDATA[Create a {@link BlockCompressorStream}.
  18798. @param out stream
  18799. @param compressor compressor to be used
  18800. @param bufferSize size of buffer
  18801. @param compressionOverhead maximum 'overhead' of the compression
  18802. algorithm with given bufferSize]]>
  18803. </doc>
  18804. </constructor>
  18805. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  18806. static="false" final="false" visibility="public"
  18807. deprecated="not deprecated">
  18808. <doc>
  18809. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  18810. compressor.
  18811. Use default of 512 as bufferSize and compressionOverhead of
  18812. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  18813. @param out stream
  18814. @param compressor compressor to be used]]>
  18815. </doc>
  18816. </constructor>
  18817. <method name="write"
  18818. abstract="false" native="false" synchronized="false"
  18819. static="false" final="false" visibility="public"
  18820. deprecated="not deprecated">
  18821. <param name="b" type="byte[]"/>
  18822. <param name="off" type="int"/>
  18823. <param name="len" type="int"/>
  18824. <exception name="IOException" type="java.io.IOException"/>
  18825. <doc>
  18826. <![CDATA[Write the data provided to the compression codec, compressing no more
  18827. than the buffer size less the compression overhead as specified during
  18828. construction for each block.
  18829. Each block contains the uncompressed length for the block, followed by
  18830. one or more length-prefixed blocks of compressed data.]]>
  18831. </doc>
  18832. </method>
  18833. <method name="finish"
  18834. abstract="false" native="false" synchronized="false"
  18835. static="false" final="false" visibility="public"
  18836. deprecated="not deprecated">
  18837. <exception name="IOException" type="java.io.IOException"/>
  18838. </method>
  18839. <method name="compress"
  18840. abstract="false" native="false" synchronized="false"
  18841. static="false" final="false" visibility="protected"
  18842. deprecated="not deprecated">
  18843. <exception name="IOException" type="java.io.IOException"/>
  18844. </method>
  18845. <doc>
  18846. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  18847. with 'block-based' based compression algorithms, as opposed to
  18848. 'stream-based' compression algorithms.
  18849. It should be noted that this wrapper does not guarantee that blocks will
  18850. be sized for the compressor. If the
  18851. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  18852. effect meaningful compression, it is responsible for it.]]>
  18853. </doc>
  18854. </class>
  18855. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  18856. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  18857. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  18858. abstract="false"
  18859. static="false" final="false" visibility="public"
  18860. deprecated="not deprecated">
  18861. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  18862. static="false" final="false" visibility="public"
  18863. deprecated="not deprecated">
  18864. <exception name="IOException" type="java.io.IOException"/>
  18865. <doc>
  18866. <![CDATA[Create a {@link BlockDecompressorStream}.
  18867. @param in input stream
  18868. @param decompressor decompressor to use
  18869. @param bufferSize size of buffer
  18870. @throws IOException]]>
  18871. </doc>
  18872. </constructor>
  18873. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  18874. static="false" final="false" visibility="public"
  18875. deprecated="not deprecated">
  18876. <exception name="IOException" type="java.io.IOException"/>
  18877. <doc>
  18878. <![CDATA[Create a {@link BlockDecompressorStream}.
  18879. @param in input stream
  18880. @param decompressor decompressor to use
  18881. @throws IOException]]>
  18882. </doc>
  18883. </constructor>
  18884. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  18885. static="false" final="false" visibility="protected"
  18886. deprecated="not deprecated">
  18887. <exception name="IOException" type="java.io.IOException"/>
  18888. </constructor>
  18889. <method name="decompress" return="int"
  18890. abstract="false" native="false" synchronized="false"
  18891. static="false" final="false" visibility="protected"
  18892. deprecated="not deprecated">
  18893. <param name="b" type="byte[]"/>
  18894. <param name="off" type="int"/>
  18895. <param name="len" type="int"/>
  18896. <exception name="IOException" type="java.io.IOException"/>
  18897. </method>
  18898. <method name="getCompressedData" return="int"
  18899. abstract="false" native="false" synchronized="false"
  18900. static="false" final="false" visibility="protected"
  18901. deprecated="not deprecated">
  18902. <exception name="IOException" type="java.io.IOException"/>
  18903. </method>
  18904. <method name="resetState"
  18905. abstract="false" native="false" synchronized="false"
  18906. static="false" final="false" visibility="public"
  18907. deprecated="not deprecated">
  18908. <exception name="IOException" type="java.io.IOException"/>
  18909. </method>
  18910. <doc>
  18911. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  18912. with 'block-based' based compression algorithms, as opposed to
  18913. 'stream-based' compression algorithms.]]>
  18914. </doc>
  18915. </class>
  18916. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  18917. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  18918. <class name="BZip2Codec" extends="java.lang.Object"
  18919. abstract="false"
  18920. static="false" final="false" visibility="public"
  18921. deprecated="not deprecated">
  18922. <implements name="org.apache.hadoop.conf.Configurable"/>
  18923. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  18924. <constructor name="BZip2Codec"
  18925. static="false" final="false" visibility="public"
  18926. deprecated="not deprecated">
  18927. <doc>
  18928. <![CDATA[Creates a new instance of BZip2Codec.]]>
  18929. </doc>
  18930. </constructor>
  18931. <method name="setConf"
  18932. abstract="false" native="false" synchronized="false"
  18933. static="false" final="false" visibility="public"
  18934. deprecated="not deprecated">
  18935. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18936. <doc>
  18937. <![CDATA[Set the configuration to be used by this object.
  18938. @param conf the configuration object.]]>
  18939. </doc>
  18940. </method>
  18941. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18942. abstract="false" native="false" synchronized="false"
  18943. static="false" final="false" visibility="public"
  18944. deprecated="not deprecated">
  18945. <doc>
  18946. <![CDATA[Return the configuration used by this object.
  18947. @return the configuration object used by this objec.]]>
  18948. </doc>
  18949. </method>
  18950. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18951. abstract="false" native="false" synchronized="false"
  18952. static="false" final="false" visibility="public"
  18953. deprecated="not deprecated">
  18954. <param name="out" type="java.io.OutputStream"/>
  18955. <exception name="IOException" type="java.io.IOException"/>
  18956. <doc>
  18957. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  18958. {@link OutputStream}.
  18959. @param out the location for the final output stream
  18960. @return a stream the user can write uncompressed data to, to have it
  18961. compressed
  18962. @throws IOException]]>
  18963. </doc>
  18964. </method>
  18965. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18966. abstract="false" native="false" synchronized="false"
  18967. static="false" final="false" visibility="public"
  18968. deprecated="not deprecated">
  18969. <param name="out" type="java.io.OutputStream"/>
  18970. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  18971. <exception name="IOException" type="java.io.IOException"/>
  18972. <doc>
  18973. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  18974. {@link OutputStream} with the given {@link Compressor}.
  18975. @param out the location for the final output stream
  18976. @param compressor compressor to use
  18977. @return a stream the user can write uncompressed data to, to have it
  18978. compressed
  18979. @throws IOException]]>
  18980. </doc>
  18981. </method>
  18982. <method name="getCompressorType" return="java.lang.Class"
  18983. abstract="false" native="false" synchronized="false"
  18984. static="false" final="false" visibility="public"
  18985. deprecated="not deprecated">
  18986. <doc>
  18987. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  18988. @return the type of compressor needed by this codec.]]>
  18989. </doc>
  18990. </method>
  18991. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18992. abstract="false" native="false" synchronized="false"
  18993. static="false" final="false" visibility="public"
  18994. deprecated="not deprecated">
  18995. <doc>
  18996. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  18997. @return a new compressor for use by this codec]]>
  18998. </doc>
  18999. </method>
  19000. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  19001. abstract="false" native="false" synchronized="false"
  19002. static="false" final="false" visibility="public"
  19003. deprecated="not deprecated">
  19004. <param name="in" type="java.io.InputStream"/>
  19005. <exception name="IOException" type="java.io.IOException"/>
  19006. <doc>
  19007. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  19008. input stream and return a stream for uncompressed data.
  19009. @param in the stream to read compressed bytes from
  19010. @return a stream to read uncompressed bytes from
  19011. @throws IOException]]>
  19012. </doc>
  19013. </method>
  19014. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  19015. abstract="false" native="false" synchronized="false"
  19016. static="false" final="false" visibility="public"
  19017. deprecated="not deprecated">
  19018. <param name="in" type="java.io.InputStream"/>
  19019. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  19020. <exception name="IOException" type="java.io.IOException"/>
  19021. <doc>
  19022. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  19023. {@link InputStream} with the given {@link Decompressor}, and return a
  19024. stream for uncompressed data.
  19025. @param in the stream to read compressed bytes from
  19026. @param decompressor decompressor to use
  19027. @return a stream to read uncompressed bytes from
  19028. @throws IOException]]>
  19029. </doc>
  19030. </method>
  19031. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  19032. abstract="false" native="false" synchronized="false"
  19033. static="false" final="false" visibility="public"
  19034. deprecated="not deprecated">
  19035. <param name="seekableIn" type="java.io.InputStream"/>
  19036. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  19037. <param name="start" type="long"/>
  19038. <param name="end" type="long"/>
  19039. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  19040. <exception name="IOException" type="java.io.IOException"/>
  19041. <doc>
  19042. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  19043. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  19044. @param seekableIn The InputStream
  19045. @param start The start offset into the compressed stream
  19046. @param end The end offset into the compressed stream
  19047. @param readMode Controls whether progress is reported continuously or
  19048. only at block boundaries.
  19049. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  19050. </doc>
  19051. </method>
  19052. <method name="getDecompressorType" return="java.lang.Class"
  19053. abstract="false" native="false" synchronized="false"
  19054. static="false" final="false" visibility="public"
  19055. deprecated="not deprecated">
  19056. <doc>
  19057. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  19058. @return the type of decompressor needed by this codec.]]>
  19059. </doc>
  19060. </method>
  19061. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19062. abstract="false" native="false" synchronized="false"
  19063. static="false" final="false" visibility="public"
  19064. deprecated="not deprecated">
  19065. <doc>
  19066. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  19067. @return a new decompressor for use by this codec]]>
  19068. </doc>
  19069. </method>
  19070. <method name="getDefaultExtension" return="java.lang.String"
  19071. abstract="false" native="false" synchronized="false"
  19072. static="false" final="false" visibility="public"
  19073. deprecated="not deprecated">
  19074. <doc>
  19075. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  19076. @return A String telling the default bzip2 file extension]]>
  19077. </doc>
  19078. </method>
  19079. <doc>
  19080. <![CDATA[This class provides output and input streams for bzip2 compression
  19081. and decompression. It uses the native bzip2 library on the system
  19082. if possible, else it uses a pure-Java implementation of the bzip2
  19083. algorithm. The configuration parameter
  19084. io.compression.codec.bzip2.library can be used to control this
  19085. behavior.
  19086. In the pure-Java mode, the Compressor and Decompressor interfaces
  19087. are not implemented. Therefore, in that mode, those methods of
  19088. CompressionCodec which have a Compressor or Decompressor type
  19089. argument, throw UnsupportedOperationException.
  19090. Currently, support for splittability is available only in the
  19091. pure-Java mode; therefore, if a SplitCompressionInputStream is
  19092. requested, the pure-Java implementation is used, regardless of the
  19093. setting of the configuration parameter mentioned above.]]>
  19094. </doc>
  19095. </class>
  19096. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  19097. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  19098. <class name="CodecPool" extends="java.lang.Object"
  19099. abstract="false"
  19100. static="false" final="false" visibility="public"
  19101. deprecated="not deprecated">
  19102. <constructor name="CodecPool"
  19103. static="false" final="false" visibility="public"
  19104. deprecated="not deprecated">
  19105. </constructor>
  19106. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19107. abstract="false" native="false" synchronized="false"
  19108. static="true" final="false" visibility="public"
  19109. deprecated="not deprecated">
  19110. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19112. <doc>
  19113. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  19114. pool or a new one.
  19115. @param codec the <code>CompressionCodec</code> for which to get the
  19116. <code>Compressor</code>
  19117. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  19118. @return <code>Compressor</code> for the given
  19119. <code>CompressionCodec</code> from the pool or a new one]]>
  19120. </doc>
  19121. </method>
  19122. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19123. abstract="false" native="false" synchronized="false"
  19124. static="true" final="false" visibility="public"
  19125. deprecated="not deprecated">
  19126. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19127. </method>
  19128. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19129. abstract="false" native="false" synchronized="false"
  19130. static="true" final="false" visibility="public"
  19131. deprecated="not deprecated">
  19132. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19133. <doc>
  19134. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  19135. pool or a new one.
  19136. @param codec the <code>CompressionCodec</code> for which to get the
  19137. <code>Decompressor</code>
  19138. @return <code>Decompressor</code> for the given
  19139. <code>CompressionCodec</code> the pool or a new one]]>
  19140. </doc>
  19141. </method>
  19142. <method name="returnCompressor"
  19143. abstract="false" native="false" synchronized="false"
  19144. static="true" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  19147. <doc>
  19148. <![CDATA[Return the {@link Compressor} to the pool.
  19149. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  19150. </doc>
  19151. </method>
  19152. <method name="returnDecompressor"
  19153. abstract="false" native="false" synchronized="false"
  19154. static="true" final="false" visibility="public"
  19155. deprecated="not deprecated">
  19156. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  19157. <doc>
  19158. <![CDATA[Return the {@link Decompressor} to the pool.
  19159. @param decompressor the <code>Decompressor</code> to be returned to the
  19160. pool]]>
  19161. </doc>
  19162. </method>
  19163. <method name="getLeasedCompressorsCount" return="int"
  19164. abstract="false" native="false" synchronized="false"
  19165. static="true" final="false" visibility="public"
  19166. deprecated="not deprecated">
  19167. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19168. <doc>
  19169. <![CDATA[Return the number of leased {@link Compressor}s for this
  19170. {@link CompressionCodec}]]>
  19171. </doc>
  19172. </method>
  19173. <method name="getLeasedDecompressorsCount" return="int"
  19174. abstract="false" native="false" synchronized="false"
  19175. static="true" final="false" visibility="public"
  19176. deprecated="not deprecated">
  19177. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19178. <doc>
  19179. <![CDATA[Return the number of leased {@link Decompressor}s for this
  19180. {@link CompressionCodec}]]>
  19181. </doc>
  19182. </method>
  19183. <doc>
  19184. <![CDATA[A global compressor/decompressor pool used to save and reuse
  19185. (possibly native) compression/decompression codecs.]]>
  19186. </doc>
  19187. </class>
  19188. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  19189. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  19190. <interface name="CompressionCodec" abstract="true"
  19191. static="false" final="false" visibility="public"
  19192. deprecated="not deprecated">
  19193. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  19194. abstract="true" native="false" synchronized="false"
  19195. static="false" final="false" visibility="public"
  19196. deprecated="not deprecated">
  19197. <param name="out" type="java.io.OutputStream"/>
  19198. <exception name="IOException" type="java.io.IOException"/>
  19199. <doc>
  19200. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  19201. {@link OutputStream}.
  19202. @param out the location for the final output stream
  19203. @return a stream the user can write uncompressed data to have it compressed
  19204. @throws IOException]]>
  19205. </doc>
  19206. </method>
  19207. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  19208. abstract="true" native="false" synchronized="false"
  19209. static="false" final="false" visibility="public"
  19210. deprecated="not deprecated">
  19211. <param name="out" type="java.io.OutputStream"/>
  19212. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  19213. <exception name="IOException" type="java.io.IOException"/>
  19214. <doc>
  19215. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  19216. {@link OutputStream} with the given {@link Compressor}.
  19217. @param out the location for the final output stream
  19218. @param compressor compressor to use
  19219. @return a stream the user can write uncompressed data to have it compressed
  19220. @throws IOException]]>
  19221. </doc>
  19222. </method>
  19223. <method name="getCompressorType" return="java.lang.Class"
  19224. abstract="true" native="false" synchronized="false"
  19225. static="false" final="false" visibility="public"
  19226. deprecated="not deprecated">
  19227. <doc>
  19228. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  19229. @return the type of compressor needed by this codec.]]>
  19230. </doc>
  19231. </method>
  19232. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19233. abstract="true" native="false" synchronized="false"
  19234. static="false" final="false" visibility="public"
  19235. deprecated="not deprecated">
  19236. <doc>
  19237. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  19238. @return a new compressor for use by this codec]]>
  19239. </doc>
  19240. </method>
  19241. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  19242. abstract="true" native="false" synchronized="false"
  19243. static="false" final="false" visibility="public"
  19244. deprecated="not deprecated">
  19245. <param name="in" type="java.io.InputStream"/>
  19246. <exception name="IOException" type="java.io.IOException"/>
  19247. <doc>
  19248. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  19249. input stream.
  19250. @param in the stream to read compressed bytes from
  19251. @return a stream to read uncompressed bytes from
  19252. @throws IOException]]>
  19253. </doc>
  19254. </method>
  19255. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  19256. abstract="true" native="false" synchronized="false"
  19257. static="false" final="false" visibility="public"
  19258. deprecated="not deprecated">
  19259. <param name="in" type="java.io.InputStream"/>
  19260. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  19261. <exception name="IOException" type="java.io.IOException"/>
  19262. <doc>
  19263. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  19264. {@link InputStream} with the given {@link Decompressor}.
  19265. @param in the stream to read compressed bytes from
  19266. @param decompressor decompressor to use
  19267. @return a stream to read uncompressed bytes from
  19268. @throws IOException]]>
  19269. </doc>
  19270. </method>
  19271. <method name="getDecompressorType" return="java.lang.Class"
  19272. abstract="true" native="false" synchronized="false"
  19273. static="false" final="false" visibility="public"
  19274. deprecated="not deprecated">
  19275. <doc>
  19276. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  19277. @return the type of decompressor needed by this codec.]]>
  19278. </doc>
  19279. </method>
  19280. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19281. abstract="true" native="false" synchronized="false"
  19282. static="false" final="false" visibility="public"
  19283. deprecated="not deprecated">
  19284. <doc>
  19285. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  19286. @return a new decompressor for use by this codec]]>
  19287. </doc>
  19288. </method>
  19289. <method name="getDefaultExtension" return="java.lang.String"
  19290. abstract="true" native="false" synchronized="false"
  19291. static="false" final="false" visibility="public"
  19292. deprecated="not deprecated">
  19293. <doc>
  19294. <![CDATA[Get the default filename extension for this kind of compression.
  19295. @return the extension including the '.']]>
  19296. </doc>
  19297. </method>
  19298. <doc>
  19299. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  19300. </doc>
  19301. </interface>
  19302. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  19303. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  19304. <class name="CompressionCodecFactory" extends="java.lang.Object"
  19305. abstract="false"
  19306. static="false" final="false" visibility="public"
  19307. deprecated="not deprecated">
  19308. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  19309. static="false" final="false" visibility="public"
  19310. deprecated="not deprecated">
  19311. <doc>
  19312. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  19313. and register them. Defaults to gzip and deflate.]]>
  19314. </doc>
  19315. </constructor>
  19316. <method name="toString" return="java.lang.String"
  19317. abstract="false" native="false" synchronized="false"
  19318. static="false" final="false" visibility="public"
  19319. deprecated="not deprecated">
  19320. <doc>
  19321. <![CDATA[Print the extension map out as a string.]]>
  19322. </doc>
  19323. </method>
  19324. <method name="getCodecClasses" return="java.util.List"
  19325. abstract="false" native="false" synchronized="false"
  19326. static="true" final="false" visibility="public"
  19327. deprecated="not deprecated">
  19328. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19329. <doc>
  19330. <![CDATA[Get the list of codecs discovered via a Java ServiceLoader, or
  19331. listed in the configuration. Codecs specified in configuration come
  19332. later in the returned list, and are considered to override those
  19333. from the ServiceLoader.
  19334. @param conf the configuration to look in
  19335. @return a list of the {@link CompressionCodec} classes]]>
  19336. </doc>
  19337. </method>
  19338. <method name="setCodecClasses"
  19339. abstract="false" native="false" synchronized="false"
  19340. static="true" final="false" visibility="public"
  19341. deprecated="not deprecated">
  19342. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19343. <param name="classes" type="java.util.List"/>
  19344. <doc>
  19345. <![CDATA[Sets a list of codec classes in the configuration. In addition to any
  19346. classes specified using this method, {@link CompressionCodec} classes on
  19347. the classpath are discovered using a Java ServiceLoader.
  19348. @param conf the configuration to modify
  19349. @param classes the list of classes to set]]>
  19350. </doc>
  19351. </method>
  19352. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  19353. abstract="false" native="false" synchronized="false"
  19354. static="false" final="false" visibility="public"
  19355. deprecated="not deprecated">
  19356. <param name="file" type="org.apache.hadoop.fs.Path"/>
  19357. <doc>
  19358. <![CDATA[Find the relevant compression codec for the given file based on its
  19359. filename suffix.
  19360. @param file the filename to check
  19361. @return the codec object]]>
  19362. </doc>
  19363. </method>
  19364. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  19365. abstract="false" native="false" synchronized="false"
  19366. static="false" final="false" visibility="public"
  19367. deprecated="not deprecated">
  19368. <param name="classname" type="java.lang.String"/>
  19369. <doc>
  19370. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  19371. @param classname the canonical class name of the codec
  19372. @return the codec object]]>
  19373. </doc>
  19374. </method>
  19375. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  19376. abstract="false" native="false" synchronized="false"
  19377. static="false" final="false" visibility="public"
  19378. deprecated="not deprecated">
  19379. <param name="codecName" type="java.lang.String"/>
  19380. <doc>
  19381. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  19382. or by codec alias.
  19383. <p/>
  19384. Codec aliases are case insensitive.
  19385. <p/>
  19386. The code alias is the short class name (without the package name).
  19387. If the short class name ends with 'Codec', then there are two aliases for
  19388. the codec, the complete short class name and the short class name without
  19389. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  19390. alias are 'gzip' and 'gzipcodec'.
  19391. @param codecName the canonical class name of the codec
  19392. @return the codec object]]>
  19393. </doc>
  19394. </method>
  19395. <method name="getCodecClassByName" return="java.lang.Class"
  19396. abstract="false" native="false" synchronized="false"
  19397. static="false" final="false" visibility="public"
  19398. deprecated="not deprecated">
  19399. <param name="codecName" type="java.lang.String"/>
  19400. <doc>
  19401. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  19402. or by codec alias and returns its implemetation class.
  19403. <p/>
  19404. Codec aliases are case insensitive.
  19405. <p/>
  19406. The code alias is the short class name (without the package name).
  19407. If the short class name ends with 'Codec', then there are two aliases for
  19408. the codec, the complete short class name and the short class name without
  19409. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  19410. alias are 'gzip' and 'gzipcodec'.
  19411. @param codecName the canonical class name of the codec
  19412. @return the codec class]]>
  19413. </doc>
  19414. </method>
  19415. <method name="removeSuffix" return="java.lang.String"
  19416. abstract="false" native="false" synchronized="false"
  19417. static="true" final="false" visibility="public"
  19418. deprecated="not deprecated">
  19419. <param name="filename" type="java.lang.String"/>
  19420. <param name="suffix" type="java.lang.String"/>
  19421. <doc>
  19422. <![CDATA[Removes a suffix from a filename, if it has it.
  19423. @param filename the filename to strip
  19424. @param suffix the suffix to remove
  19425. @return the shortened filename]]>
  19426. </doc>
  19427. </method>
  19428. <method name="main"
  19429. abstract="false" native="false" synchronized="false"
  19430. static="true" final="false" visibility="public"
  19431. deprecated="not deprecated">
  19432. <param name="args" type="java.lang.String[]"/>
  19433. <exception name="Exception" type="java.lang.Exception"/>
  19434. <doc>
  19435. <![CDATA[A little test program.
  19436. @param args]]>
  19437. </doc>
  19438. </method>
  19439. <field name="LOG" type="org.apache.commons.logging.Log"
  19440. transient="false" volatile="false"
  19441. static="true" final="true" visibility="public"
  19442. deprecated="not deprecated">
  19443. </field>
  19444. <doc>
  19445. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  19446. </doc>
  19447. </class>
  19448. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  19449. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  19450. <class name="CompressionInputStream" extends="java.io.InputStream"
  19451. abstract="true"
  19452. static="false" final="false" visibility="public"
  19453. deprecated="not deprecated">
  19454. <implements name="org.apache.hadoop.fs.Seekable"/>
  19455. <constructor name="CompressionInputStream" type="java.io.InputStream"
  19456. static="false" final="false" visibility="protected"
  19457. deprecated="not deprecated">
  19458. <exception name="IOException" type="java.io.IOException"/>
  19459. <doc>
  19460. <![CDATA[Create a compression input stream that reads
  19461. the decompressed bytes from the given stream.
  19462. @param in The input stream to be compressed.
  19463. @throws IOException]]>
  19464. </doc>
  19465. </constructor>
  19466. <method name="close"
  19467. abstract="false" native="false" synchronized="false"
  19468. static="false" final="false" visibility="public"
  19469. deprecated="not deprecated">
  19470. <exception name="IOException" type="java.io.IOException"/>
  19471. </method>
  19472. <method name="read" return="int"
  19473. abstract="true" native="false" synchronized="false"
  19474. static="false" final="false" visibility="public"
  19475. deprecated="not deprecated">
  19476. <param name="b" type="byte[]"/>
  19477. <param name="off" type="int"/>
  19478. <param name="len" type="int"/>
  19479. <exception name="IOException" type="java.io.IOException"/>
  19480. <doc>
  19481. <![CDATA[Read bytes from the stream.
  19482. Made abstract to prevent leakage to underlying stream.]]>
  19483. </doc>
  19484. </method>
  19485. <method name="resetState"
  19486. abstract="true" native="false" synchronized="false"
  19487. static="false" final="false" visibility="public"
  19488. deprecated="not deprecated">
  19489. <exception name="IOException" type="java.io.IOException"/>
  19490. <doc>
  19491. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  19492. as the underlying stream may have been repositioned.]]>
  19493. </doc>
  19494. </method>
  19495. <method name="getPos" return="long"
  19496. abstract="false" native="false" synchronized="false"
  19497. static="false" final="false" visibility="public"
  19498. deprecated="not deprecated">
  19499. <exception name="IOException" type="java.io.IOException"/>
  19500. <doc>
  19501. <![CDATA[This method returns the current position in the stream.
  19502. @return Current position in stream as a long]]>
  19503. </doc>
  19504. </method>
  19505. <method name="seek"
  19506. abstract="false" native="false" synchronized="false"
  19507. static="false" final="false" visibility="public"
  19508. deprecated="not deprecated">
  19509. <param name="pos" type="long"/>
  19510. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  19511. <doc>
  19512. <![CDATA[This method is current not supported.
  19513. @throws UnsupportedOperationException]]>
  19514. </doc>
  19515. </method>
  19516. <method name="seekToNewSource" return="boolean"
  19517. abstract="false" native="false" synchronized="false"
  19518. static="false" final="false" visibility="public"
  19519. deprecated="not deprecated">
  19520. <param name="targetPos" type="long"/>
  19521. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  19522. <doc>
  19523. <![CDATA[This method is current not supported.
  19524. @throws UnsupportedOperationException]]>
  19525. </doc>
  19526. </method>
  19527. <field name="in" type="java.io.InputStream"
  19528. transient="false" volatile="false"
  19529. static="false" final="true" visibility="protected"
  19530. deprecated="not deprecated">
  19531. <doc>
  19532. <![CDATA[The input stream to be compressed.]]>
  19533. </doc>
  19534. </field>
  19535. <field name="maxAvailableData" type="long"
  19536. transient="false" volatile="false"
  19537. static="false" final="false" visibility="protected"
  19538. deprecated="not deprecated">
  19539. </field>
  19540. <doc>
  19541. <![CDATA[A compression input stream.
  19542. <p>Implementations are assumed to be buffered. This permits clients to
  19543. reposition the underlying input stream then call {@link #resetState()},
  19544. without having to also synchronize client buffers.]]>
  19545. </doc>
  19546. </class>
  19547. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  19548. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  19549. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  19550. abstract="true"
  19551. static="false" final="false" visibility="public"
  19552. deprecated="not deprecated">
  19553. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  19554. static="false" final="false" visibility="protected"
  19555. deprecated="not deprecated">
  19556. <doc>
  19557. <![CDATA[Create a compression output stream that writes
  19558. the compressed bytes to the given stream.
  19559. @param out]]>
  19560. </doc>
  19561. </constructor>
  19562. <method name="close"
  19563. abstract="false" native="false" synchronized="false"
  19564. static="false" final="false" visibility="public"
  19565. deprecated="not deprecated">
  19566. <exception name="IOException" type="java.io.IOException"/>
  19567. </method>
  19568. <method name="flush"
  19569. abstract="false" native="false" synchronized="false"
  19570. static="false" final="false" visibility="public"
  19571. deprecated="not deprecated">
  19572. <exception name="IOException" type="java.io.IOException"/>
  19573. </method>
  19574. <method name="write"
  19575. abstract="true" native="false" synchronized="false"
  19576. static="false" final="false" visibility="public"
  19577. deprecated="not deprecated">
  19578. <param name="b" type="byte[]"/>
  19579. <param name="off" type="int"/>
  19580. <param name="len" type="int"/>
  19581. <exception name="IOException" type="java.io.IOException"/>
  19582. <doc>
  19583. <![CDATA[Write compressed bytes to the stream.
  19584. Made abstract to prevent leakage to underlying stream.]]>
  19585. </doc>
  19586. </method>
  19587. <method name="finish"
  19588. abstract="true" native="false" synchronized="false"
  19589. static="false" final="false" visibility="public"
  19590. deprecated="not deprecated">
  19591. <exception name="IOException" type="java.io.IOException"/>
  19592. <doc>
  19593. <![CDATA[Finishes writing compressed data to the output stream
  19594. without closing the underlying stream.]]>
  19595. </doc>
  19596. </method>
  19597. <method name="resetState"
  19598. abstract="true" native="false" synchronized="false"
  19599. static="false" final="false" visibility="public"
  19600. deprecated="not deprecated">
  19601. <exception name="IOException" type="java.io.IOException"/>
  19602. <doc>
  19603. <![CDATA[Reset the compression to the initial state.
  19604. Does not reset the underlying stream.]]>
  19605. </doc>
  19606. </method>
  19607. <field name="out" type="java.io.OutputStream"
  19608. transient="false" volatile="false"
  19609. static="false" final="true" visibility="protected"
  19610. deprecated="not deprecated">
  19611. <doc>
  19612. <![CDATA[The output stream to be compressed.]]>
  19613. </doc>
  19614. </field>
  19615. <doc>
  19616. <![CDATA[A compression output stream.]]>
  19617. </doc>
  19618. </class>
  19619. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  19620. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  19621. <interface name="Compressor" abstract="true"
  19622. static="false" final="false" visibility="public"
  19623. deprecated="not deprecated">
  19624. <method name="setInput"
  19625. abstract="true" native="false" synchronized="false"
  19626. static="false" final="false" visibility="public"
  19627. deprecated="not deprecated">
  19628. <param name="b" type="byte[]"/>
  19629. <param name="off" type="int"/>
  19630. <param name="len" type="int"/>
  19631. <doc>
  19632. <![CDATA[Sets input data for compression.
  19633. This should be called whenever #needsInput() returns
  19634. <code>true</code> indicating that more input data is required.
  19635. @param b Input data
  19636. @param off Start offset
  19637. @param len Length]]>
  19638. </doc>
  19639. </method>
  19640. <method name="needsInput" return="boolean"
  19641. abstract="true" native="false" synchronized="false"
  19642. static="false" final="false" visibility="public"
  19643. deprecated="not deprecated">
  19644. <doc>
  19645. <![CDATA[Returns true if the input data buffer is empty and
  19646. #setInput() should be called to provide more input.
  19647. @return <code>true</code> if the input data buffer is empty and
  19648. #setInput() should be called in order to provide more input.]]>
  19649. </doc>
  19650. </method>
  19651. <method name="setDictionary"
  19652. abstract="true" native="false" synchronized="false"
  19653. static="false" final="false" visibility="public"
  19654. deprecated="not deprecated">
  19655. <param name="b" type="byte[]"/>
  19656. <param name="off" type="int"/>
  19657. <param name="len" type="int"/>
  19658. <doc>
  19659. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  19660. is used when the history buffer can be predetermined.
  19661. @param b Dictionary data bytes
  19662. @param off Start offset
  19663. @param len Length]]>
  19664. </doc>
  19665. </method>
  19666. <method name="getBytesRead" return="long"
  19667. abstract="true" native="false" synchronized="false"
  19668. static="false" final="false" visibility="public"
  19669. deprecated="not deprecated">
  19670. <doc>
  19671. <![CDATA[Return number of uncompressed bytes input so far.]]>
  19672. </doc>
  19673. </method>
  19674. <method name="getBytesWritten" return="long"
  19675. abstract="true" native="false" synchronized="false"
  19676. static="false" final="false" visibility="public"
  19677. deprecated="not deprecated">
  19678. <doc>
  19679. <![CDATA[Return number of compressed bytes output so far.]]>
  19680. </doc>
  19681. </method>
  19682. <method name="finish"
  19683. abstract="true" native="false" synchronized="false"
  19684. static="false" final="false" visibility="public"
  19685. deprecated="not deprecated">
  19686. <doc>
  19687. <![CDATA[When called, indicates that compression should end
  19688. with the current contents of the input buffer.]]>
  19689. </doc>
  19690. </method>
  19691. <method name="finished" return="boolean"
  19692. abstract="true" native="false" synchronized="false"
  19693. static="false" final="false" visibility="public"
  19694. deprecated="not deprecated">
  19695. <doc>
  19696. <![CDATA[Returns true if the end of the compressed
  19697. data output stream has been reached.
  19698. @return <code>true</code> if the end of the compressed
  19699. data output stream has been reached.]]>
  19700. </doc>
  19701. </method>
  19702. <method name="compress" return="int"
  19703. abstract="true" native="false" synchronized="false"
  19704. static="false" final="false" visibility="public"
  19705. deprecated="not deprecated">
  19706. <param name="b" type="byte[]"/>
  19707. <param name="off" type="int"/>
  19708. <param name="len" type="int"/>
  19709. <exception name="IOException" type="java.io.IOException"/>
  19710. <doc>
  19711. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  19712. of bytes of compressed data. A return value of 0 indicates that
  19713. needsInput() should be called in order to determine if more input
  19714. data is required.
  19715. @param b Buffer for the compressed data
  19716. @param off Start offset of the data
  19717. @param len Size of the buffer
  19718. @return The actual number of bytes of compressed data.]]>
  19719. </doc>
  19720. </method>
  19721. <method name="reset"
  19722. abstract="true" native="false" synchronized="false"
  19723. static="false" final="false" visibility="public"
  19724. deprecated="not deprecated">
  19725. <doc>
  19726. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  19727. </doc>
  19728. </method>
  19729. <method name="end"
  19730. abstract="true" native="false" synchronized="false"
  19731. static="false" final="false" visibility="public"
  19732. deprecated="not deprecated">
  19733. <doc>
  19734. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  19735. </doc>
  19736. </method>
  19737. <method name="reinit"
  19738. abstract="true" native="false" synchronized="false"
  19739. static="false" final="false" visibility="public"
  19740. deprecated="not deprecated">
  19741. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19742. <doc>
  19743. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19744. the given Configuration
  19745. @param conf Configuration from which new setting are fetched]]>
  19746. </doc>
  19747. </method>
  19748. <doc>
  19749. <![CDATA[Specification of a stream-based 'compressor' which can be
  19750. plugged into a {@link CompressionOutputStream} to compress data.
  19751. This is modelled after {@link java.util.zip.Deflater}]]>
  19752. </doc>
  19753. </interface>
  19754. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  19755. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  19756. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  19757. abstract="false"
  19758. static="false" final="false" visibility="public"
  19759. deprecated="not deprecated">
  19760. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  19761. static="false" final="false" visibility="public"
  19762. deprecated="not deprecated">
  19763. </constructor>
  19764. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  19765. static="false" final="false" visibility="public"
  19766. deprecated="not deprecated">
  19767. </constructor>
  19768. <constructor name="CompressorStream" type="java.io.OutputStream"
  19769. static="false" final="false" visibility="protected"
  19770. deprecated="not deprecated">
  19771. <doc>
  19772. <![CDATA[Allow derived classes to directly set the underlying stream.
  19773. @param out Underlying output stream.]]>
  19774. </doc>
  19775. </constructor>
  19776. <method name="write"
  19777. abstract="false" native="false" synchronized="false"
  19778. static="false" final="false" visibility="public"
  19779. deprecated="not deprecated">
  19780. <param name="b" type="byte[]"/>
  19781. <param name="off" type="int"/>
  19782. <param name="len" type="int"/>
  19783. <exception name="IOException" type="java.io.IOException"/>
  19784. </method>
  19785. <method name="compress"
  19786. abstract="false" native="false" synchronized="false"
  19787. static="false" final="false" visibility="protected"
  19788. deprecated="not deprecated">
  19789. <exception name="IOException" type="java.io.IOException"/>
  19790. </method>
  19791. <method name="finish"
  19792. abstract="false" native="false" synchronized="false"
  19793. static="false" final="false" visibility="public"
  19794. deprecated="not deprecated">
  19795. <exception name="IOException" type="java.io.IOException"/>
  19796. </method>
  19797. <method name="resetState"
  19798. abstract="false" native="false" synchronized="false"
  19799. static="false" final="false" visibility="public"
  19800. deprecated="not deprecated">
  19801. <exception name="IOException" type="java.io.IOException"/>
  19802. </method>
  19803. <method name="close"
  19804. abstract="false" native="false" synchronized="false"
  19805. static="false" final="false" visibility="public"
  19806. deprecated="not deprecated">
  19807. <exception name="IOException" type="java.io.IOException"/>
  19808. </method>
  19809. <method name="write"
  19810. abstract="false" native="false" synchronized="false"
  19811. static="false" final="false" visibility="public"
  19812. deprecated="not deprecated">
  19813. <param name="b" type="int"/>
  19814. <exception name="IOException" type="java.io.IOException"/>
  19815. </method>
  19816. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  19817. transient="false" volatile="false"
  19818. static="false" final="false" visibility="protected"
  19819. deprecated="not deprecated">
  19820. </field>
  19821. <field name="buffer" type="byte[]"
  19822. transient="false" volatile="false"
  19823. static="false" final="false" visibility="protected"
  19824. deprecated="not deprecated">
  19825. </field>
  19826. <field name="closed" type="boolean"
  19827. transient="false" volatile="false"
  19828. static="false" final="false" visibility="protected"
  19829. deprecated="not deprecated">
  19830. </field>
  19831. </class>
  19832. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  19833. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  19834. <interface name="Decompressor" abstract="true"
  19835. static="false" final="false" visibility="public"
  19836. deprecated="not deprecated">
  19837. <method name="setInput"
  19838. abstract="true" native="false" synchronized="false"
  19839. static="false" final="false" visibility="public"
  19840. deprecated="not deprecated">
  19841. <param name="b" type="byte[]"/>
  19842. <param name="off" type="int"/>
  19843. <param name="len" type="int"/>
  19844. <doc>
  19845. <![CDATA[Sets input data for decompression.
  19846. This should be called if and only if {@link #needsInput()} returns
  19847. <code>true</code> indicating that more input data is required.
  19848. (Both native and non-native versions of various Decompressors require
  19849. that the data passed in via <code>b[]</code> remain unmodified until
  19850. the caller is explicitly notified--via {@link #needsInput()}--that the
  19851. buffer may be safely modified. With this requirement, an extra
  19852. buffer-copy can be avoided.)
  19853. @param b Input data
  19854. @param off Start offset
  19855. @param len Length]]>
  19856. </doc>
  19857. </method>
  19858. <method name="needsInput" return="boolean"
  19859. abstract="true" native="false" synchronized="false"
  19860. static="false" final="false" visibility="public"
  19861. deprecated="not deprecated">
  19862. <doc>
  19863. <![CDATA[Returns <code>true</code> if the input data buffer is empty and
  19864. {@link #setInput(byte[], int, int)} should be called to
  19865. provide more input.
  19866. @return <code>true</code> if the input data buffer is empty and
  19867. {@link #setInput(byte[], int, int)} should be called in
  19868. order to provide more input.]]>
  19869. </doc>
  19870. </method>
  19871. <method name="setDictionary"
  19872. abstract="true" native="false" synchronized="false"
  19873. static="false" final="false" visibility="public"
  19874. deprecated="not deprecated">
  19875. <param name="b" type="byte[]"/>
  19876. <param name="off" type="int"/>
  19877. <param name="len" type="int"/>
  19878. <doc>
  19879. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  19880. is used when the history buffer can be predetermined.
  19881. @param b Dictionary data bytes
  19882. @param off Start offset
  19883. @param len Length]]>
  19884. </doc>
  19885. </method>
  19886. <method name="needsDictionary" return="boolean"
  19887. abstract="true" native="false" synchronized="false"
  19888. static="false" final="false" visibility="public"
  19889. deprecated="not deprecated">
  19890. <doc>
  19891. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  19892. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  19893. </doc>
  19894. </method>
  19895. <method name="finished" return="boolean"
  19896. abstract="true" native="false" synchronized="false"
  19897. static="false" final="false" visibility="public"
  19898. deprecated="not deprecated">
  19899. <doc>
  19900. <![CDATA[Returns <code>true</code> if the end of the decompressed
  19901. data output stream has been reached. Indicates a concatenated data stream
  19902. when finished() returns <code>true</code> and {@link #getRemaining()}
  19903. returns a positive value. finished() will be reset with the
  19904. {@link #reset()} method.
  19905. @return <code>true</code> if the end of the decompressed
  19906. data output stream has been reached.]]>
  19907. </doc>
  19908. </method>
  19909. <method name="decompress" return="int"
  19910. abstract="true" native="false" synchronized="false"
  19911. static="false" final="false" visibility="public"
  19912. deprecated="not deprecated">
  19913. <param name="b" type="byte[]"/>
  19914. <param name="off" type="int"/>
  19915. <param name="len" type="int"/>
  19916. <exception name="IOException" type="java.io.IOException"/>
  19917. <doc>
  19918. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  19919. of bytes of uncompressed data. A return value of 0 indicates that
  19920. {@link #needsInput()} should be called in order to determine if more
  19921. input data is required.
  19922. @param b Buffer for the compressed data
  19923. @param off Start offset of the data
  19924. @param len Size of the buffer
  19925. @return The actual number of bytes of compressed data.
  19926. @throws IOException]]>
  19927. </doc>
  19928. </method>
  19929. <method name="getRemaining" return="int"
  19930. abstract="true" native="false" synchronized="false"
  19931. static="false" final="false" visibility="public"
  19932. deprecated="not deprecated">
  19933. <doc>
  19934. <![CDATA[Returns the number of bytes remaining in the compressed data buffer.
  19935. Indicates a concatenated data stream if {@link #finished()} returns
  19936. <code>true</code> and getRemaining() returns a positive value. If
  19937. {@link #finished()} returns <code>true</code> and getRemaining() returns
  19938. a zero value, indicates that the end of data stream has been reached and
  19939. is not a concatenated data stream.
  19940. @return The number of bytes remaining in the compressed data buffer.]]>
  19941. </doc>
  19942. </method>
  19943. <method name="reset"
  19944. abstract="true" native="false" synchronized="false"
  19945. static="false" final="false" visibility="public"
  19946. deprecated="not deprecated">
  19947. <doc>
  19948. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  19949. input data can be processed. If {@link #finished()}} returns
  19950. <code>true</code> and {@link #getRemaining()} returns a positive value,
  19951. reset() is called before processing of the next data stream in the
  19952. concatenated data stream. {@link #finished()} will be reset and will
  19953. return <code>false</code> when reset() is called.]]>
  19954. </doc>
  19955. </method>
  19956. <method name="end"
  19957. abstract="true" native="false" synchronized="false"
  19958. static="false" final="false" visibility="public"
  19959. deprecated="not deprecated">
  19960. <doc>
  19961. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  19962. </doc>
  19963. </method>
  19964. <doc>
  19965. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  19966. plugged into a {@link CompressionInputStream} to compress data.
  19967. This is modelled after {@link java.util.zip.Inflater}]]>
  19968. </doc>
  19969. </interface>
  19970. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  19971. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  19972. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  19973. abstract="false"
  19974. static="false" final="false" visibility="public"
  19975. deprecated="not deprecated">
  19976. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  19977. static="false" final="false" visibility="public"
  19978. deprecated="not deprecated">
  19979. <exception name="IOException" type="java.io.IOException"/>
  19980. </constructor>
  19981. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  19982. static="false" final="false" visibility="public"
  19983. deprecated="not deprecated">
  19984. <exception name="IOException" type="java.io.IOException"/>
  19985. </constructor>
  19986. <constructor name="DecompressorStream" type="java.io.InputStream"
  19987. static="false" final="false" visibility="protected"
  19988. deprecated="not deprecated">
  19989. <exception name="IOException" type="java.io.IOException"/>
  19990. <doc>
  19991. <![CDATA[Allow derived classes to directly set the underlying stream.
  19992. @param in Underlying input stream.
  19993. @throws IOException]]>
  19994. </doc>
  19995. </constructor>
  19996. <method name="read" return="int"
  19997. abstract="false" native="false" synchronized="false"
  19998. static="false" final="false" visibility="public"
  19999. deprecated="not deprecated">
  20000. <exception name="IOException" type="java.io.IOException"/>
  20001. </method>
  20002. <method name="read" return="int"
  20003. abstract="false" native="false" synchronized="false"
  20004. static="false" final="false" visibility="public"
  20005. deprecated="not deprecated">
  20006. <param name="b" type="byte[]"/>
  20007. <param name="off" type="int"/>
  20008. <param name="len" type="int"/>
  20009. <exception name="IOException" type="java.io.IOException"/>
  20010. </method>
  20011. <method name="decompress" return="int"
  20012. abstract="false" native="false" synchronized="false"
  20013. static="false" final="false" visibility="protected"
  20014. deprecated="not deprecated">
  20015. <param name="b" type="byte[]"/>
  20016. <param name="off" type="int"/>
  20017. <param name="len" type="int"/>
  20018. <exception name="IOException" type="java.io.IOException"/>
  20019. </method>
  20020. <method name="getCompressedData" return="int"
  20021. abstract="false" native="false" synchronized="false"
  20022. static="false" final="false" visibility="protected"
  20023. deprecated="not deprecated">
  20024. <exception name="IOException" type="java.io.IOException"/>
  20025. </method>
  20026. <method name="checkStream"
  20027. abstract="false" native="false" synchronized="false"
  20028. static="false" final="false" visibility="protected"
  20029. deprecated="not deprecated">
  20030. <exception name="IOException" type="java.io.IOException"/>
  20031. </method>
  20032. <method name="resetState"
  20033. abstract="false" native="false" synchronized="false"
  20034. static="false" final="false" visibility="public"
  20035. deprecated="not deprecated">
  20036. <exception name="IOException" type="java.io.IOException"/>
  20037. </method>
  20038. <method name="skip" return="long"
  20039. abstract="false" native="false" synchronized="false"
  20040. static="false" final="false" visibility="public"
  20041. deprecated="not deprecated">
  20042. <param name="n" type="long"/>
  20043. <exception name="IOException" type="java.io.IOException"/>
  20044. </method>
  20045. <method name="available" return="int"
  20046. abstract="false" native="false" synchronized="false"
  20047. static="false" final="false" visibility="public"
  20048. deprecated="not deprecated">
  20049. <exception name="IOException" type="java.io.IOException"/>
  20050. </method>
  20051. <method name="close"
  20052. abstract="false" native="false" synchronized="false"
  20053. static="false" final="false" visibility="public"
  20054. deprecated="not deprecated">
  20055. <exception name="IOException" type="java.io.IOException"/>
  20056. </method>
  20057. <method name="markSupported" return="boolean"
  20058. abstract="false" native="false" synchronized="false"
  20059. static="false" final="false" visibility="public"
  20060. deprecated="not deprecated">
  20061. </method>
  20062. <method name="mark"
  20063. abstract="false" native="false" synchronized="true"
  20064. static="false" final="false" visibility="public"
  20065. deprecated="not deprecated">
  20066. <param name="readlimit" type="int"/>
  20067. </method>
  20068. <method name="reset"
  20069. abstract="false" native="false" synchronized="true"
  20070. static="false" final="false" visibility="public"
  20071. deprecated="not deprecated">
  20072. <exception name="IOException" type="java.io.IOException"/>
  20073. </method>
  20074. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  20075. transient="false" volatile="false"
  20076. static="false" final="false" visibility="protected"
  20077. deprecated="not deprecated">
  20078. </field>
  20079. <field name="buffer" type="byte[]"
  20080. transient="false" volatile="false"
  20081. static="false" final="false" visibility="protected"
  20082. deprecated="not deprecated">
  20083. </field>
  20084. <field name="eof" type="boolean"
  20085. transient="false" volatile="false"
  20086. static="false" final="false" visibility="protected"
  20087. deprecated="not deprecated">
  20088. </field>
  20089. <field name="closed" type="boolean"
  20090. transient="false" volatile="false"
  20091. static="false" final="false" visibility="protected"
  20092. deprecated="not deprecated">
  20093. </field>
  20094. </class>
  20095. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  20096. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  20097. <class name="DefaultCodec" extends="java.lang.Object"
  20098. abstract="false"
  20099. static="false" final="false" visibility="public"
  20100. deprecated="not deprecated">
  20101. <implements name="org.apache.hadoop.conf.Configurable"/>
  20102. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  20103. <implements name="org.apache.hadoop.io.compress.DirectDecompressionCodec"/>
  20104. <constructor name="DefaultCodec"
  20105. static="false" final="false" visibility="public"
  20106. deprecated="not deprecated">
  20107. </constructor>
  20108. <method name="setConf"
  20109. abstract="false" native="false" synchronized="false"
  20110. static="false" final="false" visibility="public"
  20111. deprecated="not deprecated">
  20112. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20113. </method>
  20114. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20115. abstract="false" native="false" synchronized="false"
  20116. static="false" final="false" visibility="public"
  20117. deprecated="not deprecated">
  20118. </method>
  20119. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20120. abstract="false" native="false" synchronized="false"
  20121. static="false" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. <param name="out" type="java.io.OutputStream"/>
  20124. <exception name="IOException" type="java.io.IOException"/>
  20125. </method>
  20126. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20127. abstract="false" native="false" synchronized="false"
  20128. static="false" final="false" visibility="public"
  20129. deprecated="not deprecated">
  20130. <param name="out" type="java.io.OutputStream"/>
  20131. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20132. <exception name="IOException" type="java.io.IOException"/>
  20133. </method>
  20134. <method name="getCompressorType" return="java.lang.Class"
  20135. abstract="false" native="false" synchronized="false"
  20136. static="false" final="false" visibility="public"
  20137. deprecated="not deprecated">
  20138. </method>
  20139. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20140. abstract="false" native="false" synchronized="false"
  20141. static="false" final="false" visibility="public"
  20142. deprecated="not deprecated">
  20143. </method>
  20144. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20145. abstract="false" native="false" synchronized="false"
  20146. static="false" final="false" visibility="public"
  20147. deprecated="not deprecated">
  20148. <param name="in" type="java.io.InputStream"/>
  20149. <exception name="IOException" type="java.io.IOException"/>
  20150. </method>
  20151. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20152. abstract="false" native="false" synchronized="false"
  20153. static="false" final="false" visibility="public"
  20154. deprecated="not deprecated">
  20155. <param name="in" type="java.io.InputStream"/>
  20156. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20157. <exception name="IOException" type="java.io.IOException"/>
  20158. </method>
  20159. <method name="getDecompressorType" return="java.lang.Class"
  20160. abstract="false" native="false" synchronized="false"
  20161. static="false" final="false" visibility="public"
  20162. deprecated="not deprecated">
  20163. </method>
  20164. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20165. abstract="false" native="false" synchronized="false"
  20166. static="false" final="false" visibility="public"
  20167. deprecated="not deprecated">
  20168. </method>
  20169. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  20170. abstract="false" native="false" synchronized="false"
  20171. static="false" final="false" visibility="public"
  20172. deprecated="not deprecated">
  20173. <doc>
  20174. <![CDATA[{@inheritDoc}]]>
  20175. </doc>
  20176. </method>
  20177. <method name="getDefaultExtension" return="java.lang.String"
  20178. abstract="false" native="false" synchronized="false"
  20179. static="false" final="false" visibility="public"
  20180. deprecated="not deprecated">
  20181. </method>
  20182. </class>
  20183. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  20184. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  20185. <interface name="DirectDecompressionCodec" abstract="true"
  20186. static="false" final="false" visibility="public"
  20187. deprecated="not deprecated">
  20188. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  20189. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  20190. abstract="true" native="false" synchronized="false"
  20191. static="false" final="false" visibility="public"
  20192. deprecated="not deprecated">
  20193. <doc>
  20194. <![CDATA[Create a new {@link DirectDecompressor} for use by this {@link DirectDecompressionCodec}.
  20195. @return a new direct decompressor for use by this codec]]>
  20196. </doc>
  20197. </method>
  20198. <doc>
  20199. <![CDATA[This class encapsulates a codec which can decompress direct bytebuffers.]]>
  20200. </doc>
  20201. </interface>
  20202. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressionCodec -->
  20203. <!-- start interface org.apache.hadoop.io.compress.DirectDecompressor -->
  20204. <interface name="DirectDecompressor" abstract="true"
  20205. static="false" final="false" visibility="public"
  20206. deprecated="not deprecated">
  20207. <method name="decompress"
  20208. abstract="true" native="false" synchronized="false"
  20209. static="false" final="false" visibility="public"
  20210. deprecated="not deprecated">
  20211. <param name="src" type="java.nio.ByteBuffer"/>
  20212. <param name="dst" type="java.nio.ByteBuffer"/>
  20213. <exception name="IOException" type="java.io.IOException"/>
  20214. </method>
  20215. <doc>
  20216. <![CDATA[Specification of a direct ByteBuffer 'de-compressor'.]]>
  20217. </doc>
  20218. </interface>
  20219. <!-- end interface org.apache.hadoop.io.compress.DirectDecompressor -->
  20220. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  20221. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  20222. abstract="false"
  20223. static="false" final="false" visibility="public"
  20224. deprecated="not deprecated">
  20225. <constructor name="GzipCodec"
  20226. static="false" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. </constructor>
  20229. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20230. abstract="false" native="false" synchronized="false"
  20231. static="false" final="false" visibility="public"
  20232. deprecated="not deprecated">
  20233. <param name="out" type="java.io.OutputStream"/>
  20234. <exception name="IOException" type="java.io.IOException"/>
  20235. </method>
  20236. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20237. abstract="false" native="false" synchronized="false"
  20238. static="false" final="false" visibility="public"
  20239. deprecated="not deprecated">
  20240. <param name="out" type="java.io.OutputStream"/>
  20241. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20242. <exception name="IOException" type="java.io.IOException"/>
  20243. </method>
  20244. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20245. abstract="false" native="false" synchronized="false"
  20246. static="false" final="false" visibility="public"
  20247. deprecated="not deprecated">
  20248. </method>
  20249. <method name="getCompressorType" return="java.lang.Class"
  20250. abstract="false" native="false" synchronized="false"
  20251. static="false" final="false" visibility="public"
  20252. deprecated="not deprecated">
  20253. </method>
  20254. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20255. abstract="false" native="false" synchronized="false"
  20256. static="false" final="false" visibility="public"
  20257. deprecated="not deprecated">
  20258. <param name="in" type="java.io.InputStream"/>
  20259. <exception name="IOException" type="java.io.IOException"/>
  20260. </method>
  20261. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20262. abstract="false" native="false" synchronized="false"
  20263. static="false" final="false" visibility="public"
  20264. deprecated="not deprecated">
  20265. <param name="in" type="java.io.InputStream"/>
  20266. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20267. <exception name="IOException" type="java.io.IOException"/>
  20268. </method>
  20269. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20270. abstract="false" native="false" synchronized="false"
  20271. static="false" final="false" visibility="public"
  20272. deprecated="not deprecated">
  20273. </method>
  20274. <method name="getDecompressorType" return="java.lang.Class"
  20275. abstract="false" native="false" synchronized="false"
  20276. static="false" final="false" visibility="public"
  20277. deprecated="not deprecated">
  20278. </method>
  20279. <method name="createDirectDecompressor" return="org.apache.hadoop.io.compress.DirectDecompressor"
  20280. abstract="false" native="false" synchronized="false"
  20281. static="false" final="false" visibility="public"
  20282. deprecated="not deprecated">
  20283. </method>
  20284. <method name="getDefaultExtension" return="java.lang.String"
  20285. abstract="false" native="false" synchronized="false"
  20286. static="false" final="false" visibility="public"
  20287. deprecated="not deprecated">
  20288. </method>
  20289. <doc>
  20290. <![CDATA[This class creates gzip compressors/decompressors.]]>
  20291. </doc>
  20292. </class>
  20293. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  20294. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  20295. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  20296. abstract="true"
  20297. static="false" final="false" visibility="public"
  20298. deprecated="not deprecated">
  20299. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  20300. static="false" final="false" visibility="public"
  20301. deprecated="not deprecated">
  20302. <exception name="IOException" type="java.io.IOException"/>
  20303. </constructor>
  20304. <method name="setStart"
  20305. abstract="false" native="false" synchronized="false"
  20306. static="false" final="false" visibility="protected"
  20307. deprecated="not deprecated">
  20308. <param name="start" type="long"/>
  20309. </method>
  20310. <method name="setEnd"
  20311. abstract="false" native="false" synchronized="false"
  20312. static="false" final="false" visibility="protected"
  20313. deprecated="not deprecated">
  20314. <param name="end" type="long"/>
  20315. </method>
  20316. <method name="getAdjustedStart" return="long"
  20317. abstract="false" native="false" synchronized="false"
  20318. static="false" final="false" visibility="public"
  20319. deprecated="not deprecated">
  20320. <doc>
  20321. <![CDATA[After calling createInputStream, the values of start or end
  20322. might change. So this method can be used to get the new value of start.
  20323. @return The changed value of start]]>
  20324. </doc>
  20325. </method>
  20326. <method name="getAdjustedEnd" return="long"
  20327. abstract="false" native="false" synchronized="false"
  20328. static="false" final="false" visibility="public"
  20329. deprecated="not deprecated">
  20330. <doc>
  20331. <![CDATA[After calling createInputStream, the values of start or end
  20332. might change. So this method can be used to get the new value of end.
  20333. @return The changed value of end]]>
  20334. </doc>
  20335. </method>
  20336. <doc>
  20337. <![CDATA[An InputStream covering a range of compressed data. The start and end
  20338. offsets requested by a client may be modified by the codec to fit block
  20339. boundaries or other algorithm-dependent requirements.]]>
  20340. </doc>
  20341. </class>
  20342. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  20343. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  20344. <interface name="SplittableCompressionCodec" abstract="true"
  20345. static="false" final="false" visibility="public"
  20346. deprecated="not deprecated">
  20347. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  20348. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  20349. abstract="true" native="false" synchronized="false"
  20350. static="false" final="false" visibility="public"
  20351. deprecated="not deprecated">
  20352. <param name="seekableIn" type="java.io.InputStream"/>
  20353. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20354. <param name="start" type="long"/>
  20355. <param name="end" type="long"/>
  20356. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  20357. <exception name="IOException" type="java.io.IOException"/>
  20358. <doc>
  20359. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  20360. the codecs wants the ability to work with the underlying stream positions.
  20361. @param seekableIn The seekable input stream (seeks in compressed data)
  20362. @param start The start offset into the compressed stream. May be changed
  20363. by the underlying codec.
  20364. @param end The end offset into the compressed stream. May be changed by
  20365. the underlying codec.
  20366. @param readMode Controls whether stream position is reported continuously
  20367. from the compressed stream only only at block boundaries.
  20368. @return a stream to read uncompressed bytes from]]>
  20369. </doc>
  20370. </method>
  20371. <doc>
  20372. <![CDATA[This interface is meant to be implemented by those compression codecs
  20373. which are capable to compress / de-compress a stream starting at any
  20374. arbitrary position.
  20375. Especially the process of de-compressing a stream starting at some arbitrary
  20376. position is challenging. Most of the codecs are only able to successfully
  20377. de-compress a stream, if they start from the very beginning till the end.
  20378. One of the reasons is the stored state at the beginning of the stream which
  20379. is crucial for de-compression.
  20380. Yet there are few codecs which do not save the whole state at the beginning
  20381. of the stream and hence can be used to de-compress stream starting at any
  20382. arbitrary points. This interface is meant to be used by such codecs. Such
  20383. codecs are highly valuable, especially in the context of Hadoop, because
  20384. an input compressed file can be split and hence can be worked on by multiple
  20385. machines in parallel.]]>
  20386. </doc>
  20387. </interface>
  20388. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  20389. </package>
  20390. <package name="org.apache.hadoop.io.file.tfile">
  20391. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  20392. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  20393. abstract="false"
  20394. static="false" final="false" visibility="public"
  20395. deprecated="not deprecated">
  20396. <doc>
  20397. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  20398. </doc>
  20399. </class>
  20400. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  20401. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  20402. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  20403. abstract="false"
  20404. static="false" final="false" visibility="public"
  20405. deprecated="not deprecated">
  20406. <doc>
  20407. <![CDATA[Exception - No such Meta Block with the given name.]]>
  20408. </doc>
  20409. </class>
  20410. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  20411. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  20412. <interface name="RawComparable" abstract="true"
  20413. static="false" final="false" visibility="public"
  20414. deprecated="not deprecated">
  20415. <method name="buffer" return="byte[]"
  20416. abstract="true" native="false" synchronized="false"
  20417. static="false" final="false" visibility="public"
  20418. deprecated="not deprecated">
  20419. <doc>
  20420. <![CDATA[Get the underlying byte array.
  20421. @return The underlying byte array.]]>
  20422. </doc>
  20423. </method>
  20424. <method name="offset" return="int"
  20425. abstract="true" native="false" synchronized="false"
  20426. static="false" final="false" visibility="public"
  20427. deprecated="not deprecated">
  20428. <doc>
  20429. <![CDATA[Get the offset of the first byte in the byte array.
  20430. @return The offset of the first byte in the byte array.]]>
  20431. </doc>
  20432. </method>
  20433. <method name="size" return="int"
  20434. abstract="true" native="false" synchronized="false"
  20435. static="false" final="false" visibility="public"
  20436. deprecated="not deprecated">
  20437. <doc>
  20438. <![CDATA[Get the size of the byte range in the byte array.
  20439. @return The size of the byte range in the byte array.]]>
  20440. </doc>
  20441. </method>
  20442. <doc>
  20443. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  20444. This is useful in places where we need a single object reference to specify a
  20445. range of bytes in a byte array, such as {@link Comparable} or
  20446. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  20447. The actual comparison among RawComparable's requires an external
  20448. RawComparator and it is applications' responsibility to ensure two
  20449. RawComparable are supposed to be semantically comparable with the same
  20450. RawComparator.]]>
  20451. </doc>
  20452. </interface>
  20453. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  20454. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  20455. <class name="TFile" extends="java.lang.Object"
  20456. abstract="false"
  20457. static="false" final="false" visibility="public"
  20458. deprecated="not deprecated">
  20459. <method name="makeComparator" return="java.util.Comparator"
  20460. abstract="false" native="false" synchronized="false"
  20461. static="true" final="false" visibility="public"
  20462. deprecated="not deprecated">
  20463. <param name="name" type="java.lang.String"/>
  20464. <doc>
  20465. <![CDATA[Make a raw comparator from a string name.
  20466. @param name
  20467. Comparator name
  20468. @return A RawComparable comparator.]]>
  20469. </doc>
  20470. </method>
  20471. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  20472. abstract="false" native="false" synchronized="false"
  20473. static="true" final="false" visibility="public"
  20474. deprecated="not deprecated">
  20475. <doc>
  20476. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  20477. TFile.Writer.
  20478. @return Array of strings, each represents a supported compression
  20479. algorithm. Currently, the following compression algorithms are
  20480. supported.
  20481. <ul>
  20482. <li>"none" - No compression.
  20483. <li>"lzo" - LZO compression.
  20484. <li>"gz" - GZIP compression.
  20485. </ul>]]>
  20486. </doc>
  20487. </method>
  20488. <method name="main"
  20489. abstract="false" native="false" synchronized="false"
  20490. static="true" final="false" visibility="public"
  20491. deprecated="not deprecated">
  20492. <param name="args" type="java.lang.String[]"/>
  20493. <doc>
  20494. <![CDATA[Dumping the TFile information.
  20495. @param args
  20496. A list of TFile paths.]]>
  20497. </doc>
  20498. </method>
  20499. <field name="COMPRESSION_GZ" type="java.lang.String"
  20500. transient="false" volatile="false"
  20501. static="true" final="true" visibility="public"
  20502. deprecated="not deprecated">
  20503. <doc>
  20504. <![CDATA[compression: gzip]]>
  20505. </doc>
  20506. </field>
  20507. <field name="COMPRESSION_LZO" type="java.lang.String"
  20508. transient="false" volatile="false"
  20509. static="true" final="true" visibility="public"
  20510. deprecated="not deprecated">
  20511. <doc>
  20512. <![CDATA[compression: lzo]]>
  20513. </doc>
  20514. </field>
  20515. <field name="COMPRESSION_NONE" type="java.lang.String"
  20516. transient="false" volatile="false"
  20517. static="true" final="true" visibility="public"
  20518. deprecated="not deprecated">
  20519. <doc>
  20520. <![CDATA[compression: none]]>
  20521. </doc>
  20522. </field>
  20523. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  20524. transient="false" volatile="false"
  20525. static="true" final="true" visibility="public"
  20526. deprecated="not deprecated">
  20527. <doc>
  20528. <![CDATA[comparator: memcmp]]>
  20529. </doc>
  20530. </field>
  20531. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  20532. transient="false" volatile="false"
  20533. static="true" final="true" visibility="public"
  20534. deprecated="not deprecated">
  20535. <doc>
  20536. <![CDATA[comparator prefix: java class]]>
  20537. </doc>
  20538. </field>
  20539. <doc>
  20540. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  20541. bytes. Keys are restricted to 64KB, value length is not restricted
  20542. (practically limited to the available disk storage). TFile further provides
  20543. the following features:
  20544. <ul>
  20545. <li>Block Compression.
  20546. <li>Named meta data blocks.
  20547. <li>Sorted or unsorted keys.
  20548. <li>Seek by key or by file offset.
  20549. </ul>
  20550. The memory footprint of a TFile includes the following:
  20551. <ul>
  20552. <li>Some constant overhead of reading or writing a compressed block.
  20553. <ul>
  20554. <li>Each compressed block requires one compression/decompression codec for
  20555. I/O.
  20556. <li>Temporary space to buffer the key.
  20557. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  20558. chunk encoded, so that we buffer at most one chunk of user data. By default,
  20559. the chunk buffer is 1MB. Reading chunked value does not require additional
  20560. memory.
  20561. </ul>
  20562. <li>TFile index, which is proportional to the total number of Data Blocks.
  20563. The total amount of memory needed to hold the index can be estimated as
  20564. (56+AvgKeySize)*NumBlocks.
  20565. <li>MetaBlock index, which is proportional to the total number of Meta
  20566. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  20567. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  20568. </ul>
  20569. <p>
  20570. The behavior of TFile can be customized by the following variables through
  20571. Configuration:
  20572. <ul>
  20573. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  20574. to 1MB. Values of the length less than the chunk size is guaranteed to have
  20575. known value length in read time (See
  20576. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  20577. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  20578. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  20579. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  20580. FSDataInputStream. Integer (in bytes). Default to 256KB.
  20581. </ul>
  20582. <p>
  20583. Suggestions on performance optimization.
  20584. <ul>
  20585. <li>Minimum block size. We recommend a setting of minimum block size between
  20586. 256KB to 1MB for general usage. Larger block size is preferred if files are
  20587. primarily for sequential access. However, it would lead to inefficient random
  20588. access (because there are more data to decompress). Smaller blocks are good
  20589. for random access, but require more memory to hold the block index, and may
  20590. be slower to create (because we must flush the compressor stream at the
  20591. conclusion of each data block, which leads to an FS I/O flush). Further, due
  20592. to the internal caching in Compression codec, the smallest possible block
  20593. size would be around 20KB-30KB.
  20594. <li>The current implementation does not offer true multi-threading for
  20595. reading. The implementation uses FSDataInputStream seek()+read(), which is
  20596. shown to be much faster than positioned-read call in single thread mode.
  20597. However, it also means that if multiple threads attempt to access the same
  20598. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  20599. sequentially even if they access different DFS blocks.
  20600. <li>Compression codec. Use "none" if the data is not very compressable (by
  20601. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  20602. as the starting point for experimenting. "gz" overs slightly better
  20603. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  20604. decompress, comparing to "lzo".
  20605. <li>File system buffering, if the underlying FSDataInputStream and
  20606. FSDataOutputStream is already adequately buffered; or if applications
  20607. reads/writes keys and values in large buffers, we can reduce the sizes of
  20608. input/output buffering in TFile layer by setting the configuration parameters
  20609. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  20610. </ul>
  20611. Some design rationale behind TFile can be found at <a
  20612. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  20613. </doc>
  20614. </class>
  20615. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  20616. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  20617. <class name="Utils" extends="java.lang.Object"
  20618. abstract="false"
  20619. static="false" final="true" visibility="public"
  20620. deprecated="not deprecated">
  20621. <method name="writeVInt"
  20622. abstract="false" native="false" synchronized="false"
  20623. static="true" final="false" visibility="public"
  20624. deprecated="not deprecated">
  20625. <param name="out" type="java.io.DataOutput"/>
  20626. <param name="n" type="int"/>
  20627. <exception name="IOException" type="java.io.IOException"/>
  20628. <doc>
  20629. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  20630. <code>Utils#writeVLong(out, n)</code>.
  20631. @param out
  20632. output stream
  20633. @param n
  20634. The integer to be encoded
  20635. @throws IOException
  20636. @see Utils#writeVLong(DataOutput, long)]]>
  20637. </doc>
  20638. </method>
  20639. <method name="writeVLong"
  20640. abstract="false" native="false" synchronized="false"
  20641. static="true" final="false" visibility="public"
  20642. deprecated="not deprecated">
  20643. <param name="out" type="java.io.DataOutput"/>
  20644. <param name="n" type="long"/>
  20645. <exception name="IOException" type="java.io.IOException"/>
  20646. <doc>
  20647. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  20648. <ul>
  20649. <li>if n in [-32, 127): encode in one byte with the actual value.
  20650. Otherwise,
  20651. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  20652. byte[1]=n&0xff. Otherwise,
  20653. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  20654. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  20655. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  20656. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  20657. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  20658. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  20659. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  20660. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  20661. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  20662. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  20663. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  20664. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  20665. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  20666. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  20667. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  20668. byte[7]=n&0xff;
  20669. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  20670. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  20671. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  20672. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  20673. </ul>
  20674. @param out
  20675. output stream
  20676. @param n
  20677. the integer number
  20678. @throws IOException]]>
  20679. </doc>
  20680. </method>
  20681. <method name="readVInt" return="int"
  20682. abstract="false" native="false" synchronized="false"
  20683. static="true" final="false" visibility="public"
  20684. deprecated="not deprecated">
  20685. <param name="in" type="java.io.DataInput"/>
  20686. <exception name="IOException" type="java.io.IOException"/>
  20687. <doc>
  20688. <![CDATA[Decoding the variable-length integer. Synonymous to
  20689. <code>(int)Utils#readVLong(in)</code>.
  20690. @param in
  20691. input stream
  20692. @return the decoded integer
  20693. @throws IOException
  20694. @see Utils#readVLong(DataInput)]]>
  20695. </doc>
  20696. </method>
  20697. <method name="readVLong" return="long"
  20698. abstract="false" native="false" synchronized="false"
  20699. static="true" final="false" visibility="public"
  20700. deprecated="not deprecated">
  20701. <param name="in" type="java.io.DataInput"/>
  20702. <exception name="IOException" type="java.io.IOException"/>
  20703. <doc>
  20704. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  20705. is FB, and the following bytes are NB[*].
  20706. <ul>
  20707. <li>if (FB >= -32), return (long)FB;
  20708. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  20709. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  20710. NB[1]&0xff;
  20711. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  20712. (NB[1]&0xff)<<8 + NB[2]&0xff;
  20713. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  20714. big-endian integer.
  20715. @param in
  20716. input stream
  20717. @return the decoded long integer.
  20718. @throws IOException]]>
  20719. </doc>
  20720. </method>
  20721. <method name="writeString"
  20722. abstract="false" native="false" synchronized="false"
  20723. static="true" final="false" visibility="public"
  20724. deprecated="not deprecated">
  20725. <param name="out" type="java.io.DataOutput"/>
  20726. <param name="s" type="java.lang.String"/>
  20727. <exception name="IOException" type="java.io.IOException"/>
  20728. <doc>
  20729. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  20730. @param out
  20731. @param s
  20732. @throws IOException]]>
  20733. </doc>
  20734. </method>
  20735. <method name="readString" return="java.lang.String"
  20736. abstract="false" native="false" synchronized="false"
  20737. static="true" final="false" visibility="public"
  20738. deprecated="not deprecated">
  20739. <param name="in" type="java.io.DataInput"/>
  20740. <exception name="IOException" type="java.io.IOException"/>
  20741. <doc>
  20742. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  20743. @param in
  20744. The input stream.
  20745. @return The string
  20746. @throws IOException]]>
  20747. </doc>
  20748. </method>
  20749. <method name="lowerBound" return="int"
  20750. abstract="false" native="false" synchronized="false"
  20751. static="true" final="false" visibility="public"
  20752. deprecated="not deprecated">
  20753. <param name="list" type="java.util.List"/>
  20754. <param name="key" type="T"/>
  20755. <param name="cmp" type="java.util.Comparator"/>
  20756. <doc>
  20757. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20758. that compares greater than or equal to key.
  20759. @param <T>
  20760. Type of the input key.
  20761. @param list
  20762. The list
  20763. @param key
  20764. The input key.
  20765. @param cmp
  20766. Comparator for the key.
  20767. @return The index to the desired element if it exists; or list.size()
  20768. otherwise.]]>
  20769. </doc>
  20770. </method>
  20771. <method name="upperBound" return="int"
  20772. abstract="false" native="false" synchronized="false"
  20773. static="true" final="false" visibility="public"
  20774. deprecated="not deprecated">
  20775. <param name="list" type="java.util.List"/>
  20776. <param name="key" type="T"/>
  20777. <param name="cmp" type="java.util.Comparator"/>
  20778. <doc>
  20779. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20780. that compares greater than the input key.
  20781. @param <T>
  20782. Type of the input key.
  20783. @param list
  20784. The list
  20785. @param key
  20786. The input key.
  20787. @param cmp
  20788. Comparator for the key.
  20789. @return The index to the desired element if it exists; or list.size()
  20790. otherwise.]]>
  20791. </doc>
  20792. </method>
  20793. <method name="lowerBound" return="int"
  20794. abstract="false" native="false" synchronized="false"
  20795. static="true" final="false" visibility="public"
  20796. deprecated="not deprecated">
  20797. <param name="list" type="java.util.List"/>
  20798. <param name="key" type="T"/>
  20799. <doc>
  20800. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20801. that compares greater than or equal to key.
  20802. @param <T>
  20803. Type of the input key.
  20804. @param list
  20805. The list
  20806. @param key
  20807. The input key.
  20808. @return The index to the desired element if it exists; or list.size()
  20809. otherwise.]]>
  20810. </doc>
  20811. </method>
  20812. <method name="upperBound" return="int"
  20813. abstract="false" native="false" synchronized="false"
  20814. static="true" final="false" visibility="public"
  20815. deprecated="not deprecated">
  20816. <param name="list" type="java.util.List"/>
  20817. <param name="key" type="T"/>
  20818. <doc>
  20819. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20820. that compares greater than the input key.
  20821. @param <T>
  20822. Type of the input key.
  20823. @param list
  20824. The list
  20825. @param key
  20826. The input key.
  20827. @return The index to the desired element if it exists; or list.size()
  20828. otherwise.]]>
  20829. </doc>
  20830. </method>
  20831. <doc>
  20832. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  20833. </doc>
  20834. </class>
  20835. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  20836. </package>
  20837. <package name="org.apache.hadoop.io.serializer">
  20838. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  20839. <class name="JavaSerialization" extends="java.lang.Object"
  20840. abstract="false"
  20841. static="false" final="false" visibility="public"
  20842. deprecated="not deprecated">
  20843. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  20844. <constructor name="JavaSerialization"
  20845. static="false" final="false" visibility="public"
  20846. deprecated="not deprecated">
  20847. </constructor>
  20848. <doc>
  20849. <![CDATA[<p>
  20850. An experimental {@link Serialization} for Java {@link Serializable} classes.
  20851. </p>
  20852. @see JavaSerializationComparator]]>
  20853. </doc>
  20854. </class>
  20855. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  20856. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  20857. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  20858. abstract="false"
  20859. static="false" final="false" visibility="public"
  20860. deprecated="not deprecated">
  20861. <constructor name="JavaSerializationComparator"
  20862. static="false" final="false" visibility="public"
  20863. deprecated="not deprecated">
  20864. <exception name="IOException" type="java.io.IOException"/>
  20865. </constructor>
  20866. <doc>
  20867. <![CDATA[<p>
  20868. A {@link RawComparator} that uses a {@link JavaSerialization}
  20869. {@link Deserializer} to deserialize objects that are then compared via
  20870. their {@link Comparable} interfaces.
  20871. </p>
  20872. @param <T>
  20873. @see JavaSerialization]]>
  20874. </doc>
  20875. </class>
  20876. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  20877. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  20878. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  20879. abstract="false"
  20880. static="false" final="false" visibility="public"
  20881. deprecated="not deprecated">
  20882. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  20883. <constructor name="WritableSerialization"
  20884. static="false" final="false" visibility="public"
  20885. deprecated="not deprecated">
  20886. </constructor>
  20887. <doc>
  20888. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  20889. {@link Writable#write(java.io.DataOutput)} and
  20890. {@link Writable#readFields(java.io.DataInput)}.]]>
  20891. </doc>
  20892. </class>
  20893. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  20894. <doc>
  20895. <![CDATA[<p>
  20896. This package provides a mechanism for using different serialization frameworks
  20897. in Hadoop. The property "io.serializations" defines a list of
  20898. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  20899. {@link org.apache.hadoop.io.serializer.Serializer}s and
  20900. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  20901. </p>
  20902. <p>
  20903. To add a new serialization framework write an implementation of
  20904. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  20905. "io.serializations" property.
  20906. </p>]]>
  20907. </doc>
  20908. </package>
  20909. <package name="org.apache.hadoop.io.serializer.avro">
  20910. <!-- start interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  20911. <interface name="AvroReflectSerializable" abstract="true"
  20912. static="false" final="false" visibility="public"
  20913. deprecated="not deprecated">
  20914. <doc>
  20915. <![CDATA[Tag interface for Avro 'reflect' serializable classes. Classes implementing
  20916. this interface can be serialized/deserialized using
  20917. {@link AvroReflectSerialization}.]]>
  20918. </doc>
  20919. </interface>
  20920. <!-- end interface org.apache.hadoop.io.serializer.avro.AvroReflectSerializable -->
  20921. <!-- start class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  20922. <class name="AvroReflectSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  20923. abstract="false"
  20924. static="false" final="false" visibility="public"
  20925. deprecated="not deprecated">
  20926. <constructor name="AvroReflectSerialization"
  20927. static="false" final="false" visibility="public"
  20928. deprecated="not deprecated">
  20929. </constructor>
  20930. <field name="AVRO_REFLECT_PACKAGES" type="java.lang.String"
  20931. transient="false" volatile="false"
  20932. static="true" final="true" visibility="public"
  20933. deprecated="not deprecated">
  20934. <doc>
  20935. <![CDATA[Key to configure packages that contain classes to be serialized and
  20936. deserialized using this class. Multiple packages can be specified using
  20937. comma-separated list.]]>
  20938. </doc>
  20939. </field>
  20940. <doc>
  20941. <![CDATA[Serialization for Avro Reflect classes. For a class to be accepted by this
  20942. serialization, it must either be in the package list configured via
  20943. <code>avro.reflect.pkgs</code> or implement
  20944. {@link AvroReflectSerializable} interface.]]>
  20945. </doc>
  20946. </class>
  20947. <!-- end class org.apache.hadoop.io.serializer.avro.AvroReflectSerialization -->
  20948. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  20949. <class name="AvroSerialization" extends="org.apache.hadoop.conf.Configured"
  20950. abstract="true"
  20951. static="false" final="false" visibility="public"
  20952. deprecated="not deprecated">
  20953. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  20954. <constructor name="AvroSerialization"
  20955. static="false" final="false" visibility="public"
  20956. deprecated="not deprecated">
  20957. </constructor>
  20958. <field name="AVRO_SCHEMA_KEY" type="java.lang.String"
  20959. transient="false" volatile="false"
  20960. static="true" final="true" visibility="public"
  20961. deprecated="not deprecated">
  20962. </field>
  20963. <doc>
  20964. <![CDATA[Base class for providing serialization to Avro types.]]>
  20965. </doc>
  20966. </class>
  20967. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSerialization -->
  20968. <!-- start class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  20969. <class name="AvroSpecificSerialization" extends="org.apache.hadoop.io.serializer.avro.AvroSerialization"
  20970. abstract="false"
  20971. static="false" final="false" visibility="public"
  20972. deprecated="not deprecated">
  20973. <constructor name="AvroSpecificSerialization"
  20974. static="false" final="false" visibility="public"
  20975. deprecated="not deprecated">
  20976. </constructor>
  20977. <doc>
  20978. <![CDATA[Serialization for Avro Specific classes. This serialization is to be used
  20979. for classes generated by Avro's 'specific' compiler.]]>
  20980. </doc>
  20981. </class>
  20982. <!-- end class org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization -->
  20983. <doc>
  20984. <![CDATA[<p>
  20985. This package provides Avro serialization in Hadoop. This can be used to
  20986. serialize/deserialize Avro types in Hadoop.
  20987. </p>
  20988. <p>
  20989. Use {@link org.apache.hadoop.io.serializer.avro.AvroSpecificSerialization} for
  20990. serialization of classes generated by Avro's 'specific' compiler.
  20991. </p>
  20992. <p>
  20993. Use {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} for
  20994. other classes.
  20995. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization} work for
  20996. any class which is either in the package list configured via
  20997. {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerialization#AVRO_REFLECT_PACKAGES}
  20998. or implement {@link org.apache.hadoop.io.serializer.avro.AvroReflectSerializable}
  20999. interface.
  21000. </p>]]>
  21001. </doc>
  21002. </package>
  21003. <package name="org.apache.hadoop.ipc.protocolPB">
  21004. </package>
  21005. <package name="org.apache.hadoop.jmx">
  21006. </package>
  21007. <package name="org.apache.hadoop.log">
  21008. </package>
  21009. <package name="org.apache.hadoop.log.metrics">
  21010. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  21011. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  21012. abstract="false"
  21013. static="false" final="false" visibility="public"
  21014. deprecated="not deprecated">
  21015. <constructor name="EventCounter"
  21016. static="false" final="false" visibility="public"
  21017. deprecated="not deprecated">
  21018. </constructor>
  21019. <method name="append"
  21020. abstract="false" native="false" synchronized="false"
  21021. static="false" final="false" visibility="public"
  21022. deprecated="not deprecated">
  21023. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  21024. </method>
  21025. <method name="close"
  21026. abstract="false" native="false" synchronized="false"
  21027. static="false" final="false" visibility="public"
  21028. deprecated="not deprecated">
  21029. </method>
  21030. <method name="requiresLayout" return="boolean"
  21031. abstract="false" native="false" synchronized="false"
  21032. static="false" final="false" visibility="public"
  21033. deprecated="not deprecated">
  21034. </method>
  21035. <doc>
  21036. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  21037. fatal, error and warn. The class name is used in log4j.properties]]>
  21038. </doc>
  21039. </class>
  21040. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  21041. </package>
  21042. <package name="org.apache.hadoop.metrics">
  21043. <doc>
  21044. <![CDATA[This package defines an API for reporting performance metric information.
  21045. <p/>
  21046. The API is abstract so that it can be implemented on top of
  21047. a variety of metrics client libraries. The choice of
  21048. client library is a configuration option, and different
  21049. modules within the same application can use
  21050. different metrics implementation libraries.
  21051. <p/>
  21052. Sub-packages:
  21053. <dl>
  21054. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  21055. <dd>The abstract Server Provider Interface package. Those wishing to
  21056. integrate the metrics API with a particular metrics client library should
  21057. extend this package.</dd>
  21058. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  21059. <dd>An implementation package which writes the metric data to
  21060. a file, or sends it to the standard output stream.</dd>
  21061. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  21062. <dd>An implementation package which sends metric data to
  21063. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  21064. </dl>
  21065. <h3>Introduction to the Metrics API</h3>
  21066. Here is a simple example of how to use this package to report a single
  21067. metric value:
  21068. <pre>
  21069. private ContextFactory contextFactory = ContextFactory.getFactory();
  21070. void reportMyMetric(float myMetric) {
  21071. MetricsContext myContext = contextFactory.getContext("myContext");
  21072. MetricsRecord myRecord = myContext.getRecord("myRecord");
  21073. myRecord.setMetric("myMetric", myMetric);
  21074. myRecord.update();
  21075. }
  21076. </pre>
  21077. In this example there are three names:
  21078. <dl>
  21079. <dt><i>myContext</i></dt>
  21080. <dd>The context name will typically identify either the application, or else a
  21081. module within an application or library.</dd>
  21082. <dt><i>myRecord</i></dt>
  21083. <dd>The record name generally identifies some entity for which a set of
  21084. metrics are to be reported. For example, you could have a record named
  21085. "cacheStats" for reporting a number of statistics relating to the usage of
  21086. some cache in your application.</dd>
  21087. <dt><i>myMetric</i></dt>
  21088. <dd>This identifies a particular metric. For example, you might have metrics
  21089. named "cache_hits" and "cache_misses".
  21090. </dd>
  21091. </dl>
  21092. <h3>Tags</h3>
  21093. In some cases it is useful to have multiple records with the same name. For
  21094. example, suppose that you want to report statistics about each disk on a computer.
  21095. In this case, the record name would be something like "diskStats", but you also
  21096. need to identify the disk which is done by adding a <i>tag</i> to the record.
  21097. The code could look something like this:
  21098. <pre>
  21099. private MetricsRecord diskStats =
  21100. contextFactory.getContext("myContext").getRecord("diskStats");
  21101. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  21102. diskStats.setTag("diskName", diskName);
  21103. diskStats.setMetric("diskBusy", diskBusy);
  21104. diskStats.setMetric("diskUsed", diskUsed);
  21105. diskStats.update();
  21106. }
  21107. </pre>
  21108. <h3>Buffering and Callbacks</h3>
  21109. Data is not sent immediately to the metrics system when
  21110. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  21111. internal table, and the contents of the table are sent periodically.
  21112. This can be important for two reasons:
  21113. <ol>
  21114. <li>It means that a programmer is free to put calls to this API in an
  21115. inner loop, since updates can be very frequent without slowing down
  21116. the application significantly.</li>
  21117. <li>Some implementations can gain efficiency by combining many metrics
  21118. into a single UDP message.</li>
  21119. </ol>
  21120. The API provides a timer-based callback via the
  21121. <code>registerUpdater()</code> method. The benefit of this
  21122. versus using <code>java.util.Timer</code> is that the callbacks will be done
  21123. immediately before sending the data, making the data as current as possible.
  21124. <h3>Configuration</h3>
  21125. It is possible to programmatically examine and modify configuration data
  21126. before creating a context, like this:
  21127. <pre>
  21128. ContextFactory factory = ContextFactory.getFactory();
  21129. ... examine and/or modify factory attributes ...
  21130. MetricsContext context = factory.getContext("myContext");
  21131. </pre>
  21132. The factory attributes can be examined and modified using the following
  21133. <code>ContextFactory</code>methods:
  21134. <ul>
  21135. <li><code>Object getAttribute(String attributeName)</code></li>
  21136. <li><code>String[] getAttributeNames()</code></li>
  21137. <li><code>void setAttribute(String name, Object value)</code></li>
  21138. <li><code>void removeAttribute(attributeName)</code></li>
  21139. </ul>
  21140. <p/>
  21141. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  21142. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  21143. on the class path.
  21144. <p/>
  21145. A factory attribute named:
  21146. <pre>
  21147. <i>contextName</i>.class
  21148. </pre>
  21149. should have as its value the fully qualified name of the class to be
  21150. instantiated by a call of the <code>CodeFactory</code> method
  21151. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  21152. specified, the default is to instantiate
  21153. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  21154. <p/>
  21155. Other factory attributes are specific to a particular implementation of this
  21156. API and are documented elsewhere. For example, configuration attributes for
  21157. the file and Ganglia implementations can be found in the javadoc for
  21158. their respective packages.]]>
  21159. </doc>
  21160. </package>
  21161. <package name="org.apache.hadoop.metrics.ganglia">
  21162. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  21163. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21164. abstract="false"
  21165. static="false" final="false" visibility="public"
  21166. deprecated="not deprecated">
  21167. <constructor name="GangliaContext"
  21168. static="false" final="false" visibility="public"
  21169. deprecated="not deprecated">
  21170. <doc>
  21171. <![CDATA[Creates a new instance of GangliaContext]]>
  21172. </doc>
  21173. </constructor>
  21174. <method name="close"
  21175. abstract="false" native="false" synchronized="false"
  21176. static="false" final="false" visibility="public"
  21177. deprecated="not deprecated">
  21178. <doc>
  21179. <![CDATA[method to close the datagram socket]]>
  21180. </doc>
  21181. </method>
  21182. <method name="emitMetric"
  21183. abstract="false" native="false" synchronized="false"
  21184. static="false" final="false" visibility="protected"
  21185. deprecated="not deprecated">
  21186. <param name="name" type="java.lang.String"/>
  21187. <param name="type" type="java.lang.String"/>
  21188. <param name="value" type="java.lang.String"/>
  21189. <exception name="IOException" type="java.io.IOException"/>
  21190. </method>
  21191. <method name="getUnits" return="java.lang.String"
  21192. abstract="false" native="false" synchronized="false"
  21193. static="false" final="false" visibility="protected"
  21194. deprecated="not deprecated">
  21195. <param name="metricName" type="java.lang.String"/>
  21196. </method>
  21197. <method name="getSlope" return="int"
  21198. abstract="false" native="false" synchronized="false"
  21199. static="false" final="false" visibility="protected"
  21200. deprecated="not deprecated">
  21201. <param name="metricName" type="java.lang.String"/>
  21202. </method>
  21203. <method name="getTmax" return="int"
  21204. abstract="false" native="false" synchronized="false"
  21205. static="false" final="false" visibility="protected"
  21206. deprecated="not deprecated">
  21207. <param name="metricName" type="java.lang.String"/>
  21208. </method>
  21209. <method name="getDmax" return="int"
  21210. abstract="false" native="false" synchronized="false"
  21211. static="false" final="false" visibility="protected"
  21212. deprecated="not deprecated">
  21213. <param name="metricName" type="java.lang.String"/>
  21214. </method>
  21215. <method name="xdr_string"
  21216. abstract="false" native="false" synchronized="false"
  21217. static="false" final="false" visibility="protected"
  21218. deprecated="not deprecated">
  21219. <param name="s" type="java.lang.String"/>
  21220. <doc>
  21221. <![CDATA[Puts a string into the buffer by first writing the size of the string
  21222. as an int, followed by the bytes of the string, padded if necessary to
  21223. a multiple of 4.]]>
  21224. </doc>
  21225. </method>
  21226. <method name="xdr_int"
  21227. abstract="false" native="false" synchronized="false"
  21228. static="false" final="false" visibility="protected"
  21229. deprecated="not deprecated">
  21230. <param name="i" type="int"/>
  21231. <doc>
  21232. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  21233. </doc>
  21234. </method>
  21235. <field name="buffer" type="byte[]"
  21236. transient="false" volatile="false"
  21237. static="false" final="false" visibility="protected"
  21238. deprecated="not deprecated">
  21239. </field>
  21240. <field name="offset" type="int"
  21241. transient="false" volatile="false"
  21242. static="false" final="false" visibility="protected"
  21243. deprecated="not deprecated">
  21244. </field>
  21245. <field name="metricsServers" type="java.util.List"
  21246. transient="false" volatile="false"
  21247. static="false" final="false" visibility="protected"
  21248. deprecated="not deprecated">
  21249. </field>
  21250. <field name="datagramSocket" type="java.net.DatagramSocket"
  21251. transient="false" volatile="false"
  21252. static="false" final="false" visibility="protected"
  21253. deprecated="not deprecated">
  21254. </field>
  21255. <doc>
  21256. <![CDATA[Context for sending metrics to Ganglia.]]>
  21257. </doc>
  21258. </class>
  21259. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  21260. <doc>
  21261. <![CDATA[<!--
  21262. * Licensed to the Apache Software Foundation (ASF) under one
  21263. * or more contributor license agreements. See the NOTICE file
  21264. * distributed with this work for additional information
  21265. * regarding copyright ownership. The ASF licenses this file
  21266. * to you under the Apache License, Version 2.0 (the
  21267. * "License"); you may not use this file except in compliance
  21268. * with the License. You may obtain a copy of the License at
  21269. *
  21270. * http://www.apache.org/licenses/LICENSE-2.0
  21271. *
  21272. * Unless required by applicable law or agreed to in writing, software
  21273. * distributed under the License is distributed on an "AS IS" BASIS,
  21274. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21275. * See the License for the specific language governing permissions and
  21276. * limitations under the License.
  21277. -->
  21278. Implementation of the metrics package that sends metric data to
  21279. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  21280. Programmers should not normally need to use this package directly. Instead
  21281. they should use org.hadoop.metrics.
  21282. <p/>
  21283. These are the implementation specific factory attributes
  21284. (See ContextFactory.getFactory()):
  21285. <dl>
  21286. <dt><i>contextName</i>.servers</dt>
  21287. <dd>Space and/or comma separated sequence of servers to which UDP
  21288. messages should be sent.</dd>
  21289. <dt><i>contextName</i>.period</dt>
  21290. <dd>The period in seconds on which the metric data is sent to the
  21291. server(s).</dd>
  21292. <dt><i>contextName</i>.multicast</dt>
  21293. <dd>Enable multicast for Ganglia</dd>
  21294. <dt><i>contextName</i>.multicast.ttl</dt>
  21295. <dd>TTL for multicast packets</dd>
  21296. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  21297. <dd>The units for the specified metric in the specified record.</dd>
  21298. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  21299. <dd>The slope for the specified metric in the specified record.</dd>
  21300. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  21301. <dd>The tmax for the specified metric in the specified record.</dd>
  21302. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  21303. <dd>The dmax for the specified metric in the specified record.</dd>
  21304. </dl>]]>
  21305. </doc>
  21306. </package>
  21307. <package name="org.apache.hadoop.metrics.spi">
  21308. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  21309. <class name="AbstractMetricsContext" extends="java.lang.Object"
  21310. abstract="true"
  21311. static="false" final="false" visibility="public"
  21312. deprecated="not deprecated">
  21313. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  21314. <constructor name="AbstractMetricsContext"
  21315. static="false" final="false" visibility="protected"
  21316. deprecated="not deprecated">
  21317. <doc>
  21318. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  21319. </doc>
  21320. </constructor>
  21321. <method name="init"
  21322. abstract="false" native="false" synchronized="false"
  21323. static="false" final="false" visibility="public"
  21324. deprecated="not deprecated">
  21325. <param name="contextName" type="java.lang.String"/>
  21326. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  21327. <doc>
  21328. <![CDATA[Initializes the context.]]>
  21329. </doc>
  21330. </method>
  21331. <method name="getAttribute" return="java.lang.String"
  21332. abstract="false" native="false" synchronized="false"
  21333. static="false" final="false" visibility="protected"
  21334. deprecated="not deprecated">
  21335. <param name="attributeName" type="java.lang.String"/>
  21336. <doc>
  21337. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  21338. </doc>
  21339. </method>
  21340. <method name="getAttributeTable" return="java.util.Map"
  21341. abstract="false" native="false" synchronized="false"
  21342. static="false" final="false" visibility="protected"
  21343. deprecated="not deprecated">
  21344. <param name="tableName" type="java.lang.String"/>
  21345. <doc>
  21346. <![CDATA[Returns an attribute-value map derived from the factory attributes
  21347. by finding all factory attributes that begin with
  21348. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  21349. those attributes with the contextName and tableName stripped off.]]>
  21350. </doc>
  21351. </method>
  21352. <method name="getContextName" return="java.lang.String"
  21353. abstract="false" native="false" synchronized="false"
  21354. static="false" final="false" visibility="public"
  21355. deprecated="not deprecated">
  21356. <doc>
  21357. <![CDATA[Returns the context name.]]>
  21358. </doc>
  21359. </method>
  21360. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  21361. abstract="false" native="false" synchronized="false"
  21362. static="false" final="false" visibility="public"
  21363. deprecated="not deprecated">
  21364. <doc>
  21365. <![CDATA[Returns the factory by which this context was created.]]>
  21366. </doc>
  21367. </method>
  21368. <method name="startMonitoring"
  21369. abstract="false" native="false" synchronized="true"
  21370. static="false" final="false" visibility="public"
  21371. deprecated="not deprecated">
  21372. <exception name="IOException" type="java.io.IOException"/>
  21373. <doc>
  21374. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  21375. </doc>
  21376. </method>
  21377. <method name="stopMonitoring"
  21378. abstract="false" native="false" synchronized="true"
  21379. static="false" final="false" visibility="public"
  21380. deprecated="not deprecated">
  21381. <doc>
  21382. <![CDATA[Stops monitoring. This does not free buffered data.
  21383. @see #close()]]>
  21384. </doc>
  21385. </method>
  21386. <method name="isMonitoring" return="boolean"
  21387. abstract="false" native="false" synchronized="false"
  21388. static="false" final="false" visibility="public"
  21389. deprecated="not deprecated">
  21390. <doc>
  21391. <![CDATA[Returns true if monitoring is currently in progress.]]>
  21392. </doc>
  21393. </method>
  21394. <method name="close"
  21395. abstract="false" native="false" synchronized="true"
  21396. static="false" final="false" visibility="public"
  21397. deprecated="not deprecated">
  21398. <doc>
  21399. <![CDATA[Stops monitoring and frees buffered data, returning this
  21400. object to its initial state.]]>
  21401. </doc>
  21402. </method>
  21403. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  21404. abstract="false" native="false" synchronized="true"
  21405. static="false" final="true" visibility="public"
  21406. deprecated="not deprecated">
  21407. <param name="recordName" type="java.lang.String"/>
  21408. <doc>
  21409. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  21410. Throws an exception if the metrics implementation is configured with a fixed
  21411. set of record names and <code>recordName</code> is not in that set.
  21412. @param recordName the name of the record
  21413. @throws MetricsException if recordName conflicts with configuration data]]>
  21414. </doc>
  21415. </method>
  21416. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  21417. abstract="false" native="false" synchronized="false"
  21418. static="false" final="false" visibility="protected"
  21419. deprecated="not deprecated">
  21420. <param name="recordName" type="java.lang.String"/>
  21421. <doc>
  21422. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  21423. @param recordName the name of the record
  21424. @return newly created instance of MetricsRecordImpl or subclass]]>
  21425. </doc>
  21426. </method>
  21427. <method name="registerUpdater"
  21428. abstract="false" native="false" synchronized="true"
  21429. static="false" final="false" visibility="public"
  21430. deprecated="not deprecated">
  21431. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  21432. <doc>
  21433. <![CDATA[Registers a callback to be called at time intervals determined by
  21434. the configuration.
  21435. @param updater object to be run periodically; it should update
  21436. some metrics records]]>
  21437. </doc>
  21438. </method>
  21439. <method name="unregisterUpdater"
  21440. abstract="false" native="false" synchronized="true"
  21441. static="false" final="false" visibility="public"
  21442. deprecated="not deprecated">
  21443. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  21444. <doc>
  21445. <![CDATA[Removes a callback, if it exists.
  21446. @param updater object to be removed from the callback list]]>
  21447. </doc>
  21448. </method>
  21449. <method name="getAllRecords" return="java.util.Map"
  21450. abstract="false" native="false" synchronized="true"
  21451. static="false" final="false" visibility="public"
  21452. deprecated="not deprecated">
  21453. <doc>
  21454. <![CDATA[Retrieves all the records managed by this MetricsContext.
  21455. Useful for monitoring systems that are polling-based.
  21456. @return A non-null collection of all monitoring records.]]>
  21457. </doc>
  21458. </method>
  21459. <method name="emitRecord"
  21460. abstract="true" native="false" synchronized="false"
  21461. static="false" final="false" visibility="protected"
  21462. deprecated="not deprecated">
  21463. <param name="contextName" type="java.lang.String"/>
  21464. <param name="recordName" type="java.lang.String"/>
  21465. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  21466. <exception name="IOException" type="java.io.IOException"/>
  21467. <doc>
  21468. <![CDATA[Sends a record to the metrics system.]]>
  21469. </doc>
  21470. </method>
  21471. <method name="flush"
  21472. abstract="false" native="false" synchronized="false"
  21473. static="false" final="false" visibility="protected"
  21474. deprecated="not deprecated">
  21475. <exception name="IOException" type="java.io.IOException"/>
  21476. <doc>
  21477. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  21478. Subclasses may override it in order to perform some kind of flush.]]>
  21479. </doc>
  21480. </method>
  21481. <method name="update"
  21482. abstract="false" native="false" synchronized="false"
  21483. static="false" final="false" visibility="protected"
  21484. deprecated="not deprecated">
  21485. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  21486. <doc>
  21487. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  21488. the internal table of metric data.]]>
  21489. </doc>
  21490. </method>
  21491. <method name="remove"
  21492. abstract="false" native="false" synchronized="false"
  21493. static="false" final="false" visibility="protected"
  21494. deprecated="not deprecated">
  21495. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  21496. <doc>
  21497. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  21498. the internal table of metric data. A row matches if it has the same
  21499. tag names and values as record, but it may also have additional
  21500. tags.]]>
  21501. </doc>
  21502. </method>
  21503. <method name="getPeriod" return="int"
  21504. abstract="false" native="false" synchronized="false"
  21505. static="false" final="false" visibility="public"
  21506. deprecated="not deprecated">
  21507. <doc>
  21508. <![CDATA[Returns the timer period.]]>
  21509. </doc>
  21510. </method>
  21511. <method name="setPeriod"
  21512. abstract="false" native="false" synchronized="false"
  21513. static="false" final="false" visibility="protected"
  21514. deprecated="not deprecated">
  21515. <param name="period" type="int"/>
  21516. <doc>
  21517. <![CDATA[Sets the timer period]]>
  21518. </doc>
  21519. </method>
  21520. <method name="parseAndSetPeriod"
  21521. abstract="false" native="false" synchronized="false"
  21522. static="false" final="false" visibility="protected"
  21523. deprecated="not deprecated">
  21524. <param name="attributeName" type="java.lang.String"/>
  21525. <doc>
  21526. <![CDATA[If a period is set in the attribute passed in, override
  21527. the default with it.]]>
  21528. </doc>
  21529. </method>
  21530. <doc>
  21531. <![CDATA[The main class of the Service Provider Interface. This class should be
  21532. extended in order to integrate the Metrics API with a specific metrics
  21533. client library. <p/>
  21534. This class implements the internal table of metric data, and the timer
  21535. on which data is to be sent to the metrics system. Subclasses must
  21536. override the abstract <code>emitRecord</code> method in order to transmit
  21537. the data. <p/>]]>
  21538. </doc>
  21539. </class>
  21540. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  21541. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  21542. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21543. abstract="false"
  21544. static="false" final="false" visibility="public"
  21545. deprecated="not deprecated">
  21546. <constructor name="CompositeContext"
  21547. static="false" final="false" visibility="public"
  21548. deprecated="not deprecated">
  21549. </constructor>
  21550. </class>
  21551. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  21552. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  21553. <class name="MetricsRecordImpl" extends="java.lang.Object"
  21554. abstract="false"
  21555. static="false" final="false" visibility="public"
  21556. deprecated="not deprecated">
  21557. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  21558. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21559. static="false" final="false" visibility="protected"
  21560. deprecated="not deprecated">
  21561. <doc>
  21562. <![CDATA[Creates a new instance of FileRecord]]>
  21563. </doc>
  21564. </constructor>
  21565. <method name="getRecordName" return="java.lang.String"
  21566. abstract="false" native="false" synchronized="false"
  21567. static="false" final="false" visibility="public"
  21568. deprecated="not deprecated">
  21569. <doc>
  21570. <![CDATA[Returns the record name.
  21571. @return the record name]]>
  21572. </doc>
  21573. </method>
  21574. <method name="setTag"
  21575. abstract="false" native="false" synchronized="false"
  21576. static="false" final="false" visibility="public"
  21577. deprecated="not deprecated">
  21578. <param name="tagName" type="java.lang.String"/>
  21579. <param name="tagValue" type="java.lang.String"/>
  21580. <doc>
  21581. <![CDATA[Sets the named tag to the specified value.
  21582. @param tagName name of the tag
  21583. @param tagValue new value of the tag
  21584. @throws MetricsException if the tagName conflicts with the configuration]]>
  21585. </doc>
  21586. </method>
  21587. <method name="setTag"
  21588. abstract="false" native="false" synchronized="false"
  21589. static="false" final="false" visibility="public"
  21590. deprecated="not deprecated">
  21591. <param name="tagName" type="java.lang.String"/>
  21592. <param name="tagValue" type="int"/>
  21593. <doc>
  21594. <![CDATA[Sets the named tag to the specified value.
  21595. @param tagName name of the tag
  21596. @param tagValue new value of the tag
  21597. @throws MetricsException if the tagName conflicts with the configuration]]>
  21598. </doc>
  21599. </method>
  21600. <method name="setTag"
  21601. abstract="false" native="false" synchronized="false"
  21602. static="false" final="false" visibility="public"
  21603. deprecated="not deprecated">
  21604. <param name="tagName" type="java.lang.String"/>
  21605. <param name="tagValue" type="long"/>
  21606. <doc>
  21607. <![CDATA[Sets the named tag to the specified value.
  21608. @param tagName name of the tag
  21609. @param tagValue new value of the tag
  21610. @throws MetricsException if the tagName conflicts with the configuration]]>
  21611. </doc>
  21612. </method>
  21613. <method name="setTag"
  21614. abstract="false" native="false" synchronized="false"
  21615. static="false" final="false" visibility="public"
  21616. deprecated="not deprecated">
  21617. <param name="tagName" type="java.lang.String"/>
  21618. <param name="tagValue" type="short"/>
  21619. <doc>
  21620. <![CDATA[Sets the named tag to the specified value.
  21621. @param tagName name of the tag
  21622. @param tagValue new value of the tag
  21623. @throws MetricsException if the tagName conflicts with the configuration]]>
  21624. </doc>
  21625. </method>
  21626. <method name="setTag"
  21627. abstract="false" native="false" synchronized="false"
  21628. static="false" final="false" visibility="public"
  21629. deprecated="not deprecated">
  21630. <param name="tagName" type="java.lang.String"/>
  21631. <param name="tagValue" type="byte"/>
  21632. <doc>
  21633. <![CDATA[Sets the named tag to the specified value.
  21634. @param tagName name of the tag
  21635. @param tagValue new value of the tag
  21636. @throws MetricsException if the tagName conflicts with the configuration]]>
  21637. </doc>
  21638. </method>
  21639. <method name="removeTag"
  21640. abstract="false" native="false" synchronized="false"
  21641. static="false" final="false" visibility="public"
  21642. deprecated="not deprecated">
  21643. <param name="tagName" type="java.lang.String"/>
  21644. <doc>
  21645. <![CDATA[Removes any tag of the specified name.]]>
  21646. </doc>
  21647. </method>
  21648. <method name="setMetric"
  21649. abstract="false" native="false" synchronized="false"
  21650. static="false" final="false" visibility="public"
  21651. deprecated="not deprecated">
  21652. <param name="metricName" type="java.lang.String"/>
  21653. <param name="metricValue" type="int"/>
  21654. <doc>
  21655. <![CDATA[Sets the named metric to the specified value.
  21656. @param metricName name of the metric
  21657. @param metricValue new value of the metric
  21658. @throws MetricsException if the metricName or the type of the metricValue
  21659. conflicts with the configuration]]>
  21660. </doc>
  21661. </method>
  21662. <method name="setMetric"
  21663. abstract="false" native="false" synchronized="false"
  21664. static="false" final="false" visibility="public"
  21665. deprecated="not deprecated">
  21666. <param name="metricName" type="java.lang.String"/>
  21667. <param name="metricValue" type="long"/>
  21668. <doc>
  21669. <![CDATA[Sets the named metric to the specified value.
  21670. @param metricName name of the metric
  21671. @param metricValue new value of the metric
  21672. @throws MetricsException if the metricName or the type of the metricValue
  21673. conflicts with the configuration]]>
  21674. </doc>
  21675. </method>
  21676. <method name="setMetric"
  21677. abstract="false" native="false" synchronized="false"
  21678. static="false" final="false" visibility="public"
  21679. deprecated="not deprecated">
  21680. <param name="metricName" type="java.lang.String"/>
  21681. <param name="metricValue" type="short"/>
  21682. <doc>
  21683. <![CDATA[Sets the named metric to the specified value.
  21684. @param metricName name of the metric
  21685. @param metricValue new value of the metric
  21686. @throws MetricsException if the metricName or the type of the metricValue
  21687. conflicts with the configuration]]>
  21688. </doc>
  21689. </method>
  21690. <method name="setMetric"
  21691. abstract="false" native="false" synchronized="false"
  21692. static="false" final="false" visibility="public"
  21693. deprecated="not deprecated">
  21694. <param name="metricName" type="java.lang.String"/>
  21695. <param name="metricValue" type="byte"/>
  21696. <doc>
  21697. <![CDATA[Sets the named metric to the specified value.
  21698. @param metricName name of the metric
  21699. @param metricValue new value of the metric
  21700. @throws MetricsException if the metricName or the type of the metricValue
  21701. conflicts with the configuration]]>
  21702. </doc>
  21703. </method>
  21704. <method name="setMetric"
  21705. abstract="false" native="false" synchronized="false"
  21706. static="false" final="false" visibility="public"
  21707. deprecated="not deprecated">
  21708. <param name="metricName" type="java.lang.String"/>
  21709. <param name="metricValue" type="float"/>
  21710. <doc>
  21711. <![CDATA[Sets the named metric to the specified value.
  21712. @param metricName name of the metric
  21713. @param metricValue new value of the metric
  21714. @throws MetricsException if the metricName or the type of the metricValue
  21715. conflicts with the configuration]]>
  21716. </doc>
  21717. </method>
  21718. <method name="incrMetric"
  21719. abstract="false" native="false" synchronized="false"
  21720. static="false" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. <param name="metricName" type="java.lang.String"/>
  21723. <param name="metricValue" type="int"/>
  21724. <doc>
  21725. <![CDATA[Increments the named metric by the specified value.
  21726. @param metricName name of the metric
  21727. @param metricValue incremental value
  21728. @throws MetricsException if the metricName or the type of the metricValue
  21729. conflicts with the configuration]]>
  21730. </doc>
  21731. </method>
  21732. <method name="incrMetric"
  21733. abstract="false" native="false" synchronized="false"
  21734. static="false" final="false" visibility="public"
  21735. deprecated="not deprecated">
  21736. <param name="metricName" type="java.lang.String"/>
  21737. <param name="metricValue" type="long"/>
  21738. <doc>
  21739. <![CDATA[Increments the named metric by the specified value.
  21740. @param metricName name of the metric
  21741. @param metricValue incremental value
  21742. @throws MetricsException if the metricName or the type of the metricValue
  21743. conflicts with the configuration]]>
  21744. </doc>
  21745. </method>
  21746. <method name="incrMetric"
  21747. abstract="false" native="false" synchronized="false"
  21748. static="false" final="false" visibility="public"
  21749. deprecated="not deprecated">
  21750. <param name="metricName" type="java.lang.String"/>
  21751. <param name="metricValue" type="short"/>
  21752. <doc>
  21753. <![CDATA[Increments the named metric by the specified value.
  21754. @param metricName name of the metric
  21755. @param metricValue incremental value
  21756. @throws MetricsException if the metricName or the type of the metricValue
  21757. conflicts with the configuration]]>
  21758. </doc>
  21759. </method>
  21760. <method name="incrMetric"
  21761. abstract="false" native="false" synchronized="false"
  21762. static="false" final="false" visibility="public"
  21763. deprecated="not deprecated">
  21764. <param name="metricName" type="java.lang.String"/>
  21765. <param name="metricValue" type="byte"/>
  21766. <doc>
  21767. <![CDATA[Increments the named metric by the specified value.
  21768. @param metricName name of the metric
  21769. @param metricValue incremental value
  21770. @throws MetricsException if the metricName or the type of the metricValue
  21771. conflicts with the configuration]]>
  21772. </doc>
  21773. </method>
  21774. <method name="incrMetric"
  21775. abstract="false" native="false" synchronized="false"
  21776. static="false" final="false" visibility="public"
  21777. deprecated="not deprecated">
  21778. <param name="metricName" type="java.lang.String"/>
  21779. <param name="metricValue" type="float"/>
  21780. <doc>
  21781. <![CDATA[Increments the named metric by the specified value.
  21782. @param metricName name of the metric
  21783. @param metricValue incremental value
  21784. @throws MetricsException if the metricName or the type of the metricValue
  21785. conflicts with the configuration]]>
  21786. </doc>
  21787. </method>
  21788. <method name="update"
  21789. abstract="false" native="false" synchronized="false"
  21790. static="false" final="false" visibility="public"
  21791. deprecated="not deprecated">
  21792. <doc>
  21793. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  21794. If the tag values match an existing row, that row is updated;
  21795. otherwise, a new row is added.]]>
  21796. </doc>
  21797. </method>
  21798. <method name="remove"
  21799. abstract="false" native="false" synchronized="false"
  21800. static="false" final="false" visibility="public"
  21801. deprecated="not deprecated">
  21802. <doc>
  21803. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  21804. that equal the tags that have been set on this record.]]>
  21805. </doc>
  21806. </method>
  21807. <doc>
  21808. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  21809. from which it was created, and delegates back to it on <code>update</code>
  21810. and <code>remove()</code>.]]>
  21811. </doc>
  21812. </class>
  21813. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  21814. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  21815. <class name="MetricValue" extends="java.lang.Object"
  21816. abstract="false"
  21817. static="false" final="false" visibility="public"
  21818. deprecated="not deprecated">
  21819. <constructor name="MetricValue" type="java.lang.Number, boolean"
  21820. static="false" final="false" visibility="public"
  21821. deprecated="not deprecated">
  21822. <doc>
  21823. <![CDATA[Creates a new instance of MetricValue]]>
  21824. </doc>
  21825. </constructor>
  21826. <method name="isIncrement" return="boolean"
  21827. abstract="false" native="false" synchronized="false"
  21828. static="false" final="false" visibility="public"
  21829. deprecated="not deprecated">
  21830. </method>
  21831. <method name="isAbsolute" return="boolean"
  21832. abstract="false" native="false" synchronized="false"
  21833. static="false" final="false" visibility="public"
  21834. deprecated="not deprecated">
  21835. </method>
  21836. <method name="getNumber" return="java.lang.Number"
  21837. abstract="false" native="false" synchronized="false"
  21838. static="false" final="false" visibility="public"
  21839. deprecated="not deprecated">
  21840. </method>
  21841. <field name="ABSOLUTE" type="boolean"
  21842. transient="false" volatile="false"
  21843. static="true" final="true" visibility="public"
  21844. deprecated="not deprecated">
  21845. </field>
  21846. <field name="INCREMENT" type="boolean"
  21847. transient="false" volatile="false"
  21848. static="true" final="true" visibility="public"
  21849. deprecated="not deprecated">
  21850. </field>
  21851. <doc>
  21852. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  21853. </doc>
  21854. </class>
  21855. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  21856. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  21857. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21858. abstract="false"
  21859. static="false" final="false" visibility="public"
  21860. deprecated="not deprecated">
  21861. <constructor name="NoEmitMetricsContext"
  21862. static="false" final="false" visibility="public"
  21863. deprecated="not deprecated">
  21864. <doc>
  21865. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  21866. </doc>
  21867. </constructor>
  21868. <doc>
  21869. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  21870. does save it for retrieval with getAllRecords().
  21871. This is useful if you want to support {@link MetricsServlet}, but
  21872. not emit metrics in any other way.]]>
  21873. </doc>
  21874. </class>
  21875. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  21876. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  21877. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21878. abstract="false"
  21879. static="false" final="false" visibility="public"
  21880. deprecated="not deprecated">
  21881. <constructor name="NullContext"
  21882. static="false" final="false" visibility="public"
  21883. deprecated="not deprecated">
  21884. <doc>
  21885. <![CDATA[Creates a new instance of NullContext]]>
  21886. </doc>
  21887. </constructor>
  21888. <doc>
  21889. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  21890. default context, so that no performance data is emitted if no configuration
  21891. data is found.]]>
  21892. </doc>
  21893. </class>
  21894. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  21895. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  21896. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  21897. abstract="false"
  21898. static="false" final="false" visibility="public"
  21899. deprecated="not deprecated">
  21900. <constructor name="NullContextWithUpdateThread"
  21901. static="false" final="false" visibility="public"
  21902. deprecated="not deprecated">
  21903. <doc>
  21904. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  21905. </doc>
  21906. </constructor>
  21907. <doc>
  21908. <![CDATA[A null context which has a thread calling
  21909. periodically when monitoring is started. This keeps the data sampled
  21910. correctly.
  21911. In all other respects, this is like the NULL context: No data is emitted.
  21912. This is suitable for Monitoring systems like JMX which reads the metrics
  21913. when someone reads the data from JMX.
  21914. The default impl of start and stop monitoring:
  21915. is the AbstractMetricsContext is good enough.]]>
  21916. </doc>
  21917. </class>
  21918. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  21919. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  21920. <class name="OutputRecord" extends="java.lang.Object"
  21921. abstract="false"
  21922. static="false" final="false" visibility="public"
  21923. deprecated="not deprecated">
  21924. <method name="getTagNames" return="java.util.Set"
  21925. abstract="false" native="false" synchronized="false"
  21926. static="false" final="false" visibility="public"
  21927. deprecated="not deprecated">
  21928. <doc>
  21929. <![CDATA[Returns the set of tag names]]>
  21930. </doc>
  21931. </method>
  21932. <method name="getTag" return="java.lang.Object"
  21933. abstract="false" native="false" synchronized="false"
  21934. static="false" final="false" visibility="public"
  21935. deprecated="not deprecated">
  21936. <param name="name" type="java.lang.String"/>
  21937. <doc>
  21938. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  21939. @return the tag value, or null if there is no such tag]]>
  21940. </doc>
  21941. </method>
  21942. <method name="getMetricNames" return="java.util.Set"
  21943. abstract="false" native="false" synchronized="false"
  21944. static="false" final="false" visibility="public"
  21945. deprecated="not deprecated">
  21946. <doc>
  21947. <![CDATA[Returns the set of metric names.]]>
  21948. </doc>
  21949. </method>
  21950. <method name="getMetric" return="java.lang.Number"
  21951. abstract="false" native="false" synchronized="false"
  21952. static="false" final="false" visibility="public"
  21953. deprecated="not deprecated">
  21954. <param name="name" type="java.lang.String"/>
  21955. <doc>
  21956. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  21957. </doc>
  21958. </method>
  21959. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  21960. abstract="false" native="false" synchronized="false"
  21961. static="false" final="false" visibility="public"
  21962. deprecated="not deprecated">
  21963. <doc>
  21964. <![CDATA[Returns a copy of this record's tags.]]>
  21965. </doc>
  21966. </method>
  21967. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  21968. abstract="false" native="false" synchronized="false"
  21969. static="false" final="false" visibility="public"
  21970. deprecated="not deprecated">
  21971. <doc>
  21972. <![CDATA[Returns a copy of this record's metrics.]]>
  21973. </doc>
  21974. </method>
  21975. <doc>
  21976. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  21977. </doc>
  21978. </class>
  21979. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  21980. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  21981. <class name="Util" extends="java.lang.Object"
  21982. abstract="false"
  21983. static="false" final="false" visibility="public"
  21984. deprecated="not deprecated">
  21985. <method name="parse" return="java.util.List"
  21986. abstract="false" native="false" synchronized="false"
  21987. static="true" final="false" visibility="public"
  21988. deprecated="not deprecated">
  21989. <param name="specs" type="java.lang.String"/>
  21990. <param name="defaultPort" type="int"/>
  21991. <doc>
  21992. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  21993. of the form <i>hostname</i> or <i>hostname:port</i>. If
  21994. the specs string is null, defaults to localhost:defaultPort.
  21995. @return a list of InetSocketAddress objects.]]>
  21996. </doc>
  21997. </method>
  21998. <doc>
  21999. <![CDATA[Static utility methods]]>
  22000. </doc>
  22001. </class>
  22002. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  22003. <doc>
  22004. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  22005. an interface allowing a variety of metrics reporting implementations to be
  22006. plugged in to the Metrics API. Examples of such implementations can be found
  22007. in the packages <code>org.apache.hadoop.metrics.file</code> and
  22008. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  22009. Plugging in an implementation involves writing a concrete subclass of
  22010. <code>AbstractMetricsContext</code>. The subclass should get its
  22011. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  22012. method.]]>
  22013. </doc>
  22014. </package>
  22015. <package name="org.apache.hadoop.metrics2">
  22016. <!-- start class org.apache.hadoop.metrics2.AbstractMetric -->
  22017. <class name="AbstractMetric" extends="java.lang.Object"
  22018. abstract="true"
  22019. static="false" final="false" visibility="public"
  22020. deprecated="not deprecated">
  22021. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  22022. <constructor name="AbstractMetric" type="org.apache.hadoop.metrics2.MetricsInfo"
  22023. static="false" final="false" visibility="protected"
  22024. deprecated="not deprecated">
  22025. <doc>
  22026. <![CDATA[Construct the metric
  22027. @param info about the metric]]>
  22028. </doc>
  22029. </constructor>
  22030. <method name="name" return="java.lang.String"
  22031. abstract="false" native="false" synchronized="false"
  22032. static="false" final="false" visibility="public"
  22033. deprecated="not deprecated">
  22034. </method>
  22035. <method name="description" return="java.lang.String"
  22036. abstract="false" native="false" synchronized="false"
  22037. static="false" final="false" visibility="public"
  22038. deprecated="not deprecated">
  22039. </method>
  22040. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  22041. abstract="false" native="false" synchronized="false"
  22042. static="false" final="false" visibility="protected"
  22043. deprecated="not deprecated">
  22044. </method>
  22045. <method name="value" return="java.lang.Number"
  22046. abstract="true" native="false" synchronized="false"
  22047. static="false" final="false" visibility="public"
  22048. deprecated="not deprecated">
  22049. <doc>
  22050. <![CDATA[Get the value of the metric
  22051. @return the value of the metric]]>
  22052. </doc>
  22053. </method>
  22054. <method name="type" return="org.apache.hadoop.metrics2.MetricType"
  22055. abstract="true" native="false" synchronized="false"
  22056. static="false" final="false" visibility="public"
  22057. deprecated="not deprecated">
  22058. <doc>
  22059. <![CDATA[Get the type of the metric
  22060. @return the type of the metric]]>
  22061. </doc>
  22062. </method>
  22063. <method name="visit"
  22064. abstract="true" native="false" synchronized="false"
  22065. static="false" final="false" visibility="public"
  22066. deprecated="not deprecated">
  22067. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  22068. <doc>
  22069. <![CDATA[Accept a visitor interface
  22070. @param visitor of the metric]]>
  22071. </doc>
  22072. </method>
  22073. <method name="equals" return="boolean"
  22074. abstract="false" native="false" synchronized="false"
  22075. static="false" final="false" visibility="public"
  22076. deprecated="not deprecated">
  22077. <param name="obj" type="java.lang.Object"/>
  22078. </method>
  22079. <method name="hashCode" return="int"
  22080. abstract="false" native="false" synchronized="false"
  22081. static="false" final="false" visibility="public"
  22082. deprecated="not deprecated">
  22083. </method>
  22084. <method name="toString" return="java.lang.String"
  22085. abstract="false" native="false" synchronized="false"
  22086. static="false" final="false" visibility="public"
  22087. deprecated="not deprecated">
  22088. </method>
  22089. <doc>
  22090. <![CDATA[The immutable metric]]>
  22091. </doc>
  22092. </class>
  22093. <!-- end class org.apache.hadoop.metrics2.AbstractMetric -->
  22094. <!-- start interface org.apache.hadoop.metrics2.MetricsCollector -->
  22095. <interface name="MetricsCollector" abstract="true"
  22096. static="false" final="false" visibility="public"
  22097. deprecated="not deprecated">
  22098. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22099. abstract="true" native="false" synchronized="false"
  22100. static="false" final="false" visibility="public"
  22101. deprecated="not deprecated">
  22102. <param name="name" type="java.lang.String"/>
  22103. <doc>
  22104. <![CDATA[Add a metrics record
  22105. @param name of the record
  22106. @return a metrics record builder for the record]]>
  22107. </doc>
  22108. </method>
  22109. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22110. abstract="true" native="false" synchronized="false"
  22111. static="false" final="false" visibility="public"
  22112. deprecated="not deprecated">
  22113. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22114. <doc>
  22115. <![CDATA[Add a metrics record
  22116. @param info of the record
  22117. @return a metrics record builder for the record]]>
  22118. </doc>
  22119. </method>
  22120. <doc>
  22121. <![CDATA[The metrics collector interface]]>
  22122. </doc>
  22123. </interface>
  22124. <!-- end interface org.apache.hadoop.metrics2.MetricsCollector -->
  22125. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  22126. <class name="MetricsException" extends="java.lang.RuntimeException"
  22127. abstract="false"
  22128. static="false" final="false" visibility="public"
  22129. deprecated="not deprecated">
  22130. <constructor name="MetricsException" type="java.lang.String"
  22131. static="false" final="false" visibility="public"
  22132. deprecated="not deprecated">
  22133. <doc>
  22134. <![CDATA[Construct the exception with a message
  22135. @param message for the exception]]>
  22136. </doc>
  22137. </constructor>
  22138. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. <doc>
  22142. <![CDATA[Construct the exception with a message and a cause
  22143. @param message for the exception
  22144. @param cause of the exception]]>
  22145. </doc>
  22146. </constructor>
  22147. <constructor name="MetricsException" type="java.lang.Throwable"
  22148. static="false" final="false" visibility="public"
  22149. deprecated="not deprecated">
  22150. <doc>
  22151. <![CDATA[Construct the exception with a cause
  22152. @param cause of the exception]]>
  22153. </doc>
  22154. </constructor>
  22155. <doc>
  22156. <![CDATA[A general metrics exception wrapper]]>
  22157. </doc>
  22158. </class>
  22159. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  22160. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  22161. <class name="MetricsFilter" extends="java.lang.Object"
  22162. abstract="true"
  22163. static="false" final="false" visibility="public"
  22164. deprecated="not deprecated">
  22165. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  22166. <constructor name="MetricsFilter"
  22167. static="false" final="false" visibility="public"
  22168. deprecated="not deprecated">
  22169. </constructor>
  22170. <method name="accepts" return="boolean"
  22171. abstract="true" native="false" synchronized="false"
  22172. static="false" final="false" visibility="public"
  22173. deprecated="not deprecated">
  22174. <param name="name" type="java.lang.String"/>
  22175. <doc>
  22176. <![CDATA[Whether to accept the name
  22177. @param name to filter on
  22178. @return true to accept; false otherwise.]]>
  22179. </doc>
  22180. </method>
  22181. <method name="accepts" return="boolean"
  22182. abstract="true" native="false" synchronized="false"
  22183. static="false" final="false" visibility="public"
  22184. deprecated="not deprecated">
  22185. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  22186. <doc>
  22187. <![CDATA[Whether to accept the tag
  22188. @param tag to filter on
  22189. @return true to accept; false otherwise]]>
  22190. </doc>
  22191. </method>
  22192. <method name="accepts" return="boolean"
  22193. abstract="true" native="false" synchronized="false"
  22194. static="false" final="false" visibility="public"
  22195. deprecated="not deprecated">
  22196. <param name="tags" type="java.lang.Iterable"/>
  22197. <doc>
  22198. <![CDATA[Whether to accept the tags
  22199. @param tags to filter on
  22200. @return true to accept; false otherwise]]>
  22201. </doc>
  22202. </method>
  22203. <method name="accepts" return="boolean"
  22204. abstract="false" native="false" synchronized="false"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  22208. <doc>
  22209. <![CDATA[Whether to accept the record
  22210. @param record to filter on
  22211. @return true to accept; false otherwise.]]>
  22212. </doc>
  22213. </method>
  22214. <doc>
  22215. <![CDATA[The metrics filter interface]]>
  22216. </doc>
  22217. </class>
  22218. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  22219. <!-- start interface org.apache.hadoop.metrics2.MetricsInfo -->
  22220. <interface name="MetricsInfo" abstract="true"
  22221. static="false" final="false" visibility="public"
  22222. deprecated="not deprecated">
  22223. <method name="name" return="java.lang.String"
  22224. abstract="true" native="false" synchronized="false"
  22225. static="false" final="false" visibility="public"
  22226. deprecated="not deprecated">
  22227. <doc>
  22228. <![CDATA[@return the name of the metric/tag]]>
  22229. </doc>
  22230. </method>
  22231. <method name="description" return="java.lang.String"
  22232. abstract="true" native="false" synchronized="false"
  22233. static="false" final="false" visibility="public"
  22234. deprecated="not deprecated">
  22235. <doc>
  22236. <![CDATA[@return the description of the metric/tag]]>
  22237. </doc>
  22238. </method>
  22239. <doc>
  22240. <![CDATA[Interface to provide immutable meta info for metrics]]>
  22241. </doc>
  22242. </interface>
  22243. <!-- end interface org.apache.hadoop.metrics2.MetricsInfo -->
  22244. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  22245. <interface name="MetricsPlugin" abstract="true"
  22246. static="false" final="false" visibility="public"
  22247. deprecated="not deprecated">
  22248. <method name="init"
  22249. abstract="true" native="false" synchronized="false"
  22250. static="false" final="false" visibility="public"
  22251. deprecated="not deprecated">
  22252. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  22253. <doc>
  22254. <![CDATA[Initialize the plugin
  22255. @param conf the configuration object for the plugin]]>
  22256. </doc>
  22257. </method>
  22258. <doc>
  22259. <![CDATA[The plugin interface for the metrics framework]]>
  22260. </doc>
  22261. </interface>
  22262. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  22263. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  22264. <interface name="MetricsRecord" abstract="true"
  22265. static="false" final="false" visibility="public"
  22266. deprecated="not deprecated">
  22267. <method name="timestamp" return="long"
  22268. abstract="true" native="false" synchronized="false"
  22269. static="false" final="false" visibility="public"
  22270. deprecated="not deprecated">
  22271. <doc>
  22272. <![CDATA[Get the timestamp of the metrics
  22273. @return the timestamp]]>
  22274. </doc>
  22275. </method>
  22276. <method name="name" return="java.lang.String"
  22277. abstract="true" native="false" synchronized="false"
  22278. static="false" final="false" visibility="public"
  22279. deprecated="not deprecated">
  22280. <doc>
  22281. <![CDATA[@return the record name]]>
  22282. </doc>
  22283. </method>
  22284. <method name="description" return="java.lang.String"
  22285. abstract="true" native="false" synchronized="false"
  22286. static="false" final="false" visibility="public"
  22287. deprecated="not deprecated">
  22288. <doc>
  22289. <![CDATA[@return the description of the record]]>
  22290. </doc>
  22291. </method>
  22292. <method name="context" return="java.lang.String"
  22293. abstract="true" native="false" synchronized="false"
  22294. static="false" final="false" visibility="public"
  22295. deprecated="not deprecated">
  22296. <doc>
  22297. <![CDATA[@return the context name of the record]]>
  22298. </doc>
  22299. </method>
  22300. <method name="tags" return="java.util.Collection"
  22301. abstract="true" native="false" synchronized="false"
  22302. static="false" final="false" visibility="public"
  22303. deprecated="not deprecated">
  22304. <doc>
  22305. <![CDATA[Get the tags of the record
  22306. Note: returning a collection instead of iterable as we
  22307. need to use tags as keys (hence Collection#hashCode etc.) in maps
  22308. @return an unmodifiable collection of tags]]>
  22309. </doc>
  22310. </method>
  22311. <method name="metrics" return="java.lang.Iterable"
  22312. abstract="true" native="false" synchronized="false"
  22313. static="false" final="false" visibility="public"
  22314. deprecated="not deprecated">
  22315. <doc>
  22316. <![CDATA[Get the metrics of the record
  22317. @return an immutable iterable interface for metrics]]>
  22318. </doc>
  22319. </method>
  22320. <doc>
  22321. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  22322. </doc>
  22323. </interface>
  22324. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  22325. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  22326. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  22327. abstract="true"
  22328. static="false" final="false" visibility="public"
  22329. deprecated="not deprecated">
  22330. <constructor name="MetricsRecordBuilder"
  22331. static="false" final="false" visibility="public"
  22332. deprecated="not deprecated">
  22333. </constructor>
  22334. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22335. abstract="true" native="false" synchronized="false"
  22336. static="false" final="false" visibility="public"
  22337. deprecated="not deprecated">
  22338. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22339. <param name="value" type="java.lang.String"/>
  22340. <doc>
  22341. <![CDATA[Add a metrics tag
  22342. @param info metadata of the tag
  22343. @param value of the tag
  22344. @return self]]>
  22345. </doc>
  22346. </method>
  22347. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22348. abstract="true" native="false" synchronized="false"
  22349. static="false" final="false" visibility="public"
  22350. deprecated="not deprecated">
  22351. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  22352. <doc>
  22353. <![CDATA[Add an immutable metrics tag object
  22354. @param tag a pre-made tag object (potentially save an object construction)
  22355. @return self]]>
  22356. </doc>
  22357. </method>
  22358. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22359. abstract="true" native="false" synchronized="false"
  22360. static="false" final="false" visibility="public"
  22361. deprecated="not deprecated">
  22362. <param name="metric" type="org.apache.hadoop.metrics2.AbstractMetric"/>
  22363. <doc>
  22364. <![CDATA[Add a pre-made immutable metric object
  22365. @param metric the pre-made metric to save an object construction
  22366. @return self]]>
  22367. </doc>
  22368. </method>
  22369. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22370. abstract="true" native="false" synchronized="false"
  22371. static="false" final="false" visibility="public"
  22372. deprecated="not deprecated">
  22373. <param name="value" type="java.lang.String"/>
  22374. <doc>
  22375. <![CDATA[Set the context tag
  22376. @param value of the context
  22377. @return self]]>
  22378. </doc>
  22379. </method>
  22380. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22381. abstract="true" native="false" synchronized="false"
  22382. static="false" final="false" visibility="public"
  22383. deprecated="not deprecated">
  22384. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22385. <param name="value" type="int"/>
  22386. <doc>
  22387. <![CDATA[Add an integer metric
  22388. @param info metadata of the metric
  22389. @param value of the metric
  22390. @return self]]>
  22391. </doc>
  22392. </method>
  22393. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22394. abstract="true" native="false" synchronized="false"
  22395. static="false" final="false" visibility="public"
  22396. deprecated="not deprecated">
  22397. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22398. <param name="value" type="long"/>
  22399. <doc>
  22400. <![CDATA[Add an long metric
  22401. @param info metadata of the metric
  22402. @param value of the metric
  22403. @return self]]>
  22404. </doc>
  22405. </method>
  22406. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22407. abstract="true" native="false" synchronized="false"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22411. <param name="value" type="int"/>
  22412. <doc>
  22413. <![CDATA[Add a integer gauge metric
  22414. @param info metadata of the metric
  22415. @param value of the metric
  22416. @return self]]>
  22417. </doc>
  22418. </method>
  22419. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22420. abstract="true" native="false" synchronized="false"
  22421. static="false" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22424. <param name="value" type="long"/>
  22425. <doc>
  22426. <![CDATA[Add a long gauge metric
  22427. @param info metadata of the metric
  22428. @param value of the metric
  22429. @return self]]>
  22430. </doc>
  22431. </method>
  22432. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22433. abstract="true" native="false" synchronized="false"
  22434. static="false" final="false" visibility="public"
  22435. deprecated="not deprecated">
  22436. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22437. <param name="value" type="float"/>
  22438. <doc>
  22439. <![CDATA[Add a float gauge metric
  22440. @param info metadata of the metric
  22441. @param value of the metric
  22442. @return self]]>
  22443. </doc>
  22444. </method>
  22445. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  22446. abstract="true" native="false" synchronized="false"
  22447. static="false" final="false" visibility="public"
  22448. deprecated="not deprecated">
  22449. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22450. <param name="value" type="double"/>
  22451. <doc>
  22452. <![CDATA[Add a double gauge metric
  22453. @param info metadata of the metric
  22454. @param value of the metric
  22455. @return self]]>
  22456. </doc>
  22457. </method>
  22458. <method name="parent" return="org.apache.hadoop.metrics2.MetricsCollector"
  22459. abstract="true" native="false" synchronized="false"
  22460. static="false" final="false" visibility="public"
  22461. deprecated="not deprecated">
  22462. <doc>
  22463. <![CDATA[@return the parent metrics collector object]]>
  22464. </doc>
  22465. </method>
  22466. <method name="endRecord" return="org.apache.hadoop.metrics2.MetricsCollector"
  22467. abstract="false" native="false" synchronized="false"
  22468. static="false" final="false" visibility="public"
  22469. deprecated="not deprecated">
  22470. <doc>
  22471. <![CDATA[Syntactic sugar to add multiple records in a collector in a one liner.
  22472. @return the parent metrics collector object]]>
  22473. </doc>
  22474. </method>
  22475. <doc>
  22476. <![CDATA[The metrics record builder interface]]>
  22477. </doc>
  22478. </class>
  22479. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  22480. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  22481. <interface name="MetricsSink" abstract="true"
  22482. static="false" final="false" visibility="public"
  22483. deprecated="not deprecated">
  22484. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  22485. <method name="putMetrics"
  22486. abstract="true" native="false" synchronized="false"
  22487. static="false" final="false" visibility="public"
  22488. deprecated="not deprecated">
  22489. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  22490. <doc>
  22491. <![CDATA[Put a metrics record in the sink
  22492. @param record the record to put]]>
  22493. </doc>
  22494. </method>
  22495. <method name="flush"
  22496. abstract="true" native="false" synchronized="false"
  22497. static="false" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. <doc>
  22500. <![CDATA[Flush any buffered metrics]]>
  22501. </doc>
  22502. </method>
  22503. <doc>
  22504. <![CDATA[The metrics sink interface. <p>
  22505. Implementations of this interface consume the {@link MetricsRecord} generated
  22506. from {@link MetricsSource}. It registers with {@link MetricsSystem} which
  22507. periodically pushes the {@link MetricsRecord} to the sink using
  22508. {@link #putMetrics(MetricsRecord)} method. If the implementing class also
  22509. implements {@link Closeable}, then the MetricsSystem will close the sink when
  22510. it is stopped.]]>
  22511. </doc>
  22512. </interface>
  22513. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  22514. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  22515. <interface name="MetricsSource" abstract="true"
  22516. static="false" final="false" visibility="public"
  22517. deprecated="not deprecated">
  22518. <method name="getMetrics"
  22519. abstract="true" native="false" synchronized="false"
  22520. static="false" final="false" visibility="public"
  22521. deprecated="not deprecated">
  22522. <param name="collector" type="org.apache.hadoop.metrics2.MetricsCollector"/>
  22523. <param name="all" type="boolean"/>
  22524. <doc>
  22525. <![CDATA[Get metrics from the source
  22526. @param collector to contain the resulting metrics snapshot
  22527. @param all if true, return all metrics even if unchanged.]]>
  22528. </doc>
  22529. </method>
  22530. <doc>
  22531. <![CDATA[The metrics source interface]]>
  22532. </doc>
  22533. </interface>
  22534. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  22535. <!-- start class org.apache.hadoop.metrics2.MetricsSystem -->
  22536. <class name="MetricsSystem" extends="java.lang.Object"
  22537. abstract="true"
  22538. static="false" final="false" visibility="public"
  22539. deprecated="not deprecated">
  22540. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  22541. <constructor name="MetricsSystem"
  22542. static="false" final="false" visibility="public"
  22543. deprecated="not deprecated">
  22544. </constructor>
  22545. <method name="unregisterSource"
  22546. abstract="true" native="false" synchronized="false"
  22547. static="false" final="false" visibility="public"
  22548. deprecated="not deprecated">
  22549. <param name="name" type="java.lang.String"/>
  22550. <doc>
  22551. <![CDATA[Unregister a metrics source
  22552. @param name of the source. This is the name you use to call register()]]>
  22553. </doc>
  22554. </method>
  22555. <method name="register" return="T"
  22556. abstract="false" native="false" synchronized="false"
  22557. static="false" final="false" visibility="public"
  22558. deprecated="not deprecated">
  22559. <param name="source" type="T"/>
  22560. <doc>
  22561. <![CDATA[Register a metrics source (deriving name and description from the object)
  22562. @param <T> the actual type of the source object
  22563. @param source object to register
  22564. @return the source object
  22565. @exception MetricsException]]>
  22566. </doc>
  22567. </method>
  22568. <method name="register" return="T"
  22569. abstract="true" native="false" synchronized="false"
  22570. static="false" final="false" visibility="public"
  22571. deprecated="not deprecated">
  22572. <param name="name" type="java.lang.String"/>
  22573. <param name="desc" type="java.lang.String"/>
  22574. <param name="source" type="T"/>
  22575. <doc>
  22576. <![CDATA[Register a metrics source
  22577. @param <T> the actual type of the source object
  22578. @param source object to register
  22579. @param name of the source. Must be unique or null (then extracted from
  22580. the annotations of the source object.)
  22581. @param desc the description of the source (or null. See above.)
  22582. @return the source object
  22583. @exception MetricsException]]>
  22584. </doc>
  22585. </method>
  22586. <method name="register"
  22587. abstract="true" native="false" synchronized="false"
  22588. static="false" final="false" visibility="public"
  22589. deprecated="not deprecated">
  22590. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  22591. <doc>
  22592. <![CDATA[Register a callback interface for JMX events
  22593. @param callback the callback object implementing the MBean interface.]]>
  22594. </doc>
  22595. </method>
  22596. <method name="publishMetricsNow"
  22597. abstract="true" native="false" synchronized="false"
  22598. static="false" final="false" visibility="public"
  22599. deprecated="not deprecated">
  22600. <doc>
  22601. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  22602. This is a "soft" request: the expectation is that a best effort will be
  22603. done to synchronously snapshot the metrics from all the sources and put
  22604. them in all the sinks (including flushing the sinks) before returning to
  22605. the caller. If this can't be accomplished in reasonable time it's OK to
  22606. return to the caller before everything is done.]]>
  22607. </doc>
  22608. </method>
  22609. <method name="shutdown" return="boolean"
  22610. abstract="true" native="false" synchronized="false"
  22611. static="false" final="false" visibility="public"
  22612. deprecated="not deprecated">
  22613. <doc>
  22614. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  22615. The MetricsSystemMXBean will be unregistered.
  22616. @return true if shutdown completed]]>
  22617. </doc>
  22618. </method>
  22619. <doc>
  22620. <![CDATA[The metrics system interface]]>
  22621. </doc>
  22622. </class>
  22623. <!-- end class org.apache.hadoop.metrics2.MetricsSystem -->
  22624. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  22625. <interface name="MetricsSystemMXBean" abstract="true"
  22626. static="false" final="false" visibility="public"
  22627. deprecated="not deprecated">
  22628. <method name="start"
  22629. abstract="true" native="false" synchronized="false"
  22630. static="false" final="false" visibility="public"
  22631. deprecated="not deprecated">
  22632. <doc>
  22633. <![CDATA[Start the metrics system
  22634. @throws MetricsException]]>
  22635. </doc>
  22636. </method>
  22637. <method name="stop"
  22638. abstract="true" native="false" synchronized="false"
  22639. static="false" final="false" visibility="public"
  22640. deprecated="not deprecated">
  22641. <doc>
  22642. <![CDATA[Stop the metrics system
  22643. @throws MetricsException]]>
  22644. </doc>
  22645. </method>
  22646. <method name="startMetricsMBeans"
  22647. abstract="true" native="false" synchronized="false"
  22648. static="false" final="false" visibility="public"
  22649. deprecated="not deprecated">
  22650. <doc>
  22651. <![CDATA[Start metrics MBeans
  22652. @throws MetricsException]]>
  22653. </doc>
  22654. </method>
  22655. <method name="stopMetricsMBeans"
  22656. abstract="true" native="false" synchronized="false"
  22657. static="false" final="false" visibility="public"
  22658. deprecated="not deprecated">
  22659. <doc>
  22660. <![CDATA[Stop metrics MBeans.
  22661. Note, it doesn't stop the metrics system control MBean,
  22662. i.e this interface.
  22663. @throws MetricsException]]>
  22664. </doc>
  22665. </method>
  22666. <method name="currentConfig" return="java.lang.String"
  22667. abstract="true" native="false" synchronized="false"
  22668. static="false" final="false" visibility="public"
  22669. deprecated="not deprecated">
  22670. <doc>
  22671. <![CDATA[@return the current config
  22672. Avoided getConfig, as it'll turn into a "Config" attribute,
  22673. which doesn't support multiple line values in jconsole.
  22674. @throws MetricsException]]>
  22675. </doc>
  22676. </method>
  22677. <doc>
  22678. <![CDATA[The JMX interface to the metrics system]]>
  22679. </doc>
  22680. </interface>
  22681. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  22682. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  22683. <class name="MetricsTag" extends="java.lang.Object"
  22684. abstract="false"
  22685. static="false" final="false" visibility="public"
  22686. deprecated="not deprecated">
  22687. <implements name="org.apache.hadoop.metrics2.MetricsInfo"/>
  22688. <constructor name="MetricsTag" type="org.apache.hadoop.metrics2.MetricsInfo, java.lang.String"
  22689. static="false" final="false" visibility="public"
  22690. deprecated="not deprecated">
  22691. <doc>
  22692. <![CDATA[Construct the tag with name, description and value
  22693. @param info of the tag
  22694. @param value of the tag]]>
  22695. </doc>
  22696. </constructor>
  22697. <method name="name" return="java.lang.String"
  22698. abstract="false" native="false" synchronized="false"
  22699. static="false" final="false" visibility="public"
  22700. deprecated="not deprecated">
  22701. </method>
  22702. <method name="description" return="java.lang.String"
  22703. abstract="false" native="false" synchronized="false"
  22704. static="false" final="false" visibility="public"
  22705. deprecated="not deprecated">
  22706. </method>
  22707. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  22708. abstract="false" native="false" synchronized="false"
  22709. static="false" final="false" visibility="public"
  22710. deprecated="not deprecated">
  22711. <doc>
  22712. <![CDATA[@return the info object of the tag]]>
  22713. </doc>
  22714. </method>
  22715. <method name="value" return="java.lang.String"
  22716. abstract="false" native="false" synchronized="false"
  22717. static="false" final="false" visibility="public"
  22718. deprecated="not deprecated">
  22719. <doc>
  22720. <![CDATA[Get the value of the tag
  22721. @return the value]]>
  22722. </doc>
  22723. </method>
  22724. <method name="equals" return="boolean"
  22725. abstract="false" native="false" synchronized="false"
  22726. static="false" final="false" visibility="public"
  22727. deprecated="not deprecated">
  22728. <param name="obj" type="java.lang.Object"/>
  22729. </method>
  22730. <method name="hashCode" return="int"
  22731. abstract="false" native="false" synchronized="false"
  22732. static="false" final="false" visibility="public"
  22733. deprecated="not deprecated">
  22734. </method>
  22735. <method name="toString" return="java.lang.String"
  22736. abstract="false" native="false" synchronized="false"
  22737. static="false" final="false" visibility="public"
  22738. deprecated="not deprecated">
  22739. </method>
  22740. <doc>
  22741. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  22742. </doc>
  22743. </class>
  22744. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  22745. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  22746. <interface name="MetricsVisitor" abstract="true"
  22747. static="false" final="false" visibility="public"
  22748. deprecated="not deprecated">
  22749. <method name="gauge"
  22750. abstract="true" native="false" synchronized="false"
  22751. static="false" final="false" visibility="public"
  22752. deprecated="not deprecated">
  22753. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22754. <param name="value" type="int"/>
  22755. <doc>
  22756. <![CDATA[Callback for integer value gauges
  22757. @param info the metric info
  22758. @param value of the metric]]>
  22759. </doc>
  22760. </method>
  22761. <method name="gauge"
  22762. abstract="true" native="false" synchronized="false"
  22763. static="false" final="false" visibility="public"
  22764. deprecated="not deprecated">
  22765. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22766. <param name="value" type="long"/>
  22767. <doc>
  22768. <![CDATA[Callback for long value gauges
  22769. @param info the metric info
  22770. @param value of the metric]]>
  22771. </doc>
  22772. </method>
  22773. <method name="gauge"
  22774. abstract="true" native="false" synchronized="false"
  22775. static="false" final="false" visibility="public"
  22776. deprecated="not deprecated">
  22777. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22778. <param name="value" type="float"/>
  22779. <doc>
  22780. <![CDATA[Callback for float value gauges
  22781. @param info the metric info
  22782. @param value of the metric]]>
  22783. </doc>
  22784. </method>
  22785. <method name="gauge"
  22786. abstract="true" native="false" synchronized="false"
  22787. static="false" final="false" visibility="public"
  22788. deprecated="not deprecated">
  22789. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22790. <param name="value" type="double"/>
  22791. <doc>
  22792. <![CDATA[Callback for double value gauges
  22793. @param info the metric info
  22794. @param value of the metric]]>
  22795. </doc>
  22796. </method>
  22797. <method name="counter"
  22798. abstract="true" native="false" synchronized="false"
  22799. static="false" final="false" visibility="public"
  22800. deprecated="not deprecated">
  22801. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22802. <param name="value" type="int"/>
  22803. <doc>
  22804. <![CDATA[Callback for integer value counters
  22805. @param info the metric info
  22806. @param value of the metric]]>
  22807. </doc>
  22808. </method>
  22809. <method name="counter"
  22810. abstract="true" native="false" synchronized="false"
  22811. static="false" final="false" visibility="public"
  22812. deprecated="not deprecated">
  22813. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22814. <param name="value" type="long"/>
  22815. <doc>
  22816. <![CDATA[Callback for long value counters
  22817. @param info the metric info
  22818. @param value of the metric]]>
  22819. </doc>
  22820. </method>
  22821. <doc>
  22822. <![CDATA[A visitor interface for metrics]]>
  22823. </doc>
  22824. </interface>
  22825. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  22826. </package>
  22827. <package name="org.apache.hadoop.metrics2.annotation">
  22828. <!-- start class org.apache.hadoop.metrics2.annotation.Metric -->
  22829. <class name="Metric" abstract="true"
  22830. static="false" final="false" visibility="public"
  22831. deprecated="not deprecated">
  22832. <implements name="java.lang.annotation.Annotation"/>
  22833. <doc>
  22834. <![CDATA[Annotation interface for a single metric]]>
  22835. </doc>
  22836. </class>
  22837. <!-- end class org.apache.hadoop.metrics2.annotation.Metric -->
  22838. <!-- start class org.apache.hadoop.metrics2.annotation.Metrics -->
  22839. <class name="Metrics" abstract="true"
  22840. static="false" final="false" visibility="public"
  22841. deprecated="not deprecated">
  22842. <implements name="java.lang.annotation.Annotation"/>
  22843. <doc>
  22844. <![CDATA[Annotation interface for a group of metrics]]>
  22845. </doc>
  22846. </class>
  22847. <!-- end class org.apache.hadoop.metrics2.annotation.Metrics -->
  22848. </package>
  22849. <package name="org.apache.hadoop.metrics2.filter">
  22850. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  22851. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  22852. abstract="false"
  22853. static="false" final="false" visibility="public"
  22854. deprecated="not deprecated">
  22855. <constructor name="GlobFilter"
  22856. static="false" final="false" visibility="public"
  22857. deprecated="not deprecated">
  22858. </constructor>
  22859. <method name="compile" return="java.util.regex.Pattern"
  22860. abstract="false" native="false" synchronized="false"
  22861. static="false" final="false" visibility="protected"
  22862. deprecated="not deprecated">
  22863. <param name="s" type="java.lang.String"/>
  22864. </method>
  22865. <doc>
  22866. <![CDATA[A glob pattern filter for metrics.
  22867. The class name is used in metrics config files]]>
  22868. </doc>
  22869. </class>
  22870. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  22871. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  22872. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  22873. abstract="false"
  22874. static="false" final="false" visibility="public"
  22875. deprecated="not deprecated">
  22876. <constructor name="RegexFilter"
  22877. static="false" final="false" visibility="public"
  22878. deprecated="not deprecated">
  22879. </constructor>
  22880. <method name="compile" return="java.util.regex.Pattern"
  22881. abstract="false" native="false" synchronized="false"
  22882. static="false" final="false" visibility="protected"
  22883. deprecated="not deprecated">
  22884. <param name="s" type="java.lang.String"/>
  22885. </method>
  22886. <doc>
  22887. <![CDATA[A regex pattern filter for metrics]]>
  22888. </doc>
  22889. </class>
  22890. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  22891. </package>
  22892. <package name="org.apache.hadoop.metrics2.lib">
  22893. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  22894. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  22895. abstract="false"
  22896. static="false" final="true" visibility="public"
  22897. deprecated="not deprecated">
  22898. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  22899. abstract="false" native="false" synchronized="false"
  22900. static="true" final="false" visibility="public"
  22901. deprecated="not deprecated">
  22902. </method>
  22903. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  22904. abstract="false" native="false" synchronized="false"
  22905. static="true" final="false" visibility="public"
  22906. deprecated="not deprecated">
  22907. <param name="name" type="java.lang.String"/>
  22908. </method>
  22909. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  22910. abstract="false" native="false" synchronized="false"
  22911. static="true" final="false" visibility="public"
  22912. deprecated="not deprecated">
  22913. <param name="prefix" type="java.lang.String"/>
  22914. <doc>
  22915. <![CDATA[Convenience method to initialize the metrics system
  22916. @param prefix for the metrics system configuration
  22917. @return the metrics system instance]]>
  22918. </doc>
  22919. </method>
  22920. <method name="instance" return="org.apache.hadoop.metrics2.MetricsSystem"
  22921. abstract="false" native="false" synchronized="false"
  22922. static="true" final="false" visibility="public"
  22923. deprecated="not deprecated">
  22924. <doc>
  22925. <![CDATA[@return the metrics system object]]>
  22926. </doc>
  22927. </method>
  22928. <method name="shutdown"
  22929. abstract="false" native="false" synchronized="false"
  22930. static="true" final="false" visibility="public"
  22931. deprecated="not deprecated">
  22932. <doc>
  22933. <![CDATA[Shutdown the metrics system]]>
  22934. </doc>
  22935. </method>
  22936. <doc>
  22937. <![CDATA[The default metrics system singleton]]>
  22938. </doc>
  22939. </class>
  22940. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  22941. <!-- start class org.apache.hadoop.metrics2.lib.Interns -->
  22942. <class name="Interns" extends="java.lang.Object"
  22943. abstract="false"
  22944. static="false" final="false" visibility="public"
  22945. deprecated="not deprecated">
  22946. <constructor name="Interns"
  22947. static="false" final="false" visibility="public"
  22948. deprecated="not deprecated">
  22949. </constructor>
  22950. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  22951. abstract="false" native="false" synchronized="false"
  22952. static="true" final="false" visibility="public"
  22953. deprecated="not deprecated">
  22954. <param name="name" type="java.lang.String"/>
  22955. <param name="description" type="java.lang.String"/>
  22956. <doc>
  22957. <![CDATA[Get a metric info object
  22958. @param name
  22959. @param description
  22960. @return an interned metric info object]]>
  22961. </doc>
  22962. </method>
  22963. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  22964. abstract="false" native="false" synchronized="false"
  22965. static="true" final="false" visibility="public"
  22966. deprecated="not deprecated">
  22967. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  22968. <param name="value" type="java.lang.String"/>
  22969. <doc>
  22970. <![CDATA[Get a metrics tag
  22971. @param info of the tag
  22972. @param value of the tag
  22973. @return an interned metrics tag]]>
  22974. </doc>
  22975. </method>
  22976. <method name="tag" return="org.apache.hadoop.metrics2.MetricsTag"
  22977. abstract="false" native="false" synchronized="false"
  22978. static="true" final="false" visibility="public"
  22979. deprecated="not deprecated">
  22980. <param name="name" type="java.lang.String"/>
  22981. <param name="description" type="java.lang.String"/>
  22982. <param name="value" type="java.lang.String"/>
  22983. <doc>
  22984. <![CDATA[Get a metrics tag
  22985. @param name of the tag
  22986. @param description of the tag
  22987. @param value of the tag
  22988. @return an interned metrics tag]]>
  22989. </doc>
  22990. </method>
  22991. <doc>
  22992. <![CDATA[Helpers to create interned metrics info]]>
  22993. </doc>
  22994. </class>
  22995. <!-- end class org.apache.hadoop.metrics2.lib.Interns -->
  22996. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  22997. <class name="MetricsRegistry" extends="java.lang.Object"
  22998. abstract="false"
  22999. static="false" final="false" visibility="public"
  23000. deprecated="not deprecated">
  23001. <constructor name="MetricsRegistry" type="java.lang.String"
  23002. static="false" final="false" visibility="public"
  23003. deprecated="not deprecated">
  23004. <doc>
  23005. <![CDATA[Construct the registry with a record name
  23006. @param name of the record of the metrics]]>
  23007. </doc>
  23008. </constructor>
  23009. <constructor name="MetricsRegistry" type="org.apache.hadoop.metrics2.MetricsInfo"
  23010. static="false" final="false" visibility="public"
  23011. deprecated="not deprecated">
  23012. <doc>
  23013. <![CDATA[Construct the registry with a metadata object
  23014. @param info the info object for the metrics record/group]]>
  23015. </doc>
  23016. </constructor>
  23017. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  23018. abstract="false" native="false" synchronized="false"
  23019. static="false" final="false" visibility="public"
  23020. deprecated="not deprecated">
  23021. <doc>
  23022. <![CDATA[@return the info object of the metrics registry]]>
  23023. </doc>
  23024. </method>
  23025. <method name="get" return="org.apache.hadoop.metrics2.lib.MutableMetric"
  23026. abstract="false" native="false" synchronized="true"
  23027. static="false" final="false" visibility="public"
  23028. deprecated="not deprecated">
  23029. <param name="name" type="java.lang.String"/>
  23030. <doc>
  23031. <![CDATA[Get a metric by name
  23032. @param name of the metric
  23033. @return the metric object]]>
  23034. </doc>
  23035. </method>
  23036. <method name="getTag" return="org.apache.hadoop.metrics2.MetricsTag"
  23037. abstract="false" native="false" synchronized="true"
  23038. static="false" final="false" visibility="public"
  23039. deprecated="not deprecated">
  23040. <param name="name" type="java.lang.String"/>
  23041. <doc>
  23042. <![CDATA[Get a tag by name
  23043. @param name of the tag
  23044. @return the tag object]]>
  23045. </doc>
  23046. </method>
  23047. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  23048. abstract="false" native="false" synchronized="false"
  23049. static="false" final="false" visibility="public"
  23050. deprecated="not deprecated">
  23051. <param name="name" type="java.lang.String"/>
  23052. <param name="desc" type="java.lang.String"/>
  23053. <param name="iVal" type="int"/>
  23054. <doc>
  23055. <![CDATA[Create a mutable integer counter
  23056. @param name of the metric
  23057. @param desc metric description
  23058. @param iVal initial value
  23059. @return a new counter object]]>
  23060. </doc>
  23061. </method>
  23062. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterInt"
  23063. abstract="false" native="false" synchronized="true"
  23064. static="false" final="false" visibility="public"
  23065. deprecated="not deprecated">
  23066. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23067. <param name="iVal" type="int"/>
  23068. <doc>
  23069. <![CDATA[Create a mutable integer counter
  23070. @param info metadata of the metric
  23071. @param iVal initial value
  23072. @return a new counter object]]>
  23073. </doc>
  23074. </method>
  23075. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  23076. abstract="false" native="false" synchronized="false"
  23077. static="false" final="false" visibility="public"
  23078. deprecated="not deprecated">
  23079. <param name="name" type="java.lang.String"/>
  23080. <param name="desc" type="java.lang.String"/>
  23081. <param name="iVal" type="long"/>
  23082. <doc>
  23083. <![CDATA[Create a mutable long integer counter
  23084. @param name of the metric
  23085. @param desc metric description
  23086. @param iVal initial value
  23087. @return a new counter object]]>
  23088. </doc>
  23089. </method>
  23090. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MutableCounterLong"
  23091. abstract="false" native="false" synchronized="true"
  23092. static="false" final="false" visibility="public"
  23093. deprecated="not deprecated">
  23094. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23095. <param name="iVal" type="long"/>
  23096. <doc>
  23097. <![CDATA[Create a mutable long integer counter
  23098. @param info metadata of the metric
  23099. @param iVal initial value
  23100. @return a new counter object]]>
  23101. </doc>
  23102. </method>
  23103. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  23104. abstract="false" native="false" synchronized="false"
  23105. static="false" final="false" visibility="public"
  23106. deprecated="not deprecated">
  23107. <param name="name" type="java.lang.String"/>
  23108. <param name="desc" type="java.lang.String"/>
  23109. <param name="iVal" type="int"/>
  23110. <doc>
  23111. <![CDATA[Create a mutable integer gauge
  23112. @param name of the metric
  23113. @param desc metric description
  23114. @param iVal initial value
  23115. @return a new gauge object]]>
  23116. </doc>
  23117. </method>
  23118. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeInt"
  23119. abstract="false" native="false" synchronized="true"
  23120. static="false" final="false" visibility="public"
  23121. deprecated="not deprecated">
  23122. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23123. <param name="iVal" type="int"/>
  23124. <doc>
  23125. <![CDATA[Create a mutable integer gauge
  23126. @param info metadata of the metric
  23127. @param iVal initial value
  23128. @return a new gauge object]]>
  23129. </doc>
  23130. </method>
  23131. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  23132. abstract="false" native="false" synchronized="false"
  23133. static="false" final="false" visibility="public"
  23134. deprecated="not deprecated">
  23135. <param name="name" type="java.lang.String"/>
  23136. <param name="desc" type="java.lang.String"/>
  23137. <param name="iVal" type="long"/>
  23138. <doc>
  23139. <![CDATA[Create a mutable long integer gauge
  23140. @param name of the metric
  23141. @param desc metric description
  23142. @param iVal initial value
  23143. @return a new gauge object]]>
  23144. </doc>
  23145. </method>
  23146. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MutableGaugeLong"
  23147. abstract="false" native="false" synchronized="true"
  23148. static="false" final="false" visibility="public"
  23149. deprecated="not deprecated">
  23150. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23151. <param name="iVal" type="long"/>
  23152. <doc>
  23153. <![CDATA[Create a mutable long integer gauge
  23154. @param info metadata of the metric
  23155. @param iVal initial value
  23156. @return a new gauge object]]>
  23157. </doc>
  23158. </method>
  23159. <method name="newQuantiles" return="org.apache.hadoop.metrics2.lib.MutableQuantiles"
  23160. abstract="false" native="false" synchronized="true"
  23161. static="false" final="false" visibility="public"
  23162. deprecated="not deprecated">
  23163. <param name="name" type="java.lang.String"/>
  23164. <param name="desc" type="java.lang.String"/>
  23165. <param name="sampleName" type="java.lang.String"/>
  23166. <param name="valueName" type="java.lang.String"/>
  23167. <param name="interval" type="int"/>
  23168. <doc>
  23169. <![CDATA[Create a mutable metric that estimates quantiles of a stream of values
  23170. @param name of the metric
  23171. @param desc metric description
  23172. @param sampleName of the metric (e.g., "Ops")
  23173. @param valueName of the metric (e.g., "Time" or "Latency")
  23174. @param interval rollover interval of estimator in seconds
  23175. @return a new quantile estimator object]]>
  23176. </doc>
  23177. </method>
  23178. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  23179. abstract="false" native="false" synchronized="true"
  23180. static="false" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. <param name="name" type="java.lang.String"/>
  23183. <param name="desc" type="java.lang.String"/>
  23184. <param name="sampleName" type="java.lang.String"/>
  23185. <param name="valueName" type="java.lang.String"/>
  23186. <param name="extended" type="boolean"/>
  23187. <doc>
  23188. <![CDATA[Create a mutable metric with stats
  23189. @param name of the metric
  23190. @param desc metric description
  23191. @param sampleName of the metric (e.g., "Ops")
  23192. @param valueName of the metric (e.g., "Time" or "Latency")
  23193. @param extended produce extended stat (stdev, min/max etc.) if true.
  23194. @return a new mutable stat metric object]]>
  23195. </doc>
  23196. </method>
  23197. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MutableStat"
  23198. abstract="false" native="false" synchronized="false"
  23199. static="false" final="false" visibility="public"
  23200. deprecated="not deprecated">
  23201. <param name="name" type="java.lang.String"/>
  23202. <param name="desc" type="java.lang.String"/>
  23203. <param name="sampleName" type="java.lang.String"/>
  23204. <param name="valueName" type="java.lang.String"/>
  23205. <doc>
  23206. <![CDATA[Create a mutable metric with stats
  23207. @param name of the metric
  23208. @param desc metric description
  23209. @param sampleName of the metric (e.g., "Ops")
  23210. @param valueName of the metric (e.g., "Time" or "Latency")
  23211. @return a new mutable metric object]]>
  23212. </doc>
  23213. </method>
  23214. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  23215. abstract="false" native="false" synchronized="false"
  23216. static="false" final="false" visibility="public"
  23217. deprecated="not deprecated">
  23218. <param name="name" type="java.lang.String"/>
  23219. <doc>
  23220. <![CDATA[Create a mutable rate metric
  23221. @param name of the metric
  23222. @return a new mutable metric object]]>
  23223. </doc>
  23224. </method>
  23225. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  23226. abstract="false" native="false" synchronized="false"
  23227. static="false" final="false" visibility="public"
  23228. deprecated="not deprecated">
  23229. <param name="name" type="java.lang.String"/>
  23230. <param name="description" type="java.lang.String"/>
  23231. <doc>
  23232. <![CDATA[Create a mutable rate metric
  23233. @param name of the metric
  23234. @param description of the metric
  23235. @return a new mutable rate metric object]]>
  23236. </doc>
  23237. </method>
  23238. <method name="newRate" return="org.apache.hadoop.metrics2.lib.MutableRate"
  23239. abstract="false" native="false" synchronized="false"
  23240. static="false" final="false" visibility="public"
  23241. deprecated="not deprecated">
  23242. <param name="name" type="java.lang.String"/>
  23243. <param name="desc" type="java.lang.String"/>
  23244. <param name="extended" type="boolean"/>
  23245. <doc>
  23246. <![CDATA[Create a mutable rate metric (for throughput measurement)
  23247. @param name of the metric
  23248. @param desc description
  23249. @param extended produce extended stat (stdev/min/max etc.) if true
  23250. @return a new mutable rate metric object]]>
  23251. </doc>
  23252. </method>
  23253. <method name="add"
  23254. abstract="false" native="false" synchronized="true"
  23255. static="false" final="false" visibility="public"
  23256. deprecated="not deprecated">
  23257. <param name="name" type="java.lang.String"/>
  23258. <param name="value" type="long"/>
  23259. <doc>
  23260. <![CDATA[Add sample to a stat metric by name.
  23261. @param name of the metric
  23262. @param value of the snapshot to add]]>
  23263. </doc>
  23264. </method>
  23265. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  23266. abstract="false" native="false" synchronized="false"
  23267. static="false" final="false" visibility="public"
  23268. deprecated="not deprecated">
  23269. <param name="name" type="java.lang.String"/>
  23270. <doc>
  23271. <![CDATA[Set the metrics context tag
  23272. @param name of the context
  23273. @return the registry itself as a convenience]]>
  23274. </doc>
  23275. </method>
  23276. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  23277. abstract="false" native="false" synchronized="false"
  23278. static="false" final="false" visibility="public"
  23279. deprecated="not deprecated">
  23280. <param name="name" type="java.lang.String"/>
  23281. <param name="description" type="java.lang.String"/>
  23282. <param name="value" type="java.lang.String"/>
  23283. <doc>
  23284. <![CDATA[Add a tag to the metrics
  23285. @param name of the tag
  23286. @param description of the tag
  23287. @param value of the tag
  23288. @return the registry (for keep adding tags)]]>
  23289. </doc>
  23290. </method>
  23291. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  23292. abstract="false" native="false" synchronized="false"
  23293. static="false" final="false" visibility="public"
  23294. deprecated="not deprecated">
  23295. <param name="name" type="java.lang.String"/>
  23296. <param name="description" type="java.lang.String"/>
  23297. <param name="value" type="java.lang.String"/>
  23298. <param name="override" type="boolean"/>
  23299. <doc>
  23300. <![CDATA[Add a tag to the metrics
  23301. @param name of the tag
  23302. @param description of the tag
  23303. @param value of the tag
  23304. @param override existing tag if true
  23305. @return the registry (for keep adding tags)]]>
  23306. </doc>
  23307. </method>
  23308. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  23309. abstract="false" native="false" synchronized="true"
  23310. static="false" final="false" visibility="public"
  23311. deprecated="not deprecated">
  23312. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23313. <param name="value" type="java.lang.String"/>
  23314. <param name="override" type="boolean"/>
  23315. <doc>
  23316. <![CDATA[Add a tag to the metrics
  23317. @param info metadata of the tag
  23318. @param value of the tag
  23319. @param override existing tag if true
  23320. @return the registry (for keep adding tags etc.)]]>
  23321. </doc>
  23322. </method>
  23323. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  23324. abstract="false" native="false" synchronized="false"
  23325. static="false" final="false" visibility="public"
  23326. deprecated="not deprecated">
  23327. <param name="info" type="org.apache.hadoop.metrics2.MetricsInfo"/>
  23328. <param name="value" type="java.lang.String"/>
  23329. </method>
  23330. <method name="snapshot"
  23331. abstract="false" native="false" synchronized="true"
  23332. static="false" final="false" visibility="public"
  23333. deprecated="not deprecated">
  23334. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23335. <param name="all" type="boolean"/>
  23336. <doc>
  23337. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  23338. @param builder to contain the metrics snapshot
  23339. @param all get all the metrics even if the values are not changed.]]>
  23340. </doc>
  23341. </method>
  23342. <method name="toString" return="java.lang.String"
  23343. abstract="false" native="false" synchronized="false"
  23344. static="false" final="false" visibility="public"
  23345. deprecated="not deprecated">
  23346. </method>
  23347. <doc>
  23348. <![CDATA[An optional metrics registry class for creating and maintaining a
  23349. collection of MetricsMutables, making writing metrics source easier.]]>
  23350. </doc>
  23351. </class>
  23352. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  23353. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounter -->
  23354. <class name="MutableCounter" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  23355. abstract="true"
  23356. static="false" final="false" visibility="public"
  23357. deprecated="not deprecated">
  23358. <constructor name="MutableCounter" type="org.apache.hadoop.metrics2.MetricsInfo"
  23359. static="false" final="false" visibility="protected"
  23360. deprecated="not deprecated">
  23361. </constructor>
  23362. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  23363. abstract="false" native="false" synchronized="false"
  23364. static="false" final="false" visibility="protected"
  23365. deprecated="not deprecated">
  23366. </method>
  23367. <method name="incr"
  23368. abstract="true" native="false" synchronized="false"
  23369. static="false" final="false" visibility="public"
  23370. deprecated="not deprecated">
  23371. <doc>
  23372. <![CDATA[Increment the metric value by 1.]]>
  23373. </doc>
  23374. </method>
  23375. <doc>
  23376. <![CDATA[The mutable counter (monotonically increasing) metric interface]]>
  23377. </doc>
  23378. </class>
  23379. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounter -->
  23380. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  23381. <class name="MutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  23382. abstract="false"
  23383. static="false" final="false" visibility="public"
  23384. deprecated="not deprecated">
  23385. <method name="incr"
  23386. abstract="false" native="false" synchronized="false"
  23387. static="false" final="false" visibility="public"
  23388. deprecated="not deprecated">
  23389. </method>
  23390. <method name="incr"
  23391. abstract="false" native="false" synchronized="true"
  23392. static="false" final="false" visibility="public"
  23393. deprecated="not deprecated">
  23394. <param name="delta" type="int"/>
  23395. <doc>
  23396. <![CDATA[Increment the value by a delta
  23397. @param delta of the increment]]>
  23398. </doc>
  23399. </method>
  23400. <method name="value" return="int"
  23401. abstract="false" native="false" synchronized="false"
  23402. static="false" final="false" visibility="public"
  23403. deprecated="not deprecated">
  23404. </method>
  23405. <method name="snapshot"
  23406. abstract="false" native="false" synchronized="false"
  23407. static="false" final="false" visibility="public"
  23408. deprecated="not deprecated">
  23409. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23410. <param name="all" type="boolean"/>
  23411. </method>
  23412. <doc>
  23413. <![CDATA[A mutable int counter for implementing metrics sources]]>
  23414. </doc>
  23415. </class>
  23416. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterInt -->
  23417. <!-- start class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  23418. <class name="MutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MutableCounter"
  23419. abstract="false"
  23420. static="false" final="false" visibility="public"
  23421. deprecated="not deprecated">
  23422. <method name="incr"
  23423. abstract="false" native="false" synchronized="false"
  23424. static="false" final="false" visibility="public"
  23425. deprecated="not deprecated">
  23426. </method>
  23427. <method name="incr"
  23428. abstract="false" native="false" synchronized="false"
  23429. static="false" final="false" visibility="public"
  23430. deprecated="not deprecated">
  23431. <param name="delta" type="long"/>
  23432. <doc>
  23433. <![CDATA[Increment the value by a delta
  23434. @param delta of the increment]]>
  23435. </doc>
  23436. </method>
  23437. <method name="value" return="long"
  23438. abstract="false" native="false" synchronized="false"
  23439. static="false" final="false" visibility="public"
  23440. deprecated="not deprecated">
  23441. </method>
  23442. <method name="snapshot"
  23443. abstract="false" native="false" synchronized="false"
  23444. static="false" final="false" visibility="public"
  23445. deprecated="not deprecated">
  23446. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23447. <param name="all" type="boolean"/>
  23448. </method>
  23449. <doc>
  23450. <![CDATA[A mutable long counter]]>
  23451. </doc>
  23452. </class>
  23453. <!-- end class org.apache.hadoop.metrics2.lib.MutableCounterLong -->
  23454. <!-- start class org.apache.hadoop.metrics2.lib.MutableGauge -->
  23455. <class name="MutableGauge" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  23456. abstract="true"
  23457. static="false" final="false" visibility="public"
  23458. deprecated="not deprecated">
  23459. <constructor name="MutableGauge" type="org.apache.hadoop.metrics2.MetricsInfo"
  23460. static="false" final="false" visibility="protected"
  23461. deprecated="not deprecated">
  23462. </constructor>
  23463. <method name="info" return="org.apache.hadoop.metrics2.MetricsInfo"
  23464. abstract="false" native="false" synchronized="false"
  23465. static="false" final="false" visibility="protected"
  23466. deprecated="not deprecated">
  23467. </method>
  23468. <method name="incr"
  23469. abstract="true" native="false" synchronized="false"
  23470. static="false" final="false" visibility="public"
  23471. deprecated="not deprecated">
  23472. <doc>
  23473. <![CDATA[Increment the value of the metric by 1]]>
  23474. </doc>
  23475. </method>
  23476. <method name="decr"
  23477. abstract="true" native="false" synchronized="false"
  23478. static="false" final="false" visibility="public"
  23479. deprecated="not deprecated">
  23480. <doc>
  23481. <![CDATA[Decrement the value of the metric by 1]]>
  23482. </doc>
  23483. </method>
  23484. <doc>
  23485. <![CDATA[The mutable gauge metric interface]]>
  23486. </doc>
  23487. </class>
  23488. <!-- end class org.apache.hadoop.metrics2.lib.MutableGauge -->
  23489. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  23490. <class name="MutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  23491. abstract="false"
  23492. static="false" final="false" visibility="public"
  23493. deprecated="not deprecated">
  23494. <method name="value" return="int"
  23495. abstract="false" native="false" synchronized="false"
  23496. static="false" final="false" visibility="public"
  23497. deprecated="not deprecated">
  23498. </method>
  23499. <method name="incr"
  23500. abstract="false" native="false" synchronized="false"
  23501. static="false" final="false" visibility="public"
  23502. deprecated="not deprecated">
  23503. </method>
  23504. <method name="incr"
  23505. abstract="false" native="false" synchronized="false"
  23506. static="false" final="false" visibility="public"
  23507. deprecated="not deprecated">
  23508. <param name="delta" type="int"/>
  23509. <doc>
  23510. <![CDATA[Increment by delta
  23511. @param delta of the increment]]>
  23512. </doc>
  23513. </method>
  23514. <method name="decr"
  23515. abstract="false" native="false" synchronized="false"
  23516. static="false" final="false" visibility="public"
  23517. deprecated="not deprecated">
  23518. </method>
  23519. <method name="decr"
  23520. abstract="false" native="false" synchronized="false"
  23521. static="false" final="false" visibility="public"
  23522. deprecated="not deprecated">
  23523. <param name="delta" type="int"/>
  23524. <doc>
  23525. <![CDATA[decrement by delta
  23526. @param delta of the decrement]]>
  23527. </doc>
  23528. </method>
  23529. <method name="set"
  23530. abstract="false" native="false" synchronized="false"
  23531. static="false" final="false" visibility="public"
  23532. deprecated="not deprecated">
  23533. <param name="value" type="int"/>
  23534. <doc>
  23535. <![CDATA[Set the value of the metric
  23536. @param value to set]]>
  23537. </doc>
  23538. </method>
  23539. <method name="snapshot"
  23540. abstract="false" native="false" synchronized="false"
  23541. static="false" final="false" visibility="public"
  23542. deprecated="not deprecated">
  23543. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23544. <param name="all" type="boolean"/>
  23545. </method>
  23546. <doc>
  23547. <![CDATA[A mutable int gauge]]>
  23548. </doc>
  23549. </class>
  23550. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeInt -->
  23551. <!-- start class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  23552. <class name="MutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MutableGauge"
  23553. abstract="false"
  23554. static="false" final="false" visibility="public"
  23555. deprecated="not deprecated">
  23556. <method name="value" return="long"
  23557. abstract="false" native="false" synchronized="false"
  23558. static="false" final="false" visibility="public"
  23559. deprecated="not deprecated">
  23560. </method>
  23561. <method name="incr"
  23562. abstract="false" native="false" synchronized="false"
  23563. static="false" final="false" visibility="public"
  23564. deprecated="not deprecated">
  23565. </method>
  23566. <method name="incr"
  23567. abstract="false" native="false" synchronized="false"
  23568. static="false" final="false" visibility="public"
  23569. deprecated="not deprecated">
  23570. <param name="delta" type="long"/>
  23571. <doc>
  23572. <![CDATA[Increment by delta
  23573. @param delta of the increment]]>
  23574. </doc>
  23575. </method>
  23576. <method name="decr"
  23577. abstract="false" native="false" synchronized="false"
  23578. static="false" final="false" visibility="public"
  23579. deprecated="not deprecated">
  23580. </method>
  23581. <method name="decr"
  23582. abstract="false" native="false" synchronized="false"
  23583. static="false" final="false" visibility="public"
  23584. deprecated="not deprecated">
  23585. <param name="delta" type="long"/>
  23586. <doc>
  23587. <![CDATA[decrement by delta
  23588. @param delta of the decrement]]>
  23589. </doc>
  23590. </method>
  23591. <method name="set"
  23592. abstract="false" native="false" synchronized="false"
  23593. static="false" final="false" visibility="public"
  23594. deprecated="not deprecated">
  23595. <param name="value" type="long"/>
  23596. <doc>
  23597. <![CDATA[Set the value of the metric
  23598. @param value to set]]>
  23599. </doc>
  23600. </method>
  23601. <method name="snapshot"
  23602. abstract="false" native="false" synchronized="false"
  23603. static="false" final="false" visibility="public"
  23604. deprecated="not deprecated">
  23605. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23606. <param name="all" type="boolean"/>
  23607. </method>
  23608. <doc>
  23609. <![CDATA[A mutable long gauge]]>
  23610. </doc>
  23611. </class>
  23612. <!-- end class org.apache.hadoop.metrics2.lib.MutableGaugeLong -->
  23613. <!-- start class org.apache.hadoop.metrics2.lib.MutableMetric -->
  23614. <class name="MutableMetric" extends="java.lang.Object"
  23615. abstract="true"
  23616. static="false" final="false" visibility="public"
  23617. deprecated="not deprecated">
  23618. <constructor name="MutableMetric"
  23619. static="false" final="false" visibility="public"
  23620. deprecated="not deprecated">
  23621. </constructor>
  23622. <method name="snapshot"
  23623. abstract="true" native="false" synchronized="false"
  23624. static="false" final="false" visibility="public"
  23625. deprecated="not deprecated">
  23626. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23627. <param name="all" type="boolean"/>
  23628. <doc>
  23629. <![CDATA[Get a snapshot of the metric
  23630. @param builder the metrics record builder
  23631. @param all if true, snapshot unchanged metrics as well]]>
  23632. </doc>
  23633. </method>
  23634. <method name="snapshot"
  23635. abstract="false" native="false" synchronized="false"
  23636. static="false" final="false" visibility="public"
  23637. deprecated="not deprecated">
  23638. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23639. <doc>
  23640. <![CDATA[Get a snapshot of metric if changed
  23641. @param builder the metrics record builder]]>
  23642. </doc>
  23643. </method>
  23644. <method name="setChanged"
  23645. abstract="false" native="false" synchronized="false"
  23646. static="false" final="false" visibility="protected"
  23647. deprecated="not deprecated">
  23648. <doc>
  23649. <![CDATA[Set the changed flag in mutable operations]]>
  23650. </doc>
  23651. </method>
  23652. <method name="clearChanged"
  23653. abstract="false" native="false" synchronized="false"
  23654. static="false" final="false" visibility="protected"
  23655. deprecated="not deprecated">
  23656. <doc>
  23657. <![CDATA[Clear the changed flag in the snapshot operations]]>
  23658. </doc>
  23659. </method>
  23660. <method name="changed" return="boolean"
  23661. abstract="false" native="false" synchronized="false"
  23662. static="false" final="false" visibility="public"
  23663. deprecated="not deprecated">
  23664. <doc>
  23665. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  23666. </doc>
  23667. </method>
  23668. <doc>
  23669. <![CDATA[The mutable metric interface]]>
  23670. </doc>
  23671. </class>
  23672. <!-- end class org.apache.hadoop.metrics2.lib.MutableMetric -->
  23673. <!-- start class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  23674. <class name="MutableQuantiles" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  23675. abstract="false"
  23676. static="false" final="false" visibility="public"
  23677. deprecated="not deprecated">
  23678. <constructor name="MutableQuantiles" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, int"
  23679. static="false" final="false" visibility="public"
  23680. deprecated="not deprecated">
  23681. <doc>
  23682. <![CDATA[Instantiates a new {@link MutableQuantiles} for a metric that rolls itself
  23683. over on the specified time interval.
  23684. @param name
  23685. of the metric
  23686. @param description
  23687. long-form textual description of the metric
  23688. @param sampleName
  23689. type of items in the stream (e.g., "Ops")
  23690. @param valueName
  23691. type of the values
  23692. @param interval
  23693. rollover interval (in seconds) of the estimator]]>
  23694. </doc>
  23695. </constructor>
  23696. <method name="snapshot"
  23697. abstract="false" native="false" synchronized="true"
  23698. static="false" final="false" visibility="public"
  23699. deprecated="not deprecated">
  23700. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23701. <param name="all" type="boolean"/>
  23702. </method>
  23703. <method name="add"
  23704. abstract="false" native="false" synchronized="true"
  23705. static="false" final="false" visibility="public"
  23706. deprecated="not deprecated">
  23707. <param name="value" type="long"/>
  23708. </method>
  23709. <method name="getInterval" return="int"
  23710. abstract="false" native="false" synchronized="false"
  23711. static="false" final="false" visibility="public"
  23712. deprecated="not deprecated">
  23713. </method>
  23714. <field name="quantiles" type="org.apache.hadoop.metrics2.util.Quantile[]"
  23715. transient="false" volatile="false"
  23716. static="true" final="true" visibility="public"
  23717. deprecated="not deprecated">
  23718. </field>
  23719. <field name="previousSnapshot" type="java.util.Map"
  23720. transient="false" volatile="false"
  23721. static="false" final="false" visibility="protected"
  23722. deprecated="not deprecated">
  23723. </field>
  23724. <doc>
  23725. <![CDATA[Watches a stream of long values, maintaining online estimates of specific
  23726. quantiles with provably low error bounds. This is particularly useful for
  23727. accurate high-percentile (e.g. 95th, 99th) latency metrics.]]>
  23728. </doc>
  23729. </class>
  23730. <!-- end class org.apache.hadoop.metrics2.lib.MutableQuantiles -->
  23731. <!-- start class org.apache.hadoop.metrics2.lib.MutableRate -->
  23732. <class name="MutableRate" extends="org.apache.hadoop.metrics2.lib.MutableStat"
  23733. abstract="false"
  23734. static="false" final="false" visibility="public"
  23735. deprecated="not deprecated">
  23736. <doc>
  23737. <![CDATA[A convenient mutable metric for throughput measurement]]>
  23738. </doc>
  23739. </class>
  23740. <!-- end class org.apache.hadoop.metrics2.lib.MutableRate -->
  23741. <!-- start class org.apache.hadoop.metrics2.lib.MutableRates -->
  23742. <class name="MutableRates" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  23743. abstract="false"
  23744. static="false" final="false" visibility="public"
  23745. deprecated="not deprecated">
  23746. <method name="init"
  23747. abstract="false" native="false" synchronized="false"
  23748. static="false" final="false" visibility="public"
  23749. deprecated="not deprecated">
  23750. <param name="protocol" type="java.lang.Class"/>
  23751. <doc>
  23752. <![CDATA[Initialize the registry with all the methods in a protocol
  23753. so they all show up in the first snapshot.
  23754. Convenient for JMX implementations.
  23755. @param protocol the protocol class]]>
  23756. </doc>
  23757. </method>
  23758. <method name="add"
  23759. abstract="false" native="false" synchronized="false"
  23760. static="false" final="false" visibility="public"
  23761. deprecated="not deprecated">
  23762. <param name="name" type="java.lang.String"/>
  23763. <param name="elapsed" type="long"/>
  23764. <doc>
  23765. <![CDATA[Add a rate sample for a rate metric
  23766. @param name of the rate metric
  23767. @param elapsed time]]>
  23768. </doc>
  23769. </method>
  23770. <method name="snapshot"
  23771. abstract="false" native="false" synchronized="false"
  23772. static="false" final="false" visibility="public"
  23773. deprecated="not deprecated">
  23774. <param name="rb" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23775. <param name="all" type="boolean"/>
  23776. </method>
  23777. <doc>
  23778. <![CDATA[Helper class to manage a group of mutable rate metrics]]>
  23779. </doc>
  23780. </class>
  23781. <!-- end class org.apache.hadoop.metrics2.lib.MutableRates -->
  23782. <!-- start class org.apache.hadoop.metrics2.lib.MutableStat -->
  23783. <class name="MutableStat" extends="org.apache.hadoop.metrics2.lib.MutableMetric"
  23784. abstract="false"
  23785. static="false" final="false" visibility="public"
  23786. deprecated="not deprecated">
  23787. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  23788. static="false" final="false" visibility="public"
  23789. deprecated="not deprecated">
  23790. <doc>
  23791. <![CDATA[Construct a sample statistics metric
  23792. @param name of the metric
  23793. @param description of the metric
  23794. @param sampleName of the metric (e.g. "Ops")
  23795. @param valueName of the metric (e.g. "Time", "Latency")
  23796. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  23797. </doc>
  23798. </constructor>
  23799. <constructor name="MutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  23800. static="false" final="false" visibility="public"
  23801. deprecated="not deprecated">
  23802. <doc>
  23803. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  23804. @param name of the metric
  23805. @param description of the metric
  23806. @param sampleName of the metric (e.g. "Ops")
  23807. @param valueName of the metric (e.g. "Time", "Latency")]]>
  23808. </doc>
  23809. </constructor>
  23810. <method name="setExtended"
  23811. abstract="false" native="false" synchronized="true"
  23812. static="false" final="false" visibility="public"
  23813. deprecated="not deprecated">
  23814. <param name="extended" type="boolean"/>
  23815. <doc>
  23816. <![CDATA[Set whether to display the extended stats (stdev, min/max etc.) or not
  23817. @param extended enable/disable displaying extended stats]]>
  23818. </doc>
  23819. </method>
  23820. <method name="add"
  23821. abstract="false" native="false" synchronized="true"
  23822. static="false" final="false" visibility="public"
  23823. deprecated="not deprecated">
  23824. <param name="numSamples" type="long"/>
  23825. <param name="sum" type="long"/>
  23826. <doc>
  23827. <![CDATA[Add a number of samples and their sum to the running stat
  23828. @param numSamples number of samples
  23829. @param sum of the samples]]>
  23830. </doc>
  23831. </method>
  23832. <method name="add"
  23833. abstract="false" native="false" synchronized="true"
  23834. static="false" final="false" visibility="public"
  23835. deprecated="not deprecated">
  23836. <param name="value" type="long"/>
  23837. <doc>
  23838. <![CDATA[Add a snapshot to the metric
  23839. @param value of the metric]]>
  23840. </doc>
  23841. </method>
  23842. <method name="snapshot"
  23843. abstract="false" native="false" synchronized="true"
  23844. static="false" final="false" visibility="public"
  23845. deprecated="not deprecated">
  23846. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  23847. <param name="all" type="boolean"/>
  23848. </method>
  23849. <method name="resetMinMax"
  23850. abstract="false" native="false" synchronized="false"
  23851. static="false" final="false" visibility="public"
  23852. deprecated="not deprecated">
  23853. <doc>
  23854. <![CDATA[Reset the all time min max of the metric]]>
  23855. </doc>
  23856. </method>
  23857. <doc>
  23858. <![CDATA[A mutable metric with stats.
  23859. Useful for keeping throughput/latency stats.]]>
  23860. </doc>
  23861. </class>
  23862. <!-- end class org.apache.hadoop.metrics2.lib.MutableStat -->
  23863. </package>
  23864. <package name="org.apache.hadoop.metrics2.sink">
  23865. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  23866. <class name="FileSink" extends="java.lang.Object"
  23867. abstract="false"
  23868. static="false" final="false" visibility="public"
  23869. deprecated="not deprecated">
  23870. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  23871. <implements name="java.io.Closeable"/>
  23872. <constructor name="FileSink"
  23873. static="false" final="false" visibility="public"
  23874. deprecated="not deprecated">
  23875. </constructor>
  23876. <method name="init"
  23877. abstract="false" native="false" synchronized="false"
  23878. static="false" final="false" visibility="public"
  23879. deprecated="not deprecated">
  23880. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  23881. </method>
  23882. <method name="putMetrics"
  23883. abstract="false" native="false" synchronized="false"
  23884. static="false" final="false" visibility="public"
  23885. deprecated="not deprecated">
  23886. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  23887. </method>
  23888. <method name="flush"
  23889. abstract="false" native="false" synchronized="false"
  23890. static="false" final="false" visibility="public"
  23891. deprecated="not deprecated">
  23892. </method>
  23893. <method name="close"
  23894. abstract="false" native="false" synchronized="false"
  23895. static="false" final="false" visibility="public"
  23896. deprecated="not deprecated">
  23897. <exception name="IOException" type="java.io.IOException"/>
  23898. </method>
  23899. <doc>
  23900. <![CDATA[A metrics sink that writes to a file]]>
  23901. </doc>
  23902. </class>
  23903. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  23904. <!-- start class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  23905. <class name="GraphiteSink" extends="java.lang.Object"
  23906. abstract="false"
  23907. static="false" final="false" visibility="public"
  23908. deprecated="not deprecated">
  23909. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  23910. <implements name="java.io.Closeable"/>
  23911. <constructor name="GraphiteSink"
  23912. static="false" final="false" visibility="public"
  23913. deprecated="not deprecated">
  23914. </constructor>
  23915. <method name="init"
  23916. abstract="false" native="false" synchronized="false"
  23917. static="false" final="false" visibility="public"
  23918. deprecated="not deprecated">
  23919. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  23920. </method>
  23921. <method name="putMetrics"
  23922. abstract="false" native="false" synchronized="false"
  23923. static="false" final="false" visibility="public"
  23924. deprecated="not deprecated">
  23925. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  23926. </method>
  23927. <method name="flush"
  23928. abstract="false" native="false" synchronized="false"
  23929. static="false" final="false" visibility="public"
  23930. deprecated="not deprecated">
  23931. </method>
  23932. <method name="close"
  23933. abstract="false" native="false" synchronized="false"
  23934. static="false" final="false" visibility="public"
  23935. deprecated="not deprecated">
  23936. <exception name="IOException" type="java.io.IOException"/>
  23937. </method>
  23938. <doc>
  23939. <![CDATA[A metrics sink that writes to a Graphite server]]>
  23940. </doc>
  23941. </class>
  23942. <!-- end class org.apache.hadoop.metrics2.sink.GraphiteSink -->
  23943. </package>
  23944. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  23945. </package>
  23946. <package name="org.apache.hadoop.metrics2.source">
  23947. </package>
  23948. <package name="org.apache.hadoop.metrics2.util">
  23949. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  23950. <class name="MBeans" extends="java.lang.Object"
  23951. abstract="false"
  23952. static="false" final="false" visibility="public"
  23953. deprecated="not deprecated">
  23954. <constructor name="MBeans"
  23955. static="false" final="false" visibility="public"
  23956. deprecated="not deprecated">
  23957. </constructor>
  23958. <method name="register" return="javax.management.ObjectName"
  23959. abstract="false" native="false" synchronized="false"
  23960. static="true" final="false" visibility="public"
  23961. deprecated="not deprecated">
  23962. <param name="serviceName" type="java.lang.String"/>
  23963. <param name="nameName" type="java.lang.String"/>
  23964. <param name="theMbean" type="java.lang.Object"/>
  23965. <doc>
  23966. <![CDATA[Register the MBean using our standard MBeanName format
  23967. "hadoop:service=<serviceName>,name=<nameName>"
  23968. Where the <serviceName> and <nameName> are the supplied parameters
  23969. @param serviceName
  23970. @param nameName
  23971. @param theMbean - the MBean to register
  23972. @return the named used to register the MBean]]>
  23973. </doc>
  23974. </method>
  23975. <method name="unregister"
  23976. abstract="false" native="false" synchronized="false"
  23977. static="true" final="false" visibility="public"
  23978. deprecated="not deprecated">
  23979. <param name="mbeanName" type="javax.management.ObjectName"/>
  23980. </method>
  23981. <doc>
  23982. <![CDATA[This util class provides a method to register an MBean using
  23983. our standard naming convention as described in the doc
  23984. for {link {@link #register(String, String, Object)}]]>
  23985. </doc>
  23986. </class>
  23987. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  23988. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  23989. <class name="MetricsCache" extends="java.lang.Object"
  23990. abstract="false"
  23991. static="false" final="false" visibility="public"
  23992. deprecated="not deprecated">
  23993. <constructor name="MetricsCache"
  23994. static="false" final="false" visibility="public"
  23995. deprecated="not deprecated">
  23996. </constructor>
  23997. <constructor name="MetricsCache" type="int"
  23998. static="false" final="false" visibility="public"
  23999. deprecated="not deprecated">
  24000. <doc>
  24001. <![CDATA[Construct a metrics cache
  24002. @param maxRecsPerName limit of the number records per record name]]>
  24003. </doc>
  24004. </constructor>
  24005. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  24006. abstract="false" native="false" synchronized="false"
  24007. static="false" final="false" visibility="public"
  24008. deprecated="not deprecated">
  24009. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24010. <param name="includingTags" type="boolean"/>
  24011. <doc>
  24012. <![CDATA[Update the cache and return the current cached record
  24013. @param mr the update record
  24014. @param includingTags cache tag values (for later lookup by name) if true
  24015. @return the updated cache record]]>
  24016. </doc>
  24017. </method>
  24018. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  24019. abstract="false" native="false" synchronized="false"
  24020. static="false" final="false" visibility="public"
  24021. deprecated="not deprecated">
  24022. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  24023. <doc>
  24024. <![CDATA[Update the cache and return the current cache record
  24025. @param mr the update record
  24026. @return the updated cache record]]>
  24027. </doc>
  24028. </method>
  24029. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  24030. abstract="false" native="false" synchronized="false"
  24031. static="false" final="false" visibility="public"
  24032. deprecated="not deprecated">
  24033. <param name="name" type="java.lang.String"/>
  24034. <param name="tags" type="java.util.Collection"/>
  24035. <doc>
  24036. <![CDATA[Get the cached record
  24037. @param name of the record
  24038. @param tags of the record
  24039. @return the cached record or null]]>
  24040. </doc>
  24041. </method>
  24042. <doc>
  24043. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  24044. </doc>
  24045. </class>
  24046. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  24047. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  24048. <class name="Servers" extends="java.lang.Object"
  24049. abstract="false"
  24050. static="false" final="false" visibility="public"
  24051. deprecated="not deprecated">
  24052. <method name="parse" return="java.util.List"
  24053. abstract="false" native="false" synchronized="false"
  24054. static="true" final="false" visibility="public"
  24055. deprecated="not deprecated">
  24056. <param name="specs" type="java.lang.String"/>
  24057. <param name="defaultPort" type="int"/>
  24058. <doc>
  24059. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  24060. of the form <i>hostname</i> or <i>hostname:port</i>. If
  24061. the specs string is null, defaults to localhost:defaultPort.
  24062. @param specs server specs (see description)
  24063. @param defaultPort the default port if not specified
  24064. @return a list of InetSocketAddress objects.]]>
  24065. </doc>
  24066. </method>
  24067. <doc>
  24068. <![CDATA[Helpers to handle server addresses]]>
  24069. </doc>
  24070. </class>
  24071. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  24072. </package>
  24073. <package name="org.apache.hadoop.net">
  24074. <!-- start class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  24075. <class name="AbstractDNSToSwitchMapping" extends="java.lang.Object"
  24076. abstract="true"
  24077. static="false" final="false" visibility="public"
  24078. deprecated="not deprecated">
  24079. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  24080. <implements name="org.apache.hadoop.conf.Configurable"/>
  24081. <constructor name="AbstractDNSToSwitchMapping"
  24082. static="false" final="false" visibility="protected"
  24083. deprecated="not deprecated">
  24084. <doc>
  24085. <![CDATA[Create an unconfigured instance]]>
  24086. </doc>
  24087. </constructor>
  24088. <constructor name="AbstractDNSToSwitchMapping" type="org.apache.hadoop.conf.Configuration"
  24089. static="false" final="false" visibility="protected"
  24090. deprecated="not deprecated">
  24091. <doc>
  24092. <![CDATA[Create an instance, caching the configuration file.
  24093. This constructor does not call {@link #setConf(Configuration)}; if
  24094. a subclass extracts information in that method, it must call it explicitly.
  24095. @param conf the configuration]]>
  24096. </doc>
  24097. </constructor>
  24098. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  24099. abstract="false" native="false" synchronized="false"
  24100. static="false" final="false" visibility="public"
  24101. deprecated="not deprecated">
  24102. </method>
  24103. <method name="setConf"
  24104. abstract="false" native="false" synchronized="false"
  24105. static="false" final="false" visibility="public"
  24106. deprecated="not deprecated">
  24107. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24108. </method>
  24109. <method name="isSingleSwitch" return="boolean"
  24110. abstract="false" native="false" synchronized="false"
  24111. static="false" final="false" visibility="public"
  24112. deprecated="not deprecated">
  24113. <doc>
  24114. <![CDATA[Predicate that indicates that the switch mapping is known to be
  24115. single-switch. The base class returns false: it assumes all mappings are
  24116. multi-rack. Subclasses may override this with methods that are more aware
  24117. of their topologies.
  24118. <p/>
  24119. This method is used when parts of Hadoop need know whether to apply
  24120. single rack vs multi-rack policies, such as during block placement.
  24121. Such algorithms behave differently if they are on multi-switch systems.
  24122. </p>
  24123. @return true if the mapping thinks that it is on a single switch]]>
  24124. </doc>
  24125. </method>
  24126. <method name="getSwitchMap" return="java.util.Map"
  24127. abstract="false" native="false" synchronized="false"
  24128. static="false" final="false" visibility="public"
  24129. deprecated="not deprecated">
  24130. <doc>
  24131. <![CDATA[Get a copy of the map (for diagnostics)
  24132. @return a clone of the map or null for none known]]>
  24133. </doc>
  24134. </method>
  24135. <method name="dumpTopology" return="java.lang.String"
  24136. abstract="false" native="false" synchronized="false"
  24137. static="false" final="false" visibility="public"
  24138. deprecated="not deprecated">
  24139. <doc>
  24140. <![CDATA[Generate a string listing the switch mapping implementation,
  24141. the mapping for every known node and the number of nodes and
  24142. unique switches known about -each entry to a separate line.
  24143. @return a string that can be presented to the ops team or used in
  24144. debug messages.]]>
  24145. </doc>
  24146. </method>
  24147. <method name="isSingleSwitchByScriptPolicy" return="boolean"
  24148. abstract="false" native="false" synchronized="false"
  24149. static="false" final="false" visibility="protected"
  24150. deprecated="not deprecated">
  24151. </method>
  24152. <method name="isMappingSingleSwitch" return="boolean"
  24153. abstract="false" native="false" synchronized="false"
  24154. static="true" final="false" visibility="public"
  24155. deprecated="not deprecated">
  24156. <param name="mapping" type="org.apache.hadoop.net.DNSToSwitchMapping"/>
  24157. <doc>
  24158. <![CDATA[Query for a {@link DNSToSwitchMapping} instance being on a single
  24159. switch.
  24160. <p/>
  24161. This predicate simply assumes that all mappings not derived from
  24162. this class are multi-switch.
  24163. @param mapping the mapping to query
  24164. @return true if the base class says it is single switch, or the mapping
  24165. is not derived from this class.]]>
  24166. </doc>
  24167. </method>
  24168. <doc>
  24169. <![CDATA[This is a base class for DNS to Switch mappings. <p/> It is not mandatory to
  24170. derive {@link DNSToSwitchMapping} implementations from it, but it is strongly
  24171. recommended, as it makes it easy for the Hadoop developers to add new methods
  24172. to this base class that are automatically picked up by all implementations.
  24173. <p/>
  24174. This class does not extend the <code>Configured</code>
  24175. base class, and should not be changed to do so, as it causes problems
  24176. for subclasses. The constructor of the <code>Configured</code> calls
  24177. the {@link #setConf(Configuration)} method, which will call into the
  24178. subclasses before they have been fully constructed.]]>
  24179. </doc>
  24180. </class>
  24181. <!-- end class org.apache.hadoop.net.AbstractDNSToSwitchMapping -->
  24182. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  24183. <class name="CachedDNSToSwitchMapping" extends="org.apache.hadoop.net.AbstractDNSToSwitchMapping"
  24184. abstract="false"
  24185. static="false" final="false" visibility="public"
  24186. deprecated="not deprecated">
  24187. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  24188. static="false" final="false" visibility="public"
  24189. deprecated="not deprecated">
  24190. <doc>
  24191. <![CDATA[cache a raw DNS mapping
  24192. @param rawMapping the raw mapping to cache]]>
  24193. </doc>
  24194. </constructor>
  24195. <method name="resolve" return="java.util.List"
  24196. abstract="false" native="false" synchronized="false"
  24197. static="false" final="false" visibility="public"
  24198. deprecated="not deprecated">
  24199. <param name="names" type="java.util.List"/>
  24200. </method>
  24201. <method name="getSwitchMap" return="java.util.Map"
  24202. abstract="false" native="false" synchronized="false"
  24203. static="false" final="false" visibility="public"
  24204. deprecated="not deprecated">
  24205. <doc>
  24206. <![CDATA[Get the (host x switch) map.
  24207. @return a copy of the cached map of hosts to rack]]>
  24208. </doc>
  24209. </method>
  24210. <method name="toString" return="java.lang.String"
  24211. abstract="false" native="false" synchronized="false"
  24212. static="false" final="false" visibility="public"
  24213. deprecated="not deprecated">
  24214. </method>
  24215. <method name="isSingleSwitch" return="boolean"
  24216. abstract="false" native="false" synchronized="false"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <doc>
  24220. <![CDATA[Delegate the switch topology query to the raw mapping, via
  24221. {@link AbstractDNSToSwitchMapping#isMappingSingleSwitch(DNSToSwitchMapping)}
  24222. @return true iff the raw mapper is considered single-switch.]]>
  24223. </doc>
  24224. </method>
  24225. <method name="reloadCachedMappings"
  24226. abstract="false" native="false" synchronized="false"
  24227. static="false" final="false" visibility="public"
  24228. deprecated="not deprecated">
  24229. </method>
  24230. <method name="reloadCachedMappings"
  24231. abstract="false" native="false" synchronized="false"
  24232. static="false" final="false" visibility="public"
  24233. deprecated="not deprecated">
  24234. <param name="names" type="java.util.List"/>
  24235. </method>
  24236. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  24237. transient="false" volatile="false"
  24238. static="false" final="true" visibility="protected"
  24239. deprecated="not deprecated">
  24240. <doc>
  24241. <![CDATA[The uncached mapping]]>
  24242. </doc>
  24243. </field>
  24244. <doc>
  24245. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  24246. raw DNSToSwitchMapping and stores the resolved network location in
  24247. a cache. The following calls to a resolved network location
  24248. will get its location from the cache.]]>
  24249. </doc>
  24250. </class>
  24251. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  24252. <!-- start class org.apache.hadoop.net.ConnectTimeoutException -->
  24253. <class name="ConnectTimeoutException" extends="java.net.SocketTimeoutException"
  24254. abstract="false"
  24255. static="false" final="false" visibility="public"
  24256. deprecated="not deprecated">
  24257. <constructor name="ConnectTimeoutException" type="java.lang.String"
  24258. static="false" final="false" visibility="public"
  24259. deprecated="not deprecated">
  24260. </constructor>
  24261. <doc>
  24262. <![CDATA[Thrown by {@link NetUtils#connect(java.net.Socket, java.net.SocketAddress, int)}
  24263. if it times out while connecting to the remote host.]]>
  24264. </doc>
  24265. </class>
  24266. <!-- end class org.apache.hadoop.net.ConnectTimeoutException -->
  24267. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  24268. <interface name="DNSToSwitchMapping" abstract="true"
  24269. static="false" final="false" visibility="public"
  24270. deprecated="not deprecated">
  24271. <method name="resolve" return="java.util.List"
  24272. abstract="true" native="false" synchronized="false"
  24273. static="false" final="false" visibility="public"
  24274. deprecated="not deprecated">
  24275. <param name="names" type="java.util.List"/>
  24276. <doc>
  24277. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  24278. switch information (network paths). One-to-one correspondence must be
  24279. maintained between the elements in the lists.
  24280. Consider an element in the argument list - x.y.com. The switch information
  24281. that is returned must be a network path of the form /foo/rack,
  24282. where / is the root, and 'foo' is the switch where 'rack' is connected.
  24283. Note the hostname/ip-address is not part of the returned path.
  24284. The network topology of the cluster would determine the number of
  24285. components in the network path.
  24286. <p/>
  24287. If a name cannot be resolved to a rack, the implementation
  24288. should return {@link NetworkTopology#DEFAULT_RACK}. This
  24289. is what the bundled implementations do, though it is not a formal requirement
  24290. @param names the list of hosts to resolve (can be empty)
  24291. @return list of resolved network paths.
  24292. If <i>names</i> is empty, the returned list is also empty]]>
  24293. </doc>
  24294. </method>
  24295. <method name="reloadCachedMappings"
  24296. abstract="true" native="false" synchronized="false"
  24297. static="false" final="false" visibility="public"
  24298. deprecated="not deprecated">
  24299. <doc>
  24300. <![CDATA[Reload all of the cached mappings.
  24301. If there is a cache, this method will clear it, so that future accesses
  24302. will get a chance to see the new data.]]>
  24303. </doc>
  24304. </method>
  24305. <method name="reloadCachedMappings"
  24306. abstract="true" native="false" synchronized="false"
  24307. static="false" final="false" visibility="public"
  24308. deprecated="not deprecated">
  24309. <param name="names" type="java.util.List"/>
  24310. <doc>
  24311. <![CDATA[Reload cached mappings on specific nodes.
  24312. If there is a cache on these nodes, this method will clear it, so that
  24313. future accesses will see updated data.]]>
  24314. </doc>
  24315. </method>
  24316. <doc>
  24317. <![CDATA[An interface that must be implemented to allow pluggable
  24318. DNS-name/IP-address to RackID resolvers.]]>
  24319. </doc>
  24320. </interface>
  24321. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  24322. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  24323. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  24324. abstract="false"
  24325. static="false" final="false" visibility="public"
  24326. deprecated="not deprecated">
  24327. <constructor name="ScriptBasedMapping"
  24328. static="false" final="false" visibility="public"
  24329. deprecated="not deprecated">
  24330. <doc>
  24331. <![CDATA[Create an instance with the default configuration.
  24332. </p>
  24333. Calling {@link #setConf(Configuration)} will trigger a
  24334. re-evaluation of the configuration settings and so be used to
  24335. set up the mapping script.]]>
  24336. </doc>
  24337. </constructor>
  24338. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  24339. static="false" final="false" visibility="public"
  24340. deprecated="not deprecated">
  24341. <doc>
  24342. <![CDATA[Create an instance from the given raw mapping
  24343. @param rawMap raw DNSTOSwithMapping]]>
  24344. </doc>
  24345. </constructor>
  24346. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  24347. static="false" final="false" visibility="public"
  24348. deprecated="not deprecated">
  24349. <doc>
  24350. <![CDATA[Create an instance from the given configuration
  24351. @param conf configuration]]>
  24352. </doc>
  24353. </constructor>
  24354. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  24355. abstract="false" native="false" synchronized="false"
  24356. static="false" final="false" visibility="public"
  24357. deprecated="not deprecated">
  24358. </method>
  24359. <method name="toString" return="java.lang.String"
  24360. abstract="false" native="false" synchronized="false"
  24361. static="false" final="false" visibility="public"
  24362. deprecated="not deprecated">
  24363. </method>
  24364. <method name="setConf"
  24365. abstract="false" native="false" synchronized="false"
  24366. static="false" final="false" visibility="public"
  24367. deprecated="not deprecated">
  24368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24369. <doc>
  24370. <![CDATA[{@inheritDoc}
  24371. <p/>
  24372. This will get called in the superclass constructor, so a check is needed
  24373. to ensure that the raw mapping is defined before trying to relaying a null
  24374. configuration.
  24375. @param conf]]>
  24376. </doc>
  24377. </method>
  24378. <field name="NO_SCRIPT" type="java.lang.String"
  24379. transient="false" volatile="false"
  24380. static="true" final="true" visibility="public"
  24381. deprecated="not deprecated">
  24382. <doc>
  24383. <![CDATA[Text used in the {@link #toString()} method if there is no string
  24384. {@value}]]>
  24385. </doc>
  24386. </field>
  24387. <doc>
  24388. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  24389. script configured via the
  24390. {@link CommonConfigurationKeys#NET_TOPOLOGY_SCRIPT_FILE_NAME_KEY} option.
  24391. <p/>
  24392. It contains a static class <code>RawScriptBasedMapping</code> that performs
  24393. the work: reading the configuration parameters, executing any defined
  24394. script, handling errors and such like. The outer
  24395. class extends {@link CachedDNSToSwitchMapping} to cache the delegated
  24396. queries.
  24397. <p/>
  24398. This DNS mapper's {@link #isSingleSwitch()} predicate returns
  24399. true if and only if a script is defined.]]>
  24400. </doc>
  24401. </class>
  24402. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  24403. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  24404. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  24405. abstract="false"
  24406. static="false" final="false" visibility="public"
  24407. deprecated="not deprecated">
  24408. <implements name="org.apache.hadoop.conf.Configurable"/>
  24409. <constructor name="SocksSocketFactory"
  24410. static="false" final="false" visibility="public"
  24411. deprecated="not deprecated">
  24412. <doc>
  24413. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  24414. </doc>
  24415. </constructor>
  24416. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  24417. static="false" final="false" visibility="public"
  24418. deprecated="not deprecated">
  24419. <doc>
  24420. <![CDATA[Constructor with a supplied Proxy
  24421. @param proxy the proxy to use to create sockets]]>
  24422. </doc>
  24423. </constructor>
  24424. <method name="createSocket" return="java.net.Socket"
  24425. abstract="false" native="false" synchronized="false"
  24426. static="false" final="false" visibility="public"
  24427. deprecated="not deprecated">
  24428. <exception name="IOException" type="java.io.IOException"/>
  24429. </method>
  24430. <method name="createSocket" return="java.net.Socket"
  24431. abstract="false" native="false" synchronized="false"
  24432. static="false" final="false" visibility="public"
  24433. deprecated="not deprecated">
  24434. <param name="addr" type="java.net.InetAddress"/>
  24435. <param name="port" type="int"/>
  24436. <exception name="IOException" type="java.io.IOException"/>
  24437. </method>
  24438. <method name="createSocket" return="java.net.Socket"
  24439. abstract="false" native="false" synchronized="false"
  24440. static="false" final="false" visibility="public"
  24441. deprecated="not deprecated">
  24442. <param name="addr" type="java.net.InetAddress"/>
  24443. <param name="port" type="int"/>
  24444. <param name="localHostAddr" type="java.net.InetAddress"/>
  24445. <param name="localPort" type="int"/>
  24446. <exception name="IOException" type="java.io.IOException"/>
  24447. </method>
  24448. <method name="createSocket" return="java.net.Socket"
  24449. abstract="false" native="false" synchronized="false"
  24450. static="false" final="false" visibility="public"
  24451. deprecated="not deprecated">
  24452. <param name="host" type="java.lang.String"/>
  24453. <param name="port" type="int"/>
  24454. <exception name="IOException" type="java.io.IOException"/>
  24455. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  24456. </method>
  24457. <method name="createSocket" return="java.net.Socket"
  24458. abstract="false" native="false" synchronized="false"
  24459. static="false" final="false" visibility="public"
  24460. deprecated="not deprecated">
  24461. <param name="host" type="java.lang.String"/>
  24462. <param name="port" type="int"/>
  24463. <param name="localHostAddr" type="java.net.InetAddress"/>
  24464. <param name="localPort" type="int"/>
  24465. <exception name="IOException" type="java.io.IOException"/>
  24466. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  24467. </method>
  24468. <method name="hashCode" return="int"
  24469. abstract="false" native="false" synchronized="false"
  24470. static="false" final="false" visibility="public"
  24471. deprecated="not deprecated">
  24472. </method>
  24473. <method name="equals" return="boolean"
  24474. abstract="false" native="false" synchronized="false"
  24475. static="false" final="false" visibility="public"
  24476. deprecated="not deprecated">
  24477. <param name="obj" type="java.lang.Object"/>
  24478. </method>
  24479. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  24480. abstract="false" native="false" synchronized="false"
  24481. static="false" final="false" visibility="public"
  24482. deprecated="not deprecated">
  24483. </method>
  24484. <method name="setConf"
  24485. abstract="false" native="false" synchronized="false"
  24486. static="false" final="false" visibility="public"
  24487. deprecated="not deprecated">
  24488. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24489. </method>
  24490. <doc>
  24491. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  24492. </doc>
  24493. </class>
  24494. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  24495. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  24496. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  24497. abstract="false"
  24498. static="false" final="false" visibility="public"
  24499. deprecated="not deprecated">
  24500. <constructor name="StandardSocketFactory"
  24501. static="false" final="false" visibility="public"
  24502. deprecated="not deprecated">
  24503. <doc>
  24504. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  24505. </doc>
  24506. </constructor>
  24507. <method name="createSocket" return="java.net.Socket"
  24508. abstract="false" native="false" synchronized="false"
  24509. static="false" final="false" visibility="public"
  24510. deprecated="not deprecated">
  24511. <exception name="IOException" type="java.io.IOException"/>
  24512. </method>
  24513. <method name="createSocket" return="java.net.Socket"
  24514. abstract="false" native="false" synchronized="false"
  24515. static="false" final="false" visibility="public"
  24516. deprecated="not deprecated">
  24517. <param name="addr" type="java.net.InetAddress"/>
  24518. <param name="port" type="int"/>
  24519. <exception name="IOException" type="java.io.IOException"/>
  24520. </method>
  24521. <method name="createSocket" return="java.net.Socket"
  24522. abstract="false" native="false" synchronized="false"
  24523. static="false" final="false" visibility="public"
  24524. deprecated="not deprecated">
  24525. <param name="addr" type="java.net.InetAddress"/>
  24526. <param name="port" type="int"/>
  24527. <param name="localHostAddr" type="java.net.InetAddress"/>
  24528. <param name="localPort" type="int"/>
  24529. <exception name="IOException" type="java.io.IOException"/>
  24530. </method>
  24531. <method name="createSocket" return="java.net.Socket"
  24532. abstract="false" native="false" synchronized="false"
  24533. static="false" final="false" visibility="public"
  24534. deprecated="not deprecated">
  24535. <param name="host" type="java.lang.String"/>
  24536. <param name="port" type="int"/>
  24537. <exception name="IOException" type="java.io.IOException"/>
  24538. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  24539. </method>
  24540. <method name="createSocket" return="java.net.Socket"
  24541. abstract="false" native="false" synchronized="false"
  24542. static="false" final="false" visibility="public"
  24543. deprecated="not deprecated">
  24544. <param name="host" type="java.lang.String"/>
  24545. <param name="port" type="int"/>
  24546. <param name="localHostAddr" type="java.net.InetAddress"/>
  24547. <param name="localPort" type="int"/>
  24548. <exception name="IOException" type="java.io.IOException"/>
  24549. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  24550. </method>
  24551. <method name="equals" return="boolean"
  24552. abstract="false" native="false" synchronized="false"
  24553. static="false" final="false" visibility="public"
  24554. deprecated="not deprecated">
  24555. <param name="obj" type="java.lang.Object"/>
  24556. </method>
  24557. <method name="hashCode" return="int"
  24558. abstract="false" native="false" synchronized="false"
  24559. static="false" final="false" visibility="public"
  24560. deprecated="not deprecated">
  24561. </method>
  24562. <doc>
  24563. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  24564. </doc>
  24565. </class>
  24566. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  24567. <!-- start class org.apache.hadoop.net.TableMapping -->
  24568. <class name="TableMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  24569. abstract="false"
  24570. static="false" final="false" visibility="public"
  24571. deprecated="not deprecated">
  24572. <constructor name="TableMapping"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. </constructor>
  24576. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  24577. abstract="false" native="false" synchronized="false"
  24578. static="false" final="false" visibility="public"
  24579. deprecated="not deprecated">
  24580. </method>
  24581. <method name="setConf"
  24582. abstract="false" native="false" synchronized="false"
  24583. static="false" final="false" visibility="public"
  24584. deprecated="not deprecated">
  24585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24586. </method>
  24587. <method name="reloadCachedMappings"
  24588. abstract="false" native="false" synchronized="false"
  24589. static="false" final="false" visibility="public"
  24590. deprecated="not deprecated">
  24591. </method>
  24592. <doc>
  24593. <![CDATA[<p>
  24594. Simple {@link DNSToSwitchMapping} implementation that reads a 2 column text
  24595. file. The columns are separated by whitespace. The first column is a DNS or
  24596. IP address and the second column specifies the rack where the address maps.
  24597. </p>
  24598. <p>
  24599. This class uses the configuration parameter {@code
  24600. net.topology.table.file.name} to locate the mapping file.
  24601. </p>
  24602. <p>
  24603. Calls to {@link #resolve(List)} will look up the address as defined in the
  24604. mapping file. If no entry corresponding to the address is found, the value
  24605. {@code /default-rack} is returned.
  24606. </p>]]>
  24607. </doc>
  24608. </class>
  24609. <!-- end class org.apache.hadoop.net.TableMapping -->
  24610. <doc>
  24611. <![CDATA[Network-related classes.]]>
  24612. </doc>
  24613. </package>
  24614. <package name="org.apache.hadoop.net.unix">
  24615. </package>
  24616. <package name="org.apache.hadoop.record">
  24617. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  24618. <class name="BinaryRecordInput" extends="java.lang.Object"
  24619. abstract="false"
  24620. static="false" final="false" visibility="public"
  24621. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24622. <implements name="org.apache.hadoop.record.RecordInput"/>
  24623. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  24624. static="false" final="false" visibility="public"
  24625. deprecated="not deprecated">
  24626. <doc>
  24627. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  24628. </doc>
  24629. </constructor>
  24630. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  24631. static="false" final="false" visibility="public"
  24632. deprecated="not deprecated">
  24633. <doc>
  24634. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  24635. </doc>
  24636. </constructor>
  24637. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  24638. abstract="false" native="false" synchronized="false"
  24639. static="true" final="false" visibility="public"
  24640. deprecated="not deprecated">
  24641. <param name="inp" type="java.io.DataInput"/>
  24642. <doc>
  24643. <![CDATA[Get a thread-local record input for the supplied DataInput.
  24644. @param inp data input stream
  24645. @return binary record input corresponding to the supplied DataInput.]]>
  24646. </doc>
  24647. </method>
  24648. <method name="readByte" return="byte"
  24649. abstract="false" native="false" synchronized="false"
  24650. static="false" final="false" visibility="public"
  24651. deprecated="not deprecated">
  24652. <param name="tag" type="java.lang.String"/>
  24653. <exception name="IOException" type="java.io.IOException"/>
  24654. </method>
  24655. <method name="readBool" return="boolean"
  24656. abstract="false" native="false" synchronized="false"
  24657. static="false" final="false" visibility="public"
  24658. deprecated="not deprecated">
  24659. <param name="tag" type="java.lang.String"/>
  24660. <exception name="IOException" type="java.io.IOException"/>
  24661. </method>
  24662. <method name="readInt" return="int"
  24663. abstract="false" native="false" synchronized="false"
  24664. static="false" final="false" visibility="public"
  24665. deprecated="not deprecated">
  24666. <param name="tag" type="java.lang.String"/>
  24667. <exception name="IOException" type="java.io.IOException"/>
  24668. </method>
  24669. <method name="readLong" return="long"
  24670. abstract="false" native="false" synchronized="false"
  24671. static="false" final="false" visibility="public"
  24672. deprecated="not deprecated">
  24673. <param name="tag" type="java.lang.String"/>
  24674. <exception name="IOException" type="java.io.IOException"/>
  24675. </method>
  24676. <method name="readFloat" return="float"
  24677. abstract="false" native="false" synchronized="false"
  24678. static="false" final="false" visibility="public"
  24679. deprecated="not deprecated">
  24680. <param name="tag" type="java.lang.String"/>
  24681. <exception name="IOException" type="java.io.IOException"/>
  24682. </method>
  24683. <method name="readDouble" return="double"
  24684. abstract="false" native="false" synchronized="false"
  24685. static="false" final="false" visibility="public"
  24686. deprecated="not deprecated">
  24687. <param name="tag" type="java.lang.String"/>
  24688. <exception name="IOException" type="java.io.IOException"/>
  24689. </method>
  24690. <method name="readString" return="java.lang.String"
  24691. abstract="false" native="false" synchronized="false"
  24692. static="false" final="false" visibility="public"
  24693. deprecated="not deprecated">
  24694. <param name="tag" type="java.lang.String"/>
  24695. <exception name="IOException" type="java.io.IOException"/>
  24696. </method>
  24697. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  24698. abstract="false" native="false" synchronized="false"
  24699. static="false" final="false" visibility="public"
  24700. deprecated="not deprecated">
  24701. <param name="tag" type="java.lang.String"/>
  24702. <exception name="IOException" type="java.io.IOException"/>
  24703. </method>
  24704. <method name="startRecord"
  24705. abstract="false" native="false" synchronized="false"
  24706. static="false" final="false" visibility="public"
  24707. deprecated="not deprecated">
  24708. <param name="tag" type="java.lang.String"/>
  24709. <exception name="IOException" type="java.io.IOException"/>
  24710. </method>
  24711. <method name="endRecord"
  24712. abstract="false" native="false" synchronized="false"
  24713. static="false" final="false" visibility="public"
  24714. deprecated="not deprecated">
  24715. <param name="tag" type="java.lang.String"/>
  24716. <exception name="IOException" type="java.io.IOException"/>
  24717. </method>
  24718. <method name="startVector" return="org.apache.hadoop.record.Index"
  24719. abstract="false" native="false" synchronized="false"
  24720. static="false" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. <param name="tag" type="java.lang.String"/>
  24723. <exception name="IOException" type="java.io.IOException"/>
  24724. </method>
  24725. <method name="endVector"
  24726. abstract="false" native="false" synchronized="false"
  24727. static="false" final="false" visibility="public"
  24728. deprecated="not deprecated">
  24729. <param name="tag" type="java.lang.String"/>
  24730. <exception name="IOException" type="java.io.IOException"/>
  24731. </method>
  24732. <method name="startMap" return="org.apache.hadoop.record.Index"
  24733. abstract="false" native="false" synchronized="false"
  24734. static="false" final="false" visibility="public"
  24735. deprecated="not deprecated">
  24736. <param name="tag" type="java.lang.String"/>
  24737. <exception name="IOException" type="java.io.IOException"/>
  24738. </method>
  24739. <method name="endMap"
  24740. abstract="false" native="false" synchronized="false"
  24741. static="false" final="false" visibility="public"
  24742. deprecated="not deprecated">
  24743. <param name="tag" type="java.lang.String"/>
  24744. <exception name="IOException" type="java.io.IOException"/>
  24745. </method>
  24746. <doc>
  24747. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24748. </doc>
  24749. </class>
  24750. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  24751. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  24752. <class name="BinaryRecordOutput" extends="java.lang.Object"
  24753. abstract="false"
  24754. static="false" final="false" visibility="public"
  24755. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  24756. <implements name="org.apache.hadoop.record.RecordOutput"/>
  24757. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  24758. static="false" final="false" visibility="public"
  24759. deprecated="not deprecated">
  24760. <doc>
  24761. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  24762. </doc>
  24763. </constructor>
  24764. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  24765. static="false" final="false" visibility="public"
  24766. deprecated="not deprecated">
  24767. <doc>
  24768. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  24769. </doc>
  24770. </constructor>
  24771. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  24772. abstract="false" native="false" synchronized="false"
  24773. static="true" final="false" visibility="public"
  24774. deprecated="not deprecated">
  24775. <param name="out" type="java.io.DataOutput"/>
  24776. <doc>
  24777. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  24778. @param out data output stream
  24779. @return binary record output corresponding to the supplied DataOutput.]]>
  24780. </doc>
  24781. </method>
  24782. <method name="writeByte"
  24783. abstract="false" native="false" synchronized="false"
  24784. static="false" final="false" visibility="public"
  24785. deprecated="not deprecated">
  24786. <param name="b" type="byte"/>
  24787. <param name="tag" type="java.lang.String"/>
  24788. <exception name="IOException" type="java.io.IOException"/>
  24789. </method>
  24790. <method name="writeBool"
  24791. abstract="false" native="false" synchronized="false"
  24792. static="false" final="false" visibility="public"
  24793. deprecated="not deprecated">
  24794. <param name="b" type="boolean"/>
  24795. <param name="tag" type="java.lang.String"/>
  24796. <exception name="IOException" type="java.io.IOException"/>
  24797. </method>
  24798. <method name="writeInt"
  24799. abstract="false" native="false" synchronized="false"
  24800. static="false" final="false" visibility="public"
  24801. deprecated="not deprecated">
  24802. <param name="i" type="int"/>
  24803. <param name="tag" type="java.lang.String"/>
  24804. <exception name="IOException" type="java.io.IOException"/>
  24805. </method>
  24806. <method name="writeLong"
  24807. abstract="false" native="false" synchronized="false"
  24808. static="false" final="false" visibility="public"
  24809. deprecated="not deprecated">
  24810. <param name="l" type="long"/>
  24811. <param name="tag" type="java.lang.String"/>
  24812. <exception name="IOException" type="java.io.IOException"/>
  24813. </method>
  24814. <method name="writeFloat"
  24815. abstract="false" native="false" synchronized="false"
  24816. static="false" final="false" visibility="public"
  24817. deprecated="not deprecated">
  24818. <param name="f" type="float"/>
  24819. <param name="tag" type="java.lang.String"/>
  24820. <exception name="IOException" type="java.io.IOException"/>
  24821. </method>
  24822. <method name="writeDouble"
  24823. abstract="false" native="false" synchronized="false"
  24824. static="false" final="false" visibility="public"
  24825. deprecated="not deprecated">
  24826. <param name="d" type="double"/>
  24827. <param name="tag" type="java.lang.String"/>
  24828. <exception name="IOException" type="java.io.IOException"/>
  24829. </method>
  24830. <method name="writeString"
  24831. abstract="false" native="false" synchronized="false"
  24832. static="false" final="false" visibility="public"
  24833. deprecated="not deprecated">
  24834. <param name="s" type="java.lang.String"/>
  24835. <param name="tag" type="java.lang.String"/>
  24836. <exception name="IOException" type="java.io.IOException"/>
  24837. </method>
  24838. <method name="writeBuffer"
  24839. abstract="false" native="false" synchronized="false"
  24840. static="false" final="false" visibility="public"
  24841. deprecated="not deprecated">
  24842. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  24843. <param name="tag" type="java.lang.String"/>
  24844. <exception name="IOException" type="java.io.IOException"/>
  24845. </method>
  24846. <method name="startRecord"
  24847. abstract="false" native="false" synchronized="false"
  24848. static="false" final="false" visibility="public"
  24849. deprecated="not deprecated">
  24850. <param name="r" type="org.apache.hadoop.record.Record"/>
  24851. <param name="tag" type="java.lang.String"/>
  24852. <exception name="IOException" type="java.io.IOException"/>
  24853. </method>
  24854. <method name="endRecord"
  24855. abstract="false" native="false" synchronized="false"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. <param name="r" type="org.apache.hadoop.record.Record"/>
  24859. <param name="tag" type="java.lang.String"/>
  24860. <exception name="IOException" type="java.io.IOException"/>
  24861. </method>
  24862. <method name="startVector"
  24863. abstract="false" native="false" synchronized="false"
  24864. static="false" final="false" visibility="public"
  24865. deprecated="not deprecated">
  24866. <param name="v" type="java.util.ArrayList"/>
  24867. <param name="tag" type="java.lang.String"/>
  24868. <exception name="IOException" type="java.io.IOException"/>
  24869. </method>
  24870. <method name="endVector"
  24871. abstract="false" native="false" synchronized="false"
  24872. static="false" final="false" visibility="public"
  24873. deprecated="not deprecated">
  24874. <param name="v" type="java.util.ArrayList"/>
  24875. <param name="tag" type="java.lang.String"/>
  24876. <exception name="IOException" type="java.io.IOException"/>
  24877. </method>
  24878. <method name="startMap"
  24879. abstract="false" native="false" synchronized="false"
  24880. static="false" final="false" visibility="public"
  24881. deprecated="not deprecated">
  24882. <param name="v" type="java.util.TreeMap"/>
  24883. <param name="tag" type="java.lang.String"/>
  24884. <exception name="IOException" type="java.io.IOException"/>
  24885. </method>
  24886. <method name="endMap"
  24887. abstract="false" native="false" synchronized="false"
  24888. static="false" final="false" visibility="public"
  24889. deprecated="not deprecated">
  24890. <param name="v" type="java.util.TreeMap"/>
  24891. <param name="tag" type="java.lang.String"/>
  24892. <exception name="IOException" type="java.io.IOException"/>
  24893. </method>
  24894. <doc>
  24895. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  24896. </doc>
  24897. </class>
  24898. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  24899. <!-- start class org.apache.hadoop.record.Buffer -->
  24900. <class name="Buffer" extends="java.lang.Object"
  24901. abstract="false"
  24902. static="false" final="false" visibility="public"
  24903. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  24904. <implements name="java.lang.Comparable"/>
  24905. <implements name="java.lang.Cloneable"/>
  24906. <constructor name="Buffer"
  24907. static="false" final="false" visibility="public"
  24908. deprecated="not deprecated">
  24909. <doc>
  24910. <![CDATA[Create a zero-count sequence.]]>
  24911. </doc>
  24912. </constructor>
  24913. <constructor name="Buffer" type="byte[]"
  24914. static="false" final="false" visibility="public"
  24915. deprecated="not deprecated">
  24916. <doc>
  24917. <![CDATA[Create a Buffer using the byte array as the initial value.
  24918. @param bytes This array becomes the backing storage for the object.]]>
  24919. </doc>
  24920. </constructor>
  24921. <constructor name="Buffer" type="byte[], int, int"
  24922. static="false" final="false" visibility="public"
  24923. deprecated="not deprecated">
  24924. <doc>
  24925. <![CDATA[Create a Buffer using the byte range as the initial value.
  24926. @param bytes Copy of this array becomes the backing storage for the object.
  24927. @param offset offset into byte array
  24928. @param length length of data]]>
  24929. </doc>
  24930. </constructor>
  24931. <method name="set"
  24932. abstract="false" native="false" synchronized="false"
  24933. static="false" final="false" visibility="public"
  24934. deprecated="not deprecated">
  24935. <param name="bytes" type="byte[]"/>
  24936. <doc>
  24937. <![CDATA[Use the specified bytes array as underlying sequence.
  24938. @param bytes byte sequence]]>
  24939. </doc>
  24940. </method>
  24941. <method name="copy"
  24942. abstract="false" native="false" synchronized="false"
  24943. static="false" final="true" visibility="public"
  24944. deprecated="not deprecated">
  24945. <param name="bytes" type="byte[]"/>
  24946. <param name="offset" type="int"/>
  24947. <param name="length" type="int"/>
  24948. <doc>
  24949. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  24950. @param bytes byte array to be assigned
  24951. @param offset offset into byte array
  24952. @param length length of data]]>
  24953. </doc>
  24954. </method>
  24955. <method name="get" return="byte[]"
  24956. abstract="false" native="false" synchronized="false"
  24957. static="false" final="false" visibility="public"
  24958. deprecated="not deprecated">
  24959. <doc>
  24960. <![CDATA[Get the data from the Buffer.
  24961. @return The data is only valid between 0 and getCount() - 1.]]>
  24962. </doc>
  24963. </method>
  24964. <method name="getCount" return="int"
  24965. abstract="false" native="false" synchronized="false"
  24966. static="false" final="false" visibility="public"
  24967. deprecated="not deprecated">
  24968. <doc>
  24969. <![CDATA[Get the current count of the buffer.]]>
  24970. </doc>
  24971. </method>
  24972. <method name="getCapacity" return="int"
  24973. abstract="false" native="false" synchronized="false"
  24974. static="false" final="false" visibility="public"
  24975. deprecated="not deprecated">
  24976. <doc>
  24977. <![CDATA[Get the capacity, which is the maximum count that could handled without
  24978. resizing the backing storage.
  24979. @return The number of bytes]]>
  24980. </doc>
  24981. </method>
  24982. <method name="setCapacity"
  24983. abstract="false" native="false" synchronized="false"
  24984. static="false" final="false" visibility="public"
  24985. deprecated="not deprecated">
  24986. <param name="newCapacity" type="int"/>
  24987. <doc>
  24988. <![CDATA[Change the capacity of the backing storage.
  24989. The data is preserved if newCapacity {@literal >=} getCount().
  24990. @param newCapacity The new capacity in bytes.]]>
  24991. </doc>
  24992. </method>
  24993. <method name="reset"
  24994. abstract="false" native="false" synchronized="false"
  24995. static="false" final="false" visibility="public"
  24996. deprecated="not deprecated">
  24997. <doc>
  24998. <![CDATA[Reset the buffer to 0 size]]>
  24999. </doc>
  25000. </method>
  25001. <method name="truncate"
  25002. abstract="false" native="false" synchronized="false"
  25003. static="false" final="false" visibility="public"
  25004. deprecated="not deprecated">
  25005. <doc>
  25006. <![CDATA[Change the capacity of the backing store to be the same as the current
  25007. count of buffer.]]>
  25008. </doc>
  25009. </method>
  25010. <method name="append"
  25011. abstract="false" native="false" synchronized="false"
  25012. static="false" final="false" visibility="public"
  25013. deprecated="not deprecated">
  25014. <param name="bytes" type="byte[]"/>
  25015. <param name="offset" type="int"/>
  25016. <param name="length" type="int"/>
  25017. <doc>
  25018. <![CDATA[Append specified bytes to the buffer.
  25019. @param bytes byte array to be appended
  25020. @param offset offset into byte array
  25021. @param length length of data]]>
  25022. </doc>
  25023. </method>
  25024. <method name="append"
  25025. abstract="false" native="false" synchronized="false"
  25026. static="false" final="false" visibility="public"
  25027. deprecated="not deprecated">
  25028. <param name="bytes" type="byte[]"/>
  25029. <doc>
  25030. <![CDATA[Append specified bytes to the buffer
  25031. @param bytes byte array to be appended]]>
  25032. </doc>
  25033. </method>
  25034. <method name="hashCode" return="int"
  25035. abstract="false" native="false" synchronized="false"
  25036. static="false" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. </method>
  25039. <method name="compareTo" return="int"
  25040. abstract="false" native="false" synchronized="false"
  25041. static="false" final="false" visibility="public"
  25042. deprecated="not deprecated">
  25043. <param name="other" type="java.lang.Object"/>
  25044. <doc>
  25045. <![CDATA[Define the sort order of the Buffer.
  25046. @param other The other buffer
  25047. @return Positive if this is bigger than other, 0 if they are equal, and
  25048. negative if this is smaller than other.]]>
  25049. </doc>
  25050. </method>
  25051. <method name="equals" return="boolean"
  25052. abstract="false" native="false" synchronized="false"
  25053. static="false" final="false" visibility="public"
  25054. deprecated="not deprecated">
  25055. <param name="other" type="java.lang.Object"/>
  25056. </method>
  25057. <method name="toString" return="java.lang.String"
  25058. abstract="false" native="false" synchronized="false"
  25059. static="false" final="false" visibility="public"
  25060. deprecated="not deprecated">
  25061. </method>
  25062. <method name="toString" return="java.lang.String"
  25063. abstract="false" native="false" synchronized="false"
  25064. static="false" final="false" visibility="public"
  25065. deprecated="not deprecated">
  25066. <param name="charsetName" type="java.lang.String"/>
  25067. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  25068. <doc>
  25069. <![CDATA[Convert the byte buffer to a string an specific character encoding
  25070. @param charsetName Valid Java Character Set Name]]>
  25071. </doc>
  25072. </method>
  25073. <method name="clone" return="java.lang.Object"
  25074. abstract="false" native="false" synchronized="false"
  25075. static="false" final="false" visibility="public"
  25076. deprecated="not deprecated">
  25077. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  25078. </method>
  25079. <doc>
  25080. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  25081. It is resizable and distinguishes between the count of the sequence and
  25082. the current capacity.
  25083. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  25084. </doc>
  25085. </class>
  25086. <!-- end class org.apache.hadoop.record.Buffer -->
  25087. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  25088. <class name="CsvRecordInput" extends="java.lang.Object"
  25089. abstract="false"
  25090. static="false" final="false" visibility="public"
  25091. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25092. <implements name="org.apache.hadoop.record.RecordInput"/>
  25093. <constructor name="CsvRecordInput" type="java.io.InputStream"
  25094. static="false" final="false" visibility="public"
  25095. deprecated="not deprecated">
  25096. <doc>
  25097. <![CDATA[Creates a new instance of CsvRecordInput]]>
  25098. </doc>
  25099. </constructor>
  25100. <method name="readByte" return="byte"
  25101. abstract="false" native="false" synchronized="false"
  25102. static="false" final="false" visibility="public"
  25103. deprecated="not deprecated">
  25104. <param name="tag" type="java.lang.String"/>
  25105. <exception name="IOException" type="java.io.IOException"/>
  25106. </method>
  25107. <method name="readBool" return="boolean"
  25108. abstract="false" native="false" synchronized="false"
  25109. static="false" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <param name="tag" type="java.lang.String"/>
  25112. <exception name="IOException" type="java.io.IOException"/>
  25113. </method>
  25114. <method name="readInt" return="int"
  25115. abstract="false" native="false" synchronized="false"
  25116. static="false" final="false" visibility="public"
  25117. deprecated="not deprecated">
  25118. <param name="tag" type="java.lang.String"/>
  25119. <exception name="IOException" type="java.io.IOException"/>
  25120. </method>
  25121. <method name="readLong" return="long"
  25122. abstract="false" native="false" synchronized="false"
  25123. static="false" final="false" visibility="public"
  25124. deprecated="not deprecated">
  25125. <param name="tag" type="java.lang.String"/>
  25126. <exception name="IOException" type="java.io.IOException"/>
  25127. </method>
  25128. <method name="readFloat" return="float"
  25129. abstract="false" native="false" synchronized="false"
  25130. static="false" final="false" visibility="public"
  25131. deprecated="not deprecated">
  25132. <param name="tag" type="java.lang.String"/>
  25133. <exception name="IOException" type="java.io.IOException"/>
  25134. </method>
  25135. <method name="readDouble" return="double"
  25136. abstract="false" native="false" synchronized="false"
  25137. static="false" final="false" visibility="public"
  25138. deprecated="not deprecated">
  25139. <param name="tag" type="java.lang.String"/>
  25140. <exception name="IOException" type="java.io.IOException"/>
  25141. </method>
  25142. <method name="readString" return="java.lang.String"
  25143. abstract="false" native="false" synchronized="false"
  25144. static="false" final="false" visibility="public"
  25145. deprecated="not deprecated">
  25146. <param name="tag" type="java.lang.String"/>
  25147. <exception name="IOException" type="java.io.IOException"/>
  25148. </method>
  25149. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  25150. abstract="false" native="false" synchronized="false"
  25151. static="false" final="false" visibility="public"
  25152. deprecated="not deprecated">
  25153. <param name="tag" type="java.lang.String"/>
  25154. <exception name="IOException" type="java.io.IOException"/>
  25155. </method>
  25156. <method name="startRecord"
  25157. abstract="false" native="false" synchronized="false"
  25158. static="false" final="false" visibility="public"
  25159. deprecated="not deprecated">
  25160. <param name="tag" type="java.lang.String"/>
  25161. <exception name="IOException" type="java.io.IOException"/>
  25162. </method>
  25163. <method name="endRecord"
  25164. abstract="false" native="false" synchronized="false"
  25165. static="false" final="false" visibility="public"
  25166. deprecated="not deprecated">
  25167. <param name="tag" type="java.lang.String"/>
  25168. <exception name="IOException" type="java.io.IOException"/>
  25169. </method>
  25170. <method name="startVector" return="org.apache.hadoop.record.Index"
  25171. abstract="false" native="false" synchronized="false"
  25172. static="false" final="false" visibility="public"
  25173. deprecated="not deprecated">
  25174. <param name="tag" type="java.lang.String"/>
  25175. <exception name="IOException" type="java.io.IOException"/>
  25176. </method>
  25177. <method name="endVector"
  25178. abstract="false" native="false" synchronized="false"
  25179. static="false" final="false" visibility="public"
  25180. deprecated="not deprecated">
  25181. <param name="tag" type="java.lang.String"/>
  25182. <exception name="IOException" type="java.io.IOException"/>
  25183. </method>
  25184. <method name="startMap" return="org.apache.hadoop.record.Index"
  25185. abstract="false" native="false" synchronized="false"
  25186. static="false" final="false" visibility="public"
  25187. deprecated="not deprecated">
  25188. <param name="tag" type="java.lang.String"/>
  25189. <exception name="IOException" type="java.io.IOException"/>
  25190. </method>
  25191. <method name="endMap"
  25192. abstract="false" native="false" synchronized="false"
  25193. static="false" final="false" visibility="public"
  25194. deprecated="not deprecated">
  25195. <param name="tag" type="java.lang.String"/>
  25196. <exception name="IOException" type="java.io.IOException"/>
  25197. </method>
  25198. <doc>
  25199. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25200. </doc>
  25201. </class>
  25202. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  25203. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  25204. <class name="CsvRecordOutput" extends="java.lang.Object"
  25205. abstract="false"
  25206. static="false" final="false" visibility="public"
  25207. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25208. <implements name="org.apache.hadoop.record.RecordOutput"/>
  25209. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  25210. static="false" final="false" visibility="public"
  25211. deprecated="not deprecated">
  25212. <doc>
  25213. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  25214. </doc>
  25215. </constructor>
  25216. <method name="writeByte"
  25217. abstract="false" native="false" synchronized="false"
  25218. static="false" final="false" visibility="public"
  25219. deprecated="not deprecated">
  25220. <param name="b" type="byte"/>
  25221. <param name="tag" type="java.lang.String"/>
  25222. <exception name="IOException" type="java.io.IOException"/>
  25223. </method>
  25224. <method name="writeBool"
  25225. abstract="false" native="false" synchronized="false"
  25226. static="false" final="false" visibility="public"
  25227. deprecated="not deprecated">
  25228. <param name="b" type="boolean"/>
  25229. <param name="tag" type="java.lang.String"/>
  25230. <exception name="IOException" type="java.io.IOException"/>
  25231. </method>
  25232. <method name="writeInt"
  25233. abstract="false" native="false" synchronized="false"
  25234. static="false" final="false" visibility="public"
  25235. deprecated="not deprecated">
  25236. <param name="i" type="int"/>
  25237. <param name="tag" type="java.lang.String"/>
  25238. <exception name="IOException" type="java.io.IOException"/>
  25239. </method>
  25240. <method name="writeLong"
  25241. abstract="false" native="false" synchronized="false"
  25242. static="false" final="false" visibility="public"
  25243. deprecated="not deprecated">
  25244. <param name="l" type="long"/>
  25245. <param name="tag" type="java.lang.String"/>
  25246. <exception name="IOException" type="java.io.IOException"/>
  25247. </method>
  25248. <method name="writeFloat"
  25249. abstract="false" native="false" synchronized="false"
  25250. static="false" final="false" visibility="public"
  25251. deprecated="not deprecated">
  25252. <param name="f" type="float"/>
  25253. <param name="tag" type="java.lang.String"/>
  25254. <exception name="IOException" type="java.io.IOException"/>
  25255. </method>
  25256. <method name="writeDouble"
  25257. abstract="false" native="false" synchronized="false"
  25258. static="false" final="false" visibility="public"
  25259. deprecated="not deprecated">
  25260. <param name="d" type="double"/>
  25261. <param name="tag" type="java.lang.String"/>
  25262. <exception name="IOException" type="java.io.IOException"/>
  25263. </method>
  25264. <method name="writeString"
  25265. abstract="false" native="false" synchronized="false"
  25266. static="false" final="false" visibility="public"
  25267. deprecated="not deprecated">
  25268. <param name="s" type="java.lang.String"/>
  25269. <param name="tag" type="java.lang.String"/>
  25270. <exception name="IOException" type="java.io.IOException"/>
  25271. </method>
  25272. <method name="writeBuffer"
  25273. abstract="false" native="false" synchronized="false"
  25274. static="false" final="false" visibility="public"
  25275. deprecated="not deprecated">
  25276. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  25277. <param name="tag" type="java.lang.String"/>
  25278. <exception name="IOException" type="java.io.IOException"/>
  25279. </method>
  25280. <method name="startRecord"
  25281. abstract="false" native="false" synchronized="false"
  25282. static="false" final="false" visibility="public"
  25283. deprecated="not deprecated">
  25284. <param name="r" type="org.apache.hadoop.record.Record"/>
  25285. <param name="tag" type="java.lang.String"/>
  25286. <exception name="IOException" type="java.io.IOException"/>
  25287. </method>
  25288. <method name="endRecord"
  25289. abstract="false" native="false" synchronized="false"
  25290. static="false" final="false" visibility="public"
  25291. deprecated="not deprecated">
  25292. <param name="r" type="org.apache.hadoop.record.Record"/>
  25293. <param name="tag" type="java.lang.String"/>
  25294. <exception name="IOException" type="java.io.IOException"/>
  25295. </method>
  25296. <method name="startVector"
  25297. abstract="false" native="false" synchronized="false"
  25298. static="false" final="false" visibility="public"
  25299. deprecated="not deprecated">
  25300. <param name="v" type="java.util.ArrayList"/>
  25301. <param name="tag" type="java.lang.String"/>
  25302. <exception name="IOException" type="java.io.IOException"/>
  25303. </method>
  25304. <method name="endVector"
  25305. abstract="false" native="false" synchronized="false"
  25306. static="false" final="false" visibility="public"
  25307. deprecated="not deprecated">
  25308. <param name="v" type="java.util.ArrayList"/>
  25309. <param name="tag" type="java.lang.String"/>
  25310. <exception name="IOException" type="java.io.IOException"/>
  25311. </method>
  25312. <method name="startMap"
  25313. abstract="false" native="false" synchronized="false"
  25314. static="false" final="false" visibility="public"
  25315. deprecated="not deprecated">
  25316. <param name="v" type="java.util.TreeMap"/>
  25317. <param name="tag" type="java.lang.String"/>
  25318. <exception name="IOException" type="java.io.IOException"/>
  25319. </method>
  25320. <method name="endMap"
  25321. abstract="false" native="false" synchronized="false"
  25322. static="false" final="false" visibility="public"
  25323. deprecated="not deprecated">
  25324. <param name="v" type="java.util.TreeMap"/>
  25325. <param name="tag" type="java.lang.String"/>
  25326. <exception name="IOException" type="java.io.IOException"/>
  25327. </method>
  25328. <doc>
  25329. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25330. </doc>
  25331. </class>
  25332. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  25333. <!-- start interface org.apache.hadoop.record.Index -->
  25334. <interface name="Index" abstract="true"
  25335. static="false" final="false" visibility="public"
  25336. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25337. <method name="done" return="boolean"
  25338. abstract="true" native="false" synchronized="false"
  25339. static="false" final="false" visibility="public"
  25340. deprecated="not deprecated">
  25341. </method>
  25342. <method name="incr"
  25343. abstract="true" native="false" synchronized="false"
  25344. static="false" final="false" visibility="public"
  25345. deprecated="not deprecated">
  25346. </method>
  25347. <doc>
  25348. <![CDATA[Interface that acts as an iterator for deserializing maps.
  25349. The deserializer returns an instance that the record uses to
  25350. read vectors and maps. An example of usage is as follows:
  25351. <code>
  25352. Index idx = startVector(...);
  25353. while (!idx.done()) {
  25354. .... // read element of a vector
  25355. idx.incr();
  25356. }
  25357. </code>
  25358. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25359. </doc>
  25360. </interface>
  25361. <!-- end interface org.apache.hadoop.record.Index -->
  25362. <!-- start class org.apache.hadoop.record.Record -->
  25363. <class name="Record" extends="java.lang.Object"
  25364. abstract="true"
  25365. static="false" final="false" visibility="public"
  25366. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25367. <implements name="org.apache.hadoop.io.WritableComparable"/>
  25368. <implements name="java.lang.Cloneable"/>
  25369. <constructor name="Record"
  25370. static="false" final="false" visibility="public"
  25371. deprecated="not deprecated">
  25372. </constructor>
  25373. <method name="serialize"
  25374. abstract="true" native="false" synchronized="false"
  25375. static="false" final="false" visibility="public"
  25376. deprecated="not deprecated">
  25377. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  25378. <param name="tag" type="java.lang.String"/>
  25379. <exception name="IOException" type="java.io.IOException"/>
  25380. <doc>
  25381. <![CDATA[Serialize a record with tag (ususally field name)
  25382. @param rout Record output destination
  25383. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  25384. </doc>
  25385. </method>
  25386. <method name="deserialize"
  25387. abstract="true" native="false" synchronized="false"
  25388. static="false" final="false" visibility="public"
  25389. deprecated="not deprecated">
  25390. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  25391. <param name="tag" type="java.lang.String"/>
  25392. <exception name="IOException" type="java.io.IOException"/>
  25393. <doc>
  25394. <![CDATA[Deserialize a record with a tag (usually field name)
  25395. @param rin Record input source
  25396. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  25397. </doc>
  25398. </method>
  25399. <method name="compareTo" return="int"
  25400. abstract="true" native="false" synchronized="false"
  25401. static="false" final="false" visibility="public"
  25402. deprecated="not deprecated">
  25403. <param name="peer" type="java.lang.Object"/>
  25404. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  25405. </method>
  25406. <method name="serialize"
  25407. abstract="false" native="false" synchronized="false"
  25408. static="false" final="false" visibility="public"
  25409. deprecated="not deprecated">
  25410. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  25411. <exception name="IOException" type="java.io.IOException"/>
  25412. <doc>
  25413. <![CDATA[Serialize a record without a tag
  25414. @param rout Record output destination]]>
  25415. </doc>
  25416. </method>
  25417. <method name="deserialize"
  25418. abstract="false" native="false" synchronized="false"
  25419. static="false" final="false" visibility="public"
  25420. deprecated="not deprecated">
  25421. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  25422. <exception name="IOException" type="java.io.IOException"/>
  25423. <doc>
  25424. <![CDATA[Deserialize a record without a tag
  25425. @param rin Record input source]]>
  25426. </doc>
  25427. </method>
  25428. <method name="write"
  25429. abstract="false" native="false" synchronized="false"
  25430. static="false" final="false" visibility="public"
  25431. deprecated="not deprecated">
  25432. <param name="out" type="java.io.DataOutput"/>
  25433. <exception name="IOException" type="java.io.IOException"/>
  25434. </method>
  25435. <method name="readFields"
  25436. abstract="false" native="false" synchronized="false"
  25437. static="false" final="false" visibility="public"
  25438. deprecated="not deprecated">
  25439. <param name="din" type="java.io.DataInput"/>
  25440. <exception name="IOException" type="java.io.IOException"/>
  25441. </method>
  25442. <method name="toString" return="java.lang.String"
  25443. abstract="false" native="false" synchronized="false"
  25444. static="false" final="false" visibility="public"
  25445. deprecated="not deprecated">
  25446. </method>
  25447. <doc>
  25448. <![CDATA[Abstract class that is extended by generated classes.
  25449. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25450. </doc>
  25451. </class>
  25452. <!-- end class org.apache.hadoop.record.Record -->
  25453. <!-- start class org.apache.hadoop.record.RecordComparator -->
  25454. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  25455. abstract="true"
  25456. static="false" final="false" visibility="public"
  25457. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25458. <constructor name="RecordComparator" type="java.lang.Class"
  25459. static="false" final="false" visibility="protected"
  25460. deprecated="not deprecated">
  25461. <doc>
  25462. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  25463. </doc>
  25464. </constructor>
  25465. <method name="compare" return="int"
  25466. abstract="true" native="false" synchronized="false"
  25467. static="false" final="false" visibility="public"
  25468. deprecated="not deprecated">
  25469. <param name="b1" type="byte[]"/>
  25470. <param name="s1" type="int"/>
  25471. <param name="l1" type="int"/>
  25472. <param name="b2" type="byte[]"/>
  25473. <param name="s2" type="int"/>
  25474. <param name="l2" type="int"/>
  25475. </method>
  25476. <method name="define"
  25477. abstract="false" native="false" synchronized="true"
  25478. static="true" final="false" visibility="public"
  25479. deprecated="not deprecated">
  25480. <param name="c" type="java.lang.Class"/>
  25481. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  25482. <doc>
  25483. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  25484. @param c record classs for which a raw comparator is provided
  25485. @param comparator Raw comparator instance for class c]]>
  25486. </doc>
  25487. </method>
  25488. <doc>
  25489. <![CDATA[A raw record comparator base class
  25490. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25491. </doc>
  25492. </class>
  25493. <!-- end class org.apache.hadoop.record.RecordComparator -->
  25494. <!-- start interface org.apache.hadoop.record.RecordInput -->
  25495. <interface name="RecordInput" abstract="true"
  25496. static="false" final="false" visibility="public"
  25497. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25498. <method name="readByte" return="byte"
  25499. abstract="true" native="false" synchronized="false"
  25500. static="false" final="false" visibility="public"
  25501. deprecated="not deprecated">
  25502. <param name="tag" type="java.lang.String"/>
  25503. <exception name="IOException" type="java.io.IOException"/>
  25504. <doc>
  25505. <![CDATA[Read a byte from serialized record.
  25506. @param tag Used by tagged serialization formats (such as XML)
  25507. @return value read from serialized record.]]>
  25508. </doc>
  25509. </method>
  25510. <method name="readBool" return="boolean"
  25511. abstract="true" native="false" synchronized="false"
  25512. static="false" final="false" visibility="public"
  25513. deprecated="not deprecated">
  25514. <param name="tag" type="java.lang.String"/>
  25515. <exception name="IOException" type="java.io.IOException"/>
  25516. <doc>
  25517. <![CDATA[Read a boolean from serialized record.
  25518. @param tag Used by tagged serialization formats (such as XML)
  25519. @return value read from serialized record.]]>
  25520. </doc>
  25521. </method>
  25522. <method name="readInt" return="int"
  25523. abstract="true" native="false" synchronized="false"
  25524. static="false" final="false" visibility="public"
  25525. deprecated="not deprecated">
  25526. <param name="tag" type="java.lang.String"/>
  25527. <exception name="IOException" type="java.io.IOException"/>
  25528. <doc>
  25529. <![CDATA[Read an integer from serialized record.
  25530. @param tag Used by tagged serialization formats (such as XML)
  25531. @return value read from serialized record.]]>
  25532. </doc>
  25533. </method>
  25534. <method name="readLong" return="long"
  25535. abstract="true" native="false" synchronized="false"
  25536. static="false" final="false" visibility="public"
  25537. deprecated="not deprecated">
  25538. <param name="tag" type="java.lang.String"/>
  25539. <exception name="IOException" type="java.io.IOException"/>
  25540. <doc>
  25541. <![CDATA[Read a long integer from serialized record.
  25542. @param tag Used by tagged serialization formats (such as XML)
  25543. @return value read from serialized record.]]>
  25544. </doc>
  25545. </method>
  25546. <method name="readFloat" return="float"
  25547. abstract="true" native="false" synchronized="false"
  25548. static="false" final="false" visibility="public"
  25549. deprecated="not deprecated">
  25550. <param name="tag" type="java.lang.String"/>
  25551. <exception name="IOException" type="java.io.IOException"/>
  25552. <doc>
  25553. <![CDATA[Read a single-precision float from serialized record.
  25554. @param tag Used by tagged serialization formats (such as XML)
  25555. @return value read from serialized record.]]>
  25556. </doc>
  25557. </method>
  25558. <method name="readDouble" return="double"
  25559. abstract="true" native="false" synchronized="false"
  25560. static="false" final="false" visibility="public"
  25561. deprecated="not deprecated">
  25562. <param name="tag" type="java.lang.String"/>
  25563. <exception name="IOException" type="java.io.IOException"/>
  25564. <doc>
  25565. <![CDATA[Read a double-precision number from serialized record.
  25566. @param tag Used by tagged serialization formats (such as XML)
  25567. @return value read from serialized record.]]>
  25568. </doc>
  25569. </method>
  25570. <method name="readString" return="java.lang.String"
  25571. abstract="true" native="false" synchronized="false"
  25572. static="false" final="false" visibility="public"
  25573. deprecated="not deprecated">
  25574. <param name="tag" type="java.lang.String"/>
  25575. <exception name="IOException" type="java.io.IOException"/>
  25576. <doc>
  25577. <![CDATA[Read a UTF-8 encoded string from serialized record.
  25578. @param tag Used by tagged serialization formats (such as XML)
  25579. @return value read from serialized record.]]>
  25580. </doc>
  25581. </method>
  25582. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  25583. abstract="true" native="false" synchronized="false"
  25584. static="false" final="false" visibility="public"
  25585. deprecated="not deprecated">
  25586. <param name="tag" type="java.lang.String"/>
  25587. <exception name="IOException" type="java.io.IOException"/>
  25588. <doc>
  25589. <![CDATA[Read byte array from serialized record.
  25590. @param tag Used by tagged serialization formats (such as XML)
  25591. @return value read from serialized record.]]>
  25592. </doc>
  25593. </method>
  25594. <method name="startRecord"
  25595. abstract="true" native="false" synchronized="false"
  25596. static="false" final="false" visibility="public"
  25597. deprecated="not deprecated">
  25598. <param name="tag" type="java.lang.String"/>
  25599. <exception name="IOException" type="java.io.IOException"/>
  25600. <doc>
  25601. <![CDATA[Check the mark for start of the serialized record.
  25602. @param tag Used by tagged serialization formats (such as XML)]]>
  25603. </doc>
  25604. </method>
  25605. <method name="endRecord"
  25606. abstract="true" native="false" synchronized="false"
  25607. static="false" final="false" visibility="public"
  25608. deprecated="not deprecated">
  25609. <param name="tag" type="java.lang.String"/>
  25610. <exception name="IOException" type="java.io.IOException"/>
  25611. <doc>
  25612. <![CDATA[Check the mark for end of the serialized record.
  25613. @param tag Used by tagged serialization formats (such as XML)]]>
  25614. </doc>
  25615. </method>
  25616. <method name="startVector" return="org.apache.hadoop.record.Index"
  25617. abstract="true" native="false" synchronized="false"
  25618. static="false" final="false" visibility="public"
  25619. deprecated="not deprecated">
  25620. <param name="tag" type="java.lang.String"/>
  25621. <exception name="IOException" type="java.io.IOException"/>
  25622. <doc>
  25623. <![CDATA[Check the mark for start of the serialized vector.
  25624. @param tag Used by tagged serialization formats (such as XML)
  25625. @return Index that is used to count the number of elements.]]>
  25626. </doc>
  25627. </method>
  25628. <method name="endVector"
  25629. abstract="true" native="false" synchronized="false"
  25630. static="false" final="false" visibility="public"
  25631. deprecated="not deprecated">
  25632. <param name="tag" type="java.lang.String"/>
  25633. <exception name="IOException" type="java.io.IOException"/>
  25634. <doc>
  25635. <![CDATA[Check the mark for end of the serialized vector.
  25636. @param tag Used by tagged serialization formats (such as XML)]]>
  25637. </doc>
  25638. </method>
  25639. <method name="startMap" return="org.apache.hadoop.record.Index"
  25640. abstract="true" native="false" synchronized="false"
  25641. static="false" final="false" visibility="public"
  25642. deprecated="not deprecated">
  25643. <param name="tag" type="java.lang.String"/>
  25644. <exception name="IOException" type="java.io.IOException"/>
  25645. <doc>
  25646. <![CDATA[Check the mark for start of the serialized map.
  25647. @param tag Used by tagged serialization formats (such as XML)
  25648. @return Index that is used to count the number of map entries.]]>
  25649. </doc>
  25650. </method>
  25651. <method name="endMap"
  25652. abstract="true" native="false" synchronized="false"
  25653. static="false" final="false" visibility="public"
  25654. deprecated="not deprecated">
  25655. <param name="tag" type="java.lang.String"/>
  25656. <exception name="IOException" type="java.io.IOException"/>
  25657. <doc>
  25658. <![CDATA[Check the mark for end of the serialized map.
  25659. @param tag Used by tagged serialization formats (such as XML)]]>
  25660. </doc>
  25661. </method>
  25662. <doc>
  25663. <![CDATA[Interface that all the Deserializers have to implement.
  25664. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25665. </doc>
  25666. </interface>
  25667. <!-- end interface org.apache.hadoop.record.RecordInput -->
  25668. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  25669. <interface name="RecordOutput" abstract="true"
  25670. static="false" final="false" visibility="public"
  25671. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  25672. <method name="writeByte"
  25673. abstract="true" native="false" synchronized="false"
  25674. static="false" final="false" visibility="public"
  25675. deprecated="not deprecated">
  25676. <param name="b" type="byte"/>
  25677. <param name="tag" type="java.lang.String"/>
  25678. <exception name="IOException" type="java.io.IOException"/>
  25679. <doc>
  25680. <![CDATA[Write a byte to serialized record.
  25681. @param b Byte to be serialized
  25682. @param tag Used by tagged serialization formats (such as XML)
  25683. @throws IOException Indicates error in serialization]]>
  25684. </doc>
  25685. </method>
  25686. <method name="writeBool"
  25687. abstract="true" native="false" synchronized="false"
  25688. static="false" final="false" visibility="public"
  25689. deprecated="not deprecated">
  25690. <param name="b" type="boolean"/>
  25691. <param name="tag" type="java.lang.String"/>
  25692. <exception name="IOException" type="java.io.IOException"/>
  25693. <doc>
  25694. <![CDATA[Write a boolean to serialized record.
  25695. @param b Boolean to be serialized
  25696. @param tag Used by tagged serialization formats (such as XML)
  25697. @throws IOException Indicates error in serialization]]>
  25698. </doc>
  25699. </method>
  25700. <method name="writeInt"
  25701. abstract="true" native="false" synchronized="false"
  25702. static="false" final="false" visibility="public"
  25703. deprecated="not deprecated">
  25704. <param name="i" type="int"/>
  25705. <param name="tag" type="java.lang.String"/>
  25706. <exception name="IOException" type="java.io.IOException"/>
  25707. <doc>
  25708. <![CDATA[Write an integer to serialized record.
  25709. @param i Integer to be serialized
  25710. @param tag Used by tagged serialization formats (such as XML)
  25711. @throws IOException Indicates error in serialization]]>
  25712. </doc>
  25713. </method>
  25714. <method name="writeLong"
  25715. abstract="true" native="false" synchronized="false"
  25716. static="false" final="false" visibility="public"
  25717. deprecated="not deprecated">
  25718. <param name="l" type="long"/>
  25719. <param name="tag" type="java.lang.String"/>
  25720. <exception name="IOException" type="java.io.IOException"/>
  25721. <doc>
  25722. <![CDATA[Write a long integer to serialized record.
  25723. @param l Long to be serialized
  25724. @param tag Used by tagged serialization formats (such as XML)
  25725. @throws IOException Indicates error in serialization]]>
  25726. </doc>
  25727. </method>
  25728. <method name="writeFloat"
  25729. abstract="true" native="false" synchronized="false"
  25730. static="false" final="false" visibility="public"
  25731. deprecated="not deprecated">
  25732. <param name="f" type="float"/>
  25733. <param name="tag" type="java.lang.String"/>
  25734. <exception name="IOException" type="java.io.IOException"/>
  25735. <doc>
  25736. <![CDATA[Write a single-precision float to serialized record.
  25737. @param f Float to be serialized
  25738. @param tag Used by tagged serialization formats (such as XML)
  25739. @throws IOException Indicates error in serialization]]>
  25740. </doc>
  25741. </method>
  25742. <method name="writeDouble"
  25743. abstract="true" native="false" synchronized="false"
  25744. static="false" final="false" visibility="public"
  25745. deprecated="not deprecated">
  25746. <param name="d" type="double"/>
  25747. <param name="tag" type="java.lang.String"/>
  25748. <exception name="IOException" type="java.io.IOException"/>
  25749. <doc>
  25750. <![CDATA[Write a double precision floating point number to serialized record.
  25751. @param d Double to be serialized
  25752. @param tag Used by tagged serialization formats (such as XML)
  25753. @throws IOException Indicates error in serialization]]>
  25754. </doc>
  25755. </method>
  25756. <method name="writeString"
  25757. abstract="true" native="false" synchronized="false"
  25758. static="false" final="false" visibility="public"
  25759. deprecated="not deprecated">
  25760. <param name="s" type="java.lang.String"/>
  25761. <param name="tag" type="java.lang.String"/>
  25762. <exception name="IOException" type="java.io.IOException"/>
  25763. <doc>
  25764. <![CDATA[Write a unicode string to serialized record.
  25765. @param s String to be serialized
  25766. @param tag Used by tagged serialization formats (such as XML)
  25767. @throws IOException Indicates error in serialization]]>
  25768. </doc>
  25769. </method>
  25770. <method name="writeBuffer"
  25771. abstract="true" native="false" synchronized="false"
  25772. static="false" final="false" visibility="public"
  25773. deprecated="not deprecated">
  25774. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  25775. <param name="tag" type="java.lang.String"/>
  25776. <exception name="IOException" type="java.io.IOException"/>
  25777. <doc>
  25778. <![CDATA[Write a buffer to serialized record.
  25779. @param buf Buffer to be serialized
  25780. @param tag Used by tagged serialization formats (such as XML)
  25781. @throws IOException Indicates error in serialization]]>
  25782. </doc>
  25783. </method>
  25784. <method name="startRecord"
  25785. abstract="true" native="false" synchronized="false"
  25786. static="false" final="false" visibility="public"
  25787. deprecated="not deprecated">
  25788. <param name="r" type="org.apache.hadoop.record.Record"/>
  25789. <param name="tag" type="java.lang.String"/>
  25790. <exception name="IOException" type="java.io.IOException"/>
  25791. <doc>
  25792. <![CDATA[Mark the start of a record to be serialized.
  25793. @param r Record to be serialized
  25794. @param tag Used by tagged serialization formats (such as XML)
  25795. @throws IOException Indicates error in serialization]]>
  25796. </doc>
  25797. </method>
  25798. <method name="endRecord"
  25799. abstract="true" native="false" synchronized="false"
  25800. static="false" final="false" visibility="public"
  25801. deprecated="not deprecated">
  25802. <param name="r" type="org.apache.hadoop.record.Record"/>
  25803. <param name="tag" type="java.lang.String"/>
  25804. <exception name="IOException" type="java.io.IOException"/>
  25805. <doc>
  25806. <![CDATA[Mark the end of a serialized record.
  25807. @param r Record to be serialized
  25808. @param tag Used by tagged serialization formats (such as XML)
  25809. @throws IOException Indicates error in serialization]]>
  25810. </doc>
  25811. </method>
  25812. <method name="startVector"
  25813. abstract="true" native="false" synchronized="false"
  25814. static="false" final="false" visibility="public"
  25815. deprecated="not deprecated">
  25816. <param name="v" type="java.util.ArrayList"/>
  25817. <param name="tag" type="java.lang.String"/>
  25818. <exception name="IOException" type="java.io.IOException"/>
  25819. <doc>
  25820. <![CDATA[Mark the start of a vector to be serialized.
  25821. @param v Vector to be serialized
  25822. @param tag Used by tagged serialization formats (such as XML)
  25823. @throws IOException Indicates error in serialization]]>
  25824. </doc>
  25825. </method>
  25826. <method name="endVector"
  25827. abstract="true" native="false" synchronized="false"
  25828. static="false" final="false" visibility="public"
  25829. deprecated="not deprecated">
  25830. <param name="v" type="java.util.ArrayList"/>
  25831. <param name="tag" type="java.lang.String"/>
  25832. <exception name="IOException" type="java.io.IOException"/>
  25833. <doc>
  25834. <![CDATA[Mark the end of a serialized vector.
  25835. @param v Vector to be serialized
  25836. @param tag Used by tagged serialization formats (such as XML)
  25837. @throws IOException Indicates error in serialization]]>
  25838. </doc>
  25839. </method>
  25840. <method name="startMap"
  25841. abstract="true" native="false" synchronized="false"
  25842. static="false" final="false" visibility="public"
  25843. deprecated="not deprecated">
  25844. <param name="m" type="java.util.TreeMap"/>
  25845. <param name="tag" type="java.lang.String"/>
  25846. <exception name="IOException" type="java.io.IOException"/>
  25847. <doc>
  25848. <![CDATA[Mark the start of a map to be serialized.
  25849. @param m Map to be serialized
  25850. @param tag Used by tagged serialization formats (such as XML)
  25851. @throws IOException Indicates error in serialization]]>
  25852. </doc>
  25853. </method>
  25854. <method name="endMap"
  25855. abstract="true" native="false" synchronized="false"
  25856. static="false" final="false" visibility="public"
  25857. deprecated="not deprecated">
  25858. <param name="m" type="java.util.TreeMap"/>
  25859. <param name="tag" type="java.lang.String"/>
  25860. <exception name="IOException" type="java.io.IOException"/>
  25861. <doc>
  25862. <![CDATA[Mark the end of a serialized map.
  25863. @param m Map to be serialized
  25864. @param tag Used by tagged serialization formats (such as XML)
  25865. @throws IOException Indicates error in serialization]]>
  25866. </doc>
  25867. </method>
  25868. <doc>
  25869. <![CDATA[Interface that all the serializers have to implement.
  25870. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  25871. </doc>
  25872. </interface>
  25873. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  25874. <!-- start class org.apache.hadoop.record.Utils -->
  25875. <class name="Utils" extends="java.lang.Object"
  25876. abstract="false"
  25877. static="false" final="false" visibility="public"
  25878. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://avro.apache.org/quote_cHaR>AvrolEsS_tHaN/a>.">
  25879. <method name="readFloat" return="float"
  25880. abstract="false" native="false" synchronized="false"
  25881. static="true" final="false" visibility="public"
  25882. deprecated="not deprecated">
  25883. <param name="bytes" type="byte[]"/>
  25884. <param name="start" type="int"/>
  25885. <doc>
  25886. <![CDATA[Parse a float from a byte array.]]>
  25887. </doc>
  25888. </method>
  25889. <method name="readDouble" return="double"
  25890. abstract="false" native="false" synchronized="false"
  25891. static="true" final="false" visibility="public"
  25892. deprecated="not deprecated">
  25893. <param name="bytes" type="byte[]"/>
  25894. <param name="start" type="int"/>
  25895. <doc>
  25896. <![CDATA[Parse a double from a byte array.]]>
  25897. </doc>
  25898. </method>
  25899. <method name="readVLong" return="long"
  25900. abstract="false" native="false" synchronized="false"
  25901. static="true" final="false" visibility="public"
  25902. deprecated="not deprecated">
  25903. <param name="bytes" type="byte[]"/>
  25904. <param name="start" type="int"/>
  25905. <exception name="IOException" type="java.io.IOException"/>
  25906. <doc>
  25907. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  25908. @param bytes byte array with decode long
  25909. @param start starting index
  25910. @throws java.io.IOException
  25911. @return deserialized long]]>
  25912. </doc>
  25913. </method>
  25914. <method name="readVInt" return="int"
  25915. abstract="false" native="false" synchronized="false"
  25916. static="true" final="false" visibility="public"
  25917. deprecated="not deprecated">
  25918. <param name="bytes" type="byte[]"/>
  25919. <param name="start" type="int"/>
  25920. <exception name="IOException" type="java.io.IOException"/>
  25921. <doc>
  25922. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  25923. @param bytes byte array with the encoded integer
  25924. @param start start index
  25925. @throws java.io.IOException
  25926. @return deserialized integer]]>
  25927. </doc>
  25928. </method>
  25929. <method name="readVLong" return="long"
  25930. abstract="false" native="false" synchronized="false"
  25931. static="true" final="false" visibility="public"
  25932. deprecated="not deprecated">
  25933. <param name="in" type="java.io.DataInput"/>
  25934. <exception name="IOException" type="java.io.IOException"/>
  25935. <doc>
  25936. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  25937. @param in input stream
  25938. @throws java.io.IOException
  25939. @return deserialized long]]>
  25940. </doc>
  25941. </method>
  25942. <method name="readVInt" return="int"
  25943. abstract="false" native="false" synchronized="false"
  25944. static="true" final="false" visibility="public"
  25945. deprecated="not deprecated">
  25946. <param name="in" type="java.io.DataInput"/>
  25947. <exception name="IOException" type="java.io.IOException"/>
  25948. <doc>
  25949. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  25950. @param in input stream
  25951. @throws java.io.IOException
  25952. @return deserialized integer]]>
  25953. </doc>
  25954. </method>
  25955. <method name="getVIntSize" return="int"
  25956. abstract="false" native="false" synchronized="false"
  25957. static="true" final="false" visibility="public"
  25958. deprecated="not deprecated">
  25959. <param name="i" type="long"/>
  25960. <doc>
  25961. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  25962. @return the encoded length]]>
  25963. </doc>
  25964. </method>
  25965. <method name="writeVLong"
  25966. abstract="false" native="false" synchronized="false"
  25967. static="true" final="false" visibility="public"
  25968. deprecated="not deprecated">
  25969. <param name="stream" type="java.io.DataOutput"/>
  25970. <param name="i" type="long"/>
  25971. <exception name="IOException" type="java.io.IOException"/>
  25972. <doc>
  25973. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  25974. For {@literal -112 <= i <= 127}, only one byte is used with the actual
  25975. value. For other values of i, the first byte value indicates whether the
  25976. long is positive or negative, and the number of bytes that follow.
  25977. If the first byte value v is between -113 and -120, the following long
  25978. is positive, with number of bytes that follow are -(v+112).
  25979. If the first byte value v is between -121 and -128, the following long
  25980. is negative, with number of bytes that follow are -(v+120). Bytes are
  25981. stored in the high-non-zero-byte-first order.
  25982. @param stream Binary output stream
  25983. @param i Long to be serialized
  25984. @throws java.io.IOException]]>
  25985. </doc>
  25986. </method>
  25987. <method name="writeVInt"
  25988. abstract="false" native="false" synchronized="false"
  25989. static="true" final="false" visibility="public"
  25990. deprecated="not deprecated">
  25991. <param name="stream" type="java.io.DataOutput"/>
  25992. <param name="i" type="int"/>
  25993. <exception name="IOException" type="java.io.IOException"/>
  25994. <doc>
  25995. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  25996. @param stream Binary output stream
  25997. @param i int to be serialized
  25998. @throws java.io.IOException]]>
  25999. </doc>
  26000. </method>
  26001. <method name="compareBytes" return="int"
  26002. abstract="false" native="false" synchronized="false"
  26003. static="true" final="false" visibility="public"
  26004. deprecated="not deprecated">
  26005. <param name="b1" type="byte[]"/>
  26006. <param name="s1" type="int"/>
  26007. <param name="l1" type="int"/>
  26008. <param name="b2" type="byte[]"/>
  26009. <param name="s2" type="int"/>
  26010. <param name="l2" type="int"/>
  26011. <doc>
  26012. <![CDATA[Lexicographic order of binary data.]]>
  26013. </doc>
  26014. </method>
  26015. <field name="hexchars" type="char[]"
  26016. transient="false" volatile="false"
  26017. static="true" final="true" visibility="public"
  26018. deprecated="not deprecated">
  26019. </field>
  26020. <doc>
  26021. <![CDATA[Various utility functions for Hadoop record I/O runtime.
  26022. @deprecated Replaced by <a href="http://avro.apache.org/">Avro</a>.]]>
  26023. </doc>
  26024. </class>
  26025. <!-- end class org.apache.hadoop.record.Utils -->
  26026. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  26027. <class name="XmlRecordInput" extends="java.lang.Object"
  26028. abstract="false"
  26029. static="false" final="false" visibility="public"
  26030. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26031. <implements name="org.apache.hadoop.record.RecordInput"/>
  26032. <constructor name="XmlRecordInput" type="java.io.InputStream"
  26033. static="false" final="false" visibility="public"
  26034. deprecated="not deprecated">
  26035. <doc>
  26036. <![CDATA[Creates a new instance of XmlRecordInput]]>
  26037. </doc>
  26038. </constructor>
  26039. <method name="readByte" return="byte"
  26040. abstract="false" native="false" synchronized="false"
  26041. static="false" final="false" visibility="public"
  26042. deprecated="not deprecated">
  26043. <param name="tag" type="java.lang.String"/>
  26044. <exception name="IOException" type="java.io.IOException"/>
  26045. </method>
  26046. <method name="readBool" return="boolean"
  26047. abstract="false" native="false" synchronized="false"
  26048. static="false" final="false" visibility="public"
  26049. deprecated="not deprecated">
  26050. <param name="tag" type="java.lang.String"/>
  26051. <exception name="IOException" type="java.io.IOException"/>
  26052. </method>
  26053. <method name="readInt" return="int"
  26054. abstract="false" native="false" synchronized="false"
  26055. static="false" final="false" visibility="public"
  26056. deprecated="not deprecated">
  26057. <param name="tag" type="java.lang.String"/>
  26058. <exception name="IOException" type="java.io.IOException"/>
  26059. </method>
  26060. <method name="readLong" return="long"
  26061. abstract="false" native="false" synchronized="false"
  26062. static="false" final="false" visibility="public"
  26063. deprecated="not deprecated">
  26064. <param name="tag" type="java.lang.String"/>
  26065. <exception name="IOException" type="java.io.IOException"/>
  26066. </method>
  26067. <method name="readFloat" return="float"
  26068. abstract="false" native="false" synchronized="false"
  26069. static="false" final="false" visibility="public"
  26070. deprecated="not deprecated">
  26071. <param name="tag" type="java.lang.String"/>
  26072. <exception name="IOException" type="java.io.IOException"/>
  26073. </method>
  26074. <method name="readDouble" return="double"
  26075. abstract="false" native="false" synchronized="false"
  26076. static="false" final="false" visibility="public"
  26077. deprecated="not deprecated">
  26078. <param name="tag" type="java.lang.String"/>
  26079. <exception name="IOException" type="java.io.IOException"/>
  26080. </method>
  26081. <method name="readString" return="java.lang.String"
  26082. abstract="false" native="false" synchronized="false"
  26083. static="false" final="false" visibility="public"
  26084. deprecated="not deprecated">
  26085. <param name="tag" type="java.lang.String"/>
  26086. <exception name="IOException" type="java.io.IOException"/>
  26087. </method>
  26088. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  26089. abstract="false" native="false" synchronized="false"
  26090. static="false" final="false" visibility="public"
  26091. deprecated="not deprecated">
  26092. <param name="tag" type="java.lang.String"/>
  26093. <exception name="IOException" type="java.io.IOException"/>
  26094. </method>
  26095. <method name="startRecord"
  26096. abstract="false" native="false" synchronized="false"
  26097. static="false" final="false" visibility="public"
  26098. deprecated="not deprecated">
  26099. <param name="tag" type="java.lang.String"/>
  26100. <exception name="IOException" type="java.io.IOException"/>
  26101. </method>
  26102. <method name="endRecord"
  26103. abstract="false" native="false" synchronized="false"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <param name="tag" type="java.lang.String"/>
  26107. <exception name="IOException" type="java.io.IOException"/>
  26108. </method>
  26109. <method name="startVector" return="org.apache.hadoop.record.Index"
  26110. abstract="false" native="false" synchronized="false"
  26111. static="false" final="false" visibility="public"
  26112. deprecated="not deprecated">
  26113. <param name="tag" type="java.lang.String"/>
  26114. <exception name="IOException" type="java.io.IOException"/>
  26115. </method>
  26116. <method name="endVector"
  26117. abstract="false" native="false" synchronized="false"
  26118. static="false" final="false" visibility="public"
  26119. deprecated="not deprecated">
  26120. <param name="tag" type="java.lang.String"/>
  26121. <exception name="IOException" type="java.io.IOException"/>
  26122. </method>
  26123. <method name="startMap" return="org.apache.hadoop.record.Index"
  26124. abstract="false" native="false" synchronized="false"
  26125. static="false" final="false" visibility="public"
  26126. deprecated="not deprecated">
  26127. <param name="tag" type="java.lang.String"/>
  26128. <exception name="IOException" type="java.io.IOException"/>
  26129. </method>
  26130. <method name="endMap"
  26131. abstract="false" native="false" synchronized="false"
  26132. static="false" final="false" visibility="public"
  26133. deprecated="not deprecated">
  26134. <param name="tag" type="java.lang.String"/>
  26135. <exception name="IOException" type="java.io.IOException"/>
  26136. </method>
  26137. <doc>
  26138. <![CDATA[XML Deserializer.
  26139. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26140. </doc>
  26141. </class>
  26142. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  26143. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  26144. <class name="XmlRecordOutput" extends="java.lang.Object"
  26145. abstract="false"
  26146. static="false" final="false" visibility="public"
  26147. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26148. <implements name="org.apache.hadoop.record.RecordOutput"/>
  26149. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  26150. static="false" final="false" visibility="public"
  26151. deprecated="not deprecated">
  26152. <doc>
  26153. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  26154. </doc>
  26155. </constructor>
  26156. <method name="writeByte"
  26157. abstract="false" native="false" synchronized="false"
  26158. static="false" final="false" visibility="public"
  26159. deprecated="not deprecated">
  26160. <param name="b" type="byte"/>
  26161. <param name="tag" type="java.lang.String"/>
  26162. <exception name="IOException" type="java.io.IOException"/>
  26163. </method>
  26164. <method name="writeBool"
  26165. abstract="false" native="false" synchronized="false"
  26166. static="false" final="false" visibility="public"
  26167. deprecated="not deprecated">
  26168. <param name="b" type="boolean"/>
  26169. <param name="tag" type="java.lang.String"/>
  26170. <exception name="IOException" type="java.io.IOException"/>
  26171. </method>
  26172. <method name="writeInt"
  26173. abstract="false" native="false" synchronized="false"
  26174. static="false" final="false" visibility="public"
  26175. deprecated="not deprecated">
  26176. <param name="i" type="int"/>
  26177. <param name="tag" type="java.lang.String"/>
  26178. <exception name="IOException" type="java.io.IOException"/>
  26179. </method>
  26180. <method name="writeLong"
  26181. abstract="false" native="false" synchronized="false"
  26182. static="false" final="false" visibility="public"
  26183. deprecated="not deprecated">
  26184. <param name="l" type="long"/>
  26185. <param name="tag" type="java.lang.String"/>
  26186. <exception name="IOException" type="java.io.IOException"/>
  26187. </method>
  26188. <method name="writeFloat"
  26189. abstract="false" native="false" synchronized="false"
  26190. static="false" final="false" visibility="public"
  26191. deprecated="not deprecated">
  26192. <param name="f" type="float"/>
  26193. <param name="tag" type="java.lang.String"/>
  26194. <exception name="IOException" type="java.io.IOException"/>
  26195. </method>
  26196. <method name="writeDouble"
  26197. abstract="false" native="false" synchronized="false"
  26198. static="false" final="false" visibility="public"
  26199. deprecated="not deprecated">
  26200. <param name="d" type="double"/>
  26201. <param name="tag" type="java.lang.String"/>
  26202. <exception name="IOException" type="java.io.IOException"/>
  26203. </method>
  26204. <method name="writeString"
  26205. abstract="false" native="false" synchronized="false"
  26206. static="false" final="false" visibility="public"
  26207. deprecated="not deprecated">
  26208. <param name="s" type="java.lang.String"/>
  26209. <param name="tag" type="java.lang.String"/>
  26210. <exception name="IOException" type="java.io.IOException"/>
  26211. </method>
  26212. <method name="writeBuffer"
  26213. abstract="false" native="false" synchronized="false"
  26214. static="false" final="false" visibility="public"
  26215. deprecated="not deprecated">
  26216. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  26217. <param name="tag" type="java.lang.String"/>
  26218. <exception name="IOException" type="java.io.IOException"/>
  26219. </method>
  26220. <method name="startRecord"
  26221. abstract="false" native="false" synchronized="false"
  26222. static="false" final="false" visibility="public"
  26223. deprecated="not deprecated">
  26224. <param name="r" type="org.apache.hadoop.record.Record"/>
  26225. <param name="tag" type="java.lang.String"/>
  26226. <exception name="IOException" type="java.io.IOException"/>
  26227. </method>
  26228. <method name="endRecord"
  26229. abstract="false" native="false" synchronized="false"
  26230. static="false" final="false" visibility="public"
  26231. deprecated="not deprecated">
  26232. <param name="r" type="org.apache.hadoop.record.Record"/>
  26233. <param name="tag" type="java.lang.String"/>
  26234. <exception name="IOException" type="java.io.IOException"/>
  26235. </method>
  26236. <method name="startVector"
  26237. abstract="false" native="false" synchronized="false"
  26238. static="false" final="false" visibility="public"
  26239. deprecated="not deprecated">
  26240. <param name="v" type="java.util.ArrayList"/>
  26241. <param name="tag" type="java.lang.String"/>
  26242. <exception name="IOException" type="java.io.IOException"/>
  26243. </method>
  26244. <method name="endVector"
  26245. abstract="false" native="false" synchronized="false"
  26246. static="false" final="false" visibility="public"
  26247. deprecated="not deprecated">
  26248. <param name="v" type="java.util.ArrayList"/>
  26249. <param name="tag" type="java.lang.String"/>
  26250. <exception name="IOException" type="java.io.IOException"/>
  26251. </method>
  26252. <method name="startMap"
  26253. abstract="false" native="false" synchronized="false"
  26254. static="false" final="false" visibility="public"
  26255. deprecated="not deprecated">
  26256. <param name="v" type="java.util.TreeMap"/>
  26257. <param name="tag" type="java.lang.String"/>
  26258. <exception name="IOException" type="java.io.IOException"/>
  26259. </method>
  26260. <method name="endMap"
  26261. abstract="false" native="false" synchronized="false"
  26262. static="false" final="false" visibility="public"
  26263. deprecated="not deprecated">
  26264. <param name="v" type="java.util.TreeMap"/>
  26265. <param name="tag" type="java.lang.String"/>
  26266. <exception name="IOException" type="java.io.IOException"/>
  26267. </method>
  26268. <doc>
  26269. <![CDATA[XML Serializer.
  26270. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26271. </doc>
  26272. </class>
  26273. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  26274. <doc>
  26275. <![CDATA[<p>
  26276. (DEPRECATED) Hadoop record I/O contains classes and a record description language
  26277. translator for simplifying serialization and deserialization of records in a
  26278. language-neutral manner.
  26279. </p>
  26280. <p>
  26281. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  26282. </p>
  26283. <h2>Introduction</h2>
  26284. Software systems of any significant complexity require mechanisms for data
  26285. interchange with the outside world. These interchanges typically involve the
  26286. marshaling and unmarshaling of logical units of data to and from data streams
  26287. (files, network connections, memory buffers etc.). Applications usually have
  26288. some code for serializing and deserializing the data types that they manipulate
  26289. embedded in them. The work of serialization has several features that make
  26290. automatic code generation for it worthwhile. Given a particular output encoding
  26291. (binary, XML, etc.), serialization of primitive types and simple compositions
  26292. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  26293. written serialization code can be susceptible to bugs especially when records
  26294. have a large number of fields or a record definition changes between software
  26295. versions. Lastly, it can be very useful for applications written in different
  26296. programming languages to be able to share and interchange data. This can be
  26297. made a lot easier by describing the data records manipulated by these
  26298. applications in a language agnostic manner and using the descriptions to derive
  26299. implementations of serialization in multiple target languages.
  26300. This document describes Hadoop Record I/O, a mechanism that is aimed
  26301. at
  26302. <ul>
  26303. <li> enabling the specification of simple serializable data types (records)
  26304. <li> enabling the generation of code in multiple target languages for
  26305. marshaling and unmarshaling such types
  26306. <li> providing target language specific support that will enable application
  26307. programmers to incorporate generated code into their applications
  26308. </ul>
  26309. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  26310. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  26311. the specification of most record types, they differ widely in what else they
  26312. focus on. The focus in Hadoop Record I/O is on data marshaling and
  26313. multi-lingual support. We take a translator-based approach to serialization.
  26314. Hadoop users have to describe their data in a simple data description
  26315. language. The Hadoop DDL translator rcc generates code that users
  26316. can invoke in order to read/write their data from/to simple stream
  26317. abstractions. Next we list explicitly some of the goals and non-goals of
  26318. Hadoop Record I/O.
  26319. <h3>Goals</h3>
  26320. <ul>
  26321. <li> Support for commonly used primitive types. Hadoop should include as
  26322. primitives commonly used builtin types from programming languages we intend to
  26323. support.
  26324. <li> Support for common data compositions (including recursive compositions).
  26325. Hadoop should support widely used composite types such as structs and
  26326. vectors.
  26327. <li> Code generation in multiple target languages. Hadoop should be capable of
  26328. generating serialization code in multiple target languages and should be
  26329. easily extensible to new target languages. The initial target languages are
  26330. C++ and Java.
  26331. <li> Support for generated target languages. Hadooop should include support
  26332. in the form of headers, libraries, packages for supported target languages
  26333. that enable easy inclusion and use of generated code in applications.
  26334. <li> Support for multiple output encodings. Candidates include
  26335. packed binary, comma-separated text, XML etc.
  26336. <li> Support for specifying record types in a backwards/forwards compatible
  26337. manner. This will probably be in the form of support for optional fields in
  26338. records. This version of the document does not include a description of the
  26339. planned mechanism, we intend to include it in the next iteration.
  26340. </ul>
  26341. <h3>Non-Goals</h3>
  26342. <ul>
  26343. <li> Serializing existing arbitrary C++ classes.
  26344. <li> Serializing complex data structures such as trees, linked lists etc.
  26345. <li> Built-in indexing schemes, compression, or check-sums.
  26346. <li> Dynamic construction of objects from an XML schema.
  26347. </ul>
  26348. The remainder of this document describes the features of Hadoop record I/O
  26349. in more detail. Section 2 describes the data types supported by the system.
  26350. Section 3 lays out the DDL syntax with some examples of simple records.
  26351. Section 4 describes the process of code generation with rcc. Section 5
  26352. describes target language mappings and support for Hadoop types. We include a
  26353. fairly complete description of C++ mappings with intent to include Java and
  26354. others in upcoming iterations of this document. The last section talks about
  26355. supported output encodings.
  26356. <h2>Data Types and Streams</h2>
  26357. This section describes the primitive and composite types supported by Hadoop.
  26358. We aim to support a set of types that can be used to simply and efficiently
  26359. express a wide range of record types in different programming languages.
  26360. <h3>Primitive Types</h3>
  26361. For the most part, the primitive types of Hadoop map directly to primitive
  26362. types in high level programming languages. Special cases are the
  26363. ustring (a Unicode string) and buffer types, which we believe
  26364. find wide use and which are usually implemented in library code and not
  26365. available as language built-ins. Hadoop also supplies these via library code
  26366. when a target language built-in is not present and there is no widely
  26367. adopted "standard" implementation. The complete list of primitive types is:
  26368. <ul>
  26369. <li> byte: An 8-bit unsigned integer.
  26370. <li> boolean: A boolean value.
  26371. <li> int: A 32-bit signed integer.
  26372. <li> long: A 64-bit signed integer.
  26373. <li> float: A single precision floating point number as described by
  26374. IEEE-754.
  26375. <li> double: A double precision floating point number as described by
  26376. IEEE-754.
  26377. <li> ustring: A string consisting of Unicode characters.
  26378. <li> buffer: An arbitrary sequence of bytes.
  26379. </ul>
  26380. <h3>Composite Types</h3>
  26381. Hadoop supports a small set of composite types that enable the description
  26382. of simple aggregate types and containers. A composite type is serialized
  26383. by sequentially serializing it constituent elements. The supported
  26384. composite types are:
  26385. <ul>
  26386. <li> record: An aggregate type like a C-struct. This is a list of
  26387. typed fields that are together considered a single unit of data. A record
  26388. is serialized by sequentially serializing its constituent fields. In addition
  26389. to serialization a record has comparison operations (equality and less-than)
  26390. implemented for it, these are defined as memberwise comparisons.
  26391. <li>vector: A sequence of entries of the same data type, primitive
  26392. or composite.
  26393. <li> map: An associative container mapping instances of a key type to
  26394. instances of a value type. The key and value types may themselves be primitive
  26395. or composite types.
  26396. </ul>
  26397. <h3>Streams</h3>
  26398. Hadoop generates code for serializing and deserializing record types to
  26399. abstract streams. For each target language Hadoop defines very simple input
  26400. and output stream interfaces. Application writers can usually develop
  26401. concrete implementations of these by putting a one method wrapper around
  26402. an existing stream implementation.
  26403. <h2>DDL Syntax and Examples</h2>
  26404. We now describe the syntax of the Hadoop data description language. This is
  26405. followed by a few examples of DDL usage.
  26406. <h3>Hadoop DDL Syntax</h3>
  26407. <pre><code>
  26408. recfile = *include module *record
  26409. include = "include" path
  26410. path = (relative-path / absolute-path)
  26411. module = "module" module-name
  26412. module-name = name *("." name)
  26413. record := "class" name "{" 1*(field) "}"
  26414. field := type name ";"
  26415. name := ALPHA (ALPHA / DIGIT / "_" )*
  26416. type := (ptype / ctype)
  26417. ptype := ("byte" / "boolean" / "int" |
  26418. "long" / "float" / "double"
  26419. "ustring" / "buffer")
  26420. ctype := (("vector" "<" type ">") /
  26421. ("map" "<" type "," type ">" ) ) / name)
  26422. </code></pre>
  26423. A DDL file describes one or more record types. It begins with zero or
  26424. more include declarations, a single mandatory module declaration
  26425. followed by zero or more class declarations. The semantics of each of
  26426. these declarations are described below:
  26427. <ul>
  26428. <li>include: An include declaration specifies a DDL file to be
  26429. referenced when generating code for types in the current DDL file. Record types
  26430. in the current compilation unit may refer to types in all included files.
  26431. File inclusion is recursive. An include does not trigger code
  26432. generation for the referenced file.
  26433. <li> module: Every Hadoop DDL file must have a single module
  26434. declaration that follows the list of includes and precedes all record
  26435. declarations. A module declaration identifies a scope within which
  26436. the names of all types in the current file are visible. Module names are
  26437. mapped to C++ namespaces, Java packages etc. in generated code.
  26438. <li> class: Records types are specified through class
  26439. declarations. A class declaration is like a Java class declaration.
  26440. It specifies a named record type and a list of fields that constitute records
  26441. of the type. Usage is illustrated in the following examples.
  26442. </ul>
  26443. <h3>Examples</h3>
  26444. <ul>
  26445. <li>A simple DDL file links.jr with just one record declaration.
  26446. <pre><code>
  26447. module links {
  26448. class Link {
  26449. ustring URL;
  26450. boolean isRelative;
  26451. ustring anchorText;
  26452. };
  26453. }
  26454. </code></pre>
  26455. <li> A DDL file outlinks.jr which includes another
  26456. <pre><code>
  26457. include "links.jr"
  26458. module outlinks {
  26459. class OutLinks {
  26460. ustring baseURL;
  26461. vector<links.Link> outLinks;
  26462. };
  26463. }
  26464. </code></pre>
  26465. </ul>
  26466. <h2>Code Generation</h2>
  26467. The Hadoop translator is written in Java. Invocation is done by executing a
  26468. wrapper shell script named named rcc. It takes a list of
  26469. record description files as a mandatory argument and an
  26470. optional language argument (the default is Java) --language or
  26471. -l. Thus a typical invocation would look like:
  26472. <pre><code>
  26473. $ rcc -l C++ <filename> ...
  26474. </code></pre>
  26475. <h2>Target Language Mappings and Support</h2>
  26476. For all target languages, the unit of code generation is a record type.
  26477. For each record type, Hadoop generates code for serialization and
  26478. deserialization, record comparison and access to record members.
  26479. <h3>C++</h3>
  26480. Support for including Hadoop generated C++ code in applications comes in the
  26481. form of a header file recordio.hh which needs to be included in source
  26482. that uses Hadoop types and a library librecordio.a which applications need
  26483. to be linked with. The header declares the Hadoop C++ namespace which defines
  26484. appropriate types for the various primitives, the basic interfaces for
  26485. records and streams and enumerates the supported serialization encodings.
  26486. Declarations of these interfaces and a description of their semantics follow:
  26487. <pre><code>
  26488. namespace hadoop {
  26489. enum RecFormat { kBinary, kXML, kCSV };
  26490. class InStream {
  26491. public:
  26492. virtual ssize_t read(void *buf, size_t n) = 0;
  26493. };
  26494. class OutStream {
  26495. public:
  26496. virtual ssize_t write(const void *buf, size_t n) = 0;
  26497. };
  26498. class IOError : public runtime_error {
  26499. public:
  26500. explicit IOError(const std::string& msg);
  26501. };
  26502. class IArchive;
  26503. class OArchive;
  26504. class RecordReader {
  26505. public:
  26506. RecordReader(InStream& in, RecFormat fmt);
  26507. virtual ~RecordReader(void);
  26508. virtual void read(Record& rec);
  26509. };
  26510. class RecordWriter {
  26511. public:
  26512. RecordWriter(OutStream& out, RecFormat fmt);
  26513. virtual ~RecordWriter(void);
  26514. virtual void write(Record& rec);
  26515. };
  26516. class Record {
  26517. public:
  26518. virtual std::string type(void) const = 0;
  26519. virtual std::string signature(void) const = 0;
  26520. protected:
  26521. virtual bool validate(void) const = 0;
  26522. virtual void
  26523. serialize(OArchive& oa, const std::string& tag) const = 0;
  26524. virtual void
  26525. deserialize(IArchive& ia, const std::string& tag) = 0;
  26526. };
  26527. }
  26528. </code></pre>
  26529. <ul>
  26530. <li> RecFormat: An enumeration of the serialization encodings supported
  26531. by this implementation of Hadoop.
  26532. <li> InStream: A simple abstraction for an input stream. This has a
  26533. single public read method that reads n bytes from the stream into
  26534. the buffer buf. Has the same semantics as a blocking read system
  26535. call. Returns the number of bytes read or -1 if an error occurs.
  26536. <li> OutStream: A simple abstraction for an output stream. This has a
  26537. single write method that writes n bytes to the stream from the
  26538. buffer buf. Has the same semantics as a blocking write system
  26539. call. Returns the number of bytes written or -1 if an error occurs.
  26540. <li> RecordReader: A RecordReader reads records one at a time from
  26541. an underlying stream in a specified record format. The reader is instantiated
  26542. with a stream and a serialization format. It has a read method that
  26543. takes an instance of a record and deserializes the record from the stream.
  26544. <li> RecordWriter: A RecordWriter writes records one at a
  26545. time to an underlying stream in a specified record format. The writer is
  26546. instantiated with a stream and a serialization format. It has a
  26547. write method that takes an instance of a record and serializes the
  26548. record to the stream.
  26549. <li> Record: The base class for all generated record types. This has two
  26550. public methods type and signature that return the typename and the
  26551. type signature of the record.
  26552. </ul>
  26553. Two files are generated for each record file (note: not for each record). If a
  26554. record file is named "name.jr", the generated files are
  26555. "name.jr.cc" and "name.jr.hh" containing serialization
  26556. implementations and record type declarations respectively.
  26557. For each record in the DDL file, the generated header file will contain a
  26558. class definition corresponding to the record type, method definitions for the
  26559. generated type will be present in the '.cc' file. The generated class will
  26560. inherit from the abstract class hadoop::Record. The DDL files
  26561. module declaration determines the namespace the record belongs to.
  26562. Each '.' delimited token in the module declaration results in the
  26563. creation of a namespace. For instance, the declaration module docs.links
  26564. results in the creation of a docs namespace and a nested
  26565. docs::links namespace. In the preceding examples, the Link class
  26566. is placed in the links namespace. The header file corresponding to
  26567. the links.jr file will contain:
  26568. <pre><code>
  26569. namespace links {
  26570. class Link : public hadoop::Record {
  26571. // ....
  26572. };
  26573. };
  26574. </code></pre>
  26575. Each field within the record will cause the generation of a private member
  26576. declaration of the appropriate type in the class declaration, and one or more
  26577. acccessor methods. The generated class will implement the serialize and
  26578. deserialize methods defined in hadoop::Record+. It will also
  26579. implement the inspection methods type and signature from
  26580. hadoop::Record. A default constructor and virtual destructor will also
  26581. be generated. Serialization code will read/write records into streams that
  26582. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  26583. For each member of a record an accessor method is generated that returns
  26584. either the member or a reference to the member. For members that are returned
  26585. by value, a setter method is also generated. This is true for primitive
  26586. data members of the types byte, int, long, boolean, float and
  26587. double. For example, for a int field called MyField the folowing
  26588. code is generated.
  26589. <pre><code>
  26590. ...
  26591. private:
  26592. int32_t mMyField;
  26593. ...
  26594. public:
  26595. int32_t getMyField(void) const {
  26596. return mMyField;
  26597. };
  26598. void setMyField(int32_t m) {
  26599. mMyField = m;
  26600. };
  26601. ...
  26602. </code></pre>
  26603. For a ustring or buffer or composite field. The generated code
  26604. only contains accessors that return a reference to the field. A const
  26605. and a non-const accessor are generated. For example:
  26606. <pre><code>
  26607. ...
  26608. private:
  26609. std::string mMyBuf;
  26610. ...
  26611. public:
  26612. std::string& getMyBuf() {
  26613. return mMyBuf;
  26614. };
  26615. const std::string& getMyBuf() const {
  26616. return mMyBuf;
  26617. };
  26618. ...
  26619. </code></pre>
  26620. <h4>Examples</h4>
  26621. Suppose the inclrec.jr file contains:
  26622. <pre><code>
  26623. module inclrec {
  26624. class RI {
  26625. int I32;
  26626. double D;
  26627. ustring S;
  26628. };
  26629. }
  26630. </code></pre>
  26631. and the testrec.jr file contains:
  26632. <pre><code>
  26633. include "inclrec.jr"
  26634. module testrec {
  26635. class R {
  26636. vector<float> VF;
  26637. RI Rec;
  26638. buffer Buf;
  26639. };
  26640. }
  26641. </code></pre>
  26642. Then the invocation of rcc such as:
  26643. <pre><code>
  26644. $ rcc -l c++ inclrec.jr testrec.jr
  26645. </code></pre>
  26646. will result in generation of four files:
  26647. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  26648. The inclrec.jr.hh will contain:
  26649. <pre><code>
  26650. #ifndef _INCLREC_JR_HH_
  26651. #define _INCLREC_JR_HH_
  26652. #include "recordio.hh"
  26653. namespace inclrec {
  26654. class RI : public hadoop::Record {
  26655. private:
  26656. int32_t I32;
  26657. double D;
  26658. std::string S;
  26659. public:
  26660. RI(void);
  26661. virtual ~RI(void);
  26662. virtual bool operator==(const RI& peer) const;
  26663. virtual bool operator<(const RI& peer) const;
  26664. virtual int32_t getI32(void) const { return I32; }
  26665. virtual void setI32(int32_t v) { I32 = v; }
  26666. virtual double getD(void) const { return D; }
  26667. virtual void setD(double v) { D = v; }
  26668. virtual std::string& getS(void) const { return S; }
  26669. virtual const std::string& getS(void) const { return S; }
  26670. virtual std::string type(void) const;
  26671. virtual std::string signature(void) const;
  26672. protected:
  26673. virtual void serialize(hadoop::OArchive& a) const;
  26674. virtual void deserialize(hadoop::IArchive& a);
  26675. };
  26676. } // end namespace inclrec
  26677. #endif /* _INCLREC_JR_HH_ */
  26678. </code></pre>
  26679. The testrec.jr.hh file will contain:
  26680. <pre><code>
  26681. #ifndef _TESTREC_JR_HH_
  26682. #define _TESTREC_JR_HH_
  26683. #include "inclrec.jr.hh"
  26684. namespace testrec {
  26685. class R : public hadoop::Record {
  26686. private:
  26687. std::vector<float> VF;
  26688. inclrec::RI Rec;
  26689. std::string Buf;
  26690. public:
  26691. R(void);
  26692. virtual ~R(void);
  26693. virtual bool operator==(const R& peer) const;
  26694. virtual bool operator<(const R& peer) const;
  26695. virtual std::vector<float>& getVF(void) const;
  26696. virtual const std::vector<float>& getVF(void) const;
  26697. virtual std::string& getBuf(void) const ;
  26698. virtual const std::string& getBuf(void) const;
  26699. virtual inclrec::RI& getRec(void) const;
  26700. virtual const inclrec::RI& getRec(void) const;
  26701. virtual bool serialize(hadoop::OutArchive& a) const;
  26702. virtual bool deserialize(hadoop::InArchive& a);
  26703. virtual std::string type(void) const;
  26704. virtual std::string signature(void) const;
  26705. };
  26706. }; // end namespace testrec
  26707. #endif /* _TESTREC_JR_HH_ */
  26708. </code></pre>
  26709. <h3>Java</h3>
  26710. Code generation for Java is similar to that for C++. A Java class is generated
  26711. for each record type with private members corresponding to the fields. Getters
  26712. and setters for fields are also generated. Some differences arise in the
  26713. way comparison is expressed and in the mapping of modules to packages and
  26714. classes to files. For equality testing, an equals method is generated
  26715. for each record type. As per Java requirements a hashCode method is also
  26716. generated. For comparison a compareTo method is generated for each
  26717. record type. This has the semantics as defined by the Java Comparable
  26718. interface, that is, the method returns a negative integer, zero, or a positive
  26719. integer as the invoked object is less than, equal to, or greater than the
  26720. comparison parameter.
  26721. A .java file is generated per record type as opposed to per DDL
  26722. file as in C++. The module declaration translates to a Java
  26723. package declaration. The module name maps to an identical Java package
  26724. name. In addition to this mapping, the DDL compiler creates the appropriate
  26725. directory hierarchy for the package and places the generated .java
  26726. files in the correct directories.
  26727. <h2>Mapping Summary</h2>
  26728. <pre><code>
  26729. DDL Type C++ Type Java Type
  26730. boolean bool boolean
  26731. byte int8_t byte
  26732. int int32_t int
  26733. long int64_t long
  26734. float float float
  26735. double double double
  26736. ustring std::string java.lang.String
  26737. buffer std::string org.apache.hadoop.record.Buffer
  26738. class type class type class type
  26739. vector<type> std::vector<type> java.util.ArrayList<type>
  26740. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  26741. </code></pre>
  26742. <h2>Data encodings</h2>
  26743. This section describes the format of the data encodings supported by Hadoop.
  26744. Currently, three data encodings are supported, namely binary, CSV and XML.
  26745. <h3>Binary Serialization Format</h3>
  26746. The binary data encoding format is fairly dense. Serialization of composite
  26747. types is simply defined as a concatenation of serializations of the constituent
  26748. elements (lengths are included in vectors and maps).
  26749. Composite types are serialized as follows:
  26750. <ul>
  26751. <li> class: Sequence of serialized members.
  26752. <li> vector: The number of elements serialized as an int. Followed by a
  26753. sequence of serialized elements.
  26754. <li> map: The number of key value pairs serialized as an int. Followed
  26755. by a sequence of serialized (key,value) pairs.
  26756. </ul>
  26757. Serialization of primitives is more interesting, with a zero compression
  26758. optimization for integral types and normalization to UTF-8 for strings.
  26759. Primitive types are serialized as follows:
  26760. <ul>
  26761. <li> byte: Represented by 1 byte, as is.
  26762. <li> boolean: Represented by 1-byte (0 or 1)
  26763. <li> int/long: Integers and longs are serialized zero compressed.
  26764. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  26765. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  26766. the number of trailing bytes, N, as the negative number (-120-N). For example,
  26767. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  26768. This doesn't help much for 4-byte integers but does a reasonably good job with
  26769. longs without bit twiddling.
  26770. <li> float/double: Serialized in IEEE 754 single and double precision
  26771. format in network byte order. This is the format used by Java.
  26772. <li> ustring: Serialized as 4-byte zero compressed length followed by
  26773. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  26774. language representation.
  26775. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  26776. raw bytes in the buffer.
  26777. </ul>
  26778. <h3>CSV Serialization Format</h3>
  26779. The CSV serialization format has a lot more structure than the "standard"
  26780. Excel CSV format, but we believe the additional structure is useful because
  26781. <ul>
  26782. <li> it makes parsing a lot easier without detracting too much from legibility
  26783. <li> the delimiters around composites make it obvious when one is reading a
  26784. sequence of Hadoop records
  26785. </ul>
  26786. Serialization formats for the various types are detailed in the grammar that
  26787. follows. The notable feature of the formats is the use of delimiters for
  26788. indicating the certain field types.
  26789. <ul>
  26790. <li> A string field begins with a single quote (').
  26791. <li> A buffer field begins with a sharp (#).
  26792. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  26793. ends with '}'.
  26794. </ul>
  26795. The CSV format can be described by the following grammar:
  26796. <pre><code>
  26797. record = primitive / struct / vector / map
  26798. primitive = boolean / int / long / float / double / ustring / buffer
  26799. boolean = "T" / "F"
  26800. int = ["-"] 1*DIGIT
  26801. long = ";" ["-"] 1*DIGIT
  26802. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  26803. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  26804. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  26805. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  26806. struct = "s{" record *("," record) "}"
  26807. vector = "v{" [record *("," record)] "}"
  26808. map = "m{" [*(record "," record)] "}"
  26809. </code></pre>
  26810. <h3>XML Serialization Format</h3>
  26811. The XML serialization format is the same used by Apache XML-RPC
  26812. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  26813. XML-RPC format and adds some additional data types. All record I/O types are
  26814. not directly expressible in this format, and access to a DDL is required in
  26815. order to convert these to valid types. All types primitive or composite are
  26816. represented by &lt;value&gt; elements. The particular XML-RPC type is
  26817. indicated by a nested element in the &lt;value&gt; element. The encoding for
  26818. records is always UTF-8. Primitive types are serialized as follows:
  26819. <ul>
  26820. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  26821. integers represented in US-ASCII
  26822. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  26823. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  26824. signed integers represented in US-ASCII.
  26825. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  26826. represented in US-ASCII.
  26827. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  26828. floating point numbers represented in US-ASCII.
  26829. <li> double: XML tag &lt;double&gt;. Values: Double precision
  26830. floating point numbers represented in US-ASCII.
  26831. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  26832. represented as UTF-8. XML does not permit all Unicode characters in literal
  26833. data. In particular, NULLs and control chars are not allowed. Additionally,
  26834. XML processors are required to replace carriage returns with line feeds and to
  26835. replace CRLF sequences with line feeds. Programming languages that we work
  26836. with do not impose these restrictions on string types. To work around these
  26837. restrictions, disallowed characters and CRs are percent escaped in strings.
  26838. The '%' character is also percent escaped.
  26839. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  26840. data. Represented as hexBinary, each byte is replaced by its 2-byte
  26841. hexadecimal representation.
  26842. </ul>
  26843. Composite types are serialized as follows:
  26844. <ul>
  26845. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  26846. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  26847. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  26848. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  26849. by a &lt;value&gt; element.
  26850. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  26851. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  26852. &lt;value&gt; elements each of which represents an element of the vector.
  26853. <li> map: XML tag &lt;array&gt;. Same as vector.
  26854. </ul>
  26855. For example:
  26856. <pre><code>
  26857. class {
  26858. int MY_INT; // value 5
  26859. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  26860. buffer MY_BUF; // value '\00\n\tabc%'
  26861. }
  26862. </code></pre>
  26863. is serialized as
  26864. <pre><code class="XML">
  26865. &lt;value&gt;
  26866. &lt;struct&gt;
  26867. &lt;member&gt;
  26868. &lt;name&gt;MY_INT&lt;/name&gt;
  26869. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  26870. &lt;/member&gt;
  26871. &lt;member&gt;
  26872. &lt;name&gt;MY_VEC&lt;/name&gt;
  26873. &lt;value&gt;
  26874. &lt;array&gt;
  26875. &lt;data&gt;
  26876. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  26877. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  26878. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  26879. &lt;/data&gt;
  26880. &lt;/array&gt;
  26881. &lt;/value&gt;
  26882. &lt;/member&gt;
  26883. &lt;member&gt;
  26884. &lt;name&gt;MY_BUF&lt;/name&gt;
  26885. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  26886. &lt;/member&gt;
  26887. &lt;/struct&gt;
  26888. &lt;/value&gt;
  26889. </code></pre>]]>
  26890. </doc>
  26891. </package>
  26892. <package name="org.apache.hadoop.record.compiler">
  26893. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  26894. <class name="CodeBuffer" extends="java.lang.Object"
  26895. abstract="false"
  26896. static="false" final="false" visibility="public"
  26897. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26898. <method name="toString" return="java.lang.String"
  26899. abstract="false" native="false" synchronized="false"
  26900. static="false" final="false" visibility="public"
  26901. deprecated="not deprecated">
  26902. </method>
  26903. <doc>
  26904. <![CDATA[A wrapper around StringBuffer that automatically does indentation
  26905. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26906. </doc>
  26907. </class>
  26908. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  26909. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  26910. <class name="Consts" extends="java.lang.Object"
  26911. abstract="false"
  26912. static="false" final="false" visibility="public"
  26913. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26914. <field name="RIO_PREFIX" type="java.lang.String"
  26915. transient="false" volatile="false"
  26916. static="true" final="true" visibility="public"
  26917. deprecated="not deprecated">
  26918. </field>
  26919. <field name="RTI_VAR" type="java.lang.String"
  26920. transient="false" volatile="false"
  26921. static="true" final="true" visibility="public"
  26922. deprecated="not deprecated">
  26923. </field>
  26924. <field name="RTI_FILTER" type="java.lang.String"
  26925. transient="false" volatile="false"
  26926. static="true" final="true" visibility="public"
  26927. deprecated="not deprecated">
  26928. </field>
  26929. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  26930. transient="false" volatile="false"
  26931. static="true" final="true" visibility="public"
  26932. deprecated="not deprecated">
  26933. </field>
  26934. <field name="RECORD_OUTPUT" type="java.lang.String"
  26935. transient="false" volatile="false"
  26936. static="true" final="true" visibility="public"
  26937. deprecated="not deprecated">
  26938. </field>
  26939. <field name="RECORD_INPUT" type="java.lang.String"
  26940. transient="false" volatile="false"
  26941. static="true" final="true" visibility="public"
  26942. deprecated="not deprecated">
  26943. </field>
  26944. <field name="TAG" type="java.lang.String"
  26945. transient="false" volatile="false"
  26946. static="true" final="true" visibility="public"
  26947. deprecated="not deprecated">
  26948. </field>
  26949. <doc>
  26950. <![CDATA[const definitions for Record I/O compiler
  26951. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26952. </doc>
  26953. </class>
  26954. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  26955. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  26956. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  26957. abstract="false"
  26958. static="false" final="false" visibility="public"
  26959. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26960. <constructor name="JBoolean"
  26961. static="false" final="false" visibility="public"
  26962. deprecated="not deprecated">
  26963. <doc>
  26964. <![CDATA[Creates a new instance of JBoolean]]>
  26965. </doc>
  26966. </constructor>
  26967. <doc>
  26968. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26969. </doc>
  26970. </class>
  26971. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  26972. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  26973. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  26974. abstract="false"
  26975. static="false" final="false" visibility="public"
  26976. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26977. <constructor name="JBuffer"
  26978. static="false" final="false" visibility="public"
  26979. deprecated="not deprecated">
  26980. <doc>
  26981. <![CDATA[Creates a new instance of JBuffer]]>
  26982. </doc>
  26983. </constructor>
  26984. <doc>
  26985. <![CDATA[Code generator for "buffer" type.
  26986. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  26987. </doc>
  26988. </class>
  26989. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  26990. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  26991. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  26992. abstract="false"
  26993. static="false" final="false" visibility="public"
  26994. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  26995. <constructor name="JByte"
  26996. static="false" final="false" visibility="public"
  26997. deprecated="not deprecated">
  26998. </constructor>
  26999. <doc>
  27000. <![CDATA[Code generator for "byte" type.
  27001. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27002. </doc>
  27003. </class>
  27004. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  27005. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  27006. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  27007. abstract="false"
  27008. static="false" final="false" visibility="public"
  27009. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27010. <constructor name="JDouble"
  27011. static="false" final="false" visibility="public"
  27012. deprecated="not deprecated">
  27013. <doc>
  27014. <![CDATA[Creates a new instance of JDouble]]>
  27015. </doc>
  27016. </constructor>
  27017. <doc>
  27018. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27019. </doc>
  27020. </class>
  27021. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  27022. <!-- start class org.apache.hadoop.record.compiler.JField -->
  27023. <class name="JField" extends="java.lang.Object"
  27024. abstract="false"
  27025. static="false" final="false" visibility="public"
  27026. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27027. <constructor name="JField" type="java.lang.String, T"
  27028. static="false" final="false" visibility="public"
  27029. deprecated="not deprecated">
  27030. <doc>
  27031. <![CDATA[Creates a new instance of JField]]>
  27032. </doc>
  27033. </constructor>
  27034. <doc>
  27035. <![CDATA[A thin wrappper around record field.
  27036. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27037. </doc>
  27038. </class>
  27039. <!-- end class org.apache.hadoop.record.compiler.JField -->
  27040. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  27041. <class name="JFile" extends="java.lang.Object"
  27042. abstract="false"
  27043. static="false" final="false" visibility="public"
  27044. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27045. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  27046. static="false" final="false" visibility="public"
  27047. deprecated="not deprecated">
  27048. <doc>
  27049. <![CDATA[Creates a new instance of JFile
  27050. @param name possibly full pathname to the file
  27051. @param inclFiles included files (as JFile)
  27052. @param recList List of records defined within this file]]>
  27053. </doc>
  27054. </constructor>
  27055. <method name="genCode" return="int"
  27056. abstract="false" native="false" synchronized="false"
  27057. static="false" final="false" visibility="public"
  27058. deprecated="not deprecated">
  27059. <param name="language" type="java.lang.String"/>
  27060. <param name="destDir" type="java.lang.String"/>
  27061. <param name="options" type="java.util.ArrayList"/>
  27062. <exception name="IOException" type="java.io.IOException"/>
  27063. <doc>
  27064. <![CDATA[Generate record code in given language. Language should be all
  27065. lowercase.]]>
  27066. </doc>
  27067. </method>
  27068. <doc>
  27069. <![CDATA[Container for the Hadoop Record DDL.
  27070. The main components of the file are filename, list of included files,
  27071. and records defined in that file.
  27072. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27073. </doc>
  27074. </class>
  27075. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  27076. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  27077. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  27078. abstract="false"
  27079. static="false" final="false" visibility="public"
  27080. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27081. <constructor name="JFloat"
  27082. static="false" final="false" visibility="public"
  27083. deprecated="not deprecated">
  27084. <doc>
  27085. <![CDATA[Creates a new instance of JFloat]]>
  27086. </doc>
  27087. </constructor>
  27088. <doc>
  27089. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27090. </doc>
  27091. </class>
  27092. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  27093. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  27094. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  27095. abstract="false"
  27096. static="false" final="false" visibility="public"
  27097. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27098. <constructor name="JInt"
  27099. static="false" final="false" visibility="public"
  27100. deprecated="not deprecated">
  27101. <doc>
  27102. <![CDATA[Creates a new instance of JInt]]>
  27103. </doc>
  27104. </constructor>
  27105. <doc>
  27106. <![CDATA[Code generator for "int" type
  27107. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27108. </doc>
  27109. </class>
  27110. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  27111. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  27112. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  27113. abstract="false"
  27114. static="false" final="false" visibility="public"
  27115. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27116. <constructor name="JLong"
  27117. static="false" final="false" visibility="public"
  27118. deprecated="not deprecated">
  27119. <doc>
  27120. <![CDATA[Creates a new instance of JLong]]>
  27121. </doc>
  27122. </constructor>
  27123. <doc>
  27124. <![CDATA[Code generator for "long" type
  27125. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27126. </doc>
  27127. </class>
  27128. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  27129. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  27130. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  27131. abstract="false"
  27132. static="false" final="false" visibility="public"
  27133. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27134. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. <doc>
  27138. <![CDATA[Creates a new instance of JMap]]>
  27139. </doc>
  27140. </constructor>
  27141. <doc>
  27142. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27143. </doc>
  27144. </class>
  27145. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  27146. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  27147. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  27148. abstract="false"
  27149. static="false" final="false" visibility="public"
  27150. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27151. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  27152. static="false" final="false" visibility="public"
  27153. deprecated="not deprecated">
  27154. <doc>
  27155. <![CDATA[Creates a new instance of JRecord]]>
  27156. </doc>
  27157. </constructor>
  27158. <doc>
  27159. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27160. </doc>
  27161. </class>
  27162. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  27163. <!-- start class org.apache.hadoop.record.compiler.JString -->
  27164. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  27165. abstract="false"
  27166. static="false" final="false" visibility="public"
  27167. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27168. <constructor name="JString"
  27169. static="false" final="false" visibility="public"
  27170. deprecated="not deprecated">
  27171. <doc>
  27172. <![CDATA[Creates a new instance of JString]]>
  27173. </doc>
  27174. </constructor>
  27175. <doc>
  27176. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27177. </doc>
  27178. </class>
  27179. <!-- end class org.apache.hadoop.record.compiler.JString -->
  27180. <!-- start class org.apache.hadoop.record.compiler.JType -->
  27181. <class name="JType" extends="java.lang.Object"
  27182. abstract="true"
  27183. static="false" final="false" visibility="public"
  27184. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27185. <constructor name="JType"
  27186. static="false" final="false" visibility="public"
  27187. deprecated="not deprecated">
  27188. </constructor>
  27189. <doc>
  27190. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.
  27191. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27192. </doc>
  27193. </class>
  27194. <!-- end class org.apache.hadoop.record.compiler.JType -->
  27195. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  27196. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  27197. abstract="false"
  27198. static="false" final="false" visibility="public"
  27199. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27200. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  27201. static="false" final="false" visibility="public"
  27202. deprecated="not deprecated">
  27203. <doc>
  27204. <![CDATA[Creates a new instance of JVector]]>
  27205. </doc>
  27206. </constructor>
  27207. <doc>
  27208. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27209. </doc>
  27210. </class>
  27211. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  27212. <doc>
  27213. <![CDATA[<p>
  27214. (DEPRECATED) This package contains classes needed for code generation
  27215. from the hadoop record compiler. CppGenerator and JavaGenerator
  27216. are the main entry points from the parser. There are classes
  27217. corrsponding to every primitive type and compound type
  27218. included in Hadoop record I/O syntax.
  27219. </p>
  27220. <p>
  27221. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  27222. </p>]]>
  27223. </doc>
  27224. </package>
  27225. <package name="org.apache.hadoop.record.compiler.ant">
  27226. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  27227. <class name="RccTask" extends="org.apache.tools.ant.Task"
  27228. abstract="false"
  27229. static="false" final="false" visibility="public"
  27230. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27231. <constructor name="RccTask"
  27232. static="false" final="false" visibility="public"
  27233. deprecated="not deprecated">
  27234. <doc>
  27235. <![CDATA[Creates a new instance of RccTask]]>
  27236. </doc>
  27237. </constructor>
  27238. <method name="setLanguage"
  27239. abstract="false" native="false" synchronized="false"
  27240. static="false" final="false" visibility="public"
  27241. deprecated="not deprecated">
  27242. <param name="language" type="java.lang.String"/>
  27243. <doc>
  27244. <![CDATA[Sets the output language option
  27245. @param language "java"/"c++"]]>
  27246. </doc>
  27247. </method>
  27248. <method name="setFile"
  27249. abstract="false" native="false" synchronized="false"
  27250. static="false" final="false" visibility="public"
  27251. deprecated="not deprecated">
  27252. <param name="file" type="java.io.File"/>
  27253. <doc>
  27254. <![CDATA[Sets the record definition file attribute
  27255. @param file record definition file]]>
  27256. </doc>
  27257. </method>
  27258. <method name="setFailonerror"
  27259. abstract="false" native="false" synchronized="false"
  27260. static="false" final="false" visibility="public"
  27261. deprecated="not deprecated">
  27262. <param name="flag" type="boolean"/>
  27263. <doc>
  27264. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  27265. @param flag true will throw build exception in case of failure (default)]]>
  27266. </doc>
  27267. </method>
  27268. <method name="setDestdir"
  27269. abstract="false" native="false" synchronized="false"
  27270. static="false" final="false" visibility="public"
  27271. deprecated="not deprecated">
  27272. <param name="dir" type="java.io.File"/>
  27273. <doc>
  27274. <![CDATA[Sets directory where output files will be generated
  27275. @param dir output directory]]>
  27276. </doc>
  27277. </method>
  27278. <method name="addFileset"
  27279. abstract="false" native="false" synchronized="false"
  27280. static="false" final="false" visibility="public"
  27281. deprecated="not deprecated">
  27282. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  27283. <doc>
  27284. <![CDATA[Adds a fileset that can consist of one or more files
  27285. @param set Set of record definition files]]>
  27286. </doc>
  27287. </method>
  27288. <method name="execute"
  27289. abstract="false" native="false" synchronized="false"
  27290. static="false" final="false" visibility="public"
  27291. deprecated="not deprecated">
  27292. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  27293. <doc>
  27294. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  27295. </doc>
  27296. </method>
  27297. <doc>
  27298. <![CDATA[Hadoop record compiler ant Task
  27299. <p> This task takes the given record definition files and compiles them into
  27300. java or c++
  27301. files. It is then up to the user to compile the generated files.
  27302. <p> The task requires the <code>file</code> or the nested fileset element to be
  27303. specified. Optional attributes are <code>language</code> (set the output
  27304. language, default is "java"),
  27305. <code>destdir</code> (name of the destination directory for generated java/c++
  27306. code, default is ".") and <code>failonerror</code> (specifies error handling
  27307. behavior. default is true).
  27308. <p><h4>Usage</h4>
  27309. <pre>
  27310. &lt;recordcc
  27311. destdir="${basedir}/gensrc"
  27312. language="java"&gt;
  27313. &lt;fileset include="**\/*.jr" /&gt;
  27314. &lt;/recordcc&gt;
  27315. </pre>
  27316. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27317. </doc>
  27318. </class>
  27319. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  27320. </package>
  27321. <package name="org.apache.hadoop.record.compiler.generated">
  27322. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  27323. <class name="ParseException" extends="java.lang.Exception"
  27324. abstract="false"
  27325. static="false" final="false" visibility="public"
  27326. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27327. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  27328. static="false" final="false" visibility="public"
  27329. deprecated="not deprecated">
  27330. <doc>
  27331. <![CDATA[This constructor is used by the method "generateParseException"
  27332. in the generated parser. Calling this constructor generates
  27333. a new object of this type with the fields "currentToken",
  27334. "expectedTokenSequences", and "tokenImage" set. The boolean
  27335. flag "specialConstructor" is also set to true to indicate that
  27336. this constructor was used to create this object.
  27337. This constructor calls its super class with the empty string
  27338. to force the "toString" method of parent class "Throwable" to
  27339. print the error message in the form:
  27340. ParseException: <result of getMessage>]]>
  27341. </doc>
  27342. </constructor>
  27343. <constructor name="ParseException"
  27344. static="false" final="false" visibility="public"
  27345. deprecated="not deprecated">
  27346. <doc>
  27347. <![CDATA[The following constructors are for use by you for whatever
  27348. purpose you can think of. Constructing the exception in this
  27349. manner makes the exception behave in the normal way - i.e., as
  27350. documented in the class "Throwable". The fields "errorToken",
  27351. "expectedTokenSequences", and "tokenImage" do not contain
  27352. relevant information. The JavaCC generated code does not use
  27353. these constructors.]]>
  27354. </doc>
  27355. </constructor>
  27356. <constructor name="ParseException" type="java.lang.String"
  27357. static="false" final="false" visibility="public"
  27358. deprecated="not deprecated">
  27359. </constructor>
  27360. <method name="getMessage" return="java.lang.String"
  27361. abstract="false" native="false" synchronized="false"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. <doc>
  27365. <![CDATA[This method has the standard behavior when this object has been
  27366. created using the standard constructors. Otherwise, it uses
  27367. "currentToken" and "expectedTokenSequences" to generate a parse
  27368. error message and returns it. If this object has been created
  27369. due to a parse error, and you do not catch it (it gets thrown
  27370. from the parser), then this method is called during the printing
  27371. of the final stack trace, and hence the correct error message
  27372. gets displayed.]]>
  27373. </doc>
  27374. </method>
  27375. <method name="add_escapes" return="java.lang.String"
  27376. abstract="false" native="false" synchronized="false"
  27377. static="false" final="false" visibility="protected"
  27378. deprecated="not deprecated">
  27379. <param name="str" type="java.lang.String"/>
  27380. <doc>
  27381. <![CDATA[Used to convert raw characters to their escaped version
  27382. when these raw version cannot be used as part of an ASCII
  27383. string literal.]]>
  27384. </doc>
  27385. </method>
  27386. <field name="specialConstructor" type="boolean"
  27387. transient="false" volatile="false"
  27388. static="false" final="false" visibility="protected"
  27389. deprecated="not deprecated">
  27390. <doc>
  27391. <![CDATA[This variable determines which constructor was used to create
  27392. this object and thereby affects the semantics of the
  27393. "getMessage" method (see below).]]>
  27394. </doc>
  27395. </field>
  27396. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  27397. transient="false" volatile="false"
  27398. static="false" final="false" visibility="public"
  27399. deprecated="not deprecated">
  27400. <doc>
  27401. <![CDATA[This is the last token that has been consumed successfully. If
  27402. this object has been created due to a parse error, the token
  27403. followng this token will (therefore) be the first error token.]]>
  27404. </doc>
  27405. </field>
  27406. <field name="expectedTokenSequences" type="int[][]"
  27407. transient="false" volatile="false"
  27408. static="false" final="false" visibility="public"
  27409. deprecated="not deprecated">
  27410. <doc>
  27411. <![CDATA[Each entry in this array is an array of integers. Each array
  27412. of integers represents a sequence of tokens (by their ordinal
  27413. values) that is expected at this point of the parse.]]>
  27414. </doc>
  27415. </field>
  27416. <field name="tokenImage" type="java.lang.String[]"
  27417. transient="false" volatile="false"
  27418. static="false" final="false" visibility="public"
  27419. deprecated="not deprecated">
  27420. <doc>
  27421. <![CDATA[This is a reference to the "tokenImage" array of the generated
  27422. parser within which the parse error occurred. This array is
  27423. defined in the generated ...Constants interface.]]>
  27424. </doc>
  27425. </field>
  27426. <field name="eol" type="java.lang.String"
  27427. transient="false" volatile="false"
  27428. static="false" final="false" visibility="protected"
  27429. deprecated="not deprecated">
  27430. <doc>
  27431. <![CDATA[The end of line string for this machine.]]>
  27432. </doc>
  27433. </field>
  27434. <doc>
  27435. <![CDATA[This exception is thrown when parse errors are encountered.
  27436. You can explicitly create objects of this exception type by
  27437. calling the method generateParseException in the generated
  27438. parser.
  27439. You can modify this class to customize your error reporting
  27440. mechanisms so long as you retain the public fields.
  27441. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27442. </doc>
  27443. </class>
  27444. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  27445. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  27446. <class name="Rcc" extends="java.lang.Object"
  27447. abstract="false"
  27448. static="false" final="false" visibility="public"
  27449. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27450. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  27451. <constructor name="Rcc" type="java.io.InputStream"
  27452. static="false" final="false" visibility="public"
  27453. deprecated="not deprecated">
  27454. </constructor>
  27455. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  27456. static="false" final="false" visibility="public"
  27457. deprecated="not deprecated">
  27458. </constructor>
  27459. <constructor name="Rcc" type="java.io.Reader"
  27460. static="false" final="false" visibility="public"
  27461. deprecated="not deprecated">
  27462. </constructor>
  27463. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  27464. static="false" final="false" visibility="public"
  27465. deprecated="not deprecated">
  27466. </constructor>
  27467. <method name="main"
  27468. abstract="false" native="false" synchronized="false"
  27469. static="true" final="false" visibility="public"
  27470. deprecated="not deprecated">
  27471. <param name="args" type="java.lang.String[]"/>
  27472. </method>
  27473. <method name="usage"
  27474. abstract="false" native="false" synchronized="false"
  27475. static="true" final="false" visibility="public"
  27476. deprecated="not deprecated">
  27477. </method>
  27478. <method name="driver" return="int"
  27479. abstract="false" native="false" synchronized="false"
  27480. static="true" final="false" visibility="public"
  27481. deprecated="not deprecated">
  27482. <param name="args" type="java.lang.String[]"/>
  27483. </method>
  27484. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  27485. abstract="false" native="false" synchronized="false"
  27486. static="false" final="true" visibility="public"
  27487. deprecated="not deprecated">
  27488. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27489. </method>
  27490. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  27491. abstract="false" native="false" synchronized="false"
  27492. static="false" final="true" visibility="public"
  27493. deprecated="not deprecated">
  27494. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27495. </method>
  27496. <method name="Module" return="java.util.ArrayList"
  27497. abstract="false" native="false" synchronized="false"
  27498. static="false" final="true" visibility="public"
  27499. deprecated="not deprecated">
  27500. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27501. </method>
  27502. <method name="ModuleName" return="java.lang.String"
  27503. abstract="false" native="false" synchronized="false"
  27504. static="false" final="true" visibility="public"
  27505. deprecated="not deprecated">
  27506. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27507. </method>
  27508. <method name="RecordList" return="java.util.ArrayList"
  27509. abstract="false" native="false" synchronized="false"
  27510. static="false" final="true" visibility="public"
  27511. deprecated="not deprecated">
  27512. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27513. </method>
  27514. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  27515. abstract="false" native="false" synchronized="false"
  27516. static="false" final="true" visibility="public"
  27517. deprecated="not deprecated">
  27518. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27519. </method>
  27520. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  27521. abstract="false" native="false" synchronized="false"
  27522. static="false" final="true" visibility="public"
  27523. deprecated="not deprecated">
  27524. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27525. </method>
  27526. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  27527. abstract="false" native="false" synchronized="false"
  27528. static="false" final="true" visibility="public"
  27529. deprecated="not deprecated">
  27530. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27531. </method>
  27532. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  27533. abstract="false" native="false" synchronized="false"
  27534. static="false" final="true" visibility="public"
  27535. deprecated="not deprecated">
  27536. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27537. </method>
  27538. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  27539. abstract="false" native="false" synchronized="false"
  27540. static="false" final="true" visibility="public"
  27541. deprecated="not deprecated">
  27542. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  27543. </method>
  27544. <method name="ReInit"
  27545. abstract="false" native="false" synchronized="false"
  27546. static="false" final="false" visibility="public"
  27547. deprecated="not deprecated">
  27548. <param name="stream" type="java.io.InputStream"/>
  27549. </method>
  27550. <method name="ReInit"
  27551. abstract="false" native="false" synchronized="false"
  27552. static="false" final="false" visibility="public"
  27553. deprecated="not deprecated">
  27554. <param name="stream" type="java.io.InputStream"/>
  27555. <param name="encoding" type="java.lang.String"/>
  27556. </method>
  27557. <method name="ReInit"
  27558. abstract="false" native="false" synchronized="false"
  27559. static="false" final="false" visibility="public"
  27560. deprecated="not deprecated">
  27561. <param name="stream" type="java.io.Reader"/>
  27562. </method>
  27563. <method name="ReInit"
  27564. abstract="false" native="false" synchronized="false"
  27565. static="false" final="false" visibility="public"
  27566. deprecated="not deprecated">
  27567. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  27568. </method>
  27569. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  27570. abstract="false" native="false" synchronized="false"
  27571. static="false" final="true" visibility="public"
  27572. deprecated="not deprecated">
  27573. </method>
  27574. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  27575. abstract="false" native="false" synchronized="false"
  27576. static="false" final="true" visibility="public"
  27577. deprecated="not deprecated">
  27578. <param name="index" type="int"/>
  27579. </method>
  27580. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  27581. abstract="false" native="false" synchronized="false"
  27582. static="false" final="false" visibility="public"
  27583. deprecated="not deprecated">
  27584. </method>
  27585. <method name="enable_tracing"
  27586. abstract="false" native="false" synchronized="false"
  27587. static="false" final="true" visibility="public"
  27588. deprecated="not deprecated">
  27589. </method>
  27590. <method name="disable_tracing"
  27591. abstract="false" native="false" synchronized="false"
  27592. static="false" final="true" visibility="public"
  27593. deprecated="not deprecated">
  27594. </method>
  27595. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  27596. transient="false" volatile="false"
  27597. static="false" final="false" visibility="public"
  27598. deprecated="not deprecated">
  27599. </field>
  27600. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  27601. transient="false" volatile="false"
  27602. static="false" final="false" visibility="public"
  27603. deprecated="not deprecated">
  27604. </field>
  27605. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  27606. transient="false" volatile="false"
  27607. static="false" final="false" visibility="public"
  27608. deprecated="not deprecated">
  27609. </field>
  27610. <doc>
  27611. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27612. </doc>
  27613. </class>
  27614. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  27615. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  27616. <interface name="RccConstants" abstract="true"
  27617. static="false" final="false" visibility="public"
  27618. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27619. <field name="EOF" type="int"
  27620. transient="false" volatile="false"
  27621. static="true" final="true" visibility="public"
  27622. deprecated="not deprecated">
  27623. </field>
  27624. <field name="MODULE_TKN" type="int"
  27625. transient="false" volatile="false"
  27626. static="true" final="true" visibility="public"
  27627. deprecated="not deprecated">
  27628. </field>
  27629. <field name="RECORD_TKN" type="int"
  27630. transient="false" volatile="false"
  27631. static="true" final="true" visibility="public"
  27632. deprecated="not deprecated">
  27633. </field>
  27634. <field name="INCLUDE_TKN" type="int"
  27635. transient="false" volatile="false"
  27636. static="true" final="true" visibility="public"
  27637. deprecated="not deprecated">
  27638. </field>
  27639. <field name="BYTE_TKN" type="int"
  27640. transient="false" volatile="false"
  27641. static="true" final="true" visibility="public"
  27642. deprecated="not deprecated">
  27643. </field>
  27644. <field name="BOOLEAN_TKN" type="int"
  27645. transient="false" volatile="false"
  27646. static="true" final="true" visibility="public"
  27647. deprecated="not deprecated">
  27648. </field>
  27649. <field name="INT_TKN" type="int"
  27650. transient="false" volatile="false"
  27651. static="true" final="true" visibility="public"
  27652. deprecated="not deprecated">
  27653. </field>
  27654. <field name="LONG_TKN" type="int"
  27655. transient="false" volatile="false"
  27656. static="true" final="true" visibility="public"
  27657. deprecated="not deprecated">
  27658. </field>
  27659. <field name="FLOAT_TKN" type="int"
  27660. transient="false" volatile="false"
  27661. static="true" final="true" visibility="public"
  27662. deprecated="not deprecated">
  27663. </field>
  27664. <field name="DOUBLE_TKN" type="int"
  27665. transient="false" volatile="false"
  27666. static="true" final="true" visibility="public"
  27667. deprecated="not deprecated">
  27668. </field>
  27669. <field name="USTRING_TKN" type="int"
  27670. transient="false" volatile="false"
  27671. static="true" final="true" visibility="public"
  27672. deprecated="not deprecated">
  27673. </field>
  27674. <field name="BUFFER_TKN" type="int"
  27675. transient="false" volatile="false"
  27676. static="true" final="true" visibility="public"
  27677. deprecated="not deprecated">
  27678. </field>
  27679. <field name="VECTOR_TKN" type="int"
  27680. transient="false" volatile="false"
  27681. static="true" final="true" visibility="public"
  27682. deprecated="not deprecated">
  27683. </field>
  27684. <field name="MAP_TKN" type="int"
  27685. transient="false" volatile="false"
  27686. static="true" final="true" visibility="public"
  27687. deprecated="not deprecated">
  27688. </field>
  27689. <field name="LBRACE_TKN" type="int"
  27690. transient="false" volatile="false"
  27691. static="true" final="true" visibility="public"
  27692. deprecated="not deprecated">
  27693. </field>
  27694. <field name="RBRACE_TKN" type="int"
  27695. transient="false" volatile="false"
  27696. static="true" final="true" visibility="public"
  27697. deprecated="not deprecated">
  27698. </field>
  27699. <field name="LT_TKN" type="int"
  27700. transient="false" volatile="false"
  27701. static="true" final="true" visibility="public"
  27702. deprecated="not deprecated">
  27703. </field>
  27704. <field name="GT_TKN" type="int"
  27705. transient="false" volatile="false"
  27706. static="true" final="true" visibility="public"
  27707. deprecated="not deprecated">
  27708. </field>
  27709. <field name="SEMICOLON_TKN" type="int"
  27710. transient="false" volatile="false"
  27711. static="true" final="true" visibility="public"
  27712. deprecated="not deprecated">
  27713. </field>
  27714. <field name="COMMA_TKN" type="int"
  27715. transient="false" volatile="false"
  27716. static="true" final="true" visibility="public"
  27717. deprecated="not deprecated">
  27718. </field>
  27719. <field name="DOT_TKN" type="int"
  27720. transient="false" volatile="false"
  27721. static="true" final="true" visibility="public"
  27722. deprecated="not deprecated">
  27723. </field>
  27724. <field name="CSTRING_TKN" type="int"
  27725. transient="false" volatile="false"
  27726. static="true" final="true" visibility="public"
  27727. deprecated="not deprecated">
  27728. </field>
  27729. <field name="IDENT_TKN" type="int"
  27730. transient="false" volatile="false"
  27731. static="true" final="true" visibility="public"
  27732. deprecated="not deprecated">
  27733. </field>
  27734. <field name="DEFAULT" type="int"
  27735. transient="false" volatile="false"
  27736. static="true" final="true" visibility="public"
  27737. deprecated="not deprecated">
  27738. </field>
  27739. <field name="WithinOneLineComment" type="int"
  27740. transient="false" volatile="false"
  27741. static="true" final="true" visibility="public"
  27742. deprecated="not deprecated">
  27743. </field>
  27744. <field name="WithinMultiLineComment" type="int"
  27745. transient="false" volatile="false"
  27746. static="true" final="true" visibility="public"
  27747. deprecated="not deprecated">
  27748. </field>
  27749. <field name="tokenImage" type="java.lang.String[]"
  27750. transient="false" volatile="false"
  27751. static="true" final="true" visibility="public"
  27752. deprecated="not deprecated">
  27753. </field>
  27754. <doc>
  27755. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27756. </doc>
  27757. </interface>
  27758. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  27759. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  27760. <class name="RccTokenManager" extends="java.lang.Object"
  27761. abstract="false"
  27762. static="false" final="false" visibility="public"
  27763. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27764. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  27765. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  27766. static="false" final="false" visibility="public"
  27767. deprecated="not deprecated">
  27768. </constructor>
  27769. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  27770. static="false" final="false" visibility="public"
  27771. deprecated="not deprecated">
  27772. </constructor>
  27773. <method name="setDebugStream"
  27774. abstract="false" native="false" synchronized="false"
  27775. static="false" final="false" visibility="public"
  27776. deprecated="not deprecated">
  27777. <param name="ds" type="java.io.PrintStream"/>
  27778. </method>
  27779. <method name="ReInit"
  27780. abstract="false" native="false" synchronized="false"
  27781. static="false" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  27784. </method>
  27785. <method name="ReInit"
  27786. abstract="false" native="false" synchronized="false"
  27787. static="false" final="false" visibility="public"
  27788. deprecated="not deprecated">
  27789. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  27790. <param name="lexState" type="int"/>
  27791. </method>
  27792. <method name="SwitchTo"
  27793. abstract="false" native="false" synchronized="false"
  27794. static="false" final="false" visibility="public"
  27795. deprecated="not deprecated">
  27796. <param name="lexState" type="int"/>
  27797. </method>
  27798. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  27799. abstract="false" native="false" synchronized="false"
  27800. static="false" final="false" visibility="protected"
  27801. deprecated="not deprecated">
  27802. </method>
  27803. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  27804. abstract="false" native="false" synchronized="false"
  27805. static="false" final="false" visibility="public"
  27806. deprecated="not deprecated">
  27807. </method>
  27808. <field name="debugStream" type="java.io.PrintStream"
  27809. transient="false" volatile="false"
  27810. static="false" final="false" visibility="public"
  27811. deprecated="not deprecated">
  27812. </field>
  27813. <field name="jjstrLiteralImages" type="java.lang.String[]"
  27814. transient="false" volatile="false"
  27815. static="true" final="true" visibility="public"
  27816. deprecated="not deprecated">
  27817. </field>
  27818. <field name="lexStateNames" type="java.lang.String[]"
  27819. transient="false" volatile="false"
  27820. static="true" final="true" visibility="public"
  27821. deprecated="not deprecated">
  27822. </field>
  27823. <field name="jjnewLexState" type="int[]"
  27824. transient="false" volatile="false"
  27825. static="true" final="true" visibility="public"
  27826. deprecated="not deprecated">
  27827. </field>
  27828. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  27829. transient="false" volatile="false"
  27830. static="false" final="false" visibility="protected"
  27831. deprecated="not deprecated">
  27832. </field>
  27833. <field name="curChar" type="char"
  27834. transient="false" volatile="false"
  27835. static="false" final="false" visibility="protected"
  27836. deprecated="not deprecated">
  27837. </field>
  27838. <doc>
  27839. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  27840. </doc>
  27841. </class>
  27842. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  27843. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  27844. <class name="SimpleCharStream" extends="java.lang.Object"
  27845. abstract="false"
  27846. static="false" final="false" visibility="public"
  27847. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  27848. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  27849. static="false" final="false" visibility="public"
  27850. deprecated="not deprecated">
  27851. </constructor>
  27852. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  27853. static="false" final="false" visibility="public"
  27854. deprecated="not deprecated">
  27855. </constructor>
  27856. <constructor name="SimpleCharStream" type="java.io.Reader"
  27857. static="false" final="false" visibility="public"
  27858. deprecated="not deprecated">
  27859. </constructor>
  27860. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  27861. static="false" final="false" visibility="public"
  27862. deprecated="not deprecated">
  27863. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  27864. </constructor>
  27865. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  27866. static="false" final="false" visibility="public"
  27867. deprecated="not deprecated">
  27868. </constructor>
  27869. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  27870. static="false" final="false" visibility="public"
  27871. deprecated="not deprecated">
  27872. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  27873. </constructor>
  27874. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  27875. static="false" final="false" visibility="public"
  27876. deprecated="not deprecated">
  27877. </constructor>
  27878. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  27879. static="false" final="false" visibility="public"
  27880. deprecated="not deprecated">
  27881. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  27882. </constructor>
  27883. <constructor name="SimpleCharStream" type="java.io.InputStream"
  27884. static="false" final="false" visibility="public"
  27885. deprecated="not deprecated">
  27886. </constructor>
  27887. <method name="setTabSize"
  27888. abstract="false" native="false" synchronized="false"
  27889. static="false" final="false" visibility="protected"
  27890. deprecated="not deprecated">
  27891. <param name="i" type="int"/>
  27892. </method>
  27893. <method name="getTabSize" return="int"
  27894. abstract="false" native="false" synchronized="false"
  27895. static="false" final="false" visibility="protected"
  27896. deprecated="not deprecated">
  27897. <param name="i" type="int"/>
  27898. </method>
  27899. <method name="ExpandBuff"
  27900. abstract="false" native="false" synchronized="false"
  27901. static="false" final="false" visibility="protected"
  27902. deprecated="not deprecated">
  27903. <param name="wrapAround" type="boolean"/>
  27904. </method>
  27905. <method name="FillBuff"
  27906. abstract="false" native="false" synchronized="false"
  27907. static="false" final="false" visibility="protected"
  27908. deprecated="not deprecated">
  27909. <exception name="IOException" type="java.io.IOException"/>
  27910. </method>
  27911. <method name="BeginToken" return="char"
  27912. abstract="false" native="false" synchronized="false"
  27913. static="false" final="false" visibility="public"
  27914. deprecated="not deprecated">
  27915. <exception name="IOException" type="java.io.IOException"/>
  27916. </method>
  27917. <method name="UpdateLineColumn"
  27918. abstract="false" native="false" synchronized="false"
  27919. static="false" final="false" visibility="protected"
  27920. deprecated="not deprecated">
  27921. <param name="c" type="char"/>
  27922. </method>
  27923. <method name="readChar" return="char"
  27924. abstract="false" native="false" synchronized="false"
  27925. static="false" final="false" visibility="public"
  27926. deprecated="not deprecated">
  27927. <exception name="IOException" type="java.io.IOException"/>
  27928. </method>
  27929. <method name="getEndColumn" return="int"
  27930. abstract="false" native="false" synchronized="false"
  27931. static="false" final="false" visibility="public"
  27932. deprecated="not deprecated">
  27933. </method>
  27934. <method name="getEndLine" return="int"
  27935. abstract="false" native="false" synchronized="false"
  27936. static="false" final="false" visibility="public"
  27937. deprecated="not deprecated">
  27938. </method>
  27939. <method name="getBeginColumn" return="int"
  27940. abstract="false" native="false" synchronized="false"
  27941. static="false" final="false" visibility="public"
  27942. deprecated="not deprecated">
  27943. </method>
  27944. <method name="getBeginLine" return="int"
  27945. abstract="false" native="false" synchronized="false"
  27946. static="false" final="false" visibility="public"
  27947. deprecated="not deprecated">
  27948. </method>
  27949. <method name="backup"
  27950. abstract="false" native="false" synchronized="false"
  27951. static="false" final="false" visibility="public"
  27952. deprecated="not deprecated">
  27953. <param name="amount" type="int"/>
  27954. </method>
  27955. <method name="ReInit"
  27956. abstract="false" native="false" synchronized="false"
  27957. static="false" final="false" visibility="public"
  27958. deprecated="not deprecated">
  27959. <param name="dstream" type="java.io.Reader"/>
  27960. <param name="startline" type="int"/>
  27961. <param name="startcolumn" type="int"/>
  27962. <param name="buffersize" type="int"/>
  27963. </method>
  27964. <method name="ReInit"
  27965. abstract="false" native="false" synchronized="false"
  27966. static="false" final="false" visibility="public"
  27967. deprecated="not deprecated">
  27968. <param name="dstream" type="java.io.Reader"/>
  27969. <param name="startline" type="int"/>
  27970. <param name="startcolumn" type="int"/>
  27971. </method>
  27972. <method name="ReInit"
  27973. abstract="false" native="false" synchronized="false"
  27974. static="false" final="false" visibility="public"
  27975. deprecated="not deprecated">
  27976. <param name="dstream" type="java.io.Reader"/>
  27977. </method>
  27978. <method name="ReInit"
  27979. abstract="false" native="false" synchronized="false"
  27980. static="false" final="false" visibility="public"
  27981. deprecated="not deprecated">
  27982. <param name="dstream" type="java.io.InputStream"/>
  27983. <param name="encoding" type="java.lang.String"/>
  27984. <param name="startline" type="int"/>
  27985. <param name="startcolumn" type="int"/>
  27986. <param name="buffersize" type="int"/>
  27987. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  27988. </method>
  27989. <method name="ReInit"
  27990. abstract="false" native="false" synchronized="false"
  27991. static="false" final="false" visibility="public"
  27992. deprecated="not deprecated">
  27993. <param name="dstream" type="java.io.InputStream"/>
  27994. <param name="startline" type="int"/>
  27995. <param name="startcolumn" type="int"/>
  27996. <param name="buffersize" type="int"/>
  27997. </method>
  27998. <method name="ReInit"
  27999. abstract="false" native="false" synchronized="false"
  28000. static="false" final="false" visibility="public"
  28001. deprecated="not deprecated">
  28002. <param name="dstream" type="java.io.InputStream"/>
  28003. <param name="encoding" type="java.lang.String"/>
  28004. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  28005. </method>
  28006. <method name="ReInit"
  28007. abstract="false" native="false" synchronized="false"
  28008. static="false" final="false" visibility="public"
  28009. deprecated="not deprecated">
  28010. <param name="dstream" type="java.io.InputStream"/>
  28011. </method>
  28012. <method name="ReInit"
  28013. abstract="false" native="false" synchronized="false"
  28014. static="false" final="false" visibility="public"
  28015. deprecated="not deprecated">
  28016. <param name="dstream" type="java.io.InputStream"/>
  28017. <param name="encoding" type="java.lang.String"/>
  28018. <param name="startline" type="int"/>
  28019. <param name="startcolumn" type="int"/>
  28020. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  28021. </method>
  28022. <method name="ReInit"
  28023. abstract="false" native="false" synchronized="false"
  28024. static="false" final="false" visibility="public"
  28025. deprecated="not deprecated">
  28026. <param name="dstream" type="java.io.InputStream"/>
  28027. <param name="startline" type="int"/>
  28028. <param name="startcolumn" type="int"/>
  28029. </method>
  28030. <method name="GetImage" return="java.lang.String"
  28031. abstract="false" native="false" synchronized="false"
  28032. static="false" final="false" visibility="public"
  28033. deprecated="not deprecated">
  28034. </method>
  28035. <method name="GetSuffix" return="char[]"
  28036. abstract="false" native="false" synchronized="false"
  28037. static="false" final="false" visibility="public"
  28038. deprecated="not deprecated">
  28039. <param name="len" type="int"/>
  28040. </method>
  28041. <method name="Done"
  28042. abstract="false" native="false" synchronized="false"
  28043. static="false" final="false" visibility="public"
  28044. deprecated="not deprecated">
  28045. </method>
  28046. <method name="adjustBeginLineColumn"
  28047. abstract="false" native="false" synchronized="false"
  28048. static="false" final="false" visibility="public"
  28049. deprecated="not deprecated">
  28050. <param name="newLine" type="int"/>
  28051. <param name="newCol" type="int"/>
  28052. <doc>
  28053. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  28054. </doc>
  28055. </method>
  28056. <field name="staticFlag" type="boolean"
  28057. transient="false" volatile="false"
  28058. static="true" final="true" visibility="public"
  28059. deprecated="not deprecated">
  28060. </field>
  28061. <field name="bufpos" type="int"
  28062. transient="false" volatile="false"
  28063. static="false" final="false" visibility="public"
  28064. deprecated="not deprecated">
  28065. </field>
  28066. <field name="bufline" type="int[]"
  28067. transient="false" volatile="false"
  28068. static="false" final="false" visibility="protected"
  28069. deprecated="not deprecated">
  28070. </field>
  28071. <field name="bufcolumn" type="int[]"
  28072. transient="false" volatile="false"
  28073. static="false" final="false" visibility="protected"
  28074. deprecated="not deprecated">
  28075. </field>
  28076. <field name="column" type="int"
  28077. transient="false" volatile="false"
  28078. static="false" final="false" visibility="protected"
  28079. deprecated="not deprecated">
  28080. </field>
  28081. <field name="line" type="int"
  28082. transient="false" volatile="false"
  28083. static="false" final="false" visibility="protected"
  28084. deprecated="not deprecated">
  28085. </field>
  28086. <field name="prevCharIsCR" type="boolean"
  28087. transient="false" volatile="false"
  28088. static="false" final="false" visibility="protected"
  28089. deprecated="not deprecated">
  28090. </field>
  28091. <field name="prevCharIsLF" type="boolean"
  28092. transient="false" volatile="false"
  28093. static="false" final="false" visibility="protected"
  28094. deprecated="not deprecated">
  28095. </field>
  28096. <field name="inputStream" type="java.io.Reader"
  28097. transient="false" volatile="false"
  28098. static="false" final="false" visibility="protected"
  28099. deprecated="not deprecated">
  28100. </field>
  28101. <field name="buffer" type="char[]"
  28102. transient="false" volatile="false"
  28103. static="false" final="false" visibility="protected"
  28104. deprecated="not deprecated">
  28105. </field>
  28106. <field name="maxNextCharInd" type="int"
  28107. transient="false" volatile="false"
  28108. static="false" final="false" visibility="protected"
  28109. deprecated="not deprecated">
  28110. </field>
  28111. <field name="inBuf" type="int"
  28112. transient="false" volatile="false"
  28113. static="false" final="false" visibility="protected"
  28114. deprecated="not deprecated">
  28115. </field>
  28116. <field name="tabSize" type="int"
  28117. transient="false" volatile="false"
  28118. static="false" final="false" visibility="protected"
  28119. deprecated="not deprecated">
  28120. </field>
  28121. <doc>
  28122. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  28123. contain only ASCII characters (without unicode processing).
  28124. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28125. </doc>
  28126. </class>
  28127. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  28128. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  28129. <class name="Token" extends="java.lang.Object"
  28130. abstract="false"
  28131. static="false" final="false" visibility="public"
  28132. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28133. <constructor name="Token"
  28134. static="false" final="false" visibility="public"
  28135. deprecated="not deprecated">
  28136. </constructor>
  28137. <method name="toString" return="java.lang.String"
  28138. abstract="false" native="false" synchronized="false"
  28139. static="false" final="false" visibility="public"
  28140. deprecated="not deprecated">
  28141. <doc>
  28142. <![CDATA[Returns the image.]]>
  28143. </doc>
  28144. </method>
  28145. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  28146. abstract="false" native="false" synchronized="false"
  28147. static="true" final="true" visibility="public"
  28148. deprecated="not deprecated">
  28149. <param name="ofKind" type="int"/>
  28150. <doc>
  28151. <![CDATA[Returns a new Token object, by default. However, if you want, you
  28152. can create and return subclass objects based on the value of ofKind.
  28153. Simply add the cases to the switch for all those special cases.
  28154. For example, if you have a subclass of Token called IDToken that
  28155. you want to create if ofKind is ID, simlpy add something like :
  28156. case MyParserConstants.ID : return new IDToken();
  28157. to the following switch statement. Then you can cast matchedToken
  28158. variable to the appropriate type and use it in your lexical actions.]]>
  28159. </doc>
  28160. </method>
  28161. <field name="kind" type="int"
  28162. transient="false" volatile="false"
  28163. static="false" final="false" visibility="public"
  28164. deprecated="not deprecated">
  28165. <doc>
  28166. <![CDATA[An integer that describes the kind of this token. This numbering
  28167. system is determined by JavaCCParser, and a table of these numbers is
  28168. stored in the file ...Constants.java.]]>
  28169. </doc>
  28170. </field>
  28171. <field name="beginLine" type="int"
  28172. transient="false" volatile="false"
  28173. static="false" final="false" visibility="public"
  28174. deprecated="not deprecated">
  28175. <doc>
  28176. <![CDATA[beginLine and beginColumn describe the position of the first character
  28177. of this token; endLine and endColumn describe the position of the
  28178. last character of this token.]]>
  28179. </doc>
  28180. </field>
  28181. <field name="beginColumn" type="int"
  28182. transient="false" volatile="false"
  28183. static="false" final="false" visibility="public"
  28184. deprecated="not deprecated">
  28185. <doc>
  28186. <![CDATA[beginLine and beginColumn describe the position of the first character
  28187. of this token; endLine and endColumn describe the position of the
  28188. last character of this token.]]>
  28189. </doc>
  28190. </field>
  28191. <field name="endLine" type="int"
  28192. transient="false" volatile="false"
  28193. static="false" final="false" visibility="public"
  28194. deprecated="not deprecated">
  28195. <doc>
  28196. <![CDATA[beginLine and beginColumn describe the position of the first character
  28197. of this token; endLine and endColumn describe the position of the
  28198. last character of this token.]]>
  28199. </doc>
  28200. </field>
  28201. <field name="endColumn" type="int"
  28202. transient="false" volatile="false"
  28203. static="false" final="false" visibility="public"
  28204. deprecated="not deprecated">
  28205. <doc>
  28206. <![CDATA[beginLine and beginColumn describe the position of the first character
  28207. of this token; endLine and endColumn describe the position of the
  28208. last character of this token.]]>
  28209. </doc>
  28210. </field>
  28211. <field name="image" type="java.lang.String"
  28212. transient="false" volatile="false"
  28213. static="false" final="false" visibility="public"
  28214. deprecated="not deprecated">
  28215. <doc>
  28216. <![CDATA[The string image of the token.]]>
  28217. </doc>
  28218. </field>
  28219. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  28220. transient="false" volatile="false"
  28221. static="false" final="false" visibility="public"
  28222. deprecated="not deprecated">
  28223. <doc>
  28224. <![CDATA[A reference to the next regular (non-special) token from the input
  28225. stream. If this is the last token from the input stream, or if the
  28226. token manager has not read tokens beyond this one, this field is
  28227. set to null. This is true only if this token is also a regular
  28228. token. Otherwise, see below for a description of the contents of
  28229. this field.]]>
  28230. </doc>
  28231. </field>
  28232. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  28233. transient="false" volatile="false"
  28234. static="false" final="false" visibility="public"
  28235. deprecated="not deprecated">
  28236. <doc>
  28237. <![CDATA[This field is used to access special tokens that occur prior to this
  28238. token, but after the immediately preceding regular (non-special) token.
  28239. If there are no such special tokens, this field is set to null.
  28240. When there are more than one such special token, this field refers
  28241. to the last of these special tokens, which in turn refers to the next
  28242. previous special token through its specialToken field, and so on
  28243. until the first special token (whose specialToken field is null).
  28244. The next fields of special tokens refer to other special tokens that
  28245. immediately follow it (without an intervening regular token). If there
  28246. is no such token, this field is null.]]>
  28247. </doc>
  28248. </field>
  28249. <doc>
  28250. <![CDATA[Describes the input token stream.
  28251. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28252. </doc>
  28253. </class>
  28254. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  28255. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  28256. <class name="TokenMgrError" extends="java.lang.Error"
  28257. abstract="false"
  28258. static="false" final="false" visibility="public"
  28259. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28260. <constructor name="TokenMgrError"
  28261. static="false" final="false" visibility="public"
  28262. deprecated="not deprecated">
  28263. </constructor>
  28264. <constructor name="TokenMgrError" type="java.lang.String, int"
  28265. static="false" final="false" visibility="public"
  28266. deprecated="not deprecated">
  28267. </constructor>
  28268. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  28269. static="false" final="false" visibility="public"
  28270. deprecated="not deprecated">
  28271. </constructor>
  28272. <method name="addEscapes" return="java.lang.String"
  28273. abstract="false" native="false" synchronized="false"
  28274. static="true" final="true" visibility="protected"
  28275. deprecated="not deprecated">
  28276. <param name="str" type="java.lang.String"/>
  28277. <doc>
  28278. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  28279. equivalents in the given string]]>
  28280. </doc>
  28281. </method>
  28282. <method name="LexicalError" return="java.lang.String"
  28283. abstract="false" native="false" synchronized="false"
  28284. static="true" final="false" visibility="protected"
  28285. deprecated="not deprecated">
  28286. <param name="EOFSeen" type="boolean"/>
  28287. <param name="lexState" type="int"/>
  28288. <param name="errorLine" type="int"/>
  28289. <param name="errorColumn" type="int"/>
  28290. <param name="errorAfter" type="java.lang.String"/>
  28291. <param name="curChar" type="char"/>
  28292. <doc>
  28293. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  28294. token manager to indicate a lexical error.
  28295. Parameters :
  28296. EOFSeen : indicates if EOF caused the lexicl error
  28297. curLexState : lexical state in which this error occured
  28298. errorLine : line number when the error occured
  28299. errorColumn : column number when the error occured
  28300. errorAfter : prefix that was seen before this error occured
  28301. curchar : the offending character
  28302. Note: You can customize the lexical error message by modifying this method.]]>
  28303. </doc>
  28304. </method>
  28305. <method name="getMessage" return="java.lang.String"
  28306. abstract="false" native="false" synchronized="false"
  28307. static="false" final="false" visibility="public"
  28308. deprecated="not deprecated">
  28309. <doc>
  28310. <![CDATA[You can also modify the body of this method to customize your error messages.
  28311. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  28312. of end-users concern, so you can return something like :
  28313. "Internal Error : Please file a bug report .... "
  28314. from this method for such cases in the release version of your parser.]]>
  28315. </doc>
  28316. </method>
  28317. <doc>
  28318. <![CDATA[@deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28319. </doc>
  28320. </class>
  28321. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  28322. <doc>
  28323. <![CDATA[<p>
  28324. (DEPRECATED) This package contains code generated by JavaCC from the
  28325. Hadoop record syntax file rcc.jj. For details about the
  28326. record file syntax please @see org.apache.hadoop.record.
  28327. </p>
  28328. <p>
  28329. DEPRECATED: Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.
  28330. </p>]]>
  28331. </doc>
  28332. </package>
  28333. <package name="org.apache.hadoop.record.meta">
  28334. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  28335. <class name="FieldTypeInfo" extends="java.lang.Object"
  28336. abstract="false"
  28337. static="false" final="false" visibility="public"
  28338. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28339. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  28340. abstract="false" native="false" synchronized="false"
  28341. static="false" final="false" visibility="public"
  28342. deprecated="not deprecated">
  28343. <doc>
  28344. <![CDATA[get the field's TypeID object]]>
  28345. </doc>
  28346. </method>
  28347. <method name="getFieldID" return="java.lang.String"
  28348. abstract="false" native="false" synchronized="false"
  28349. static="false" final="false" visibility="public"
  28350. deprecated="not deprecated">
  28351. <doc>
  28352. <![CDATA[get the field's id (name)]]>
  28353. </doc>
  28354. </method>
  28355. <method name="equals" return="boolean"
  28356. abstract="false" native="false" synchronized="false"
  28357. static="false" final="false" visibility="public"
  28358. deprecated="not deprecated">
  28359. <param name="o" type="java.lang.Object"/>
  28360. <doc>
  28361. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  28362. </doc>
  28363. </method>
  28364. <method name="hashCode" return="int"
  28365. abstract="false" native="false" synchronized="false"
  28366. static="false" final="false" visibility="public"
  28367. deprecated="not deprecated">
  28368. <doc>
  28369. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  28370. be used as a hashmap key]]>
  28371. </doc>
  28372. </method>
  28373. <method name="equals" return="boolean"
  28374. abstract="false" native="false" synchronized="false"
  28375. static="false" final="false" visibility="public"
  28376. deprecated="not deprecated">
  28377. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  28378. </method>
  28379. <doc>
  28380. <![CDATA[Represents a type information for a field, which is made up of its
  28381. ID (name) and its type (a TypeID object).
  28382. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28383. </doc>
  28384. </class>
  28385. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  28386. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  28387. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  28388. abstract="false"
  28389. static="false" final="false" visibility="public"
  28390. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28391. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  28392. static="false" final="false" visibility="public"
  28393. deprecated="not deprecated">
  28394. </constructor>
  28395. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  28396. abstract="false" native="false" synchronized="false"
  28397. static="false" final="false" visibility="public"
  28398. deprecated="not deprecated">
  28399. <doc>
  28400. <![CDATA[get the TypeID of the map's key element]]>
  28401. </doc>
  28402. </method>
  28403. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  28404. abstract="false" native="false" synchronized="false"
  28405. static="false" final="false" visibility="public"
  28406. deprecated="not deprecated">
  28407. <doc>
  28408. <![CDATA[get the TypeID of the map's value element]]>
  28409. </doc>
  28410. </method>
  28411. <method name="equals" return="boolean"
  28412. abstract="false" native="false" synchronized="false"
  28413. static="false" final="false" visibility="public"
  28414. deprecated="not deprecated">
  28415. <param name="o" type="java.lang.Object"/>
  28416. <doc>
  28417. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  28418. same type]]>
  28419. </doc>
  28420. </method>
  28421. <method name="hashCode" return="int"
  28422. abstract="false" native="false" synchronized="false"
  28423. static="false" final="false" visibility="public"
  28424. deprecated="not deprecated">
  28425. <doc>
  28426. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  28427. be used as a hashmap key]]>
  28428. </doc>
  28429. </method>
  28430. <doc>
  28431. <![CDATA[Represents typeID for a Map
  28432. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28433. </doc>
  28434. </class>
  28435. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  28436. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  28437. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  28438. abstract="false"
  28439. static="false" final="false" visibility="public"
  28440. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28441. <constructor name="RecordTypeInfo"
  28442. static="false" final="false" visibility="public"
  28443. deprecated="not deprecated">
  28444. <doc>
  28445. <![CDATA[Create an empty RecordTypeInfo object.]]>
  28446. </doc>
  28447. </constructor>
  28448. <constructor name="RecordTypeInfo" type="java.lang.String"
  28449. static="false" final="false" visibility="public"
  28450. deprecated="not deprecated">
  28451. <doc>
  28452. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  28453. @param name Name of the record]]>
  28454. </doc>
  28455. </constructor>
  28456. <method name="getName" return="java.lang.String"
  28457. abstract="false" native="false" synchronized="false"
  28458. static="false" final="false" visibility="public"
  28459. deprecated="not deprecated">
  28460. <doc>
  28461. <![CDATA[return the name of the record]]>
  28462. </doc>
  28463. </method>
  28464. <method name="setName"
  28465. abstract="false" native="false" synchronized="false"
  28466. static="false" final="false" visibility="public"
  28467. deprecated="not deprecated">
  28468. <param name="name" type="java.lang.String"/>
  28469. <doc>
  28470. <![CDATA[set the name of the record]]>
  28471. </doc>
  28472. </method>
  28473. <method name="addField"
  28474. abstract="false" native="false" synchronized="false"
  28475. static="false" final="false" visibility="public"
  28476. deprecated="not deprecated">
  28477. <param name="fieldName" type="java.lang.String"/>
  28478. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  28479. <doc>
  28480. <![CDATA[Add a field.
  28481. @param fieldName Name of the field
  28482. @param tid Type ID of the field]]>
  28483. </doc>
  28484. </method>
  28485. <method name="getFieldTypeInfos" return="java.util.Collection"
  28486. abstract="false" native="false" synchronized="false"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. <doc>
  28490. <![CDATA[Return a collection of field type infos]]>
  28491. </doc>
  28492. </method>
  28493. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  28494. abstract="false" native="false" synchronized="false"
  28495. static="false" final="false" visibility="public"
  28496. deprecated="not deprecated">
  28497. <param name="name" type="java.lang.String"/>
  28498. <doc>
  28499. <![CDATA[Return the type info of a nested record. We only consider nesting
  28500. to one level.
  28501. @param name Name of the nested record]]>
  28502. </doc>
  28503. </method>
  28504. <method name="serialize"
  28505. abstract="false" native="false" synchronized="false"
  28506. static="false" final="false" visibility="public"
  28507. deprecated="not deprecated">
  28508. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  28509. <param name="tag" type="java.lang.String"/>
  28510. <exception name="IOException" type="java.io.IOException"/>
  28511. <doc>
  28512. <![CDATA[Serialize the type information for a record]]>
  28513. </doc>
  28514. </method>
  28515. <method name="deserialize"
  28516. abstract="false" native="false" synchronized="false"
  28517. static="false" final="false" visibility="public"
  28518. deprecated="not deprecated">
  28519. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  28520. <param name="tag" type="java.lang.String"/>
  28521. <exception name="IOException" type="java.io.IOException"/>
  28522. <doc>
  28523. <![CDATA[Deserialize the type information for a record]]>
  28524. </doc>
  28525. </method>
  28526. <method name="compareTo" return="int"
  28527. abstract="false" native="false" synchronized="false"
  28528. static="false" final="false" visibility="public"
  28529. deprecated="not deprecated">
  28530. <param name="peer_" type="java.lang.Object"/>
  28531. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  28532. <doc>
  28533. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  28534. for anything besides de/serializing.
  28535. So we always throw an exception.
  28536. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  28537. </doc>
  28538. </method>
  28539. <doc>
  28540. <![CDATA[A record's Type Information object which can read/write itself.
  28541. Type information for a record comprises metadata about the record,
  28542. as well as a collection of type information for each field in the record.
  28543. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28544. </doc>
  28545. </class>
  28546. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  28547. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  28548. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  28549. abstract="false"
  28550. static="false" final="false" visibility="public"
  28551. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28552. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  28553. static="false" final="false" visibility="public"
  28554. deprecated="not deprecated">
  28555. <doc>
  28556. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  28557. </doc>
  28558. </constructor>
  28559. <method name="getFieldTypeInfos" return="java.util.Collection"
  28560. abstract="false" native="false" synchronized="false"
  28561. static="false" final="false" visibility="public"
  28562. deprecated="not deprecated">
  28563. </method>
  28564. <method name="equals" return="boolean"
  28565. abstract="false" native="false" synchronized="false"
  28566. static="false" final="false" visibility="public"
  28567. deprecated="not deprecated">
  28568. <param name="o" type="java.lang.Object"/>
  28569. </method>
  28570. <method name="hashCode" return="int"
  28571. abstract="false" native="false" synchronized="false"
  28572. static="false" final="false" visibility="public"
  28573. deprecated="not deprecated">
  28574. </method>
  28575. <doc>
  28576. <![CDATA[Represents typeID for a struct
  28577. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28578. </doc>
  28579. </class>
  28580. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  28581. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  28582. <class name="TypeID" extends="java.lang.Object"
  28583. abstract="false"
  28584. static="false" final="false" visibility="public"
  28585. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28586. <method name="getTypeVal" return="byte"
  28587. abstract="false" native="false" synchronized="false"
  28588. static="false" final="false" visibility="public"
  28589. deprecated="not deprecated">
  28590. <doc>
  28591. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  28592. </doc>
  28593. </method>
  28594. <method name="equals" return="boolean"
  28595. abstract="false" native="false" synchronized="false"
  28596. static="false" final="false" visibility="public"
  28597. deprecated="not deprecated">
  28598. <param name="o" type="java.lang.Object"/>
  28599. <doc>
  28600. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  28601. </doc>
  28602. </method>
  28603. <method name="hashCode" return="int"
  28604. abstract="false" native="false" synchronized="false"
  28605. static="false" final="false" visibility="public"
  28606. deprecated="not deprecated">
  28607. <doc>
  28608. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  28609. be used as a hashmap key]]>
  28610. </doc>
  28611. </method>
  28612. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28613. transient="false" volatile="false"
  28614. static="true" final="true" visibility="public"
  28615. deprecated="not deprecated">
  28616. <doc>
  28617. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  28618. </doc>
  28619. </field>
  28620. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28621. transient="false" volatile="false"
  28622. static="true" final="true" visibility="public"
  28623. deprecated="not deprecated">
  28624. </field>
  28625. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28626. transient="false" volatile="false"
  28627. static="true" final="true" visibility="public"
  28628. deprecated="not deprecated">
  28629. </field>
  28630. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28631. transient="false" volatile="false"
  28632. static="true" final="true" visibility="public"
  28633. deprecated="not deprecated">
  28634. </field>
  28635. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28636. transient="false" volatile="false"
  28637. static="true" final="true" visibility="public"
  28638. deprecated="not deprecated">
  28639. </field>
  28640. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28641. transient="false" volatile="false"
  28642. static="true" final="true" visibility="public"
  28643. deprecated="not deprecated">
  28644. </field>
  28645. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28646. transient="false" volatile="false"
  28647. static="true" final="true" visibility="public"
  28648. deprecated="not deprecated">
  28649. </field>
  28650. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28651. transient="false" volatile="false"
  28652. static="true" final="true" visibility="public"
  28653. deprecated="not deprecated">
  28654. </field>
  28655. <field name="typeVal" type="byte"
  28656. transient="false" volatile="false"
  28657. static="false" final="false" visibility="protected"
  28658. deprecated="not deprecated">
  28659. </field>
  28660. <doc>
  28661. <![CDATA[Represents typeID for basic types.
  28662. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28663. </doc>
  28664. </class>
  28665. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  28666. <!-- start class org.apache.hadoop.record.meta.Utils -->
  28667. <class name="Utils" extends="java.lang.Object"
  28668. abstract="false"
  28669. static="false" final="false" visibility="public"
  28670. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28671. <method name="skip"
  28672. abstract="false" native="false" synchronized="false"
  28673. static="true" final="false" visibility="public"
  28674. deprecated="not deprecated">
  28675. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  28676. <param name="tag" type="java.lang.String"/>
  28677. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  28678. <exception name="IOException" type="java.io.IOException"/>
  28679. <doc>
  28680. <![CDATA[read/skip bytes from stream based on a type]]>
  28681. </doc>
  28682. </method>
  28683. <doc>
  28684. <![CDATA[Various utility functions for Hadooop record I/O platform.
  28685. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28686. </doc>
  28687. </class>
  28688. <!-- end class org.apache.hadoop.record.meta.Utils -->
  28689. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  28690. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  28691. abstract="false"
  28692. static="false" final="false" visibility="public"
  28693. deprecated="Replaced by lEsS_tHaNa href=quote_cHaRhttp://hadoop.apache.org/avro/quote_cHaR>AvrolEsS_tHaN/a>.">
  28694. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  28695. static="false" final="false" visibility="public"
  28696. deprecated="not deprecated">
  28697. </constructor>
  28698. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  28699. abstract="false" native="false" synchronized="false"
  28700. static="false" final="false" visibility="public"
  28701. deprecated="not deprecated">
  28702. </method>
  28703. <method name="equals" return="boolean"
  28704. abstract="false" native="false" synchronized="false"
  28705. static="false" final="false" visibility="public"
  28706. deprecated="not deprecated">
  28707. <param name="o" type="java.lang.Object"/>
  28708. <doc>
  28709. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  28710. same type]]>
  28711. </doc>
  28712. </method>
  28713. <method name="hashCode" return="int"
  28714. abstract="false" native="false" synchronized="false"
  28715. static="false" final="false" visibility="public"
  28716. deprecated="not deprecated">
  28717. <doc>
  28718. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  28719. be used as a hashmap key]]>
  28720. </doc>
  28721. </method>
  28722. <doc>
  28723. <![CDATA[Represents typeID for vector.
  28724. @deprecated Replaced by <a href="http://hadoop.apache.org/avro/">Avro</a>.]]>
  28725. </doc>
  28726. </class>
  28727. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  28728. </package>
  28729. <package name="org.apache.hadoop.security">
  28730. <!-- start interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  28731. <interface name="GroupMappingServiceProvider" abstract="true"
  28732. static="false" final="false" visibility="public"
  28733. deprecated="not deprecated">
  28734. <method name="getGroups" return="java.util.List"
  28735. abstract="true" native="false" synchronized="false"
  28736. static="false" final="false" visibility="public"
  28737. deprecated="not deprecated">
  28738. <param name="user" type="java.lang.String"/>
  28739. <exception name="IOException" type="java.io.IOException"/>
  28740. <doc>
  28741. <![CDATA[Get all various group memberships of a given user.
  28742. Returns EMPTY list in case of non-existing user
  28743. @param user User's name
  28744. @return group memberships of user
  28745. @throws IOException]]>
  28746. </doc>
  28747. </method>
  28748. <method name="cacheGroupsRefresh"
  28749. abstract="true" native="false" synchronized="false"
  28750. static="false" final="false" visibility="public"
  28751. deprecated="not deprecated">
  28752. <exception name="IOException" type="java.io.IOException"/>
  28753. <doc>
  28754. <![CDATA[Refresh the cache of groups and user mapping
  28755. @throws IOException]]>
  28756. </doc>
  28757. </method>
  28758. <method name="cacheGroupsAdd"
  28759. abstract="true" native="false" synchronized="false"
  28760. static="false" final="false" visibility="public"
  28761. deprecated="not deprecated">
  28762. <param name="groups" type="java.util.List"/>
  28763. <exception name="IOException" type="java.io.IOException"/>
  28764. <doc>
  28765. <![CDATA[Caches the group user information
  28766. @param groups list of groups to add to cache
  28767. @throws IOException]]>
  28768. </doc>
  28769. </method>
  28770. <field name="GROUP_MAPPING_CONFIG_PREFIX" type="java.lang.String"
  28771. transient="false" volatile="false"
  28772. static="true" final="true" visibility="public"
  28773. deprecated="not deprecated">
  28774. </field>
  28775. <doc>
  28776. <![CDATA[An interface for the implementation of a user-to-groups mapping service
  28777. used by {@link Groups}.]]>
  28778. </doc>
  28779. </interface>
  28780. <!-- end interface org.apache.hadoop.security.GroupMappingServiceProvider -->
  28781. <!-- start interface org.apache.hadoop.security.IdMappingServiceProvider -->
  28782. <interface name="IdMappingServiceProvider" abstract="true"
  28783. static="false" final="false" visibility="public"
  28784. deprecated="not deprecated">
  28785. <method name="getUid" return="int"
  28786. abstract="true" native="false" synchronized="false"
  28787. static="false" final="false" visibility="public"
  28788. deprecated="not deprecated">
  28789. <param name="user" type="java.lang.String"/>
  28790. <exception name="IOException" type="java.io.IOException"/>
  28791. </method>
  28792. <method name="getGid" return="int"
  28793. abstract="true" native="false" synchronized="false"
  28794. static="false" final="false" visibility="public"
  28795. deprecated="not deprecated">
  28796. <param name="group" type="java.lang.String"/>
  28797. <exception name="IOException" type="java.io.IOException"/>
  28798. </method>
  28799. <method name="getUserName" return="java.lang.String"
  28800. abstract="true" native="false" synchronized="false"
  28801. static="false" final="false" visibility="public"
  28802. deprecated="not deprecated">
  28803. <param name="uid" type="int"/>
  28804. <param name="unknown" type="java.lang.String"/>
  28805. </method>
  28806. <method name="getGroupName" return="java.lang.String"
  28807. abstract="true" native="false" synchronized="false"
  28808. static="false" final="false" visibility="public"
  28809. deprecated="not deprecated">
  28810. <param name="gid" type="int"/>
  28811. <param name="unknown" type="java.lang.String"/>
  28812. </method>
  28813. <method name="getUidAllowingUnknown" return="int"
  28814. abstract="true" native="false" synchronized="false"
  28815. static="false" final="false" visibility="public"
  28816. deprecated="not deprecated">
  28817. <param name="user" type="java.lang.String"/>
  28818. </method>
  28819. <method name="getGidAllowingUnknown" return="int"
  28820. abstract="true" native="false" synchronized="false"
  28821. static="false" final="false" visibility="public"
  28822. deprecated="not deprecated">
  28823. <param name="group" type="java.lang.String"/>
  28824. </method>
  28825. <doc>
  28826. <![CDATA[An interface for the implementation of <userId, userName> mapping
  28827. and <groupId, groupName> mapping]]>
  28828. </doc>
  28829. </interface>
  28830. <!-- end interface org.apache.hadoop.security.IdMappingServiceProvider -->
  28831. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  28832. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  28833. abstract="false"
  28834. static="true" final="true" visibility="public"
  28835. deprecated="not deprecated">
  28836. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  28837. abstract="false" native="false" synchronized="false"
  28838. static="true" final="false" visibility="public"
  28839. deprecated="not deprecated">
  28840. </method>
  28841. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28842. abstract="false" native="false" synchronized="false"
  28843. static="true" final="false" visibility="public"
  28844. deprecated="not deprecated">
  28845. <param name="name" type="java.lang.String"/>
  28846. </method>
  28847. <method name="getAuthMethod" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  28848. abstract="false" native="false" synchronized="false"
  28849. static="false" final="false" visibility="public"
  28850. deprecated="not deprecated">
  28851. </method>
  28852. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  28853. abstract="false" native="false" synchronized="false"
  28854. static="true" final="false" visibility="public"
  28855. deprecated="not deprecated">
  28856. <param name="authMethod" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"/>
  28857. </method>
  28858. <doc>
  28859. <![CDATA[existing types of authentications' methods]]>
  28860. </doc>
  28861. </class>
  28862. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  28863. </package>
  28864. <package name="org.apache.hadoop.security.alias">
  28865. <!-- start class org.apache.hadoop.security.alias.CredentialProvider -->
  28866. <class name="CredentialProvider" extends="java.lang.Object"
  28867. abstract="true"
  28868. static="false" final="false" visibility="public"
  28869. deprecated="not deprecated">
  28870. <constructor name="CredentialProvider"
  28871. static="false" final="false" visibility="public"
  28872. deprecated="not deprecated">
  28873. </constructor>
  28874. <method name="isTransient" return="boolean"
  28875. abstract="false" native="false" synchronized="false"
  28876. static="false" final="false" visibility="public"
  28877. deprecated="not deprecated">
  28878. <doc>
  28879. <![CDATA[Indicates whether this provider represents a store
  28880. that is intended for transient use - such as the UserProvider
  28881. is. These providers are generally used to provide job access to
  28882. passwords rather than for long term storage.
  28883. @return true if transient, false otherwise]]>
  28884. </doc>
  28885. </method>
  28886. <method name="flush"
  28887. abstract="true" native="false" synchronized="false"
  28888. static="false" final="false" visibility="public"
  28889. deprecated="not deprecated">
  28890. <exception name="IOException" type="java.io.IOException"/>
  28891. <doc>
  28892. <![CDATA[Ensures that any changes to the credentials are written to persistent store.
  28893. @throws IOException]]>
  28894. </doc>
  28895. </method>
  28896. <method name="getCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  28897. abstract="true" native="false" synchronized="false"
  28898. static="false" final="false" visibility="public"
  28899. deprecated="not deprecated">
  28900. <param name="alias" type="java.lang.String"/>
  28901. <exception name="IOException" type="java.io.IOException"/>
  28902. <doc>
  28903. <![CDATA[Get the credential entry for a specific alias.
  28904. @param alias the name of a specific credential
  28905. @return the credentialEntry
  28906. @throws IOException]]>
  28907. </doc>
  28908. </method>
  28909. <method name="getAliases" return="java.util.List"
  28910. abstract="true" native="false" synchronized="false"
  28911. static="false" final="false" visibility="public"
  28912. deprecated="not deprecated">
  28913. <exception name="IOException" type="java.io.IOException"/>
  28914. <doc>
  28915. <![CDATA[Get the aliases for all credentials.
  28916. @return the list of alias names
  28917. @throws IOException]]>
  28918. </doc>
  28919. </method>
  28920. <method name="createCredentialEntry" return="org.apache.hadoop.security.alias.CredentialProvider.CredentialEntry"
  28921. abstract="true" native="false" synchronized="false"
  28922. static="false" final="false" visibility="public"
  28923. deprecated="not deprecated">
  28924. <param name="name" type="java.lang.String"/>
  28925. <param name="credential" type="char[]"/>
  28926. <exception name="IOException" type="java.io.IOException"/>
  28927. <doc>
  28928. <![CDATA[Create a new credential. The given alias must not already exist.
  28929. @param name the alias of the credential
  28930. @param credential the credential value for the alias.
  28931. @throws IOException]]>
  28932. </doc>
  28933. </method>
  28934. <method name="deleteCredentialEntry"
  28935. abstract="true" native="false" synchronized="false"
  28936. static="false" final="false" visibility="public"
  28937. deprecated="not deprecated">
  28938. <param name="name" type="java.lang.String"/>
  28939. <exception name="IOException" type="java.io.IOException"/>
  28940. <doc>
  28941. <![CDATA[Delete the given credential.
  28942. @param name the alias of the credential to delete
  28943. @throws IOException]]>
  28944. </doc>
  28945. </method>
  28946. <field name="CLEAR_TEXT_FALLBACK" type="java.lang.String"
  28947. transient="false" volatile="false"
  28948. static="true" final="true" visibility="public"
  28949. deprecated="not deprecated">
  28950. </field>
  28951. <doc>
  28952. <![CDATA[A provider of credentials or password for Hadoop applications. Provides an
  28953. abstraction to separate credential storage from users of them. It
  28954. is intended to support getting or storing passwords in a variety of ways,
  28955. including third party bindings.]]>
  28956. </doc>
  28957. </class>
  28958. <!-- end class org.apache.hadoop.security.alias.CredentialProvider -->
  28959. <!-- start class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  28960. <class name="CredentialProviderFactory" extends="java.lang.Object"
  28961. abstract="true"
  28962. static="false" final="false" visibility="public"
  28963. deprecated="not deprecated">
  28964. <constructor name="CredentialProviderFactory"
  28965. static="false" final="false" visibility="public"
  28966. deprecated="not deprecated">
  28967. </constructor>
  28968. <method name="createProvider" return="org.apache.hadoop.security.alias.CredentialProvider"
  28969. abstract="true" native="false" synchronized="false"
  28970. static="false" final="false" visibility="public"
  28971. deprecated="not deprecated">
  28972. <param name="providerName" type="java.net.URI"/>
  28973. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28974. <exception name="IOException" type="java.io.IOException"/>
  28975. </method>
  28976. <method name="getProviders" return="java.util.List"
  28977. abstract="false" native="false" synchronized="false"
  28978. static="true" final="false" visibility="public"
  28979. deprecated="not deprecated">
  28980. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28981. <exception name="IOException" type="java.io.IOException"/>
  28982. </method>
  28983. <field name="CREDENTIAL_PROVIDER_PATH" type="java.lang.String"
  28984. transient="false" volatile="false"
  28985. static="true" final="true" visibility="public"
  28986. deprecated="not deprecated">
  28987. </field>
  28988. <doc>
  28989. <![CDATA[A factory to create a list of CredentialProvider based on the path given in a
  28990. Configuration. It uses a service loader interface to find the available
  28991. CredentialProviders and create them based on the list of URIs.]]>
  28992. </doc>
  28993. </class>
  28994. <!-- end class org.apache.hadoop.security.alias.CredentialProviderFactory -->
  28995. </package>
  28996. <package name="org.apache.hadoop.security.http">
  28997. </package>
  28998. <package name="org.apache.hadoop.security.protocolPB">
  28999. </package>
  29000. <package name="org.apache.hadoop.security.ssl">
  29001. </package>
  29002. <package name="org.apache.hadoop.security.token.delegation.web">
  29003. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  29004. <class name="DelegationTokenAuthenticatedURL" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL"
  29005. abstract="false"
  29006. static="false" final="false" visibility="public"
  29007. deprecated="not deprecated">
  29008. <constructor name="DelegationTokenAuthenticatedURL"
  29009. static="false" final="false" visibility="public"
  29010. deprecated="not deprecated">
  29011. <doc>
  29012. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  29013. <p/>
  29014. An instance of the default {@link DelegationTokenAuthenticator} will be
  29015. used.]]>
  29016. </doc>
  29017. </constructor>
  29018. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  29019. static="false" final="false" visibility="public"
  29020. deprecated="not deprecated">
  29021. <doc>
  29022. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  29023. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  29024. use, if <code>null</code> the default one will be used.]]>
  29025. </doc>
  29026. </constructor>
  29027. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. <doc>
  29031. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code> using the default
  29032. {@link DelegationTokenAuthenticator} class.
  29033. @param connConfigurator a connection configurator.]]>
  29034. </doc>
  29035. </constructor>
  29036. <constructor name="DelegationTokenAuthenticatedURL" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator, org.apache.hadoop.security.authentication.client.ConnectionConfigurator"
  29037. static="false" final="false" visibility="public"
  29038. deprecated="not deprecated">
  29039. <doc>
  29040. <![CDATA[Creates an <code>DelegationTokenAuthenticatedURL</code>.
  29041. @param authenticator the {@link DelegationTokenAuthenticator} instance to
  29042. use, if <code>null</code> the default one will be used.
  29043. @param connConfigurator a connection configurator.]]>
  29044. </doc>
  29045. </constructor>
  29046. <method name="setDefaultDelegationTokenAuthenticator"
  29047. abstract="false" native="false" synchronized="false"
  29048. static="true" final="false" visibility="public"
  29049. deprecated="not deprecated">
  29050. <param name="authenticator" type="java.lang.Class"/>
  29051. <doc>
  29052. <![CDATA[Sets the default {@link DelegationTokenAuthenticator} class to use when an
  29053. {@link DelegationTokenAuthenticatedURL} instance is created without
  29054. specifying one.
  29055. The default class is {@link KerberosDelegationTokenAuthenticator}
  29056. @param authenticator the authenticator class to use as default.]]>
  29057. </doc>
  29058. </method>
  29059. <method name="getDefaultDelegationTokenAuthenticator" return="java.lang.Class"
  29060. abstract="false" native="false" synchronized="false"
  29061. static="true" final="false" visibility="public"
  29062. deprecated="not deprecated">
  29063. <doc>
  29064. <![CDATA[Returns the default {@link DelegationTokenAuthenticator} class to use when
  29065. an {@link DelegationTokenAuthenticatedURL} instance is created without
  29066. specifying one.
  29067. <p/>
  29068. The default class is {@link KerberosDelegationTokenAuthenticator}
  29069. @return the delegation token authenticator class to use as default.]]>
  29070. </doc>
  29071. </method>
  29072. <method name="setUseQueryStringForDelegationToken"
  29073. abstract="false" native="false" synchronized="false"
  29074. static="false" final="false" visibility="protected"
  29075. deprecated="not deprecated">
  29076. <param name="useQueryString" type="boolean"/>
  29077. <doc>
  29078. <![CDATA[Sets if delegation token should be transmitted in the URL query string.
  29079. By default it is transmitted using the
  29080. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.
  29081. <p/>
  29082. This method is provided to enable WebHDFS backwards compatibility.
  29083. @param useQueryString <code>TRUE</code> if the token is transmitted in the
  29084. URL query string, <code>FALSE</code> if the delegation token is transmitted
  29085. using the {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP
  29086. header.]]>
  29087. </doc>
  29088. </method>
  29089. <method name="useQueryStringForDelegationToken" return="boolean"
  29090. abstract="false" native="false" synchronized="false"
  29091. static="false" final="false" visibility="public"
  29092. deprecated="not deprecated">
  29093. <doc>
  29094. <![CDATA[Returns if delegation token is transmitted as a HTTP header.
  29095. @return <code>TRUE</code> if the token is transmitted in the URL query
  29096. string, <code>FALSE</code> if the delegation token is transmitted using the
  29097. {@link DelegationTokenAuthenticator#DELEGATION_TOKEN_HEADER} HTTP header.]]>
  29098. </doc>
  29099. </method>
  29100. <method name="openConnection" return="java.net.HttpURLConnection"
  29101. abstract="false" native="false" synchronized="false"
  29102. static="false" final="false" visibility="public"
  29103. deprecated="not deprecated">
  29104. <param name="url" type="java.net.URL"/>
  29105. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29106. <exception name="IOException" type="java.io.IOException"/>
  29107. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29108. <doc>
  29109. <![CDATA[Returns an authenticated {@link HttpURLConnection}, it uses a Delegation
  29110. Token only if the given auth token is an instance of {@link Token} and
  29111. it contains a Delegation Token, otherwise use the configured
  29112. {@link DelegationTokenAuthenticator} to authenticate the connection.
  29113. @param url the URL to connect to. Only HTTP/S URLs are supported.
  29114. @param token the authentication token being used for the user.
  29115. @return an authenticated {@link HttpURLConnection}.
  29116. @throws IOException if an IO error occurred.
  29117. @throws AuthenticationException if an authentication exception occurred.]]>
  29118. </doc>
  29119. </method>
  29120. <method name="openConnection" return="java.net.HttpURLConnection"
  29121. abstract="false" native="false" synchronized="false"
  29122. static="false" final="false" visibility="public"
  29123. deprecated="not deprecated">
  29124. <param name="url" type="java.net.URL"/>
  29125. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29126. <exception name="IOException" type="java.io.IOException"/>
  29127. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29128. <doc>
  29129. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  29130. Token is present, it will be used taking precedence over the configured
  29131. <code>Authenticator</code>.
  29132. @param url the URL to connect to. Only HTTP/S URLs are supported.
  29133. @param token the authentication token being used for the user.
  29134. @return an authenticated {@link HttpURLConnection}.
  29135. @throws IOException if an IO error occurred.
  29136. @throws AuthenticationException if an authentication exception occurred.]]>
  29137. </doc>
  29138. </method>
  29139. <method name="openConnection" return="java.net.HttpURLConnection"
  29140. abstract="false" native="false" synchronized="false"
  29141. static="false" final="false" visibility="public"
  29142. deprecated="not deprecated">
  29143. <param name="url" type="java.net.URL"/>
  29144. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29145. <param name="doAs" type="java.lang.String"/>
  29146. <exception name="IOException" type="java.io.IOException"/>
  29147. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29148. <doc>
  29149. <![CDATA[Returns an authenticated {@link HttpURLConnection}. If the Delegation
  29150. Token is present, it will be used taking precedence over the configured
  29151. <code>Authenticator</code>. If the <code>doAs</code> parameter is not NULL,
  29152. the request will be done on behalf of the specified <code>doAs</code> user.
  29153. @param url the URL to connect to. Only HTTP/S URLs are supported.
  29154. @param token the authentication token being used for the user.
  29155. @param doAs user to do the the request on behalf of, if NULL the request is
  29156. as self.
  29157. @return an authenticated {@link HttpURLConnection}.
  29158. @throws IOException if an IO error occurred.
  29159. @throws AuthenticationException if an authentication exception occurred.]]>
  29160. </doc>
  29161. </method>
  29162. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  29163. abstract="false" native="false" synchronized="false"
  29164. static="false" final="false" visibility="public"
  29165. deprecated="not deprecated">
  29166. <param name="url" type="java.net.URL"/>
  29167. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29168. <param name="renewer" type="java.lang.String"/>
  29169. <exception name="IOException" type="java.io.IOException"/>
  29170. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29171. <doc>
  29172. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  29173. for authentication.
  29174. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  29175. supported.
  29176. @param token the authentication token being used for the user where the
  29177. Delegation token will be stored.
  29178. @param renewer the renewer user.
  29179. @return a delegation token.
  29180. @throws IOException if an IO error occurred.
  29181. @throws AuthenticationException if an authentication exception occurred.]]>
  29182. </doc>
  29183. </method>
  29184. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  29185. abstract="false" native="false" synchronized="false"
  29186. static="false" final="false" visibility="public"
  29187. deprecated="not deprecated">
  29188. <param name="url" type="java.net.URL"/>
  29189. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29190. <param name="renewer" type="java.lang.String"/>
  29191. <param name="doAsUser" type="java.lang.String"/>
  29192. <exception name="IOException" type="java.io.IOException"/>
  29193. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29194. <doc>
  29195. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  29196. for authentication.
  29197. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  29198. supported.
  29199. @param token the authentication token being used for the user where the
  29200. Delegation token will be stored.
  29201. @param renewer the renewer user.
  29202. @param doAsUser the user to do as, which will be the token owner.
  29203. @return a delegation token.
  29204. @throws IOException if an IO error occurred.
  29205. @throws AuthenticationException if an authentication exception occurred.]]>
  29206. </doc>
  29207. </method>
  29208. <method name="renewDelegationToken" return="long"
  29209. abstract="false" native="false" synchronized="false"
  29210. static="false" final="false" visibility="public"
  29211. deprecated="not deprecated">
  29212. <param name="url" type="java.net.URL"/>
  29213. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29214. <exception name="IOException" type="java.io.IOException"/>
  29215. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29216. <doc>
  29217. <![CDATA[Renews a delegation token from the server end-point using the
  29218. configured <code>Authenticator</code> for authentication.
  29219. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  29220. supported.
  29221. @param token the authentication token with the Delegation Token to renew.
  29222. @throws IOException if an IO error occurred.
  29223. @throws AuthenticationException if an authentication exception occurred.]]>
  29224. </doc>
  29225. </method>
  29226. <method name="renewDelegationToken" return="long"
  29227. abstract="false" native="false" synchronized="false"
  29228. static="false" final="false" visibility="public"
  29229. deprecated="not deprecated">
  29230. <param name="url" type="java.net.URL"/>
  29231. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29232. <param name="doAsUser" type="java.lang.String"/>
  29233. <exception name="IOException" type="java.io.IOException"/>
  29234. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29235. <doc>
  29236. <![CDATA[Renews a delegation token from the server end-point using the
  29237. configured <code>Authenticator</code> for authentication.
  29238. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  29239. supported.
  29240. @param token the authentication token with the Delegation Token to renew.
  29241. @param doAsUser the user to do as, which will be the token owner.
  29242. @throws IOException if an IO error occurred.
  29243. @throws AuthenticationException if an authentication exception occurred.]]>
  29244. </doc>
  29245. </method>
  29246. <method name="cancelDelegationToken"
  29247. abstract="false" native="false" synchronized="false"
  29248. static="false" final="false" visibility="public"
  29249. deprecated="not deprecated">
  29250. <param name="url" type="java.net.URL"/>
  29251. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29252. <exception name="IOException" type="java.io.IOException"/>
  29253. <doc>
  29254. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  29255. being authenticated by the configured <code>Authenticator</code>.
  29256. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  29257. are supported.
  29258. @param token the authentication token with the Delegation Token to cancel.
  29259. @throws IOException if an IO error occurred.]]>
  29260. </doc>
  29261. </method>
  29262. <method name="cancelDelegationToken"
  29263. abstract="false" native="false" synchronized="false"
  29264. static="false" final="false" visibility="public"
  29265. deprecated="not deprecated">
  29266. <param name="url" type="java.net.URL"/>
  29267. <param name="token" type="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token"/>
  29268. <param name="doAsUser" type="java.lang.String"/>
  29269. <exception name="IOException" type="java.io.IOException"/>
  29270. <doc>
  29271. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  29272. being authenticated by the configured <code>Authenticator</code>.
  29273. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  29274. are supported.
  29275. @param token the authentication token with the Delegation Token to cancel.
  29276. @param doAsUser the user to do as, which will be the token owner.
  29277. @throws IOException if an IO error occurred.]]>
  29278. </doc>
  29279. </method>
  29280. <doc>
  29281. <![CDATA[The <code>DelegationTokenAuthenticatedURL</code> is a
  29282. {@link AuthenticatedURL} sub-class with built-in Hadoop Delegation Token
  29283. functionality.
  29284. <p/>
  29285. The authentication mechanisms supported by default are Hadoop Simple
  29286. authentication (also known as pseudo authentication) and Kerberos SPNEGO
  29287. authentication.
  29288. <p/>
  29289. Additional authentication mechanisms can be supported via {@link
  29290. DelegationTokenAuthenticator} implementations.
  29291. <p/>
  29292. The default {@link DelegationTokenAuthenticator} is the {@link
  29293. KerberosDelegationTokenAuthenticator} class which supports
  29294. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication via
  29295. the {@link PseudoDelegationTokenAuthenticator} class.
  29296. <p/>
  29297. <code>AuthenticatedURL</code> instances are not thread-safe.]]>
  29298. </doc>
  29299. </class>
  29300. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL -->
  29301. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  29302. <class name="DelegationTokenAuthenticatedURL.Token" extends="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"
  29303. abstract="false"
  29304. static="true" final="false" visibility="public"
  29305. deprecated="not deprecated">
  29306. <constructor name="Token"
  29307. static="false" final="false" visibility="public"
  29308. deprecated="not deprecated">
  29309. </constructor>
  29310. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  29311. abstract="false" native="false" synchronized="false"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="not deprecated">
  29314. </method>
  29315. <method name="setDelegationToken"
  29316. abstract="false" native="false" synchronized="false"
  29317. static="false" final="false" visibility="public"
  29318. deprecated="not deprecated">
  29319. <param name="delegationToken" type="org.apache.hadoop.security.token.Token"/>
  29320. </method>
  29321. <doc>
  29322. <![CDATA[Client side authentication token that handles Delegation Tokens.]]>
  29323. </doc>
  29324. </class>
  29325. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticatedURL.Token -->
  29326. <!-- start class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  29327. <class name="DelegationTokenAuthenticator" extends="java.lang.Object"
  29328. abstract="true"
  29329. static="false" final="false" visibility="public"
  29330. deprecated="not deprecated">
  29331. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  29332. <constructor name="DelegationTokenAuthenticator" type="org.apache.hadoop.security.authentication.client.Authenticator"
  29333. static="false" final="false" visibility="public"
  29334. deprecated="not deprecated">
  29335. </constructor>
  29336. <method name="setConnectionConfigurator"
  29337. abstract="false" native="false" synchronized="false"
  29338. static="false" final="false" visibility="public"
  29339. deprecated="not deprecated">
  29340. <param name="configurator" type="org.apache.hadoop.security.authentication.client.ConnectionConfigurator"/>
  29341. </method>
  29342. <method name="authenticate"
  29343. abstract="false" native="false" synchronized="false"
  29344. static="false" final="false" visibility="public"
  29345. deprecated="not deprecated">
  29346. <param name="url" type="java.net.URL"/>
  29347. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29348. <exception name="IOException" type="java.io.IOException"/>
  29349. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29350. </method>
  29351. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  29352. abstract="false" native="false" synchronized="false"
  29353. static="false" final="false" visibility="public"
  29354. deprecated="not deprecated">
  29355. <param name="url" type="java.net.URL"/>
  29356. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29357. <param name="renewer" type="java.lang.String"/>
  29358. <exception name="IOException" type="java.io.IOException"/>
  29359. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29360. <doc>
  29361. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  29362. for authentication.
  29363. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  29364. supported.
  29365. @param token the authentication token being used for the user where the
  29366. Delegation token will be stored.
  29367. @param renewer the renewer user.
  29368. @throws IOException if an IO error occurred.
  29369. @throws AuthenticationException if an authentication exception occurred.]]>
  29370. </doc>
  29371. </method>
  29372. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  29373. abstract="false" native="false" synchronized="false"
  29374. static="false" final="false" visibility="public"
  29375. deprecated="not deprecated">
  29376. <param name="url" type="java.net.URL"/>
  29377. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29378. <param name="renewer" type="java.lang.String"/>
  29379. <param name="doAsUser" type="java.lang.String"/>
  29380. <exception name="IOException" type="java.io.IOException"/>
  29381. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29382. <doc>
  29383. <![CDATA[Requests a delegation token using the configured <code>Authenticator</code>
  29384. for authentication.
  29385. @param url the URL to get the delegation token from. Only HTTP/S URLs are
  29386. supported.
  29387. @param token the authentication token being used for the user where the
  29388. Delegation token will be stored.
  29389. @param renewer the renewer user.
  29390. @param doAsUser the user to do as, which will be the token owner.
  29391. @throws IOException if an IO error occurred.
  29392. @throws AuthenticationException if an authentication exception occurred.]]>
  29393. </doc>
  29394. </method>
  29395. <method name="renewDelegationToken" return="long"
  29396. abstract="false" native="false" synchronized="false"
  29397. static="false" final="false" visibility="public"
  29398. deprecated="not deprecated">
  29399. <param name="url" type="java.net.URL"/>
  29400. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29401. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  29402. <exception name="IOException" type="java.io.IOException"/>
  29403. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29404. <doc>
  29405. <![CDATA[Renews a delegation token from the server end-point using the
  29406. configured <code>Authenticator</code> for authentication.
  29407. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  29408. supported.
  29409. @param token the authentication token with the Delegation Token to renew.
  29410. @throws IOException if an IO error occurred.
  29411. @throws AuthenticationException if an authentication exception occurred.]]>
  29412. </doc>
  29413. </method>
  29414. <method name="renewDelegationToken" return="long"
  29415. abstract="false" native="false" synchronized="false"
  29416. static="false" final="false" visibility="public"
  29417. deprecated="not deprecated">
  29418. <param name="url" type="java.net.URL"/>
  29419. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29420. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  29421. <param name="doAsUser" type="java.lang.String"/>
  29422. <exception name="IOException" type="java.io.IOException"/>
  29423. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  29424. <doc>
  29425. <![CDATA[Renews a delegation token from the server end-point using the
  29426. configured <code>Authenticator</code> for authentication.
  29427. @param url the URL to renew the delegation token from. Only HTTP/S URLs are
  29428. supported.
  29429. @param token the authentication token with the Delegation Token to renew.
  29430. @param doAsUser the user to do as, which will be the token owner.
  29431. @throws IOException if an IO error occurred.
  29432. @throws AuthenticationException if an authentication exception occurred.]]>
  29433. </doc>
  29434. </method>
  29435. <method name="cancelDelegationToken"
  29436. abstract="false" native="false" synchronized="false"
  29437. static="false" final="false" visibility="public"
  29438. deprecated="not deprecated">
  29439. <param name="url" type="java.net.URL"/>
  29440. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29441. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  29442. <exception name="IOException" type="java.io.IOException"/>
  29443. <doc>
  29444. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  29445. being authenticated by the configured <code>Authenticator</code>.
  29446. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  29447. are supported.
  29448. @param token the authentication token with the Delegation Token to cancel.
  29449. @throws IOException if an IO error occurred.]]>
  29450. </doc>
  29451. </method>
  29452. <method name="cancelDelegationToken"
  29453. abstract="false" native="false" synchronized="false"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. <param name="url" type="java.net.URL"/>
  29457. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  29458. <param name="dToken" type="org.apache.hadoop.security.token.Token"/>
  29459. <param name="doAsUser" type="java.lang.String"/>
  29460. <exception name="IOException" type="java.io.IOException"/>
  29461. <doc>
  29462. <![CDATA[Cancels a delegation token from the server end-point. It does not require
  29463. being authenticated by the configured <code>Authenticator</code>.
  29464. @param url the URL to cancel the delegation token from. Only HTTP/S URLs
  29465. are supported.
  29466. @param token the authentication token with the Delegation Token to cancel.
  29467. @param doAsUser the user to do as, which will be the token owner.
  29468. @throws IOException if an IO error occurred.]]>
  29469. </doc>
  29470. </method>
  29471. <field name="OP_PARAM" type="java.lang.String"
  29472. transient="false" volatile="false"
  29473. static="true" final="true" visibility="public"
  29474. deprecated="not deprecated">
  29475. </field>
  29476. <field name="DELEGATION_TOKEN_HEADER" type="java.lang.String"
  29477. transient="false" volatile="false"
  29478. static="true" final="true" visibility="public"
  29479. deprecated="not deprecated">
  29480. </field>
  29481. <field name="DELEGATION_PARAM" type="java.lang.String"
  29482. transient="false" volatile="false"
  29483. static="true" final="true" visibility="public"
  29484. deprecated="not deprecated">
  29485. </field>
  29486. <field name="TOKEN_PARAM" type="java.lang.String"
  29487. transient="false" volatile="false"
  29488. static="true" final="true" visibility="public"
  29489. deprecated="not deprecated">
  29490. </field>
  29491. <field name="RENEWER_PARAM" type="java.lang.String"
  29492. transient="false" volatile="false"
  29493. static="true" final="true" visibility="public"
  29494. deprecated="not deprecated">
  29495. </field>
  29496. <field name="DELEGATION_TOKEN_JSON" type="java.lang.String"
  29497. transient="false" volatile="false"
  29498. static="true" final="true" visibility="public"
  29499. deprecated="not deprecated">
  29500. </field>
  29501. <field name="DELEGATION_TOKEN_URL_STRING_JSON" type="java.lang.String"
  29502. transient="false" volatile="false"
  29503. static="true" final="true" visibility="public"
  29504. deprecated="not deprecated">
  29505. </field>
  29506. <field name="RENEW_DELEGATION_TOKEN_JSON" type="java.lang.String"
  29507. transient="false" volatile="false"
  29508. static="true" final="true" visibility="public"
  29509. deprecated="not deprecated">
  29510. </field>
  29511. <doc>
  29512. <![CDATA[{@link Authenticator} wrapper that enhances an {@link Authenticator} with
  29513. Delegation Token support.]]>
  29514. </doc>
  29515. </class>
  29516. <!-- end class org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator -->
  29517. <!-- start class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  29518. <class name="KerberosDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  29519. abstract="false"
  29520. static="false" final="false" visibility="public"
  29521. deprecated="not deprecated">
  29522. <constructor name="KerberosDelegationTokenAuthenticator"
  29523. static="false" final="false" visibility="public"
  29524. deprecated="not deprecated">
  29525. </constructor>
  29526. <doc>
  29527. <![CDATA[The <code>KerberosDelegationTokenAuthenticator</code> provides support for
  29528. Kerberos SPNEGO authentication mechanism and support for Hadoop Delegation
  29529. Token operations.
  29530. <p/>
  29531. It falls back to the {@link PseudoDelegationTokenAuthenticator} if the HTTP
  29532. endpoint does not trigger a SPNEGO authentication]]>
  29533. </doc>
  29534. </class>
  29535. <!-- end class org.apache.hadoop.security.token.delegation.web.KerberosDelegationTokenAuthenticator -->
  29536. <!-- start class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  29537. <class name="PseudoDelegationTokenAuthenticator" extends="org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticator"
  29538. abstract="false"
  29539. static="false" final="false" visibility="public"
  29540. deprecated="not deprecated">
  29541. <constructor name="PseudoDelegationTokenAuthenticator"
  29542. static="false" final="false" visibility="public"
  29543. deprecated="not deprecated">
  29544. </constructor>
  29545. <doc>
  29546. <![CDATA[The <code>PseudoDelegationTokenAuthenticator</code> provides support for
  29547. Hadoop's pseudo authentication mechanism that accepts
  29548. the user name specified as a query string parameter and support for Hadoop
  29549. Delegation Token operations.
  29550. <p/>
  29551. This mimics the model of Hadoop Simple authentication trusting the
  29552. {@link UserGroupInformation#getCurrentUser()} value.]]>
  29553. </doc>
  29554. </class>
  29555. <!-- end class org.apache.hadoop.security.token.delegation.web.PseudoDelegationTokenAuthenticator -->
  29556. </package>
  29557. <package name="org.apache.hadoop.service">
  29558. <!-- start class org.apache.hadoop.service.AbstractService -->
  29559. <class name="AbstractService" extends="java.lang.Object"
  29560. abstract="true"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <implements name="org.apache.hadoop.service.Service"/>
  29564. <constructor name="AbstractService" type="java.lang.String"
  29565. static="false" final="false" visibility="public"
  29566. deprecated="not deprecated">
  29567. <doc>
  29568. <![CDATA[Construct the service.
  29569. @param name service name]]>
  29570. </doc>
  29571. </constructor>
  29572. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  29573. abstract="false" native="false" synchronized="false"
  29574. static="false" final="true" visibility="public"
  29575. deprecated="not deprecated">
  29576. </method>
  29577. <method name="getFailureCause" return="java.lang.Throwable"
  29578. abstract="false" native="false" synchronized="true"
  29579. static="false" final="true" visibility="public"
  29580. deprecated="not deprecated">
  29581. </method>
  29582. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  29583. abstract="false" native="false" synchronized="true"
  29584. static="false" final="false" visibility="public"
  29585. deprecated="not deprecated">
  29586. </method>
  29587. <method name="setConfig"
  29588. abstract="false" native="false" synchronized="false"
  29589. static="false" final="false" visibility="protected"
  29590. deprecated="not deprecated">
  29591. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29592. <doc>
  29593. <![CDATA[Set the configuration for this service.
  29594. This method is called during {@link #init(Configuration)}
  29595. and should only be needed if for some reason a service implementation
  29596. needs to override that initial setting -for example replacing
  29597. it with a new subclass of {@link Configuration}
  29598. @param conf new configuration.]]>
  29599. </doc>
  29600. </method>
  29601. <method name="init"
  29602. abstract="false" native="false" synchronized="false"
  29603. static="false" final="false" visibility="public"
  29604. deprecated="not deprecated">
  29605. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29606. <doc>
  29607. <![CDATA[{@inheritDoc}
  29608. This invokes {@link #serviceInit}
  29609. @param conf the configuration of the service. This must not be null
  29610. @throws ServiceStateException if the configuration was null,
  29611. the state change not permitted, or something else went wrong]]>
  29612. </doc>
  29613. </method>
  29614. <method name="start"
  29615. abstract="false" native="false" synchronized="false"
  29616. static="false" final="false" visibility="public"
  29617. deprecated="not deprecated">
  29618. <doc>
  29619. <![CDATA[{@inheritDoc}
  29620. @throws ServiceStateException if the current service state does not permit
  29621. this action]]>
  29622. </doc>
  29623. </method>
  29624. <method name="stop"
  29625. abstract="false" native="false" synchronized="false"
  29626. static="false" final="false" visibility="public"
  29627. deprecated="not deprecated">
  29628. <doc>
  29629. <![CDATA[{@inheritDoc}]]>
  29630. </doc>
  29631. </method>
  29632. <method name="close"
  29633. abstract="false" native="false" synchronized="false"
  29634. static="false" final="true" visibility="public"
  29635. deprecated="not deprecated">
  29636. <exception name="IOException" type="java.io.IOException"/>
  29637. <doc>
  29638. <![CDATA[Relay to {@link #stop()}
  29639. @throws IOException]]>
  29640. </doc>
  29641. </method>
  29642. <method name="noteFailure"
  29643. abstract="false" native="false" synchronized="false"
  29644. static="false" final="true" visibility="protected"
  29645. deprecated="not deprecated">
  29646. <param name="exception" type="java.lang.Exception"/>
  29647. <doc>
  29648. <![CDATA[Failure handling: record the exception
  29649. that triggered it -if there was not one already.
  29650. Services are free to call this themselves.
  29651. @param exception the exception]]>
  29652. </doc>
  29653. </method>
  29654. <method name="waitForServiceToStop" return="boolean"
  29655. abstract="false" native="false" synchronized="false"
  29656. static="false" final="true" visibility="public"
  29657. deprecated="not deprecated">
  29658. <param name="timeout" type="long"/>
  29659. </method>
  29660. <method name="serviceInit"
  29661. abstract="false" native="false" synchronized="false"
  29662. static="false" final="false" visibility="protected"
  29663. deprecated="not deprecated">
  29664. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29665. <exception name="Exception" type="java.lang.Exception"/>
  29666. <doc>
  29667. <![CDATA[All initialization code needed by a service.
  29668. This method will only ever be called once during the lifecycle of
  29669. a specific service instance.
  29670. Implementations do not need to be synchronized as the logic
  29671. in {@link #init(Configuration)} prevents re-entrancy.
  29672. The base implementation checks to see if the subclass has created
  29673. a new configuration instance, and if so, updates the base class value
  29674. @param conf configuration
  29675. @throws Exception on a failure -these will be caught,
  29676. possibly wrapped, and wil; trigger a service stop]]>
  29677. </doc>
  29678. </method>
  29679. <method name="serviceStart"
  29680. abstract="false" native="false" synchronized="false"
  29681. static="false" final="false" visibility="protected"
  29682. deprecated="not deprecated">
  29683. <exception name="Exception" type="java.lang.Exception"/>
  29684. <doc>
  29685. <![CDATA[Actions called during the INITED to STARTED transition.
  29686. This method will only ever be called once during the lifecycle of
  29687. a specific service instance.
  29688. Implementations do not need to be synchronized as the logic
  29689. in {@link #start()} prevents re-entrancy.
  29690. @throws Exception if needed -these will be caught,
  29691. wrapped, and trigger a service stop]]>
  29692. </doc>
  29693. </method>
  29694. <method name="serviceStop"
  29695. abstract="false" native="false" synchronized="false"
  29696. static="false" final="false" visibility="protected"
  29697. deprecated="not deprecated">
  29698. <exception name="Exception" type="java.lang.Exception"/>
  29699. <doc>
  29700. <![CDATA[Actions called during the transition to the STOPPED state.
  29701. This method will only ever be called once during the lifecycle of
  29702. a specific service instance.
  29703. Implementations do not need to be synchronized as the logic
  29704. in {@link #stop()} prevents re-entrancy.
  29705. Implementations MUST write this to be robust against failures, including
  29706. checks for null references -and for the first failure to not stop other
  29707. attempts to shut down parts of the service.
  29708. @throws Exception if needed -these will be caught and logged.]]>
  29709. </doc>
  29710. </method>
  29711. <method name="registerServiceListener"
  29712. abstract="false" native="false" synchronized="false"
  29713. static="false" final="false" visibility="public"
  29714. deprecated="not deprecated">
  29715. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  29716. </method>
  29717. <method name="unregisterServiceListener"
  29718. abstract="false" native="false" synchronized="false"
  29719. static="false" final="false" visibility="public"
  29720. deprecated="not deprecated">
  29721. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  29722. </method>
  29723. <method name="registerGlobalListener"
  29724. abstract="false" native="false" synchronized="false"
  29725. static="true" final="false" visibility="public"
  29726. deprecated="not deprecated">
  29727. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  29728. <doc>
  29729. <![CDATA[Register a global listener, which receives notifications
  29730. from the state change events of all services in the JVM
  29731. @param l listener]]>
  29732. </doc>
  29733. </method>
  29734. <method name="unregisterGlobalListener" return="boolean"
  29735. abstract="false" native="false" synchronized="false"
  29736. static="true" final="false" visibility="public"
  29737. deprecated="not deprecated">
  29738. <param name="l" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  29739. <doc>
  29740. <![CDATA[unregister a global listener.
  29741. @param l listener to unregister
  29742. @return true if the listener was found (and then deleted)]]>
  29743. </doc>
  29744. </method>
  29745. <method name="getName" return="java.lang.String"
  29746. abstract="false" native="false" synchronized="false"
  29747. static="false" final="false" visibility="public"
  29748. deprecated="not deprecated">
  29749. </method>
  29750. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  29751. abstract="false" native="false" synchronized="true"
  29752. static="false" final="false" visibility="public"
  29753. deprecated="not deprecated">
  29754. </method>
  29755. <method name="getStartTime" return="long"
  29756. abstract="false" native="false" synchronized="false"
  29757. static="false" final="false" visibility="public"
  29758. deprecated="not deprecated">
  29759. </method>
  29760. <method name="getLifecycleHistory" return="java.util.List"
  29761. abstract="false" native="false" synchronized="true"
  29762. static="false" final="false" visibility="public"
  29763. deprecated="not deprecated">
  29764. </method>
  29765. <method name="isInState" return="boolean"
  29766. abstract="false" native="false" synchronized="false"
  29767. static="false" final="true" visibility="public"
  29768. deprecated="not deprecated">
  29769. <param name="expected" type="org.apache.hadoop.service.Service.STATE"/>
  29770. </method>
  29771. <method name="toString" return="java.lang.String"
  29772. abstract="false" native="false" synchronized="false"
  29773. static="false" final="false" visibility="public"
  29774. deprecated="not deprecated">
  29775. </method>
  29776. <method name="putBlocker"
  29777. abstract="false" native="false" synchronized="false"
  29778. static="false" final="false" visibility="protected"
  29779. deprecated="not deprecated">
  29780. <param name="name" type="java.lang.String"/>
  29781. <param name="details" type="java.lang.String"/>
  29782. <doc>
  29783. <![CDATA[Put a blocker to the blocker map -replacing any
  29784. with the same name.
  29785. @param name blocker name
  29786. @param details any specifics on the block. This must be non-null.]]>
  29787. </doc>
  29788. </method>
  29789. <method name="removeBlocker"
  29790. abstract="false" native="false" synchronized="false"
  29791. static="false" final="false" visibility="public"
  29792. deprecated="not deprecated">
  29793. <param name="name" type="java.lang.String"/>
  29794. <doc>
  29795. <![CDATA[Remove a blocker from the blocker map -
  29796. this is a no-op if the blocker is not present
  29797. @param name the name of the blocker]]>
  29798. </doc>
  29799. </method>
  29800. <method name="getBlockers" return="java.util.Map"
  29801. abstract="false" native="false" synchronized="false"
  29802. static="false" final="false" visibility="public"
  29803. deprecated="not deprecated">
  29804. </method>
  29805. <doc>
  29806. <![CDATA[This is the base implementation class for services.]]>
  29807. </doc>
  29808. </class>
  29809. <!-- end class org.apache.hadoop.service.AbstractService -->
  29810. <!-- start class org.apache.hadoop.service.CompositeService -->
  29811. <class name="CompositeService" extends="org.apache.hadoop.service.AbstractService"
  29812. abstract="false"
  29813. static="false" final="false" visibility="public"
  29814. deprecated="not deprecated">
  29815. <constructor name="CompositeService" type="java.lang.String"
  29816. static="false" final="false" visibility="public"
  29817. deprecated="not deprecated">
  29818. </constructor>
  29819. <method name="getServices" return="java.util.List"
  29820. abstract="false" native="false" synchronized="false"
  29821. static="false" final="false" visibility="public"
  29822. deprecated="not deprecated">
  29823. <doc>
  29824. <![CDATA[Get a cloned list of services
  29825. @return a list of child services at the time of invocation -
  29826. added services will not be picked up.]]>
  29827. </doc>
  29828. </method>
  29829. <method name="addService"
  29830. abstract="false" native="false" synchronized="false"
  29831. static="false" final="false" visibility="protected"
  29832. deprecated="not deprecated">
  29833. <param name="service" type="org.apache.hadoop.service.Service"/>
  29834. <doc>
  29835. <![CDATA[Add the passed {@link Service} to the list of services managed by this
  29836. {@link CompositeService}
  29837. @param service the {@link Service} to be added]]>
  29838. </doc>
  29839. </method>
  29840. <method name="addIfService" return="boolean"
  29841. abstract="false" native="false" synchronized="false"
  29842. static="false" final="false" visibility="protected"
  29843. deprecated="not deprecated">
  29844. <param name="object" type="java.lang.Object"/>
  29845. <doc>
  29846. <![CDATA[If the passed object is an instance of {@link Service},
  29847. add it to the list of services managed by this {@link CompositeService}
  29848. @param object
  29849. @return true if a service is added, false otherwise.]]>
  29850. </doc>
  29851. </method>
  29852. <method name="removeService" return="boolean"
  29853. abstract="false" native="false" synchronized="true"
  29854. static="false" final="false" visibility="protected"
  29855. deprecated="not deprecated">
  29856. <param name="service" type="org.apache.hadoop.service.Service"/>
  29857. </method>
  29858. <method name="serviceInit"
  29859. abstract="false" native="false" synchronized="false"
  29860. static="false" final="false" visibility="protected"
  29861. deprecated="not deprecated">
  29862. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29863. <exception name="Exception" type="java.lang.Exception"/>
  29864. </method>
  29865. <method name="serviceStart"
  29866. abstract="false" native="false" synchronized="false"
  29867. static="false" final="false" visibility="protected"
  29868. deprecated="not deprecated">
  29869. <exception name="Exception" type="java.lang.Exception"/>
  29870. </method>
  29871. <method name="serviceStop"
  29872. abstract="false" native="false" synchronized="false"
  29873. static="false" final="false" visibility="protected"
  29874. deprecated="not deprecated">
  29875. <exception name="Exception" type="java.lang.Exception"/>
  29876. </method>
  29877. <field name="STOP_ONLY_STARTED_SERVICES" type="boolean"
  29878. transient="false" volatile="false"
  29879. static="true" final="true" visibility="protected"
  29880. deprecated="not deprecated">
  29881. <doc>
  29882. <![CDATA[Policy on shutdown: attempt to close everything (purest) or
  29883. only try to close started services (which assumes
  29884. that the service implementations may not handle the stop() operation
  29885. except when started.
  29886. Irrespective of this policy, if a child service fails during
  29887. its init() or start() operations, it will have stop() called on it.]]>
  29888. </doc>
  29889. </field>
  29890. <doc>
  29891. <![CDATA[Composition of services.]]>
  29892. </doc>
  29893. </class>
  29894. <!-- end class org.apache.hadoop.service.CompositeService -->
  29895. <!-- start class org.apache.hadoop.service.LifecycleEvent -->
  29896. <class name="LifecycleEvent" extends="java.lang.Object"
  29897. abstract="false"
  29898. static="false" final="false" visibility="public"
  29899. deprecated="not deprecated">
  29900. <implements name="java.io.Serializable"/>
  29901. <constructor name="LifecycleEvent"
  29902. static="false" final="false" visibility="public"
  29903. deprecated="not deprecated">
  29904. </constructor>
  29905. <field name="time" type="long"
  29906. transient="false" volatile="false"
  29907. static="false" final="false" visibility="public"
  29908. deprecated="not deprecated">
  29909. <doc>
  29910. <![CDATA[Local time in milliseconds when the event occurred]]>
  29911. </doc>
  29912. </field>
  29913. <field name="state" type="org.apache.hadoop.service.Service.STATE"
  29914. transient="false" volatile="false"
  29915. static="false" final="false" visibility="public"
  29916. deprecated="not deprecated">
  29917. <doc>
  29918. <![CDATA[new state]]>
  29919. </doc>
  29920. </field>
  29921. <doc>
  29922. <![CDATA[A serializable lifecycle event: the time a state
  29923. transition occurred, and what state was entered.]]>
  29924. </doc>
  29925. </class>
  29926. <!-- end class org.apache.hadoop.service.LifecycleEvent -->
  29927. <!-- start class org.apache.hadoop.service.LoggingStateChangeListener -->
  29928. <class name="LoggingStateChangeListener" extends="java.lang.Object"
  29929. abstract="false"
  29930. static="false" final="false" visibility="public"
  29931. deprecated="not deprecated">
  29932. <implements name="org.apache.hadoop.service.ServiceStateChangeListener"/>
  29933. <constructor name="LoggingStateChangeListener" type="org.apache.commons.logging.Log"
  29934. static="false" final="false" visibility="public"
  29935. deprecated="not deprecated">
  29936. <doc>
  29937. <![CDATA[Log events to the given log
  29938. @param log destination for events]]>
  29939. </doc>
  29940. </constructor>
  29941. <constructor name="LoggingStateChangeListener"
  29942. static="false" final="false" visibility="public"
  29943. deprecated="not deprecated">
  29944. <doc>
  29945. <![CDATA[Log events to the static log for this class]]>
  29946. </doc>
  29947. </constructor>
  29948. <method name="stateChanged"
  29949. abstract="false" native="false" synchronized="false"
  29950. static="false" final="false" visibility="public"
  29951. deprecated="not deprecated">
  29952. <param name="service" type="org.apache.hadoop.service.Service"/>
  29953. <doc>
  29954. <![CDATA[Callback for a state change event: log it
  29955. @param service the service that has changed.]]>
  29956. </doc>
  29957. </method>
  29958. <doc>
  29959. <![CDATA[This is a state change listener that logs events at INFO level]]>
  29960. </doc>
  29961. </class>
  29962. <!-- end class org.apache.hadoop.service.LoggingStateChangeListener -->
  29963. <!-- start interface org.apache.hadoop.service.Service -->
  29964. <interface name="Service" abstract="true"
  29965. static="false" final="false" visibility="public"
  29966. deprecated="not deprecated">
  29967. <implements name="java.io.Closeable"/>
  29968. <method name="init"
  29969. abstract="true" native="false" synchronized="false"
  29970. static="false" final="false" visibility="public"
  29971. deprecated="not deprecated">
  29972. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  29973. <doc>
  29974. <![CDATA[Initialize the service.
  29975. The transition MUST be from {@link STATE#NOTINITED} to {@link STATE#INITED}
  29976. unless the operation failed and an exception was raised, in which case
  29977. {@link #stop()} MUST be invoked and the service enter the state
  29978. {@link STATE#STOPPED}.
  29979. @param config the configuration of the service
  29980. @throws RuntimeException on any failure during the operation]]>
  29981. </doc>
  29982. </method>
  29983. <method name="start"
  29984. abstract="true" native="false" synchronized="false"
  29985. static="false" final="false" visibility="public"
  29986. deprecated="not deprecated">
  29987. <doc>
  29988. <![CDATA[Start the service.
  29989. The transition MUST be from {@link STATE#INITED} to {@link STATE#STARTED}
  29990. unless the operation failed and an exception was raised, in which case
  29991. {@link #stop()} MUST be invoked and the service enter the state
  29992. {@link STATE#STOPPED}.
  29993. @throws RuntimeException on any failure during the operation]]>
  29994. </doc>
  29995. </method>
  29996. <method name="stop"
  29997. abstract="true" native="false" synchronized="false"
  29998. static="false" final="false" visibility="public"
  29999. deprecated="not deprecated">
  30000. <doc>
  30001. <![CDATA[Stop the service. This MUST be a no-op if the service is already
  30002. in the {@link STATE#STOPPED} state. It SHOULD be a best-effort attempt
  30003. to stop all parts of the service.
  30004. The implementation must be designed to complete regardless of the service
  30005. state, including the initialized/uninitialized state of all its internal
  30006. fields.
  30007. @throws RuntimeException on any failure during the stop operation]]>
  30008. </doc>
  30009. </method>
  30010. <method name="close"
  30011. abstract="true" native="false" synchronized="false"
  30012. static="false" final="false" visibility="public"
  30013. deprecated="not deprecated">
  30014. <exception name="IOException" type="java.io.IOException"/>
  30015. <doc>
  30016. <![CDATA[A version of stop() that is designed to be usable in Java7 closure
  30017. clauses.
  30018. Implementation classes MUST relay this directly to {@link #stop()}
  30019. @throws IOException never
  30020. @throws RuntimeException on any failure during the stop operation]]>
  30021. </doc>
  30022. </method>
  30023. <method name="registerServiceListener"
  30024. abstract="true" native="false" synchronized="false"
  30025. static="false" final="false" visibility="public"
  30026. deprecated="not deprecated">
  30027. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30028. <doc>
  30029. <![CDATA[Register a listener to the service state change events.
  30030. If the supplied listener is already listening to this service,
  30031. this method is a no-op.
  30032. @param listener a new listener]]>
  30033. </doc>
  30034. </method>
  30035. <method name="unregisterServiceListener"
  30036. abstract="true" native="false" synchronized="false"
  30037. static="false" final="false" visibility="public"
  30038. deprecated="not deprecated">
  30039. <param name="listener" type="org.apache.hadoop.service.ServiceStateChangeListener"/>
  30040. <doc>
  30041. <![CDATA[Unregister a previously registered listener of the service state
  30042. change events. No-op if the listener is already unregistered.
  30043. @param listener the listener to unregister.]]>
  30044. </doc>
  30045. </method>
  30046. <method name="getName" return="java.lang.String"
  30047. abstract="true" native="false" synchronized="false"
  30048. static="false" final="false" visibility="public"
  30049. deprecated="not deprecated">
  30050. <doc>
  30051. <![CDATA[Get the name of this service.
  30052. @return the service name]]>
  30053. </doc>
  30054. </method>
  30055. <method name="getConfig" return="org.apache.hadoop.conf.Configuration"
  30056. abstract="true" native="false" synchronized="false"
  30057. static="false" final="false" visibility="public"
  30058. deprecated="not deprecated">
  30059. <doc>
  30060. <![CDATA[Get the configuration of this service.
  30061. This is normally not a clone and may be manipulated, though there are no
  30062. guarantees as to what the consequences of such actions may be
  30063. @return the current configuration, unless a specific implentation chooses
  30064. otherwise.]]>
  30065. </doc>
  30066. </method>
  30067. <method name="getServiceState" return="org.apache.hadoop.service.Service.STATE"
  30068. abstract="true" native="false" synchronized="false"
  30069. static="false" final="false" visibility="public"
  30070. deprecated="not deprecated">
  30071. <doc>
  30072. <![CDATA[Get the current service state
  30073. @return the state of the service]]>
  30074. </doc>
  30075. </method>
  30076. <method name="getStartTime" return="long"
  30077. abstract="true" native="false" synchronized="false"
  30078. static="false" final="false" visibility="public"
  30079. deprecated="not deprecated">
  30080. <doc>
  30081. <![CDATA[Get the service start time
  30082. @return the start time of the service. This will be zero if the service
  30083. has not yet been started.]]>
  30084. </doc>
  30085. </method>
  30086. <method name="isInState" return="boolean"
  30087. abstract="true" native="false" synchronized="false"
  30088. static="false" final="false" visibility="public"
  30089. deprecated="not deprecated">
  30090. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  30091. <doc>
  30092. <![CDATA[Query to see if the service is in a specific state.
  30093. In a multi-threaded system, the state may not hold for very long.
  30094. @param state the expected state
  30095. @return true if, at the time of invocation, the service was in that state.]]>
  30096. </doc>
  30097. </method>
  30098. <method name="getFailureCause" return="java.lang.Throwable"
  30099. abstract="true" native="false" synchronized="false"
  30100. static="false" final="false" visibility="public"
  30101. deprecated="not deprecated">
  30102. <doc>
  30103. <![CDATA[Get the first exception raised during the service failure. If null,
  30104. no exception was logged
  30105. @return the failure logged during a transition to the stopped state]]>
  30106. </doc>
  30107. </method>
  30108. <method name="getFailureState" return="org.apache.hadoop.service.Service.STATE"
  30109. abstract="true" native="false" synchronized="false"
  30110. static="false" final="false" visibility="public"
  30111. deprecated="not deprecated">
  30112. <doc>
  30113. <![CDATA[Get the state in which the failure in {@link #getFailureCause()} occurred.
  30114. @return the state or null if there was no failure]]>
  30115. </doc>
  30116. </method>
  30117. <method name="waitForServiceToStop" return="boolean"
  30118. abstract="true" native="false" synchronized="false"
  30119. static="false" final="false" visibility="public"
  30120. deprecated="not deprecated">
  30121. <param name="timeout" type="long"/>
  30122. <doc>
  30123. <![CDATA[Block waiting for the service to stop; uses the termination notification
  30124. object to do so.
  30125. This method will only return after all the service stop actions
  30126. have been executed (to success or failure), or the timeout elapsed
  30127. This method can be called before the service is inited or started; this is
  30128. to eliminate any race condition with the service stopping before
  30129. this event occurs.
  30130. @param timeout timeout in milliseconds. A value of zero means "forever"
  30131. @return true iff the service stopped in the time period]]>
  30132. </doc>
  30133. </method>
  30134. <method name="getLifecycleHistory" return="java.util.List"
  30135. abstract="true" native="false" synchronized="false"
  30136. static="false" final="false" visibility="public"
  30137. deprecated="not deprecated">
  30138. <doc>
  30139. <![CDATA[Get a snapshot of the lifecycle history; it is a static list
  30140. @return a possibly empty but never null list of lifecycle events.]]>
  30141. </doc>
  30142. </method>
  30143. <method name="getBlockers" return="java.util.Map"
  30144. abstract="true" native="false" synchronized="false"
  30145. static="false" final="false" visibility="public"
  30146. deprecated="not deprecated">
  30147. <doc>
  30148. <![CDATA[Get the blockers on a service -remote dependencies
  30149. that are stopping the service from being <i>live</i>.
  30150. @return a (snapshotted) map of blocker name-&gt;description values]]>
  30151. </doc>
  30152. </method>
  30153. <doc>
  30154. <![CDATA[Service LifeCycle.]]>
  30155. </doc>
  30156. </interface>
  30157. <!-- end interface org.apache.hadoop.service.Service -->
  30158. <!-- start class org.apache.hadoop.service.ServiceOperations -->
  30159. <class name="ServiceOperations" extends="java.lang.Object"
  30160. abstract="false"
  30161. static="false" final="true" visibility="public"
  30162. deprecated="not deprecated">
  30163. <method name="stop"
  30164. abstract="false" native="false" synchronized="false"
  30165. static="true" final="false" visibility="public"
  30166. deprecated="not deprecated">
  30167. <param name="service" type="org.apache.hadoop.service.Service"/>
  30168. <doc>
  30169. <![CDATA[Stop a service.
  30170. <p/>Do nothing if the service is null or not
  30171. in a state in which it can be/needs to be stopped.
  30172. <p/>
  30173. The service state is checked <i>before</i> the operation begins.
  30174. This process is <i>not</i> thread safe.
  30175. @param service a service or null]]>
  30176. </doc>
  30177. </method>
  30178. <method name="stopQuietly" return="java.lang.Exception"
  30179. abstract="false" native="false" synchronized="false"
  30180. static="true" final="false" visibility="public"
  30181. deprecated="not deprecated">
  30182. <param name="service" type="org.apache.hadoop.service.Service"/>
  30183. <doc>
  30184. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  30185. logged at warn level. (but not Throwables). This operation is intended to
  30186. be used in cleanup operations
  30187. @param service a service; may be null
  30188. @return any exception that was caught; null if none was.]]>
  30189. </doc>
  30190. </method>
  30191. <method name="stopQuietly" return="java.lang.Exception"
  30192. abstract="false" native="false" synchronized="false"
  30193. static="true" final="false" visibility="public"
  30194. deprecated="not deprecated">
  30195. <param name="log" type="org.apache.commons.logging.Log"/>
  30196. <param name="service" type="org.apache.hadoop.service.Service"/>
  30197. <doc>
  30198. <![CDATA[Stop a service; if it is null do nothing. Exceptions are caught and
  30199. logged at warn level. (but not Throwables). This operation is intended to
  30200. be used in cleanup operations
  30201. @param log the log to warn at
  30202. @param service a service; may be null
  30203. @return any exception that was caught; null if none was.
  30204. @see ServiceOperations#stopQuietly(Service)]]>
  30205. </doc>
  30206. </method>
  30207. <doc>
  30208. <![CDATA[This class contains a set of methods to work with services, especially
  30209. to walk them through their lifecycle.]]>
  30210. </doc>
  30211. </class>
  30212. <!-- end class org.apache.hadoop.service.ServiceOperations -->
  30213. <!-- start interface org.apache.hadoop.service.ServiceStateChangeListener -->
  30214. <interface name="ServiceStateChangeListener" abstract="true"
  30215. static="false" final="false" visibility="public"
  30216. deprecated="not deprecated">
  30217. <method name="stateChanged"
  30218. abstract="true" native="false" synchronized="false"
  30219. static="false" final="false" visibility="public"
  30220. deprecated="not deprecated">
  30221. <param name="service" type="org.apache.hadoop.service.Service"/>
  30222. <doc>
  30223. <![CDATA[Callback to notify of a state change. The service will already
  30224. have changed state before this callback is invoked.
  30225. This operation is invoked on the thread that initiated the state change,
  30226. while the service itself in in a sychronized section.
  30227. <ol>
  30228. <li>Any long-lived operation here will prevent the service state
  30229. change from completing in a timely manner.</li>
  30230. <li>If another thread is somehow invoked from the listener, and
  30231. that thread invokes the methods of the service (including
  30232. subclass-specific methods), there is a risk of a deadlock.</li>
  30233. </ol>
  30234. @param service the service that has changed.]]>
  30235. </doc>
  30236. </method>
  30237. <doc>
  30238. <![CDATA[Interface to notify state changes of a service.]]>
  30239. </doc>
  30240. </interface>
  30241. <!-- end interface org.apache.hadoop.service.ServiceStateChangeListener -->
  30242. <!-- start class org.apache.hadoop.service.ServiceStateException -->
  30243. <class name="ServiceStateException" extends="java.lang.RuntimeException"
  30244. abstract="false"
  30245. static="false" final="false" visibility="public"
  30246. deprecated="not deprecated">
  30247. <constructor name="ServiceStateException" type="java.lang.String"
  30248. static="false" final="false" visibility="public"
  30249. deprecated="not deprecated">
  30250. </constructor>
  30251. <constructor name="ServiceStateException" type="java.lang.String, java.lang.Throwable"
  30252. static="false" final="false" visibility="public"
  30253. deprecated="not deprecated">
  30254. </constructor>
  30255. <constructor name="ServiceStateException" type="java.lang.Throwable"
  30256. static="false" final="false" visibility="public"
  30257. deprecated="not deprecated">
  30258. </constructor>
  30259. <method name="convert" return="java.lang.RuntimeException"
  30260. abstract="false" native="false" synchronized="false"
  30261. static="true" final="false" visibility="public"
  30262. deprecated="not deprecated">
  30263. <param name="fault" type="java.lang.Throwable"/>
  30264. <doc>
  30265. <![CDATA[Convert any exception into a {@link RuntimeException}.
  30266. If the caught exception is already of that type, it is typecast to a
  30267. {@link RuntimeException} and returned.
  30268. All other exception types are wrapped in a new instance of
  30269. ServiceStateException
  30270. @param fault exception or throwable
  30271. @return a ServiceStateException to rethrow]]>
  30272. </doc>
  30273. </method>
  30274. <method name="convert" return="java.lang.RuntimeException"
  30275. abstract="false" native="false" synchronized="false"
  30276. static="true" final="false" visibility="public"
  30277. deprecated="not deprecated">
  30278. <param name="text" type="java.lang.String"/>
  30279. <param name="fault" type="java.lang.Throwable"/>
  30280. <doc>
  30281. <![CDATA[Convert any exception into a {@link RuntimeException}.
  30282. If the caught exception is already of that type, it is typecast to a
  30283. {@link RuntimeException} and returned.
  30284. All other exception types are wrapped in a new instance of
  30285. ServiceStateException
  30286. @param text text to use if a new exception is created
  30287. @param fault exception or throwable
  30288. @return a ServiceStateException to rethrow]]>
  30289. </doc>
  30290. </method>
  30291. <doc>
  30292. <![CDATA[Exception that is raised on state change operations.]]>
  30293. </doc>
  30294. </class>
  30295. <!-- end class org.apache.hadoop.service.ServiceStateException -->
  30296. <!-- start class org.apache.hadoop.service.ServiceStateModel -->
  30297. <class name="ServiceStateModel" extends="java.lang.Object"
  30298. abstract="false"
  30299. static="false" final="false" visibility="public"
  30300. deprecated="not deprecated">
  30301. <constructor name="ServiceStateModel" type="java.lang.String"
  30302. static="false" final="false" visibility="public"
  30303. deprecated="not deprecated">
  30304. <doc>
  30305. <![CDATA[Create the service state model in the {@link Service.STATE#NOTINITED}
  30306. state.]]>
  30307. </doc>
  30308. </constructor>
  30309. <constructor name="ServiceStateModel" type="java.lang.String, org.apache.hadoop.service.Service.STATE"
  30310. static="false" final="false" visibility="public"
  30311. deprecated="not deprecated">
  30312. <doc>
  30313. <![CDATA[Create a service state model instance in the chosen state
  30314. @param state the starting state]]>
  30315. </doc>
  30316. </constructor>
  30317. <method name="getState" return="org.apache.hadoop.service.Service.STATE"
  30318. abstract="false" native="false" synchronized="false"
  30319. static="false" final="false" visibility="public"
  30320. deprecated="not deprecated">
  30321. <doc>
  30322. <![CDATA[Query the service state. This is a non-blocking operation.
  30323. @return the state]]>
  30324. </doc>
  30325. </method>
  30326. <method name="isInState" return="boolean"
  30327. abstract="false" native="false" synchronized="false"
  30328. static="false" final="false" visibility="public"
  30329. deprecated="not deprecated">
  30330. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  30331. <doc>
  30332. <![CDATA[Query that the state is in a specific state
  30333. @param proposed proposed new state
  30334. @return the state]]>
  30335. </doc>
  30336. </method>
  30337. <method name="ensureCurrentState"
  30338. abstract="false" native="false" synchronized="false"
  30339. static="false" final="false" visibility="public"
  30340. deprecated="not deprecated">
  30341. <param name="expectedState" type="org.apache.hadoop.service.Service.STATE"/>
  30342. <doc>
  30343. <![CDATA[Verify that that a service is in a given state.
  30344. @param expectedState the desired state
  30345. @throws ServiceStateException if the service state is different from
  30346. the desired state]]>
  30347. </doc>
  30348. </method>
  30349. <method name="enterState" return="org.apache.hadoop.service.Service.STATE"
  30350. abstract="false" native="false" synchronized="true"
  30351. static="false" final="false" visibility="public"
  30352. deprecated="not deprecated">
  30353. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  30354. <doc>
  30355. <![CDATA[Enter a state -thread safe.
  30356. @param proposed proposed new state
  30357. @return the original state
  30358. @throws ServiceStateException if the transition is not permitted]]>
  30359. </doc>
  30360. </method>
  30361. <method name="checkStateTransition"
  30362. abstract="false" native="false" synchronized="false"
  30363. static="true" final="false" visibility="public"
  30364. deprecated="not deprecated">
  30365. <param name="name" type="java.lang.String"/>
  30366. <param name="state" type="org.apache.hadoop.service.Service.STATE"/>
  30367. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  30368. <doc>
  30369. <![CDATA[Check that a state tansition is valid and
  30370. throw an exception if not
  30371. @param name name of the service (can be null)
  30372. @param state current state
  30373. @param proposed proposed new state]]>
  30374. </doc>
  30375. </method>
  30376. <method name="isValidStateTransition" return="boolean"
  30377. abstract="false" native="false" synchronized="false"
  30378. static="true" final="false" visibility="public"
  30379. deprecated="not deprecated">
  30380. <param name="current" type="org.apache.hadoop.service.Service.STATE"/>
  30381. <param name="proposed" type="org.apache.hadoop.service.Service.STATE"/>
  30382. <doc>
  30383. <![CDATA[Is a state transition valid?
  30384. There are no checks for current==proposed
  30385. as that is considered a non-transition.
  30386. using an array kills off all branch misprediction costs, at the expense
  30387. of cache line misses.
  30388. @param current current state
  30389. @param proposed proposed new state
  30390. @return true if the transition to a new state is valid]]>
  30391. </doc>
  30392. </method>
  30393. <method name="toString" return="java.lang.String"
  30394. abstract="false" native="false" synchronized="false"
  30395. static="false" final="false" visibility="public"
  30396. deprecated="not deprecated">
  30397. <doc>
  30398. <![CDATA[return the state text as the toString() value
  30399. @return the current state's description]]>
  30400. </doc>
  30401. </method>
  30402. <doc>
  30403. <![CDATA[Implements the service state model.]]>
  30404. </doc>
  30405. </class>
  30406. <!-- end class org.apache.hadoop.service.ServiceStateModel -->
  30407. </package>
  30408. <package name="org.apache.hadoop.tools.protocolPB">
  30409. </package>
  30410. <package name="org.apache.hadoop.tracing">
  30411. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfo -->
  30412. <class name="SpanReceiverInfo" extends="java.lang.Object"
  30413. abstract="false"
  30414. static="false" final="false" visibility="public"
  30415. deprecated="not deprecated">
  30416. <method name="getId" return="long"
  30417. abstract="false" native="false" synchronized="false"
  30418. static="false" final="false" visibility="public"
  30419. deprecated="not deprecated">
  30420. </method>
  30421. <method name="getClassName" return="java.lang.String"
  30422. abstract="false" native="false" synchronized="false"
  30423. static="false" final="false" visibility="public"
  30424. deprecated="not deprecated">
  30425. </method>
  30426. </class>
  30427. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfo -->
  30428. <!-- start class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  30429. <class name="SpanReceiverInfoBuilder" extends="java.lang.Object"
  30430. abstract="false"
  30431. static="false" final="false" visibility="public"
  30432. deprecated="not deprecated">
  30433. <constructor name="SpanReceiverInfoBuilder" type="java.lang.String"
  30434. static="false" final="false" visibility="public"
  30435. deprecated="not deprecated">
  30436. </constructor>
  30437. <method name="addConfigurationPair"
  30438. abstract="false" native="false" synchronized="false"
  30439. static="false" final="false" visibility="public"
  30440. deprecated="not deprecated">
  30441. <param name="key" type="java.lang.String"/>
  30442. <param name="value" type="java.lang.String"/>
  30443. </method>
  30444. <method name="build" return="org.apache.hadoop.tracing.SpanReceiverInfo"
  30445. abstract="false" native="false" synchronized="false"
  30446. static="false" final="false" visibility="public"
  30447. deprecated="not deprecated">
  30448. </method>
  30449. </class>
  30450. <!-- end class org.apache.hadoop.tracing.SpanReceiverInfoBuilder -->
  30451. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  30452. <interface name="TraceAdminProtocol" abstract="true"
  30453. static="false" final="false" visibility="public"
  30454. deprecated="not deprecated">
  30455. <method name="listSpanReceivers" return="org.apache.hadoop.tracing.SpanReceiverInfo[]"
  30456. abstract="true" native="false" synchronized="false"
  30457. static="false" final="false" visibility="public"
  30458. deprecated="not deprecated">
  30459. <exception name="IOException" type="java.io.IOException"/>
  30460. <doc>
  30461. <![CDATA[List the currently active trace span receivers.
  30462. @throws IOException On error.]]>
  30463. </doc>
  30464. </method>
  30465. <method name="addSpanReceiver" return="long"
  30466. abstract="true" native="false" synchronized="false"
  30467. static="false" final="false" visibility="public"
  30468. deprecated="not deprecated">
  30469. <param name="desc" type="org.apache.hadoop.tracing.SpanReceiverInfo"/>
  30470. <exception name="IOException" type="java.io.IOException"/>
  30471. <doc>
  30472. <![CDATA[Add a new trace span receiver.
  30473. @param desc The span receiver description.
  30474. @return The ID of the new trace span receiver.
  30475. @throws IOException On error.]]>
  30476. </doc>
  30477. </method>
  30478. <method name="removeSpanReceiver"
  30479. abstract="true" native="false" synchronized="false"
  30480. static="false" final="false" visibility="public"
  30481. deprecated="not deprecated">
  30482. <param name="spanReceiverId" type="long"/>
  30483. <exception name="IOException" type="java.io.IOException"/>
  30484. <doc>
  30485. <![CDATA[Remove a trace span receiver.
  30486. @param spanReceiverId The id of the span receiver to remove.
  30487. @throws IOException On error.]]>
  30488. </doc>
  30489. </method>
  30490. <field name="versionID" type="long"
  30491. transient="false" volatile="false"
  30492. static="true" final="true" visibility="public"
  30493. deprecated="not deprecated">
  30494. </field>
  30495. <doc>
  30496. <![CDATA[Protocol interface that provides tracing.]]>
  30497. </doc>
  30498. </interface>
  30499. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocol -->
  30500. <!-- start interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  30501. <interface name="TraceAdminProtocolPB" abstract="true"
  30502. static="false" final="false" visibility="public"
  30503. deprecated="not deprecated">
  30504. <implements name="org.apache.hadoop.tracing.TraceAdminPB.TraceAdminService.BlockingInterface"/>
  30505. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  30506. </interface>
  30507. <!-- end interface org.apache.hadoop.tracing.TraceAdminProtocolPB -->
  30508. </package>
  30509. <package name="org.apache.hadoop.util">
  30510. <!-- start class org.apache.hadoop.util.ApplicationClassLoader -->
  30511. <class name="ApplicationClassLoader" extends="java.net.URLClassLoader"
  30512. abstract="false"
  30513. static="false" final="false" visibility="public"
  30514. deprecated="not deprecated">
  30515. <constructor name="ApplicationClassLoader" type="java.net.URL[], java.lang.ClassLoader, java.util.List"
  30516. static="false" final="false" visibility="public"
  30517. deprecated="not deprecated">
  30518. </constructor>
  30519. <constructor name="ApplicationClassLoader" type="java.lang.String, java.lang.ClassLoader, java.util.List"
  30520. static="false" final="false" visibility="public"
  30521. deprecated="not deprecated">
  30522. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  30523. </constructor>
  30524. <method name="getResource" return="java.net.URL"
  30525. abstract="false" native="false" synchronized="false"
  30526. static="false" final="false" visibility="public"
  30527. deprecated="not deprecated">
  30528. <param name="name" type="java.lang.String"/>
  30529. </method>
  30530. <method name="loadClass" return="java.lang.Class"
  30531. abstract="false" native="false" synchronized="false"
  30532. static="false" final="false" visibility="public"
  30533. deprecated="not deprecated">
  30534. <param name="name" type="java.lang.String"/>
  30535. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  30536. </method>
  30537. <method name="loadClass" return="java.lang.Class"
  30538. abstract="false" native="false" synchronized="true"
  30539. static="false" final="false" visibility="protected"
  30540. deprecated="not deprecated">
  30541. <param name="name" type="java.lang.String"/>
  30542. <param name="resolve" type="boolean"/>
  30543. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  30544. </method>
  30545. <method name="isSystemClass" return="boolean"
  30546. abstract="false" native="false" synchronized="false"
  30547. static="true" final="false" visibility="public"
  30548. deprecated="not deprecated">
  30549. <param name="name" type="java.lang.String"/>
  30550. <param name="systemClasses" type="java.util.List"/>
  30551. <doc>
  30552. <![CDATA[Checks if a class should be included as a system class.
  30553. A class is a system class if and only if it matches one of the positive
  30554. patterns and none of the negative ones.
  30555. @param name the class name to check
  30556. @param systemClasses a list of system class configurations.
  30557. @return true if the class is a system class]]>
  30558. </doc>
  30559. </method>
  30560. <field name="SYSTEM_CLASSES_DEFAULT" type="java.lang.String"
  30561. transient="false" volatile="false"
  30562. static="true" final="true" visibility="public"
  30563. deprecated="not deprecated">
  30564. <doc>
  30565. <![CDATA[Default value of the system classes if the user did not override them.
  30566. JDK classes, hadoop classes and resources, and some select third-party
  30567. classes are considered system classes, and are not loaded by the
  30568. application classloader.]]>
  30569. </doc>
  30570. </field>
  30571. <doc>
  30572. <![CDATA[A {@link URLClassLoader} for application isolation. Classes from the
  30573. application JARs are loaded in preference to the parent loader.]]>
  30574. </doc>
  30575. </class>
  30576. <!-- end class org.apache.hadoop.util.ApplicationClassLoader -->
  30577. <!-- start interface org.apache.hadoop.util.IPList -->
  30578. <interface name="IPList" abstract="true"
  30579. static="false" final="false" visibility="public"
  30580. deprecated="not deprecated">
  30581. <method name="isIn" return="boolean"
  30582. abstract="true" native="false" synchronized="false"
  30583. static="false" final="false" visibility="public"
  30584. deprecated="not deprecated">
  30585. <param name="ipAddress" type="java.lang.String"/>
  30586. <doc>
  30587. <![CDATA[returns true if the ipAddress is in the IPList.
  30588. @param ipAddress
  30589. @return boolean value indicating whether the ipAddress is in the IPList]]>
  30590. </doc>
  30591. </method>
  30592. </interface>
  30593. <!-- end interface org.apache.hadoop.util.IPList -->
  30594. <!-- start interface org.apache.hadoop.util.Progressable -->
  30595. <interface name="Progressable" abstract="true"
  30596. static="false" final="false" visibility="public"
  30597. deprecated="not deprecated">
  30598. <method name="progress"
  30599. abstract="true" native="false" synchronized="false"
  30600. static="false" final="false" visibility="public"
  30601. deprecated="not deprecated">
  30602. <doc>
  30603. <![CDATA[Report progress to the Hadoop framework.]]>
  30604. </doc>
  30605. </method>
  30606. <doc>
  30607. <![CDATA[A facility for reporting progress.
  30608. <p>Clients and/or applications can use the provided <code>Progressable</code>
  30609. to explicitly report progress to the Hadoop framework. This is especially
  30610. important for operations which take significant amount of time since,
  30611. in-lieu of the reported progress, the framework has to assume that an error
  30612. has occured and time-out the operation.</p>]]>
  30613. </doc>
  30614. </interface>
  30615. <!-- end interface org.apache.hadoop.util.Progressable -->
  30616. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  30617. <class name="PureJavaCrc32" extends="java.lang.Object"
  30618. abstract="false"
  30619. static="false" final="false" visibility="public"
  30620. deprecated="not deprecated">
  30621. <implements name="java.util.zip.Checksum"/>
  30622. <constructor name="PureJavaCrc32"
  30623. static="false" final="false" visibility="public"
  30624. deprecated="not deprecated">
  30625. <doc>
  30626. <![CDATA[Create a new PureJavaCrc32 object.]]>
  30627. </doc>
  30628. </constructor>
  30629. <method name="getValue" return="long"
  30630. abstract="false" native="false" synchronized="false"
  30631. static="false" final="false" visibility="public"
  30632. deprecated="not deprecated">
  30633. </method>
  30634. <method name="reset"
  30635. abstract="false" native="false" synchronized="false"
  30636. static="false" final="false" visibility="public"
  30637. deprecated="not deprecated">
  30638. </method>
  30639. <method name="update"
  30640. abstract="false" native="false" synchronized="false"
  30641. static="false" final="false" visibility="public"
  30642. deprecated="not deprecated">
  30643. <param name="b" type="byte[]"/>
  30644. <param name="offset" type="int"/>
  30645. <param name="len" type="int"/>
  30646. </method>
  30647. <method name="update"
  30648. abstract="false" native="false" synchronized="false"
  30649. static="false" final="true" visibility="public"
  30650. deprecated="not deprecated">
  30651. <param name="b" type="int"/>
  30652. </method>
  30653. <doc>
  30654. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  30655. the same polynomial as the built-in native CRC32.
  30656. This is to avoid the JNI overhead for certain uses of Checksumming
  30657. where many small pieces of data are checksummed in succession.
  30658. The current version is ~10x to 1.8x as fast as Sun's native
  30659. java.util.zip.CRC32 in Java 1.6
  30660. @see java.util.zip.CRC32]]>
  30661. </doc>
  30662. </class>
  30663. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  30664. <!-- start class org.apache.hadoop.util.PureJavaCrc32C -->
  30665. <class name="PureJavaCrc32C" extends="java.lang.Object"
  30666. abstract="false"
  30667. static="false" final="false" visibility="public"
  30668. deprecated="not deprecated">
  30669. <implements name="java.util.zip.Checksum"/>
  30670. <constructor name="PureJavaCrc32C"
  30671. static="false" final="false" visibility="public"
  30672. deprecated="not deprecated">
  30673. <doc>
  30674. <![CDATA[Create a new PureJavaCrc32 object.]]>
  30675. </doc>
  30676. </constructor>
  30677. <method name="getValue" return="long"
  30678. abstract="false" native="false" synchronized="false"
  30679. static="false" final="false" visibility="public"
  30680. deprecated="not deprecated">
  30681. </method>
  30682. <method name="reset"
  30683. abstract="false" native="false" synchronized="false"
  30684. static="false" final="false" visibility="public"
  30685. deprecated="not deprecated">
  30686. </method>
  30687. <method name="update"
  30688. abstract="false" native="false" synchronized="false"
  30689. static="false" final="false" visibility="public"
  30690. deprecated="not deprecated">
  30691. <param name="b" type="byte[]"/>
  30692. <param name="off" type="int"/>
  30693. <param name="len" type="int"/>
  30694. </method>
  30695. <method name="update"
  30696. abstract="false" native="false" synchronized="false"
  30697. static="false" final="true" visibility="public"
  30698. deprecated="not deprecated">
  30699. <param name="b" type="int"/>
  30700. </method>
  30701. <doc>
  30702. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  30703. the CRC32-C polynomial, the same polynomial used by iSCSI
  30704. and implemented on many Intel chipsets supporting SSE4.2.]]>
  30705. </doc>
  30706. </class>
  30707. <!-- end class org.apache.hadoop.util.PureJavaCrc32C -->
  30708. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  30709. <class name="ReflectionUtils" extends="java.lang.Object"
  30710. abstract="false"
  30711. static="false" final="false" visibility="public"
  30712. deprecated="not deprecated">
  30713. <constructor name="ReflectionUtils"
  30714. static="false" final="false" visibility="public"
  30715. deprecated="not deprecated">
  30716. </constructor>
  30717. <method name="setConf"
  30718. abstract="false" native="false" synchronized="false"
  30719. static="true" final="false" visibility="public"
  30720. deprecated="not deprecated">
  30721. <param name="theObject" type="java.lang.Object"/>
  30722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30723. <doc>
  30724. <![CDATA[Check and set 'configuration' if necessary.
  30725. @param theObject object for which to set configuration
  30726. @param conf Configuration]]>
  30727. </doc>
  30728. </method>
  30729. <method name="newInstance" return="T"
  30730. abstract="false" native="false" synchronized="false"
  30731. static="true" final="false" visibility="public"
  30732. deprecated="not deprecated">
  30733. <param name="theClass" type="java.lang.Class"/>
  30734. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30735. <doc>
  30736. <![CDATA[Create an object for the given class and initialize it from conf
  30737. @param theClass class of which an object is created
  30738. @param conf Configuration
  30739. @return a new object]]>
  30740. </doc>
  30741. </method>
  30742. <method name="setContentionTracing"
  30743. abstract="false" native="false" synchronized="false"
  30744. static="true" final="false" visibility="public"
  30745. deprecated="not deprecated">
  30746. <param name="val" type="boolean"/>
  30747. </method>
  30748. <method name="printThreadInfo"
  30749. abstract="false" native="false" synchronized="true"
  30750. static="true" final="false" visibility="public"
  30751. deprecated="not deprecated">
  30752. <param name="stream" type="java.io.PrintStream"/>
  30753. <param name="title" type="java.lang.String"/>
  30754. <doc>
  30755. <![CDATA[Print all of the thread's information and stack traces.
  30756. @param stream the stream to
  30757. @param title a string title for the stack trace]]>
  30758. </doc>
  30759. </method>
  30760. <method name="logThreadInfo"
  30761. abstract="false" native="false" synchronized="false"
  30762. static="true" final="false" visibility="public"
  30763. deprecated="not deprecated">
  30764. <param name="log" type="org.apache.commons.logging.Log"/>
  30765. <param name="title" type="java.lang.String"/>
  30766. <param name="minInterval" type="long"/>
  30767. <doc>
  30768. <![CDATA[Log the current thread stacks at INFO level.
  30769. @param log the logger that logs the stack trace
  30770. @param title a descriptive title for the call stacks
  30771. @param minInterval the minimum time from the last]]>
  30772. </doc>
  30773. </method>
  30774. <method name="getClass" return="java.lang.Class"
  30775. abstract="false" native="false" synchronized="false"
  30776. static="true" final="false" visibility="public"
  30777. deprecated="not deprecated">
  30778. <param name="o" type="T"/>
  30779. <doc>
  30780. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  30781. @param o object whose correctly-typed <code>Class</code> is to be obtained
  30782. @return the correctly typed <code>Class</code> of the given object.]]>
  30783. </doc>
  30784. </method>
  30785. <method name="copy" return="T"
  30786. abstract="false" native="false" synchronized="false"
  30787. static="true" final="false" visibility="public"
  30788. deprecated="not deprecated">
  30789. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30790. <param name="src" type="T"/>
  30791. <param name="dst" type="T"/>
  30792. <exception name="IOException" type="java.io.IOException"/>
  30793. <doc>
  30794. <![CDATA[Make a copy of the writable object using serialization to a buffer
  30795. @param src the object to copy from
  30796. @param dst the object to copy into, which is destroyed
  30797. @return dst param (the copy)
  30798. @throws IOException]]>
  30799. </doc>
  30800. </method>
  30801. <method name="cloneWritableInto"
  30802. abstract="false" native="false" synchronized="false"
  30803. static="true" final="false" visibility="public"
  30804. deprecated="not deprecated">
  30805. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  30806. <param name="src" type="org.apache.hadoop.io.Writable"/>
  30807. <exception name="IOException" type="java.io.IOException"/>
  30808. </method>
  30809. <method name="getDeclaredFieldsIncludingInherited" return="java.util.List"
  30810. abstract="false" native="false" synchronized="false"
  30811. static="true" final="false" visibility="public"
  30812. deprecated="not deprecated">
  30813. <param name="clazz" type="java.lang.Class"/>
  30814. <doc>
  30815. <![CDATA[Gets all the declared fields of a class including fields declared in
  30816. superclasses.]]>
  30817. </doc>
  30818. </method>
  30819. <method name="getDeclaredMethodsIncludingInherited" return="java.util.List"
  30820. abstract="false" native="false" synchronized="false"
  30821. static="true" final="false" visibility="public"
  30822. deprecated="not deprecated">
  30823. <param name="clazz" type="java.lang.Class"/>
  30824. <doc>
  30825. <![CDATA[Gets all the declared methods of a class including methods declared in
  30826. superclasses.]]>
  30827. </doc>
  30828. </method>
  30829. <doc>
  30830. <![CDATA[General reflection utils]]>
  30831. </doc>
  30832. </class>
  30833. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  30834. <!-- start class org.apache.hadoop.util.StringInterner -->
  30835. <class name="StringInterner" extends="java.lang.Object"
  30836. abstract="false"
  30837. static="false" final="false" visibility="public"
  30838. deprecated="not deprecated">
  30839. <constructor name="StringInterner"
  30840. static="false" final="false" visibility="public"
  30841. deprecated="not deprecated">
  30842. </constructor>
  30843. <method name="strongIntern" return="java.lang.String"
  30844. abstract="false" native="false" synchronized="false"
  30845. static="true" final="false" visibility="public"
  30846. deprecated="not deprecated">
  30847. <param name="sample" type="java.lang.String"/>
  30848. <doc>
  30849. <![CDATA[Interns and returns a reference to the representative instance
  30850. for any of a collection of string instances that are equal to each other.
  30851. Retains strong reference to the instance,
  30852. thus preventing it from being garbage-collected.
  30853. @param sample string instance to be interned
  30854. @return strong reference to interned string instance]]>
  30855. </doc>
  30856. </method>
  30857. <method name="weakIntern" return="java.lang.String"
  30858. abstract="false" native="false" synchronized="false"
  30859. static="true" final="false" visibility="public"
  30860. deprecated="not deprecated">
  30861. <param name="sample" type="java.lang.String"/>
  30862. <doc>
  30863. <![CDATA[Interns and returns a reference to the representative instance
  30864. for any of a collection of string instances that are equal to each other.
  30865. Retains weak reference to the instance,
  30866. and so does not prevent it from being garbage-collected.
  30867. @param sample string instance to be interned
  30868. @return weak reference to interned string instance]]>
  30869. </doc>
  30870. </method>
  30871. <doc>
  30872. <![CDATA[Provides equivalent behavior to String.intern() to optimize performance,
  30873. whereby does not consume memory in the permanent generation.]]>
  30874. </doc>
  30875. </class>
  30876. <!-- end class org.apache.hadoop.util.StringInterner -->
  30877. <!-- start interface org.apache.hadoop.util.Tool -->
  30878. <interface name="Tool" abstract="true"
  30879. static="false" final="false" visibility="public"
  30880. deprecated="not deprecated">
  30881. <implements name="org.apache.hadoop.conf.Configurable"/>
  30882. <method name="run" return="int"
  30883. abstract="true" native="false" synchronized="false"
  30884. static="false" final="false" visibility="public"
  30885. deprecated="not deprecated">
  30886. <param name="args" type="java.lang.String[]"/>
  30887. <exception name="Exception" type="java.lang.Exception"/>
  30888. <doc>
  30889. <![CDATA[Execute the command with the given arguments.
  30890. @param args command specific arguments.
  30891. @return exit code.
  30892. @throws Exception]]>
  30893. </doc>
  30894. </method>
  30895. <doc>
  30896. <![CDATA[A tool interface that supports handling of generic command-line options.
  30897. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  30898. The tool/application should delegate the handling of
  30899. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  30900. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  30901. and only handle its custom arguments.</p>
  30902. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  30903. <p><blockquote><pre>
  30904. public class MyApp extends Configured implements Tool {
  30905. public int run(String[] args) throws Exception {
  30906. // <code>Configuration</code> processed by <code>ToolRunner</code>
  30907. Configuration conf = getConf();
  30908. // Create a JobConf using the processed <code>conf</code>
  30909. JobConf job = new JobConf(conf, MyApp.class);
  30910. // Process custom command-line options
  30911. Path in = new Path(args[1]);
  30912. Path out = new Path(args[2]);
  30913. // Specify various job-specific parameters
  30914. job.setJobName("my-app");
  30915. job.setInputPath(in);
  30916. job.setOutputPath(out);
  30917. job.setMapperClass(MyMapper.class);
  30918. job.setReducerClass(MyReducer.class);
  30919. // Submit the job, then poll for progress until the job is complete
  30920. JobClient.runJob(job);
  30921. return 0;
  30922. }
  30923. public static void main(String[] args) throws Exception {
  30924. // Let <code>ToolRunner</code> handle generic command-line options
  30925. int res = ToolRunner.run(new Configuration(), new MyApp(), args);
  30926. System.exit(res);
  30927. }
  30928. }
  30929. </pre></blockquote></p>
  30930. @see GenericOptionsParser
  30931. @see ToolRunner]]>
  30932. </doc>
  30933. </interface>
  30934. <!-- end interface org.apache.hadoop.util.Tool -->
  30935. <!-- start class org.apache.hadoop.util.ToolRunner -->
  30936. <class name="ToolRunner" extends="java.lang.Object"
  30937. abstract="false"
  30938. static="false" final="false" visibility="public"
  30939. deprecated="not deprecated">
  30940. <constructor name="ToolRunner"
  30941. static="false" final="false" visibility="public"
  30942. deprecated="not deprecated">
  30943. </constructor>
  30944. <method name="run" return="int"
  30945. abstract="false" native="false" synchronized="false"
  30946. static="true" final="false" visibility="public"
  30947. deprecated="not deprecated">
  30948. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30949. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  30950. <param name="args" type="java.lang.String[]"/>
  30951. <exception name="Exception" type="java.lang.Exception"/>
  30952. <doc>
  30953. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  30954. parsing with the given generic arguments. Uses the given
  30955. <code>Configuration</code>, or builds one if null.
  30956. Sets the <code>Tool</code>'s configuration with the possibly modified
  30957. version of the <code>conf</code>.
  30958. @param conf <code>Configuration</code> for the <code>Tool</code>.
  30959. @param tool <code>Tool</code> to run.
  30960. @param args command-line arguments to the tool.
  30961. @return exit code of the {@link Tool#run(String[])} method.]]>
  30962. </doc>
  30963. </method>
  30964. <method name="run" return="int"
  30965. abstract="false" native="false" synchronized="false"
  30966. static="true" final="false" visibility="public"
  30967. deprecated="not deprecated">
  30968. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  30969. <param name="args" type="java.lang.String[]"/>
  30970. <exception name="Exception" type="java.lang.Exception"/>
  30971. <doc>
  30972. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  30973. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  30974. @param tool <code>Tool</code> to run.
  30975. @param args command-line arguments to the tool.
  30976. @return exit code of the {@link Tool#run(String[])} method.]]>
  30977. </doc>
  30978. </method>
  30979. <method name="printGenericCommandUsage"
  30980. abstract="false" native="false" synchronized="false"
  30981. static="true" final="false" visibility="public"
  30982. deprecated="not deprecated">
  30983. <param name="out" type="java.io.PrintStream"/>
  30984. <doc>
  30985. <![CDATA[Prints generic command-line argurments and usage information.
  30986. @param out stream to write usage information to.]]>
  30987. </doc>
  30988. </method>
  30989. <method name="confirmPrompt" return="boolean"
  30990. abstract="false" native="false" synchronized="false"
  30991. static="true" final="false" visibility="public"
  30992. deprecated="not deprecated">
  30993. <param name="prompt" type="java.lang.String"/>
  30994. <exception name="IOException" type="java.io.IOException"/>
  30995. <doc>
  30996. <![CDATA[Print out a prompt to the user, and return true if the user
  30997. responds with "y" or "yes". (case insensitive)]]>
  30998. </doc>
  30999. </method>
  31000. <doc>
  31001. <![CDATA[A utility to help run {@link Tool}s.
  31002. <p><code>ToolRunner</code> can be used to run classes implementing
  31003. <code>Tool</code> interface. It works in conjunction with
  31004. {@link GenericOptionsParser} to parse the
  31005. <a href="{@docRoot}/../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">
  31006. generic hadoop command line arguments</a> and modifies the
  31007. <code>Configuration</code> of the <code>Tool</code>. The
  31008. application-specific options are passed along without being modified.
  31009. </p>
  31010. @see Tool
  31011. @see GenericOptionsParser]]>
  31012. </doc>
  31013. </class>
  31014. <!-- end class org.apache.hadoop.util.ToolRunner -->
  31015. <doc>
  31016. <![CDATA[Common utilities.]]>
  31017. </doc>
  31018. </package>
  31019. <package name="org.apache.hadoop.util.bloom">
  31020. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  31021. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  31022. abstract="false"
  31023. static="false" final="false" visibility="public"
  31024. deprecated="not deprecated">
  31025. <constructor name="BloomFilter"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. <doc>
  31029. <![CDATA[Default constructor - use with readFields]]>
  31030. </doc>
  31031. </constructor>
  31032. <constructor name="BloomFilter" type="int, int, int"
  31033. static="false" final="false" visibility="public"
  31034. deprecated="not deprecated">
  31035. <doc>
  31036. <![CDATA[Constructor
  31037. @param vectorSize The vector size of <i>this</i> filter.
  31038. @param nbHash The number of hash function to consider.
  31039. @param hashType type of the hashing function (see
  31040. {@link org.apache.hadoop.util.hash.Hash}).]]>
  31041. </doc>
  31042. </constructor>
  31043. <method name="add"
  31044. abstract="false" native="false" synchronized="false"
  31045. static="false" final="false" visibility="public"
  31046. deprecated="not deprecated">
  31047. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31048. </method>
  31049. <method name="and"
  31050. abstract="false" native="false" synchronized="false"
  31051. static="false" final="false" visibility="public"
  31052. deprecated="not deprecated">
  31053. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31054. </method>
  31055. <method name="membershipTest" return="boolean"
  31056. abstract="false" native="false" synchronized="false"
  31057. static="false" final="false" visibility="public"
  31058. deprecated="not deprecated">
  31059. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31060. </method>
  31061. <method name="not"
  31062. abstract="false" native="false" synchronized="false"
  31063. static="false" final="false" visibility="public"
  31064. deprecated="not deprecated">
  31065. </method>
  31066. <method name="or"
  31067. abstract="false" native="false" synchronized="false"
  31068. static="false" final="false" visibility="public"
  31069. deprecated="not deprecated">
  31070. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31071. </method>
  31072. <method name="xor"
  31073. abstract="false" native="false" synchronized="false"
  31074. static="false" final="false" visibility="public"
  31075. deprecated="not deprecated">
  31076. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31077. </method>
  31078. <method name="toString" return="java.lang.String"
  31079. abstract="false" native="false" synchronized="false"
  31080. static="false" final="false" visibility="public"
  31081. deprecated="not deprecated">
  31082. </method>
  31083. <method name="getVectorSize" return="int"
  31084. abstract="false" native="false" synchronized="false"
  31085. static="false" final="false" visibility="public"
  31086. deprecated="not deprecated">
  31087. <doc>
  31088. <![CDATA[@return size of the the bloomfilter]]>
  31089. </doc>
  31090. </method>
  31091. <method name="write"
  31092. abstract="false" native="false" synchronized="false"
  31093. static="false" final="false" visibility="public"
  31094. deprecated="not deprecated">
  31095. <param name="out" type="java.io.DataOutput"/>
  31096. <exception name="IOException" type="java.io.IOException"/>
  31097. </method>
  31098. <method name="readFields"
  31099. abstract="false" native="false" synchronized="false"
  31100. static="false" final="false" visibility="public"
  31101. deprecated="not deprecated">
  31102. <param name="in" type="java.io.DataInput"/>
  31103. <exception name="IOException" type="java.io.IOException"/>
  31104. </method>
  31105. <doc>
  31106. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  31107. <p>
  31108. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  31109. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  31110. offers for the transmission of set membership information between networked hosts. A sender encodes
  31111. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  31112. representation. Computation and space costs for construction are linear in the number of elements.
  31113. The receiver uses the filter to test whether various elements are members of the set. Though the
  31114. filter will occasionally return a false positive, it will never return a false negative. When creating
  31115. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  31116. <p>
  31117. Originally created by
  31118. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  31119. @see Filter The general behavior of a filter
  31120. @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>]]>
  31121. </doc>
  31122. </class>
  31123. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  31124. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  31125. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  31126. abstract="false"
  31127. static="false" final="true" visibility="public"
  31128. deprecated="not deprecated">
  31129. <constructor name="CountingBloomFilter"
  31130. static="false" final="false" visibility="public"
  31131. deprecated="not deprecated">
  31132. <doc>
  31133. <![CDATA[Default constructor - use with readFields]]>
  31134. </doc>
  31135. </constructor>
  31136. <constructor name="CountingBloomFilter" type="int, int, int"
  31137. static="false" final="false" visibility="public"
  31138. deprecated="not deprecated">
  31139. <doc>
  31140. <![CDATA[Constructor
  31141. @param vectorSize The vector size of <i>this</i> filter.
  31142. @param nbHash The number of hash function to consider.
  31143. @param hashType type of the hashing function (see
  31144. {@link org.apache.hadoop.util.hash.Hash}).]]>
  31145. </doc>
  31146. </constructor>
  31147. <method name="add"
  31148. abstract="false" native="false" synchronized="false"
  31149. static="false" final="false" visibility="public"
  31150. deprecated="not deprecated">
  31151. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31152. </method>
  31153. <method name="delete"
  31154. abstract="false" native="false" synchronized="false"
  31155. static="false" final="false" visibility="public"
  31156. deprecated="not deprecated">
  31157. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31158. <doc>
  31159. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  31160. <p>
  31161. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  31162. @param key The key to remove.]]>
  31163. </doc>
  31164. </method>
  31165. <method name="and"
  31166. abstract="false" native="false" synchronized="false"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31170. </method>
  31171. <method name="membershipTest" return="boolean"
  31172. abstract="false" native="false" synchronized="false"
  31173. static="false" final="false" visibility="public"
  31174. deprecated="not deprecated">
  31175. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31176. </method>
  31177. <method name="approximateCount" return="int"
  31178. abstract="false" native="false" synchronized="false"
  31179. static="false" final="false" visibility="public"
  31180. deprecated="not deprecated">
  31181. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31182. <doc>
  31183. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  31184. times the key was added to the filter. This allows the filter to be
  31185. used as an approximate <code>key -&gt; count</code> map.
  31186. <p>NOTE: due to the bucket size of this filter, inserting the same
  31187. key more than 15 times will cause an overflow at all filter positions
  31188. associated with this key, and it will significantly increase the error
  31189. rate for this and other keys. For this reason the filter can only be
  31190. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  31191. @param key key to be tested
  31192. @return 0 if the key is not present. Otherwise, a positive value v will
  31193. be returned such that <code>v == count</code> with probability equal to the
  31194. error rate of this filter, and <code>v &gt; count</code> otherwise.
  31195. Additionally, if the filter experienced an underflow as a result of
  31196. {@link #delete(Key)} operation, the return value may be lower than the
  31197. <code>count</code> with the probability of the false negative rate of such
  31198. filter.]]>
  31199. </doc>
  31200. </method>
  31201. <method name="not"
  31202. abstract="false" native="false" synchronized="false"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. </method>
  31206. <method name="or"
  31207. abstract="false" native="false" synchronized="false"
  31208. static="false" final="false" visibility="public"
  31209. deprecated="not deprecated">
  31210. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31211. </method>
  31212. <method name="xor"
  31213. abstract="false" native="false" synchronized="false"
  31214. static="false" final="false" visibility="public"
  31215. deprecated="not deprecated">
  31216. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31217. </method>
  31218. <method name="toString" return="java.lang.String"
  31219. abstract="false" native="false" synchronized="false"
  31220. static="false" final="false" visibility="public"
  31221. deprecated="not deprecated">
  31222. </method>
  31223. <method name="write"
  31224. abstract="false" native="false" synchronized="false"
  31225. static="false" final="false" visibility="public"
  31226. deprecated="not deprecated">
  31227. <param name="out" type="java.io.DataOutput"/>
  31228. <exception name="IOException" type="java.io.IOException"/>
  31229. </method>
  31230. <method name="readFields"
  31231. abstract="false" native="false" synchronized="false"
  31232. static="false" final="false" visibility="public"
  31233. deprecated="not deprecated">
  31234. <param name="in" type="java.io.DataInput"/>
  31235. <exception name="IOException" type="java.io.IOException"/>
  31236. </method>
  31237. <doc>
  31238. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  31239. 2000 paper.
  31240. <p>
  31241. A counting Bloom filter is an improvement to standard a Bloom filter as it
  31242. allows dynamic additions and deletions of set membership information. This
  31243. is achieved through the use of a counting vector instead of a bit vector.
  31244. <p>
  31245. Originally created by
  31246. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  31247. @see Filter The general behavior of a filter
  31248. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  31249. </doc>
  31250. </class>
  31251. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  31252. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  31253. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  31254. abstract="false"
  31255. static="false" final="false" visibility="public"
  31256. deprecated="not deprecated">
  31257. <constructor name="DynamicBloomFilter"
  31258. static="false" final="false" visibility="public"
  31259. deprecated="not deprecated">
  31260. <doc>
  31261. <![CDATA[Zero-args constructor for the serialization.]]>
  31262. </doc>
  31263. </constructor>
  31264. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  31265. static="false" final="false" visibility="public"
  31266. deprecated="not deprecated">
  31267. <doc>
  31268. <![CDATA[Constructor.
  31269. <p>
  31270. Builds an empty Dynamic Bloom filter.
  31271. @param vectorSize The number of bits in the vector.
  31272. @param nbHash The number of hash function to consider.
  31273. @param hashType type of the hashing function (see
  31274. {@link org.apache.hadoop.util.hash.Hash}).
  31275. @param nr The threshold for the maximum number of keys to record in a
  31276. dynamic Bloom filter row.]]>
  31277. </doc>
  31278. </constructor>
  31279. <method name="add"
  31280. abstract="false" native="false" synchronized="false"
  31281. static="false" final="false" visibility="public"
  31282. deprecated="not deprecated">
  31283. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31284. </method>
  31285. <method name="and"
  31286. abstract="false" native="false" synchronized="false"
  31287. static="false" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31290. </method>
  31291. <method name="membershipTest" return="boolean"
  31292. abstract="false" native="false" synchronized="false"
  31293. static="false" final="false" visibility="public"
  31294. deprecated="not deprecated">
  31295. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31296. </method>
  31297. <method name="not"
  31298. abstract="false" native="false" synchronized="false"
  31299. static="false" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. </method>
  31302. <method name="or"
  31303. abstract="false" native="false" synchronized="false"
  31304. static="false" final="false" visibility="public"
  31305. deprecated="not deprecated">
  31306. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31307. </method>
  31308. <method name="xor"
  31309. abstract="false" native="false" synchronized="false"
  31310. static="false" final="false" visibility="public"
  31311. deprecated="not deprecated">
  31312. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  31313. </method>
  31314. <method name="toString" return="java.lang.String"
  31315. abstract="false" native="false" synchronized="false"
  31316. static="false" final="false" visibility="public"
  31317. deprecated="not deprecated">
  31318. </method>
  31319. <method name="write"
  31320. abstract="false" native="false" synchronized="false"
  31321. static="false" final="false" visibility="public"
  31322. deprecated="not deprecated">
  31323. <param name="out" type="java.io.DataOutput"/>
  31324. <exception name="IOException" type="java.io.IOException"/>
  31325. </method>
  31326. <method name="readFields"
  31327. abstract="false" native="false" synchronized="false"
  31328. static="false" final="false" visibility="public"
  31329. deprecated="not deprecated">
  31330. <param name="in" type="java.io.DataInput"/>
  31331. <exception name="IOException" type="java.io.IOException"/>
  31332. </method>
  31333. <doc>
  31334. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  31335. <p>
  31336. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  31337. each of the <code>s</code> rows is a standard Bloom filter. The creation
  31338. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  31339. bit matrix, i.e., it is composed of a single standard Bloom filter.
  31340. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  31341. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  31342. the cardinality of the set <code>A</code> to record in the filter).
  31343. <p>
  31344. As the size of <code>A</code> grows during the execution of the application,
  31345. several keys must be inserted in the DBF. When inserting a key into the DBF,
  31346. one must first get an active Bloom filter in the matrix. A Bloom filter is
  31347. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  31348. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  31349. If an active Bloom filter is found, the key is inserted and
  31350. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  31351. is no active Bloom filter, a new one is created (i.e., a new row is added to
  31352. the matrix) according to the current size of <code>A</code> and the element
  31353. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  31354. this new Bloom filter is set to one. A given key is said to belong to the
  31355. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  31356. <p>
  31357. Originally created by
  31358. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  31359. @see Filter The general behavior of a filter
  31360. @see BloomFilter A Bloom filter
  31361. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  31362. </doc>
  31363. </class>
  31364. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  31365. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  31366. <class name="HashFunction" extends="java.lang.Object"
  31367. abstract="false"
  31368. static="false" final="true" visibility="public"
  31369. deprecated="not deprecated">
  31370. <constructor name="HashFunction" type="int, int, int"
  31371. static="false" final="false" visibility="public"
  31372. deprecated="not deprecated">
  31373. <doc>
  31374. <![CDATA[Constructor.
  31375. <p>
  31376. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  31377. @param maxValue The maximum highest returned value.
  31378. @param nbHash The number of resulting hashed values.
  31379. @param hashType type of the hashing function (see {@link Hash}).]]>
  31380. </doc>
  31381. </constructor>
  31382. <method name="clear"
  31383. abstract="false" native="false" synchronized="false"
  31384. static="false" final="false" visibility="public"
  31385. deprecated="not deprecated">
  31386. <doc>
  31387. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  31388. </doc>
  31389. </method>
  31390. <method name="hash" return="int[]"
  31391. abstract="false" native="false" synchronized="false"
  31392. static="false" final="false" visibility="public"
  31393. deprecated="not deprecated">
  31394. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  31395. <doc>
  31396. <![CDATA[Hashes a specified key into several integers.
  31397. @param k The specified key.
  31398. @return The array of hashed values.]]>
  31399. </doc>
  31400. </method>
  31401. <doc>
  31402. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  31403. @see Key The general behavior of a key being stored in a filter
  31404. @see Filter The general behavior of a filter]]>
  31405. </doc>
  31406. </class>
  31407. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  31408. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  31409. <interface name="RemoveScheme" abstract="true"
  31410. static="false" final="false" visibility="public"
  31411. deprecated="not deprecated">
  31412. <field name="RANDOM" type="short"
  31413. transient="false" volatile="false"
  31414. static="true" final="true" visibility="public"
  31415. deprecated="not deprecated">
  31416. <doc>
  31417. <![CDATA[Random selection.
  31418. <p>
  31419. The idea is to randomly select a bit to reset.]]>
  31420. </doc>
  31421. </field>
  31422. <field name="MINIMUM_FN" type="short"
  31423. transient="false" volatile="false"
  31424. static="true" final="true" visibility="public"
  31425. deprecated="not deprecated">
  31426. <doc>
  31427. <![CDATA[MinimumFN Selection.
  31428. <p>
  31429. The idea is to select the bit to reset that will generate the minimum
  31430. number of false negative.]]>
  31431. </doc>
  31432. </field>
  31433. <field name="MAXIMUM_FP" type="short"
  31434. transient="false" volatile="false"
  31435. static="true" final="true" visibility="public"
  31436. deprecated="not deprecated">
  31437. <doc>
  31438. <![CDATA[MaximumFP Selection.
  31439. <p>
  31440. The idea is to select the bit to reset that will remove the maximum number
  31441. of false positive.]]>
  31442. </doc>
  31443. </field>
  31444. <field name="RATIO" type="short"
  31445. transient="false" volatile="false"
  31446. static="true" final="true" visibility="public"
  31447. deprecated="not deprecated">
  31448. <doc>
  31449. <![CDATA[Ratio Selection.
  31450. <p>
  31451. The idea is to select the bit to reset that will, at the same time, remove
  31452. the maximum number of false positve while minimizing the amount of false
  31453. negative generated.]]>
  31454. </doc>
  31455. </field>
  31456. <doc>
  31457. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  31458. <p>
  31459. Originally created by
  31460. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  31461. </doc>
  31462. </interface>
  31463. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  31464. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  31465. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  31466. abstract="false"
  31467. static="false" final="true" visibility="public"
  31468. deprecated="not deprecated">
  31469. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  31470. <constructor name="RetouchedBloomFilter"
  31471. static="false" final="false" visibility="public"
  31472. deprecated="not deprecated">
  31473. <doc>
  31474. <![CDATA[Default constructor - use with readFields]]>
  31475. </doc>
  31476. </constructor>
  31477. <constructor name="RetouchedBloomFilter" type="int, int, int"
  31478. static="false" final="false" visibility="public"
  31479. deprecated="not deprecated">
  31480. <doc>
  31481. <![CDATA[Constructor
  31482. @param vectorSize The vector size of <i>this</i> filter.
  31483. @param nbHash The number of hash function to consider.
  31484. @param hashType type of the hashing function (see
  31485. {@link org.apache.hadoop.util.hash.Hash}).]]>
  31486. </doc>
  31487. </constructor>
  31488. <method name="add"
  31489. abstract="false" native="false" synchronized="false"
  31490. static="false" final="false" visibility="public"
  31491. deprecated="not deprecated">
  31492. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31493. </method>
  31494. <method name="addFalsePositive"
  31495. abstract="false" native="false" synchronized="false"
  31496. static="false" final="false" visibility="public"
  31497. deprecated="not deprecated">
  31498. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  31499. <doc>
  31500. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  31501. <p>
  31502. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  31503. @param key The false positive key to add.]]>
  31504. </doc>
  31505. </method>
  31506. <method name="addFalsePositive"
  31507. abstract="false" native="false" synchronized="false"
  31508. static="false" final="false" visibility="public"
  31509. deprecated="not deprecated">
  31510. <param name="coll" type="java.util.Collection"/>
  31511. <doc>
  31512. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  31513. @param coll The collection of false positive.]]>
  31514. </doc>
  31515. </method>
  31516. <method name="addFalsePositive"
  31517. abstract="false" native="false" synchronized="false"
  31518. static="false" final="false" visibility="public"
  31519. deprecated="not deprecated">
  31520. <param name="keys" type="java.util.List"/>
  31521. <doc>
  31522. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  31523. @param keys The list of false positive.]]>
  31524. </doc>
  31525. </method>
  31526. <method name="addFalsePositive"
  31527. abstract="false" native="false" synchronized="false"
  31528. static="false" final="false" visibility="public"
  31529. deprecated="not deprecated">
  31530. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  31531. <doc>
  31532. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  31533. @param keys The array of false positive.]]>
  31534. </doc>
  31535. </method>
  31536. <method name="selectiveClearing"
  31537. abstract="false" native="false" synchronized="false"
  31538. static="false" final="false" visibility="public"
  31539. deprecated="not deprecated">
  31540. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  31541. <param name="scheme" type="short"/>
  31542. <doc>
  31543. <![CDATA[Performs the selective clearing for a given key.
  31544. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  31545. @param scheme The selective clearing scheme to apply.]]>
  31546. </doc>
  31547. </method>
  31548. <method name="write"
  31549. abstract="false" native="false" synchronized="false"
  31550. static="false" final="false" visibility="public"
  31551. deprecated="not deprecated">
  31552. <param name="out" type="java.io.DataOutput"/>
  31553. <exception name="IOException" type="java.io.IOException"/>
  31554. </method>
  31555. <method name="readFields"
  31556. abstract="false" native="false" synchronized="false"
  31557. static="false" final="false" visibility="public"
  31558. deprecated="not deprecated">
  31559. <param name="in" type="java.io.DataInput"/>
  31560. <exception name="IOException" type="java.io.IOException"/>
  31561. </method>
  31562. <doc>
  31563. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  31564. <p>
  31565. It allows the removal of selected false positives at the cost of introducing
  31566. random false negatives, and with the benefit of eliminating some random false
  31567. positives at the same time.
  31568. <p>
  31569. Originally created by
  31570. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  31571. @see Filter The general behavior of a filter
  31572. @see BloomFilter A Bloom filter
  31573. @see RemoveScheme The different selective clearing algorithms
  31574. @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>]]>
  31575. </doc>
  31576. </class>
  31577. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  31578. </package>
  31579. <package name="org.apache.hadoop.util.curator">
  31580. </package>
  31581. <package name="org.apache.hadoop.util.hash">
  31582. </package>
  31583. </api>